2004-11-04 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c46b0409 12004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 2
c46b0409
KI
3 * Makefile.in (m32r-tdep.o): Update dependencies.
4 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
5 ABI-specific overrides.
6
9f0b0322 72004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 8
9f0b0322
KI
9 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
10 unnecessary parallel execution bit.
11 (m32r_memory_remove_breakpoint): Ditto.
12 (m32r_breakpoint_from_pc): Update.
13
d5c27f81
RC
142004-11-03 Randolph Chung <tausq@debian.org>
15
16 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 17 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
18 (hppa_frame_this_id): Likewise.
19
4577593c
AC
202004-11-03 Andrew Cagney <cagney@gnu.org>
21
22 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
23 packet, obsolete configurations, end-of-life deprecated_registers.
24
b04de778
MK
252004-11-02 Mark Kettenis <kettenis@gnu.org>
26
27 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
28 encodings as well as unsigned encodings.
29
9f2feefc
AC
302004-11-02 Andrew Cagney <cagney@gnu.org>
31
32 * value.h (COERCE_VARYING_ARRAY): Delete.
33 * valops.c (value_cast, value_slice): Delete use.
34 * valarith.c (value_subscript, value_concat): Delete use.
35
117ea3cf
PH
362004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
37
38 * NEWS: GDB understands GNAT Ada.
39
0bbc026e
JM
402004-11-01 Joseph S. Myers <joseph@codesourcery.com>
41
42 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
43 (amd64-sol2-tdep.o): Add dependencies.
44 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
45 config/i386/sol2-64.mt: New files.
46 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
47 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
48 (supply_gregset): Correct order of arguments to
49 amd64_supply_native_gregset.
50 (fill_gregset): Correct order of arguments to
51 amd64_collect_native_gregset.
52 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
53 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
54 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
55 for definition of NEW_PROC_API.
56 * configure: Regenerate.
57
3d38a0a5
JM
582004-11-01 Joseph S. Myers <joseph@codesourcery.com>
59
60 * MAINTAINERS (Write After Approval): Add myself.
61
f81cd1cf
AC
622004-11-01 Andrew Cagney <cagney@gnu.org>
63
64 * configure.tgt: Mark d10v-*-* as obsolete.
65 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
66
f4e88c8e
PH
672004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
68
69 * values.c (modify_field): Correct handling of bit-fields that
70 don't fit in 32 bits. Use unsigned operations throughout and
71 simplify the code a bit. Document preconditions.
72
84674fe1
AC
732004-10-31 Andrew Cagney <cagney@gnu.org>
74
96693b3a
AC
75 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
76 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
77 (in_plt_section): Delete.
78
6f296f8f
AC
79 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
80 (mips_gdbarch_init): Do not set same.
81
618501c0
AC
82 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
83 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
84
b22e8f02
AC
85 * gdbarch.sh (in_solib_call_trampoline): Delete.
86 * gdbarch.h, gdbarch.c: Re-generate.
87
84674fe1
AC
88 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
89 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
90 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
91 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
92 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
93
c6d1029f
MK
942004-10-31 Mark Kettenis <kettenis@gnu.org>
95
96 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
97 (mipsnbsd_fetch_inferior_registers): Rename from
98 fetch_inferior_registers. Make static.
99 (mipsnbsd_store_inferior_registers): Rename from
100 store_inferior_registers. Make static.
101 (_initialize_mipsnbsd_nat): New function and prototype.
102 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
103 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
104 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
105 inf-ptrace.o.
106
bd9ca83f
AC
1072004-10-31 Andrew Cagney <cagney@gnu.org>
108
19d718a3
AC
109 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
110 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
111 delete corresponding unused function.
112 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
113 in_solib_call_trampoline.
114 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
115 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
116 * config/mips/tm-nbsd.h: Ditto.
117 * config/arm/tm-linux.h: Ditto.
118 * config/mips/tm-linux.h: Ditto.
119
e8ce19c0
AC
120 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
121 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
122 in_solib_call_trampoline, delete corresponding unused function.
123 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
124 (vaxnbsd_aout_init_abi): Ditto.
125 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
126 (sparc32nbsd_aout_init_abi): Ditto.
127 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
128 (ppc_linux_init_abi): Ditto.
129 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
130 (ns32knbsd_init_abi_aout): Ditto.
131 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
132 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
133 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
134 (m68kbsd_aout_init_abi): Ditto.
135 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
136 (i386_cygwin_init_abi): Ditto.
137 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
138 (i386bsd_init_abi): Ditto.
139
af380d61
AC
140 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
141 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
142 isn't used by this architecture.
143 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
144 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
145 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
146 * s390-tdep.c (s390_gdbarch_init): Ditto.
147 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
148 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
149 * i386-tdep.c (i386_svr4_init_abi): Ditto.
150 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
151 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
152 * amd64-tdep.c (amd64_init_abi): Ditto.
153
0528d9f7
AC
154 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
155 in_solib_call_trampoline to its default value of
156 generic_in_solib_call_trampoline.
157 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
158 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
159 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
160 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
161 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
162 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
163
f9f9eacb
AC
164 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
165
a4ffd1e7
AC
166 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
167
82e34d2f
AC
168 * config/mips/tm-mips.h: Delete file.
169 * remote-mips.c: Delete tm-mips.h from comment.
170 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
171 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
172 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
173 * config/mips/tm-linux.h: Don't include tm-mips.h.
174 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
175 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
176 * config/mips/tm-wince.h: Don't include.
177
75dec9cf
AC
178 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
179 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
180 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
181 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
182
bd9ca83f
AC
183 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
184 * mdebugread.c (ecoff_relocate_efi): Delete function.
185 * objfiles.c (objfile_relocate): Delete #ifdef
186 MDEBUG_EFI_SYMBOL_NAME code.
187
3352ef37
AC
1882004-10-31 Orjan Friberg <organ.friberg@axis.com>
189 Andrew Cagney <cagney@gnu.org>
190
191 * gdbarch.sh (single_step_through_delay): Add.
192 * gdbarch.h, gdbarch.c: Re-generate.
193 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
194 (mips_step_skips_delay): Delete.
195 * mips-tdep.c (mips_single_step_through_delay): Replace
196 mips_step_skips_delay.
197 (mips_gdbarch_init): Set single_step_through_delay.
198 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
199
2440b685
MK
2002004-10-31 Mark Kettenis <kettenis@gnu.org>
201
202 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
203 from TRAMP_FRAME frame type.
204
56a2fed5
AC
2052004-10-31 Andrew Cagney <cagney@gnu.org>
206
9b792b1d
AC
207 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
208
0a5e8d98
AC
209 * mips-tdep.c (mips_ignore_helper): Delete.
210 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
211 * infrun.c (handle_inferior_event): Delete #ifdef
212 DEPRECATED_IGNORE_HELPER_CALL code.
213
56a2fed5
AC
214 * config/mips/tm-mips.h (RA_REGNUM): Delete.
215
f69c55b2
MK
2162004-10-31 Mark Kettenis <kettenis@gnu.org>
217
218 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
219 (fill_fpregset): Do not compile for 64-bit systems.
220 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
221 * Makefile.in (i386-sol2-nat.o): Update dependencies.
222 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
223
d37cca3d
AC
2242004-10-30 Andrew Cagney <cagney@gnu.org>
225
36b8628e
AC
226 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
227 (struct mdebug_extra_func_info): Define.
228 * config/alpha/tm-alpha.h: Delete same.
229 * config/mips/tm-mips.h: Delete same.
230 * mdebugread.c: Delete same.
231 * Makefile.in: Update dependencies.
232 * mips-mdebug-tdep.c: Include "mdebugread.h".
233
5b123146
AC
234 * objfiles.c: Include "mdebugread.h".
235 * mdebugread.c: Include "mdebugread.h".
236 (ecoff_relocate_cfi): Delete.
237 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
238 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
239 * mdebugread.h (ecoff_relocate_efi): New file.
240 * Makefile.in: Update dependencies.
241
b9c3a7de
AC
242 * mips-tdep.c (struct frame_extra_info): Delete.
243 (temp_proc_desc): Delete.
244
f92761ec
AC
245 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
246 MIPS_EFI_SYMBOL_NAME.
247 (mips_extra_func_info_t, mips_extra_func_info): Delete.
248 (struct mdebug_extra_func_info): Replace struct
249 alpha_extra_func_info and alpha_extra_func_info_t.
250 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
251 MIPS_EFI_SYMBOL_NAME.
252 (struct mdebug_extra_func_info): Replace struct
253 alpha_extra_func_info and alpha_extra_func_info_t.
254 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
255 * mdebugread.c, alpha-mdebug-tdep.c:
256
0bb57b31
AC
257 Suggested by Mark Kettenis.
258 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
259 fields frame_adjust and high_addr.
260 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
261 (non_heuristic_proc_desc): Delete references.
262
a5c9623c
AC
263 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
264 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
265 * mips-tdep.c: Update.
266
607fc93c
AC
267 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
268 (MIPS_LAST_EMBED_REGNUM): Add.
269 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
270 (LAST_EMBED_REGNUM): Delete.
271 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
272
24e05951
AC
273 * config/mips/tm-mips.h (PS_REGNUM): Delete.
274 * mips-tdep.h (MIPS_PS_REGNUM): Add.
275 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
276 * mips-linux-nat.c: Update.
277
613e114f
AC
278 * mips-tdep.h: Add comments on registers.
279 (MIPS_UNUSED_REGNUM): Define.
280 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
281 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
282 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
283 * mips-linux-nat.c, remote-mips.c: Update.
284
d37cca3d
AC
285 * config/mips/tm-mips.h (t_insn): Delete.
286 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
287 Replace t_insn with ULONGEST.
288
ceb41096
MK
2892004-10-30 Mark Kettenis <kettenis@gnu.org>
290
d1180b0f
MK
291 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
292 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
293 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
294 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
295 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
296 (mipsnbsd_core_osabi_sniffer): New function.
297 (mipsnbsd_init_abi): Set regset_from_core_section.
298 (_initialize_mipsnbsd_tdep): Remove calls to
299 deprecated_add_core_fns.
300 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
301 (mipsnbsd_regset_from_core_section): New functions.
302 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
303 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
304
ceb41096
MK
305 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
306 Remove optimization for DEPRECATED_FP_REGNUM.
307
ec4045ea
AC
3082004-10-30 Andrew Cagney <cagney@gnu.org>
309
cd65c8f6
AC
310 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
311 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
312 (alpha_setup_arbitrary_frame): Delete.
313 * mips-tdep.c (setup_arbitrary_frame): Delete.
314 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
315 (setup_arbitrary_frame): Delete.
316 * stack.c (parse_frame_specification_1): When specified, call
317 create_new_frame with two parameters. Delete #ifdef
318 SETUP_ARBITRARY_FRAME.
319
95ac2dcf
AC
320 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
321 (MIPS_INSTLEN): Delete.
322 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
323 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
324 * remote-mips.c, mips-tdep.c: Update.
325
1a8da44d
AC
326 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
327 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
328 * mips-tdep.c (mips_mdebug_frame_cache)
329 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
330 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
331 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
332 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
333 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
334 (mips_gdbarch_init): Do not append mdebug sniffers.
335 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
336 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
337 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
338 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
339 * Makefile.in: Update dependencies.
340
e6bc2e8a
AC
341 * mips-tdep.h (mips_abi_regsize): Declare.
342 * mips-tdep.c (mips_abi_regsize): Make non-static.
343
ec4045ea
AC
344 * mips-tdep.c (gdb_print_insn_mips): Simplify.
345 (make_mips16_addr): Delete.
e6bc2e8a 346
6b16acab
MK
3472004-10-30 Mark Kettenis <kettenis@gnu.org>
348
349 * i386-sol2-nat.c: New file.
350 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
351 i386-sol2-tdep.c.
352 (i386-sol2-nat.o): Update dependencies.
353 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
354 i386-sol2-nat.o.
355
8b622e6a
AC
3562004-10-30 Andrew Cagney <cagney@gnu.org>
357
358 Total breakage identified by Joel Brobecker.
359 * mips-tdep.c (after_prologue): Delete.
360 (mips_skip_prologue): Use skip_prologue_using_sal.
361 (heuristic_proc_desc): Delete, unused.
362
772cf8be
MK
3632004-10-30 Mark Kettenis <kettenis@gnu.org>
364
365 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
366 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
367 Cleanup coding style.
368
9c8fdbfa
AC
3692004-10-30 Andrew Cagney <cagney@gnu.org>
370
0fe7e7c8
AC
371 * mips-tdep.h (mips_pc_is_mips16): Declare.
372 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
373 non-static. Update calls.
374
1b295c3d
AC
375 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
376 * command.h (add_setshow_enum_cmd): Declare.
377 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
378
6bcadd06
AC
379 * mips-tdep.c (_initialize_mips_tdep): Use
380 add_setshow_zinteger_cmd.
381
9c8fdbfa
AC
382 * mips-tdep.c (mips_eabi_extract_return_value)
383 (mips_o64_extract_return_value, mips_o64_store_return_value)
384 (return_value_location, mips_eabi_reg_struct_has_addr)
385 (mips_eabi_use_struct_convention)
386 (mips_eabi_store_return_value): Delete.
387 (mips_eabi_store_return_value): New function.
388 (mips_eabi_return_value): New function.
389 (mips_gdbarch_init): For O64 and EABI, delete
390 extract_return_value, store_return_value, use_struct_convention
391 and reg_struct_has_addr, add return_value.
392
1d93fe1a
AC
393 * mips-tdep.c (read_signed_register): Use
394 regcache_cooked_read_signed.
395
303d2914
MK
3962004-10-30 Mark Kettenis <kettenis@gnu.org>
397
398 * mipsread.c: Cleanup coding style.
399 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
400 (mipscoff_symfile_finish): Remove prototypes.
401
4022004-10-29 Mark Kettenis <kettenis@gnu.org>
403
404 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
405 (mips_mdebug_frame_cache, mips16_scan_prologue)
406 (mips32_scan_prologue, mips_stub_frame_cache)
407 (heuristic_proc_start, heuristic_proc_desc)
408 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
409 (mips_n32n64_return_value, mips_o32_push_dummy_call)
410 (mips_o32_return_value, mips_o64_push_dummy_call)
411 (mips_step_skips_delay, mips_skip_trampoline_code)
412 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
413 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
414 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
415 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
416 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
417 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
418 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
419 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
420 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
421 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
422 ZERO_REGNUM.
423 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
424 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
425 ZERO_REGNUM.
426 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
427 A0_REGNUM.
428 * mipsnbsd-nat.c: Include "mips-tdep.h".
429 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
430 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
431
1c8831c5
AC
4322004-10-29 Andrew Cagney <cagney@gnu.org>
433
434 * stack.c (parse_frame_specification_1): New function based on
435 parse_frame_specification. Add message and selected_frame_p
436 paramters. Truely always return non-NULL.
437 (parse_frame_specification): Call parse_frame_specification_1.
438 (frame_info): Update. Eliminate target_has_stack check.
439 (select_frame_command): Update.
440
b04f3ab4
AC
4412004-10-29 Andrew Cagney <cagney@gnu.org>
442
443 * frame.h (get_selected_frame): Add message parameter.
444 * frame.c (get_selected_frame): Add and use message parameter.
445 * stack.c (current_frame_command, return_command, locals_info)
446 (catch_info, args_info, up_silently_base, down_silently_base): Use
447 get_selected_frame with an explicit message.
448 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
449 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
450 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
451 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
452 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
453 * breakpoint.c: Update.
454
4552004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
456
457 * trad-frame.c (trad_frame_get_prev_register): Use
458 frame_unwind_register instead of frame_register_unwind, do not
459 recurse the register's location.
460 * xstormy16-tdep.c (xstormy16_frame_prev_register):
461 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
462 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
463 * sh-tdep.c (sh_frame_prev_register): Ditto.
464 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
465 * i386-tdep.c (i386_frame_prev_register): Ditto.
466 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
467 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
468
7a952542
MK
4692004-10-28 Mark Kettenis <kettenis@jive.nl>
470
c18c06be
MK
471 * proc-events.c: Fix several coding-style issues. Consistently
472 use #ifdef instead of #if defined().
473 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
474 ARRAY_SIZE.
475 (_initialize_proc_events): New prototype.
476
7a952542
MK
477 * proc-why.c: Fix several coding-style issues.
478 (proc_prettyfprint_why): Use ARRAY_SIZE.
479
fcad0fa4
JB
4802004-10-27 Jim Blandy <jimb@redhat.com>
481
482 * remote.c (fetch_register_using_p): Construct 'p' packet in a
483 manner independent of the host byte order.
484
c163184f
MK
4852004-10-27 Mark Kettenis <kettenis@gnu.org>
486
487 * mips-tdep.c (id_delayed): Remove prototype.
488
9c46b6f0
MK
4892004-10-26 Mark Kettenis <kettenis@gnu.org>
490
491 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
492 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
493 to enum with register numbers.
494 (enum mips_insn_size): New enum.
495
0d0266c6
AC
4962004-10-26 Andrew Cagney <cagney@gnu.org>
497
e7d6a6d2
AC
498 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
499 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
500 (mips_gdbarch_init): Update.
501 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
502
c5115f39
AC
503 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
504 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
505 IN_SOLIB_RETURN_TRAMPOLINE.
506 * mips-tdep.c (mips_dump_tdep): Do not print
507 IN_SOLIB_RETURN_TRAMPOLINE.
508 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
509 (mips_gdbarch_init): Update.
510
0d0266c6
AC
511 * mips-tdep.h (mips_software_single_step): Move to here ...
512 * config/mips/tm-mips.h: ... from here.
513 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
514 (SOFTWARE_SINGLE_STEP): Delete.
515 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
516
156a53ca
AC
5172004-10-25 Andrew Cagney <cagney@gnu.org>
518
519 * NEWS: Add Changes since GDB 6.3 section.
520
f27cf670
AS
5212004-10-23 Andreas Schwab <schwab@suse.de>
522
156a53ca
AC
523 * ada-lang.c (grow_vect): Return the new array instead of
524 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
525 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
526
121d8485
UW
5272004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
528
529 * s390-tdep.c (enum pv_boolean): Remove.
530 (pv_is_array_ref): Remove.
531 (s390_on_stack): Remove.
532 (S390_NUM_SPILL_SLOTS): Remove.
533 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
534 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
535 (s390_store): Track all stores of orginal incoming registers to the
536 stack constant offsets relative to the CFA, instead of only tracking
537 stores into specific spill slots.
538 (s390_load): Likewise.
539 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
540 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
541 defined as call-saved by the ABI.
542 (s390_push_dummy_call): Use bottom of dummy call argument save area
543 as return value, not the top. Do not store to the called function's
544 register save area.
545 (s390_unwind_dummy_id): Adapt accordingly.
546
0a6ddd08
AC
5472004-10-23 Andrew Cagney <cagney@gnu.org>
548
549 * objfiles.h (struct objfile): Rename obj_private to
550 deprecated_obj_private, sym_private to deprecated_sym_private, and
551 sym_stab_info to deprecated_sym_stab_info.
552 * gdb-stabs.h: Update.
553 * elfread.c: Update.
554 * dbxread.c: Update.
555 * coffread.c: Update.
556 * xcoffread.c: Update.
557 * symfile.c: Update.
558 * somread.c: Update.
559 * nlmread.c: Update.
560 * mdebugread.c: Update.
561 * hpread.c: Update.
562 * coffread.c: Update.
563
abc08782
MK
5642004-10-23 Mark Kettenis <kettenis@gnu.org>
565
566 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
567 * configure.host: Add mips64*-*-openbsd*.
568 * configure.tgt: Add mips64*-*-openbsd*.
569 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
570 mips64obsd-tdep.c.
571 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
572 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
573
fc062ac6
JB
5742004-10-21 Joel Brobecker <brobecker@gnat.com>
575
576 * symtab.c (symbol_search_name): Minor reformatting.
577
5bccb4d1
JB
5782004-10-20 Joel Brobecker <brobecker@gnat.com>
579
580 * symtab.h: Fix typo in comment.
581
a738430d
MK
5822004-10-19 Mark Kettenis <kettenis@gnu.org>
583
584 * dwarf2read.c (struct comp_unit_head): Fix coding style.
585 (dwarf_decode_line_header): Likewise.
586
f2cb65ca
MC
5872004-10-19 Michael Chastain <mec.gnu@mindspring.com>
588
589 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
590
09e55376
AC
5912004-10-19 Andrew Cagney <cagney@gnu.org>
592
593 GDB 6.3 branch created.
594 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
595
bc5f45f8
JB
5962004-10-15 Joel Brobecker <brobecker@gnat.com>
597
598 * dwarf2read.c (set_cu_language): Set language to Ada for
599 DW_LANG_Ada83 and DW_LANG_Ada95.
600
2941da8c
MC
6012004-10-15 Michael Chastain <mec.gnu@mindspring.com>
602
603 From Andreas Schwab <schwab@suse.de>:
604 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
605 for xmalloc and xrealloc.
606
34a17005
AC
6072004-10-15 Andrew Cagney <cagney@gnu.org>
608
609 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
610 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
611 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
612 Update dependencies.
613
714e53ab
PH
6142004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
615
616 * ada-lang.c (ada_lookup_symbol): Correct comment.
617 (ada_evaluate_subexp): Change error message for
618 OP_FUNCALL case so as not to indicate an internal error.
619
6202004-10-15 Joel Brobecker <brobecker@gnat.com>
621
622 Committed by Paul Hilfinger.
623 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
624 type sizes in XVE/XVU types, and emit a warning when that happens,
625 instead of rounding up the size of the resulting type.
626 Some minor reformatting.
627 (ada_is_aligner_type): Do not consider a type as an aligner type
628 if there is a corresponding XVS type as well.
629 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
630 have several levels of pointer indirection to the array.
631
6322004-10-15 Jerome Guitton <guitton@gnat.com>
633
634 Committed by Paul Hilfinger.
635 * ada-lang.c (check_size): New function.
636 (coerce_unspec_val_to_type): call check_size to make sure
637 that the object size is reasonable.
638 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
639 Implements the case when we get a reference when we evaluate
640 the expression of one of the bounds of the slice.
641 (ada_value_struct_elt): when a packed array field is
642 a reference, use ada_coerce_ref to dereference it; use
643 ada_value_ind only if it is a pointer.
644
29639122
JB
6452004-10-15 Joel Brobecker <brobecker@gnat.com>
646
647 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
648 a bit to avoid the necessity of an advance declaration. Remove
649 declaration.
650 (set_reg_offset): Move implemenation up.
651 (mips16_get_imm): Likewise.
652 (mips16_scan_prologue): Likewise.
653 (reset_saved_regs): Likewise.
654 (mips32_scan_prologue): Likewise.
655
a65bbe44
JB
6562004-10-14 Joel Brobecker <brobecker@gnat.com>
657
658 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
659 Remove sp as a parameter, compute it internally instead. Move
660 prologue scanning limit from heuristic_proc_desc to here.
661 (mips16_scan_prologue): Likewise.
662 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
663 by call to mips16_scan_prologue.
664 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
665 by call to mips32_scan_prologue.
666 (heuristic_proc_desc): Remove code that's no longer necessary.
667 Update calls to mips16_scan_prologue and mips32_scan_prologue.
668 (mips_skip_prologue): Update calls to mips16_scan_prologue
669 and mips32_scan_prologue.
670
1c645fec
JB
6712004-10-14 Joel Brobecker <brobecker@gnat.com>
672
673 * mips-tdep.c (mips16_scan_prologue): Merge code from
674 mips16_skip_prologue. Now return the address of the first
675 instruction past the function prologue.
676 (mips16_skip_prologue): Remove, no longer necessary.
677 (mips_skip_prologue): Replace call to mips16_skip_prologue
678 by call to mips16_scan_prologue.
679
98b4dd94
JB
6802004-10-14 Joel Brobecker <brobecker@gnat.com>
681
682 * mips-tdep.c (mips32_scan_prologue): Merge code from
683 mips32_skip_prologue. Now return the address of the first
684 instruction past the function prologue.
685 (mips32_skip_prologue): Remove. No longer necessary.
686 (mips16_skip_prologue): Add parameter end_pc instead of
687 computing it.
688 (mips_skip_prologue): Compute the upper limit for the
689 prologue scanning. Update call to mips16_skip_prologue.
690 Replace call to mips32_skip_prologue by call to
691 mips32_scan_prologue.
692
ad4c72d2
MK
6932004-10-14 Mark Kettenis <kettenis@gnu.org>
694
dfaf8edb
MK
695 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
696 NetBSD system call stubs that store %rp in the ERP slot of the
697 stack frame.
698
3e3a28f1
MK
699 * source.c: Always define O_BINARY to 0 if not defined already.
700 (openp): Unconditionally use O_BINARY.
701
ad4c72d2
MK
702 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
703 * event-top.c (gdb_readline2): Likewise.
704
52bd1401
OF
7052004-10-14 Orjan Friberg <orjanf@axis.com>
706
707 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
708 deprecated_add_core_fns which was removed by mistake.
709
e0e25c6c
KB
7102004-10-13 Kevin Buettner <kevinb@redhat.com>
711
712 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
713 references to deprecated_registers[] with equivalent code.
714
9f335945
KB
7152004-10-13 Kevin Buettner <kevinb@redhat.com>
716
717 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
718 ``deprecated_registers'' with equivalent code. Use gdb_assert()
719 instead of explicit test and print statement.
720
06c2338d
MK
7212004-10-12 Mark Kettenis <kettenis@gnu.org>
722
1b9445c2
MK
723 * sparc-nat.c: Include "inf-ptrace.h".
724 (sparc_target): New function.
725 * sparc-nat.h: Update copyright year.
726 (sparc_target): New prototype.
727 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
728 (_initialize_sparcnbsd_nat): Construct and add target vector.
729 * sparc64nbsd-nat.c: Include "target.h".
730 (_initialize_sparc64nbsd_nat): Construct and add target vector.
731 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
732 Update dependencies.
733 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
734 inftarg.o, add inf-ptrace.o.
735 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
736 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
737 (NAT_FILE): Set to nm-bsd.h.
738 (LOADLIBES): New variable.
739 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
740 infarg.o, add inf-ptrace.o.
741 * config/sparc/nm-nbsdaout.h: Remove file.
742 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
743 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
744 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
745
06c2338d
MK
746 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
747 "fopen-same.h". Update comment.
748
3303a276
MK
7492004-10-11 Mark Kettenis <kettenis@gnu.org>
750
751 * i386gnu-nat.c: Include "gdb_string.h".
752 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
753 registers when the floating-point state isn't initialized.
754 * Makefile.in (i386gnu-nat.o): Update dependencies.
755
04c663e3
DA
7562004-10-11 David Anderson <davea@sgi.com>
757
758 * regcache.c (regcache_raw_read): Comment was missing "to".
759 Extraneous ' removed.
760 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
761 comment now describes use.
762
a5f6c8f5
OF
7632004-10-11 Orjan Friberg <orjanf@axis.com>
764
765 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
766 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
767 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
768 (cris_sigtramp_frame_sniffer): New functions.
769 (cris_gdbarch_init): Hook in signal trampoline unwinder.
770 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
771 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
772 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
773 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
774 command.
775 (cris_version_update): Remove, replace with ...
776 (set_cris_version): New function.
777 (struct gdbarch_tdep, cris_mode, cris_mode_update)
778 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
779 (_initialize_cris_tdep): Remove CRIS mode command.
780 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
781 cris-fpless-backtrace command.
782 (cris_scan_prologue): Fix prologue scanning limit.
783 (cris_register_type): Update to reflect actual registers.
784 (cris_register_bytes_ok) Remove.
785 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
786 Remove set_gdbarch_deprecated_register_size,
787 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
788
77109804
AC
7892004-10-10 Andrew Cagney <cagney@gnu.org>
790
791 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
792 comment.
793
25652d4f
JB
7942004-10-10 Joel Brobecker <brobecker@gnat.com>
795
796 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
797
1e05a7bf
JB
7982004-10-10 Joel Brobecker <brobecker@gnat.com>
799
800 * mips-tdep.c (mips16_scan_prologue): Renames
801 mips16_heuristic_proc_desc. Update comment.
802 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
803 (heuristic_proc_desc): Update calls to the 2 functions above.
804
c68a4142
JB
8052004-10-10 Joel Brobecker <brobecker@gnat.com>
806
807 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
808 Update comments. Also immediately return empty cache when the start
809 address of our function could not be found.
810 (mips_insn32_frame_cache): Likewise.
811
0fce0821
JB
8122004-10-10 Joel Brobecker <brobecker@gnat.com>
813
814 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
815 (mips_insn16_frame_cache): Pass frame cache in call to
816 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
817 Remove code that became redundant as a consequence.
818 (mips32_heuristic_proc_desc): No longer compute a fake
819 procedure descriptor. Compute the full frame cache instead.
820 Some minor comment reformatting.
821
b672553e
JB
8222004-10-10 Jim Blandy <jimb@redhat.com>
823
824 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
825 reader, tracing bytecode stuff): Remove self.
826
9cc52bde
MK
8272004-10-10 Mark Kettenis <kettenis@gnu.org>
828
cc9784b6
MK
829 * sparc64-linux-tdep.c: Update copyright year. Don't include
830 "solib-svr4.h".
831 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
832 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
833 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
834
ee8aef23
MK
835 * sparc-linux-tdep.c: Update copyright year.
836 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
837 to struct frame_info *. Use safe_frame_unwind_memory instead of
838 deprecated_read_memory_nobpt.
839 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
840 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
841 changed signature of sparc_linux_sigtramp_start.
842 (sparc32_linux_pc_in_sigtramp): Remove function.
843 (sparc32_linux_sigtramp_p): New function.
844 (sparc32_linux_sigtramp_frame_sniffer): Use
845 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
846
bc73f8cc
MK
847 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
848 Remove function.
849 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
850
a2249542
MK
851 * ada-lang.c (lim_warning): Re-implement as a varargs function.
852 (decode_packed_array_type, value_subscript_packed)
853 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
854 argument in call to lim_warning.
855
9cc52bde
MK
856 * configure.in: Really disable the TUI if an enhanced curses
857 library isn't found.
858 * configure: Regenerate.
859
151fc45b
MK
8602004-10-09 Mark Kettenis <kettenis@gnu.org>
861
862 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
863 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
864 * config/i386/nm-nbsdaout.h: Remove file.
865 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
866 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
867 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
868 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
869 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
870 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
871 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
872 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
873 (ldd, ld_un, ld_2): Remove defines.
874 * config/i386/nm-obsd.h: Likewise.
875
375c0479
PH
8762004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
877
878 * ada-lex.l: Remove useless rule whose right-context clause
879 causes unreferenced static function warning for yyrealloc.
880 (ada_flex_use): Remove the artificial reference to yyrealloc.
881
c8e73a31
AC
8822004-10-08 Andrew Cagney <cagney@gnu.org>
883
884 * target.h (struct target_ops): Rename to_xfer_memory to
885 deprecated_xfer_memory.
886 * target.c: Update.
887 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
888 * wince.c: Update.
889 * win32-nat.c: Update.
890 * v850ice.c: Update.
891 * uw-thread.c: Update.
892 * thread-db.c: Update.
893 * sol-thread.c: Update.
894 * remote.c: Update.
895 * remote-vx.c: Update.
896 * remote-st.c: Update.
897 * remote-sim.c: Update.
898 * remote-sds.c: Update.
899 * remote-rdp.c: Update.
900 * remote-rdi.c: Update.
901 * remote-mips.c: Update.
902 * remote-m32r-sdi.c: Update.
903 * remote-e7000.c: Update.
904 * procfs.c: Update.
905 * ppc-bdm.c: Update.
906 * nto-procfs.c: Update.
907 * monitor.c: Update.
908 * linux-nat.c: Update.
909 * inftarg.c: Update.
910 * hpux-thread.c: Update.
911 * go32-nat.c: Update.
912 * gnu-nat.c: Update.
913 * exec.c: Update.
914 * corelow.c: Update.
915 * bsd-kvm.c: Update.
916 * aix-thread.c: Update.
917
aa869812
AC
9182004-10-08 Andrew Cagney <cagney@gnu.org>
919
920 * target.c (debug_target): Move to near start of file.
921 (target_stopped_data_address_p): Re-org logic, add casts.
922
8dcef9cf
MK
9232004-10-02 Mark Kettenis <kettenis@gnu.org>
924
925 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
926 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
927 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
928 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
929 New defines.
930
4aa7a7f5
JJ
9312004-10-08 Jeff Johnston <jjohnstn@redhat.com>
932
933 * target.h (to_stopped_data_address): Change prototype to
934 take a CORE_ADDR pointer and return an int.
935 * target.c (update_current_target): Change to_stopped_data_address
936 to match new prototype.
937 (debug_to_stopped_data_address): Change appropriately.
938 * breakpoint.c (bpstat_stop_status): Change call to
939 target_stopped_data_address to use new prototype.
940 * frv-tdep.c (frv_have_stopped_data_address): New function.
941 (frv_stopped_data_address): Change to new prototype and
942 functionality.
943 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
944 prototype and functionality.
945 (ia64_stopped_by_watchpoint): New function.
946 * i386-nat.c (i386_stopped_data_address): Change to new
947 prototype and functionality.
948 (i386_stopped_by_watchpoint): New function.
949 * remote.c (remote_stopped_data_address): Change to new prototype
950 and functionality.
951 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
952 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
953 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
954 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
955 new i386_stopped_by_watchpoint function.
956 (i386_stopped_by_watchpoint): New prototype.
957 (i386_stoppped_data_address): Change to new prototype.
958 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
959 new ia64_stopped_by_watchpoint function.
960 (ia64_stopped_by_watchpoint): New prototype.
961 (ia64_stopped_data_address): Ditto.
962
61ee279c
PH
9632004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
964
965 * ada-typeprint.c (ada_print_type): Use int_string for printing
966 modulus of modular type.
967 * ada-lang.h (ada_modulus): Change return type to unsigned.
968 * ada-lang.c (ada_language_arch_info): Correct type of
969 string_char_type.
970 (ada_modulus): Return unsigned result.
971 (ada_lookup_symbol): Remove user disambiguation and modify comment
972 accordingly.
973
9742004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
975
976 Committed by Paul Hilfinger.
977 * ada-lang.c (decode_packed_array): On big-endian targets,
978 left-justify the value if it comes with a modular type.
979
9802004-10-08 Joel Brobecker <brobecker@gnat.com>
981
982 Committed by Paul Hilfinger.
983 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
984 (is_name_suffix): Add support for "___JM" suffixes.
985 (ada_check_typedef): Renames ada_completed_type.
986 Update all users of CHECK_TYPEDEF, check_typedef, and
987 ada_complete_type to call ada_check_typedef.
988 * ada-typeprint.c: Likewise.
989 * ada-valprint.c: Likewise.
990
b6c25a56
CV
9912004-10-08 Corinna Vinschen <vinschen@redhat.com>
992
993 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
994
83ca6a46
NR
9952004-10-08 Nick Roberts <nickrob@snap.net.nz>
996
997 * MAINTAINERS: Update e-mail address.
998
1fd8cd20
DJ
9992004-10-07 Daniel Jacobowitz <dan@debian.org>
1000
1001 From Maciej W. Rozycki <macro@mips.com>:
1002 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1003 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1004
cea15572
KI
10052004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1006
1007 * m32r-tdep.c (decode_prologue): Support functions written
1008 in assembler language. Recognize trap instructions as the
1009 end of prologue.
1010 (m32r_frame_unwind_cache): Ditto.
1011 (m32r_skip_prologue): Extend search limit. Quit analyzing
1012 prologue if pc's location is not readable.
1013
23485554
PH
10142004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1015
1016 * Makefile.in (.l.c): Do conversions of names of alloc and free
1017 functions that are done for .y.c files, plus special one
1018 for yy_flex_realloc. Also, correct missing-file tests here.
1019 * ada-lex.l (malloc, free): Remove macros.
1020 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1021 xrealloc.
1022 (ada_flex_use): Dummy definition to remove warnings about unused
1023 functions.
1024 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1025 to suppress warning.
1026
c0409442
CV
10272004-10-06 Corinna Vinschen <vinschen@redhat.com>
1028
1029 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1030 RETURN_VALUE.
1031 (sh_return_value_fpu): Ditto for CPUs with FPU.
1032 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1033 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1034 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1035 RETURN_VALUE functions.
1036
9bed62d7
CV
10372004-10-06 Corinna Vinschen <vinschen@redhat.com>
1038
1039 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1040 (sh_pseudo_register_write): Ditto.
1041
03131d99
CV
10422004-10-06 Corinna Vinschen <vinschen@redhat.com>
1043
1044 * sh-tdep.c (IS_MACL_STS): New define.
1045 (IS_MOVI20): Ditto.
1046 (IS_MACL_LDS): Ditto.
1047 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1048 instructions in prologue.
1049 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1050 instructions in epilogue.
1051
da962468
CV
10522004-10-06 Corinna Vinschen <vinschen@redhat.com>
1053
1054 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1055 (sh_sh_register_name): Add eight empty register names.
1056 (sh_sh3_register_name): Ditto.
1057 (sh_sh3e_register_name): Ditto.
1058 (sh_sh2e_register_name): Ditto.
1059 (sh_sh2a_register_name): New function, defining SH2A register set.
1060 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1061 in nofpu case.
1062 (sh_sh_dsp_register_name): Add eight empty register names.
1063 (sh_sh3_dsp_register_name): Ditto.
1064 (sh_sh4_register_name): Ditto.
1065 (sh_sh4_nofpu_register_name): Ditto.
1066 (sh_sh4al_dsp_register_name): Ditto.
1067 (sh2a_show_regs): New function.
1068 (sh2a_nofpu_show_regs): New function.
1069 (sh_sh2a_register_type): New function.
1070 (do_bank_register_info): New function.
1071 (sh_print_pseudo_register): Call do_bank_register_info.
1072 Call sh_print_pseudo_register for valid "bank" register.
1073 (sh_sh2a_register_sim_regno): New function.
1074 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1075 Increment pseudo register count by one for all sh variants with
1076 pseudo registers to accomodate pseudo bank register.
1077 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1078 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1079 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1080 Increment pseudo register numbers.
1081
1326e61b
CV
10822004-10-06 Corinna Vinschen <vinschen@redhat.com>
1083
1084 * dwarf2read.c (read_subroutine_type): Call make_function_type
1085 instead of lookup_function_type.
1086
146c42e3
JB
10872004-10-05 Jim Blandy <jimb@redhat.com>
1088
1089 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1090 (Previous change missed some uses.)
1091
1df84f13
AC
10922004-10-05 Andrew Cagney <cagney@gnu.org>
1093
1094 * target.h (deprecated_child_ops): Rename child_ops.
1095 * wince.c: Update copyright. Rename child_ops.
1096 * win32-nat.c: Rename child_ops.
1097 * target.c: Rename child_ops.
1098 * rs6000-nat.c: Rename child_ops.
1099 * linux-nat.c: Rename child_ops.
1100 * infttrace.c: Rename child_ops.
1101 * inftarg.c: Rename child_ops.
1102 * infptrace.c: Rename child_ops.
1103 * hppah-nat.c: Update copyright. Rename child_ops.
1104 * hpux-thread.c: Update copyright. Rename child_ops.
1105
21e3b9b9
DJ
11062004-10-05 Daniel Jacobowitz <dan@debian.org>
1107
1108 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1109
de83afe7
AC
11102004-10-05 Andrew Cagney <cagney@gnu.org>
1111
1112 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1113
10b3939b
DJ
11142004-10-05 Daniel Jacobowitz <dan@debian.org>
1115
1116 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1117 (die_ref_table): Remove.
1118 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1119 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1120 the usage of this type.
1121 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1122 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1123 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1124 (dwarf2_create_include_psymtab): Update comment.
1125 (find_partial_die): Remove third argument. Remove unreachable call
1126 to error ().
1127 (dwarf2_find_containing_comp_unit): Update comments. Change one
1128 assertion to an error. Remove an unreachable error.
1129 (dwarf2_find_comp_unit): Update comments.
1130 (type_at_offset): Remove dead code.
1131 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1132 (store_in_ref_table): Add CU argument.
1133 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1134 inter-compilation-unit references.
1135 (load_full_comp_unit, process_full_comp_unit): New functions, based
1136 on psymtab_to_symtab_1.
1137 (psymtab_to_symtab_1): Use them.
1138 (dwarf2_add_dependence): New function.
1139 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1140 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1141 (partial_die_parent_scope, guess_structure_name): Update for changes
1142 to find_partial_die.
1143 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1144 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1145 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1146 (read_die_and_children): Update call to store_in_ref_table.
1147 (do_free_die_list_cleanup): Remove.
1148 (fixup_partial_die): Update for changes to find_partial_die.
1149 (read_full_die): Handle queueing absolute references.
1150 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1151 (dwarf2_attr, die_specification, die_type)
1152 (die_containing_type, dwarf2_extension): Update calls to
1153 follow_die_ref.
1154 (dump_die): Update DW_FORM_ref* handling.
1155 (dwarf2_get_ref_die_offset): Likewise.
1156 (free_one_comp_unit): Release the dies list.
1157 (dwarf2_mark_helper): New function.
1158 (dwarf2_mark): Use it.
1159
998bdd68
MK
11602004-10-05 Mark Kettenis <kettenis@jive.nl>
1161
1162 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1163 when writing to memory.
1164
14588880
KI
11652004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1166
1167 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1168 (m32r_extract_struct_value_address): Delete function.
1169 (m32r_return_value): New function.
1170 (m32r_gdbarch_init): Instead of store_return_value,
1171 extract_return_value, deprecated_extract_struct_value_address
1172 and deprecated_use_struct_convention, set return_value.
1173
dd5e6932
DJ
11742004-10-03 Daniel Jacobowitz <dan@debian.org>
1175
1176 * dwarf2read.c (read_subrange_type): Add comment for variable
1177 sized arrays.
1178
7dc1ef8d
PH
11792004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1180
1181 * Makefile.in (.l.c): Modify rule for compatibility with recent
1182 versions of flex, and remove most command-line options.
1183 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1184 options.
1185
1f8173e6
PH
11862004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1187
1188 Turn on initial Ada support (mainly expression evaluation).
1189
1190 * Makefile.in (SFILES): Remove ada-tasks.c.
1191 (HFILES_NO_SRCDIR): Add ada-lang.h.
1192 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1193 (YYOBJ): Add ada-exp.o.
1194 (rule .l.c): Generalize to not mention ada.
1195 * symtab.c: Include ada-lang.h.
1196 (symbol_natural_name, symbol_demangled_name)
1197 (symbol_search_name): Add Ada case.
1198
cb85a953
AC
11992004-10-01 Andrew Cagney <cagney@gnu.org>
1200
3f3db248
AC
1201 * Makefile.in (COMMON_OBS): Add inf-child.o.
1202 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1203 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1204 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1205 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1206 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1207 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1208 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1209 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1210 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1211 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1212 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1213 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1214 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1215
cb85a953
AC
1216 * target.c (xfer_using_stratum): Change return type to LONGEST.
1217 On each iteration offset, readbuf and writebuf.
1218 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1219 partial_length, and read/modify/write predicate, update comments.
1220 Pass buffer.word to ptrace write.
1221
963a6417
PH
12222004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1223
1224 * symfile.c (init_filename_language_table): Add extensions for
1225 Ada.
1226 * defs.h (enum language): Add language_ada.
1227 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1228 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1229 (add_symbols_from_enclosing_procs): Make a no-op for now.
1230 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1231 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1232 (find_line_in_linetable, find_next_line_in_linetable)
1233 (read_all_symtabs, is_plausible_func_for_line)
1234 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1235 (is_runtime_sym_defined, check_size): Remove declaration.
1236 (function_name_from_pc, ada_translate_error_message)
1237 (ada_lookup_minimal_symbol): Remove definition.
1238 (ada_add_block_symbols): Remove useless label.
1239 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1240 useless declaration.
1241 (ada_is_exception_sym): Likewise.
1242
9b32d526
KI
12432004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1244
1245 Add m32r-linux support.
1246 * configure.tgt: Add m32r*-*-linux*.
1247 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1248 and m32r-linux-tdep.c.
1249 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1250 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1251 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1252 m32r-linux-tdep.c.
1253 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1254 config/m32r/linux.mh, config/m32r/linux.mt,
1255 config/m32r/nm-linux.h: New files.
1256
2de118d3
JB
12572004-09-30 Joel Brobecker <brobecker@gnat.com>
1258
1259 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1260 (mips32_fetch_instruction): Remove, unused.
1261
a9fe69d1
JB
12622004-09-30 Joel Brobecker <brobecker@gnat.com>
1263
1264 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1265 conditions that will always be true.
1266
bc8ffc12
MK
12672004-09-30 Mark Kettenis <kettenis@gnu.org>
1268
ba0cd111
MK
1269 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1270 (vaxbsd_fetch_inferior_registers): Rename from
1271 fetch_inferior_registers. Make static.
1272 (vaxbsd_store_inferior_registers): Rename from
1273 store_inferior_registers. Make static.
1274 (_initialize_vaxbsd_nat): Construct and add target vector.
1275 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1276 inftarg.o. Add inf-child.o and inf-ptrace.o.
1277 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1278 inftarg.o. Add inf-child.o and inf-ptrace.o.
1279 (NAT_FILE): Remove.
1280 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1281 inftarg.o. Add inf-child.o and inf-ptrace.o.
1282 (NAT_FILE): Remove.
1283 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1284
bc8ffc12
MK
1285 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1286 (m88kbsd_fetch_inferior_registers): Rename from
1287 fetch_inferior_registers. Make static.
1288 (m88kbsd_store_inferior_registers): Rename from
1289 store_inferior_registers. Make static.
1290 (_initialize_m88kbsd_nat): New prototype and function.
1291 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1292 inftarg.o. Add inf-child.o and inf-ptrace.o.
1293 (NAT_FILE): Remove.
1294 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1295
27394598
AC
12962004-09-30 Andrew Cagney <cagney@gnu.org>
1297
1298 * target.c (target_xfer_partial): New function.
1299 (target_read_memory_partial, target_write_memory_partial)
1300 (default_xfer_partial, target_read_partial, target_write_partial)
1301 (xfer_using_stratum): Use.
1302 (debug_to_xfer_partial): Delete function.
1303 (setup_target_debug): Do not override to_xfer_partial.
1304
74a4fe32
MK
13052004-09-30 Mark Kettenis <kettenis@chello.nl>
1306
1307 * fork-child.c: Update copyright year. Fix coding style.
1308
982526a1
MK
13092004-09-29 Mark Kettenis <kettenis@gnu.org>
1310
1311 * defs.h (msavestring, mstrsave): Remove prototypes.
1312 * utils.c (msavestring, mstrsave): Remove functions.
1313 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1314 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1315 of mstrsave.
1316 * source.c (find_and_open_source): Use xstrdup instead of
1317 mstrsave.
1318
b8eb5af0
AC
13192004-09-30 Andrew Cagney <cagney@gnu.org>
1320
0779438d
AC
1321 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1322 (inf_ptrace_xfer_memory): Delete.
1323 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1324 (target_read_memory, target_write_memory): Use xfer_using_stratum
1325 when target_xfer_partial_p.
1326 (debug_target): Move to start of file.
1327 (target_read_memory_partial, target_write_memory_partial): Use
1328 to_xfer_partial when target_xfer_partial_p.
1329
f929a579
AC
1330 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1331 inf_ptrace_xfer_memory with equivalent code.
1332 * inftarg.c (child_xfer_partial): When performing a write, pass
1333 writebuf to child_xfer_memory.
1334
b8eb5af0
AC
1335 * target.c (target_read_string): Use target_read_memory instead of
1336 target_xfer_memory.
1337
ee21b650
AC
13382004-09-29 Andrew Cagney <cagney@gnu.org>
1339
d3e05d0d
AC
1340 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1341 the address of status.
1342
ee21b650
AC
1343 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1344 (kill_inferior): Inline ptrace_wait call.
1345 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1346 * inftarg.c (child_wait): Inline ptrace_wait call.
1347
a182eed6
AC
1348 * target.h (struct target_ops): Delete field to_post_wait.
1349 (target_post_wait): Delete macro.
1350 (child_post_wait): Delete declaration.
1351 * target.c (update_current_target, update_current_target)
1352 (debug_to_post_wait, setup_target_debug): Delete functions and
1353 references.
1354 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1355 * inftarg.c (child_post_wait): Delete.
1356 (init_child_ops): Do not set to_post_wait.
1357 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1358 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1359 * inf-child.c (inf_child_post_wait): Delete.
1360 (inf_child_target): Do not set to_post_wait.
1361 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1362 (inf_ptrace_target): Do not set to_post_wait.
1363
ba0c540b
AC
1364 * wince.c (child_ops): Delete.
1365 * win32-nat.c (child_ops): Delete.
1366
81977402
AC
1367 * inftarg.c (inftarg_set_find_memory_regions)
1368 (inftarg_set_make_corefile_notes): Delete functions.
1369 (_initialize_linux_nat): Inline calls.
1370
5ac10fd1
AC
1371 * target.h (child_ops): Declare.
1372 * inftarg.c (child_ops): Move from here ...
1373 * target.c (child_ops): ... to here.
1374 * wince.c (child_ops): Delete extern declaration.
1375 * win32-nat.c (child_ops): Delete extern declaration.
1376 * linux-nat.c (child_ops): Delete extern declaration.
1377 * hpux-thread.c (child_ops): Delete extern declaration.
1378
663408c2 13792004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1380
1381 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1382
0dad8a66
MK
13832004-09-28 Mark Kettenis <kettenis@gnu.org>
1384
1385 * configure.in: Only set host_makefile_frag when building a native
1386 debugger.
1387 * configure: Regenerate.
e8d74ed3
MK
1388
1389 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1390 for OpenBSD ELF.
1391
dba24537
AC
13922004-09-28 Andrew Cagney <cagney@gnu.org>
1393
e979516b
AC
1394 Problem identified by Paul Hilfinger.
1395 * Makefile.in (ada_lex_c): Define.
1396 (ada-lex.o): Delete rule.
1397
dba24537
AC
1398 * linux-proc.c: Delete file.
1399 * Makefile.in: Update.
1400 * config/sparc/linux64.mh (NATDEPFILES):
1401 * config/sparc/linux.mh (NATDEPFILES): Update.
1402 * config/s390/s390.mh (NATDEPFILES): Update.
1403 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1404 * config/powerpc/linux.mh (NATDEPFILES): Update.
1405 * config/pa/linux.mh (NATDEPFILES): Update.
1406 * config/mips/linux.mh (NATDEPFILES): Update.
1407 * config/m68k/linux.mh (NATDEPFILES): Update.
1408 * config/ia64/linux.mh (NATDEPFILES): Update.
1409 * config/i386/linux64.mh (NATDEPFILES): Update.
1410 * config/i386/linux.mh (NATDEPFILES): Update.
1411 * config/arm/linux.mh (NATDEPFILES): Update.
1412 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1413 * linux-nat.c: Update copyright. Include <sys/param.h>,
1414 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1415 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1416 (O_LARGEFILE): Possibly define.
1417 (_initialize_linux_nat, linux_proc_pending_signals)
1418 (add_line_to_sigset, linux_proc_xfer_memory)
1419 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1420 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1421 (struct linux_corefile_thread_data)
1422 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1423 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1424
d6b0e80f
AC
14252004-09-16 Andrew Cagney <cagney@gnu.org>
1426
1427 * lin-lwp.c: Delete file.
1428 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1429 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1430 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1431 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1432 (linux_nat_attach, detach_callback, linux_nat_detach)
1433 (resume_callback, resume_clear_callback, linux_nat_resume)
1434 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1435 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1436 (status_callback, running_callback, count_events_callback)
1437 (select_singlestep_lwp_callback, select_event_lwp_callback)
1438 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1439 (child_wait, stop_and_resume_callback, linux_nat_wait)
1440 (kill_callback, kill_wait_callback, linux_nat_kill)
1441 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1442 (linux_nat_xfer_memory, linux_nat_thread_alive)
1443 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1444 (_initialize_linux_nat): New functions.
1445 * Makefile.in: Update all dependencies.
1446 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1447 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1448 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1449 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1450 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1451 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1452 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1453 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1454 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1455 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1456 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1457 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1458 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1459
5a174d79
MK
14602004-09-27 Mark Kettenis <kettenis@gnu.org>
1461
2f604c28
MK
1462 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1463 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1464
5a174d79
MK
1465 * configure.in: Don't comment out NATDEPFILES in the generated
1466 Makefile if NAT_FILE is unset.
1467 * configure: Regenerate.
1468
b2ed1746
AC
14692004-09-27 Andrew Cagney <cagney@gnu.org>
1470
44cbf7b5
AC
1471 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1472 (insert_step_resume_breakpoint): Delete.
1473 (insert_step_resume_breakpoint_at_frame): New function.
1474 (insert_step_resume_breakpoint_at_sal): New function.
1475 (handle_inferior_event, step_into_function)
1476 (insert_step_resume_breakpoint): Simplify by using same.
1477
b2ed1746
AC
1478 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1479
3691b3be
MK
14802004-09-26 Mark Kettenis <kettenis@gnu.org>
1481
36f391e8
MK
1482 * fbsd-proc.c: Remove file.
1483 * Makefile.in (fbsd-proc.o): Remove dependency.
1484
771e236c
MK
1485 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1486 code together.
1487
3691b3be
MK
1488 * config/i386/nm-fbsd64.h: Remove file.
1489 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1490
6a5c78a3
MK
14912004-09-26 Mark Kettenis <kettenis@gnu.org>
1492
1493 * amd64-nat.h: Update copyright year.
1494 (amd64bsd_target): New prototype.
1495 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1496 (amd64bsd_target): New function.
1497 (amd64bsd_fetch_inferior_registers): Rename from
1498 fetch_inferior_registers. Make static.
1499 (amd64bsd_store_inferior_registers): Rename from
1500 store_inferior_registers. Make static.
1501 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1502 (_initialize_amd64fbsd_nat): Construct and add target vector.
1503 * amd64nbsd-nat.o: Include "target.h".
1504 (_initialize_amd64nbsd_nat): Construct and add target vector.
1505 * amd64obsd-nat.c: Include "target.h".
1506 (_initialize_amd64obsd_nat): Construct and add target vector.
1507 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1508 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1509 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1510 fbsd-nat.o.
1511 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1512 Remove infptrace.o and inftarg.o. Add inf-child.o and
1513 inf-ptrace.o.
1514 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1515 (amd64obsd-nat.o): Update dependencies.
1516
27acbe61
MK
15172004-09-25 Mark Kettenis <kettenis@gnu.org>
1518
509a5e7d
MK
1519 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1520 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1521 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1522 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1523 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1524
6e1e94ea
MK
1525 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1526 Inline attach call.
1527 (inf_ptrace_detach): Inline detach call.
1528
8b9cf735
MK
1529 * configure.in: Check for waddstr instead of mvwaddstr when
1530 searching for curses library. Check for wborder.
1531 * configure, config.in: Regenerate.
1532 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1533 available.
1534
27acbe61
MK
1535 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1536
b96ec7ac
AC
15372004-09-24 Robert Picco <Robert.Picco@hp.com>
1538
1539 Committed by Andrew Cagney.
1540 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1541 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1542 configuration.
1543 (fetch_register_using_p): Implement 'p' packet. Based on code by
1544 Fernando Nasser.
1545 (remote_fetch_registers): Call fetch_register_using_p.
1546 (init_all_packet_configs, show_remote_cmd)
1547 (_initialize_remote): Add p-packet.
1548
62ece330
MK
15492004-09-24 Mark Kettenis <kettenis@gnu.org>
1550
1551 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1552 instead of call_ptrace. Call wait directly instead of
1553 ptrace_wait.
1554 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1555 (inf_ptrace_wait): Inline ptrace_wait call.
1556
00937274
PH
15572004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1558
1559 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1560 rolled back instead.
1561
3f2c7a45
PH
15622004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1563
1564 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1565 the new argument order.
1566
b6fcb393
CV
15672004-09-23 Corinna Vinschen <vinschen@redhat.com>
1568
1569 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1570 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1571 (struct gdbarch_tdep): Remove.
1572 (struct xstormy16_frame_cache): New frame cache structure.
1573 (xstormy16_register_byte, xstormy16_register_raw_size)
1574 (xstormy16_reg_virtual_type, xstormy16_register_type)
1575 (xstormy16_push_arguments, xstormy16_push_return_address)
1576 (xstormy16_pop_frame, xstormy16_store_struct_return)
1577 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1578 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1579 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1580 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1581 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1582 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1583 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1584 (xstormy16_extract_return_value, xstormy16_store_return_value):
1585 Regcachify. Drop useless struct convention handling.
1586 (xstormy16_register_type, xstormy16_return_value)
1587 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1588 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1589 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1590 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1591 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1592 (xstormy16_unwind_dummy_id) : New functions.
1593 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1594 of xstormy16_scan_prologue.
1595 (xstormy16_frame_unwind): New frame_unwind structure.
1596 (xstormy16_frame_base): New frame_base structure.
1597 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1598 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1599
1285b746
MK
16002004-09-22 Mark Kettenis <kettenis@gnu.org>
1601
1602 * language.c (language_gdbarch_post_init): Fix off-by one error.
1603
1c379e20
DJ
16042004-09-21 Daniel Jacobowitz <dan@debian.org>
1605
1606 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1607 (struct dwarf2_offset_and_type): New.
1608 (set_die_type, reset_die_and_siblings_types, get_die_type)
1609 (offset_and_type_hash, offset_and_type_eq): New functions.
1610 (read_structure_type, read_enumeration_type, read_array_type)
1611 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1612 (read_tag_reference_type, read_tag_const_type)
1613 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1614 (read_typedef, read_base_type, read_subrange_type): Use
1615 set_die_type.
1616
ae038cb0
DJ
16172004-09-20 Daniel Jacobowitz <dan@debian.org>
1618
1619 * Makefile.in (dwarf2read.o): Update dependencies.
1620 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1621 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1622 and read_in_chain.
1623 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1624 mark, and has_form_ref_addr.
1625 (struct dwarf2_per_cu_data): New.
1626 (dwarf2_max_cache_age): New.
1627 (dwarf2_build_psymtabs_hard): Free cached compilation units
1628 after loading. Create and manage the list of compilation units.
1629 Remove unnecessary NULL initialization. Fix indentation.
1630 (psymtab_to_symtab_1): Initialize all of CU.
1631 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1632 (find_partial_die): Use dwarf2_find_containing_comp_unit
1633 and load_comp_unit.
1634 (free_stack_comp_unit): Update comments. Clear the per-cu
1635 pointer. Handle aging.
1636 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1637 (age_cached_comp_units, free_one_cached_comp_unit)
1638 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1639 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1640 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1641 (show_dwarf2_cmd): New.
1642 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1643 and "maint show dwarf2 max-cache-age".
1644 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1645 externs.
1646 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1647 global.
1648
987504bb
JJ
16492004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1650
1651 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1652 and dwarf2_cu struct pointer as arguments. Change function to use
1653 obstack if provided and use dwarf2_cu to determine language-specific
1654 separator.
1655 (partial_die_parent_scope): Change comment to include java. Use
1656 new version of typename_concat instead of obconcat.
1657 (partial_die_full_name): Use typename_concat.
1658 (read_namespace): Ditto.
1659 (read_enumeration_type): Use typename_concat instead of obconcat.
1660 (new_symbol): Ditto.
1661 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1662 (guess_structure_name): Ditto.
1663 (read_subroutine_type): Ditto.
1664 (read_structure_type): Ditto.
1665 (is_vtable_name): Add Java support.
1666 (determine_class_name): Switch to new typename_concat call.
1667 (determine_prefix): Switch to new typename_concat call.
1668 * jv-exp.y (FuncStart): New pattern.
1669 (MethodInvocation): Add support for simple function calls. Change
1670 warning message for other forms of inferior call currently not
1671 supported.
1672 * valarith.c (value_subscript): Treat an array with upper-bound
1673 of -1 as unknown size.
1674
d9c8471e
DJ
16752004-09-20 Daniel Jacobowitz <dan@debian.org>
1676
1677 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1678 (lookup_partial_symtab): Use symtab_to_fullname.
1679
d73f140a
JB
16802004-09-19 Jim Blandy <jimb@redhat.com>
1681
1682 * minsyms.c (lookup_minimal_symbol): Doc fix.
1683
adbef1f0
AC
16842004-09-20 Andrew Cagney <cagney@gnu.org>
1685
1686 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1687 CHILD_RESUME.
1688 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1689 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1690 KILL_INFERIOR.
1691 * infptrace.c: Update.
1692
d092d1a2
DJ
16932004-09-19 Daniel Jacobowitz <dan@debian.org>
1694
1695 * symtab.c (output_source_filename): Mark first argument as const.
1696 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1697 for "info sources" output.
1698
86d9e1d7
MK
16992004-09-20 Mark Kettenis <kettenis@gnu.org>
1700
1701 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1702 <machine/vmparam.h>.
1703 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1704 (register_u_addr): Remove prototype.
1705
9a6c8ef4
MK
17062004-09-19 Mark Kettenis <kettenis@gnu.org>
1707
9692934b
MK
1708 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1709 (i386bsd_fetch_inferior_registers): Rename from
1710 fetch_inferior_registers. Make static.
1711 (i386bsd_store_inferior_registers): Rename from
1712 store_inferior_registers. Make static.
1713 (i386bsd_target): New function.
1714 * i386bsd-nat.h: New file.
1715 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1716 "i386bsd-nat.h".
1717 (i386fbsd_resume): Rename from child_resume. Make static.
1718 (_initialize_i386fbsd_nat): Construct and add target vector.
1719 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1720 (_initialize_i386nbsd_nat): Construct and add target vector.
1721 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1722 Remove defines.
1723 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1724 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1725 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1726 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1727 (LOADLIBES): New variable.
1728 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1729 inf-ptrace.o. Remove inftarg.o.
1730 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1731 inf-ptrace.o. Remove inftarg.o.
1732 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1733 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1734 (LOADLIBES): New variable.
1735 * Makefile.in (i386bsd_nat_h): New variable.
1736 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1737 dependencies.
1738
3510d1f2
MK
1739 * sparc64nbsd-tdep.c: Include "objfiles.h".
1740 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1741 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1742 svr4_lp64_fetch_link_map_offsets.
1743 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1744 "nbsd-tdep.h".
1745 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1746 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1747 svr4_lp64_fetch_link_map_offsets.
1748 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1749 dependencies.
1750
578c1c03
MK
1751 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1752 * fbsd-nat.h: New file.
1753 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1754 (fbsd_nat_h): New variable.
1755 (fbsd-nat.o): New dependency.
1756
7a7b73b7
MK
1757 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1758 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1759
9a6c8ef4
MK
1760 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1761 comment.
1762
72d5681a
PH
17632004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1764
1765 * ada-exp.y (type_int): New function to add layer of abstraction
1766 around references to expression types.
1767 (type_long): Ditto.
1768 (type_long_long): Ditto.
1769 (type_float): Ditto.
1770 (type_double): Ditto.
1771 (type_long_double): Ditto.
1772 (type_char): Ditto.
1773 (type_system_address): Ditto.
1774 (simple_exp): Use type_* functions in place of builtin_*
1775 variables.
1776 (exp): Ditto.
1777 (write_var_from_name): Ditto.
1778 (write_object_renaming): Ditto.
1779 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1780 declaration.
1781 (build_ada_types): Remove, replacing with...
1782 (ada_language_arch_info): New function to initialize primitive
1783 type vector in language_arch_info.
1784 (ada_array_length): Remove use of builtin_type_ada_int.
1785 (value_pos_atr): Ditto.
1786 (ada_evaluate_subexp): Ditto.
1787 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1788 builtin_type_ada_long_long, builtin_type_ada_char,
1789 builtin_type_ada_float, builtin_type_ada_double,
1790 builtin_type_ada_long_double, builtin_type_ada_natural,
1791 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1792 (ada_builtin_types): Remove.
1793 (ada_language_defn): Remove entries for la_builtin_type_vector and
1794 string_char_type and use ada_language_arch_info.
1795 (_initialize_ada_language): Do type-vector initialization along
1796 the lines of c-lang.c.
1797 (ada_create_fundamental_type): Break up line.
1798 (ada_dump_symtab): Remove unused function.
1799 (enum ada_primitive_types): Define.
1800 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1801 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1802 builtin_type_ada_float, builtin_type_ada_double,
1803 builtin_type_ada_long_double, builtin_type_ada_natural,
1804 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1805 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1806 (processInt): Ditto.
1807 (processReal): Ditto.
1808 (name_lookup): Ditto.
1809 * ada-typeprint.c (print_range): Use builtin_type_int, not
1810 builtin_type_ada_int.
1811
4f0be353
MK
18122004-09-18 Mark Kettenis <kettenis@gnu.org>
1813
30b0e2d8
MK
1814 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1815
4f0be353
MK
1816 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1817 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1818 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1819 * configure.in: Improve checks for curses library by checking for
1820 mvwaddstr instead of initscr. Drop HP curses in favour of
1821 standard curses on HP-UX.
1822 * configure: Regenerated.
1823
72d5681a 18242004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1825
1826 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1827 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1828 Minor formatting changes.
1829 (empty_array): Slight rewrite for formatting.
1830 (emit_char,parse,ada_language_defn,build_ada_types,
1831 ada_is_exception_sym, _initialize_ada_language): Move
1832 definitions around.
1833 (ada_dump_symtab): Remove unused definition.
1834 (ada_maybe_exception_partial_symbol): Remove unused definition.
1835
1c8c7407
AC
18362004-09-16 Andrew Cagney <cagney@gnu.org>
1837
7681f339
AC
1838 * inf-child.c: Include "gdb_string.h".
1839 (inf_child_core_file_to_sym_file): Delete.
1840 (inf_child_target): Set to_fetch_registers and to_store_registers.
1841 * inf-ptrace.c: Include "gdb_string.h".
1842 * Makefile.in: Update all dependencies.
1843
1c8c7407
AC
1844 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1845 problem.
1846
65596487
JB
18472004-09-14 Joel Brobecker <brobecker@gnat.com>
1848
1849 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1850 call to heuristic_proc_desc. Remove code that became redundant
1851 as a consequence.
1852 (read_next_frame_reg): Remove special case for SP_REGNUM.
1853 (set_reg_offset): Fix small typo.
1854 (reset_saved_regs): New procedure.
1855 (mips32_heuristic_proc_desc): No longer compute a fake
1856 procedure descriptor. Compute the full frame cache instead.
1857 Some minor comment reformatting.
1858
95575b2e
AC
18592004-09-14 Andrew Cagney <cagney@gnu.org>
1860
f200c492
AC
1861 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1862 maintainer.
1863
95575b2e
AC
1864 * thread-db.c (thread_db_new_objfile): Assume that there is a
1865 child process.
1866
69657671
JB
18672004-09-13 Jim Blandy <jimb@redhat.com>
1868
1869 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1870 so that its storage isn't referenced after its lifetime ends.
1871
6c4182dd
JB
1872 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1873 and never assigned to. Delete it, and the 'if (use_buffer)'
1874 clauses. Delete 'raw_buffer', since it is now unused.
1875
ee31a58d
AC
18762004-09-13 Andrew Cagney <cagney@gnu.org>
1877
2c0fc042
AC
1878 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1879 * configure: Re-generate.
1880 * nlm/Makefile.in (TAGS): Update.
1881 * Makefile.in (TAGS): Update.
1882 * config/vax/nbsd.mt (TM_FILE): Update.
1883 * config/sparc/vxworks.mt (TM_FILE): Update.
1884 * config/sparc/sol2.mt (TM_FILE): Update.
1885 * config/sparc/sol2-64.mt (TM_FILE): Update.
1886 * config/sparc/obsd64.mt (TM_FILE): Update.
1887 * config/sparc/obsd.mt (TM_FILE): Update.
1888 * config/sparc/nbsd64.mt (TM_FILE): Update.
1889 * config/sparc/nbsd.mt (TM_FILE): Update.
1890 * config/sparc/linux64.mt (TM_FILE): Update.
1891 * config/sparc/linux.mt (TM_FILE): Update.
1892 * config/sparc/fbsd.mt (TM_FILE): Update.
1893 * config/sh/wince.mt (TM_FILE): Update.
1894 * config/sh/nbsd.mt (TM_FILE): Update.
1895 * config/sh/linux.mt (TM_FILE): Update.
1896 * config/sh/embed.mt (TM_FILE): Update.
1897 * config/s390/s390.mt (TM_FILE): Update.
1898 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1899 * config/rs6000/rs6000.mt (TM_FILE): Update.
1900 * config/rs6000/aix4.mt (TM_FILE): Update.
1901 * config/powerpc/vxworks.mt (TM_FILE): Update.
1902 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1903 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1904 * config/powerpc/obsd.mt (TM_FILE): Update.
1905 * config/powerpc/nbsd.mt (TM_FILE): Update.
1906 * config/powerpc/linux.mt (TM_FILE): Update.
1907 * config/powerpc/aix.mt (TM_FILE): Update.
1908 * config/pa/obsd.mt (TM_FILE): Update.
1909 * config/pa/linux.mt (TM_FILE): Update.
1910 * config/pa/hppahpux.mt (TM_FILE): Update.
1911 * config/pa/hppa64.mt (TM_FILE): Update.
1912 * config/pa/hppa.mt (TM_FILE): Update.
1913 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1914 * config/mips/wince.mt (TM_FILE): Update.
1915 * config/mips/vxmips.mt (TM_FILE): Update.
1916 * config/mips/nbsd.mt (TM_FILE): Update.
1917 * config/mips/linux.mt (TM_FILE): Update.
1918 * config/mips/irix6.mt (TM_FILE): Update.
1919 * config/mips/irix5.mt (TM_FILE): Update.
1920 * config/mips/embed.mt (TM_FILE): Update.
1921 * config/m68k/vxworks68.mt (TM_FILE): Update.
1922 * config/m68k/st2000.mt (TM_FILE): Update.
1923 * config/m68k/os68k.mt (TM_FILE): Update.
1924 * config/m68k/obsd.mt (TM_FILE): Update.
1925 * config/m68k/nbsd.mt (TM_FILE): Update.
1926 * config/m68k/monitor.mt (TM_FILE): Update.
1927 * config/m68k/linux.mt (TM_FILE): Update.
1928 * config/m68k/cisco.mt (TM_FILE): Update.
1929 * config/ia64/linux.mt (TM_FILE): Update.
1930 * config/ia64/aix.mt (TM_FILE): Update.
1931 * config/ia64/ia64.mt (TM_FILE): Update.
1932 * config/i386/vxworks.mt (TM_FILE): Update.
1933 * config/i386/obsd64.mt (TM_FILE): Update.
1934 * config/i386/obsd.mt (TM_FILE): Update.
1935 * config/i386/nto.mt (TM_FILE): Update.
1936 * config/i386/nbsd64.mt (TM_FILE): Update.
1937 * config/i386/nbsd.mt (TM_FILE): Update.
1938 * config/i386/linux64.mt (TM_FILE): Update.
1939 * config/i386/linux.mt (TM_FILE): Update.
1940 * config/i386/i386sol2.mt (TM_FILE): Update.
1941 * config/i386/i386lynx.mt (TM_FILE): Update.
1942 * config/i386/fbsd64.mt (TM_FILE): Update.
1943 * config/i386/fbsd.mt (TM_FILE): Update.
1944 * config/i386/cygwin.mt (TM_FILE): Update.
1945 * config/h8300/h8300.mt (TM_FILE): Update.
1946 * config/frv/frv.mt (TM_FILE): Update.
1947 * config/cris/cris.mt (TM_FILE): Update.
1948 * config/arm/wince.mt (TM_FILE): Update.
1949 * config/arm/nbsd.mt (TM_FILE): Update.
1950 * config/arm/linux.mt (TM_FILE): Update.
1951 * config/arm/embed.mt (TM_FILE): Update.
1952 * config/alpha/nbsd.mt (TM_FILE): Update.
1953 * config/alpha/fbsd.mt (TM_FILE): Update.
1954 * config/alpha/alpha.mt (TM_FILE): Update.
1955 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1956 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1957
362646f5
AC
1958 Eliminate event_loop_p, always has the value 1.
1959 * defs.h (event_loop_p): Delete macro.
1960 * breakpoint.c (until_break_command): Simplify.
1961 * utils.c (prompt_for_continue): Simplify.
1962 * tracepoint.c (read_actions): Simplify.
1963 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1964 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1965 (set_prompt, init_main): Simplify.
1966 (init_signals, disconnect): Delete, unused.
1967 * remote.c (remote_async_resume)
1968 (extended_remote_async_create_inferior): Simplify.
1969 * mi/mi-interp.c (mi_input): Delete, unused.
1970 (mi_interpreter_resume, mi_command_loop): Simplify.
1971 * interps.c (current_interp_command_loop): Simplify.
1972 * infrun.c (proceed): Simplify.
1973 * infcmd.c (run_command, continue_command, step_1, jump_command)
1974 (until_command, advance_command, finish_command)
1975 (interrupt_target_command): Simplify.
1976 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1977
ee31a58d
AC
1978 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1979 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1980 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1981 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1982 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1983 * mips-tdep.c (mips_dump_tdep): Do not print same.
1984
b7ffc4a8
AC
19852004-09-12 Andrew Cagney <cagney@gnu.org>
1986
2bfb72ee
AC
1987 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1988 const.
1989 * Makefile.in (valprint.o): Delete explict rule.
1990
4f17c3c1
AC
1991 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1992 reported by Dave Anderson.
1993
f810308b
AC
1994 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1995
b7ffc4a8
AC
1996 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1997
28b41c52
AC
19982004-09-12 Salvador E. Tropea <set@users.sf.net>
1999 Andrew Cagney <cagney@gnu.org>
2000
2001 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2002 (mi_cmd_data_list_register_values)
2003 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2004 the register number computation.
2005
5bf970f9
AC
20062004-09-12 Andrew Cagney <cagney@gnu.org>
2007
2008 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2009 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2010 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2011 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2012 target.
2013 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2014 inf-ptrace.o and inf-child.o.
2015 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2016 * Makefile.in: Update dependencies.
2017
0759e0bf
AC
20182004-09-11 Andrew Cagney <cagney@gnu.org>
2019
2020 * language.c (hex_string, hex_string_custom): Move from here ...
2021 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2022 (CELLSIZE): Increase to 50.
2023 * language.h (hex_string, hex_string_custom): Move from here ...
2024 * defs.h: ... to here.
2025 * Makefile.in: Update all dependencies.
2026
bb599908
PH
20272004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2028
2029 * language.c (local_hex_format_custom): Remove.
2030 (local_hex_string): Rename to hex_string, use C format, and move to
2031 utils.c
2032 (local_hex_string_custom): Rename to hex_string_custom and change
2033 interface. Now uses C format. Move to utils.c
2034 (local_octal_format_custom): Remove.
2035 (local_decimal_format_custom): Remove.
2036 (unknown_language_defn): Remove language-specific number
2037 formatting entries.
2038 (auto_language_defn): Ditto.
2039 (local_language_defn): Ditto.
2040 * language.h (struct language_format_info): Delete declaration.
2041 (struct language_defn): Remove language_format_info fields
2042 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2043 (local_binary_format): Remove macro.
2044 (local_binary_format_prefix): Remove macro.
2045 (local_binary_format_specifier): Remove macro.
2046 (local_binary_format_suffix): Remove macro.
2047 (local_octal_format): Remove macro.
2048 (local_octal_format_prefix): Remove macro.
2049 (local_octal_format_specifier): Remove macro.
2050 (local_octal_format_suffix): Remove macro.
2051 (local_decimal_format): Remove macro.
2052 (local_decimal_format_prefix): Remove macro.
2053 (local_decimal_format_specifier): Remove macro.
2054 (local_decimal_format_suffix): Remove macro.
2055 (local_hex_format): Remove macro.
2056 (local_hex_format_prefix): Remove macro.
2057 (local_hex_format_specifier): Remove macro.
2058 (local_hex_format_suffix): Remove macro.
2059 (local_decimal_format_custom): Remove.
2060 (local_octal_format_custom): Remove.
2061 (local_hex_format_custom): Remove.
2062 (local_hex_string): Rename to hex_string and move to defs.h.
2063 (local_hex_string_custom): Rename to hex_string_custom, change
2064 interface, and move to defs.h.
2065 * utils.c: (int_string): New function.
2066 (hex_string): New function (from language.c).
2067 (hex_string_custom): New function (from language.c).
2068 (octal2str): New function.
2069 (decimal2str): Add width parameter.
2070 (paddr_u): Use new decimal2str interface.
2071 (paddr_d): Ditto.
2072 * defs.h (hex_string): Declare.
2073 (hex_string_custom): Declare.
2074 (int_string): Declare.
2075 * printcmd.c (print_scalar_formatted): Remove localized binary
2076 formatting.
2077 * valprint.c (print_longest): Use int_string.
2078 (print_floating): Use C hex format.
2079 (print_hex_chars): Ditto.
2080 (print_binary_chars): Remove language-specific formatting.
2081 (print_octal_chars): Use C octal format.
2082 (print_decimal_chars): Delocalize format.
2083 (print_decimal): Remove.
2084 * ada-lang.c (ada_language_defn): Remove language-specific number
2085 formatting entries.
2086 * p-lang.c (pascal_language_defn): Ditto.
2087 * c-lang.c (c_language_defn): Ditto.
2088 (cplus_language_defn): Ditto.
2089 (asm_language_defn): Ditto.
2090 (minimal_language_defn): Ditto.
2091 * f-lang.c (f_language_defn): Ditto.
2092 * jv-lang.c (java_language_defn): Ditto.
2093 * m2-lang.c (m2_language_defn): Ditto.
2094 * scm-lang.c (scm_language_defn): Ditto.
2095 * objc-lang.c (objc_language_defn): Ditto.
2096 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2097 new interface.
2098 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2099 * ui-out.c (ui_out_field_core_addr): Ditto.
2100 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2101 * exec.c (print_section_info): Ditto.
2102 * i387-tdep.c (print_i387_status_word): Ditto.
2103 (print_i387_control_word): Ditto.
2104 (i387_print_float_info): Ditto.
2105 * maint.c (maint_print_section_info): Ditto.
2106 * solib.c (info_sharedlibrary_command): Ditto.
2107 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2108 * symtab.c (print_msymbol_info): Ditto.
2109 * tracepoint.c (tracepoints_info): Ditto.
2110 * solib-frv.c (lm_base): Ditto.
2111 (frv_current_sos): Ditto.
2112 (enable_break2): Ditto.
2113 (enable_break): Ditto.
2114 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2115 (process_one_symbol): Ditto.
2116 * infcmd.c (program_info): Ditto.
2117 * mdebugread.c (parse_partial_symbols): Ditto.
2118 * symfile.c (add_symbol_file_command): Ditto.
2119 * cli/cli-cmds.c (edit_command): Ditto.
2120 (list_command): Ditto.
2121 * infcall.c (call_function_by_hand): Ditto.
2122 * remote-vx.c (vx_run_files_info): Ditto.
2123 (vx_wait): Ditto.
2124 (vx_attach): Ditto.
2125 (vx_detach): Ditto.
2126 (vx_kill): Ditto.
2127 * aix-thread.c (pdc_symbol_addrs): Ditto.
2128 (pdc_read_regs): Ditto.
2129 (pdc_write_regs): Ditto.
2130 (pdc_read_data): Ditto.
2131 (pdc_write_data): Ditto.
2132 * d10v-tdep.c (display_trace): Ditto.
2133 * rs6000-nat.c (find_toc_address): Ditto.
2134 * aix-thread.c: Don't include language.h.
2135 * buildsym.c: Ditto.
2136 * dbxread.c: Ditto.
2137 * mdebugread.c: Ditto.
2138 * rs6000-nat.c: Ditto.
2139 * buildsym.c (make_blockvector): Use renamed hex_string.
2140
33f2d567
JM
21412004-09-10 Jason Molenda (jmolenda@apple.com)
2142
2143 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2144 chars after 'if' or 'while' commands in user-defined commands.
2145
7b90c3f9
JB
21462004-09-08 Jim Blandy <jimb@redhat.com>
2147
2148 Fix bug reported and analyzed by Olivier Crete:
2149 * symfile.c (copy_section_addr_info): New function.
2150 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2151 original set of address arguments, instead of handwritten code
2152 that uses one length to allocate and a different length to
2153 initialize. Use make_cleanup_free_section_addr_info.
2154 * symfile.h (copy_section_addr_info): New declaration.
2155 * utils.c: #include "symfile.h".
2156 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2157 New functions.
2158 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2159 * Makefile.in (utils.o): Update dependencies.
2160
b26a6851
AC
21612004-09-08 Andrew Cagney <cagney@gnu.org>
2162
2163 * thread-db.c (keep_thread_db): Delete.
2164 (thread_db_new_objfile, thread_db_create_inferior)
2165 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2166
be24b061
MK
21672004-09-08 Mark Kettenis <kettenis@gnu.org>
2168
f6792ef4
MK
2169 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2170 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2171 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2172 (i386_frameless_signal_p): Remove prototype.
2173 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2174 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2175 I386_SSE_NUM_REGS.
2176 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2177 instead of FP0_REGNUM.
2178 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2179 of FP0_REGNUM and FPC_REGNUM.
2180
eeefdaa7
MK
2181 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2182 (sunos_solib_create_inferior_hook): Don't call
2183 sunos_relocate_main_executable.
2184
be24b061
MK
2185 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2186 solib_svr4_fetch_link_map_offsets to
2187 svr4_ilp32_fetch_link_map_offsets.
2188 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2189 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2190 svr4_ilp32_fetch_link_map_offsets.
2191 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2192
7c679d16
JB
21932004-09-07 Jim Blandy <jimb@redhat.com>
2194
2195 * frame.h (frame_register): Doc fix.
2196
1f04aa62
AC
21972004-09-07 Andrew Cagney <cagney@gnu.org>
2198
2199 * vx-share/wait.h: Delete #ifdef USG.
2200 * utils.c (request_quit): Ditto.
2201 * tui/tui.c (tui_reset): Ditto.
2202 * remote.c: Ditto.
2203 * remote-sds.c: Ditto.
2204 * remote-rdi.c: Ditto.
2205 * mdebugread.c: Ditto.
2206 * m68klinux-nat.c: Ditto.
2207 * infttrace.c: Ditto.
2208 * infptrace.c: Ditto.
2209 * i386v-nat.c: Ditto.
2210 * exec.c: Ditto.
2211 * dbxread.c: Ditto.
2212 * core-aout.c: Ditto.
2213
90edbfbc
JB
22142004-09-05 Joel Brobecker <brobecker@gnat.com>
2215
2216 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2217 heuristic_proc_desc.
2218 (mips_insn32_frame_cache): Likewise.
2219
01f4bf2b
JB
22202004-09-04 Joel Brobecker <brobecker@gnat.com>
2221
2222 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2223 left behind by error.
2224
8511a048
JB
22252004-09-04 Joel Brobecker <brobecker@gnat.com>
2226
2227 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2228 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2229
649dfe9f
JB
22302004-09-04 Joel Brobecker <brobecker@gnat.com>
2231
2232 * config/rs6000/xm-aix4.h: Remove this file.
2233 * config/rs6000/aix4.mh (XM_FILE): Delete.
2234
6e50f889
JB
22352004-09-04 Joel Brobecker <brobecker@gnat.com>
2236
2237 * config/rs6000/xm-rs6000.h: Remove this file.
2238 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2239
b8c4aece
AC
22402004-09-03 Andrew Cagney <cagney@gnu.org>
2241
fb603883
AC
2242 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2243 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2244 only use.
2245
c9343fd1
AC
2246 * mips-tdep.c (temp_saved_regs): Delete.
2247 (set_reg_offset): Replace saved_regs parameter with this_cache.
2248 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2249 (mips32_heuristic_proc_desc): Add this_cache parameter.
2250 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2251 (after_prologue): Pass a NULL this_cache.
2252
9733cfe1
AC
2253 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2254 non-kernel trap prologues.
2255
0d5febcc
AC
2256 * mips-tdep.c (find_proc_desc): Delete function.
2257 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2258 simplify.
2259 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2260 mips_insn32_frame_cache.
2261
9733cfe1 2262 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2263 Simplify as NEXT_FRAME is NULL.
2264 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2265
177f84a3
AC
2266 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2267 local variable.
2268 (mips_skip_prologue): Update.
2269
465f7520
AC
2270 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2271 "cur_frame" parameter.
177f84a3
AC
2272 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2273 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2274
e38b8658
AC
2275 * config/vax/nm-obsd.h: Delete file.
2276 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2277 * config/vax/nm-nbsd.h: Delete file.
2278 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2279 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2280 * config/sh/nm-nbsd.h: Delete file.
2281 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2282 * config/rs6000/nm-rs6000ly.h: Delete file.
2283 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2284 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2285 * config/powerpc/nm-obsd.h: Delete file.
2286 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2287 * config/powerpc/nm-nbsd.h: Delete file.
2288 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2289 * config/pa/nm-obsd.h: Delete file.
2290 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2291 * config/mips/nm-nbsd.h: Delete file.
2292 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2293 * config/m88k/nm-obsd.h: Delete file.
2294 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2295 * config/m68k/nm-nbsd.h: Delete file.
2296 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2297 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2298 * config/i386/nm-nbsd.h: Delete file.
2299 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2300 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2301 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2302 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2303 * config/i386/nm-i386lynx.h: Delete file.
2304 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2305 * config/arm/nm-nbsd.h: Delete file.
2306 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2307 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2308
be1ed680
AC
2309 * config/i386/tm-fbsd.h: Delete file.
2310 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2311 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2312
4b392b26
AC
2313 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2314 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2315 * config/rs6000/aix4.mt (TM_FILE): Set to
2316 config/rs6000/tm-rs6000.h.
2317 * config/powerpc/tm-ppc-aix.h: Delete file.
2318 * config/powerpc/aix.mt (TM_FILE): Set to
2319 config/rs6000/tm-rs6000.h.
2320 * config/m68k/tm-linux.h: Delete file.
2321 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2322 * config/i386/tm-linux64.h: Delete file.
2323 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2324 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2325
f3219c75
AC
2326 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2327 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2328 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2329 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2330 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2331 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2332 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2333 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2334 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2335
b8c4aece
AC
2336 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2337 gdb_host_cpu.
2338
8ac2e020
JB
23392004-09-02 Joel Brobecker <brobecker@gnat.com>
2340
2341 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2342 Minor reformatting. Some code factoring.
2343
c185a355
AC
23442004-09-02 Andrew Cagney <cagney@gnu.org>
2345
63f22f0d
AC
2346 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2347 * config/vax/tm-nbsd.h: Delete file.
2348 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2349 * config/sparc/tm-vxworks.h: Delete file.
2350 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2351 * config/sparc/tm-nbsd.h: Delete file.
2352 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2353 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2354 * config/sparc/tm-linux.h: Delete file.
2355 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2356 * config/s390/tm-linux.h: Delete file.
2357 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2358 * config/pa/tm-bsd.h: Delete file.
2359 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2360 * config/m68k/tm-obsd.h: Delete file.
2361 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2362 * config/m68k/tm-nbsd.h: Delete file.
2363 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2364 * config/i386/tm-vxworks.h: Delete file.
2365 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2366 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2367 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2368 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2369 * config/i386/tm-nbsd.h: Delete file.
2370 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2371 * config/i386/tm-i386lynx.h: Delete file.
2372 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2373 * config/cris/tm-cris.h: Delete file.
2374
0f475e27
AC
2375 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2376 * configure: Re-generate.
2377 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2378 * config/arm/tm-nbsd.h: Delete file.
2379
458ed000
AC
2380 * config/powerpc/tm-ppcle-sim.h: Delete.
2381 * config/powerpc/tm-ppcle-eabi.h: Delete.
2382 * config/powerpc/tm-nbsd.h: Delete.
2383 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2384 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2385 tm-ppcle-eabi.h.
2386
f14375f3
AC
2387 * config/i386/nto.mh (NAT_FILE): Delete.
2388 * config/i386/nm-nto.h: Delete.
2389
c34d127c
AC
2390 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2391 * config/m68k/tm-os68k.h: Ditto.
2392 * config/m68k/tm-monitor.h: Ditto.
2393 * config/m68k/tm-cisco.h: Ditto.
2394 * config/m68k/st2000.mt (TM_FILE): Delete.
2395 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2396 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2397 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2398 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2399
f7f0fe03
AC
2400 * config/m68k/tm-st2000.h: Delete.
2401 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2402 * config/sparc/fbsd.mt (TM_FILE): Delete.
2403 * config/sparc/tm-fbsd.h: Delete.
2404
a2558533
AC
2405 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2406 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2407 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2408
b78960be
AC
2409 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2410 GDB_TM_FILE and GDB_XM_FILE.
2411 * gdbarch.c: Re-generate.
2412 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2413 quotes in macro definition.
2414 * configure.in: Re-generate.
2415
4d60522e
AC
2416 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2417 validating architecture methods.
2418 * gdbarch.c: Re-generate.
2419
5010d38b
AC
2420 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2421 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2422 GDB_MULTI_ARCH_PARTIAL.
2423 * gdbarch.h: Re-generate.
2424
c185a355
AC
2425 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2426 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2427 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2428 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2429 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2430 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2431 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2432 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2433 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2434 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2435 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2436 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2437
14aaa6ab
AC
24382004-09-01 Andrew Cagney <cagney@gnu.org>
2439
2440 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2441 and main_func_highpc.
2442 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2443 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2444 * nlmread.c (nlm_symfile_read): Update.
2445
a343eb3c
JB
24462004-09-01 Joel Brobecker <brobecker@gnat.com>
2447
2448 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2449 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2450 (find_proc_desc): Remove dead code.
2451
4fbbbd07
JB
24522004-09-01 Joel Brobecker <brobecker@gnat.com>
2453
2454 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2455
84acb35a
JJ
24562004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2457
2458 * observer.sh: Add struct so_list declaration.
2459 * Makefile.in: Add dependencies on observer.h for solib.c and
2460 breakpoint.c.
2461 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2462 function.
2463 (_initialize_breakpoint): Register
2464 disable_breakpoints_in_unloaded_shlib as an observer of the
2465 "solib unloaded" observation event.
2466 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2467 call decode_line_1 so unfound breakpoint errors are silent.
2468 * solib.c (update_solib_list): When a solib is discovered to have
2469 been unloaded by the program, notify all observers of the
2470 "solib unloaded" observation event.
2471
c8cd9f6c
AC
24722004-09-01 Andrew Cagney <cagney@gnu.org>
2473
2474 * frame.c: Include "objfiles.h".
2475 (inside_main_func): New function.
2476 (get_prev_frame): Use new inside_main_func.
2477 * Makefile.in (frame.o): Update dependencies.
2478 * defs.h (inside_main_func): Delete declaration.
2479 * blockframe.c (inside_main_func): Delete function.
2480
1168df01
JB
24812004-08-31 Jim Blandy <jimb@redhat.com>
2482
2483 * dwarf2read.c (is_vtable_name): New function, based on logic from
2484 read_structure_type, but passing the correct length to strncmp,
2485 and using 'sizeof' instead of 'strlen'.
2486 (read_structure_type): Call it.
2487
f14f9744
JB
24882004-08-31 Joel Brobecker <brobecker@gnat.com>
2489
2490 * config/powerpc/aix.mh: Add comment.
2491
386d4518
PG
24922004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2493
2494 * MAINTAINERS: Add self to Write-After-Approval.
2495
7d97d5e2
MI
24962004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2497
2498 * MAINTAINERS: Add self to Write-After-Approval.
2499
68f53502
AC
25002004-08-30 Andrew Cagney <cagney@gnu.org>
2501
2502 Fix PR breakpoints/1757.
2503 * infrun.c (struct execution_control_state): Replace
2504 remove_breakpoints_on_following_step with
2505 step_after_step_resume_breakpoint.
2506 (init_execution_control_state): Update.
2507 (handle_inferior_event): For signals, when stepping off a
2508 breakpoint, set step_after_step_resume_breakpoint. When
2509 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2510 (keep_going): Delete code handling
2511 remove_breakpoints_on_following_step.
2512
7ca2d3a3
DL
25132004-08-29 David Lecomber <david@streamline-computing.com>
2514
2515 Fix PR gdb/648
2516 * language.h (enum array_ordering): New enum.
2517 * language.h (struct language_defn): New la_array_ordering
2518 attribute.
2519 * language.c (unknown_language_defn, auto_language_defn)
2520 (local_language_defn): Ditto.
2521 * ada-lang.c (ada_language_defn): Ditto.
2522 * c-lang.c (c_language_defn, cplus_language_defn)
2523 (asm_language_defn, minimal_language_defn): Ditto.
2524 * f-lang.c (f_language_defn): Ditto.
2525 * jv-lang.c (java_language_defn): Ditto.
2526 * m2-lang.c (f_language_defn): Ditto.
2527 * objc-lang.c (objc_language_defn): Ditto.
2528 * p-lang.c (pascal_language_defn): Ditto.
2529 * scm-lang.c (scm_language_defn): Ditto.
2530 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2531 oriented large to small in type structure.
2532 * dwarf2read.c (read_array_order): New function.
2533 (read_array_type): Use read_array_order to check row/column
2534 major ordering.
2535
e354df01
NW
25362004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2537
2538 * target.c (target_resize_to_sections): Check
2539 current_target.to_sections for an old value when updating.
2540
9185ddce
JB
25412004-08-27 Joel Brobecker <brobecker@gnat.com>
2542
2543 * procfs.c (dbx_link_bpt_addr): New static global variable.
2544 (dbx_link_shadow_contents): New static global variable.
2545 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2546 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2547 if we just hit it.
2548 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2549 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2550 from run to run.
2551 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2552 after the inferior has been forked.
2553 (remove_dbx_link_breakpoint): New function.
2554 (dbx_link_addr): New function.
2555 (insert_dbx_link_bpt_in_file): New function.
2556 (insert_dbx_link_bpt_in_region): New function.
2557 (insert_dbx_link_breakpoint): New function.
2558 (proc_trace_syscalls_1): New function, extracted from
2559 proc_trace_syscalls.
2560 (proc_trace_syscalls): Replace extract code by call to
2561 proc_trace_syscalls_1.
2562 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2563 is no longer valid.
2564
e6742ace
JB
25652004-08-25 Jim Blandy <jimb@redhat.com>
2566
2567 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2568
8fb3e588
AC
25692004-08-25 Andrew Cagney <cagney@gnu.org>
2570
629a41ee
AC
2571 * infrun.c (struct execution_control_state): Delete field
2572 "stepping_through_sigtramp".
2573 (init_execution_control_state): Do not set same.
2574 (context_switch): Do not pass same to save_infrun_state and
2575 load_infrun_state.
2576 * gdbthread.h (struct thread_info): Delete field
2577 stepping_through_sigtramp.
2578 (save_infrun_state, load_infrun_state): Delete parameter
2579 stepping_through_sigtramp.
2580 * thread.c (load_infrun_state, save_infrun_state): Update.
2581
8fb3e588
AC
2582 * infrun.c: Re-indent. Move expression operators to the beginning
2583 of the line. Remove long disabled #if 0 code.
2584
49c54768
AC
25852004-08-24 Andrew Cagney <cagney@gnu.org>
2586
2587 * doublest.h (floatformat_ieee_quad): Rename
2588 floatformat_ia64_quad.
2589 * doublest.c (floatformat_ieee_quad): Rename
2590 floatformat_ia64_quad.
2591 (_initialize_doublest): Update.
2592
5ca2e327
JB
25932004-08-24 Jim Blandy <jimb@redhat.com>
2594
87808bd6
JB
2595 * dwarf2expr.h (struct dwarf_expr_context): New members
2596 'num_pieces' and 'pieces', for returning the result of an
2597 expression that uses DW_OP_piece.
2598 (struct dwarf_expr_piece): New struct type.
2599 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2600 pieces.
2601 (free_dwarf_expr_context): Free pieces, if any.
2602 (add_piece): New function.
2603 (execute_stack_op): Implement DW_OP_piece.
2604 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2605 expression is a list of pieces, print an error message.
2606 (dwarf2_loc_desc_needs_frame): If the expression yields
2607 pieces, and any piece is in a register, then we need a frame.
2608
5ca2e327
JB
2609 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2610 the stack until we've decided what sort of result the evaluation
2611 has produced. Use separate variables, with more specific names.
2612
2afeb6b8
RE
26132004-08-23 Richard Earnshaw <rearnsha@arm.com>
2614
2615 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2616 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2617 (arm_netbsd_init_abi_common): Register them.
2618
5885ab49
MK
26192004-08-22 Mark Kettenis <kettenis@gnu.org>
2620
fda820a6
MK
2621 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2622
1c5bf419
MK
2623 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2624 safe_frame_unwind_memory instead of target_read_memory.
2625
8cbba7c8
MK
2626 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2627 Reorder includes.
2628 (fetch_register, store_register): Remove prototypes.
2629 (child_resume): Reorganize code and comments such that it is
2630 grouped a bit more logically.
2631 (attach): Explicitly compare errno against 0.
2632 (detach): Likewise. Use perror_with_name instead of
2633 print_sys_errmsg.
2634 * Makefile.in (infptrace.o): Update dependencies.
2635
c5fa4245
MK
2636 * ia64-linux-nat.c: Update copyright year.
2637 (fetch_debug_register, store_debug_register)
2638 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2639 PTRACE_TYPE_ARG3.
2640 * config/ia64/nm-linux.h: Update copyright year.
2641 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2642
387c058c
MK
2643 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2644 from CORE_ADDR to struct frame_info *. Use
2645 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2646 (amd64_linux_sigtramp_p): Adjust for changed signature of
2647 and64_linux_sigtramp_start
2648
277215a6
MK
2649 * gdb_ptrace.h: GNU/Linux.
2650
25f6178e
MK
2651 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2652 Remove defines.
2653
652fc137
MK
2654 * infptrace.c: Include "gdb_assert.h".
2655 (PTRACE_XFER_TYPE): Remove define.
2656 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2657 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2658 Tweak comment.
2659 (fetch_inferior_registers, store_inferior_registers): Remove
2660 redundant culry braces. Tweak comment. s/regno/regnum.
2661 * Makefile.in (infptrace.o): Update dependencies.
2662
5885ab49
MK
2663 * configure.in: Change test for return type of ptrace to default
2664 to `long' instead of `int'.
2665 * configure: Regenerate.
2666
11003ae3
MK
26672004-08-21 Mark Kettenis <kettenis@gnu.org>
2668
6b95110c
MK
2669 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2670
bcb3dc3d
MK
2671 * configure.in: Check for ttrace function.
2672 * configure, config.in: Regenerate.
2673
11003ae3
MK
2674 * gdb_ptrace.h: New file.
2675 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2676 <sys/ptrace.h>.
2677 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2678 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2679 (attach): Don't define PT_ATTACH.
2680 (detach): Don't define PT_DETACH.
2681 * Makefile.in (gdb_ptrace_h): New variable.
2682 (infptrace.o): Update dependencies.
2683
f8707cac
MK
26842004-08-16 Mark Kettenis <kettenis@gnu.org>
2685
2686 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2687 instead of `int' if not already defined.
2688 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2689 PTRACE_TYPE_ARG3.
2690 * infptrace.c (call_ptrace): Revert change that replaced
2691 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2692
655c5466
MK
26932004-08-15 Mark Kettenis <kettenis@gnu.org>
2694
156e5ba7
MK
2695 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2696 Remove defines.
2697
de9a9e51
MK
2698 * linux-nat.c (kill_inferior): Add missing third and fourth
2699 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2700
88800403
MK
2701 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2702 PTRACE_TYPE_RET.
2703
849a1d7c
MK
2704 * proc-why.c (proc_prettyfprint_why): Fix format string.
2705
61ad16d1
MK
2706 * solib-osf.c (osf_current_sos): Remove unsused label.
2707
a6ed5501
MK
2708 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2709 curses headers.
2710 * configure, config.in: Regenerate.
2711 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2712 <ncurses/ncurses.h>.
2713
016ddeca
MK
2714 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2715 * config/nm-nbsd.h: Update copyright year.
2716 (PTRACE_ARG3_TYPE): Remove define.
2717
49ec097f
MK
2718 * sparc-nat.c (fetch_inferior_registers)
2719 (store_inferior_registers, sparc_xfer_wcookie):
2720 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2721
9f8e0089
MK
2722 * alphabsd-nat.c (fetch_inferior_registers):
2723 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2724 PTRACE_TYPE_ARG3.
2725 * amd64bsd-nat.c (fetch_inferior_registers)
2726 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2727 PTRACE_TYPE_ARG3.
2728 * armnbsd-nat.c: Update copyright year.
2729 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2730 (store_register, store_regs, store_fp_register, store_fp_regs):
2731 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2732 * hppabsd-nat.c (fetch_inferior_registers)
2733 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2734 PTRACE_TYPE_ARG3.
2735 * i386bsd-nat.c (fetch_inferior_registers)
2736 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2737 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2738 * m68kbsd-nat.c (fetch_inferior_registers)
2739 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2740 PTRACE_TYPE_ARG3.
2741 * m88kbsd-nat.c (fetch_inferior_registers)
2742 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2743 PTRACE_TYPE_ARG3.
2744 * mipsnbsd-nat.c: Update copyright year.
2745 (fetch_inferior_registers, store_inferior_registers):
2746 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2747 * ns32knbsd-nat.c: Update copyright year.
2748 (fetch_inferior_registers, store_inferior_registers):
2749 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2750 * ppcnbsd-nat.c (fetch_inferior_registers):
2751 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2752 PTRACE_TYPE_ARG3.
2753 * ppcobsd-nat.c (fetch_inferior_registers):
2754 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2755 PTRACE_TYPE_ARG3.
2756 * shnbsd-nat.c: Update copyright year.
2757 (fetch_inferior_registers, store_inferior_registers):
2758 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2759 * vaxbsd-nat.c (fetch_inferior_registers)
2760 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2761 PTRACE_TYPE_ARG3.
2762
655c5466
MK
2763 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2764 PTRACE_TYPE_ARG3.
2765 * infptrace.c (call_ptrace, child_resume, attach, detach)
2766 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2767 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2768 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2769 PTRACE_TYPE_ARG3.
2770
c40d0d10
MK
27712004-08-14 Mark Kettenis <kettenis@gnu.org>
2772
5cb0ff31
MK
2773 * defs.h: Remove out-of-date comment.
2774 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2775 [!GETENV_PROVIDED] (getenv): Remove prototype.
2776
5f0f34cb
MK
2777 * standalone.c: Remove file.
2778 * Makefile.in (standalone.o): Remove dependency.
2779
7532965f
MK
2780 * i386-linux-nat.c (dummy_sse_values): Remove function and
2781 prototype.
2782 (i386_linux_dr_get): Fix typo in comment.
2783 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2784
1bdc6c53
MK
2785 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2786
c40d0d10
MK
2787 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2788 from declaration.
2789 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2790 from definition.
2791
64218d3e
MK
27922004-08-13 Mark Kettenis <kettenis@gnu.org>
2793
2794 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2795 parenthesis in definition.
2796 * configure: Regenerated.
2797
926c94e7
MC
27982004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2799
2800 * PROBLEMS: Mention build/1411.
2801
69489883
NN
28022004-08-09 Robert Millan <robertmh@gnu.org>
2803
2804 Committed by Nathanael Nerode.
2805 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2806 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2807
ebb7c577
AC
28082004-08-12 Andrew Cagney <cagney@gnu.org>
2809
2810 * NEWS: Mention fixes in GDB 6.2.1.
2811 * PROBLEMS: Remove mention of mips-irix.
2812
232d697c
JB
28132004-08-11 Joel Brobecker <brobecker@gnat.com>
2814
2815 * config/powerpc/xm-aix.h: Delete.
2816 * config/powerpc/aix.mh (MH_FILE): Remove.
2817 * config/powerpc/aix432.mh (MH_FILE): Remove.
2818
72f4e82b
JB
28192004-08-11 Joel Brobecker <brobecker@gnat.com>
2820
2821 * config/powerpc/aix.mh: Remove obsolete comment.
2822 * config/powerpc/aix432.mh: Likewise.
2823
0687ccb2
JB
28242004-08-11 Joel Brobecker <brobecker@gnat.com>
2825
2826 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2827
dbf3ada7
JB
28282004-08-11 Joel Brobecker <brobecker@gnat.com>
2829
e08e1886
JB
2830 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2831 this file is now empty.
2832 * config/xm-aix4.h: Remove, this file is no longer included
2833 anywhere.
2834
28352004-08-11 Joel Brobecker <brobecker@gnat.com>
2836
2837 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2838 that file is now empty.
dbf3ada7
JB
2839 (termdef): Remove prototype, function no longer used.
2840
4c525ef6
JB
28412004-08-11 Joel Brobecker <brobecker@gnat.com>
2842
2843 * doc/gdbint.texinfo (Host Definition): Remove documentation
2844 for USE_O_NOCTTY, no longer used.
2845 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2846 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2847
82e0b968
JB
28482004-08-11 Joel Brobecker <brobecker@gnat.com>
2849
2850 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2851 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2852 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2853
f2acbe1c
MK
28542004-08-11 Mark Kettenis <kettenis@gnu.org>
2855
daa98270
MK
2856 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2857 instead of FIVE_ARG_PTRACE.
2858
f2acbe1c
MK
2859 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2860 (new_tty): Use O_NOCTTY unconditionally.
2861
cc377e6b
MK
28622004-08-10 Mark Kettenis <kettenis@gnu.org>
2863
2864 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2865 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2866 fflush on stdout.
2867
3bcc18fa
JB
28682004-08-10 Joel Brobecker <brobecker@gnat.com>
2869
2870 * xcoff_symfile_finish: Replace last call to xmfree by call
2871 to xfree.
2872
7936743b
AC
28732004-08-10 Andrew Cagney <cagney@gnu.org>
2874
cc503c8a
AC
2875 * main.c (captured_main): Delete call to init_malloc.
2876 * defs.h (init_malloc): Delete declaration.
2877 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2878 (init_malloc): Delete functions.
2879
2dc74dc1
AC
2880 * defs.h (xmfree): Delete.
2881 * utils.c (xmfree): Delete function.
2882 (xfree): Inline calls to xmfree and mfree.
2883 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2884 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2885 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2886 * somread.c (som_symfile_finish): Ditto.
2887 * objfiles.c (allocate_objfile, free_objfile):
2888 * nlmread.c (nlm_symfile_finish): Ditto.
2889 * hpread.c (hpread_symfile_finish): Ditto.
2890 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2891 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2892 * coffread.c (coff_symfile_finish): Ditto.
2893
aa2ee5f6
AC
2894 * defs.h (xmcalloc): Delete declaration.
2895 * utils.c (xmcalloc): Delete.
2896 (xcalloc): Inline calls to xmcalloc and mcalloc.
2897 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2898 xcalloc and xfree.
2899 * symtab.c (create_demangled_names_hash): Ditto.
2900
0efffb96
AC
2901 * defs.h (xmrealloc): Delete.
2902 * utils.c (xmrealloc): Delete.
2903 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2904 * symmisc.c (extend_psymbol_list): Use xrealloc.
2905 * source.c (find_source_lines): Ditto.
2906 * hpread.c (hpread_lookup_type): Ditto.
2907 * dbxread.c (add_bincl_to_list): Ditto.
2908
7936743b
AC
2909 * utils.c (xmmalloc): Delete.
2910 (xmalloc): Inline xmmalloc and mmalloc calls.
2911 (msavestring): Use xmalloc.
2912 * defs.h (xmmalloc): Delete declaration.
2913 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2914 xmmalloc.
2915 * symmisc.c (extend_psymbol_list): Ditto.
2916 * symfile.c (init_psymbol_list): Ditto.
2917 * source.c (find_source_lines): Ditto.
2918 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2919 * elfread.c (elf_symtab_read): Ditto.
2920 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2921 * coffread.c (coff_symfile_init): Ditto.
2922
252ab814
DC
29232004-08-10 David Carlton <carlton@bactrian.org>
2924
2925 * MAINTAINERS: Remove David Carlton from c++ testsuite
2926 maintainers.
2927
8f5ba92b
JG
29282004-08-10 Jerome Guitton <guitton@gnat.com>
2929
2930 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2931 print a line feed before the prompt.
2932
21749010
MK
29332004-08-10 Mark Kettenis <kettenis@gnu.org>
2934
2935 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2936
1f011ce2
JB
29372004-08-09 Joel Brobecker <brobecker@gnat.com>
2938
2939 General cleanup of the AIX xm include file:
2940 * config/xm-aix4.h (fd_set): Remove undefine.
2941 Remove include of <sys/select.h>.
2942 (HAVE_TERMIO): Remove define.
2943 (USG): Likewise.
2944 (NULL): Remove redefine.
2945 (alloca): Remove #pragma.
2946 (vfork): Remove define.
2947 (termdef): Remove.
2948 (SIGWINCH_HANDLER): Remove.
2949 (SIGWINCH_HANDLER_BODY): Remove.
2950
cf4e7692
MK
29512004-08-09 Mark Kettenis <kettenis@gnu.org>
2952
2953 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2954 GDB_OSABI_OPENBSD_ELF.
2955
ac5754fa
MK
29562004-08-07 Robert Millan <robertmh@gnu.org>
2957
2958 * bsd-kvm.c: Check for nlist.h before including it.
2959
086ec9eb
MK
29602004-08-09 Mark Kettenis <kettenis@gnu.org>
2961
bbe06c74
MK
2962 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2963 sigcontext' offset consistency checks for ancient BSD.
2964
3aa7b3b3
MK
2965 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2966
086ec9eb
MK
2967 * configure.in: Check for <sys/types.h>. Check return and
2968 argument types of ptrace.
2969 * configure, config.in: Regenerate.
2970
09991fa0
JB
29712004-08-09 Jim Blandy <jimb@redhat.com>
2972
2973 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2974 rs6000_register_sim_regno): Doc fixes.
2975
fed7ba43
JB
29762004-08-08 Joel Brobecker <brobecker@gnat.com>
2977
2978 * mips-tdep.c: Include "floatformat.h".
2979 (n32n64_floatformat_always_valid): New function.
2980 (floatformat_n32n64_long_double_big): New constant.
2981 (mips_gdbarch_init): Set size and format of long double
2982 for N32 and N64 ABIs.
2983 * Makefile.in (mips-tdep.o): Update dependencies.
2984
456fcf94
AC
29852004-08-08 Andrew Cagney <cagney@gnu.org>
2986
2f9b146e
AC
2987 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2988 print. Improve script's error messages.
2989 * gdbarch.h: Re-generate.
2990
456fcf94
AC
2991 * gdbarch.sh (pformat): New function.
2992 (float_format, double_format, long_double_format): List with bit
2993 members. Use pformat when printing.
2994 * gdbarch.c, gdbarch.h: Re-generate.
2995
69e9e646
NW
29962004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2997
2998 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2999 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3000 (ppcnbsd_supply_pcb): New function.
3001 (_initialize_ppcnbsd_nat): New prototype and function.
3002 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3003 (LOADLIBES): New variable.
3004 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3005
5ef2d0aa
AC
30062004-08-08 Andrew Cagney <cagney@gnu.org>
3007
3008 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3009 (builtin_type_ieee_double, builtin_type_ia64_quad)
3010 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3011 BE/LE floating-point types.
3012 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3013 (builtin_type_ieee_double, builtin_type_ia64_quad)
3014 (builtin_type_ia64_spill): Declare.
3015 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3016 (floatformat_ieee_double, floatformat_arm_ext)
3017 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3018 of LE/BE floatformats.
3019 * doublest.h: (struct floatformat, floatformat_ieee_single)
3020 (floatformat_ieee_double, floatformat_arm_ext)
3021 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3022
5c7f2947
MK
30232004-08-08 Mark Kettenis <kettenis@gnu.org>
3024
ecac404d
MK
3025 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3026
9b8607ce
MK
3027 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3028 instead of regcache_raw_supply when storing the registers.
3029
f6052080
MK
3030 * i386gnu-nat.c: Update copyright year.
3031 (gnu_store_registers): Don't use deprecated_registers and
3032 deprecated_registers_valid. Use regcache_valid_p and
3033 regcache_raw_supply instead.
3034
17777823
MK
3035 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3036 frame_pc_unwind.
3037
5240ceac
MK
3038 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3039 variables. Incapitalized "process".
3040
5c7f2947
MK
3041 * configure.in: Add cursesX to the list of possible curses libs.
3042 Add cursesX.h to the list of possible curses headers.
3043 * configure, config.in: Regenerate.
3044
da7d81e3
NW
30452004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3046
3047 * configure.in: Test for struct lwp in <sys/lwp.h>.
3048 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3049 the offset of l_addr in struct lwp.
3050
7f245d65
NW
30512004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3052
3053 * bsd-kvm.c: Include "gdbcore.h"
3054 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3055
47b3f456
AC
30562004-08-07 Andrew Cagney <cagney@gnu.org>
3057
70bd8e24
AC
3058 * gdbtypes.c (build_flt, build_complex): New functions.
3059 (gdbtypes_post_init): Use.
3060
9b0dea39
AC
3061 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3062
5cf7abac
AC
3063 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3064 through to builtin_type_uint128.
3065
64d2b26d
AC
3066 * c-exp.y: Use builtin_type function to obtain builtin types.
3067
7ad6570d
AC
3068 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3069 builtin_uint128.
3070 * gdbtypes.c (gdbtypes_post_init): Update.
3071 (build_gdbtypes): Move initialization of builtin_type_int0
3072 through to builtin_type_uint128 from here ...
3073 (_initialize_gdbtypes): ... to here.
3074 * d10v-tdep.c (d10v_register_type): Update.
3075
47b3f456
AC
3076 * doublest.c: Update copyright.
3077 (floatformat_from_length): Call error when floatformat is NULL.
3078 (extract_floating_by_length): Remove NULL fmt check.
3079 (store_floating_by_length): Ditto.
3080
0a8146bf
AC
30812004-08-07 Andrew Cagney <cagney@gnu.org>
3082
3083 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3084 that the register is valid.
3085
c0ccb908
MK
30862004-08-05 Mark Kettenis <kettenis@chello.nl>
3087
8e6bed05
MK
3088 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3089 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3090 struct frame_info *. Use safe_frame_unwind_memory instead of
3091 deprecated_read_memory_nobpt.
3092 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3093 changed signature of i386_linux_sigtramp_start and
3094 i386_linux_rt_sigtramp_start.
3095
24f9f5e3
MK
3096 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3097 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3098 instead of deprecated_read_memory_nobpt.
3099 (i386nbsd_sigtramp_p): Adjust for changed signature of
3100 i386nbsd_sigtramp_offset.
3101
c822af0c
MK
3102 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3103 safe_frame_unwind_memory instead of target_read_memory.
3104
c0ccb908
MK
3105 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3106 !NO_SYS_FILE.
3107 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3108 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3109 (_initialize_kernel_u_addr): Remove prototype and function.
3110 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3111 !NO_SYS_FILE.
3112 * xcoffread.c: Likewise.
3113
b9e1c0d6
MK
31142004-08-06 Mark Kettenis <kettenis@gnu.org>
3115
3116 * vax-nat.c: New file.
3117 * vaxbsd-nat.c: Tweak comment.
3118 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3119 vaxnbsd-tdep.c.
3120 (vax-nat.o): New dependency.
3121 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3122 (vax-*-ultrix2*): Remove.
3123 * config/vax/vax.mh: New file.
3124 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3125 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3126 (vax_register_u_addr): New prototype.
3127 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3128 * config/vax/vaxult2.mh: Remove file.
3129 * config/vax/vaxult.mh: Remove file.
3130 * config/vax/vaxbsd.mh: Remove file.
3131 * config/vax/vax.mt (TM_FILE): Remove.
3132 * config/vax/tm-vaxbsd.h: Remove file.
3133
9ad7bec7
JB
31342004-08-06 Joel Brobecker <brobecker@gnat.com>
3135
3136 * aix-thread.c (get_signaled_thread): New function.
3137 (iter_trap): Delete, no longer used.
3138 (iter_tid): New function.
3139 (pd_update): Find the thread that received the SIGTRAP signal
3140 by first locating the kernel thread, and then finding its
3141 associated thread.
3142
bf0d233d
UW
31432004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3144
3145 * lin-lwp.c (child_wait): Continue inferior after processing
3146 PTRACE_EVENT_CLONE event.
3147
d0f853e1
NN
31482004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3149
3150 * MAINTAINERS: Add self to Write-After-Approval.
3151
ab14aeb0
JJ
31522004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3153
3154 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3155 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3156
9c8dbfa9
AC
31572004-08-05 Andrew Cagney <cagney@gnu.org>
3158
c8f3ca46
AC
3159 * config/xm-sysv4.h: Delete file.
3160 * config/mips/xm-irix5.h: Delete file.
3161 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3162 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3163 * config/ia64/xm-aix.h: Delete file.
3164 * config/ia64/aix.mh (XM_FILE): Delete.
3165 * config/pa/xm-hppah.h: Delete file.
3166 * config/pa/hpux11w.mh (XM_FILE): Delete.
3167 * config/pa/hpux11.mh (XM_FILE): Delete.
3168 * config/pa/hpux1020.mh (XM_FILE): Delete.
3169 * config/pa/hppahpux.mh (XM_FILE): Delete.
3170
5f7daaff
AC
3171 * config/alpha/xm-alphalinux.h: Delete file.
3172 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3173 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3174 * config/alpha/xm-alphaosf.h: Delete file.
3175 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3176 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3177 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3178 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3179
69babf95
AC
3180 * config/i386/xm-i386v.h: Delete file.
3181 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3182 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3183 * config/i386/xm-i386sco.h: Delete file.
3184 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3185 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3186 * config/i386/xm-i386v4.h: Delete file.
3187 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3188 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3189 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3190 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3191
6f009c8a
AC
3192 * config/vax/xm-vax.h: Delete file.
3193 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3194 * config/vax/xm-vaxult2.h: Delete file.
3195 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3196 * config/vax/vaxult2.mh (XM_FILE): Delete.
3197 * config/vax/xm-vaxult.h: Delete file.
3198 * config/vax/vaxult.mh (XM_FILE): Delete.
3199 * config/vax/xm-vaxbsd.h: Delete file.
3200 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3201
9c8dbfa9
AC
3202 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3203 * gdbarch.h, gdbarch.c: Re-generate.
3204 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3205 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3206 * frame.h: Delete deprecated_read_fp from comments.
3207 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3208 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3209
84367a3e
MK
32102004-08-04 Mark Kettenis <kettenis@gnu.org>
3211
9c8e3411
MK
3212 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3213 trampoline in OpenBSD 3.5-current.
3214
b87bc0d8
MK
3215 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3216 SSE registers.
3217
84367a3e
MK
3218 * Makefile.in: Remove embedded page breaks.
3219
a44bddec
JB
32202004-08-04 Jim Blandy <jimb@redhat.com>
3221
7ab3286f
JB
3222 * regcache.c (regcache_raw_read): Assert that, after calling
3223 target_fetch_registers, the register we're reading is cached.
3224
a44bddec
JB
3225 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3226 a call to 'internal_error', with a more helpful error message.
3227 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3228 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3229
35124113
AC
32302004-08-04 Andrew Cagney <cagney@gnu.org>
3231
3232 * Makefile.in: Update dependencies.
3233
9f643768
JB
32342004-08-04 Jim Blandy <jimb@redhat.com>
3235
6ced10dd
JB
3236 Change the layout of the PowerPC E500 raw register cache to allow
3237 the lower 32-bit halves of the GPRS to be their own raw registers,
3238 not pseudoregisters.
3239 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3240 add ppc_ev0_upper_regnum flag.
3241 * rs6000-tdep.c: #include "reggroups.h".
3242 (spe_register_p): Recognize the ev upper half registers as SPE
3243 registers.
3244 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3245 registers.
3246 (e500_move_ev_register): New function.
3247 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3248 vector registers are the pseudo-registers now, formed by splicing
3249 together the gprs and the upper-half registers.
3250 (e500_register_reggroup_p): New function.
3251 (P): Macro deleted.
3252 (P8, A4): New macro.
3253 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3254 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3255 macros.
3256 (registers_e500): Rearrange register set so that the raw register
3257 set contains 32-bit GPRs and upper-half registers, and the SPE
3258 vector registers become pseudo-registers.
3259 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3260 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3261 register numbers are now the same for the E500 as they are for
3262 other PowerPC variants. Register e500_register_reggroup_p as the
3263 register group function for the E500.
3264 * Makefile.in (rs6000-tdep.o): Update dependencies.
3265
3266 Adapt PPC E500 native support to the new raw regcache layout.
3267 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3268 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3269 (fetch_spe_register, store_spe_register): Handle fetching/storing
3270 all the SPE registers at once, if regno == -1. These now take
3271 over the job of fetch_spe_registers and store_spe_registers.
3272 (fetch_spe_registers, store_spe_registers): Deleted.
3273 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3274 unconditionally; they're always raw. Fetch/store SPE upper half
3275 registers, if present, instead of ev registers.
3276 (fetch_register, store_register): Remove sanity checks: gprs are
3277 never pseudo-registers now, so we never need to even mention any
3278 registers that are ever pseudoregisters.
3279
9f643768
JB
3280 Use a fixed register numbering when communicating with the PowerPC
3281 simulator.
3282 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3283 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3284 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3285 New functions.
3286 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3287 init_sim_regno_table.
3288 * Makefile.in (gdb_sim_ppc_h): New variable.
3289 (rs6000-tdep.o): Update dependencies.
3290
1e2279c8
AC
32912004-08-02 Andrew Cagney <cagney@gnu.org>
3292
1d94326f
AC
3293 * cris-tdep.c (cris_register_size): Restore function, still used
3294 locally.
3295
331ae7ed
AC
3296 * gdbarch.sh (deprecated_target_read_fp)
3297 (deprecated_frame_locals_address, deprecated_frame_args_address)
3298 (deprecated_frame_chain_valid, deprecated_frame_chain)
3299 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3300 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3301 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3302 * gdbarch.h, gdbarch.c: Re-generate.
3303 * regcache.c (deprecated_read_fp): Do not call
3304 DEPRECATED_TARGET_READ_FP_P.
3305 * infcmd.c (default_print_registers_info): Do not call
3306 DEPRECATED_DO_REGISTERS_INFO.
3307 * frame-base.c (default_frame_locals_address): Do not call
3308 DEPRECATED_FRAME_LOCALS_ADDRESS.
3309 (default_frame_args_address): Do not call
3310 DEPRECATED_FRAME_ARGS_ADDRESS.
3311
1e2279c8
AC
3312 * gdbarch.sh (deprecated_register_raw_size)
3313 (deprecated_register_virtual_size:int): Delete.
3314 * gdbarch.h, gdbarch.c: Re-generate.
3315 * cris-tdep.c (cris_register_size): Delete.
3316 (cris_gdbarch_init): Update.
3317 * alpha-tdep.c (alpha_register_raw_size)
3318 (alpha_register_virtual_size): Delete.
3319 (alpha_gdbarch_init): Update.
3320
a90c06b4
AC
3321 * gdbarch.sh (deprecated_register_virtual_type)
3322 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3323 (deprecated_dummy_write_sp): Delete.
3324 * gdbarch.h, gdbarch.c: Re-generate.
3325
f42accbe
AC
3326 * gdbarch.sh (deprecated_register_bytes): Delete.
3327 * gdbarch.h, gdbarch.c: Re-generate.
3328 * regcache.c (deprecated_register_bytes): New function.
3329 * regcache.h (deprecated_register_bytes): Declare.
3330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3331 * v850-tdep.c (v850_gdbarch_init): Update.
3332 * sh64-tdep.c (sh64_gdbarch_init): Update.
3333 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3334 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3335 * mcore-tdep.c (mcore_gdbarch_init): Update.
3336 * cris-tdep.c (cris_gdbarch_init): Update.
3337 * arm-tdep.c (arm_gdbarch_init): Update.
3338 * remote.c (init_remote_state): Update.
3339 * remote-vx.c (vx_prepare_to_store): Update.
3340 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3341 * irix5-nat.c (fetch_core_registers): Update.
3342 * cris-tdep.c (cris_register_bytes_ok): Update.
3343 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3344
45c9dd44
AC
3345 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3346 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3347 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3348 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3349 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3350 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3351 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3352 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3353 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3354 with mips_insn16 and mips_insn32.
3355
3acba339
AC
3356 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3357 * rs6000-tdep.c (rs6000_push_dummy_call)
3358 (rs6000_extract_return_value): Use register_size.
3359 * xstormy16-tdep.c (xstormy16_get_saved_register)
3360 (xstormy16_extract_return_value): Ditto.
3361 * valops.c (value_assign): Ditto.
3362 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3363 * v850-tdep.c (v850_extract_return_value): Ditto.
3364 * tracepoint.c (collect_symbol): Ditto.
3365 * target.c (debug_print_register): Ditto.
3366 * stack.c (frame_info): Ditto.
3367 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3368 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3369 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3370 (store_register_using_P): Ditto.
3371 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3372 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3373 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3374 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3375 * regcache.c (deprecated_read_register_bytes)
3376 (deprecated_write_register_bytes, read_register)
3377 (write_register): Ditto.
3378 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3379 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3380 * monitor.c (monitor_supply_register, monitor_fetch_register)
3381 (monitor_store_register): Ditto.
3382 * mn10300-tdep.c (mn10300_pop_frame_regular)
3383 (mn10300_print_register): Ditto.
3384 * mipsv4-nat.c (fill_fpregset): Ditto.
3385 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3386 (mips64_fill_fpregset): Ditto.
3387 * mi/mi-main.c (register_changed_p, get_register)
3388 (mi_cmd_data_write_register_values): Ditto.
3389 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3390 * irix5-nat.c (fill_gregset, fetch_core_registers):
3391 * infrun.c (write_inferior_status_register): Ditto.
3392 * infptrace.c (fetch_register, store_register): Ditto.
3393 * infcmd.c (default_print_registers_info): Ditto.
3394 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3395 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3396 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3397 * hpux-thread.c (hpux_thread_fetch_registers)
3398 (hpux_thread_store_registers): Ditto.
3399 * hppah-nat.c (store_inferior_registers, fetch_register):
3400 * findvar.c (value_from_register): Ditto.
3401 * dve3900-rom.c (fetch_bitmapped_register):
3402 * cris-tdep.c (cris_gdbarch_init): Ditto.
3403 * alpha-tdep.h: Ditto.
3404 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3405
01e1877c
AC
3406 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3407 DEPRECATED_REGISTER_RAW_SIZE from comments.
3408 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3409 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3410 DEPRECATED_REGISTER_RAW_SIZE.
3411 * findvar.c (value_of_register): Simplify by assuming that the
3412 registers raw and virtual sizes are identical.
3413 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3414 comment.
3415 * arch-utils.c (generic_register_size): Simplify by assuming
3416 register_type.
3417
73f458fb
AC
3418 * regcache.c (legacy_read_register_gen, real_register)
3419 (legacy_write_register_gen): Delete, not used.
3420
336a3131
AC
3421 * regcache.c (struct regcache_descr): Delete legacy_p.
3422 (init_legacy_regcache_descr): Delete function.
3423 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3424 Do not use deprecated register functions.
3425 (regcache_raw_read, deprecated_write_register_gen):
3426 (deprecated_read_register_gen, regcache_raw_write): Delete code
3427 predicated on legacy_p.
3428 (register_size): Delete check against register raw size.
3429
c1d546cd
AC
3430 * cris-tdep.c (cris_register_type): Replace
3431 cris_register_virtual_type.
3432 (cris_gdbarch_init): Update, set register_type.
3433
48c2c0a6
AC
3434 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3435 * gdbarch.h, gdbarch.c: Re-generate.
3436 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3437 (arm_gdbarch_init) Do not set frameless function invocation.
3438 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3439 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3440 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3441 (frv_gdbarch_init): Do not set frameless function invocation.
3442 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3443 * sh-tdep.c (sh_gdbarch_init): Ditto.
3444 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3445 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3446 * avr-tdep.c (avr_gdbarch_init): Ditto.
3447
474093a6
AC
3448 * blockframe.c (legacy_frame_chain_valid): Delete function.
3449
3c109c8b
AC
3450 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3451 and pc. Update comments.
3452 (pc_in_dummy_frame): Delete function.
3453 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3454 use the "id".
3455 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3456 call_hi, top and pc, use the id.
3457 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3458
96860204
AC
3459 * dummy-frame.c: Include "gdb_string.h".
3460 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3461 (generic_save_dummy_frame_tos): Delete.
3462 (dummy_frame_push): New function, replaces above.
3463 * dummy-frame.h: Update copyright.
3464 (dummy_frame_push): Declare.
3465 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3466 (generic_save_call_dummy_addr): Delete declarations.
3467 * infcall.c: Include "dummy-frame.h".
3468 (call_function_by_hand): Add locals caller_regcache,
3469 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3470 with call to frame_save_as_regcache plus cleanup. Delete calls to
3471 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3472 Move clear_proceed_status to just before the resume, add call to
3473 dummy_frame_push (discard cleanup).
3474 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3475 (dummy-frame.o): Add $(gdb_string_h).
3476
d67ec5db
AC
34772004-08-01 Andrew Cagney <cagney@gnu.org>
3478
3479 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3480 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3481 * dummy-frame.c (find_dummy_frame): Delete.
3482 (struct dummy_frame_cache, dummy_frame_sniffer)
3483 (dummy_frame_prev_register, dummy_frame_this_id)
3484 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3485 frame unwinder using a dummy_frame_cache.
3486
a81dcb05
AC
34872004-08-01 Andrew Cagney <cagney@gnu.org>
3488
3489 * frame.h (frame_save_as_regcache): Declare.
3490 * frame.c (frame_save_as_regcache): New function.
3491 (do_frame_read_register): Replace do_frame_unwind_register.
3492 (frame_pop): Use frame_save_as_regcache.
3493 * dummy-frame.c (generic_push_dummy_frame): Use
3494 frame_save_as_regcache.
3495
aa495d11
JB
34962004-08-01 Joel Brobecker <brobecker@gnat.com>
3497
3498 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3499 file as included until we record the first line in the linetable.
3500
ff65ac78
AC
35012004-08-01 Andrew Cagney <cagney@gnu.org>
3502
3503 * frame.h (deprecated_pop_dummy_frame)
3504 (deprecated_read_register_dummy)
3505 (deprecated_generic_find_dummy_frame): Delete.
3506 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3507 (deprecated_read_register_dummy)
3508 (deprecated_find_dummy_frame_regcache)
3509 (discard_innermost_dummy)
3510 (deprecated_pop_dummy_frame): Delete.
3511 (dummy_frame_this_id): Simplify.
3512 (struct dummy_frame): Delete "fp" and "sp".
3513 (find_dummy_frame): Simplify.
3514 (generic_push_dummy_frame): Do not set "fp" or "sp".
3515 (fprint_dummy_frames): Do not print "fp" and "sp"
3516
37bdc87e
MK
35172004-08-01 Mark Kettenis <kettenis@gnu.org>
3518
3519 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3520 (struct i386_insn): New structure.
3521 (i386_match_insn): New function.
3522 (i386_frame_setup_skip_insns): New variable.
3523 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3524 array i386_frame_setup_insns of instructions that should be
3525 skipped inside the frame setup sequence.
3526
8241eaa6
AC
35272004-08-01 Andrew Cagney <cagney@gnu.org>
3528
5bc602c7
AC
3529 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3530 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3531 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3532 * stack.c (frame_info): Delete references to
3533 DEPRECATED_FRAME_INIT_SAVED_REGS and
3534 deprecated_get_frame_saved_regs.
3535 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3536 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3537 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3538 (frame_unwind_register_signed)
3539 (frame_unwind_register_unsigned)
3540 (frame_unwind_unsigned_register): Use register_size.
3541 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3542 (deprecated_frame_xmalloc_with_cleanup)
3543 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3544 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3545
03d363a1
AC
3546 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3547 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3548 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3549 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3550
8241eaa6
AC
3551 * infcall.c (call_function_by_hand): Do not use
3552 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3553 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3554 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3555 DEPRECATED_STACK_ALIGN.
3556
f00df8b7
AC
35572004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3558
3559 Committed by Andrew Cagney.
3560 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3561
eec63939
AC
35622004-08-01 Andrew Cagney <cagney@gnu.org>
3563
3564 * mips-tdep.c (mips16_frame_cache)
3565 (mips16_frame_this_id, mips16_frame_prev_register)
3566 (mips16_frame_unwind, mips16_frame_sniffer)
3567 (mips16_frame_base_address, mips16_frame_base)
3568 (mips16_frame_base_sniffer, mips32_frame_cache)
3569 (mips32_frame_this_id, mips32_frame_prev_register)
3570 (mips32_frame_unwind, mips32_frame_sniffer)
3571 (mips32_frame_base_address, mips32_frame_base)
3572 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3573 separate heuristic mips16 and mips32 unwinders.
3574 (mips_stub_frame_cache, mips_stub_frame_this_id)
3575 (mips_stub_frame_prev_register)
3576 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3577 (mips_stub_frame_base_address, mips_stub_frame_base)
3578 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3579 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3580 match true mdebug frames.
3581 (non_heuristic_proc_desc): Add forward declaration.
3582
e66299b3
AC
35832004-08-01 Andrew Cagney <cagney@gnu.org>
3584
83cbbf3e
AC
3585 * config/mips/tm-irix6.h: Delete file.
3586 * config/mips/tm-irix5.h: Delete file.
3587 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3588 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3589
22d41b37
AC
3590 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3591 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3592 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3593 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3594 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3595 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3596 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3597 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3598 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3599 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3600 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3601 (TARGET_SIGNAL_RAW_VALUES): Delete.
3602 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3603 Delete.
3604 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3605 (TARGET_HW_WATCH_LIMIT): Delete.
3606 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3607 * minimon.h: Delete file.
3608
e66299b3
AC
3609 * trad-frame.c (trad_frame_get_this_base)
3610 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3611 functions.
3612 * trad-frame.h (trad_frame_set_this_base)
3613 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3614
1f67027d
AC
36152004-07-31 Andrew Cagney <cagney@gnu.org>
3616
3617 * trad-frame.c (trad_frame_get_prev_register): Rename
3618 trad_frame_get_prev_register.
3619 * vax-tdep.c (vax_frame_prev_register): Update.
3620 * trad-frame.h: Update.
3621 * trad-frame.c (trad_frame_get_register): Update.
3622 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3623 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3624 Update.
3625 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3626 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3627 Update.
3628 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3629 Update.
3630 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3631 Update.
3632 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3633 Update.
3634 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3635 Update.
3636 * s390-tdep.c (s390_frame_prev_register)
3637 (s390_stub_frame_prev_register)
3638 (s390_sigtramp_frame_prev_register): Update.
3639 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3640 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3641 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3642 * m88k-tdep.c (m88k_frame_prev_register)
3643 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3644 * m32r-tdep.c (m32r_frame_prev_register): Update.
3645 * hppa-tdep.c (hppa_frame_prev_register_helper)
3646 * frv-tdep.c (frv_frame_prev_register): Update.
3647 * d10v-tdep.c (d10v_frame_prev_register): Update.
3648 * cris-tdep.c (cris_frame_prev_register): Update.
3649 * avr-tdep.c (avr_frame_prev_register): Update.
3650 * arm-tdep.c (arm_prologue_prev_register)
3651 (arm_sigtramp_prev_register): Update.
3652
c1bf6f65
AC
36532004-07-31 Andrew Cagney <cagney@gnu.org>
3654
3655 * frame.h (legacy_saved_regs_unwind)
3656 (legacy_frame_chain_valid, legacy_frame_p)
3657 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3658 * dummy-frame.c (dummy_frame_this_id): Simplify.
3659 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3660 * frame.c (struct frame_info): Delete the field "type".
3661 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3662 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3663 (legacy_saved_regs_unwind, legacy_frame_p)
3664 (frame_type_from_pc): Delete.
3665 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3666 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3667
dc856692
MK
36682004-07-31 Mark Kettenis <kettenis@gnu.org>
3669
5a5effe1
MK
3670 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3671 indentation.
3672
d4fd50a6
MK
3673 * mips-nat.c: Remove file.
3674 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3675 (mips-nat.o): Remove dependency.
3676
2689df5a
MK
3677 * infptrace.c: Update copyright year.
3678 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3679 explicitly setting the buffer to all zeroes.
3680
dc856692
MK
3681 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3682 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3683
763910e0
AC
36842004-07-30 Andrew Cagney <cagney@gnu.org>
3685
3686 * GDB 6.2 released from gdb_6_2-branch.
3687
0b66e38c
EZ
36882004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3689
3690 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3691
3692 * exec.c (exec_file_attach):
3693 * nto-tdep.c (nto_find_and_open_solib):
3694 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3695 * solib.c (solib_open):
3696 * somsolib.c (som_solib_sizeof_symbol_table):
3697 * source.c (is_regular_file, openp, open_source_file):
3698 * symfile.c (symfile_bfd_open):
3699 * wince.c (upload_to_device): Differentiate between the search for
3700 binary and source files.
3701
be7d7357
AC
37022004-07-30 Andrew Cagney <cagney@gnu.org>
3703
3704 * complaints.c (_initialize_complaints): Pass NULL to
3705 add_setshow_zinteger_cmd for help_doc.
3706 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3707
ddc9cd0f
AC
37082004-07-30 Andrew Cagney <cagney@gnu.org>
3709
3710 Fix PR i18n/761.
3711 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3712 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3713 $(PACKAGE).pot and update-po.
3714 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3715 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3716 (update-po): New rules.
3717 (localedir): Define using autoconf.
3718 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3719 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3720 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3721 * configure.in: Generate CATALOGS and LINGUAS from contents of
3722 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3723 * configure: Re-generate.
3724 * po/gdbtext: New file
3725
e92f3704
JG
37262004-07-30 Jerome Guitton <guitton@gnat.com>
3727
3728 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3729 order.
3730
b0f35d58
DL
37312004-07-30 David Lecomber <dsl@sources.redhat.com>
3732
3733 * dwarf2read.c (read_file_scope): Set producer if attribute
3734 present.
3735 (struct dwarf2_cu): Added new member producer.
3736
ce7d4522
JG
37372004-07-30 Jerome Guitton <guitton@gnat.com>
3738
3739 * inflow.c (kill_command): release file handles in BFD.
3740 * exec.c (exec_file_attach): Ditto.
3741 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3742
05ee07c7
AC
37432004-07-29 Andrew Cagney <cagney@gnu.org>
3744
3745 * PROBLEMS (mips-irix): Note that it is broken.
3746
62eceb47
AC
37472004-07-29 Andrew Cagney <cagney@gnu.org>
3748
e57b8d41
AC
3749 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3750 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3751
d334389b
AC
3752 * config/xm-nbsd.h: Delete file.
3753 * config/arm/xm-nbsd.h: Delete file.
3754 * config/i386/xm-nbsd.h: Delete file.
3755 * config/ns32k/xm-nbsd.h: Delete file.
3756 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3757 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3758 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3759 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3760 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3761
e910f676
AC
3762 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3763 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3764 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3765 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3766 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3767 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3768
6fa856b9
AC
3769 * config/powerpc/xm-linux.h: Delete empty file.
3770 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3771 * config/powerpc/linux.mh (XM_FILE): Delete.
3772 * config/m68k/xm-linux.h: Delete empty file.
3773 * config/m68k/linux.mh (XM_FILE): Delete.
3774 * config/ia64/xm-linux.h: Delete empty file.
3775 * config/ia64/linux.mh (XM_FILE): Delete.
3776 * config/arm/xm-linux.h: Delete empty file.
3777 * config/arm/linux.mh (XM_FILE): Delete.
3778
471ae5ae
AC
3779 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3780 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3781 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3782 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3783 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3784 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3785 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3786 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3787
62eceb47
AC
3788 * config/m68k/xm-m68k.h: Delete file.
3789 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3790 copyright.
3791 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3792 * config/pa/xm-linux.h: Delete empty file.
3793 * config/pa/linux.mh (XM_FILE): Delete.
3794 * config/i386/xm-i386.h: Delete empty file.
3795 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3796 "i386/xm-i386.h".
3797 * config/i386/obsdaout.mh (XM_FILE): Delete.
3798 * config/i386/obsd64.mh (XM_FILE): Delete.
3799 * config/i386/fbsd64.mh (XM_FILE): Delete.
3800 * config/i386/nto.mh (XM_FILE): Delete.
3801 * config/i386/obsd.mh (XM_FILE): Delete.
3802 * config/i386/linux64.mh (XM_FILE): Delete.
3803 * config/i386/linux.mh (XM_FILE): Delete.
3804 * config/i386/i386sol2.mh (XM_FILE): Delete.
3805 * config/i386/i386gnu.mh (XM_FILE): Delete.
3806 * config/i386/fbsd.mh (XM_FILE): Delete.
3807 * config/i386/nbsd64.mh (XM_FILE): Delete.
3808
c35f4ffc
AC
38092004-07-29 Andrew Cagney <cagney@gnu.org>
3810
3811 * config/pa/xm-linux.h: Do not include "floatformat.h".
3812 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3813 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3814 * config/i386/xm-i386.h: Do not include "floatformat.h".
3815 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3816 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3817 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3818 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3819 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3820 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3821 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3822 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3823 * configure, config.in: Regenerate.
3824 * configure.host (gdb_host_float_format, gdb_host_double_format)
3825 (gdb_host_long_double_format): Set according to the host.
3826
624a44a3
AC
38272004-07-29 Andrew Cagney <cagney@gnu.org>
3828
3829 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3830
0dea2468
AC
38312004-07-28 Andrew Cagney <cagney@gnu.org>
3832
3833 * PROBLEMS: Mention threads/1650.
3834 * NEWS: Mention the NPTL fix.
3835
b3f42336
AC
38362004-07-28 Andrew Cagney <cagney@gnu.org>
3837
3838 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3839 (add_setshow_cmd_full): Make static.
3840 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3841 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3842 * cli/cli-decode.c (add_setshow_filename_cmd)
3843 (add_setshow_string_cmd): New functions.
3844 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3845 * mips-tdep.c (_initialize_mips_tdep): Update.
3846 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3847 * cli/cli-logging.c (_initialize_cli_logging): Update.
3848 * complaints.c (_initialize_complaints): Update.
3849 * remote.c (_initialize_remote): Update.
3850
3b64bf98
AC
38512004-07-28 Andrew Cagney <cagney@gnu.org>
3852
3853 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3854 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3855 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3856 print parameters. Make string parameters constant.
3857 * command.h: Update. Update copyright.
3858 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3859 * observer.c (_initialize_observer): Ditto.
3860 * frame.c (_initialize_frame): Ditto.
3861 * complaints.c (_initialize_complaints): Ditto.
3862 * maint.c (_initialize_maint_cmds): Ditto.
3863 * target.c (initialize_targets): Ditto.
3864 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3865 * infcall.c (_initialize_infcall): Ditto.
3866 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3867 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3868 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3869 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3870 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3871
e9667a65
AC
38722004-07-28 Andrew Cagney <cagney@gnu.org>
3873
54a5b07d
AC
3874 * gdbtypes.c (lookup_primitive_typename): Delete function.
3875 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3876 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3877 * gdbtypes.c (lookup_typename): Ditto.
3878 * f-exp.y (yylex): Ditto.
3879 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3880
e9667a65
AC
3881 * scm-lang.c (c_builtin_types): Delete extern declaration.
3882 (scm_language_defn): Replace
3883 string_char_type and primitive_type_vector with
3884 la_language_arch_info.
3885 * jv-lang.c (java_language_defn): Replace
3886 string_char_type and primitive_type_vector with
3887 la_language_arch_info.
3888 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3889 c_builtin_types in comment.
3890 * c-lang.h (struct language_arch_info): Declare opaque.
3891 (c_language_arch_info): Declare.
3892 (c_builtin_types): Delete declaration.
3893 * c-lang.c (c_language_arch_info): Set string_char_type to
3894 builtin_char, not builtin_true_char. Make global.
3895 (c_builtin_types): Delete array.
3896 (asm_language_defn, minimal_language_defn): Replace
3897 string_char_type and primitive_type_vector with
3898 la_language_arch_info.
3899
685419e2
AC
39002004-07-28 Andrew Cagney <cagney@gnu.org>
3901
3902 * gdbtypes.h (struct builtin_type): Rename true_char to
3903 builtin_true_char.
3904 * gdbtypes.c (gdbtypes_post_init): Update.
3905 * c-lang.c (arch_info): New function.
3906 (enum c_primitive_types): New enum.
3907 (c_language_defn): Instead of string_char_type and
3908 primitive_type_vector set la_language_arch_info.
3909
5a44ea29
AC
39102004-07-28 Andrew Cagney <cagney@gnu.org>
3911
3912 * language.h (struct language_arch_info): Fix typo
3913 s/primative/primitive/.
3914 * gdbtypes.c (lookup_primitive_typename): Ditto.
3915 * language.c (language_lookup_primitive_type_by_name)
3916 (unknown_language_arch_info): Ditto.
3917
f290d38e
AC
39182004-07-27 Andrew Cagney <cagney@gnu.org>
3919
3920 * defs.h (enum language): Add nr_languages.
3921 * language.h (struct language_arch_info): Define.
3922 (struct language_defn): Add la_language_arch_info.
3923 (language_lookup_primative_type_by_name): Declare.
3924 (language_string_char_type): Declare.
3925 * language.c (_initialize_language, language_gdbarch_post_init)
3926 (struct language_gdbarch, language_gdbarch_data): Implement
3927 per-architecture language information.
3928 (unknown_language_arch_info, language_string_char_type)
3929 (language_lookup_primative_type_by_name): New functions.
3930 (unknown_language_defn, auto_language_defn)
3931 (local_language_defn): Set la_language_arch_info to
3932 unknown_language_arch_info.
3933 (unknown_builtin_types): Delete.
3934 * gdbtypes.c (lookup_primitive_typename): Use
3935 language_lookup_primative_type_by_name.
3936 (create_string_type): Use language_string_char_type.
3937 * values.c (value_from_string): Use language_string_char_type.
3938 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3939 * p-lang.c (pascal_language_defn): Ditto.
3940 * m2-lang.c (m2_language_defn): Ditto.
3941 * jv-lang.c (java_language_defn): Ditto.
3942 * objc-lang.c (objc_language_defn): Ditto.
3943 * f-lang.c (f_language_defn): Ditto.
3944 * c-lang.c (c_language_defn, cplus_language_defn)
3945 (asm_language_defn, minimal_language_defn): Ditto.
3946
000177f0
AC
39472004-07-27 Andrew Cagney <cagney@gnu.org>
3948
3949 * gdbtypes.h (struct builtin_type): Declare.
3950 (builtin_type): Declare.
3951 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3952 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3953 (gdbtypes_post_init): New function.
3954 (builtin_type): New function.
3955
e22f895c
KI
39562004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3957
3958 * remote-m32r-sdi.c: Fix breakpoint bug.
3959 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3960 recv_char_data, recv_long_data): New functions to replace communication
3961 sequences.
3962
536517dd
MC
39632004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3964
3965 Document PR threads/1650.
3966 * PROBLEMS (Threads): Document problem with many threads
3967
a0a44d18
AC
39682004-07-26 Andrew Cagney <cagney@gnu.org>
3969
3970 * gdb-mi.el: Move from here ...
3971 * mi/gdb-mi.el: ... to here.
3972
7ac4ac06
AC
39732004-07-26 Andrew Cagney <cagney@gnu.org>
3974
3975 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3976 * main.c (captured_main): When in batch mode always detach.
3977
a1b461bf
AC
39782004-07-26 Andrew Cagney <cagney@gnu.org>
3979
3980 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3981 and h8300 as broken.
3982 * NEWS: END-OF-LIFE frame compatibility module.
3983 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3984 specific comments.
3985
cb1a6d5f
AC
39862004-07-26 Andrew Cagney <cagney@gnu.org>
3987
3988 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3989 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3990 * wince.c (_initialize_wince): Update.
3991 * win32-nat.c (_initialize_win32_nat): Update.
3992 * varobj.c (_initialize_varobj): Update.
3993 * valops.c (_initialize_valops): Update.
3994 * utils.c (initialize_utils, initialize_utils): Update.
3995 * tui/tui-win.c (_initialize_tui_win): Update.
3996 * top.c (init_main): Update.
3997 * symfile.c (_initialize_symfile): Update.
3998 * source.c (_initialize_source): Update.
3999 * somsolib.c (_initialize_som_solib): Update.
4000 * solib.c (_initialize_solib): Update.
4001 * solib-frv.c (_initialize_frv_solib): Update.
4002 * serial.c (_initialize_serial): Update.
4003 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4004 * remote.c (_initialize_remote, _initialize_remote): Update.
4005 * remote-vx.c (_initialize_vx): Update.
4006 * remote-utils.c (_initialize_sr_support): Update.
4007 * remote-sds.c (_initialize_remote_sds): Update.
4008 * remote-mips.c (_initialize_remote_mips): Update.
4009 * remote-e7000.c (_initialize_remote_e7000): Update.
4010 * proc-api.c (_initialize_proc_api): Update.
4011 * printcmd.c: Update.
4012 * parse.c (_initialize_parse): Update.
4013 * pa64solib.c (_initialize_pa64_solib): Update.
4014 * p-valprint.c (_initialize_pascal_valprint): Update.
4015 * monitor.c (_initialize_remote_monitors): Update.
4016 * mips-tdep.c (_initialize_mips_tdep): Update.
4017 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4018 * maint.c (_initialize_maint_cmds): Update.
4019 * lin-lwp.c (_initialize_lin_lwp): Update.
4020 * language.c (_initialize_language): Update.
4021 * kod.c (_initialize_kod): Update.
4022 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4023 * i386-tdep.c (_initialize_i386_tdep): Update.
4024 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4025 * gdbarch.sh: Update.
4026 * gdbarch.c: Re-generate.
4027 * gdb-events.sh: Update.
4028 * gdb-events.c: Re-generate.
4029 * frame.c (_initialize_frame): Update.
4030 * exec.c: Update.
4031 * demangle.c (_initialize_demangler): Update.
4032 * dcache.c (_initialize_dcache): Update.
4033 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4034 * cp-valprint.c (_initialize_cp_valprint): Update.
4035 * corefile.c (_initialize_core): Update.
4036 * command.h: Update.
4037 * cli/cli-decode.h: Update.
4038 * cli/cli-cmds.c (init_cli_cmds): Update.
4039 * charset.c (_initialize_charset): Update.
4040 * breakpoint.c (_initialize_breakpoint): Update.
4041 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4042 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4043 * aix-thread.c (_initialize_aix_thread): Update.
4044
b4632131
MK
40452004-07-24 Mark Kettenis <kettenis@gnu.org>
4046
4047 Partial fix for PR backtrace/1718.
4048 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4049 that GCC migrates into the prolugue. Don't handle any
4050 instructions that clobber %ebx.
4051
822c9732
AC
40522004-07-23 Andrew Cagney <cagney@gnu.org>
4053
4054 Use regcache_raw_collect instead of regcache_collect.
4055 * regcache.h (regcache_collect): Delete declaration.
4056 * regcache.c (regcache_colect): Delete function.
4057 * win32-nat.c (do_child_store_inferior_registers): Update.
4058 * sol-thread.c (sol_thread_store_registers): Update.
4059 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4060 * rs6000-nat.c (store_register): Update.
4061 * remote.c (store_register_using_P, remote_store_registers): Update.
4062 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4063 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4064 (fill_vrregset, store_spe_registers, fill_gregset)
4065 (fill_gregset): Update.
4066 * nto-procfs.c (procfs_store_registers): Update.
4067 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4068 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4069 * m68klinux-nat.c (store_register, fill_gregset): Update.
4070 * m68k-tdep.c (fill_gregset): Update.
4071 * infptrace.c (store_register): Update.
4072 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4073 * i386-linux-nat.c (store_register, fill_gregset): Update.
4074 * hppa-linux-nat.c (fill_gregset): Update.
4075 * go32-nat.c (store_register): Update.
4076 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4077 (store_fp_regs): Update.
4078 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4079 (store_nwfpe_extended, store_fpregister, store_fpregs)
4080 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4081 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4082 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4083 (store_regs_user_thread, store_regs_kernel_thread): Update.
4084
32b05c07
MK
40852004-07-24 Mark Kettenis <kettenis@gnu.org>
4086
4087 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4088 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4089 encoding.
4090 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4091 member of `struct comp_unit'.
4092
8567c30f
AC
40932004-07-23 Andrew Cagney <cagney@gnu.org>
4094
4095 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4096 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4097
f6da8dd8
MH
40982004-07-23 Martin Hunt <hunt@redhat.com>
4099 Kevin Buettner <kevinb@redhat.com>
4100
4101 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4102 alignment was being added to the offset instead of multiplied.
4103
bd921882
MK
41042004-07-23 Mark Kettenis <kettenis@gnu.org>
4105
24f033e8
MK
4106 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4107 changed signal trampoline in OpenBSD 3.5-current.
4108
90f3cecd
MK
4109 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4110 <machine/pcb.h> and "bsd-kvm.h".
4111 (sparc64nbsd_supply_pcb): New function.
4112 (_initialize_sparc64nbsd_nat): Renamed from
4113 _initialize_sparcnbsd_nat. Enable libkvm interface.
4114 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4115 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4116 (LOADLIBES): New variable.
4117
a4954a62
MK
4118 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4119
bd921882
MK
4120 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4121
23a6d369
AC
41222004-07-21 Andrew Cagney <cagney@gnu.org>
4123
4124 Use regcache_raw_supply instead of supply_register.
4125 * regcache.h (supply_register): Delete declaration.
4126 * regcache.c (supply_register): Delete function.
4127 * wince.c (do_child_fetch_inferior_registers): Update.
4128 * win32-nat.c (do_child_fetch_inferior_registers)
4129 (fetch_elf_core_registers): Update.
4130 * v850ice.c (v850ice_fetch_registers): Update.
4131 * thread-db.c (thread_db_store_registers): Update.
4132 * sol-thread.c (sol_thread_store_registers): Update.
4133 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4134 * rs6000-nat.c (fetch_register): Update.
4135 * rom68k-rom.c (rom68k_supply_one_register): Update.
4136 * remote.c (remote_wait, remote_async_wait): Update.
4137 * remote-st.c (get_hex_regs): Update.
4138 * remote-sim.c (gdbsim_fetch_register): Update.
4139 * remote-sds.c (sds_fetch_registers): Update.
4140 * remote-rdp.c (remote_rdp_fetch_register): Update.
4141 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4142 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4143 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4144 * remote-hms.c (init_hms_cmds): Update.
4145 * remote-est.c (init_est_cmds): Update.
4146 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4147 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4148 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4149 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4150 (fetch_register, supply_vrregset, supply_vrregset)
4151 (fetch_spe_registers): Update.
4152 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4153 * monitor.c (monitor_supply_register): Update.
4154 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4155 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4156 (mipsnbsd_supply_fpreg): Update.
4157 * mips-nat.c (fetch_inferior_registers)
4158 (fetch_core_registers): Update.
4159 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4160 (supply_fpregset, mips64_supply_gregset)
4161 (mips64_supply_fpregset): Update.
4162 * m68klinux-nat.c (fetch_register, supply_gregset)
4163 (supply_fpregset): Update.
4164 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4165 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4166 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4167 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4168 * infptrace.c (fetch_register): Update.
4169 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4170 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4171 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4172 (gnu_fetch_registers, gnu_store_registers): Update.
4173 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4174 * i386-linux-nat.c (fetch_register, supply_gregset)
4175 (dummy_sse_values): Update.
4176 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4177 * hppah-nat.c (fetch_register): Update.
4178 * hppa-linux-nat.c (fetch_register, supply_gregset)
4179 (supply_fpregset): Update.
4180 * go32-nat.c (fetch_register): Update.
4181 * dve3900-rom.c (fetch_bitmapped_register)
4182 (_initialize_r3900_rom): Update.
4183 * cris-tdep.c (supply_gregset): Update.
4184 * abug-rom.c (init_abug_cmds): Update.
4185 * core-aout.c (fetch_core_registers): Update.
4186 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4187 (fetch_register, fetch_fp_register): Update.
4188 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4189 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4190 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4191 * alphanbsd-tdep.c (fetch_core_registers): Update.
4192 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4193 * alpha-nat.c (fetch_osf_core_registers)
4194 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4195 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4196 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4197
73cc75f3
AC
41982004-07-21 Andrew Cagney <cagney@gnu.org>
4199
4200 * PROBLEMS: Mention breakpoints/1702.
4201 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4202 that is known to work.
4203
a53c66de
AC
42042004-07-21 Andrew Cagney <cagney@gnu.org>
4205
4206 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4207 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4208 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4209 (handle_inferior_event): Wrap call to deprecated
4210 IGNORE_HELPER_CALL in #ifdef.
4211 * config/mips/tm-nbsd.h: Update.
4212
708ff411
JB
42132004-07-20 Jim Blandy <jimb@redhat.com>
4214
412b3060
JB
4215 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4216 bfd_mach_ppc has no segment registers.
4217
13ac140c
JB
4218 Include PowerPC SPR numbers for special-purpose registers.
4219 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4220 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4221 new member in initializer.
4222 (S, S4, SN4, S64): New macros for defining special-purpose
4223 registers.
4224 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4225 registers_403, registers_403GC, registers_505, registers_860,
4226 registers_601, registers_602, registers_603, registers_604,
4227 registers_750, registers_e500): Use them.
4228
708ff411
JB
4229 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4230 replace references with expression used to initialize variable.
4231
1f602b35
AC
42322004-07-20 Andrew Cagney <cagney@gnu.org>
4233
4234 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4235 read_memory_nobpt.
4236 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4237 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4238 (s390_sigtramp_frame_sniffer): Update.
4239 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4240 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4241 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4242 (mips32_fetch_instruction): Update.
4243 * mcore-tdep.c (get_insn): Update.
4244 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4245 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4246 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4247 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4248 (i386_linux_rt_sigtramp_start): Update.
4249 * i386-linux-nat.c (child_resume): Update.
4250 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4251 * hppa-linux-tdep.c (insns_match_pattern): Update.
4252 * gdbcore.h: Update.
4253 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4254 * frame.c (safe_frame_unwind_memory): Update.
4255 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4256 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4257 * alpha-tdep.c (alpha_read_insn): Update.
4258
2cd8546d
AC
42592004-07-20 Andrew Cagney <cagney@gnu.org>
4260
4261 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4262 containing both bytes and mask. Add "frame_type".
4263 * tramp-frame.c (tramp_frame_start): Update.
4264 (tramp_frame_prepend_unwinder): Update.
4265 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4266 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4267 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4268 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4269
f928dd62
EZ
42702004-07-19 Eli Zaretskii <eliz@gnu.org>
4271
4272 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4273 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4274 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4275 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4276
d5c560f7
AC
42772004-07-17 Andrew Cagney <cagney@gnu.org>
4278
860660cb
AC
4279 * NEWS, PROBLEMS: Update for 6.2.
4280
8c266f54
AC
4281 * README: Update to 6.2.
4282
a552edd9
AC
4283 * utils.c (xvasprintf): Call xstrvprintf.
4284
c4a172b5
AC
4285 * parse.c: Update copyright.
4286 (null_post_parser): Eliminate ARGSUSED.
4287
da745b36
AC
4288 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4289 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4290 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4291
9cbc6ef0
AC
4292 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4293 * ppc-linux-nat.c: Use "Linux kernel".
4294 * hppa-linux-tdep.c: Use GNU/Linux.
4295 * hppa-linux-nat.c: Use GNU/Linux.
4296 * dwarfread.c: Add [sic] to use of Linux.
4297
1b89295f
AC
4298 * hppa-linux-nat.c: Do not include <string.h>.
4299 (supply_fpregset): Remove "register" attribute.
4300
d5c560f7
AC
4301 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4302
7ddd7709
MK
43032004-07-17 Mark Kettenis <kettenis@gnu.org>
4304
b1d19a62
MK
4305 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4306 * configure, config.in: Regenerated.
4307
7ddd7709
MK
4308 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4309 "bsd-kvm.h".
4310 (vaxbsd_supply_pcb): New function.
4311 (_initialize_vaxbsd_nat): New prototype and function.
4312 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4313 solib-sunos.o.
4314 (LOADLIBES): New variable.
4315 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4316 (LOADLIBES): New variable.
4317 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4318 (LOADLIBES): New variable.
4319 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4320
2c07db7a
AC
43212004-07-16 Andrew Cagney <cagney@gnu.org>
4322
4323 * defs.h (event_loop_p): Replace variable declaration with macro,
4324 always 1.
4325 * main.c (captured_main): Delete options "-async" and "-noasync".
4326 (event_loop_p): Delete variable.
4327 * NEWS: Mention that "-async" and "-noasync" were removed.
4328
717eb1cf
AC
43292004-07-16 Andrew Cagney <cagney@gnu.org>
4330
4331 * remote-m32r-sdi.c: Re-indent.
4332
c101bc14
JB
43332004-07-16 Jim Blandy <jimb@redhat.com>
4334
5109a438
JB
4335 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4336 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4337 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4338 missing MPC823 SPRs.
4339 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4340 incorrect. (This was corrected in GDB's register name tables on
4341 2004-07-14.)
4342
c101bc14
JB
4343 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4344 should be "esasrr" ("ESA Save and Restore Register").
4345
7ce450bd
AC
43462004-07-16 Andrew Cagney <cagney@gnu.org>
4347
4348 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4349 calls, no longer applicable. Update comments and rename parameter
4350 "step_frame" to "return_frame".
4351
ca73dd9d
AC
43522004-07-16 Andrew Cagney <cagney@gnu.org>
4353
4354 * frame.c (fprint_field): New function.
4355 (fprint_frame_id): Use fprint_field.
4356
31941f6d
JB
43572004-07-15 Joel Brobecker <brobecker@gnat.com>
4358
4359 * ada-lang.c (ada_language_defn): Remove commented out code.
4360
f86a7158
JB
43612004-07-15 Jim Blandy <jimb@redhat.com>
4362
4363 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4364 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4365
c24791ec
JB
43662004-07-14 Jim Blandy <jimb@redhat.com>
4367
29bb1356
JB
4368 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4369
cc98b5cc
JB
4370 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4371
8f088af7
JB
4372 * ppc-tdep.h (ppc_num_srs): New enum constant.
4373
0ea0ec5f
JB
4374 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4375 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4376 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4377 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4378 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4379 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4380 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4381 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4382 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4383 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4384 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4385 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4386 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4387 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4388 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4389 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4390 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4391 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4392 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4393 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4394 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4395 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4396 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4397 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4398 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4399 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4400 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4401 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4402 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4403 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4404 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4405 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4406 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4407 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4408 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4409 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4410 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4411 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4412 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4413 special-purpose register numbers.
4414
c24791ec
JB
4415 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4416 manual mentions 'md_twb', but many mention 'm_twb', and at that
4417 point in the register list.)
4418
d833db3b
AC
44192004-07-14 Andrew Cagney <cagney@gnu.org>
4420
4421 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4422 instead of "internal-error".
4423
080228b2
JB
44242004-07-10 Joel Brobecker <brobecker@gnat.com>
4425
4426 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4427 that was inserted inside a comment.
4428
c268433a
RC
44292004-07-10 Randolph Chung <tausq@debian.org>
4430
4431 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4432 function.
4433 (hppa_hpux_push_dummy_code): New function.
4434 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4435 Set find_global_pointer method.
4436
71009278
MK
44372004-07-10 Mark Kettenis <kettenis@gnu.org>
4438
4439 * NEWS: Mention BSD libkvm interface.
4440
b2fa5097
MS
44412004-07-10 Michael Snyder <msnyder@redhat.com>
4442
4443 * symfile.c (generic_load): Comment typo.
4444 * stack.c (get_selected_block): Ditto.
4445 * regcache.c (regcache_cooked_read): Ditto.
4446 * monitor.c (monitor_debug): Ditto.
4447 * mips-tdep.c (mips_read_pc): Ditto.
4448 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4449 * gdb_mbuild.sh: Ditto.
4450 * gdbarch.sh: Ditto.
4451 * gdbarch.h: Ditto.
4452
c3e5cd34
PH
44532004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4454
8a2225b2
PH
4455 * ada-tasks.c: Remove file.
4456
c3e5cd34
PH
4457 Remove ARI problems:
4458
4459 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4460 beginning of line.
4461
4462 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4463 Add comment.
4464 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4465 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4466 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4467 (UMIN_OF_SIZE): Remove.
4468 (max_of_type): New function to replace orphan macro in gdbtypes.h
4469 (min_of_type): Ditto.
4470 (discrete_type_high_bound): Use max_of_type.
4471 (discrete_type_low_bound): Use min_of_type.
4472 (possible_user_operator_p): Move operator to beginning of line.
4473 (ada_is_variant_part): Ditto.
4474 (ensure_lval): Rewrite to avoid deprecated operations.
4475 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4476 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4477 (ada_enum_name): Remove assignments in 'if' statements.
4478 (build_ada_types): Add gdbarch parameter.
4479 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4480 with gdbarch_data_register_post_init.
4481 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4482 add_show_from_set.
4483
4484 * ada-valprint.c (inspect_it): Remove declaration.
4485 (repeat_count_threshold): Remove declaration.
4486 (ada_print_floating): Remove assignments in 'if' statements.
4487 (print_str): Move operator to beginning of line.
4488
61ce229a
JB
44892004-07-08 Jim Blandy <jimb@redhat.com>
4490
4491 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4492
09bcec80
BR
44932004-07-08 Bob Rossi <bob@brasko.net>
4494
4495 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4496
31c27f77
JJ
44972004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4498
4499 * language.h (struct_language_defn): Add new function pointer:
4500 la_class_name_from_physname. Also add new prototype for
4501 language_class_name_from_physname.
4502 * language.c (language_class_name_from_physname): New function.
4503 (unk_lang_class_name): Ditto.
4504 (unknown_language_defn, auto_language_defn): Change
4505 to add unk_lang_class_name function pointer for
4506 la_class_name_from_physname.
4507 (local_language_defn): Ditto.
4508 * dwarf2read.c (guess_structure_name): Change to call
4509 language_class_name_from_physname.
4510 (determine_class_name): Ditto.
4511 * cp-support.c (class_name_from_physname): Renamed.
4512 (cp_class_name_from_physname): New name of function.
4513 * cp-support.h: Ditto.
4514 * c-lang.c (c_language_defn): Change to add NULL
4515 for class_name_from_physname function pointer.
4516 (cplus_language_defn): Change to add cp_class_name_from_physname.
4517 * jv-lang.c (java_class_name_physname): New function.
4518 (java_find_last_component): New static routine.
4519 (java_language_defn): Add java_class_name_from_physname pointer.
4520 * ada-lang.c (ada_language_defn): Change to add NULL
4521 for class_name_from_physname function pointer.
4522 * f-lang.c (f_language_defn): Ditto.
4523 * m2-lang.c (m2_language_defn): Ditto.
4524 * objc-lang.c (objc_language_defn): Ditto.
4525 * p-lang.c (pascal_language_defn): Ditto.
4526 * scm-lang.c (scm_language_defn): Ditto.
4527
ee28ca0f
AC
45282004-07-06 Andrew Cagney <cagney@gnu.org>
4529
4530 Patch from Bart Robinson.
4531 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4532 (O_LARGEFILE): Define to 0, if not defined.
4533
fdb1bf9d
MK
45342004-07-03 Mark Kettenis <kettenis@gnu.org>
4535
cb162ff6
MK
4536 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4537 <machine/pcb.h> and "bsd-kvm.h".
4538 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4539 (m68kbsd_supply_pcb): New function.
4540 (_initialize_m68kbsd_nat): New prototype and function.
4541 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4542 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4543 (LOADLIBES): New variable.
4544 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4545 (LOADLIBES): New variable.
4546
fdb1bf9d
MK
4547 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4548
963c4174
MK
45492004-07-03 Mark Kettenis <kettenis@gnu.org>
4550
4551 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4552 <sys/proc.h>.
4553 (bsd_kvm_cmdlist): New variable.
4554 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4555 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4556 command and "kvm proc" command.
4557 * Makefile.in (bsd-kvm.o): Update dependencies.
4558
533f1d8f
MK
45592004-07-02 Mark Kettenis <kettenis@gnu.org>
4560
4561 * osabi.c: Update copyright year.
4562 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4563 notes if EI_OSABI is set to ELFOSABI_HPUX.
4564
6780dcde
MS
45652004-07-01 Michael Snyder <msnyder@redhat.com>
4566
4567 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4568 that seems to have gotten whacked out of line.
4569
67bebe79
MK
45702004-07-01 Mark Kettenis <kettenis@gnu.org>
4571
4572 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4573 code.
4574
0b5d8877
PH
45752004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4576
4577 * ada-lang.c (decode_packed_array): Minor change to comment.
4578 (ada_value_slice_ptr): New function.
4579 (ada_value_slice): New function.
4580 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4581 test. Don't know why it is there.
4582 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4583 to avoid dereferencing huge arrays from which one is slicing.
4584 (empty_array): Correct to return an array rather than
4585 a subrange value.
4586 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4587 on empty arrays (let'em use 'FIRST instead).
4588
19c1ef65
PH
45892004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4590
4591 Address complaints from gdb_ari.sh:
4592
4593 * ada-exp.y: Include gdb_string.h rather than string.h.
4594 (convert_char_literal): Reformat declaration.
4595 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4596 * ada-lex.l: Change use of free to xfree (the macro would do so
4597 anyway, but this is harmless).
4598 Include gdb_string.h rather than string.h.
4599 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4600
4601 * ada-lang.c (parse): Remove K&Rism in parameter list.
4602 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4603
d81cbc94
MK
46042004-06-30 Mark Kettenis <kettenis@gnu.org>
4605
4606 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4607 dead code.
4608
07681759
MK
46092004-06-30 Mark Kettenis <kettenis@gnu.org>
4610
4611 * alphabsd-nat.c: Update copyright year.
4612 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4613
f7948b5f
JB
46142004-06-29 Joel Brobecker <brobecker@gnat.com>
4615
6e0cdd28 4616 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4617 (i386_cygwin_in_solib_call_trampoline): New function.
4618 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4619 and skip_trampoline_code gdbarch methods.
4620
8f113c9a
JB
46212004-06-29 Jim Blandy <jimb@redhat.com>
4622
4623 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4624 name actually used in the dependency lists.
4625
97dc871c
RC
46262004-06-29 Randolph Chung <tausq@debian.org>
4627
4628 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4629
47216e51
CV
46302004-06-29 Corinna Vinschen <vinschen@redhat.com>
4631
4632 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4633 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4634 functionality.
4635
e623b504
AC
46362004-06-28 Andrew Cagney <cagney@gnu.org>
4637
4638 * defs.h (xstrvprintf): Declare.
4639 * utils.c (xstrvprintf): New function.
4640 (internal_vproblem, xstrprintf, xasprintf)
4641 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4642 * serial.c (serial_printf): Ditto.
4643 * complaints.c (vcomplaint): Ditto.
4644
79acc9b3
CV
46452004-06-29 Corinna Vinschen <vinschen@redhat.com>
4646
4647 * infcmd.c (attach_command): Move call to target_terminal_inferior
4648 behind loading symbol table.
4649
1daf35d9
AC
46502004-06-28 Andrew Cagney <cagney@gnu.org>
4651
4652 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4653 change - add back extern deprecated_ui_loop_hook declaration.
4654
b435e160
AC
46552004-06-28 Andrew Cagney <cagney@gnu.org>
4656
4657 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4658 xstrprintf.
4659 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4660 (c_value_of_variable): Ditto.
4661 * utils.c (internal_vproblem): Ditto.
4662 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4663 * remote.c (add_packet_config_cmd): Ditto.
4664 * remote-rdp.c (rdp_set_command_line): Ditto.
4665 * regcache.c (regcache_dump): Ditto.
4666 * frv-tdep.c (new_variant, new_variant): Ditto.
4667 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4668 (fbsd_find_memory_regions): Ditto.
4669 * breakpoint.c (create_thread_event_breakpoint)
4670 (create_breakpoints): Ditto.
4671 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4672 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4673
06d5cf63
JB
46742004-06-28 Joel Brobecker <brobecker@gnat.com>
4675
4676 * ada-lang.c: Re-indent file, with some massaging to help indent
4677 a bit when the result is otherwise really too ugly.
4678
35809fad
UW
46792004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4680
4681 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4682 code_addr_p and special_addr_p to 'unsigned int'.
4683
40e20472
MK
46842004-06-27 Mark Kettenis <kettenis@gnu.org>
4685
4686 * i386v4-nat.c: Update copyright year and tweak comment.
4687 (regmap): Remove trailing comma.
4688 (supply_gregset): Rename local variable i to regnum. Call
4689 regcache_raw_supply instead of supply_register.
4690 (fill_gregset): Rename argument regno to regnum. Call
4691 regcache_raw_collect instead of regcache_collect.
4692
12b0b6de
UW
46932004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4694
4695 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4696 and special_addr_p.
4697 (frame_id_build, frame_id_build_special): Update comments.
4698 (frame_id_build_wild): New prototype.
4699 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4700 struct frame_id fields.
4701 (frame_id_build_wild): New function.
4702 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4703
47b42a3e
MK
47042004-06-27 Mark Kettenis <kettenis@gnu.org>
4705
4706 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4707 hppabsd-tdep.c.
4708
1265e4aa
JB
47092004-06-27 Joel Brobecker <brobecker@gnat.com>
4710
4711 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4712
76a01679
JB
47132004-06-27 Joel Brobecker <brobecker@gnat.com>
4714
4715 * ada-lang.c: Re-indent file.
4716
7aca490a
JB
47172004-06-27 Joel Brobecker <brobecker@gnat.com>
4718
4719 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4720 (no_symtab_msg): Likewise.
4721
5e987968
AS
47222004-06-27 Andreas Schwab <schwab@suse.de>
4723
4724 * source.c: Fix whitespace.
4725
315c4276
MK
47262004-06-27 Mark Kettenis <kettenis@gnu.org>
4727
d15be926
MK
4728 * configure.in: Include <sys/param.h> for td_pcb test.
4729 * configure: Regenerated.
4730
9062529b
MK
4731 * i386nbsd-nat.c: New file.
4732 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4733 i386obsd-nat.c and i386obsd-tdep.c.
4734 (i386nbsd-nat.o): New dependency.
4735 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4736 bsd-kvm.o.
4737 (LOADLIBES): New variable.
4738 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4739 bsd-kvm.o.
4740 (LOADLIBES): New variable.
4741
8010310e
MK
4742 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4743 (LOADLIBES): New variable.
4744
efe1d7b9
MK
4745 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4746 fetching from BSD_KVM_PADDR. Correctly lookup address for
4747 "_thread0".
4748
315c4276
MK
4749 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4750 "bsd-kvm.h".
4751 (amd64fbsd_supply_pcb): New funcion.
4752 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4753
399cfac6
DL
47542004-06-27 <david@streamline-computing.com>
4755
4756 Partial fix for PR cli/1056.
4757 * valarith.c: Check for zero in division and remainder
4758 evaluation.
4759
6235f9c8
MK
47602004-06-27 Mark Kettenis <kettenis@gnu.org>
4761
4762 * i387-tdep.c: Remove excessive whitespace.
4763
2726dafc
AC
47642004-06-26 Andrew Cagney <cagney@gnu.org>
4765
4766 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4767 * gdb-events.h, gdb-events.c: Re-generate.
4768 * tui/tui-hooks.c (tui_install_hooks): Update.
4769 (tui_remove_hooks): Update.
4770 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4771
0e56aeaf
MK
47722004-06-26 Mark Kettenis <kettenis@gnu.org>
4773
cb461069
MK
4774 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4775 (gregset_t, fpregset_t): Remove typedefs.
4776 (REG_OFFSET): Rename argument.
4777 (amd64bsd_r_reg_offset): Rename from reg_offset.
4778 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4779 Remove functions.
4780 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4781 of reg_offset.
4782 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4783
ecba89de
MK
4784 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4785
4cd80476
MK
4786 * vax-tdep.c: Tweak comment.
4787
0e56aeaf
MK
4788 Add OpenBSD/hppa support.
4789 * NEWS (New native configurations): Mention OpenBSD/hppa.
4790 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4791 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4792 files.
4793 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4794 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4795 * configure.host: Add hppa*-*-openbsd*.
4796 * configure.tgt: Add hppa*-*-openbsd*.
4797
98bbd631
AC
47982004-06-25 Andrew Cagney <cagney@gnu.org>
4799
4800 * defs.h (deprecated_ui_loop_hook): Deprecated.
4801 * wince.c (child_wait): Update.
4802 * win32-nat.c (child_wait): Update.
4803 * v850ice.c (v850ice_wait): Update.
4804 * top.c (deprecated_ui_loop_hook): Update.
4805 * serial.h: Update.
4806 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4807 (do_unix_readchar): Update.
4808 * ser-tcp.c (net_open): Update.
4809 * remote-sim.c (gdb_os_poll_quit): Update.
4810 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4811
769d7dc4
AC
48122004-06-24 Andrew Cagney <cagney@gnu.org>
4813
4814 * defs.h (deprecated_pre_add_symbol_hook)
4815 (deprecated_post_add_symbol_hook): Deprecated.
4816 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4817 (symbol_file_add_with_addrs_or_offsets): Update references.
4818
11c949aa
AC
48192004-06-24 Andrew Cagney <cagney@gnu.org>
4820
4821 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4822 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4823 * wince.c (ui_loop_hook): Delete extern declaration.
4824 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4825 * v850ice.c (ui_loop_hook): Delete extern declaration..
4826 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4827 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4828 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4829 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4830 ui_loop_hook declaration.
4831
eedc19af
AC
48322004-06-24 Andrew Cagney <cagney@gnu.org>
4833
4834 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4835 entry_func_highpc fields.
4836 * objfiles.c (init_entry_point_info): Do not clear
4837 entry_func_lowpc and entry_func_highpc.
4838 (objfile_relocate): Do not relocate entry_func_lowpc and
4839 entry_func_highpc.
4840 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4841 entry_func_highpc.
4842 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4843 entry_func_highpc.
4844 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4845 entry_func_lowpc and entry_func_highpc with call to
4846 inside_entry_func.
4847
d47079be
MK
48482004-06-24 Mark Kettenis <kettenis@gnu.org>
4849
4850 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4851 quad-precision floating point arguments in registers.
4852
2107e348
MK
48532004-06-24 Mark Kettenis <kettenis@gnu.org>
4854
4855 From Michael Mueller <m.mueller99@kay-mueller.de>:
4856 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4857 account.
4858
46587c42
JJ
48592004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4860
4861 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4862 to -1.
4863 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4864 untriggered watchpoints to a separate if clause. Update function
4865 comment regarding STOPPED_BY_WATCHPOINT argument.
4866
226f5cf4
JB
48672004-06-22 Jim Blandy <jimb@redhat.com>
4868
4869 * gdbarch.sh: Doc fix.
4870
f10683bb
MH
48712004-06-21 Martin Hunt <hunt@redhat.com>
4872 Kevin Buettner <kevinb@redhat.com>
4873
4874 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4875 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4876 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4877 to set_gdbarch_sp_regnum(). Use cooked register number.
4878 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4879
412d5987
AC
48802004-06-21 Andrew Cagney <cagney@gnu.org>
4881
4882 * gdbarch.sh: When the macro field is empty, do not generate a
4883 macro definition. When the macro field is "=", generate the macro
4884 name from the upper-case function name.
4885 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4886 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4887 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4888 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4889 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4890 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4891 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4892 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4893 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4894 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4895 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4896 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4897 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4898 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4899 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4900 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4901 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4902 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4903 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4904 (DEPRECATED_USE_STRUCT_CONVENTION)
4905 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4906 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4907 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4908 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4909 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4910 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4911 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4912 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4913 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4914 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4915 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4916 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4917 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4918 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4919 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4920 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4921 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4922 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4923
68908a3e
AC
49242004-06-21 Andrew Cagney <cagney@gnu.org>
4925
48f7351b
AC
4926 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4927 macro name, and the function rather than macro value. Only wrap
4928 macro print statements in #ifdef. Move format logic to where it
4929 is needed.
4930 * gdbarch.c: Re-generate.
4931
283354d8
AC
4932 * gdbarch.sh (read): Delete "print_p" and "description", add
4933 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4934 Delete references to print_p.
4935 (TARGET_ARCHITECTURE): Delete print predicate.
4936 * gdbarch.c: Re-generate.
4937
68908a3e
AC
4938 * gdbarch.sh: Check that multi-arch methods do not provide a
4939 macro.
4940 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4941 (print_registers_info, print_float_info, print_vector_info)
4942 (adjust_breakpoint_address, remote_translate_xfer_address)
4943 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4944 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4945 name from the multi-arch definition.
4946
a2428dbe
AC
49472004-06-20 Andrew Cagney <cagney@gnu.org>
4948
4949 * gdbarch.sh: Sort by the function, instead of macro name.
4950 * gdbarch.c: Re-generate.
4951
750eb019
AC
49522004-06-20 Andrew Cagney <cagney@gnu.org>
4953
66d659b1
AC
4954 * gdbarch.sh: Use the function, instead of macro name in
4955 errors and the log file.
4956 (return_value): Remove stray ":" in spec.
4957
750eb019
AC
4958 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4959 * gdbarch.h, gdbarch.c: Re-generate.
4960 * Makefile.in (arch-utils.o): Update dependencies.
4961 * values.c (using_struct_return): Move code calling
4962 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4963 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4964 to legacy_return_value, simplify.
4965 * infcmd.c (print_return_value): Move code calling
4966 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4967 to legacy_return_value, simplify.
4968 * infcall.c (call_function_by_hand): Move code calling
4969 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4970 * arch-utils.c: Update copyright. Include "gdbcore.h".
4971 (legacy_return_value): New function.
4972 * arch-utils.h: Update copyright.
4973 (legacy_return_value): Declare.
4974
b5622e8d
AC
49752004-06-20 Andrew Cagney <cagney@gnu.org>
4976
4977 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4978 * gdbarch.h, gdbarch.c: Re-generate.
4979 * values.c (using_struct_return): Update call.
4980 * mcore-tdep.c: Update comment.
4981 * infcall.c (call_function_by_hand): Update comment.
4982 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4983 * arch-utils.h (always_use_struct_convention): Update.
4984 * v850-tdep.c (v850_gdbarch_init): Update.
4985 * sh64-tdep.c (sh64_gdbarch_init): Update.
4986 * sh-tdep.c (sh_gdbarch_init): Update.
4987 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4988 * mips-tdep.c (mips_gdbarch_init): Update.
4989 * mcore-tdep.c (mcore_gdbarch_init): Update.
4990 * m32r-tdep.c (m32r_gdbarch_init): Update.
4991 * ia64-tdep.c (ia64_gdbarch_init): Update.
4992 * h8300-tdep.c (h8300_gdbarch_init): Update.
4993 * frv-tdep.c (frv_gdbarch_init): Update.
4994 * cris-tdep.c (cris_gdbarch_init): Update.
4995 * arm-tdep.c (arm_gdbarch_init): Update.
4996 * alpha-tdep.c (alpha_gdbarch_init): Update.
4997
5191de37
MC
49982004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4999
5000 * PROBLEMS: Add more specific information, and a work-around,
5001 for PR gdb/1458.
5002
782263ab
AC
50032004-06-18 Andrew Cagney <cagney@gnu.org>
5004
5005 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5006 * gdbarch.h, gdbarch.c: Re-generate.
5007 * ada-lang.c (ada_finish_decode_line_1): Update.
5008 * infrun.c (handle_inferior_event): Update.
5009 * infcall.c (find_function_addr): Update.
5010 * linespec.c (minsym_found): Update.
5011 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5012 Update.
5013 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5014 * cli/cli-cmds.c (disassemble_command): Update.
5015 * vax-tdep.c (vax_gdbarch_init): Update.
5016
2f305df1
MK
50172004-06-18 Mark Kettenis <kettenis@gnu.org>
5018
5019 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5020
e5fe55f7
AC
50212004-06-17 Andrew Cagney <cagney@gnu.org>
5022
5023 GDB 6.1.1 released from the GDB 6.1 branch.
5024 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5025 * PROBLEMS: Ditto.
5026
473b7be6
DJ
50272004-06-16 Daniel Jacobowitz <dan@debian.org>
5028
5029 PR gdb/1658
5030 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5031 operation as a uleb128. Found by Michael Coulter.
5032
96d887e8
PH
50332004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5034
5035 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5036 make it non-static.
5037 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5038 to ada-lang.h; this is needed to be able to implement the kill command
5039 in multi-task mode.
5040 (task_ptid): Ditto.
5041 (task_entry): Ditto.
5042 (task_list): Ditto.
5043 (ada_build_task_list): Ditto.
5044
5045 * ada-lang.c: Conditionalize routines and data structures related
5046 to breakpoints, exceptions, completion, and symbol caching on
5047 GNAT_GDB, since these are not yet used in the submitted public sources.
5048 (ada_main_name): Editorial: Move definition out of exception-related
5049 code.
5050
31eef181
AC
50512004-06-15 Andrew Cagney <cagney@gnu.org>
5052
5053 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5054 deprecated_pc_in_call_dummy.
5055
2c500098
AM
50562004-06-15 Alan Modra <amodra@bigpond.net.au>
5057
5058 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5059 bfd_get_section_size_before_reloc or _raw_size.
5060 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5061 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5062 (dwarf2_read_section): Likewise.
5063 * elfread.c (elf_locate_sections): Likewise.
5064 * gcore.c (derive_heap_segment): Likewise.
5065 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5066 * remote-e7000.c (e7000_load): Likewise.
5067 * remote-m32r-sdi.c (m32r_load): Likewise.
5068 * remote-mips.c (mips_load_srec): Likewise.
5069 (pmon_load_fast): Likewise.
5070 * remote.c (compare_sections_command): Likewise.
5071 * symfile.c (add_section_size_callback): Likewise.
5072 (load_section_callback): Likewise.
5073 (pc_in_unmapped_range): Likewise.
5074 (pc_in_mapped_range): Likewise.
5075 (sections_overlap): Likewise.
5076 (list_overlays_command): Likewise.
5077 (simple_overlay_update_1): Likewise.
5078 (simple_overlay_update): Likewise.
5079 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5080 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5081
90f943f1
RC
50822004-06-14 Randolph Chung <tausq@debian.org>
5083
5084 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5085 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5086 static.
5087 (hppa_hpux_inferior_created): New function.
5088 (hppa_hpux_init_abi): Register observer.
5089 * symfile.c (hp_cxx_exception_support_initialized)
5090 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5091 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5092
700c15aa
RC
50932004-06-14 Randolph Chung <tausq@debian.org>
5094
3973a7d3
AC
5095 * MAINTAINERS (Write After Approval): Alphabetize my entry
5096 correctly.
700c15aa 5097
cea4838c
AC
50982004-06-14 Andrew Cagney <cagney@gnu.org>
5099
5100 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5101 testsuite maintainer.
5102
97092415
AC
51032004-06-13 Andrew Cagney <cagney@gnu.org>
5104
e8c3165b
AC
5105 * infcmd.c (print_return_value): Fix logic, allow
5106 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5107
bceabdd8
AC
5108 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5109 defining any macros.
5110 * gdbarch.h: Re-generate.
5111
57010b1c
AC
5112 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5113 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5114 * gdbarch.h: Re-generate.
5115
bc87dfa0
AC
5116 * values.c (generic_use_struct_convention): Don't check gcc_p.
5117
15ac804d
AC
5118 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5119 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5120 * gdbarch.h, gdbarch.c: Regenerate.
5121 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5122 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5124 deprecated_max_register_raw_size and
5125 deprecated_max_register_virtual_size.
5126 * v850-tdep.c (v850_gdbarch_init): Ditto.
5127 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5128 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5129 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5130 * cris-tdep.c (cris_gdbarch_init): Ditto.
5131
97092415
AC
5132 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5133 * gdbarch.h, gdbarch.c: Re-generate.
5134 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5135 (m68hc11_use_struct_convention): Delete function.
5136 (m68hc11_extract_struct_value_address): Delete function.
5137 (m68hc11_return_value): New function.
5138 (m68hc11_gdbarch_init): Instead of store_return_value,
5139 extract_return_value, return_value_on_stack,
5140 deprecated_extract_struct_value_address and use_struct_convention,
5141 set return_value.
5142 * values.c (using_struct_return): Do not call
5143 RETURN_VALUE_ON_STACK.
5144 * arch-utils.h (generic_return_value_on_stack_not): Delete
5145 declaration.
5146 * arch-utils.c (generic_return_value_on_stack_not): Delete
5147 function.
5148
44e5158b
AC
51492004-06-12 Andrew Cagney <cagney@gnu.org>
5150
5151 * values.c (register_value_being_returned): Delete function.
5152 * infcmd.c (legacy_return_value): Delete function.
5153 * infcall.c (call_function_by_hand): Inline
5154 "register_value_being_returned", simplify.
5155 * values.c (using_struct_return): Update comment, refer to
5156 print_return_value instead of register_value_being_returned.
5157 * infcmd.c (print_return_value): Inline calls to
5158 register_value_being_returned and legacy_return_value. Simplify.
5159
b887c273
RC
51602004-06-11 Randolph Chung <tausq@debian.org>
5161
5162 * somread.c (som_symtab_read): Exclude gcc local symbols.
5163
1b2bfbb9
RC
51642004-06-11 Randolph Chung <tausq@debian.org>
5165
3973a7d3
AC
5166 * infrun.c (handle_inferior_event): Handle the case when a
5167 trampoline ends up in the runtime resolver, and if the trampoline
5168 has no name. Rearrange the code so that all the trampoline
5169 processing happens before other step-out-of-range handling.
1b2bfbb9 5170
a9d61c86
MH
51712004-06-11 Martin Hunt <hunt@redhat.com>
5172
5173 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5174 has no fpu.
5175
2c87cf5a
AC
51762004-06-10 Andrew Cagney <cagney@gnu.org>
5177
5178 * blockframe.c (legacy_inside_entry_func): Delete.
5179 (legacy_frame_chain_valid): Inline call to
5180 legacy_inside_entry_func, simplify.
5181
0b67b468 51822004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5183
5184 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5185 * dwarf2read.c (partial_die_info): Add dirname field.
5186 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5187 (read_partial_die): Save away DW_AT_comp_dir.
5188 * defs.h (symtab_to_filename): Removed.
5189 * source.c (find_and_open_source): Added.
57c22c6c 5190 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5191 (symtab_to_filename): Removed.
5192 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5193 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5194 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5195 symtab_to_filename.
5196 * symtab.h (partial_symtab): Add dirname field.
5197 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5198 (mi_cmd_file_list_exec_source_file): Call new function
5199 symtab_to_fullname to find fullname.
57c22c6c 5200 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5201 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5202 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5203
9a1dd1ad
AC
52042004-06-10 Andrew Cagney <cagney@gnu.org>
5205
239ae8c7
AC
5206 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5207 to generic_use_struct_convention, the default value.
5208
fc720350
AC
5209 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5210 of abort.
5211
9a1dd1ad
AC
5212 * ns32k-tdep.c (ns32k_push_arguments): New function.
5213 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5214 * infcall.c (call_function_by_hand): Call error instead of
5215 legacy_push_arguments.
5216 * value.h (legacy_push_arguments): Delete declaration.
5217 * valops.c (legacy_push_arguments): Delete function.
5218 (value_push): Delete function.
5219
fea25152
BF
52202004-06-10 Brian Ford <ford@vss.fsi.com>
5221
5222 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5223 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5224 info.
5225 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5226
30a4a8e0
AC
52272004-06-10 Andrew Cagney <cagney@gnu.org>
5228
5229 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5230 * gdbarch.h, gdbarch.c: Re-generate.
5231 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5232 parameters.
5233 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5234 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5235 deprecated_pc_in_call_dummy instead of
5236 DEPRECATED_PC_IN_CALL_DUMMY.
5237 (arm_skip_prologue): Ditto.
5238 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5239 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5240 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5241 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5242 Ditto.
5243 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5244 (sh64_init_extra_frame_info, sh64_get_saved_register)
5245 (sh64_pop_frame): Ditto.
5246 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5247 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5248 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5249 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5250 (h8300_pop_frame): Ditto.
5251 * blockframe.c (legacy_inside_entry_func)
5252 (legacy_frame_chain_valid): Ditto.
5253 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5254 to deprecated_pc_in_call_dummy.
5255
81cfbe54
AC
52562004-06-09 Andrew Cagney <cagney@gnu.org>
5257
a1f4a1b6
AC
5258 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5259 provide a default value.
5260 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5261 * gdbarch.h, gdbarch.c: Re-generate.
5262 * arch-utils.c (generic_convert_register_p): Rename
5263 legacy_convert_register_p
5264 (legacy_register_to_value, legacy_value_to_register): Delete
5265 functions.
5266 * arch-utils.h (generic_convert_register_p): Rename
5267 legacy_convert_register_p.
5268 (legacy_register_to_value, legacy_value_to_register): Delete
5269 declarations.
5270
9730f241
AC
5271 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5272 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5273 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5274 * gdbarch.h, gdbarch.c: Re-generate.
5275 * infcmd.c (default_print_registers_info): Simplify.
5276 * findvar.c (value_of_register): Simplify.
5277 * mi/mi-main.c (get_register): Simplify.
5278 * arch-utils.c (legacy_convert_register_p): Always return 0.
5279 (legacy_register_to_value, legacy_value_to_register): Always call
5280 internal_error.
5281
8a1bf479
AC
5282 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5283 #ifdef CLEAR_INSN_CACHE code.
5284 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5285 Delete #ifdef CLEAR_DEFERRED_STORES code.
5286
4b38d6f1
AC
5287 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5288
2d62ecc7
AC
5289 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5290 copyright.
5291 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5292
be4f7469
AC
5293 * config/mips/mipsv4.mh: Delete file.
5294
81cfbe54
AC
5295 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5296 unreferenced macro.
5297 (hpread_adjust_stack_address): Delete declaration.
5298
d966f0cb
AC
52992004-06-08 Andrew Cagney <cagney@gnu.org>
5300
5301 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5302 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5303 PTRACE_ATTACH / PTRACE_DETACH available call error.
5304 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5305 * infttrace.c (update_thread_state_after_attach, attach, detach):
5306 Remove #ifdef wrappers.
5307 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5308 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5309 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5310 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5311 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5312 * config/nm-linux.h (ATTACH_DETACH): Delete.
5313 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5314 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5315 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5316 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5317 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5318
d91670b9
CV
53192004-06-08 Corinna Vinschen <vinschen@redhat.com>
5320
5321 * configure.in: Set $configdir to the right OS specific value.
5322 Use value when setting $tcldir and $tkdir.
5323 * configure: Regenerate.
5324
28ba0b33
PB
53252004-06-06 Paul Brook <paul@codesourcery.com>
5326
5327 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5328 records.
5329
f26caa11
PH
53302004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5331
5332 * ada-lang.c (lookup_symbol_in_language): New function to allow
5333 re-use of another language's symbol lookup code. (Placed here
5334 temporarily while Ada support is being integrated into the public
5335 tree).
5336 (restore_language): New auxiliary function for
5337 lookup_symbol_in_language.
5338 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5339 temporarily while Ada support is being integrated into the public
5340 tree).
5341
d560a54b
AO
53422004-06-08 Alexandre Oliva <aoliva@redhat.com>
5343
e75d110c
AO
5344 * Makefile.in (check//%): New.
5345
d560a54b
AO
5346 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5347 (mn10300_store_return_value): Rewrite.
5348 (mn10300_type_align): New.
5349 (mn10300_use_struct_convention): Rewrite.
5350 (mn10300_return_value): New, using all of the above.
5351 (mn10300_pop_frame_regular): Add saved_regs_size.
5352 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5353
a72fbdb7
AO
5354 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5355 regs if PC is on movm.
5356
01904826
JB
53572004-06-07 Jim Blandy <jimb@redhat.com>
5358
5359 Add native Linux support for the PowerPC E500.
5360 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5361 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5362 all architectures except the E500.
5363 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5364 #definitions.
5365 (struct gdb_evrregset_t): New type.
5366 (have_ptrace_getsetevrregs): New variable.
5367 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5368 fetch_spe_registers): New functions.
5369 (fetch_register): Call fetch_spe_register as appropriate.
5370 Assert that we're only passed raw register numbers.
5371 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5372 Don't fetch gprs if they're pseudoregisters.
5373 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5374 store_spe_registers): New functions.
5375 (store_register): Call store_spe_register as appropriate.
5376 Assert that we're only passed raw register numbers.
5377 (store_ppc_registers): Call store_spe_registers as appropriate.
5378 Don't store gprs if they're pseudoregisters.
5379
f90ef764
JJ
53802004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5381
5382 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5383 struct if one exists, even if we are dealing with a zombie thread.
5384
45b75230
AC
53852004-06-07 Andrew Cagney <cagney@gnu.org>
5386
5387 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5388 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5389 Rename PC_REQUIRES_RUN_BEFORE_USE.
5390 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5391 #ifdef.
5392
1658da49
RC
53932004-06-07 Randolph Chung <tausq@debian.org>
5394
5395 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5396 unwinding after sp has been saved to the stack but before the end
5397 of the prologue, and after the fp has been modified but before it has
5398 been saved to the stack.
5399 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5400 Remove superfluous definitions.
5401 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5402
9a727a3c
RC
54032004-06-07 Guy Martin <gmsoft@gentoo.org>
5404
5405 Committed by Randolph Chung.
5406 * hppa-linux-nat.c: Include the correct version of the header file
5407 depending on the kernel version.
5408
9e500012
RC
54092004-06-06 Randolph Chung <tausq@debian.org>
5410
5411 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5412 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5413
3388d7ff
RC
54142004-06-06 Randolph Chung <tausq@debian.org>
5415
5416 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5417 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5418 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5419 * hppa-tdep.c (hppa_symbol_address): New function definition.
5420 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5421
d49771ef
RC
54222004-06-06 Randolph Chung <tausq@debian.org>
5423
5424 * hppa-tdep.h (struct value): Forward declaration.
5425 (gdbarch_tdep): Define tdep find_global_pointer method.
5426 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5427 associated with the function we are trying to call, and write it
5428 to the gp register.
5429 (hppa32_convert_from_funct_ptr_addr): New function.
5430 (hppa_find_global_pointer): New function.
5431 (hppa_gdbarch_init): Set default find_global_pointer method; set
5432 convert_from_func_ptr_addr method.
5433 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5434 (hppa_linux_init_abi): Set find_global_pointer method.
5435 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5436
7d9b040b
RC
54372004-06-06 Randolph Chung <tausq@debian.org>
5438
5439 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5440 to struct value *function.
5441 * gdbarch.c: Regenerate.
5442 * gdbarch.h: Likewise.
5443 * infcall.c (call_function_by_hand): Pass entire function value
5444 to push_dummy_call.
5445
5446 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5447 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5448 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5449 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5450 * arm-tdep.c (arm_push_dummy_call): Likewise.
5451 * avr-tdep.c (avr_push_dummy_call): Likewise.
5452 * cris-tdep.c (cris_push_dummy_call): Likewise.
5453 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5454 * frv-tdep.c (frv_push_dummy_call): Likewise.
5455 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5456 * hppa-tdep.c (hppa32_push_dummy_call)
5457 (hppa64_push_dummy_call): Likewise.
5458 * i386-tdep.c (i386_push_dummy_call): Likewise.
5459 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5460 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5461 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5462 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5463 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5464 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5465 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5466 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5467 (ppc64_sysv_abi_push_dummy_call): Likewise.
5468 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5469 (ppc64_sysv_abi_push_dummy_call): Likewise.
5470 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5471 * s390-tdep.c (s390_push_dummy_call): Likewise.
5472 * sh-tdep.c (sh_push_dummy_call_fpu)
5473 (sh_push_dummy_call_nofpu): Likewise.
5474 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5475 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5476 * vax-tdep.c (vax_push_dummy_call): Likewise.
5477
4a19ea35
JB
54782004-06-04 Jim Blandy <jimb@redhat.com>
5479
8327ccee
JB
5480 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5481 gdbarch argument to register_size.
5482
a3c001ce
JB
5483 * rs6000-tdep.c (rs6000_store_return_value): Use
5484 regcache_cooked_write_part instead of
5485 deprecated_write_register_bytes.
5486 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5487 not gdbarch_deprecated_store_return_value.
5488
4a19ea35
JB
5489 * ppc-linux-nat.c (store_register, fetch_register): Remove
5490 incorrect assertions. Simplify and generalize handling of
5491 transfers whose sizes are not multiples of, or less than, sizeof
5492 (PTRACE_XFER_TYPE).
5493
b9b5d7ea
JJ
54942004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5495
5496 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5497 as a new thread event.
720c7d64 5498 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5499 zombie, return TD_THR_ZOMBIE.
720c7d64 5500 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5501 TD_THR_ZOMBIE, check if the thread is still on the thread list
5502 and return a -1 ptid if not found.
5503 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5504 change the status to TARGET_WAITKIND_SPURIOUS.
5505
c8a3b559
CV
55062004-06-03 Corinna Vinschen <vinschen@redhat.com>
5507
5508 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5509 double values in little endian mode.
5510
20605361
AC
55112004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5512
5513 Committed by Andrew Cagney.
5514 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5515 after last enum constant to avoid error from IBM C
5516 compiler.
5517
bc97b3ba
JB
55182004-06-02 Jim Blandy <jimb@redhat.com>
5519
5520 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5521 to 'message', and make it local to the lone block that uses it.
5522
1da28ab0
JB
5523 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5524
4c4b4cd2
PH
55252004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5526
8a2225b2
PH
5527 * ada-exp.y: Update copyright notice.
5528 Include block.h.
5529
5530 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5531 SPECIAL_VARIABLE and unify the treatment of these cases.
5532
5533 (write_attribute_call0): Remove.
5534 (write_attribute_call1): Remove.
5535 (write_attribute_calln): Remove.
5536 (save_qualifier): Add missing semicolon.
5537
5538 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5539 temporarily disabled to allow compilation with FSF head version.
5540
5541 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5542 use individual operators (OP_*) for all attributes.
5543 (exp syntax): Use write_int.
5544 Handle STRING literals with OP_STRING.
5545 (variable syntax): Add limit parameter to calls to
5546 write_object_renaming.
5547
5548 (temp_parse_space): New definition to hold entities that need
5549 only live until the next call to ada_parse.
5550 (string_to_operator): Rename fields of ada_opname_table entries.
5551
5552 (write_var_from_sym): Record block.
5553 (write_var_from_name): Minor reformatting.
5554 Make sure saved name is properly encoded in the case of multiple
5555 matches, and set its language to Ada.
5556 Update comment.
5557 Modify to indicate unresolved name as symbol in the UNRESOLVED
5558 namespace, allocated in temp_parse_space.
5559 (write_int): New function.
5560
5561 (write_object_renaming): Add max_depth parameter to limit
5562 chains of object renamings.
5563 Handle case where root of renaming expression is itself a renaming.
5564 Use temp_parse_space for temporary name buffer.
5565 Handle renamings to dereferenced pointers (___XEXA suffices).
5566
5567 (ada_parse, yyerror, string_to_operator,
5568 write_var_from_sym, write_var_from_name, write_attribute_call0,
5569 write_attribute_call1, write_attribute_calln,
5570 write_object_renaming): Protoize.
5571
5572 (_initialize_ada_exp): New function.
5573
5574 * ada-lang.c: Update copyright notice.
5575 General terminology change to conform to GNAT compiler usage:
5576 mangle => encode, demangle => decode
5577 Include gdb_obstack.h.
5578 Include gdb_regex.h
5579 Include frame.h
5580 Include hashtab.h
5581 Include completer.h
5582 Include gdb_stat.h
5583 Include block.h
5584 Include infcall.h
5585
5586 (ADA_RETAIN_DOTS): Make sure this is defined.
5587 (TRUNCATION_TOWARDS_ZERO): Define.
5588 (struct string_vector): Define.
5589 (unresolved_names): Remove definition.
5590 (xnew_string_vector): New function.
5591 (string_vector_append): New function.
5592 (extract_string): Make static.
5593 (ada_unqualified_name): New function.
5594 (add_angle_brackets): New function.
5595 (function_name_from_pc): New function.
5596 (place_on_stack): Rename to ensure_lval.
5597
5598 (ensure_lval): Renamed from place_on_stack.
5599 Make identity on lvals.
5600 Update comment.
5601 (is_nonfunction): New interface.
5602 Only symbols in LOC_CONST class can be enumerals.
5603 (fill_in_ada_prototype): Remove; now independent of language.
5604 (add_defn_to_vec): Add obstack and symtab arguments.
5605 Use obstack to hold collected definitions.
5606 (num_defns_collected): New function.
5607 (defns_collected): New function.
5608 (ada_resolve_subexp): Rename to resolve_subexp.
5609 (resolve_subexp): Renamed from ada_resolve_subexp.
5610 (ada_op_name): Return non-const result.
5611 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5612 other purposes.
5613
5614 (to_fixed_array_type): Add declaration.
5615 (coerce_unspec_val_to_type): Remove offset parameter.
5616 (find_sal_from_funcs_and_line): New interface.
5617 (find_line_in_linetable): Ditto.
5618
5619 (all_sals_for_line): Rename to ada_sals_for_line and make
5620 global.
5621 Add new parameter. When set, do not ask the user to choose the
5622 instance, but use the first one found instead.
5623 Use given line number in returned sals.
5624 Fix comment.
5625 Skip the prologue if funfirstline is set.
5626 Correct for memory leak when 0 lines found.
5627
5628 (value_pos_atr): Use pos_atr.
5629 (pos_atr): New function.
5630 (standard_lookup): Add block parameter.
5631
5632 (makeTimeStart): Remove declaration and uses.
5633 (makeTimeStop): Remove declaration and uses.
5634
5635 (ada_completer_word_break_characters): Allow for VMS.
5636 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5637 (raise_sym_name): New constant.
5638 (raise_unhandled_sym_name): New constant.
5639 (raise_assert_sym_name): New constant.
5640 (process_raise_exception_name): New constant.
5641 (longest_exception_template): New constant.
5642 (warning_limit): New variable to limit warnings during expression
5643 evaluation.
5644 (warnings_issued): New variable to keep track of warnings issued.
5645 (known_runtime_file_name_patterns): New constant.
5646 (known_auxiliary_function_name_patterns): New constant.
5647 (symbol_list_obstack): New variable.
5648
5649 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5650 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5651 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5652 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5653 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5654 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5655 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5656 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5657 and strcmp.
5658
5659 (ada_get_field_index): New function.
5660 (lim_warning): New function.
5661 (ada_translate_error_message): New function.
5662 (MAX_OF_SIZE): New function.
5663 (MIN_OF_SIZE): New function.
5664 (UMAX_OF_SIZE): New function.
5665 (UMIN_OF_SIZE): New function.
5666 (discrete_type_high_bound): New function.
5667 (discrete_type_low_bound): New function.
5668 (base_type): New function.
5669 (do_command): Remove.
5670
5671 (ada_update_initial_language): Use language_ada, not language_unknown.
5672 (ada_encode): Renamed from ada_mangle.
5673 Obey ADA_RETAIN_DOTS.
5674 (ada_decode): Renamed from ada_demangle.
5675 Update coding conventions.
5676 (decoded_names_store): New hash table.
5677 (ada_decode_symbol): New function.
5678 (ada_la_decode): New function.
5679
5680 (modify_general_field): Correct computations of offset and bit
5681 position.
5682 (desc_base_type): Handle ref types, too.
5683 (ada_is_direct_array_type): New function.
5684
5685 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5686 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5687 (ada_is_bogus_array_descriptor,ada_type_of_array,
5688 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5689 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5690 ada_is_array_descriptor_type.
5691
5692 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5693 (ada_is_packed_array_type): Handle pointers or
5694 references to packed arrays as well.
5695 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5696 (decode_packed_array_type): Search for the packed array type
5697 symbol in the currently selected block and associated
5698 superblocks too.
5699 Use lookup_symbol again.
5700
5701 (decode_packed_array): Handle pointers and references.
5702 Update call to coerce_unspec_val_to_type.
5703 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5704 (ada_value_primitive_packed_val): Improve comment.
5705
5706 (ada_index_type): Substitute int type for "undefined".
5707 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5708 ada_array_langth, ada_is_string_type): Use renamed
5709 ada_is_simple_array_type.
5710 (empty_array): New function.
5711
5712 (ada_resolve): Rename to resolve.
5713 (resolve): Make static.
5714 Call renamed resolve_subexp.
5715 Update comment.
5716 (ada_resolve_subexp): Rename to resolve_subexp.
5717 (resolve_subexp): Update comment.
5718 Decomment disabled code.
5719 Add LOC_COMPUTED* cases.
5720 Modify to use temporary struct symbols (marked as being in
5721 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5722 OP_UNRESOLVED_VALUE.
5723 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5724 Add OP_STRING case.
5725 Remove OP_ARRAY.
5726 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5727 Use new ada_lookup_symbol_list interface.
5728 Use new ada_resolve_function interface.
5729 Remove OP_TYPE case.
5730
5731 (ada_args_match): Idiot proof against null actuals.
5732 Use intermediate variables to clarify.
5733 (ada_resolve_function): Update comment and interface.
5734 (mangled_ordered_before): Rename to encoded_ordered_before and
5735 update comment.
5736 (sort_choices): Update comment and interface.
5737 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5738 (user_select_syms): New interface.
5739 Use new sort_choices interface.
5740 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5741 (possible_user_operator_p): Idiot-proof against null values.
5742 (ada_simple_renamed_entity): Don't make cleanup; rely on
5743 caller to free result string.
5744 Remove const from return type.
5745 (make_array_descriptor): Rename uses of place_on_stack to
5746 ensure_lval.
5747 Make sure that arrays are on stack.
5748
5749 (HASH_SIZE): Define.
5750 (struct cache_entry): Define.
5751 (cache_space): Define.
5752 (cache): Define.
5753 (clear_ada_sym_cache): New function.
5754 (find_entry): New function.
5755 (lookup_cached_symbol): New function.
5756 (defn_vector_size): Define.
5757 (cache_symbol): New function.
5758 (defn_symbols): Remove.
5759
5760 (standard_lookup): Use lookup_symbol_in_language to get effect of
5761 C lookup.
5762 Cache results.
5763
5764 (symbol_completion_match): New function.
5765 (symbol_completion_add): New function.
5766 (ada_make_symbol_completion_list): New function.
5767
5768 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5769 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5770 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5771 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5772
5773 (ada_lookup_simple_minsym): New function.
5774 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5775
5776 (add_symbols_from_enclosing_procs): New interface.
5777 Conditionalize more helpfully.
5778 Don't bother if program isn't running.
5779 Use new interface to get_frame_block.
5780 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5781
5782 (remove_extra_symbols): New interface.
5783 (xget_renaming_scope): New function.
5784 (is_package_name): New function.
5785 (renaming_is_visible): New function.
5786 (remove_out_of_scope_renamings): New function.
5787
5788 (ada_lookup_symbol_list): New interface.
5789 Properly reinitialize the symbol list obstack.
5790 Don't call add_symbols_from_enclosing_procs if we start from a
5791 static or global block.
5792 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5793 add_symbols_from_enclosing_procs.
5794 Add symtab data to cached entries.
5795 Handle symbols prefixed with
5796 "standard__" specially; strip prefix and don't look in local symbols.
5797 Do not include out of scope renaming symbols in list of
5798 symbols returned.
5799 Add const to block parameter.
5800 Move check for non-local, non-global symbols earlier.
5801 Remove timing stuff.
5802 (ada_lookup_symbol): New interface.
5803 Find symtab as well.
5804 (ada_lookup_symbol_nonlocal): New function.
5805
5806 (is_name_suffix): Enhance suffix detection to recognize
5807 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5808 (is_dot_digits_suffix): New function.
5809 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5810
5811 (ada_add_block_symbols): New interface. Use obstack to return results
5812 in a vector of struct ada_symbol_infos. Add symtab argument.
5813 Use new interface to add_defn_to_vec.
5814 Remove calls to fill_in_ada_prototype.
5815 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5816
5817 (ada_finish_decode_line_1): Add const qualification to local to fix
5818 warning.
5819 Start looking in static block for functions to avoid attempts
5820 to search frame chain for up-level variables.
5821 Adapt to new ada_sals_for_line interface.
5822 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5823 Handle quoting of the function name inside the spec string.
5824 Skip prologue when funfirstline is set and update the
5825 function documentation to that effect.
5826
5827 (debug_print_lines, debug_print_block, debug_print_blocks,
5828 debug_print_symtab): Remove.
5829
5830 (ada_main_name): New function.
5831 (ada_exception_breakpoint_type): New function.
5832 (is_known_support_routine): New function.
5833 (ada_find_printable_frame): Renamed from find_printable_frame and made
5834 global.
5835 Remove level parameter.
5836 Use new interface to select_frame.
5837
5838 (begin_command): Remove.
5839 (ada_adjust_exception_stop): New function.
5840 (ada_print_exception_stop): New function.
5841 (exception_name_from_cond): New function.
5842 (ada_report_exception_break): Replace disabled code with
5843 conditionalization on GNAT_GDB.
5844 Get the exception name from the condition string.
5845 Remove and move functionality into new functions
5846 ada_print_exception_breakpoint_task and
5847 ada_print_exception_breakpoint_nontask.
5848 (error_breakpoint_runtime_sym_not_found): New function.
5849 (is_runtime_sym_defined): New function.
5850 (ada_breakpoint_rewrite): Uncomment suppressed code.
5851 Use symbolic error-message and runtime-symbol names.
5852 Surround runtime symbol names in quotes.
5853 Allow non-specific breakpoints on exceptions and assertions before
5854 program starts.
5855
5856 (ada_is_tagged_type): Add parameter.
5857 (ada_is_tag_type): New function.
5858 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5859 (ada_variant_discrim_type): Ditto.
5860 (value_tag_from_contents_and_address): New function.
5861 (type_from_tag): New function.
5862 (struct tag_args): New structure used to communicate with
5863 ada_tag_name_1.
5864 (ada_tag_name_1): New function.
5865 (ada_tag_name): New function.
5866
5867 (ada_scan_number): Update comment.
5868 (find_struct_field): New function.
5869 (ada_search_struct_field): Make static.
5870 (ada_value_struct_elt): New version that returns references when
5871 given pointers or references to structs.
5872 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5873 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5874 interface.
5875 (ada_value_ind): Use new ada_to_fixed_value interface.
5876 (ada_coerce_ref): Ditto.
5877 (field_offset): Remove.
5878
5879 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5880 (ada_find_renaming_symbol): New function.
5881 (ada_prefer_type): Prefer named types over unnamed ones.
5882 (variant_field_index): New function.
5883 (contains_variant_part): Removed: subsumed by variant_field_index.
5884 (ada_template_to_fixed_record_type): New function, mostly from
5885 template_to_fixed_record_type.
5886 (template_to_fixed_record_type):
5887 Do not scan the type fields beyond the last one; prevents a
5888 potential SEGV.
5889 Handle case where variant field is listed BEFORE discriminant it
5890 depends on.
5891 Fix calculation of record length when bit length is
5892 not evenly divisible by char length.
5893 Move code to ada_template_to_fixed_record_type and call it.
5894
5895 (template_to_static_fixed_type): Revise comment.
5896 Modify to work on ordinary record types as well as templates,
5897 so as to handle fields that use ___XVE or ___XVU encodings.
5898 (to_record_with_fixed_variant_part): Fill out comment.
5899 Initialize C++ stuff in right type.
5900 Allow case where DVAL is null.
5901 Handle case where variant field is not last.
5902 Fix typo concerning record length.
5903 (to_fixed_record_type): Decomment disabled code.
5904 (to_fixed_record_type): Use variant_field_index instead of
5905 contains_variant_part.
5906 (to_fixed_variant_branch_type): Ditto.
5907 (to_fixed_array_type): Decomment disabled code.
5908 (ada_to_fixed_type): Convert tagged types to the specific type.
5909 Deactivate the size-check for array types in order to avoid
5910 some false size alarms.
5911 (to_static_fixed_type): Decomment disabled code.
5912 Modify to call template_to_static_fixed_type
5913 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5914 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5915 Remove valaddr argument, as it is never really used.
5916 (ada_to_fixed_value): Change interface to act on single struct value*
5917 operand.
5918 (adjust_pc_past_prologue): New function.
5919 (ada_attribute_name): Modify to take enum exp_opcode argument.
5920
5921 (ada_enum_name): Recognize new homonym-distinguishing convention.
5922 Adjust local variable's type to remove compiler warning.
5923 Fix a small problem in the part that unqualifies the enumeration name.
5924 (ada_value_binop): New function.
5925 (ada_value_equal): New function.
5926
5927 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5928 Don't give error message when not doing normal evaluation
5929 and a tagged type doesn't seem to contain a structure member.
5930 Give error message for packed arrays.
5931 For indexing arrays, handle pointers to packed arrays correctly.
5932 Handle case of 'first and 'last attributes of bare integral type
5933 without encoded subtype info.
5934 Remove some unnecessary casts.
5935 Fix uninitialized value of type in computing 'first, 'last, or 'length
5936 of array object.
5937 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5938 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5939 calls.
5940 Attributes are now exp_opcode values.
5941 Correct treatment of 'modulus.
5942 Better error message for taking 'length of wrong kind of type;
5943 improve comment.
5944 Change EVAL_NORMAL to noside for consistency.
5945 Use ada_value_binop for DIV, MOD, REM.
5946 Make special case out of array of length 0, since an argument
5947 of 0 upsets some platforms' malloc.
5948 Use OP_STRING instead of OP_ARRAY.
5949 For slice, add check that we have an array type before extracting
5950 a slice out of it. Avoids a SEGV.
5951 When evaluating an array slice, if the array type is a reference to
5952 an aligner type, then replace the aligner type by the actual type.
5953 Decomment disabled code.
5954 Remove some dead code.
5955 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5956 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5957 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5958 and UNOP_MBR to UNOP_IN_RANGE.
5959 If an array type has a parallel ___XVE type, then use it.
5960 Turn arrays into pointers for lvalue arrays.
5961 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5962 bounds error and handle 0-length slices.
5963 Use lim_warning.
5964 When selecting fields, apply ada_to_fixed_value (because the fields
5965 might have ___XVU or ___XVE encodings even if not dynamic.)
5966 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5967 (ada_is_system_address_type): New function.
5968
5969 (get_var_value): Use new interface to ada_lookup_symbol_list.
5970 (get_int_var_value): New interface.
5971 (to_fixed_range_type): Allow unknown bound, with warning.
5972 (ada_is_modular_type): Decomment disabled code.
5973 (ADA_OPERATORS): New definition.
5974 (ada_operator_length): New function.
5975 (ada_expr_op_name): New function.
5976 (ada_forward_operator_length): New function.
5977 (ada_dump_subexp_body): New function.
5978 (ada_print_subexp): New function.
5979 (ada_exp_descriptor): New constant.
5980 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5981 (ada_language_defn): Add ada_exp_descriptor entry.
5982 Change ada_parse => parse.
5983 Add post-parser entry.
5984 Use ada-specific non-local symbol lookup.
5985 Don't use C-style arrays.
5986 String lower-bound is 1.
5987 Decomment disabled code.
5988 (parse): New function.
5989 New fields ada_translate_error_message, ada_lookup_symbol,
5990 ada_lookup_minimal_symbol.
5991
5992 * ada-lang.h: Update copyright dates.
5993 Replace the mangle/demangle terminology throughout by the
5994 more appropriate encode/decode one.
5995 Include breakpoint.h.
5996 Forward declare struct partial_symbol, struct block.
5997 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5998 (EXTRACT_ADDRESS): Remove.
5999 (EXTRACT_INT): Remove.
6000 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6001 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6002 (MAX_RENAMING_CHAIN_LENGTH): Define.
6003 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6004
6005 (enum task_states): Remove.
6006 ada_task_states: Remove.
6007 (fat_string): Remove.
6008 (struct entry_call): Remove.
6009 (struct task_fields): Remove.
6010 (struct task_entry): Remove.
6011
6012 (struct ada_symbol_info): Define.
6013 (enum ada_attribute): Remove.
6014 (enum ada_operator): Define.
6015
6016 (ada_get_field_index): Declare.
6017 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6018 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6019 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6020 (ada_lookup_symbol_list): New interface.
6021 (ada_decode_symbol): Declare.
6022 (ada_decode): Declare.
6023 (ada_lookup_symbol): New interface.
6024 (ada_update_initial_language): Declare.
6025 (ada_lookup_simple_minsym): Declare.
6026 (user_select_syms): New interface.
6027 (ada_sals_for_line): Declare.
6028 (ada_is_tagged_type): New interface.
6029 (ada_tag_name): Declare.
6030 (ada_lookup_struct_elt_type): Remove declaration.
6031 (ada_search_struct_field): Remove declaration.
6032 (ada_attribute_name): New interface.
6033 (ada_is_system_address_type): Declare.
6034 (ada_to_fixed_value): Remove declaration.
6035 (ada_template_to_fixed_record_type_1): Declare.
6036 (get_int_var_value): New interface.
6037 (ada_find_any_symbol): Declare.
6038 (ada_find_renaming_symbol): Declare.
6039 (ada_mangle): Rename to ada_encode.
6040 (ada_simple_renamed_entity): Remove const.
6041 (ada_main_name): Declare.
6042 (get_current_task): Rename to ada_get_current_task.
6043 (get_entry_number): Remove declaration.
6044 (ada_report_exception_break): Remove declaration.
6045 (ada_print_exception_breakpoint_nontask): Declare.
6046 (ada_print_exception_breakpoint_task): Declare.
6047 (ada_find_printable_frame): Declare.
6048
6049 * ada-lex.l: Update copyright notices.
6050 Use xmalloc and xfree instead of malloc and free.
6051 Use new interface to name_lookup.
6052 Use new interface to
6053 ada_mangle=>ada_encode.
6054 Redo handling of '$...' variable to parallel current treatment
6055 in c-exp.y.
6056 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6057 digit_to_int, strtoulst, processInt, processReal, processId,
6058 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6059 yywrap): Protoize.
6060
6061 (processInt): Use cast to remove harmless warning.
6062 (processReal): Modify to get rid of compiler warning on scan formats.
6063
6064 (processId): Replace xmalloc with obstack_alloc for name and remove
6065 call to ada_name_string_cleanup.
6066 Remove obsolete disabled code.
6067 (name_lookup): Ditto.
6068 New interface.
6069 Use obsavestring on temp_parse_space instead of savestring
6070 on name, and remove call to ada_name_string_cleanup.
6071 Free string returned from ada_simple_renamed_entity.
6072 Use new interface to ada_lookup_symbol_list.
6073 Decomment disabled code.
6074 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6075 not types.
6076 When a type name lookup succeeds as a result of
6077 lookup_primitive_typename, check for regular type entry that has not
6078 yet been read in.
6079 Limit length of chain of renamed symbols we are willing to follow.
6080 Do not break names beginning with "standard__" into segments.
6081 (block_lookup): Use new interface to ada_lookup_symbol_list.
6082
6083 * ada-typeprint.c: Update copyright notice.
6084 (demangled_type_name): Rename to decoded_type_name.
6085 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6086 (print_range_bound): Correct handling of negative
6087 bounds that make the index type looked unsigned under STABS.
6088 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6089 (print_range_type_named): Use the builtin int type if no type
6090 corresponding to the given type name could be found.
6091 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6092 Add some bullet-proofing.
6093 (print_variant_clauses): Allow for variant branches with ___XVU
6094 encodings that are not dynamic fields.
6095 Use new interface to ada_is_tagged_type.
6096 (print_record_type): Allow for fields with ___XVE encodings that
6097 are not dynamic fields.
6098 Use new interface to ada_is_tagged_type.
6099 (ada_print_type): ada_is_array_descriptor =>
6100 ada_is_array_descriptor_type.
6101
6102 * ada-valprint.c: Update copyright notice.
6103 Include gdb_string.h
6104 Include infcall.h
6105 (ui_memcpy): New function.
6106 (ada_print_floating): New function.
6107 (ada_print_str): Order arguments correctly.
6108 Correct handling of empty arrays and arrays of 0-length items.
6109 ada_is_array_descriptor => ada_is_array_descriptor_type
6110 Print values of type System.Address in hexadecimal format.
6111 Use ada_print_floating to print floating-point numbers in Ada format.
6112 Print class tag values with type names.
6113 No longer print the address of reference values. Avoids
6114 a potential confusion.
6115 (ada_value_print): Stop printing the object type for reference
6116 values, but preserve that behavior for access types. Avoids
6117 a potential confusion.
6118 Simplify one conditional expression, as the first part is now
6119 necessarily true.
6120 ada_is_array_descriptor => ada_is_array_descriptor_type
6121 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6122
f65f91b5
JB
61232004-06-01 Jim Blandy <jimb@redhat.com>
6124
6125 * ppc-tdep.h: Delete unused 'regoff' member.
6126 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6127
d4687fa0
MC
61282004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6129
6130 Fix PR symtab/1661.
6131 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6132 (hpread_read_struct_type): Likewise.
6133
de169ec9
AC
61342004-06-01 Andrew Cagney <cagney@gnu.org>
6135
c6902d46
AC
6136 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6137 instead of xasprintf.
6138 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6139 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6140 (mi_cmd_data_list_register_names)
6141 (mi_cmd_data_list_changed_registers)
6142 (mi_cmd_data_list_register_values)
6143 (get_register, mi_cmd_data_write_register_values)
6144 (mi_cmd_data_write_register_values)
6145 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6146 (mi_cmd_target_download, mi_cmd_target_select)
6147 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6148 (mi_execute_cli_command, mi_execute_async_cli_command)
6149 (mi_execute_async_cli_command): Ditto.
6150 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6151 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6152
6085fc2d
AC
6153 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6154 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6155 error_last_message instead of mi_error_last_message.
6156 * mi/mi-main.c (mi_error_last_message): Delete function.
6157
de169ec9
AC
6158 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6159 "invalid number of columns" error. Delete redundant "out of
6160 memory" check.
6161
1fc7d519
MK
61622004-05-31 Mark Kettenis <kettenis@gnu.org>
6163
6cfb2041
MK
6164 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6165 (gregset_t, fpregset_t): Remove typedefs.
6166 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6167 (REG_OFFSET): Rename argument.
6168 (i386bsd_r_reg_offset): Rename from reg_offset.
6169 (REG_ADDR): Remove macro.
6170 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6171 functions.
6172 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6173 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6174 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6175 instead of supply_gregset.
6176 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6177 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6178 instead of fill_gregset.
6179 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6180
1fc7d519
MK
6181 * i386bsd-nat.c: Don't include "gregset.h".
6182 (supply_gregset, fill_gregset): Make static.
6183 (supply_fpregset, fill_fpregset): Remove.
6184 * Makefile.in (i386bsd-nat.o): Update dependencies.
6185
2c34abbe
MK
61862004-05-30 Mark Kettenis <kettenis@gnu.org>
6187
448724fb
MK
6188 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6189 "gdb_assert.h". Con't include "gregset.h".
6190 (fbsd_make_corefile_notes): Use regset-based core file support
6191 instead off fill_gregset and fill_fpregset.
6192 * Makefile.in (fbsd-proc.o): Update dependencies.
6193
5ca8ca7c
MK
6194 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6195 instructions.
6196 (m88k_frame_prev_register): Simplify code a bit.
6197
593adc23
MK
6198 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6199 (amd64_collect_fpregset): New function.
6200 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6201
8d1b517b
MK
6202 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6203
7fdafb5a
MK
6204 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6205 (i386_collect_gregset): New function.
6206 (i386_supply_fpregset): Adjust comment.
6207 (i386_collect_fpregset): New function.
6208 (i386_regset_from_core_section): Use i386_collect_gregset and
6209 i386_collect_fpregset.
6210
8693c419
MK
6211 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6212 handle VALUEP being null.
6213
2c34abbe
MK
6214 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6215
45d134d8
MK
62162004-05-29 Mark Kettenis <kettenis@gnu.org>
6217
1698f4e7
MK
6218 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6219
45d134d8
MK
6220 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6221 assembler in OpenBSD 3.5-current.
6222 (amd64obsd_sigcontext_addr): Likewise.
6223
691d145a
JB
62242004-05-28 Jim Blandy <jimb@redhat.com>
6225
6226 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6227 register set, so our regcache isn't declared "legacy" and our E500
6228 pseudoregister read and write functions aren't ignored.
6229 (rs6000_register_byte, rs6000_register_raw_size,
6230 rs6000_register_virtual_type, rs6000_register_convertible,
6231 rs6000_register_convert_to_virtual,
6232 rs6000_register_convert_to_raw): Deleted.
6233 (rs6000_register_type, rs6000_convert_register_p,
6234 rs6000_register_to_value, rs6000_value_to_register): New
6235 functions.
6236 (rs6000_gdbarch_init): Don't register
6237 gdbarch_deprecated_register_size,
6238 gdbarch_deprecated_register_bytes,
6239 gdbarch_deprecated_register_byte,
6240 gdbarch_deprecated_register_raw_size,
6241 gdbarch_deprecated_register_virtual_type,
6242 gdbarch_deprecated_register_convertible,
6243 gdbarch_deprecated_register_convert_to_virtual, or
6244 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6245 register gdbarch_register_type, gdbarch_convert_register_p,
6246 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6247
18ed0c4e
JB
62482004-05-26 Jim Blandy <jimb@redhat.com>
6249
6250 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6251 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6252 functions, updated to match the register numberings used in GCC.
6253 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6254 rs6000_dwarf2_reg_to_regnum as register number conversions
6255 functions for STABS and Dwarf2.
6256
779af9e3
RC
62572004-05-26 Randolph Chung <tausq@debian.org>
6258
6259 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6260 in header file.
6261
c23968a2
JB
62622004-05-25 Joel Brobecker <brobecker@gnat.com>
6263
6264 * NEWS: Document new "start" command.
6265
3a7d1c27
RC
62662004-05-25 Randolph Chung <tausq@debian.org>
6267
6268 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6269 hppa-linux.
6270
43613416
RC
62712004-05-25 Randolph Chung <tausq@debian.org>
6272
6273 * hppa-hpux-tdep.c (offsetof): Define.
6274 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6275 (hppa32_hpux_frame_base_before_sigtramp)
6276 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6277 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6278 (hppa64_hpux_frame_base_before_sigtramp)
6279 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6280 functions.
6281 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6282 (hppa_hpux_sigtramp_frame_unwind_cache)
6283 (hppa_hpux_sigtramp_frame_this_id)
6284 (hppa_hpux_sigtramp_frame_prev_register)
6285 (hppa_hpux_sigtramp_frame_unwind)
6286 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6287 (hppa_hpux_init_abi): Register sigtramp unwinder.
6288 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6289
6d1be3f1
RC
62902004-05-25 Randolph Chung <tausq@debian.org>
6291
6292 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6293 and multiple stack unwinds.
6294 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6295
97c34f65
AC
62962004-05-25 Andrew Cagney <cagney@gnu.org>
6297
6298 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6299 * symfile-mem.h: Delete file.
6300 * symfile-mem.c: Do not include "symfile-mem.h".
6301 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6302 "struct bfd_section". When an error do not bother returning NULL.
6303 (add_symbol_file_from_memory_command): Use "struct bfd" and
6304 "struct bfd_section".
6305 * Makefile.in (symfile_mem_h): Delete.
6306 (symfile-mem.o): Update dependencies.
6307
e23cbd82
NR
63082004-05-25 Nick Roberts <nickrob@gnu.org>
6309
6310 * gdb-mi.el: New file.
6311
20d2ca3e
AC
63122004-05-25 Andrew Cagney <cagney@gnu.org>
6313
6314 * inftarg.c: Include "observer.h".
6315 (child_attach, child_create_inferior): Notify inferior_created.
6316 * corelow.c: Include "observer.h".
6317 (core_open): Notify inferior_created.
6318 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6319
c27cda74
AC
63202004-05-25 Andrew Cagney <cagney@gnu.org>
6321
6322 * target.h (struct target_ops): Add from_tty to
6323 to_create_inferior.
6324 (target_create_inferior, find_default_create_inferior): Update.
6325 * infcmd.c (run_command): Update.
6326 * wince.c (child_create_inferior): Update.
6327 * win32-nat.c (child_create_inferior): Update.
6328 * uw-thread.c (uw_thread_create_inferior): Update.
6329 * thread-db.c (thread_db_create_inferior): Update.
6330 * target.c (debug_to_create_inferior)
6331 (find_default_create_inferior): Update.
6332 (maybe_kill_then_create_inferior): Update.
6333 * sol-thread.c (sol_thread_create_inferior): Update.
6334 * remote.c (extended_remote_async_create_inferior)
6335 (extended_remote_create_inferior): Update.
6336 * remote-vx.c (vx_create_inferior): Update.
6337 * remote-st.c (st2000_create_inferior): Update.
6338 * remote-sim.c (gdbsim_create_inferior): Update.
6339 * remote-sds.c (sds_create_inferior): Update.
6340 * remote-rdp.c (remote_rdp_create_inferior): Update.
6341 * remote-rdi.c (arm_rdi_create_inferior): Update.
6342 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6343 * remote-e7000.c (e7000_create_inferior): Update.
6344 * procfs.c (procfs_create_inferior): Update.
6345 * ocd.c (ocd_create_inferior): Update.
6346 * ocd.h (ocd_create_inferior): Update.
6347 * nto-procfs.c (procfs_create_inferior): Update.
6348 * monitor.c (monitor_create_inferior): Update.
6349 * lin-lwp.c (lin_lwp_create_inferior): Update.
6350 * inftarg.c (child_create_inferior): Update.
6351 * hpux-thread.c (hpux_thread_create_inferior): Update.
6352 * gnu-nat.c (gnu_create_inferior): Update.
6353
1db2a798
AC
63542004-05-25 Andrew Cagney <cagney@gnu.com>
6355
6356 * MAINTAINERS: Update e-mail address.
6357
007d08bb
RC
63582004-05-24 Randolph Chung <tausq@debian.org>
6359
6360 * thread.c (info_threads_command, thread_apply_all_command)
6361 (thread_apply_command, thread_command, do_captured_thread_select):
6362 Remove HPUXHPPA-specific code.
6363
69e7b95e
RC
63642004-05-24 Randolph Chung <tausq@debian.org>
6365
6366 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6367 unused symbols.
6368 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6369 references.
6370
a4d5f2e0
JB
63712004-05-24 Joel Brobecker <brobecker@gnat.com>
6372
6373 * infcmd.c (kill_if_already_running): New function, extracted
6374 from run_command().
6375 (run_command): Replace extracted code by call to
6376 kill_if_already_running().
6377 (start_command): New function.
6378 (_initialize_infcmd): Add "start" command.
6379
bf2ca189
MK
63802004-05-24 Mark Kettenis <kettenis@gnu.org>
6381
6382 Add OpenBSD/m88k support.
6383 * NEWS (New native configurations): Mention OpenBSD/m88k.
6384 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6385 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6386 * Makefile.in (m88k_tdep_h): New variable.
6387 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6388 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6389 * configure.host: Add m88*-*-openbsd*.
6390 * configure.tgt: Add m88*-*-openbsd*.
6391
80fadb11
JB
63922004-05-24 Jim Blandy <jimb@redhat.com>
6393
6394 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6395 to approve changes.
6396
19e2d14b
KB
63972004-05-24 Kevin Buettner <kevinb@redhat.com>
6398
6399 * symtab.c (fixup_section): Search section table when lookup by
6400 name fails.
6401
1b07b470
RC
64022004-05-24 Randolph Chung <tausq@debian.org>
6403
6404 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6405 be "small_struct".
6406
368702b1
MK
64072004-05-24 Mark Kettenis <kettenis@gnu.org>
6408
5df97fde
MK
6409 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6410 register number in regcache_raw_collect call.
6411 (m68kbsd_collect_fpregset): Likewise.
6412 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6413
368702b1
MK
6414 * regset.h (struct regset): Add back `regset' member.
6415
a770d4ec
MK
64162004-05-23 Mark Kettenis <kettenis@gnu.org>
6417
70f9f479
MK
6418 * configure.in: Check for td_pcb in `struct thread'.
6419 * configure, config.in: Regenerated.
6420
2e16d79e
MK
6421 * dpx2-nat.c: Remove file.
6422 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6423 (dpx2-nat.o): Remove dependencies.
6424
492cf391
MK
6425 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6426 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6427 (amd64obsd_supply_pcb): New function.
6428 (_initialize_amd64obsd_nat): Enable libkvm interface.
6429 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6430 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6431 (LOADLIBES): New variable.
6432
a770d4ec
MK
6433 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6434 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6435 (sparc32nbsd_supply_pcb): New function.
6436 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6437 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6438 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6439 (LOADLIBES): New variable.
6440
9ea75c57
MK
64412004-05-22 Mark Kettenis <kettenis@gnu.org>
6442
2e0c3539
MK
6443 * bsd-kvm.c, bsd-kvm.h: New files.
6444 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6445 "bsd-kvm.h".
6446 (i386fbsd_supply_pcb): New function.
6447 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6448 (i386fbsd-nat.o): Update dependencies.
6449 (bsd_kvm_h): New variable.
6450 (bsd-kvm.o): New dependency.
6451 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6452 (LOADLIBES): New variable.
6453
9ea75c57
MK
6454 * regset.c: Tweak comment.
6455 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6456 macro.
6457 * regset.h: Update copyright year.
6458 (struct regset): Remove `descr' member, add `gdbarch' member.
6459 (regset_alloc): Adjust prototype and comment.
6460 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6461 (i386_supply_fpregset): Likewise.
6462 (i386_regset_from_core_section): Update call to regset_alloc.
6463 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6464 REGSET->arch.
6465 (i386obsd_aout_regset_from_core_section): Update call to
6466 regset_alloc.
6467 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6468 REGSET->arch.
6469 (i386nbsd_aout_regset_from_core_section): Update call to
6470 regset_alloc.
6471 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6472 REGSET->arch.
6473 (amd64_regset_from_core_section): Update call to regset_alloc.
6474 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6475 REGSET->arch.
6476 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6477 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6478 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6479 (sparc32nbsd_init_abi): Update call to regset_alloc.
6480 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6481 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6482 (sparc64obsd_init_abi): Update call to regset_alloc.
6483 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6484 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6485 (sparc64nbsd_init_abi): Update call to regset_alloc.
6486 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6487 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6488 (sparc64fbsd_init_abi): Update call to regset_alloc.
6489
867e2dc5
JB
64902004-05-22 Jim Blandy <jimb@redhat.com>
6491
6492 * ppc-tdep.h (spe_register_p): New declaration.
6493 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6494 ppc_spefscr_regnum.
6495 * rs6000-tdep.c (spe_register_p): New function.
6496 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6497 spefscr.
6498 (rs6000_gdbarch_init): Initialize the new members of the tdep
6499 structure.
6500
617a4cba
JB
65012004-05-21 Jim Blandy <jimb@redhat.com>
6502
0397dee1
JB
6503 * ppc-linux-nat.c (fetch_register): Move code back to be next
6504 to the comment that describes it. (Moved code, instead of
6505 comment, for symmetry with store_register.)
6506
617a4cba
JB
6507 Allocate regset structures in the gdbarch's obstack, not using
6508 xmalloc.
6509 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6510 Add 'arch' argument. Allocate the regset on arch's obstack, not
6511 using xmalloc.
6512 * regset.h (regset_alloc): Update declaration.
6513 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6514 gdbarch argument.
6515 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6516 * i386-tdep.c (i386_regset_from_core_section): Same.
6517 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6518 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6519 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6520 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6521 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6522 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6523
9aa3914d
JB
65242004-05-21 Joel Brobecker <brobecker@gnat.com>
6525
6526 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6527
99c87dab
JB
65282004-05-21 Jim Blandy <jimb@redhat.com>
6529
6530 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6531 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6532
c2b6b4aa
JB
65332004-05-20 Jim Blandy <jimb@redhat.com>
6534
6535 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6536
144529d0
MK
65372004-05-20 Mark Kettenis <kettenis@gnu.org>
6538
6539 * regset.h: Make prototype const-correct.
6540 * regset.c (regset_xmalloc): Make const-correct.
6541
4725b721
PH
65422004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6543
6544 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6545 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6546 (symbol_search_name): Declare.
6547
6548 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6549 (iter_name_next_hashed): Ditto.
6550 (iter_name_next_linear): Ditto.
6551 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6552
6553 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6554 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6555 (symbol_search_name): New function.
6556
6557 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6558
6559 * minsyms.c (build_minimal_symbol_hash_tables): Change
6560 test for adding to demangled hash table to check for difference
6561 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6562
be07a590
JB
65632004-05-19 Jim Blandy <jimb@redhat.com>
6564
6565 Use a constructor function to create regset structures.
6566 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6567 (struct regset): Use supply_regset_ftype. Add new
6568 'collect_regset' member.
6569 (regset_xmalloc): New declaration.
6570 * regset.c: New file.
6571 * am64-tdep.c (amd64_regset_from_core_section): Use
6572 regset_xmalloc to construct regset structures.
6573 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6574 * i386-tdep.c (i386_regset_from_core_section): Same.
6575 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6576 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6577 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6578 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6579 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6580 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6581 * Makefile.in (COMMON_OBS): Add regset.o.
6582 (regset.o): New rule.
6583
604368f5
JB
65842004-05-19 Joel Brobecker <brobecker@gnat.com>
6585
6586 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6587 and pthread_cond_wait.c.
6588
82d69f8b
JB
65892004-05-18 Jim Blandy <jimb@redhat.com>
6590
6591 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6592 before the mach-specific switch, and then let the individual cases
6593 override the defaults, rather than leaving them uninitialized
6594 until the switch and then setting them in each case.
6595
5859efe5
RC
65962004-05-18 Randolph Chung <tausq@debian.org>
6597
6598 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6599 millicode functions.
6600
9ca80cf8
RC
66012004-05-18 Randolph Chung <tausq@debian.org>
6602
6603 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6604 references to dld_flags_buffer consistent.
6605
ed70ba00
RC
66062004-05-18 Randolph Chung <tausq@debian.org>
6607
6608 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6609 it for unwinding the stack.
6610
63100632
RC
66112004-05-18 Randolph Chung <tausq@debian.org>
6612
6613 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6614 Undefine these so we can overide them using gdbarch.
6615
090ccbb7
RC
66162004-05-18 Randolph Chung <tausq@debian.org>
6617
6618 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6619 handling for 64-bit HPUX (elf).
6620
594706e6
DJ
66212004-05-18 Daniel Jacobowitz <dan@debian.org>
6622
6623 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6624 constants.
6625 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6626 * ia64-tdep.c (examine_prologue): Likewise.
6627 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6628 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6629
e5483145
MK
66302004-05-18 Mark Kettenis <kettenis@gnu.org>
6631
6632 * vax-tdep.c (vax_return_value): Implement
6633 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6634
caed1a45
MK
66352004-05-17 Mark Kettenis <kettenis@gnu.org>
6636
6637 * vax-tdep.c (vax_return_value): Fix typo.
6638
3c0b7db2
AC
66392004-05-17 Andrew Cagney <cagney@redhat.com>
6640
5aae53e5
AC
6641 * MAINTAINERS: Mark Salter was also responsible for
6642 testsuite/config/
6643
3c0b7db2
AC
6644 * NEWS: Mention signal fixes.
6645
22b0923d
RC
66462004-05-17 Randolph Chung <tausq@debian.org>
6647
6648 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6649 check to see if we are unwinding an export stub. Export stubs clobber
6650 the %rp in the call path and stores the original rp in a stack slot.
6651
22f2b2f3
JB
66522004-05-17 Jim Blandy <jimb@redhat.com>
6653
6654 * MAINTAINERS: Update address for J.T. Conklin.
6655
cea96d64
RC
66562004-05-17 Randolph Chung <tausq@debian.org>
6657
6658 * hppa-tdep.c: Remove superfluous #include's.
6659 * Makefile.in (hppa-tdep.o): Update dependencies.
6660
f08f6a4a
RC
66612004-05-17 Randolph Chung <tausq@debian.org>
6662
6663 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6664 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6665 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6666 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6667 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6668 Remove static function declarations.
6669
51da707a
MK
66702004-05-17 Mark Kettenis <kettenis@gnu.org>
6671
caed1a45
MK
6672 * alphabsd-nat.c: Update copyright year.
6673 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6674
c0c2b0db
MK
6675 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6676 and M68K_A2_REGNUM.
6677
51da707a
MK
6678 * m68k-tdep.c (m68k_svr4_return_value): Implement
6679 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6680
8d027a04
MK
66812004-05-16 Mark Kettenis <kettenis@gnu.org>
6682
6683 * sol-thread.c Update copyright year. Fix various coding
6684 standards violations. Tweak a few comments.
6685 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6686 Delete prototypes.
6687
0d99fdb9
RC
66882004-05-15 Randolph Chung <tausq@debian.org>
6689
6690 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6691 as pointer instead of array reference since HPUX compiler does
6692 not accept unsized array arguments.
6693 * somsolib.c (dld_flags_buffer): Use constant array size.
6694
f7e3843a
MK
66952004-05-15 Mark Kettenis <kettenis@gnu.org>
6696
0fe85704
MK
6697 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6698 offset with decimal offset.
6699 (amd64obsd_sigcontext_addr): Return correct address for entire
6700 signal trampoline.
6701
a54f9a00
MK
6702 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6703 instead of get_frame_base.
6704
feae6502
MK
6705 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6706 (fill_gregset): Use regcache_raw_collect.
6707
0382d099
MK
6708 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6709 ppcobsd-tdep.c.
6710
f7e3843a
MK
6711 * config/sparc/tm-nbsd64.h: Remove file.
6712 * config/tm-sunos.h: Remove file.
6713
773df3e5
JB
67142004-05-15 Joel Brobecker <brobecker@gnat.com>
6715
6716 * rs6000-tdep.c (store_param_on_stack_p): New function,
6717 an improved version of some code extracted from skip_prologue().
6718 (skip_prologue): Use store_param_on_stack_p() to detect
6719 instructions saving a parameter on the stack. Detect when r0
6720 is used to save a parameter.
6721 Do not mark "li rx, SIMM" instructions as part of the prologue,
6722 unless the following instruction is also part of the prologue.
6723
95918acb
AC
67242004-05-14 Andrew Cagney <cagney@redhat.com>
6725
06f32659
AC
6726 * infrun.c (handle_inferior_event): Simplify
6727 STEP_OVER_UNDEBUGGABLE.
6728
95918acb
AC
6729 * infrun.c (handle_step_into_function): Delete function.
6730 (handle_inferior_event): Inline calls to
6731 handle_step_into_function.
6732
40711ff1 67332004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6734
6735 * rs6000-nat.c: Fix a comment.
6736
02f60eae
JB
67372004-05-12 David Anderson <davea@sgi.com>
6738
6739 Committed by Jim Blandy <jimb@redhat.com>:
6740 * regcache.c (struct regcache_descr): fix comment spelling.
6741
552e377b
JB
67422004-05-13 J. Brobecker <brobecker@gnat.com>
6743
6744 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6745 Fixes a link link failure.
6746
349766b2
JB
67472004-05-13 J. Brobecker <brobecker@gnat.com>
6748
6749 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6750 error that was causing the build to fail.
6751
0d4d5484
JB
67522004-05-13 J. Brobecker <brobecker@gnat.com>
6753
6754 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6755 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6756
0b30808c
AC
67572004-05-13 Andrew Cagney <cagney@redhat.com>
6758
6759 * infrun.c (handle_inferior_event): Check for
6760 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6761 calls. Update comments.
6762
cdf2c5f5
JB
67632004-05-13 Jim Blandy <jimb@redhat.com>
6764
063715bf
JB
6765 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6766 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6767 (store_regs_user_thread, store_regs_kernel_thread): Use
6768 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6769 * ppc-linux-nat.c (fill_gregset): Same.
6770 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6771 (ppc_linux_sigtramp_cache): Same.
6772 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6773 (ppcnbsd_sigtramp_cache_init): Same.
6774 * rs6000-nat.c (fetch_core_registers): Same.
6775 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6776 (rs6000_frame_cache): Same.
6777
cdf2c5f5
JB
6778 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6779 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6780 of assuming that the gprs are numbered starting with zero.
6781 * ppc-linux-nat.c (fill_gregset): Same.
6782 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6783 * ppcnbsd-nat.c (getregs_supplies): Same.
6784 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6785 * rs6000-nat.c (fetch_core_registers): Same.
6786 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6787
450bd37b
MS
67882004-05-07 Michael Snyder <msnyder@redhat.com>
6789
6790 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6791 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6792
4a72a2a6
AC
67932004-05-13 Andrew Cagney <cagney@redhat.com>
6794
6795 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6796
8edfa926
BM
67972004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6798
6799 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6800 base_address for shared libraries.
6801
723e0e3d
BM
68022004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6803
6804 * MAINTAINERS (write after approval): Add myself.
6805
00d4360e
UW
68062004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6807
6808 * breakpoint.c (bpstat_stop_status): Add new argument
6809 STOPPED_BY_WATCHPOINT. Use it instead of testing
6810 target_stopped_data_address agaist 0 to check whether
6811 or not we stopped due to a hardware watchpoint.
6812 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6813 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6814 with new argument.
6815
ec76baa5
JB
68162004-05-12 Jim Blandy <jimb@redhat.com>
6817
6818 * configure.in: When checking whether we should use the -bbigtoc
6819 option, don't forget to restore the original value of LDFLAGS.
6820 * configure: Regenerated.
6821
f2c9ca08
AC
68222004-05-12 Andrew Cagney <cagney@redhat.com>
6823
6824 * thread.c (load_infrun_state): Delete step_sp.
6825 * infrun.c (context_switch): Ditto.
6826 * inferior.h (step_sp): Ditto.
6827 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6828 * gdbthread.h (struct thread_info, save_infrun_state)
6829 (restore_infrun_state): Ditto.
6830
090ddb2a
UW
68312004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6832
6833 * MAINTAINERS (write after approval): Add myself.
6834
8aad930b
AC
68352004-05-12 Andrew Cagney <cagney@redhat.com>
6836
6837 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6838 eliminate reference to step_sp.
6839 (struct execution_control_state, init_execution_control_state)
6840 (handle_inferior_event, keep_going): Delete update_step_sp and
6841 step_sp.
6842 * infcmd.c (step_sp): Note that variable is unused.
6843
922d5ae0
AC
68442004-05-11 Andrew Cagney <cagney@redhat.com>
6845
6846 * infrun.c (step_over_function): Delete function.
6847 (handle_step_into_function): Use insert_step_resume_breakpoint.
6848 (insert_step_resume_breakpoint): Fix assertion.
6849
017c5ca5
NR
68502004-05-11 Nick Roberts <nickrob@gnu.org>
6851
6852 * utils.c (defaulted_query): Just use the normal query input type
6853 when printing the annotations.
6854
42edda50
AC
68552004-05-11 Andrew Cagney <cagney@redhat.com>
6856
6857 * infrun.c (handle_inferior_event): Simplify code handling
6858 step-into or return-from a signal trampoline.
6859
d28b44a7
AC
68602004-05-11 Andrew Cagney <cagney@redhat.com>
6861
6862 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6863 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6864
383f0f5b
JB
68652004-05-10 Jim Blandy <jimb@redhat.com>
6866
d0b57c3a
JB
6867 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6868 with a call to internal_error.
6869
383f0f5b
JB
6870 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6871 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6872 processor variant lacks those registers.
6873 (ppc_floating_point_unit_p): Change description to make it clear
6874 that this returns info about the ISA, not the ABI.
6875 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6876 return true or false by checking tdep->ppc_fp0_regnum and
6877 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6878 arch/mach switching done in rs6000_gdbarch_init; it's better to
6879 keep that logic there, and just check the results here.
6880 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6881 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6882 floating-point registers.
6883 (ppc_supply_fpregset, ppc_collect_fpregset)
6884 (rs6000_push_dummy_call, rs6000_extract_return_value)
6885 (rs6000_store_return_value): Assert that we have floating-point
6886 registers.
6887 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6888 (rs6000_frame_cache): Don't note the locations at which
6889 floating-point registers were saved if we have no fprs.
6890 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6891 registers.
6892 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6893 (store_regs_user_thread, store_regs_kernel_thread): Only call
6894 supply_fprs / fill_fprs if we actually have floating-point
6895 registers.
6896 (special_register_p): Check ppc_fpscr_regnum before matching
6897 against it.
6898 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6899 supply / collect fpscr if we don't have it.
6900 * ppc-bdm.c: #include "gdb_assert.h".
6901 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6902 have floating-point registers, since I can't test this code on
6903 FP-free systems to adapt it.
6904 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6905 fpscr and floating point register numbers if they don't exist.
6906 (fetch_register): Assert that we have floating-point registers
6907 before we reach the code that handles them.
6908 (store_register): Same. And use tdep instead of calling
6909 gdbarch_tdep again.
6910 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6911 don't have them.
6912 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6913 fprs and fpscr if we don't have them.
6914 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6915 don't have them.
6916 * ppcnbsd-nat.c: #include "gdb_assert.h".
6917 (getfpregs_supplies): Assert that we have floating-point registers.
6918 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6919 * ppcobsd-tdep.c: #include "gdb_assert.h".
6920 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6921 have floating-point registers.
6922 * rs6000-nat.c (regmap): Don't match against the fpscr and
6923 floating point register numbers if they don't exist.
6924 (fetch_inferior_registers, store_inferior_registers,
6925 fetch_core_registers): Only fetch / store / supply the
6926 floating-point registers and the fpscr if we have them.
6927 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6928 (ppcobsd-tdep.o): Update dependencies.
6929
15960608
AC
69302004-05-10 Andrew Cagney <cagney@redhat.com>
6931
6932 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6933 (context_switch): Do not switch through_sigtramp_breakpoint.
6934 * gdbthread.h (save_infrun_state, load_infrun_state)
6935 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6936 and structure member.
6937 * thread.c (load_infrun_state, save_infrun_state): Update.
6938
5ab5aa0f
MK
69392004-05-10 Mark Kettenis <kettenis@gnu.org>
6940
6941 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6942
da78b0e7
DJ
69432004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6944
6945 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6946 throughout.
6947 * aclocal.m4: Regenerate.
6948
cca0d3b0
NW
69492004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6950
6951 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6952
d303a6c7
AC
69532004-05-10 Andrew Cagney <cagney@redhat.com>
6954
6955 * infrun.c (check_sigtramp2): Delete function.
6956 (handle_inferior_event): When single stepping, and taking a
6957 signal, set a breakpoint at the signal return address. Delete
6958 redundant calls to check_sigtramp2.
6959 (insert_step_resume_breakpoint): New function.
6960 (through_sigtramp_breakpoint, handle_inferior_event)
6961 (follow_exec, wait_for_inferior, fetch_inferior_event)
6962 (currently_stepping, keep_going): Delete most uses of
6963 through_sigtramp_breakpoint, not that it should be deleted.
6964 (delete_breakpoint_current_contents): Delete function.
6965
03f4cc20
RC
69662004-05-10 Randolph Chung <tausq@debian.org>
6967
6968 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6969 target.
6970 * config/pa/tm-linux.h: New file.
6971
37fc812e
DJ
69722004-05-10 Daniel Jacobowitz <drow@mvista.com>
6973
6974 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6975 of prefixes. Don't print the prefix twice in the CLI.
6976
26c0b942
JB
69772004-05-10 Jim Blandy <jimb@redhat.com>
6978
2e56e9c1
JB
6979 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6980 collect all the gprs.
6981
26c0b942
JB
6982 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6983 loop collecting gprs.
6984
dc497459
AC
69852004-05-09 Andrew Cagney <cagney@redhat.com>
6986
6987 * remote-vx.c (net_step): Delete step-range code.
6988 * remote.c (remote_resume, init_all_packet_configs)
6989 (set_remote_protocol_E_packet_cmd)
6990 (show_remote_protocol_E_packet_cmd)
6991 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6992 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6993 (show_remote_protocol_e_packet_cmd): Ditto.
6994
0543f387
MK
69952004-05-09 Mark Kettenis <kettenis@gnu.org>
6996
c481d1ca
MK
6997 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6998
f626a069
MK
6999 * hppa-tdep.h: Update copyright year.
7000 (struct trad_frame_saved_reg): Add opaque declaration.
7001
6fa57a7d
MK
7002 * amd64-tdep.c (amd64_return_value): Implement
7003 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7004
e47577ab
MK
7005 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7006 (m68k_value_to_register): New functions.
7007 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7008 value_to_register.
7009
31db7b6c
MK
7010 * defs.h (enum return_value_convention): Add
7011 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7012 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7013 * infcmd.c (legacy_return_value): New function.
7014 (print_return_value): Rwerite to implement
7015 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7016 * values.c (using_struct_return): Check for inequality to
7017 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7018 RETURN_VALUE_STRUCT_CONVENTION.
7019 * i386-tdep.c (i386_return_value): Implement
7020 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7021
0543f387
MK
7022 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7023 include "symtab.h", "opcode/vax.h" and "inferior.h".
7024 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7025 to read_memory_unsigned_integer.
7026 (vax_gdbarch_init): Reorder.
7027 (_initialize_vax_tdep): Spell out prototype.
7028 * Makefile.in (vax-tdep.o): Update dependencies.
7029
0c93b7b6
AC
70302004-05-08 Andrew Cagney <cagney@redhat.com>
7031
e6b55ae2
AC
7032 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7033 * target.c (target_detach, target_disconnect): Ditto.
7034
1ac839b8
AC
7035 * infcall.c (call_function_by_hand): When no
7036 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7037 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7038 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7039 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7040 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7041
28954179
AC
7042 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7043 * gdbarch.h, gdbarch.c: Re-generate.
7044 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7045 deprecated_fix_call_dummy.
7046 * v850-tdep.c (v850_gdbarch_init): Ditto.
7047 * infcall.c (call_function_by_hand): Do not call
7048 DEPRECATED_FIX_CALL_DUMMY.
7049
434b87dd
AC
7050 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7051 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7052 * gdbarch.h, gdbarch.c: Re-generate.
7053 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7054 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7055 deprecated_sizeof_call_dummy_words.
7056 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7057 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7058 * v850-tdep.c (v850_gdbarch_init): Ditto.
7059 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7060 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7061 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7062 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7063 * arch-utils.h (legacy_call_dummy_words)
7064 (legacy_sizeof_call_dummy_words): Delete declarations.
7065 * arch-utils.c (legacy_call_dummy_words)
7066 (legacy_sizeof_call_dummy_words): Delete variables.
7067
58d28df8
AC
7068 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7069 * gdbarch.h, gdbarch.c: Re-generate.
7070 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7071 * infcall.c (call_function_by_hand): Eliminate call to
7072 DEPRECATED_PUSH_DUMMY_FRAME.
7073 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7074 push_dummy_frame.
7075 (ns32k_push_dummy_frame): Delete function.
7076
e4a2df64
AC
7077 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7078 deprecated_call_dummy_breakpoint_offset or
7079 deprecated_call_dummy_start_offset.
7080 * dummy-frame.c, arm-tdep.c: Update comments.
7081 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7082 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7083 * gdbarch.h, gdbarch.c: Re-generate.
7084
d3712828
AC
7085 * infcall.c (legacy_push_dummy_code): Delete function.
7086 (push_dummy_code): Delete call.
7087
7a882905
AC
7088 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7089 * gdbarch.h, gdbarch.c: Re-generate.
7090 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7091 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7092 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7093 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7094
0ec5872b
AC
7095 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7096 (struct frame_info): Delete opaque declaration.
7097 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7098 * frame.c (get_frame_type): Delete call.
7099
0c93b7b6
AC
7100 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7101 pc_in_call_dummy.
7102 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7103 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7104
75536971
MK
71052004-05-08 Mark Kettenis <kettenis@gnu.org>
7106
527ca6bb
MK
7107 * alphanbsd-tdep.c: Include "gdb_string.h".
7108 * armnbsd-tdep.c: Update copyright year.
7109 Include "gdb_string.h".
7110 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7111 dependencies.
7112
d39fdc61
MK
7113 * delta68-nat.c: Remove file.
7114 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7115 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7116 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7117 (delta68-nat.o): Remove dependency.
7118
75536971
MK
7119 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7120 function.
7121 (m68k_gdbarch_init): Don't set
7122 deprecated_frameless_function_invocation.
7123
f4ca1d1f
RC
71242004-05-07 Randolph Chung <tausq@debian.org>
7125
7126 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7127 read_memory_nobpt for code reading when doing frame unwinding.
7128 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7129
2f0e8c7a
RC
71302004-05-07 Randolph Chung <tausq@debian.org>
7131
7132 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7133 instead of sp, handle sigaltstack case.
7134 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7135 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7136 signal handler and not that of the caller.
7137 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7138 hppa_linux_sigtramp_find_sigcontext.
7139
959464ff
RC
71402004-05-07 Randolph Chung <tausq@debian.org>
7141
7142 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7143 hppa-linux-nat.c.
7144 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7145 * hppa-linux-nat.c (fetch_register, store_register): Define.
7146 (fetch_inferior_registers, store_inferior_registers): Define.
7147 (supply_gregset): Add comment and clean up some unneeded code.
7148 (fill_gregset): Add comment and fix so that it saves registers in
7149 the right place in the gregset.
7150 (fill_fpregset): Fix buffer overrun problem.
7151 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7152
0da28f8a
RC
71532004-05-07 Randolph Chung <tausq@debian.org>
7154
7155 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7156 do common handling of the pcoqt register.
7157 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7158 to use helper function.
7159 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7160 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7161 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7162 generic fallback unwinder when all else fails.
7163 (hppa_gdbarch_init): Add fallback sniffer.
7164 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7165 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7166 to use helper function.
7167
b9ec757a
JB
71682004-05-08 Joel Brobecker <brobecker@gnat.com>
7169
7170 * config/djgpp/fnchange.lst: Add translation rules for
7171 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7172
756e95f1
MK
71732004-05-08 Mark Kettenis <kettenis@gnu.org>
7174
7175 * frame.c (get_prev_frame_1): Work around GCC bug.
7176 * frame.h: Add comment about GCC bug.
7177
2b4855ab
AC
71782004-05-07 Andrew Cagney <cagney@redhat.com>
7179
7180 * observer.c: Include "commands.h" and "gdbcmd.h".
7181 (observer_debug, _initialize_observer): Add the
7182 command "set/show debug observer".
7183 * observer.sh: When observer debugging, log notify calls.
7184 * Makefile.in (observer.o): Update dependencies.
7185
ba3e8e46
JM
71862004-05-07 Jason Molenda (jmolenda@apple.com)
7187
7188 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7189
16796152
JB
71902004-05-07 Jim Blandy <jimb@redhat.com>
7191
daf6dc85
JB
7192 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7193 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7194 to recognize gpr regnums, instead of assuming that
7195 tdep->ppc_fp0_regnum marks the end of the general-purpose
7196 registers.
7197
16796152
JB
7198 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7199 the given architecture has floating-point registers.
7200
c69b8bfc
AC
72012004-05-07 Andrew Cagney <cagney@redhat.com>
7202
7203 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7204 macro defined to 1.
7205 * gdbarch.h, gdbarch.c: Re-generate.
7206 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7207 deprecated_use_generic_dummy_frames.
7208
7243600a
BF
72092004-05-07 Brian Ford <ford@vss.fsi.com>
7210
7211 * NEWS: Mention Cygwin DWARF 2 support.
7212
73c1e0a1
AC
72132004-05-07 Andrew Cagney <cagney@redhat.com>
7214
7215 * objfiles.h (struct entry_info): Delete unused fields
7216 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7217 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7218 * mipsread.c (mipscoff_symfile_read): Update.
7219 * mdebugread.c (parse_partial_symbols): Update.
7220 * dwarfread.c (read_file_scope): Update.
7221 * dwarf2read.c (read_file_scope): Update.
7222 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7223 * coffread.c (complete_symtab): Update.
7224
1d3056ac
MK
72252004-05-07 Mark Kettenis <kettenis@gnu.org>
7226
7227 * infcall.c (_initialize_infcall): Fix typo.
7228
15170568
AC
72292004-05-07 Andrew Cagney <cagney@redhat.com>
7230
7231 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7232 * command.h (add_setshow_zinteger_cmd): Declare.
7233
34f75cc1
RC
72342004-05-06 Randolph Chung <tausq@debian.org>
7235
7236 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7237 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7238 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7239 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7240 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7241 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7242 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7243 definitions ...
7244 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7245 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7246 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7247 (hppa64_hpux_frame_find_saved_regs_in_sig)
7248 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7249 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7250 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7251 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7252 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7253 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7254 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7255 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7256 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7257 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7258 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7259 (hppa32_register_type, hppa_cannot_store_register)
7260 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7261 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7262 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7263 * pa64solib.c (pa64_solib_have_load_event)
7264 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7265 (pa64_solib_unloaded_library_pathname): Likewise.
7266 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7267 (som_solib_library_pathname): Likewise.
7268
0a5e7efe
JI
72692004-05-05 Jim Ingham <jingham@apple.com>
7270
7271 * breakpoint.c (create_breakpoints): Copy the ignore count and
7272 thread id over from the pended breakpoint to the actual
7273 breakpoint.
7274
10a4b113
AC
72752004-05-05 Andrew Cagney <cagney@redhat.com>
7276
7277 * gdbarch.sh (PARM_BOUNDARY): Delete.
7278 gdbarch.h, gdbarch.c: Re-generate.
7279 * valops.c (PARM_BOUNDARY): Delete macro.
7280 (value_push): Delete PARM_BOUNDARY code.
7281 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7282
366f009f
JB
72832004-05-04 Jim Blandy <jimb@redhat.com>
7284
32b99774
JB
7285 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7286 Don't assume that the gprs, fprs, and UISA sprs are
7287 contiguous, start at register number zero, and end with fpscr.
7288 Instead, use the numbers from the tdep structure.
7289
366f009f
JB
7290 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7291 should no longer be used in code specific to the RS6000 and its
7292 derivatives.
7293 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7294 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7295 tdep->ppc_fp0_regnum.
7296 (ppc_supply_fpregset, ppc_collect_fpregset)
7297 (rs6000_push_dummy_call, rs6000_extract_return_value)
7298 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7299 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7300 FP0_REGNUM.
7301 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7302 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7303 Same.
7304 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7305 bdm_ppc_store_registers): Same.
7306 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7307 (store_register, fill_fpregset): Same.
7308 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7309 (ppc_linux_supply_fpregset): Same.
7310 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7311 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7312 Same.
7313 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7314 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7315 ppc64_sysv_abi_return_value): Same.
7316 * rs6000-nat.c (regmap, fetch_inferior_registers)
7317 (store_inferior_registers, fetch_core_registers): Same.
7318
827f338d
MK
73192004-05-01 Mark Kettenis <kettenis@gnu.org>
7320
7321 * m68knbsd-nat.c: Remove file.
7322 * m68knbsd-tdep.c: Remove file.
7323 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7324 dependencies.
7325 * configure.host: Add m68k-*-netbsdelf*.
7326 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7327 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7328 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7329 (XM_FILE): Remove.
7330 * config/m68k/nbsdelf.mh: New file.
7331 * config/m68k/nbsd.mt: New file.
7332 * config/m68k/nbsdaout.mt: Remove file.
7333 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7334 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7335 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7336 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7337 (use_struct_convention): Remove prototype.
7338 (USE_STRUCT_CONVENTION): Remove define.
7339 * config/m68k/xm-nbsd.h: Remove file.
7340
66894781
MS
73412004-05-04 Michael Snyder <msnyder@redhat.com>
7342
7343 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7344 reg_struct_return method (as gcc usually does for cross targets).
7345
f0f63663
AC
73462004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7347
7348 Committed by Andrew Cagney.
7349 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7350 alignment padding when accessing ucontext struct members.
7351
edf61169
JB
73522004-05-04 Jim Blandy <jimb@redhat.com>
7353
8bf659e8
JB
7354 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7355 'ppc_gplast_regnum' member.
7356 (ppc_num_gprs): New enum constant.
7357 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7358 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7359 * rs6000-nat.c (regmap, fetch_inferior_registers,
7360 store_inferior_registers): Same.
7361 * rs6000-tdep.c (e500_pseudo_register_read)
7362 (e500_pseudo_register_write): Same.
7363 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7364
b967e06f
JB
7365 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7366 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7367 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7368 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7369 FPLAST_REGNUM.
7370 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7371 Same.
7372 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7373 * rs6000-nat.c (regmap, fetch_inferior_registers)
7374 (store_inferior_registers): Same.
7375
edf61169
JB
7376 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7377 with FPLAST_REGNUM.
7378
58a9656e
JB
73792004-05-03 Joel Brobecker <brobecker@gnat.com>
7380
7381 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7382 failure detected by recent versions of GCC.
7383 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7384 to be consistent with the usage in dwarf2_create_include_psymtab.
7385
dc305454
MS
73862004-05-03 Michael Snyder <msnyder@redhat.com>
7387
7388 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7389 (heuristic_proc_start): Whitespace cleanup.
7390
29972665
MK
73912004-05-04 Mark Kettenis <kettenis@gnu.org>
7392
6b57680d
MK
7393 * sun3-nat.c: Remove file.
7394 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7395 dependencies.
7396 (ALLDEPFILES): Remove sun3-nat.c.
7397 (sun3-nat.o): Remove dependencies.
7398
29972665
MK
7399 * i386-interix-nat.c, i386-interix-tdep.c,
7400 config/i386/nm-interix.h, config/i386/interix.mh,
7401 config/i386/interix.mt: Remove files.
7402 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7403 dependencies.
7404
f595cb19
MK
74052004-05-03 Mark Kettenis <kettenis@gnu.org>
7406
7407 * m68k-tdep.h (struct gdbarch_tdep): Add member
7408 struct_value_regnum.
7409 (m68k_svr4_init_abi): New prototype.
7410 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7411 different calling conventions.
7412 (m68k_extract_return_value): Remove code dealing with single-field
7413 structs.
7414 (m68k_store_return_value): Remove code dealing with single-field
7415 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7416 (m68k_extract_struct_value_address): Remove function.
7417 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7418 (m68k_reg_struct_return_p, m68k_return_value)
7419 (m68k_svr4_return_value): New functions.
7420 (m68k_use_struct_convention): Remove function.
7421 (m68k_push_dummy_call): Use new struct_value_regnum member of
7422 `struct gdbarch_tdep' instead of hardcoded register number to
7423 store STRUCT_ADDR.
7424 (m68k_svr4_init_abi): New function.
7425 (m68k_gdbarch_init): Don't set extract_return_value,
7426 store_return_values, deprecated_extract_struct_value_address and
7427 use_struct_convention. Set return_value instead. Initialize new
7428 struct_value_regnum member of `struct gdbarch_tdep'.
7429 * m68klinux-tdep.c: Update copyright year.
7430 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7431 (m68k_linux_extract_struct_value_address): Remove function.
7432 (m68k_linux_init_abi): Don't set extract_return_value,
7433 store_return_values, deprecated_extract_struct_value_address and
7434 use_struct_convention. Call m68k_svr4_init_abi but override the
7435 new struct_value_regnum member of `struct gdbarch_tdep'.
7436 * Makefile.in (m68k-tdep.o): Update dependencies.
7437
aaa75496
JB
74382004-05-03 J. Brobecker <brobecker@gnat.com>
7439
7440 * dwarf2read.c (line_header): Add new included_p field in
7441 field file_names.
7442 (partial_die_info): New field has_stmt_list. New field line_offset.
7443 (dwarf2_create_include_psymtab): New function.
7444 (dwarf2_build_include_psymtabs): New function.
7445 (add_file_name): Add forward declaration. Initialize new field.
7446 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7447 to be able to determine the list of files included by the
7448 given unit, and build their associated psymtabs.
7449 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7450 files as well.
7451 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7452 (read_file_scope): Update call to dwarf_decode_lines.
7453 (read_partial_die): Handle DW_AT_stmt_list attributes.
7454
c848556f
MC
74552004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7456
7457 Unfix PR gdb/1626.
7458 * configure.in: Revert special case for osf5.*.
7459 * configure: Regenerate.
7460
eb4556d7
JB
74612004-05-02 Jim Blandy <jimb@redhat.com>
7462
7463 Move the symbol-file-from-memory functions into their own file.
7464 * symfile-mem.c, symfile-mem.h: New files.
7465 * symfile.c (symbol_file_add_from_bfd): New function.
7466 (symbol_file_add): Call symbol_file_add_from_bfd.
7467 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7468 Moved to symfile-mem.c.
7469 (_initialize_symfile): Move definition of
7470 add-symbol-file-from-memory command to symfile-mem.c.
7471 * symfile.h (symbol_file_add_from_bfd): New declaration.
7472 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7473 * config/powerpc/linux.mt (TDEPFILES): Same.
7474 * Makefile.in (SFILES): Add symfile-mem.c.
7475 (symfile_mem_h): New variable.
7476 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7477 (symfile-mem.o): New rule.
7478
80bb239e
AC
74792004-05-01 Andrew Cagney <cagney@redhat.com>
7480
7789d0fa
AC
7481 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7482 frame_find_by_id instead of frame_relative_level.
7483 (do_enable_breakpoint): Ditto.
7484 * thread.c: Update copyright.
7485 (info_threads_command): Ditto, simplify.
7486
80bb239e
AC
7487 * frame.c (deprecated_generic_get_saved_register): Delete
7488 function, moved to "xstormy16-tdep.c".
7489 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7490 deprecated_generic_get_saved_register from "frame.c".
7491 (xstormy16_frame_saved_register): Call
7492 xstormy16_get_saved_register.
7493 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7494 static.
7495 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7496 * frame.h (deprecated_generic_get_saved_register): Delete.
7497
b2a871dd
MC
74982004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7499
7500 * dwarfread.c: Update documentation on the state of dwarf-1.
7501
0e100dab
AC
75022004-05-01 Andrew Cagney <cagney@redhat.com>
7503
acd8056e
AC
7504 * stack.c (select_frame_command): Delete call to
7505 frame_relative_level.
7506 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7507 Delete #if0 code.
7508 (frame_info): Do not print FRAMELESS.
7509 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7510 (catch_info): Delete #if0 code.
7511
0e100dab
AC
7512 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7513 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7514 of frame_relative_level.
7515 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7516 to SENTINEL_FRAME.
7517 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7518 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7519 frame_relative_level.
7520
55699d59
AC
7521 * frame.h (deprecated_set_frame_type): Delete declaration.
7522 * frame.c (deprecated_set_frame_type): Delete function, update
7523 comments.
7524
fcf70625
AC
7525 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7526 * gdbarch.h, gdbarch.c: Re-generate.
7527 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7528 (shnbsd_pc_in_sigtramp): Delete.
7529 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7530 pc_in_sigtramp.
7531 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7532 pc_in_sigtramp.
7533 * frame.h: Update comments.
7534 * ppc-linux-tdep.c: Update comments.
7535 * breakpoint.c (bpstat_what): Update comments.
7536
ac5eccb7
AC
7537 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7538 m68klinux-tdep.o's dependencies, were previously added to
7539 m68klinux-nat.o.
7540
f2524b93
AC
7541 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7542 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7543 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7544 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7545 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7546
17e20bce
AC
7547 * Makefile.in (m68klinux-nat.o): Update dependencies.
7548 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7549 (m68k_linux_sigtramp_frame_cache)
7550 (m68k_linux_sigtramp_frame_this_id)
7551 (m68k_linux_sigtramp_frame_prev_register)
7552 (m68k_linux_sigtramp_frame_unwind)
7553 (m68k_linux_sigtramp_frame_sniffer)
7554 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7555 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7556 names, use trad-frame.h.
7557 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7558 (struct m68k_sigtramp_info): Delete.
7559 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7560 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7561 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7562 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7563 "m68klinux-tdep.c".
7564
c8864fa2
AC
7565 * infrun.c (check_sigtramp2): Delete check for
7566 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7567
511dd2cd
MK
75682004-05-01 Mark Kettenis <kettenis@gnu.org>
7569
7570 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7571
8c6b0e06
AC
75722004-05-01 Andrew Cagney <cagney@redhat.com>
7573
9df0bb3f
AC
7574 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7575 (frv_linux_sigtramp_frame_cache)
7576 (frv_linux_sigtramp_frame_this_id)
7577 (frv_linux_sigtramp_frame_prev_register)
7578 (frv_linux_sigtramp_frame_unwind)
7579 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7580 include "linux" in function and variable names, directly call
7581 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7582 the latest trad-frame code.
7583 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7584 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7585 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7586 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7587 * frv-tdep.c (frv_sigtramp_frame_cache)
7588 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7589 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7590 frv-linux-tdep.c.
7591 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7592 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7593 (frv_set_sigcontext_reg_addr): Delete function.
7594
8c6b0e06
AC
7595 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7596 (DEPRECATED_SIGTRAMP_END): Delete.
7597 * gdbarch.h, gdbarch.c: Re-generate.
7598 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7599 * config/vax/tm-vaxbsd.h: Update copyright.
7600 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7601 (DEPRECATED_IN_SIGTRAMP): Define.
7602 * config/m68k/tm-nbsd.h: Update copyright.
7603 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7604 (DEPRECATED_IN_SIGTRAMP): Define.
7605
50ea7769
MK
76062004-05-01 Mark Kettenis <kettenis@gnu.org>
7607
03ac2a74
MK
7608 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7609 encondings. Fixes PR gdb/1628.
7610
50ea7769
MK
7611 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7612 DW_CFA_restore state without a matching DW_CFA_remember_state
7613 instead of aborting. Fixes PR backtrace/1589.
7614
9a5d7be1
JB
76152004-04-30 Joel Brobecker <brobecker@gnat.com>
7616
7617 * MAINTAINERS: Add self as AIX maintainer.
7618 Update my e-mail address in write-after-approval section.
7619
2593d1cd
AC
76202004-04-30 Andrew Cagney <cagney@redhat.com>
7621
ce12bbf9
AC
7622 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7623 (legacy_get_prev_frame): Ditto.
7624
36710c63
AC
7625 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7626 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7627 * mipsread.c (sigtramp_address): Delete extern variable.
7628 (mipscoff_new_init): Delete reference.
7629 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7630 (fixup_sigtramp): Delete function.
7631 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7632 (fixup_sigtramp): Delete declarations.
7633
2593d1cd
AC
7634 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7635 deprecated_pc_in_sigtramp.
7636 (ppcnbsd_pc_in_sigtramp): Delete function.
7637
2a25f91c
MK
76382004-05-01 Mark Kettenis <kettenis@gnu.org>
7639
7640 * config/m68k/nm-nbsd.h: Tweak comments.
7641 * config/m68k/nm-nbsdaout.h: Likewise.
7642
0b281939
AC
76432004-04-30 Andrew Cagney <cagney@redhat.com>
7644
7645 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7646 legacy_pc_in_sigtramp.
7647 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7648
8f2d3ea0
MK
76492004-05-01 Mark Kettenis <kettenis@gnu.org>
7650
7651 Add OpenBSD/m68k support.
7652 * NEWS (New native configurations): Mention OpenBSD/m68k.
7653 * m68kbsd-tdep.c: New file.
7654 * m68kbsd-nat.c: New file.
7655 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7656 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7657 * configure.host: Add m68k-*-openbsd.
7658 * configure.tgt: Add m68k-*-openbsd.
7659 * config/m68k/tm-obsd.h: New file.
7660 * config/m68k/obsd.mt: New file.
7661 * config/m68k/obsd.mh: New file.
7662 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7663 m68kbsd-tdep.c.
7664
c40f49a4
AC
76652004-04-30 Andrew Cagney <cagney@redhat.com>
7666
7667 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7668 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7669
e81554cd
MK
76702004-04-30 Mark Kettenis <kettenis@gnu.org>
7671
7672 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7673 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7674
d4dc1a91
BF
76752004-04-30 Brian Ford <ford@vss.fsi.com>
7676
7677 Revert 2004-04-16 change.
7678 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7679 (i386_coff_init_abi): Remove.
7680 * i386-tdep.h (i386_coff_init_abi): Remove.
7681 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7682
2f72f850
AC
76832004-04-30 Andrew Cagney <cagney@redhat.com>
7684
e492f9d6
AC
7685 * blockframe.c (find_pc_partial_function): Delete use of
7686 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7687 DEPRECATED_SIGTRAMP_END.
7688
7b7adad0
AC
7689 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7690 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7691 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7692 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7693 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7694
2f72f850
AC
7695 * defs.h (deprecated_inside_entry_file): Delete declaration.
7696 * blockframe.c (deprecated_inside_entry_file): Delete function.
7697 (legacy_frame_chain_valid): Delete call.
7698 * sh64-tdep.c (sh64_frame_chain): Delete call.
7699 * objfiles.h: Update comments.
7700 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7701 call.
7702 * frame.c (get_prev_frame): Delete call, update comments.
7703
283f90a7
BF
77042004-04-30 Brian Ford <ford@vss.fsi.com>
7705
7706 * MAINTAINERS (Write After Approval): Add myself.
7707
8ee56bcf
AC
77082004-04-30 Andrew Cagney <cagney@redhat.com>
7709
7710 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7711 * gdbarch.h, gdbarch.c: Re-generate.
7712 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7713 code.
7714
ee27e1b6
AC
77152004-04-30 Andrew Cagney <cagney@redhat.com>
7716
7717 * gdb-events.sh (selected_thread_changed)
7718 (selected_frame_level_changed, target_changed): Delete.
7719 * gdb-events.h, gdb-events.c: Re-generate.
7720 * valops.c (value_assign): Update.
7721 * stack.c (select_frame_command, up_silently_base)
7722 (down_silently_base): Update.
7723
d5ac5a39
AC
77242004-04-29 Andrew Cagney <cagney@redhat.com>
7725
7726 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7727 registers correctly.
7728 (print_gp_register_row, mips32_heuristic_proc_desc)
7729 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7730 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7731 references to mips_isa_regsize.
7732
ceae6e75
AC
77332004-04-29 Andrew Cagney <cagney@redhat.com>
7734
7735 * mips-tdep.c (struct gdbarch_tdep): Delete
7736 mips_fp_register_double.
7737 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7738 mips_abi_regsize.
7739 (mips_gdbarch_init): Do not set mips_fp_register_double.
7740 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7741
a587af0b
AC
77422004-04-29 Joel Brobecker <brobecker@gnat.com>
7743
7744 Committed by Andrew Cagney.
7745 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7746 function calls.
7747
13326b4e
AC
77482004-04-29 Andrew Cagney <cagney@redhat.com>
7749
7750 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7751 gdbarch, use mips_abi, update callers.
7752 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7753 mips_abi_regsize, update callers.
7754 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7755 mips_default_abi_regsize.
7756 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7757 mips_default_abi_regsize.
7758
711cc5cd
AC
77592004-04-29 Andrew Cagney <cagney@redhat.com>
7760
1b13c4f6
AC
7761 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7762 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7763 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7764 mips_default_abi_regsize.
7765 (mips_isa_regsize): Rename mips_regisze.
7766 * mipsnbsd-tdep.c: Update.
7767 * mips-linux-tdep.c: Update.
7768 * irix5-nat.c: Update.
7769 * mips-tdep.h (mips_isa_regsize): Update.
7770
711cc5cd
AC
7771 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7772 Delete all disabled code.
7773 * gdb-events.h, gdb-events.c: Re-generate.
7774
e63bbc88
MK
77752004-04-19 Jerome Guitton <guitton@gnat.com>
7776 Mark Kettenis <kettenis@gnu.org>
7777
7778 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7779 the function begins with a branch instruction.
7780
fd35795f
MK
77812004-04-29 Mark Kettenis <kettenis@gnu.org>
7782
7783 * i386-tdep.c: Fix spelling mistakes.
7784
c960c18f
AC
77852004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7786 Andrew Cagney <cagney@redhat.com>
7787
7788 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7789 <sys/proc.h>.
7790 * acconfig.h: Provide default _KMEMUSER value.
7791 * config.in, configure: Re-generate.
7792 * NEWS: Mention fix.
7793
50306a9d
RC
77942004-04-24 Randolph Chung <tausq@debian.org>
7795
7796 * configure.host (hppa*-*-linux*): New target.
7797 * configure.tgt (hppa*-*-linux*): Likewise.
7798 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7799 gdbarch_init_osabi() call earlier so that osabi-specific frame
7800 unwinders can be registered first.
7801 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7802 hppa-linux-nat.c.
7803 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7804 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7805 * config/pa/linux.mh: New file.
7806 * config/pa/linux.mt: New file.
7807 * config/pa/nm-linux.h: New file.
7808 * config/pa/xm-linux.h: New file.
7809 * hppa-linux-nat.c: New file.
7810 * hppa-linux-tdep.c: New file.
7811
2a6228ef
RC
78122004-04-28 Randolph Chung <tausq@debian.org>
7813
7814 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7815 return values.
7816 (hppa32_push_dummy_call): Fix small struct and floating point argument
7817 passing, and make sure the stack frame is properly aligned.
7818
82c10df6
AC
78192004-04-28 Andrew Cagney <cagney@redhat.com>
7820
d762c46a
AC
7821 * stack.c (print_stack_frame): Fix description.
7822
82c10df6
AC
7823 * NEWS: Mention gdb/gdbserver/configure execute permission
7824 changed. PR server/519.
7825
0faf0076
AC
78262004-04-28 Andrew Cagney <cagney@redhat.com>
7827
7828 * stack.c (print_stack_frame_stub): Delete declaration.
7829 (struct print_stack_frame_args, print_stack_frame)
7830 (print_frame_info, print_frame): Replace "source" with print what.
7831 Replace "print" with "print_level". Replace "args" with
7832 "print_args".
7833 * frame.h (show_and_print_stack_frame, print_stack_frame)
7834 (print_frame_info): Update declarations.
7835 * stack.c (select_and_print_frame, frame_command)
7836 (current_frame_command, up_command, down_command): Update calls -
7837 use get_selected_frame, pass "enum print_what" for source, do not
7838 call frame_relative_level.
7839 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7840 * remote-rdp.c (remote_rdp_open): Ditto.
7841 * remote-mips.c (common_open): Ditto.
7842 * remote-e7000.c (e7000_start_remote): Ditto.
7843 * ocd.c (ocd_start_remote): Ditto.
7844 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7845 * infrun.c (normal_stop): Ditto.
7846 * inflow.c (kill_command): Ditto.
7847 * infcmd.c (finish_command): Ditto.
7848 * corelow.c (core_open): Ditto.
7849 * tracepoint.c (finish_tfind_command): Ditto.
7850 * thread.c (info_threads_command, info_threads_command)
7851 (restore_current_thread, do_captured_thread_select): Ditto.
7852 * ada-tasks.c (task_command): Ditto.
7853
f4c5303c
OF
78542004-04-26 Orjan Friberg <orjanf@axis.com>
7855
7856 * frame.c: Include "observer.h".
7857 (frame_observer_target_changed): New function.
7858 (_initialize_frame): Attach target_changed observer.
7859 * regcache.c: Include "observer.h".
7860 (regcache_observer_target_changed): New function.
7861 (_initialize_regcache): Attach target_changed observer.
7862 * valops.c: Include "observer.h".
7863 (value_assign): Notify target_changed event when modifying register.
7864 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7865
7270d8f2
OF
78662004-04-26 Orjan Friberg <orjanf@axis.com>
7867
7868 From Paul Koning <pkoning@equallogic.com>:
7869 * breakpoint.c (free_valchain): New function.
7870 (insert_bp_location, delete_breakpoint): Use free_valchain.
7871 (remove_breakpoint): Do not remove the valchain.
7872 (bpstat_stop_status): If not stopped by watchpoint, skip
7873 watchpoints when generating stop status list.
7874 * infrun.c (handle_inferior_event): Make
7875 stepped_after_stopped_by_watchpoint a global variable.
7876 * remote.c (remote_stopped_data_address): Return watch data
7877 address rather than zero if stepped_after_stopped_by_watchpoint is
7878 set.
7879
02d62932
MC
78802004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7881
7882 Fix PR gdb/1626.
7883 * configure.in: Check for curses after termcap.
7884 On osf5.*, do not check for ncurses.
7885 * configure: Regenerate.
7886
3e9a183c
MK
78872004-04-25 Mark Kettenis <kettenis@gnu.org>
7888
c79ac407
MK
7889 * ppcobsd-nat.c: Include "ppc-tdep.h".
7890 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7891
3e9a183c
MK
7892 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7893 Fixes PR tdep/1623 and PR tdep/1624.
7894
38cc9c28
MC
78952004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7896
7897 * xmodem.h, xmodem.c: Remove files.
7898 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7899
7f07c5b6
RC
79002004-04-23 Randolph Chung <tausq@debian.org>
7901
7902 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7903 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7904 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7905 for handling stackless frames.
7906 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7907
9f7194c3
RC
79082004-04-23 Randolph Chung <tausq@debian.org>
7909
7910 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7911 starts at a pc before the frame is created.
7912
dcff6009
JB
79132004-04-23 Joel Brobecker <brobecker@gnat.com>
7914
7915 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7916
40711ff1 79172004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7918
7919 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7920 use convert_typed_floating to get the appropriate format.
7921
abc485a1
RC
79222004-04-22 Randolph Chung <tausq@debian.org>
7923
7924 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7925 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7926 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7927 (hppa_sign_extend): Add prototype.
7928 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7929 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7930 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7931 hppa targets will also use these functions.
7932 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7933 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7934 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7935 (hppa_gdbarch_init): Remove gdbarch setting of
7936 skip_trampoline_code, in_solib_call_trampoline and
7937 in_solib_return_trampoline.
7938 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7939 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7940 hppa_in_solib_call_trampoline.
7941 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7942 Moved from hppa-tdep.c.
7943 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7944 in_solib_call_trampoline and in_solib_return_trampoline.
7945
369aa520
RC
79462004-04-22 Randolph Chung <tausq@debian.org>
7947
7948 * hppa-tdep.c (hppa_debug): New variable.
7949 (find_unwind_entry, hppa_frame_cache): Add debug output.
7950 (_initialize_hppa_tdep): Add command to set debug flag.
7951
476be15e
AC
79522004-04-22 Andrew Cagney <cagney@redhat.com>
7953
7954 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7955 "trad-frame.h".
7956 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7957 signal trampoline unwinder.
7958 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7959
d195bc9f
MK
79602004-04-22 Mark Kettenis <kettenis@gnu.org>
7961
7962 Add OpenBSD/powerpc support.
7963 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7964 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7965 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7966 (ppc_collect_fpregset): New prototypes.
7967 * ppcobsd-nat.c: New file.
7968 * ppcobsd-tdep.c: New file.
7969 * ppcobsd-tdep.h: New file.
7970 * rs6000-tdep.c: Include "regset.h".
7971 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7972 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7973 New functions.
7974 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7975 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7976 (rs6000-tdep.o): Update dependencies.
7977 * configure.host: Add powerpc-*-openbsd.
7978 * configure.tgt: Add powerpc-*-openbsd.
7979 * config/powerpc/obsd.mh: New file.
7980 * config/powerpc/nm-obsd.h: New file.
7981 * config/powerpc/obsd.mt: New file.
7982
6f14cc33
AC
79832004-04-22 Andrew Cagney <cagney@redhat.com>
7984
fcf29e5f
AC
7985 * frame.h (show_frame_info): Delete declaration.
7986
6f14cc33
AC
7987 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7988 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7989 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7990 * frv-tdep.c (frv_frame_this_id): Ditto.
7991 * avr-tdep.c (avr_frame_this_id): Ditto.
7992
e5786a5c
EZ
79932004-04-22 Elena Zannoni <ezannoni@redhat.com>
7994
7995 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7996
26e75e5c
JB
79972004-04-22 Jim Blandy <jimb@redhat.com>
7998
7999 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8000 register number zero.
8001
d8d65dd3
MS
80022004-04-21 Michael Snyder <msnyder@redhat.com>
8003
8004 * mips-tdep.c (heuristic_proc_start):
8005 Warning() already prefixes "Warning: ".
8006
9a4105ab
AC
80072004-04-21 Andrew Cagney <cagney@redhat.com>
8008
8009 * annotate.h (deprecated_annotate_starting_hook)
8010 (deprecated_annotate_stopped_hook)
8011 (deprecated_annotate_exited_hook)
8012 (deprecated_annotate_signal_hook)
8013 (deprecated_annotate_signalled_hook): Deprecate.
8014 * tracepoint.h (deprecated_create_tracepoint_hook)
8015 (deprecated_delete_tracepoint_hook)
8016 (deprecated_modify_tracepoint_hook)
8017 (deprecated_trace_find_hook)
8018 (deprecated_trace_start_stop_hook): Deprecate.
8019 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8020 * remote.h (deprecated_target_resume_hook)
8021 (deprecated_target_wait_loop_hook): Deprecate.
8022 * gdbcore.h (deprecated_exec_file_display_hook)
8023 (deprecated_file_changed_hook): Deprecate.
8024 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8025 * defs.h (deprecated_modify_breakpoint_hook)
8026 (deprecated_command_loop_hook, deprecated_show_load_progress)
8027 (deprecated_print_frame_info_listing_hook)
8028 (deprecated_query_hook, deprecated_warning_hook)
8029 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8030 (deprecated_delete_breakpoint_hook)
8031 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8032 (deprecated_readline_begin_hook, deprecated_readline_hook)
8033 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8034 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8035 (deprecated_context_hook, deprecated_target_wait_hook)
8036 (deprecated_attach_hook, deprecated_detach_hook)
8037 (deprecated_call_command_hook, deprecated_set_hook)
8038 (deprecated_error_hook, deprecated_error_begin_hook)
8039 (deprecated_ui_load_progress_hook): Deprecate.
8040 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8041 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8042 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8043 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8044 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8045 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8046 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8047 * annotate.c, aix-thread.c: Update.
8048
62cf13cc
AC
80492004-04-21 Andrew Cagney <cagney@redhat.com>
8050
b2e31a62
AC
8051 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8052 * vaxnbsd-tdep.c: Include "gdb_string.h".
8053
62cf13cc
AC
8054 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8055 (add_symbol_file_from_memory_command): #if 0 function body, call
8056 error instead.
8057
00e32a35
AC
80582004-04-21 Andrew Cagney <cagney@redhat.com>
8059
8060 * gdbcore.h: Update copyright.
8061 (deprecated_add_core_fns): Rename add_core_fns.
8062 * win32-nat.c (_initialize_core_win32): Update.
8063 * sun3-nat.c (_initialize_core_sun3): Update.
8064 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8065 * rs6000-nat.c (_initialize_core_rs6000): Update.
8066 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8067 * nto-tdep.c (_initialize_nto_tdep): Update.
8068 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8069 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8070 * mips-nat.c (_initialize_core_mips): Update.
8071 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8072 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8073 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8074 * lynx-nat.c (_initialize_core_lynx): Update.
8075 * irix5-nat.c (_initialize_core_irix5): Update.
8076 * i386-interix-nat.c (_initialize_core_interix): Update.
8077 * cris-tdep.c (_initialize_cris_tdep): Update.
8078 * corelow.c (deprecated_add_core_fns): Update.
8079 * core-regset.c (_initialize_core_regset): Update.
8080 * core-aout.c (_initialize_core_aout): Update.
8081 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8082 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8083 * alpha-nat.c (_initialize_core_alpha): Update.
8084
13c7b1ca
JB
80852004-04-21 Jim Blandy <jimb@redhat.com>
8086
8087 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8088
7b5a2f43
DJ
80892004-04-19 Daniel Jacobowitz <drow@mvista.com>
8090
8091 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8092 Delete.
8093 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8094 (read_attribute_value): Update calls to dwarf_alloc_block.
8095 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8096 dwarf2_tmp_obstack.
8097 (psymtab_to_symtab_1): Likewise. Clean up using
8098 free_stack_comp_unit.
8099 (add_to_cu_func_list): Use the comp_unit_obstack.
8100
05cf31d1
JB
81012004-04-19 Joel Brobecker <brobecker@gnat.com>
8102
8103 * dwarf2read.c (dwarf2_flag_true_p): New function.
8104 (die_is_declaration): Use the function above. Add some comments.
8105
adf93a2f
MK
81062004-04-19 Mark Kettenis <kettenis@gnu.org>
8107
8108 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8109 architecture when registering sparcnbsd_core_osabi_sniffer.
8110 Adjust comment.
8111
748894bf
MK
81122004-04-18 Mark Kettenis <kettenis@gnu.org>
8113
f622ad42
MK
8114 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8115 return value.
8116
c4fc7f1b
MK
8117 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8118 * i386-tdep.c: Correct register numbering scheme comments
8119 throughout.
8120 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8121 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8122 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8123 (i386_gdb_arch_init): Likewise.
8124
b4ead1bd
MK
8125 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8126 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8127 ppcnbsd-tdep.o.
8128
748894bf
MK
8129 * m68k-tdep.h: Tweak comments.
8130 * m68k-tdep.c: Tweak comment.
8131
fdd72f95
RC
81322004-04-17 Randolph Chung <tausq@debian.org>
8133
8134 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8135 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8136 (hppa_hpux_som_init_abi): Set is_elf to 0.
8137 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8138 * hppa-tdep.c (low_text_segment_address): Remove global.
8139 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8140 section offset to calculate segment address.
8141 (internalize_unwinds): Define low_text_segment_address as local and
8142 pass to record_text_segment_lowaddr for ELF targets.
8143 (hppa_gdbarch_init): Zero fill tdep structure.
8144 (hppa_dump_tdep): Print tdep structure.
8145 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8146
0f8d9d59
RC
81472004-04-17 Randolph Chung <tausq@debian.org>
8148
8149 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8150 (hppa_gdbarch_init): Set pseudo_register_read.
8151 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8152 * regcache.c (supply_register): Remove check for
8153 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8154
7c46b9fb
RC
81552004-04-17 Randolph Chung <tausq@debian.org>
8156
8157 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8158 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8159 (hpread_adjust_stack_address): Move to hpread.c.
8160 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8161 obj_private_struct): Move from tm-hppa.h.
8162 * hpread.c (hppa-tdep.h): Include.
8163 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8164 (hpread_read_function_type, hpread_read_doc_function_type)
8165 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8166 directly.
8167 * pa64solib.c (hppa-tdep.h): Include.
8168 * somsolib.c (hppa-tdep.h): Include.
8169 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8170 inferior_status): Remove unused forward declarations.
8171 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8172 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8173 obj_private_struct): Move to hppa-tdep.h.
8174 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8175
8d153463
RC
81762004-04-17 Randolph Chung <tausq@debian.org>
8177
8178 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8179 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8180 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8181 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8182 Remove forward declaration and make static.
8183 (hppa_reg_struct_has_addr): Remove.
8184
350c2e5b
JB
81852004-04-16 Joel Brobecker <brobecker@gnat.com>
8186
8187 * observer.sh: Move comments in sed command to first column.
8188
bbde78fa
JM
81892004-04-16 Jason Molenda (jmolenda@apple.com)
8190
8191 * frame.c: Minor typeo corrections in comments.
8192
e0270fd9
JB
81932004-04-16 Joel Brobecker <brobecker@gnat.com>
8194
8195 * observer.c (observer_test_first_notification_function): Update
8196 function profile.
8197 (observer_test_second_notification_function): Likewise.
8198 (observer_test_third_notification_function): Likewise.
8199
3d049254
MK
82002004-04-16 Mark Kettenis <kettenis@gnu.org>
8201
8202 From Brian Ford <ford@vss.fsi.com>:
8203 * i386-tdep.c (i386_coff_init_abi): New function.
8204 * i386-tdep.h (i386_coff_init_abi): New prototype.
8205 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8206 register number translation functions for DWARF and DWARF 2.
8207
7867684d
JB
82082004-04-16 Joel Brobecker <brobecker@gnat.com>
8209
8210 * dwarf2read.c: Back out my previous change, it was incorrect.
8211
72bf9492
DJ
82122004-04-16 Daniel Jacobowitz <drow@mvista.com>
8213
8214 * dwarf2read.c: Include "hashtab.h".
8215 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8216 has_namespace_info.
8217 (struct partial_die_info): Add comments. Use bitfields to reduce
8218 memory footprint. Add scope, scope_set, has_specification,
8219 spec_offset, die_parent, die_child, and die_sibling.
8220 (peek_die_abbrev): Add prototype.
8221 (partial_read_comp_unit_head): New function, broken out from
8222 dwarf2_build_psymtabs_hard.
8223 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8224 Use partial_read_comp_unit_head. Initialize the CU and
8225 comp_unit_obstack. Update calls to read_partial_die and
8226 scan_partial_symbols. Use free_stack_comp_unit and
8227 load_partial_dies.
8228 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8229 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8230 Update calls to helper functions. Remove NAMESPACE argument.
8231 Update comments.
8232 (partial_die_parent_scope, partial_die_full_name): New functions.
8233 (add_partial_symbol): Remove namespace argument. Update call to
8234 pdi_needs_namespace. Use partial_die_full_name. Handle
8235 DW_TAG_namespace. Check has_namespace_info flag.
8236 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8237 tag. Handle namespaces.
8238 (add_partial_namespace, add_partial_enumeration): Simplify.
8239 (guess_structure_name): New function, derived from
8240 add_partial_structure.
8241 (add_partial_structure): Remove.
8242 (determine_class_name): Update comment.
8243 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8244 (is_type_tag_for_partial, load_partial_dies): New functions.
8245 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8246 Record specifications instead of following them immediately.
8247 (find_partial_die_in_comp_unit, find_partial_die)
8248 (fixup_partial_die, free_stack_comp_unit)
8249 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8250 (partial_die_hash, partial_die_eq): New functions.
8251 * Makefile.in (hashtab_h): Define.
8252 (dwarf2read.o): Update dependencies.
8253 (observer_inc, observer_h): Move to the correct section.
8254
fdc860a3
JB
82552004-04-15 Joel Brobecker <brobecker@gnat.com>
8256
8257 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8258 (die_is_declaration): Use the function above. Add comment.
8259
dc718098
JB
82602004-04-15 Joel Brobecker <brobecker@gnat.com>
8261
8262 * dwarf2read.c (read_structure_scope): Identify stub types
8263 using die_is_declaration() only.
8264
8718a420
RM
82652004-04-15 Roland McGrath <roland@redhat.com>
8266
8267 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8268 argument instead of NAME.
8269 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8270 in call to symbol_file_add_with_addrs_or_offsets.
8271 (build_addr_info): New function, helper for ...
8272 (symbol_file_add_from_memory): New function.
8273 (add_symbol_file_from_memory_command): New function using that.
8274 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8275 (pre_add_symbol_hook): Add const to argument type.
8276 * symfile.h (symbol_file_add_from_memory): Declare it.
8277
8b910bab
MK
82782004-04-15 Mark Kettenis <kettenis@gnu.org>
8279
9f076e7a
MK
8280 * NEWS (New native configurations): Mention OpenBSD/vax.
8281 * configure.host: Add vax-*-openbsd*.
8282 * config/vax/obsd.mh: New file.
8283 * config/vax/nm-obsd.h: New file.
8284
8b910bab
MK
8285 * vax-tdep.c: Include "regset.h".
8286 (vax_supply_gregset): New function.
8287 (vax_gregset): New variable.
8288 (vax_regset_from_core_section): New function.
8289 (vax_gdbarch_init): Set regset_from_core_section.
8290 * Makefile.in (vax-tdep.o): Update dependencies.
8291
7a464420
AC
82922004-04-15 Andrew Cagney <cagney@redhat.com>
8293
8294 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8295 (observer_normal_stop_notification_stub)
8296 (observer_attach_normal_stop, observer_detach_normal_stop):
8297 Delete, replaced by #include "observer.inc".
8298 * infrun.c (normal_stop): Pass "stop_bpstat" to
8299 observer_notify_normal_stop.
8300 * Makefile.in (observer_inc): Define.
8301 (observer.o): Update dependencies.
8302 (observer.h, observer.inc): New rules.
8303 * observer.h: Delete file.
8304 * observer.sh: New file.
8305
e36ad527
MK
83062004-04-15 Mark Kettenis <kettenis@gnu.org>
8307
8308 * vax-tdep.c (vax_frame_cache): Fix typo.
8309
67b441e1
MK
83102004-04-14 Mark Kettenis <kettenis@gnu.org>
8311
6f606e1c
MK
8312 * NEWS (New native configurations): Mention NetBSD/vax.
8313 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8314 * config/vax/nbsdelf.mh: New file.
8315 * config/vax/nbsdaout.mh: New file.
8316 * config/vax/nm-nbsd.h: New file.
8317 * config/vax/nm-nbsdaout.h: New file.
8318
9c5519a5
MK
8319 * vaxnbsd-tdep.c: New file.
8320 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8321 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8322 * config/vax/nbsd.mt: New file.
8323 * config/vax/tm-nbsd.h: New file.
8324
4844a614
MK
8325 * Makefile.in (vaxbsd-nat.o): New dependency.
8326
67b441e1
MK
8327 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8328 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8329 struct_addr arguments. Don't push return value address.
8330 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8331 arguments to vax_store_arguments. Store return value address in
8332 R1.
8333 (vax_store_struct_return, vax_extract_return_value)
8334 (vax_store_return_value): Remove functions.
8335 (vax_return_value): New function.
8336 (vax_gdbarch_init): Set return value. Don't set
8337 deprecated_store_struct_return, deprecated_extract_struct_return
8338 and deprecated_store_return_value.
8339
6672f2ae
AS
83402004-04-14 Andreas Schwab <schwab@suse.de>
8341
8342 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8343 value buffer.
8344 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8345
7346c184
MK
83462004-04-14 Mark Kettenis <kettenis@gnu.org>
8347
8348 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8349 (vax_unwind_dummy_id): New functions.
8350 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8351 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8352 variables.
8353 (vax_fix_call_dummy): Remove function.
8354 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8355 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8356 call_dummy_location, deprecated_call_dummy_words,
8357 deprecated_sizeof_call_dummy_words,
8358 deprecated_call_dummy_breakpoint_offset,
8359 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8360 and deprecated_dummy_write_sp.
8361
58e23df4
DC
83622004-04-13 David Carlton <carlton@kealia.com>
8363
8364 * MAINTAINERS: Move myself to "paper trail" section.
8365
5e6b39ff
MK
83662004-04-12 Mark Kettenis <kettenis@gnu.org>
8367
7def7fef
MK
8368 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8369 "trad-frame.h".
8370 (vax_frame_init_saved_regs): Remove function.
8371 (vax_sigtramp_saved_pc): Remove function.
8372 (vax_frame_saved_pc): Remove function.
8373 (vax_frame_args_address): Remove function.
8374 (vax_frame_num_args): Rewrite.
8375 (vax_frame_chain): Remove function.
8376 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8377 VAX_FP_REGNUM.
8378 (vax_pop_frame): Likewise.
8379 (vax_saved_pc_after_call): Remove function.
8380 (struct vax_frame_cache): New structure.
8381 (vax_frame_cache): New function.
8382 (vax_frame_this_id): New function.
8383 (vax_frame_prev_register): New function.
8384 (vax_frame_unwind): New variable.
8385 (vax_frame_sniffer): New function.
8386 (vax_frame_base_address): New function.
8387 (vax_frame_args_address): New function.
8388 (vax_frame_base): New variable.
8389 (vax_unwind_pc): New function.
8390 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8391 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8392 deprecated_frame_chain, deprecated_frame_saved_pc,
8393 deprecated_frame_args_address and
8394 deprecated_frame_init_saved_regs.
8395 * Makefile.in (vax-tdep.o): Update dependencies.
8396
53284fc1
MK
8397 * vaxbsd-nat.c: New file.
8398
5e6b39ff
MK
8399 * vax-tdep.h: Update copyright year. Adjust comments.
8400 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8401 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8402 (vax_regnum): New enum. Replacing...
8403 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8404 (VAX_PS_REGNUM): ... these removed macros.
8405 * vax-tdep.c (vax_register_name): Remove prototype.
8406 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8407 (vax_register_byte, vax_register_raw_size,
8408 vax_register_virtual_size, vax_register_virtual_type): Remove
8409 functions.
8410 (vax_register_type): New function.
8411 (vax_breakpoint_from_pc): Reorganize.
8412 (vax_gdbarch_init): Set register_type. Don't set
8413 deprecated_register_size, deprecated_register_bytes,
8414 deprecated_register_byte, deprecated_register_raw_size,
8415 deprecated_max_register_raw_size,
8416 deprecated_register_virtual_size,
8417 deprecated_max_register_virtual_size and
8418 deprecated_register_virtual_type. Add comment on stack direction.
8419
e9c71e9f
MK
84202004-04-11 Mark Kettenis <kettenis@gnu.org>
8421
8422 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8423 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8424 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8425
d46f1176 84262004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8427
d46f1176
RC
8428 * MAINTAINERS (write after approval): Add myself.
8429
a2a84a72
RC
84302004-04-07 Randolph Chung <tausq@debian.org>
8431
8432 * hppa-tdep.c (hppa_inner_than): Remove.
8433 (is_pa_2): Remove unused static variable.
8718a420 8434 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8435
e85c3284
PH
84362004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8437
8438 * language.h (language_defn): Add new la_post_parser field.
8439 * parser-defs.h (null_post_parser): New declaration (default for
8440 la_post_parser).
8718a420 8441
e85c3284
PH
8442 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8443 insert call to that function.
8444 (parse_exp_in_context): New function, including code formerly in
8718a420 8445 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8446 prefixification.
8447 (parse_expression_in_context): New exported function.
8448 (null_post_parser): New definition.
8449 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8450
e85c3284
PH
8451 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8452 * c-lang.c (c_language_defn): Ditto.
8453 (cplus_language_defn): Ditto.
8454 (asm_language_defn): Ditto.
8455 (minimal_language_defn): Ditto.
8456 * f-lang.c (f_language_defn): Ditto.
8457 * jv-lang.c (java_language_defn): Ditto.
8458 * language.c (unknown_language_defn): Ditto.
8459 (auto_language_defn): Ditto.
8460 (local_language_defn): Ditto.
8461 * m2-lang.c (m2_language_defn): Ditto.
8462 * scm-lang.c (scm_language_defn): Ditto.
8463 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8464
d9f8c85b
MK
84652004-04-10 Mark Kettenis <kettenis@gnu.org>
8466
fa34704a
MK
8467 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8468 (amd64nbsd_mcontext_addr): New function.
8469 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8470 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8471 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8472
403e1656
MK
8473 * corelow.c (core_xfer_partial): Fix coding standards violation.
8474 Add support for TARGET_OBJECT_WCOOKIE.
8475
a57e5a95
MK
8476 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8477 deprecated_pc_in_sigtramp.
8478 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8479 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8480 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8481 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8482 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8483 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8484 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8485
377d9ebd
MK
8486 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8487 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8488 Fix typo.
8489
f0ef85a5
MK
8490 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8491 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8492 (amd64_collect_fxsave): Likewise.
8493
d9f8c85b
MK
8494 * i386-sol2-tdep.c: Include "gdb_string.h".
8495 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8496 name.
8497 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8498
75f501b5
MK
84992004-04-10 Mark Kettenis <kettenis@gnu.org>
8500
8501 * i386-sol2-tdep.c: Include "solib-svr4.h".
8502 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8503 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8504 * config/i386/tm-i386sol2.h: Include :solib.h".
8505 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8506 solib-svr4.o and solib-legacy.o.
8507 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8508 solib-svr4.o.
8509
b31bc724
MK
85102004-04-09 Mark Kettenis <kettenis@gnu.org>
8511
18bbbd9e
MK
8512 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8513 whether a register is supplied by PTRACE_GETFPREGS.
8514 (store_inferior_registers): Likewise.
8515 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8516 whether a register is supplied by PT_GETFPREGS.
8517 (store_inferior_registers): Likewise.
8518
3c30bf1b
MK
8519 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8520 * config/i386/linux64.mt (TDEPFILES): Likewise.
8521
a4194092
MK
8522 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8523
911bc6ee
MK
8524 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8525 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8526 the program counter is in the range specified by `struct
8527 gdbarch_tdep'.
8528 * amd64-linux-tdep.c: Include "symtab.h".
8529 (amd64_linux_pc_in_sigtramp): Remove function.
8530 (amd64_linux_sigtramp_p): New function.
8531 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8532 deprecated_pc_in_sigtramp.
8533 * amd64nbsd-tdep.c: Include "symtab.h".
8534 (amd64nbsd_sigtramp_p): New function.
8535 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8536 deprecated_pc_in_sigtramp.
8537 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8538 few comments.
8539 (amd64obsd_pc_in_sigtramp): Remove function.
8540 (amd64obsd_sigtramp_p): New function.
8541 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8542 deprecated_pc_in_sigtramp.
8543 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8544 (i386bsd_pc_ins_sigtramp): Remove prototype.
8545 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8546 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8547 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8548 the program counter is in the range specified by `struct
8549 gdbarch_tdep'.
8550 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8551 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8552 (i386_go32_pc_in_sigtramp): Remove function.
8553 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8554 Initialize TDEP->sigtramp_p.
8555 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8556 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8557 deprecated_pc_in_sigtramp.
8558 * i386-linux-tdep.c: Adjust comments.
8559 (i386_linux_pc_in_sigtramp): Remove function.
8560 (i386_linux_sigtramp_p): New function.
8561 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8562 deprecated_pc_in_sigtramp.
8563 * i386-nto-tdep.c: Update copyright year.
8564 (i386nto_pc_in_sigtramp): Remove function.
8565 (i386nto_sigtramp_p): New function.
8566 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8567 SP_REGNUM.
8568 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8569 deprecated_pc_in_sigtramp.
8570 * i386-sol2-tdep.c: Update copyright year.
8571 (i386_sol2_pc_in_sigtramp): Remove function.
8572 (i386_sol2_sigtramp_p): New function.
8573 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8574 deprecated_pc_in_sigtramp.
8575 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8576 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8577 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8578 deprecated_sigtramp_start and deprecated_sigtramp_end.
8579 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8580 (i386nbsd_pc_in_sigtramp): Remove function.
8581 (i386nbsd_sigtramp_p): New function.
8582 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8583 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8584 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8585 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8586 (i386obsd_pc_in_sigtramp): Remove function.
8587 (i386obsd_sigtramp_p): New function.
8588 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8589 functions.
8590 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8591 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8592 TDEP->sigtramp_p.
8593 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8594 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8595 dependencies.
8596
e083e6ec
MK
8597 * config/i386/i386aout.mt: Remove file.
8598
bd153b94
MK
8599 * configure.tgt: Remove i[34567]86-*-go32*,
8600 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8601 and i[34567]86-*-isc*. Set gdb_target to i386 for
8602 i[34567]86-*-netware* and i[34567]86-*-*.
8603 * config/i386/i386.mt: New file.
8604 * config/i386/embed.mt: Remove file.
8605 * config/i386/go32.mt: Remove file.
8606 * config/i386/i386nw.mt: Remove file.
8607 * config/i386/i386v.mt: Remove file.
8608 * config/i386/tm-go32.h: Remove file.
8609
4a1bcc8c
MK
8610 * tui/tui-hooks.c: Include "readline/readline.h" after
8611 "gdb_curses.h" instead of before.
8612 * tui/tui-io.c: Likewise.
8613
f9a79064
MK
8614 * tui/tui.c: Fix typo in comment.
8615
b31bc724
MK
8616 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8617
f83f82bc
AC
86182004-04-08 Andrew Cagney <cagney@redhat.com>
8619
8620 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8621 (deprecated_exception_support_initialized): Declare.
8718a420 8622 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8623 (initialize_hp_cxx_exception_support)
8624 (child_enable_exception_callback): Update.
8625 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8626 (deprecated_exception_support_initialized): Rename
8627 deprecated_exception_catchpoints_are_fragile and
8628 deprecated_exception_support_initialized.
8629 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8630
8631 * symtab.c (deprecated_hp_som_som_object_present): Rename
8632 hp_som_som_object_present.
8633 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8634 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8635 Update. Delete extern declaration.
8636 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8637 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8638 (parse_nested_classes_for_hpacc): Ditto.
8639 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8640 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8641 (initialize_hp_cxx_exception_support): Ditto.
8642 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8643 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8644 (cp_print_class_method): Ditto.
8718a420 8645 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8646 (c_type_print_base): Ditto.
8647 * c-exp.y (hp_som_som_object_present): Ditto.
8648
fb2be677
AC
86492004-04-08 Andrew Cagney <cagney@redhat.com>
8650
8651 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8652 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8653 (frame_unwind_find_by_frame): Re-implement the unwind code so
8654 that it can both prepend and append sniffers. Replace
8655 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8656 * tramp-frame.c (tramp_frame_append): Use
8657 frame_unwind_prepend_unwinder.
8658 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8659 frame_unwind_register_unwinder.
8660 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8661 tramp_frame_append.
8662 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8663 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8664 (mips_linux_init_abi): Update.
8665
67faf007
KB
86662004-04-08 Kevin Buettner <kevinb@redhat.com>
8667
8668 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8669 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8670 file support.
8671
8973ff21
KB
86722004-04-07 Kevin Buettner <kevinb@redhat.com>
8673
8674 * ia64-tdep.c (elf.h): Don't include.
8675 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8676
4a0e2f88
JM
86772004-04-07 Jason Molenda (jmolenda@apple.com)
8678
8679 * frame.h: Typeo corrections in comments.
8680
9872ad24
JB
86812004-04-07 Jim Blandy <jimb@redhat.com>
8682
8683 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8684 %esp and %ebp
8685
70b216c8
MK
86862004-04-07 Mark Kettenis <kettenis@gnu.org>
8687
11d5789c
MK
8688 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8689 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8690 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8691 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8692 and solib-legacy.o.
8693 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8694 solib-svr4.o.
8695 * config/sparc/tm-sol2.h: Update copyright year. Include
8696 "solib.h".
8697
70b216c8
MK
8698 * sparc-sol2-tdep.c: Update copyright year. Include
8699 "solib-svr4.h".
8700 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8701 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8702 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8703 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8704 dependencies.
8705
6339dc9e
AC
87062004-04-06 Andrew Cagney <cagney@redhat.com>
8707
8708 * infttrace.c: Include "infttrace.h".
8709 * infttrace.h: Include "target.h".
8710 * Makefile.in (infttrace_h): Update.
8711 (infttrace.o): Update.
8718a420 8712
93449403
AC
87132004-04-06 Andrew Cagney <cagney@redhat.com>
8714
6d518969
AC
8715 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8716 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8717 move extern declarations from here ...
8718 * infttrace.h: ... to here.
8719 * Makefile.in (hppah-nat.o): Update dependencies.
8720
85f4f2d8
AC
8721 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8722 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8723 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8724 (hppa_breakpoint_from_pc): Delete.
8725
93449403
AC
8726 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8727
71456ec6
AC
87282004-04-05 Andrew Cagney <cagney@redhat.com>
8729
8730 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8731 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8732 <sys/file.h>.
8718a420 8733
4c02c60c
AC
87342004-04-06 Randolph Chung <tausq@debian.org>
8735
8736 Committed by Andrew Cagney (mechanical change).
8737 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8738 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8739 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8740 child_enable_exception_callback, current_ex_event,
8741 null_symtab_and_line, child_get_current_exception_event,
8742 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8743 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8744 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8745 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8746 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8747 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8748 Move hpux-specific definitions ...
8749 * hppa-hpux-tdep.c: ... to here.
8750
3a515653
AC
87512004-04-05 Andrew Cagney <cagney@redhat.com>
8752
8753 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8754 skip_prologue_using_sal.
8755
c1730d02
AC
87562004-04-05 Andrew Cagney <cagney@redhat.com>
8757
8758 * config/i386/tm-i386.h: Delete file.
8759 * config/i386/tm-vxworks.h: Update copyright, do not include
8760 "tm-i386.h".
8761 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8762 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8763 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8764 * config/i386/ncr3000.mt (TM_FILE): Delete.
8765 * config/i386/interix.mt (TM_FILE): Delete.
8766 * config/i386/i386v.mt (TM_FILE): Delete.
8767 * config/i386/i386nw.mt (TM_FILE): Delete.
8768 * config/i386/i386gnu.mt (TM_FILE): Delete.
8769 * config/i386/i386aout.mt (TM_FILE): Delete.
8770 * config/i386/embed.mt (TM_FILE): Delete.
8771
8b67aa36
KB
87722004-04-05 Kevin Buettner <kevinb@redhat.com>
8773
8774 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8775 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8776 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8777 (accg7_regnum): New constants.
8778 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8779 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8780 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8781 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8782 for accg registers.
8783 (frv_register_sim_regno): Update spr_map[].
8784
3c7012f5
AC
87852004-04-04 Andrew Cagney <cagney@redhat.com>
8786
8787 * config/mips/xm-riscos.h: Delete.
8788 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8789 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8790 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8791 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8792 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8793 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8794 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8795 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8796 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8797 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8798 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8799 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8800 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8801 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8802 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8803 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8804 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8805 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8806 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8807 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8808 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8809 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8810 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8811 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8812 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8813 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8814
3c7012f5
AC
8815 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8816 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8817 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8818 * configure.host: Remove m680[01]0-sun-sunos3*,
8819 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8820 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8821 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8822 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8823 mips-*-riscos*.
8824 * NEWS: Mention removed systems.
8825
99d16a21
AC
88262004-04-04 Andrew Cagney <cagney@redhat.com>
8827
8828 GDB 6.1 release created from 6.1 branch.
8829
6cdf9d98
AC
88302004-04-04 Andrew Cagney <cagney@redhat.com>
8831
98d346c3
AC
8832 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8833 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8834 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8835
6cdf9d98
AC
8836 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8837 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8838 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8839
859a326d
JB
88402004-04-03 Jim Blandy <jimb@redhat.com>
8841
8842 * MAINTAINERS: Chris Faylor has changed employers; add him to
8843 "paper trail" section, and update his E-mail address.
8844
b87178c3
AC
88452004-04-03 Andrew Cagney <cagney@redhat.com>
8846
4ea2acf0
AC
8847 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8848 generic dummy frames.
8849 * dummy-frame.c: Update copyright.
8850 (dummy_frame_sniffer): Delete check for generic dummy frames.
8851
d0bd2d18 8852 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8853 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8854 (REG_PARM_STACK_SPACE): Delete.
8855 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8856 Inline reference to REG_PARM_STACK_SPACE.
8857
b87178c3
AC
8858 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8859 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8860 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8861 (FRAME_BASE_BEFORE_SIGTRAMP)
8862 (hppa32_hpux_frame_base_before_sigtramp)
8863 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8864 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8865 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8866 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8867 (FRAME_BASE_BEFORE_SIGTRAMP)
8868 (hppa64_hpux_frame_base_before_sigtramp)
8869 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8870
43e2e1a0
AC
88712004-04-03 Andrew Cagney <cagney@redhat.com>
8872
8873 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8874
ddc135a4
AC
88752004-04-02 Andrew Cagney <cagney@redhat.com>
8876
8877 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8878 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8879 * dummy-frame.h: Delete out-of-date comments.
8880 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8881 * gdbarch.h, gdbarch.c: Re-generate.
8882
d15bfd3a 88832004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8884
d15bfd3a
AC
8885 Committed by Andrew Cagney <cagney@redhat.com>.
8886 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8887 into account an instruction saving a register if we have already
8888 seen an earlier instruction saving that same register.
8889
f04ceafa
AC
88902004-04-02 Andrew Cagney <cagney@redhat.com>
8891
08be3abd
AC
8892 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8893 * gdbarch.h, gdbarch.c: Re-generate.
8894 * frame.c (legacy_get_prev_frame): Delete references to
8895 DEPRECATED_INIT_FRAME_PC_FIRST.
8896
f04ceafa
AC
8897 * infrun.c (pc_in_sigtramp): Delete function.
8898 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8899 get_frame_type.
8900
08e69816
AC
89012004-04-02 Andrew Cagney <cagney@redhat.com>
8902
8903 * infrun.c (handle_step_into_function): Delete code conditional on
8904 legacy_frame_p.
8905 (handle_inferior_event, step_over_function): Ditto.
8906
adb54772
AC
89072004-04-02 Andrew Cagney <cagney@redhat.com>
8908
8909 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8910 "previous frame inner to this frame" test.
8911
304396fb
AC
89122004-04-02 Andrew Cagney <cagney@redhat.com>
8913
8914 * frame.c (safe_frame_unwind_memory): New function.
8915 * frame.h (safe_frame_unwind_memory): Declare. Update description
8916 of /safe_/ methods.
8917 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8918 "next_frame". Use safe_frame_unwind_memory.
8919 (tramp_frame_sniffer): Update call to tramp_frame_start.
8920
6502dd73
DJ
89212004-04-01 Daniel Jacobowitz <drow@mvista.com>
8922
8923 * dwarf2read.c (dwarf2_objfile_data_key): New.
8924 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8925 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8926 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8927 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8928 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8929 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8930 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8931 Remove variables.
8932 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8933 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8934 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8935 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8936 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8937 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8938 Remove macros.
8939 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8940 data.
8941 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8942 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8943 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8944 (read_partial_die, read_full_die, read_indirect_string)
8945 (dwarf_decode_line_header, dwarf_decode_macros)
8946 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8947 Update uses of removed variables.
8948 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8949 of removed macros.
8950 (_initialize_dwarf2_read): New function.
8951 * symfile.h (dwarf2_has_info): Update prototype.
8952 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8953 * elfread.c (elf_symfile_read): Likewise.
8954
408752b0
JB
89552004-04-01 Jim Blandy <jimb@redhat.com>
8956
9f744501
JB
8957 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8958 function for register numbers on all the rs6000-derived targets.
8959 (rs6000_gdbarch_init): Don't register a separate
8960 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8961 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8962 variants.
8963
408752b0
JB
8964 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8965 numbering.
8966
2de41bce
PH
89672004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8968
8969 * valarith.c: Update copyright notice.
8970 (value_add): Handle range types.
8971 (value_sub): Ditto.
8972 (value_equal): Ditto.
8973 (value_less): Ditto.
8974 (value_neg): Ditto.
8975 (value_complement): Ditto.
8718a420 8976 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8977 eliminiating unnecessary COERCE_ENUMs.
8718a420 8978
5613d8d3
AC
89792004-03-31 Andrew Cagney <cagney@redhat.com>
8980
8981 * frame.h (frame_unwind_id): Declare.
8982 * frame.c (frame_unwind_id): New function.
8983 (get_prev_frame_1): New function.
8984 (frame_debug_got_null_frame): New function.
8985 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8986 code proper to prev_frame, update description.
8987 * infrun.c (step_over_function): Use frame_unwind_id.
8988
c4557624
JB
89892004-04-31 J. Brobecker <brobecker@gnat.com>
8990
8991 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8992 (hppa64_push_dummy_call): Likewise.
8993
3e6bb910
JB
89942004-03-30 Jim Blandy <jimb@redhat.com>
8995
8996 From Ulrich Weigand:
8997 * utils.c (query): Do not use a va_list variable multiple times.
8998
a2f23071
DJ
89992004-03-29 Daniel Jacobowitz <drow@mvista.com>
9000
9001 * Makefile.in (linux_nat_h): Update dependencies.
9002 * configure.in: Check for <gnu/libc-version.h>.
9003 * configure: Regenerate.
9004 * config.in: Regenerate.
9005 * linux-nat.h: Include "target.h". Add waitstatus field to
9006 struct lwp_info.
9007 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9008 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9009 to.
9010 (lin_lwp_handle_extended): New function. Handle clone events.
9011 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9012 thread exit events.
9013 (child_wait): Handle clone events.
9014 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9015 * linux-nat.c (linux_enable_event_reporting): Turn on
9016 PTRACE_O_TRACECLONE.
9017 (linux_handle_extended_wait): Handle clone events.
9018 * thread-db.c: Include <gnu/libc-version.h>.
9019 (struct private_thread_info): Add dying flag.
9020 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9021 higher.
9022 (attach_thread): Update comments. Handle dying threads.
9023 (detach_thread): Set the dying flag.
9024 (check_event): Always call attach_thread.
9025
8d5f9dcb
DJ
90262004-03-29 Daniel Jacobowitz <drow@mvista.com>
9027
9028 * mips-tdep.c (mips_pdr_data): New.
9029 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9030 (_initialize_mips_tdep): Initialize mips_pdr_data.
9031
66337bb1
CV
90322004-03-29 Corinna Vinschen <vinschen@redhat.com>
9033
9034 * minsyms.c (install_minimal_symbols): Move dropping leading
9035 char from linkage name from here...
9036 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9037 test for "__gnu_compiled*" symbols.
9038
e802b915
JB
90392004-03-28 Jim Blandy <jimb@redhat.com>
9040
9041 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9042 registers to temp register r0 and byte stores as prologue
9043 instructions.
9044
72b56458
AC
90452004-03-28 Andrew Cagney <cagney@redhat.com>
9046
9047 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9048 arm*-*-*.
9049
0bfbda3b
SC
90502004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9051
9052 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9053 and switch the layout to force a display of register window.
9054
5a7225ed
JB
90552004-02-26 J. Brobecker <brobecker@gnat.com>
9056
9057 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9058 of the INTEGER class.
9059
81a07a45
JB
90602004-03-26 Jim Blandy <jimb@redhat.com>
9061
9062 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9063 bytes long on PPC GNU/Linux.
9064
8c691c7a
DC
90652004-03-26 David Carlton <carlton@kealia.com>
9066
9067 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9068
103a0089
AC
90692004-03-25 Andrew Cagney <cagney@redhat.com>
9070
9071 * PROBLEMS: Add general section titles, remove references to
9072 specific releases.
9073
7a5ea0d4
DJ
90742004-03-25 Daniel Jacobowitz <drow@mvista.com>
9075
9076 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9077 INT_REGISTER_SIZE.
9078 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9079 FP_REGISTER_VIRTUAL_SIZE.
9080 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9081 of DEPRECATED_REGISTER_RAW_SIZE.
9082 (arm_register_type): Add gdbarch argument.
9083 (arm_register_raw_size, arm_register_virtual_size): Delete.
9084 (arm_register_byte, arm_extract_return_value)
9085 (arm_store_return_value, arm_get_longjmp_target): Update references
9086 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9087 (arm_gdbarch_init): Likewise. Don't set
9088 deprecated_register_raw_size, deprecated_register_virtual_size,
9089 deprecated_max_register_raw_size,
9090 deprecated_max_register_virtual_size, or
9091 deprecated_max_register_virtual_type. Do set register_type.
9092 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9093 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9094 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9095 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9096 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9097 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9098 INT_REGISTER_SIZE.
9099 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9100 (remote_rdp_store_register): Likewise.
9101
5792a79b
DJ
91022004-03-24 Daniel Jacobowitz <drow@mvista.com>
9103
9104 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9105 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9106 to after osabi initialization.
9107 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9108 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9109 functions.
9110 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9111 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9112 variables.
9113 (mips_linux_init_abi): Append signal trampoline unwinders.
9114
1196bfda
AC
91152004-03-24 Andrew Cagney <cagney@redhat.com>
9116
9117 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9118 * tramp-frame.c: Include "gdb_assert.h".
9119 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9120 correct sizeof.
9121 (tramp_frame_append): Validate the tramp frame's instructions.
9122 * Makefile.in (tramp-frame.o): Update dependencies.
9123
4be282b4
AC
91242004-03-23 Andrew Cagney <cagney@redhat.com>
9125
9126 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9127
69aec09b
AC
91282004-03-23 Andrew Cagney <cagney@redhat.com>
9129
9130 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9131 Nasser as past testsuite/lib/ (and other) maintainers.
9132
63ed89b4
DJ
91332004-03-23 Daniel Jacobowitz <drow@mvista.com>
9134
9135 * infcmd.c (attach_command): Reread symbols if we already have
9136 an exec file.
9137
f3b36427
AC
91382004-03-23 Andrew Cagney <cagney@redhat.com>
9139
9140 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9141
aa2a3f87
AC
91422004-03-23 Andrew Cagney <cagney@redhat.com>
9143
9144 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9145 * gdbarch.h, gdbarch.c: Re-generate.
9146 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9147 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9148 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9149 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9150 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9151 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9152 (DEPRECATED_SIGTRAMP_START): Update.
9153 * blockframe.c (find_pc_sect_partial_function): Update.
9154 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9155
00cac895
DJ
91562004-03-23 Daniel Jacobowitz <drow@mvista.com>
9157
9158 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9159 if necessary.
9160
f561f026
AC
91612004-03-23 Andrew Cagney <cagney@redhat.com>
9162
9163 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9164 predicate, deprecate.
9165 * gdbarch.h, gdbarch.c: Re-generate.
9166 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9167 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9168 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9169 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9170 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9171 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9172 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9173 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9174 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9175 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9176 * blockframe.c (find_pc_partial_function): Update.
9177 * breakpoint.c (bpstat_what): Update.
9178 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9179 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9180 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9181 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9182 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9183 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9184 * i386-nto-tdep.c (i386nto_init_abi): Update.
9185 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9186 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9187 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9188 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9189 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9190 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9191 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9192 * infrun.c (pc_in_sigtramp): Update.
9193 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9194 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9195 * mips-tdep.c (mips_gdbarch_init): Update.
9196 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9197 * ppc-linux-tdep.c: Update comment.
9198 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9199 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9200 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9201 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9202 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9203 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9204 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9205 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9206 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9207 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9208
8050c72f
AC
92092004-03-23 Andrew Cagney <cagney@redhat.com>
9210
d2259dd3
AC
9211 * tramp-frame.h, tramp-frame.h: New files.
9212 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9213 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9214
8050c72f
AC
9215 * Makefile.in: Update all dependencies.
9216
0db9b4b7
AC
92172004-03-23 Andrew Cagney <cagney@redhat.com>
9218
9219 * Makefile.in (trad_frame_h): Add $(frame_h).
9220 * trad-frame.h: Update copyright. Include "frame.h".
9221 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9222 (trad_frame_set_id, trad_frame_get_id): Declare.
9223 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9224 * trad-frame.c: Update copyright.
9225 (struct trad_frame_cache): Define.
9226 (trad_frame_cache_zalloc): New function.
9227 (trad_frame_set_id, trad_frame_get_id): New functions.
9228 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9229
8e645ae7
AC
92302004-03-22 Andrew Cagney <cagney@redhat.com>
9231
9232 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9233 s390_pltstub_unwind_cache.
9234 (s390_stub_frame_unwind_cache): Rename
9235 s390_pltstub_frame_unwind_cache.
9236 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9237 (s390_stub_frame_prev_register): Rename
9238 s390_pltstub_frame_prev_register.
9239 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9240 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9241
9242 From Ulrich Weigand:
9243 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9244 pointer calls like PLT calls.
9245
34fcf120
DJ
92462004-03-22 Daniel Jacobowitz <drow@mvista.com>
9247
9248 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9249 PC rather than the partial function start address. Use the start
9250 address to sanity check the found PDR.
9251
5b917078
DJ
92522004-03-22 Daniel Jacobowitz <drow@mvista.com>
9253
9254 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9255 linux_handle_extended_wait.
9256
8adf9e78
AC
92572004-03-22 Andrew Cagney <cagney@redhat.com>
9258
c3122434
AC
9259 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9260 function.
9261
8adf9e78
AC
9262 * frame.h (generic_pop_current_frame): Delete declaration.
9263 (deprecate_pop_dummy_frame): Deprecate
9264 generic_pop_dummy_frame.
9265 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9266 (generic_pop_current_frame): Delete function.
9267 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9268 generic_pop_current_frame.
9269 * v850-tdep.c (v850_pop_frame): Update.
9270 * mcore-tdep.c (mcore_pop_frame): Update.
9271 * sh64-tdep.c (sh64_pop_frame): Update.
9272 * h8300-tdep.c (h8300_pop_frame): Update.
9273
90ba813f
AC
92742004-03-22 Andrew Cagney <cagney@redhat.com>
9275
9276 * frame.h (deprecated_pc_in_call_dummy): Rename
9277 generic_pc_in_call_dummy.
9278 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9279 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9280 generic_pc_in_call_dummy.
9281 (pc_in_dummy_frame): Make static.
9282 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9283 * gdbarch.h, gdbarch.c: Re-generate.
9284 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9285 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9286 (legacy_get_prev_frame): Ditto.
9287 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9288 comment.
8718a420 9289
ca4bb888
AC
92902004-03-21 Andrew Cagney <cagney@redhat.com>
9291
244675f9
AC
9292 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9293 declaration and out-of-date comment.
9294 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9295 Delete function.
9296 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9297 deprecated_pc_in_call_dummy.
9298
ca4bb888
AC
9299 * infrun.c (handle_inferior_event): For non legacy frames, use the
9300 frame ID and frame type to identify a signal trampoline. Update
9301 comments.
9302
1777c7b4
NW
93032004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9304
9305 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9306 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9307
82417da5
AC
93082004-03-21 Andrew Cagney <cagney@redhat.com>
9309
9310 * frame-unwind.h: Update copyright.
9311 (struct frame_data): Add opaque declaration.
9312 (frame_sniffer_ftype): Declare.
9313 (struct frame_unwind): Add "unwind_data" and "sniffer".
9314 (frame_unwind_register_unwinder): Declare.
9315 (frame_unwind_find_by_frame): Add parameter "this_cache".
9316 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9317 (legacy_get_prev_frame, legacy_get_prev_frame)
9318 (get_frame_type): Pass the prologue_cache to
9319 frame_unwind_find_by_frame.
9320 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9321 "unwinder".
9322 (frame_unwind_register_unwinder): New function.
9323 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9324
b2ba182e
PH
93252004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9326
9327 * bcache.c (print_percentage): Use floating point to avoid
9328 incorrect results when portion*100 overflows.
9329
81332287
KB
93302004-03-19 Kevin Buettner <kevinb@redhat.com>
9331
9332 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9333 (ppc_linux_init_extra_frame_info)
9334 (ppc_linux_frameless_function_invocation)
9335 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9336 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9337 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9338 (rs6000_frame_chain): Delete declarations.
9339 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9340 (ppc_linux_init_extra_frame_info)
9341 (ppc_linux_frameless_function_invocation)
9342 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9343 (ppc_linux_init_abi): Remove registration of above deleted functions.
9344 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9345 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9346 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9347 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9348 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9349 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9350 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9351 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9352 frame management for all OSABIs.
9353
61a65099
KB
93542004-03-19 Andrew Cagney <cagney@redhat.com>
9355
9356 Committed by Kevin Buettner <kevinb@redhat.com>.
9357
9358 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9359 Update copyright.
9360 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9361 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9362 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9363 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9364 unwinders. #ifdef legacy frame code.
9365 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9366 "frame-base.h".
9367 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9368 (struct rs6000_frame_cache, rs6000_frame_cache)
9369 (rs6000_frame_this_id, rs6000_frame_prev_register)
9370 (rs6000_frame_sniffer, rs6000_frame_unwind)
9371 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9372 (rs6000_frame_base): Implement a traditional frame unwinder.
9373 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9374 frame unwinder.
9375
88f7da05
KB
93762004-03-19 Kevin Buettner <kevinb@redhat.com>
9377
9378 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9379 breakpoint address for watchpoints or the catch eventpoints.
9380 Add new paramter ``bptype''. Adjust all callers.
9381
f826dce1
AC
93822004-03-19 Andrew Cagney <cagney@redhat.com>
9383
33cb8b0f
AC
9384 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9385
f826dce1
AC
9386 * PROBLEMS: Delete note that ARM does not use frame code, problem
9387 fixed.
9388
43b1ab88
AC
93892004-03-18 Andrew Cagney <cagney@redhat.com>
9390
292ab034
AC
9391 * stack.c (return_command): Delete code wrapped in #ifdef
9392 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9393
43b1ab88
AC
9394 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9395
dbfe4626
AC
93962004-03-18 Andrew Cagney <cagney@redhat.com>
9397
9398 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9399 DEPRECATED_IN_SIGTRAMP.
9400 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9401 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9402 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9403 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9404 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9405 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9406 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9407 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9408 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9409 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9410
0cad6aec
AC
94112004-03-18 Andrew Cagney <cagney@redhat.com>
9412
9413 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9414 (struct frame_base_table_entry): Define.
9415 (struct frame_base_table): Re-implement as a linked list.
9416 (frame_base_init): Re-implement.
9417 (frame_base_table): Delete function.
9418 (append_predicate): Delete function.
9419 (frame_base_append_sniffer): Update.
9420 (frame_base_set_default): Update.
9421 (frame_base_find_by_frame): Update.
9422 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9423 * Makefile.in (frame-base.o): Update dependencies.
9424
9982c2e7
AC
94252004-03-17 Andrew Cagney <cagney@redhat.com>
9426
9427 * frame.c (legacy_get_prev_frame): Pass correct frame to
9428 frame_unwind_find_by_frame.
9429
8dfe8985
DC
94302004-03-17 David Carlton <carlton@kealia.com>
9431
9432 * NEWS: Mention C++ nested types and namespaces
9433
ed47347a
MC
94342004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9435
9436 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9437 and "Regressions since gdb 5.3.". Add known regressions since
9438 gdb 6.0.
9439
90aeadfc
DC
94402004-03-16 David Carlton <carlton@kealia.com>
9441
9442 * dwarf2read.c (process_structure_scope): Process children even
9443 when we're a declaration.
9444
73912b9b
AC
94452004-03-16 Andrew Cagney <cagney@redhat.com>
9446
9447 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9448 * blockframe.c (find_pc_partial_function)
9449 (find_pc_sect_partial_function): Merge into a single
9450 find_pc_partial_function.
9451
283accbc
MK
94522004-03-16 Mark Kettenis <kettenis@gnu.org>
9453
9454 * i386bsd-nat.c: s/regno/regnum/g.
9455 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9456 FP0_REGNUM.
9457 (store_inferior_registers): Likewise.
9458
f5b1afdf
MK
94592004-03-16 Mark Kettenis <kettenis@gnu.org>
9460
9461 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9462 of i387_fill_fsave.
9463 (store_inferior_registers): Call i387_collect_fsave and
9464 i387_collect_fxsave instead of i387_fill_fsave and
9465 i387_fill_fxsave.
9466
41fe5eb3
AC
94672004-03-15 Andrew Cagney <cagney@redhat.com>
9468
9469 * Makefile.in (frame-unwind.o): Update dependencies.
9470 * frame-unwind.c: Include "gdb_obstack.h".
9471 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9472 parameter.
9473 (append_predicate): Delete function.
9474 (struct frame_unwind_table_entry): New structure.
9475 (struct frame_unwind_table): Replace "sniffer" with "head" and
9476 "tail".
9477 (frame_unwind_append_sniffer): Update.
9478 (frame_unwind_find_by_frame): Update.
9479 (_initialize_frame_unwind): Registe frame_unwind_init using
9480 gdbarch_data_register_pre_init.
9481
3f63813d
MK
94822004-03-15 Mark Kettenis <kettenis@gnu.org>
9483
9484 * i386bsd-nat.c: Update copyright year.
9485 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9486 define unconditionally.
9487
3248c325 94882004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9489
9490 * i387-tdep.h (i387_collect_fsave): New prototype.
9491 * i387-tdep.c (i387_collect_fsave): New function containing most
9492 of the code from i387_fill_fsave.
3248c325 9493 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9494
871fbe6a
MK
94952004-03-15 Mark Kettenis <kettenis@gnu.org>
9496
9497 * i386-linux-tdep.c: Update copyright year.
9498 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9499 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9500 svr4_ilp32_link_map_offsets instead of
9501 i386_linux_svr4_fetch_link_map_offsets.
9502
8176b9b8
DC
95032004-03-15 David Carlton <carlton@kealia.com>
9504
9505 Fix for PR c++/1553:
9506 * dwarf2read.c (read_structure_type): Determine type name by
9507 calling determine_class_name.
9508 (determine_class_name): New.
9509 (determine_prefix): Look at TYPE_TAG_NAME and call
9510 determine_class_name when appropriate.
9511 (determine_prefix_aux, class_name): Delete.
9d58e29d 9512 (read_namespace): Set die->type.
8176b9b8 9513
fe8bf7d7
KB
95142004-03-15 Kevin Buettner <kevinb@redhat.com>
9515
9516 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9517 unused macro definition. The definition in target.h (or perhaps
9518 elsewhere) takes precedence.
9519
ed6edd9b
AC
95202004-03-15 Andrew Cagney <cagney@redhat.com>
9521
f9be684a
AC
9522 * ppc-tdep.h: Update copyright.
9523 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9524 function signatures to match "regsets.h".
9525 * ppc-linux-tdep.c: Include "regset.h".
9526 (ELF_GREGSET_SIZE): Delete.
9527 (right_supply_register): New function.
9528 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9529 using right_supply_register.
9530 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9531 functions.
9532 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9533 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9534 (_initialize_ppc_linux_tdep): Do not register
9535 ppc_linux_regset_core_fns.
9536 (ppc_linux_regset_from_core_section): Replace
9537 fetch_core_registers.
9538 (ppc_linux_regset_core_fns): Delete.
9539 * ppc-linux-nat.c: (right_fill_reg): New function.
9540 (supply_gregset): Update call to ppc_linux_supply_gregset.
9541 (fill_gregset): Clear the register set, use right_fill_reg.
9542 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9543 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9544
ed6edd9b
AC
9545 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9546 unsigned.
9547
030f20e1
AC
95482004-03-15 Andrew Cagney <cagney@redhat.com>
9549
9550 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9551 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9552 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9553 and register_gdbarch_data.
9554 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9555 (struct gdbarch_data): Replace "init" by "pre_init" and
9556 "post_init".
9557 * gdbarch.h, gdbarch.c: Re-generate.
9558 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9559 with"obstack", use OBSTACK_ZALLOC.
9560 (dwarf2_frame_ops): Delete.
9561 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9562 (dwarf2_frame_init_reg): Use gdbarch_data.
9563 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9564 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9565 (_initialize_svr4_solib): Update.
9566 * user-regs.c (_initialize_user_regs): Update.
9567 * reggroups.c (_initialize_reggroup): Update.
9568 * regcache.c (_initialize_regcache): Update.
9569 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9570 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9571 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9572 * frame-unwind.c (_initialize_frame_unwind): Update.
9573 * frame-base.c (_initialize_frame_base): Update.
9574 * user-regs.c (user_reg_add): Update.
9575 * reggroups.c (reggroup_add): Update.
9576 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9577 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9578 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9579 * frame-base.c (frame_base_table): Update.
9580 * remote.c (_initialize_remote): Update.
9581 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9582
3111a3fc
AC
95832004-03-15 Andrew Cagney <cagney@redhat.com>
9584
9585 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9586
5ecb7103
KB
95872004-03-15 Kevin Buettner <kevinb@redhat.com>
9588
9589 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9590 * frv-linux-tdep.c: New file.
9591 * frv-tdep.c (struct gdbarch_tdep): Add new field
9592 ``sigcontext_reg_addr''.
9593 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9594 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9595 (frv_sigramp_frame_sniffer): New functions.
9596 (frv_sigtramp_frame_unwind): New static global.
9597 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9598 sniffers.
9599 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9600 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9601
1ccda5e9
KB
96022004-03-15 Kevin Buettner <kevinb@redhat.com>
9603
9604 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9605 but not via a call to error(), when unable to read memory.
9606
b375a0a5
KB
96072004-03-15 Kevin Buettner <kevinb@redhat.com>
9608
9609 * frv-tdep.c (frv_call_dummy_words): Delete.
9610 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9611
4fdf6121
AC
96122004-03-15 Andrew Cagney <cagney@redhat.com>
9613
9614 * infrun.c (handle_step_into_function, step_over_function): Only
9615 update and use STEP_FRAME_ID when the system is using legacy
9616 frames. Update comments.
9617
34021503
MK
96182004-03-14 Mark Kettenis <kettenis@gnu.org>
9619
187e21d1
MK
9620 * amd64-linux-tdep.h: Remove file.
9621 * amd64-linux-tdep.c: Don't include "inferior.h" and
9622 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9623 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9624 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9625 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9626 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9627 macros.
9628 (user_to_gdb_regmap): Remove variable.
9629 (amd64_linux_gregset_reg_offset): New variable.
9630 (amd64_core_fns): Remove variable.
9631 (fetch_core_registers): Remove function.
9632 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9633 functions.
9634 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9635 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9636 * Makefile.in (amd64_linux_tdep_h): Remove.
9637 (amd64-linux-nat.o): Update dependencies.
9638 (amd64-linux-tdep.o): Update dependencies.
9639
99679982
MK
9640 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9641 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9642 functions.
9643 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9644
34021503
MK
9645 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9646 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9647
134d01f1
DJ
96482004-03-14 Daniel Jacobowitz <drow@mvista.com>
9649
9650 * dwarf2read.c (read_structure_type): Rename from
8718a420 9651 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9652 Return immediately if die->type is set. Call read_type_die before
9653 dwarf2_add_member_fn.
9654 (process_structure_scope): New function.
9655 (read_enumeration_type, process_enumeration_scope): New functions,
9656 broken out from read_enumeration. Don't create the enumeration
9657 type if it has already been created.
9658 (read_enumeration): Removed.
9659 (process_die): Call read_structure_type, process_structure_scope,
9660 read_enumeration_type, and process_enumeration_scope. Just call
9661 new_symbol for base and subrange types. Add a comment about other
9662 type dies.
9663 (read_type_die): Call read_enumeration_type.
9664 (add_partial_structure, new_symbol): Update comments.
9665
65760afb
SC
96662004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9667
9668 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9669
10f59415
SC
96702004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9671
9672 * tui/tui-win.h (tui_get_cmd_list): Declare.
9673 * tui/tui-win.c (tui_command): New function.
9674 (tui_get_cmd_list): New function.
9675 (_initialize_tui_win): Moved initialization of tui command in
9676 tui_get_cmd_list.
9677
9678 * tui/tui-data.c (init_content_element): Setup new data members.
9679 (init_win_info): Likewise.
9680 (free_content_elements): Free it.
9681 * tui/tui-data.h (struct tui_data_element): Store the register
9682 content to print.
9683 (struct tui_data_info): Keep the current register group.
9684
9685 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9686
9687 * tui/tui-regs.h (tui_show_registers): Update prototype.
9688 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9689 (tui_resize_all): No need to calculate anything for register window.
9690 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9691 (tui_set_register_element, tui_set_general_regs_content): Remove.
9692 (tui_set_special_regs_content): Remove.
9693 (tui_set_general_and_special_regs_content): Remove.
9694 (tui_set_float_regs_content): Remove.
9695 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9696 (tui_set_regs_content): Remove.
9697 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9698 (tui_v_show_registers_command_support): Remove.
9699 (tui_show_registers): Use a reggroup to specify the registers to show.
9700 (tui_show_register_group): New function.
9701 (tui_display_registers_from): Compute the layout of register window
9702 and refresh with new API; be sure to delete old register windows.
9703 (tui_check_register_values): Update to use tui_get_register and
9704 tui_display_data.
9705 (tui_display_register): Just refresh the register window part.
9706 (tui_register_format): Format registers and save in tui_data_element.
9707 (tui_get_register): New to combine tui_reg_value_has_changed and
9708 tui_get_register_raw_value; fix to use the new gdb API.
9709 (tui_show_float_command): Renamed tui_reg_float_command.
9710 (tui_show_general_command): Renamed tui_reg_general_command.
9711 (tui_show_special_command): Renamed tui_reg_system_command.
9712 (_initialize_tui_regs): Remove unused commands.
9713
c3364ea4
MK
97142004-03-13 Mark Kettenis <kettenis@gnu.org>
9715
27d1e716
MK
9716 * NEWS (New native configurations): Mention OpenBSD/amd64.
9717
c3364ea4
MK
9718 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9719 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9720 Remove defines.
9721 * config/i386/nm-fbsd64.h: Likewise.
9722 * config/i386/nm-obsd.h: Likewise.
9723 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9724 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9725
b2d6d697
KB
97262004-03-12 Kevin Buettner <kevinb@redhat.com>
9727
9728 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9729 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9730 New constants.
9731
76e43199
KB
9732 From Richard Sandiford <rsandifo@redhat.com>:
9733 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9734
34ce532e
KB
97352004-03-12 Kevin Buettner <kevinb@redhat.com>
9736
9737 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9738 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9739 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9740 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9741 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9742 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9743 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9744 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9745 definitions from frv-tdep.c to frv-tdep.h.
9746
c4d10515
KB
97472004-03-12 Kevin Buettner <kevinb@redhat.com>
9748
9749 Add shared library support for FR-V FDPIC ABI:
9750 * Makefile.in (solib-frv.o): Add dependencies.
9751 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9752 New functions.
9753 (frv_push_dummy_call): Add support for FDPIC ABI.
9754 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9755 for FDPIC ABI.
9756 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9757 (frv_fdpic_find_canonical_descriptor): Declare.
9758 * solib-frv.c: New file.
9759 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9760 * config/frv/tm-frv.h (solib.h): Include.
9761
ed1bd989
KB
97622004-03-12 Kevin Buettner <kevinb@redhat.com>
9763
9764 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9765 (frv-tdep.o): Update dependencies.
9766 * frv-tdep.h: New file.
9767 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9768 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9769 constants.
9770 (struct gdbarch_tdep): Add new member ``frv_abi''.
9771 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9772 functions.
9773 (new_variant): Set ``frv_abi'' field.
9774 (gdb_arch_init): Detect FDPIC executables.
9775
82b38f72
MK
97762004-03-12 Mark Kettenis <kettenis@gnu.org>
9777
9778 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9779 wrapper.
9780
db1ea9ba
AC
97812004-03-11 Andrew Cagney <cagney@redhat.com>
9782
9783 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9784
f8766ec1
KB
97852004-03-11 Kevin Buettner <kevinb@redhat.com>
9786
9787 * solist.h (master_so_list): New function.
9788 * solib.c (master_so_list): Likewise.
9789 * solib-svr4.c (enable_break): Iterate over so_list entries
9790 obtained from master list instead of entries obtained directly
9791 via svr4_current_sos().
9792
523f6a27
BE
97932004-03-10 Ben Elliston <bje@gnu.org>
9794
9795 * MAINTAINERS: Update my mail address.
9796
37814c18
KI
97972004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9798
9799 * remote-m32r-sdi.c: Support hardware watchpoint.
9800
8b9740d8
DJ
98012004-03-09 Daniel Jacobowitz <drow@mvista.com>
9802
9803 * user-regs.c: Update copyright years.
9804 (struct user_regs): Rename to gdb_user_regs.
9805 (append_user_reg, builtin_user_regs, user_regs_init)
9806 (user_reg_add, user_reg_map_name_to_regnum)
9807 (usernum_to_user_reg): Update.
9808
4bb7a0a7
DJ
98092004-03-09 Daniel Jacobowitz <drow@mvista.com>
9810
9811 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9812 (skip_children): New functions.
9813 (locate_pdi_sibling): Call skip_children.
9814
44e1a9eb
DJ
98152004-03-09 Daniel Jacobowitz <drow@mvista.com>
9816
9817 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9818 * gdbtypes.c (check_typedef): Update comments.
9819
f3dd6933
DJ
98202004-03-09 Daniel Jacobowitz <drow@mvista.com>
9821
9822 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9823 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9824 pointer. Update comment about comp_unit_head.
9825 (struct abbrev_info): Shorten two int flags.
9826 (dwarf_alloc_abbrev): Take a CU argument.
9827 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9828 each time through the loop. Update cleanup argument.
9829 (psymtab_to_symtab_1): Update cleanup call.
9830 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9831 abbrev_obstack.
9832 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9833 Just call obstack_free and clear the pointer.
9834
b40c7d58
DJ
98352004-03-09 Daniel Jacobowitz <drow@mvista.com>
9836
9837 * infrun.c (handle_inferior_event): Remove short-circuit code for
9838 events in a different thread.
9839
333dabeb
DJ
98402004-03-09 Daniel Jacobowitz <drow@mvista.com>
9841
9842 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9843 print the whole transfer.
9844 (initialize_targets): Update description of "set debug target".
9845
aa17d93e
DJ
98462004-03-09 Daniel Jacobowitz <drow@mvista.com>
9847
9848 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9849
0b71f08f
NW
98502004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9851
9852 * MAINTAINERS (write after approval): Add myself.
9853
3930f270
CV
98542004-03-08 Corinna Vinschen <vinschen@redhat.com>
9855
9856 * sh-tdep.c (sh_print_registers_info): Use for loop.
9857 Don't skip multiple registers when a float register is encountered.
9858
a2b4a96c
CV
98592004-03-08 Corinna Vinschen <vinschen@redhat.com>
9860
9861 Fix PR tdep/1291.
9862 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9863 to official SH documentation.
9864
f15a4bc0
AC
98652004-03-07 Andrew Cagney <cagney@redhat.com>
9866
9867 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9868 unused function.
9869
9498281f
DJ
98702004-03-07 Daniel Jacobowitz <drow@mvista.com>
9871
9872 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9873 (arm_get_next_pc): Handle BX and BLX.
9874
449e1137
AC
98752004-03-07 Andrew Cagney <cagney@redhat.com>
9876
eded0a31
AC
9877 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9878 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9879 HPPA_SP_REGNUM.
9880 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9881 (hppa_target_read_fp): Delete.
9882 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9883 register_virtual_size, max_register_raw_size,
9884 max_register_virtual_size, register_byte, register_size,
9885 target_read_fp, fp_regnum, and register_bytes. Set register_type
9886 instead of register_virtual_type.
9887 (hppa32_register_type, hppa64_register_type): Replace
9888 hppa32_register_virtual_type and hppa64_register_virtual_type.
9889 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9890 (HPPA_FP_REGNUM): Define.
9891
f5f907e2
AC
9892 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9893
69b4bbe4
AC
9894 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9895 (pa_do_registers_info): Delete.
9896 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9897 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9898 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9899
78161e48
AC
9900 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9901 GDB_TARGET_IS_HPPA code.
9902 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9903 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9904 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9905 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9906 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9907 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9908 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9909 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9910 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9911 (hppa_frameless_function_invocation, hppa64_store_return_value)
9912 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9913 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9914 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9915 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9916 (find_proc_framesize, deposit_21, restore_pc_queue)
9917 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9918 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9919
782eae8b
AC
9920 Unconditionally enable 64-bit frame and ABI code.
9921 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9922 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9923 push_dummy_frame, fix_call_dummy, push_arguments,
9924 call_dummy_location, extract_return_value, use_struct_convention,
9925 store_return_value, store_struct_return, saved_pc_after_call,
9926 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9927 frame_chain, frame_chain_valid, frameless_function_invocation,
9928 frame_saved_pc, and pop_frame.
78161e48 9929
449e1137
AC
9930 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9931 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9932 (hppa_gdbarch_init): Do not set PC_REGNUM.
9933
12507572
MK
99342004-03-06 Mark Kettenis <kettenis@gnu.org>
9935
9936 * config/alpha/tm-fbsd.h: Remove file.
9937 * config/alpha/fbsd.mt: Tweak comment.
9938 (TM_FILE): Set to tm-alpha.h.
9939
c107cc1b
AC
99402004-03-05 Andrew Cagney <cagney@redhat.com>
9941
9942 * infrun.c (step_over_function): When non-legacy code, and no
9943 step_frame_id, use the unwinder to get the caller's frame ID.
9944
f2e7c15d
MK
99452004-03-05 Mark Kettenis <kettenis@gnu.org>
9946
8b0c3633
MK
9947 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9948 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9949 bfd_arch_unknown. Adjust comment.
9950
f2e7c15d
MK
9951 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9952 * i386obsd-tdep.c: Correct spelling in comment.
9953 * i386nbsd-tdep.c: Correct spelling in comment.
9954 * sparc-tdep.c: Correct spelling in comments.
9955
1198ecbe
DC
99562004-03-05 David Carlton <carlton@kealia.com>
9957
9958 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9959 bug.
9960
9eb42ed1
MK
99612004-03-05 Mark Kettenis <kettenis@gnu.org>
9962
9963 * sparc-tdep.c: Fix typo in comment.
9964
52b5e991
JB
99652004-03-04 J. Brobecker <brobecker@gnat.com>
9966
9967 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9968
d8151005
DJ
99692004-03-04 Daniel Jacobowitz <drow@mvista.com>
9970
9971 * dwarf2read.c: Add comment describing memory lifetimes.
9972 (struct dwarf2_pinfo): Update comment.
9973 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9974 (read_enumeration, new_symbol): Don't use obsavestring.
9975
cbeae229
MK
99762004-03-04 Mark Kettenis <kettenis@gnu.org>
9977
722d18c2
MK
9978 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9979 instead of amd64_fill_fxsave.
9980 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9981 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9982
cbeae229
MK
9983 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9984 Reorganize code a bit.
9985
b4206d25
OF
99862004-03-04 Orjan Friberg <orjanf@axis.com>
9987
9988 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9989 when the frame pointer is pushed. Don't set the frame pointer's
9990 address on the stack unless it's actually located there.
b4206d25
OF
9991 Set the SRP's address on the stack correctly when the PC is still in
9992 the prologue.
9993 (cris_return_value): New function.
9994 (cris_gdbarch_init): Clear deprecated store_return_value,
9995 extract_return_value.
9996
49b0b195
JB
99972004-03-02 Jim Blandy <jimb@redhat.com>
9998
9999 * stabsread.c (reg_value_complaint): The maximum register number
10000 is one less than the number of registers.
10001
e9ff708b
AC
100022004-03-02 Andrew Cagney <cagney@redhat.com>
10003
10004 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10005 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10006 trailing comma and redundant assignment of I386_ST0_REGNUM.
10007 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10008 32-bit segment registers.
10009
d4715e41
AC
100102004-03-01 Andrew Cagney <cagney@redhat.com>
10011
10012 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10013 use frame_relative_level and get_next_frame.
10014
3ce2bf18
AC
100152004-02-29 Andrew Cagney <cagney@redhat.com>
10016
10017 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10018 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10019 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10020 Delete macro.
10021
2da6aac3
DJ
100222004-02-29 Daniel Jacobowitz <drow@mvista.com>
10023
10024 * inflow.c (terminal_inferior): Don't give up the terminal if we
10025 previously couldn't get the inferior's terminal state.
10026
6ba34a8d
DJ
100272004-02-29 Daniel Jacobowitz <drow@mvista.com>
10028
10029 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10030 PC_REGNUM.
10031
faae5abe
AC
100322004-02-28 Andrew Cagney <cagney@redhat.com>
10033
10034 * NEWS: Refer to GDB 6.1.
10035 * README: Refer to GDB 6.1.
10036 * PROBLEMS: Refer to GDB 6.1.
10037
2227a3c5
DJ
100382004-02-28 Daniel Jacobowitz <drow@mvista.com>
10039
10040 * thread-db.c (disable_thread_signals): Remove unused function.
10041
80571bff
MK
100422004-02-28 Mark Kettenis <kettenis@gnu.org>
10043
041bd74b
MK
10044 * amd64-nat.c: Include "gdb_string.h".
10045 (amd64_collect_native_gregset): Zero-extend the 32-bit
10046 general-purpose registers and %eip.
10047
3c017e40
MK
10048 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10049 * amd64-tdep.c (amd64_collect_fxsave): New function.
10050 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10051
80571bff
MK
10052 * i387-tdep.h: Update copyright year.
10053 (i387_collect_fxsave): New prototype.
10054 * i387-tdep.c: Update copyright year.
10055 (i387_collect_fxsave): New function containing most of the code
10056 from i387_fill_fxsave.
10057 (i387_fill_fxsave): Call i387_collect_fxsave.
10058
50d71875
AC
100592004-02-28 Andrew Cagney <cagney@redhat.com>
10060
10061 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10062 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10063
4a28816e
MK
100642004-02-28 Mark Kettenis <kettenis@gnu.org>
10065
10066 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10067
dbda9972
AC
100682004-02-28 Andrew Cagney <cagney@redhat.com>
10069
10070 * utils.c: Use "", instead of <>, to include readline.
10071 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10072 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10073 * source.c, solib.c, exec.c, event-top.c: Ditto.
10074 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10075 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10076 * Makefile.in: Update all dependencies.
10077 (readline_tilde_h, readline_history_h): Define.
10078 (readline_headers): Delete.
10079
83277a99
MK
100802004-02-28 Mark Kettenis <kettenis@gnu.org>
10081
91ae4303
MK
10082 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10083 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10084 "config/i386/tm-lx64.h".
10085
83277a99
MK
10086 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10087 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10088 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10089
6e1d7d6c
AC
100902004-02-28 Andrew Cagney <cagney@redhat.com>
10091
ecc9ac84
AC
10092 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10093
6e1d7d6c
AC
10094 * breakpoint.c (_initialize_breakpoint): Use
10095 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10096 Add help to show command.
10097
9671aeef
MK
100982004-02-28 Mark Kettenis <kettenis@gnu.org>
10099
7fa2737c
MK
10100 * i386-nat.c: Reformat to be closer to coding standards.
10101 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10102 `retval'. Make variables `align' and `size' local to while-loop.
10103 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10104 (_initialize_i386_nat): New prototype.
10105
9671aeef
MK
10106 * tui/tui.c: Include <readline/readline.h> instead of
10107 "readline/readline.h". Include it after <term.h> and
10108 "gdb_curses.h".
10109
fca7aa43
AC
101102004-02-27 Andrew Cagney <cagney@redhat.com>
10111
412275d5
AC
10112 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10113 the new frame unwind code.
10114 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10115 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10116 PCOQ_HEAD_REGNUM.
10117
fca7aa43
AC
10118 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10119 "return_value" and "push_dummy_call".
10120 (hppa32_use_struct_convention): Delete unused function.
10121 (hppa32_store_return_value): Delete unused function.
10122 (hppa32_extract_return_value): Delete unused function.
10123 (hppa32_stack_align): Delete function.
10124
e6a8a7d2
EZ
101252004-02-27 Eli Zaretskii <eliz@elta.co.il>
10126
10127 * coffread.c (enter_linenos): Don't let rawptr reference memory
10128 outside linetab[]'s limits.
10129
1797a8f6
AC
101302004-02-27 Andrew Cagney <cagney@redhat.com>
10131
10132 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10133 inferior stack space - the stack needs to grow upwards.
10134 (hppa32_frame_align): New function.
10135 (hppa64_frame_align): Replace hppa_frame_align.
10136 (hppa_gdbarch_init): Update.
10137
2e4b5889
OF
101382004-02-26 Orjan Friberg <orjanf@axis.com>
10139
10140 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10141 (dwarf2-frame.h): Include.
10142 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10143 Remove static variables related to ABI setting.
10144 (struct gdbarch_tdep): Remove cris_abi member.
10145 (struct frame_extra_info): Remove.
10146 (cris_unwind_cache, stack_item): New structs.
10147 (cris_frame_unwind, cris_frame_base): New variables.
10148 (push_stack_item, pop_stack_item)
10149 (cris_frame_unwind_cache, cris_frame_this_id)
10150 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10151 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10152 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10153 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10154 (cris_reg_struct_has_addr): New functions.
10155 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10156 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10157 (cris_store_struct_return, cris_frameless_function_invocation)
10158 (cris_pop_frame, cris_skip_prologue_main)
10159 (cris_abi_original_store_return_value)
10160 (cris_abi_v2_store_return_value)
10161 (cris_abi_original_extract_return_value)
10162 (cris_abi_v2_extract_return_value)
10163 (cris_abi_original_reg_struct_has_addr)
10164 (cris_abi_v2_reg_struct_has_addr)
10165 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10166 (cris_push_return_address, cris_abi_update): Remove.
10167 (_initialize_cris_tdep): Remove ABI command.
10168 (cris_dump_tdep): Ditto.
8718a420 10169 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10170 Set store_return_value, extract_return_value, push_dummy_code,
10171 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10172 frame_unwind_append_sniffer, frame_base_set_default.
10173 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10174 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10175 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10176 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10177 init_extra_frame_info, frameless_function_invocation, frame_chain,
10178 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10179 dummy_write_sp.
8718a420 10180
6b9acc27
JJ
101812004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10182
10183 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10184 * valprint.c (print_hex_chars): Change from static to external.
10185 (print_char_chars): New function.
10186 * printcmd.c (print_scalar_formatted): For integer and enum types
10187 that are longer than LONGEST, perform processing via appropriate
10188 print_*_chars routines.
10189
a431654a
AC
101902004-02-26 Andrew Cagney <cagney@redhat.com>
10191
10192 * Makefile.in: Update dependencies.
10193 Changes from Ulrich Weigand,
10194 * s390-tdep.c: Include "dwarf2-frame.h".
10195 (s390_dwarf2_frame_init_reg): New function.
10196 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10197 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10198
fa8d40ab
JJ
101992004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10200
10201 * breakpoint.c (pending_break_support): New setting variable.
10202 (break_command_1): Account for pending_break_support setting
10203 when creating pending breakpoints.
10204 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10205 (_initialize_breakpoint): Add "set breakpoint pending" and
10206 "show breakpoint pending" commands.
10207
0dcd613f
AC
102082004-02-26 Andrew Cagney <cagney@redhat.com>
10209
10210 Fix PR i18n/1570.
10211 * charset.c (backslashable, backslashed, represented): Remove 'e'
10212 from list of escaped characters, not part of ISO-C.
10213
479272a3
JB
102142004-02-25 J. Brobecker <brobecker@gnat.com>
10215
10216 From Peter Schauer <schauer@pdf.de>:
10217 * tui/tui.c: Move system header includes after local includes.
10218 Fixes a build failure on solaris systems.
10219
7613d933
JB
102202004-02-25 J. Brobecker <brobecker@gnat.com>
10221
10222 * configure.in: Refine the previous change.
10223 * configure: Regenerate.
10224
9c1488cb
MK
102252004-02-25 Mark Kettenis <kettenis@gnu.org>
10226
10227 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10228 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10229 "amd64-tdep.h" instead of "x86-64-tdep.h".
10230 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10231 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10232 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10233 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10234 and "x86-64-tdep.c".
10235 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10236 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10237 and "x86-64-tdep.c".
10238 * amd64bsd-nat.c: Update copyright year.
10239 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10240 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10241 "x86-64-tdep.h".
10242 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10243 "x86-64-tdep.h".
10244 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10245 "x86-64-tdep.h".
10246 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10247 "x86-64-tdep.h".
10248 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10249 "x86-64-tdep.h".
10250 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10251 "x86-64-tdep.h".
8718a420 10252 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10253 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10254 * Makefile.in (amd64_linux_tdep_h): Renamed from
10255 x86_64_linux_tdep_h.
10256 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10257 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10258 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10259 (amd64obsd-tdep.o): Update dependencies.
10260 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10261 dependencies.
10262 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10263 dependencies.
10264 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10265 amd64-linux-nat.c amd64-linux-tdep.c.
10266 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10267 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10268 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10269 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10270 amd64-tdep.o and amd64-linux-tdep.o.
10271 (TM_FILE): Set to tm-linux64.h.
10272 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10273 (NAT_FILE): Set to nm-linux64.h.
10274 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10275 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10276 amd64-tdep.o.
10277 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10278 amd64-tdep.o.
10279 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10280 amd64-tdep.o.
10281
4b8dad4a
RM
102822004-02-25 Roland McGrath <roland@redhat.com>
10283
10284 * remote.c (remote_protocol_qPart_auxv): New variable.
10285 (init_all_packet_configs): Initialize it.
10286 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10287 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10288 (show_remote_cmd): Call it.
10289 (_initialize_remote): Initialize commands.
10290 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10291 service TARGET_OBJECT_AUXV requests.
10292
66745969
JB
102932004-02-25 J. Brobecker <brobecker@gnat.com>
10294
10295 * configure.in: Make sure that the wborder function is available.
10296 Otherwise, search for it in the cur_colr library.
10297 * configure: Regenerate.
10298
79508e1e
AC
102992004-02-25 Andrew Cagney <cagney@redhat.com>
10300
10301 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10302
571ee600
MK
103032004-02-25 Mark Kettenis <kettenis@gnu.org>
10304
10305 * config/i386/tm-x86-64linux.h: Tweak comments.
10306
2b1b322f 103072004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10308
10309 * MAINTAINERS: Add self to write-after-approval list.
10310
4d2acc65
AC
103112004-02-25 Andrew Cagney <cagney@redhat.com>
10312
4b8dad4a 10313 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10314 * cli/cli-script.c (execute_control_command): Unconditionally
10315 install a cleanup. Default "ret" to "invalid_control". Use
10316 "break" instead of "return" to escape from the switch.
10317
4cfcaf21
JB
103182004-02-24 J. Brobecker <brobecker@gnat.com>
10319
10320 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10321 with the lines macro defined in term.h on AiX.
10322 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10323 a collision with the label_width macro defined in term.h on AiX.
10324
54a5c8d8
KB
103252004-02-23 David Mosberger <davidm@hpl.hp.com>
10326
10327 Committed by Kevin Buettner <kevinb@redhat.com>.
10328
10329 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10330 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10331 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10332 instead of ia64_write_pc().
10333 * ia64-linux-tdep.c (regcache.h): Include.
10334 (ia64_linux_write_pc): New function.
4b8dad4a 10335
8a1dac83
RM
103362004-02-23 Roland McGrath <roland@redhat.com>
10337
10338 * auxv.c (info_auxv_command): Fix typos in error messages.
10339
90f90721
MK
103402004-02-23 Mark Kettenis <kettenis@gnu.org>
10341
8a1dac83 10342 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10343 (enum amd64_regnum): New.
10344 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10345 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10346 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10347 (X86_64_XMM1_REGNUM): Removed.
10348 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10349 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10350 prototypes for renamed functions.
10351 * x86-64-tdep.c: Fix typo.
10352 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10353 register numbers.
10354 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10355 Use constants from `enum amd64_regnum' for register numbers.
10356 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10357 (amd64_analyze_prologue, amd64_frame_cache,
10358 amd64_sigtramp_frame_cache): Use constants from `enum
10359 amd64_regnum' for register numbers.
10360 (amd64_supply_fpregset): Adjust for renamed functions.
10361 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10362 `enum amd64_regnum' for register numbers.
10363 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10364 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10365 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10366 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10367 (amd64_linux_fill_gregset): Adjust for renamed macros.
10368 (fetch_core_registers): Adjust for renamed functions.
10369 (amd64_linux_init_abi): Adjust for renamed functions.
10370 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10371 renamed functions.
10372 * amd64-nat.c: Adjust for renamed macros.
10373 * amd64bsd-nat.c (fetch_inferior_registers)
10374 (store_inferior_registers): Use constants from `enum amd64_regnum'
10375 for register numbers. Adjust for renamed variables.
10376 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10377 renamed variables.
10378 (_initialize_amd64fbsd_nat): Use constants from `enum
10379 amd64_regnum' for register numbers.
10380 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10381 `enum amd64_regnum' for register numbers.
10382 (amd64fbsd_init_abi): Adjust for renamed functions.
10383 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10384 `enum amd64_regnum' for register numbers.
10385 (amd64nbsd_init_abi): Adjust for renamed functions.
10386 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10387 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10388 `enum amd64_regnum' for register numbers.
10389 (amd64obsd_init_abi): Adjust for renamed functions.
10390 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10391
d5479188
JJ
103922004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10393
10394 * breakpoint.c (print_one_breakpoint): Do not output spaces
10395 after printing <PENDING> for a pending breakpoint.
10396
81cb7cc9
JJ
103972004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10398
10399 * printcmd.c (print_scalar_formatted): Initialize val_long
10400 to remove compiler warning message.
10401
cbdeadca
JJ
104022004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10403
10404 * defs.h (nquery, yquery): New prototypes.
10405 * breakpoint.c (break_command_1): Use new nquery interface.
10406 * utils.c (defaulted_query, nquery, yquery): New functions.
10407
da6bab63
AC
104082004-02-23 Andrew Cagney <cagney@redhat.com>
10409
2f690297
AC
10410 * hppa-tdep.c (hppa_frame_align): New function.
10411 (hppa32_push_dummy_call): New function.
10412 (hppa64_push_dummy_call): New function.
10413 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10414 disabled.
8a1dac83 10415
da6bab63
AC
10416 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10417 FIX_CALL_DUMMY when push_dummy_call is available.
10418 (call_function_by_hand, push_dummy_code): Ditto.
10419
abf9b42d
AC
104202004-02-22 Andrew Cagney <cagney@redhat.com>
10421
10422 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10423 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10424 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10425 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10426 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10427 call_dummy_location to ON_STACK.
10428
10fc94a4
MK
104292004-02-22 Mark Kettenis <kettenis@gnu.org>
10430
51433e4b
MK
10431 * x86-64-linux-tdep.c: Tweak comment.
10432 (amd64_linux_supply_gregset): Renamed from
10433 x86_64_linux_supply_gresget.
10434 (amd64_linux_fill_gregset): Renamed from
10435 x86_64_linux_fill_gregset.
10436 (fetch_core_registers): Adjust for renamed functions.
10437 (amd64_core_fns): Renamed from x86_64_core_fns.
10438 (amd64_linux_sigtramp_start): Renamed from
10439 x86_64_linux_sigtramp_start.
10440 (amd64_linux_pc_in_sigtramp): Renamed from
10441 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10442 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10443 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10444 (amd64_linux_sigcontext_addr): Renamed from
10445 x86_64_linux_sigcontext_addr.
10446 (amd64_linux_sc_reg_offset): Renamed from
10447 x86_64_linux_sc_reg_offset.
10448 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10449 Adjust for renamed functions and variables.
10450 (_initialize_amd64_linux_tdep): Renamed from
10451 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10452 variables.
10453 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10454 Adjust for renamed functions.
10455
430eaf2e
MK
10456 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10457 from x86_64_linux_gregset64_reg_offset.
10458 (amd64_linux_gregset32_reg_offset): Rename from
10459 x86_64_linux_gregset64_reg_offset.
10460 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10461 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10462 (amd64_linux_dr_set_control): Renamed from
10463 x86_64_linux_dr_set_control. Adjust for renamed functions.
10464 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10465 Adjust for renamed functions.
10466 (amd64_linux_dr_reset_addr): Renamed from
10467 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10468 (amd64_linux_dr_get_status): Renamed from
10469 x86_64_linux_dr_get_status. Adjust for renamed functions.
10470 (_initialize_amd64_linux_nat): Renamed from
10471 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10472 functions.
10473 * config/i386/nm-x86-64linux.h: Update copyright year.
10474 Adjust for renamed functions.
10475
10fc94a4
MK
10476 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10477 amd64fbsd_sigtramp_start.
10478 (amd64fbsd_sigtramp_end_addr): Renamed from
10479 amd64fbsd_sigtramp_end.
10480 (amd64fbsd_init_abi): Adjust for renamed variables.
10481 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10482 variables.
10483 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10484 amd64fbsd_sigtramp_start.
10485 (amd64fbsd_sigtramp_end_addr): Renamed from
10486 amd64fbsd_sigtramp_end.
10487
343af405
AC
104882004-02-22 Andrew Cagney <cagney@redhat.com>
10489
537987fc
AC
10490 * hppa-tdep.c (hppa32_return_value): New function.
10491 (hppa64_return_value): New function.
10492 (hppa_gdbarch_init): Set return_value; keep disabled.
10493
fad850b2
AC
10494 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10495 struct-return and inferior function call methods.
10496
26d08f08
AC
10497 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10498 "frame-base.h".
10499 (struct hppa_frame_cache): Define.
10500 (hppa_frame_cache, hppa_frame_this_id): New functions.
10501 (hppa_frame_prev_register): New function.
10502 (hppa_frame_unwind, hppa_frame_base): New variables.
10503 (hppa_frame_unwind_sniffer): New function.
10504 (hppa_frame_base_address, hppa_unwind_pc): New function.
10505 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10506 sniffer, and frame base sniffer; keep disabled.
10507 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10508 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10509
e7d7bd65
AC
10510 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10511 to predicates for "seriously old code".
10512
e963316f
AC
10513 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10514 runtime if(0).
10515
56132691
AC
10516 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10517 unsigned.
10518 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10519
343af405
AC
10520 * config/pa/tm-hppa.h: Update copyright.
10521 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10522 (deprecated_init_frame_pc_default): Delete declaration.
10523 (hppa_frame_init_saved_regs): Delete declaration.
10524 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10525 * hppa-tdep.c: Include "arch-utils.h".
10526 (hppa_gdbarch_init): Set deprecated init_frame_pc
10527 and deprecated frame_init_saved_regs.
10528 (hppa_frame_init_saved_regs): Make static.
10529
f5859b4d
MK
105302004-02-22 Mark Kettenis <kettenis@gnu.org>
10531
86f6f8e7 10532 Remove old 386BSD support.
cf7c5c23 10533 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10534 * configure.host: Remove i[34567]86-*-bsd*.
10535 * configure.tgt: Remove i[34567]86-*-bsd*.
10536 * i386b-nat.c: Removed.
10537 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10538 (i386b-nat.o): Remove dependencies.
10539
86f6f8e7
MK
10540 * config/i386/i386bsd.mh: Removed.
10541 * config/i386/i386bsd.mt: Removed.
10542 * config/i386/nm-i386bsd.h: Removed.
10543 * config/i386/tm-i386bsd.h: Removed.
10544 * config/i386/xm-i386bsd.h: Removed.
10545
971218cd
MK
10546 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10547
7e654c37
MK
10548 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10549 (amd64fbsd_init_abi): Set link map offsets.
10550 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10551 (amd64nbsd_init_abi): Set link map offsets.
10552 * amd64obsd-tdep.c: Include "solib-svr4.h".
10553 (amd64obsd_init_abi): Set link map offsets.
10554 * i386fbsd-tdep.c: Include "solib-svr4.h".
10555 (i386fbsd_init_abi): Set link map offsets.
10556 * i386nbsd-tdep.c: Include "solib-svr4.h".
10557 (i386nbsdelf_init_abi): Set link map offsets.
10558 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10559 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10560 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10561 solib-legacy.o and core-aout.o. Reformat.
10562 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10563 solib-svr4.o, solib-legacy.o. Reformat.
10564 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10565 * config/i386/nbsdelf.mh: Reformat.
10566 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10567 solib-svr4.o, solib-legacy.o and corelow.o.
10568 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10569 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10570 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10571 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10572 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10573 (TM_FILE): Set to tm-fbsd.h.
10574 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10575 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10576 solib-svr4.o.
10577 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10578 solib-svr4.o.
10579 (TM_FILE): Set to nm-nbsd.h.
10580 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10581 Simplify shared library support. Don't include "elf/common.h".
10582 (SVR4_SHARED_LIBS): Don't define.
10583 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10584 "solib.h".
10585 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10586 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10587 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10588 Don't include "i386/tm-i386.h". Include "solib.h".
10589 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10590 Don't include "i386/tm-i386.h".
10591 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10592 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10593 Include "i386/xm-i386.h".
10594 (HOST_LONG_DOUBLE_FORMAT): Remove.
10595
5d93ae8c
MK
10596 Fix OpenBSD/i386 sigtramp recognition.
10597 * i386-tdep.h: Update copyright year.
10598 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10599 (i386bsd_sigtramp_end): New prototypes.
10600 (i386fbsd_sigtramp_start_addr): Renamed from
10601 i386fbsd_sigtramp_start.
10602 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10603 (i386obsd_sigtramp_start_addr): Renamed from
10604 i386obsd_sigtramp_start.
10605 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10606 * i386bsd-tdep.c: Update copyright year.
10607 (i386bsd_pc_in_sigtramp): Make public.
10608 * i386fbsd-nat.c: Update copyright year.
10609 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10610 * i386fbsd-tdep.c: Update copyright year.
10611 (i386fbsd_sigtramp_start_addr): Renamed from
10612 i386fbsd_sigtramp_start.
10613 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10614 (i386fbsdaout_init_abi): Adjust for renamed variables.
10615 * i386obsd-nat.c: Update copyright year.
10616 (_initialize_i386obsd_nat): Adjust for renamed variables.
10617 * i386obsd-tdep.c: Include "target.h".
10618 (i386obsd_page_size): New variable.
10619 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10620 (i386obsd_sigtramp_end): New functions.
10621 (i386obsd_sigtramp_start_addr): Renamed from
10622 i386obsd_sigtramp_start.
10623 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10624 (i386obsd_init_abi): Adjust for renamed variables. Set
10625 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10626 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10627
84d04465
MK
10628 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10629 trampoline change in OpenBSD kernel.
10630
b053aceb
MK
10631 * amd64-nat.c: Update copyright year.
10632 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10633 architecture from REGCACHE.
10634
f5859b4d
MK
10635 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10636 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10637
e4bbbda8
MK
106382004-02-21 Mark Kettenis <kettenis@gnu.org>
10639
ba361932
MK
10640 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10641 i[34567]86-*-openbsd3.[0-3].
10642 * config/i386/obsdaout.mh: New file.
10643
d3e48264
MK
10644 * config/i386/obsd.mh (MH_FLAGS): Remove.
10645
60a6eeb6
MK
10646 Fix PR build/1549.
10647 * i386obsd-tdep.c: Update copyright years. Include
10648 "solib-svr4.h".
10649 (i386obsd_init_abi): Don't set regset_from_core_section here.
10650 (i386obsd_aout_init_abi): New function. Set
10651 regset_from_core_section here.
10652 (i386obsd_elf_init_abi): New function.
10653 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10654 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10655 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10656 (TM_FILE): Set to tm-nbsd.h.
10657
10658 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10659 solib-sunos.o.
10660
e4bbbda8
MK
10661 * solib-svr4.h: Update copyright year.
10662 (svr4_ilp32_fetch_link_map_offsets)
10663 (svr4_lp64_fetch_link_map_offsets): New prototype.
10664 * solib-svr4.c: Update copyright year.
10665 (svr4_ilp32_fetch_link_map_offsets)
10666 (svr4_lp64_fetch_link_map_offsets): New function.
10667
f6fe98ef
DJ
106682004-02-20 Daniel Jacobowitz <drow@mvista.com>
10669
10670 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10671 to the partial symbol table.
10672
589ca796
JB
106732004-02-20 J. brobecker <brobecker@gnat.com>
10674
10675 * PROBLEMS: Add description of problem documented under gdb/1560.
10676
2031c21a
MK
106772004-02-20 Mark Kettenis <kettenis@gnu.org>
10678
30b344b1
MK
10679 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10680 comments.
10681 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10682 functions.
10683 (amd64obsd_init_abi): Reorder initializations. Use
10684 amd64obsd_r_reg_offset to initialize the general-purpose register
10685 set details. Set regset_from_core_section.
10686 (_initialize_amd64obsd_tdep): Rename from
10687 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10688 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10689 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10690
2031c21a
MK
10691 * NEWS (New native configurations): Mention OpenBSD/alpha.
10692 * configure.tgt: Add alpha*-*-openbsd*.
10693 * configure.host: Add alpha*-*-openbsd*.
10694 * alphanbsd-tdep.c: Update copyright year.
10695 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10696
42471775
AC
106972004-02-20 Andrew Cagney <cagney@redhat.com>
10698
10699 Fix PR tdep/1372.
10700 * configure.tgt: Delete target "none-*-*".
10701 * configure.host: Delete host "none-*-*".
10702 * config/none/none.mh: Delete file.
10703 * config/none/none.mt: Delete file.
10704 * config/none/xm-none.h: Delete file.
10705 * config/none/tm-none.h: Delete file.
10706 * config/none/nm-none.h: Delete file.
10707
960ccd7d
FF
107082004-02-19 Fred Fish <fnf@redhat.com>
10709
10710 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10711 cache->uses_fp prior to setting it.
10712
5f883edd
FF
107132004-02-19 Fred Fish <fnf@redhat.com>
10714
10715 Fix for PR breakpoint/1558.
10716 * sh-tdep.c (IS_JSR): New macro.
10717 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10718
f98c22d5
JB
107192004-02-19 Jim Blandy <jimb@redhat.com>
10720
10721 * findvar.c (value_from_register): Doc fix.
10722
95051d27
JJ
107232004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10724
10725 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10726 type being greater than sizeof of host's LONGEST. Always use
10727 unpack_long() unless format 'f' chosen.
10728
ccefbec3
EZ
107292004-02-19 Joel Brobecker <brobecker@gnat.com>
10730
10731 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10732
ccefbec3
EZ
10733 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10734 contains a symbol wich is the best, non-exact match for the given
10735 pc. Update comments.
10736
107372004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10738
2ede629f
EZ
10739 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10740 macro, which was part of the now removed Mach 3 port.
10741 * utils.c (request_quit): Ditto.
10742
567ee972
MK
107432004-02-18 Mark Kettenis <kettenis@gnu.org>
10744
10745 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10746 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10747
50cca7bb
MK
107482004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10749
10750 Committed by Mark Kettenis <kettenis@gnu.org>.
10751
10752 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10753 Define.
10754
226361c4
AC
107552004-02-18 Andrew Cagney <cagney@redhat.com>
10756
10757 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10758 CONFIG_INSTALL and CONFIG_UNINSTALL.
10759 * configure: Re-generate.
10760 * interps.h (INTERP_TUI): Define.
10761 * Makefile.in: Update dependencies.
10762 (TUI): New macro.
10763 (tui-main.o): Specify dependencies.
10764 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10765 * tui/tui-main.c: New file.
10766
49cfa46f
MK
107672004-02-18 Mark Kettenis <kettenis@gnu.org>
10768
e2879ccb
MK
10769 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10770 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10771 dependencies.
10772 * configure.host: Add x86_64-*-openbsd*.
10773 * configure.tgt: Add x86_64-*-openbsd*.
10774 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10775
c43f4bec
MK
10776 * tui/tui.c: Don't include <malloc.h>.
10777
09ae75b6
MK
10778 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10779 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10780 amd64nbsd-tdep.c.
10781
49cfa46f 10782 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10783 static. Remove extraneous whitespace.
49cfa46f
MK
10784 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10785 static.
10786
05957fdb
JB
107872004-02-17 Jim Blandy <jimb@redhat.com>
10788
10789 * findvar.c (value_from_register): Doc fix.
10790
d0f54f9d
JB
107912004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10792
10793 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10794
8a1dac83 10795 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10796 CORE_ADDR as type for selectors. Correct types for GNU run time
10797 message lookup function to use double indirection.
10798 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10799 * objc-lang.h (lookup_child_selector): Adapt prototype.
10800
9cbd5950
JB
10801 * s390-nat.c (SUBOFF): New macro.
10802 (supply_gregset, fill_gregset): Use it to handle debugging
10803 of 32-bit exectuables running under a 64-bit kernel.
10804 * s390-tdep.c: Include "solib-svr4.h".
10805 (s390_svr4_fetch_link_map_offset): New function.
10806 (s390x_svr_fetch_link_map_offset): Likewise.
10807 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10808 * Makefile.in (s390-tdep.o): Update dependencies.
10809
a8c99f38
JB
10810 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10811 "frame-unwind.h".
10812 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10813 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10814 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10815 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10816 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10817 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10818 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10819 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10820 (struct frame_extra_info): Remove.
10821 (s390_memset_extra_info): Remove.
f73b1eff
JB
10822 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10823 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10824 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10825 (is_rse): Renamed to ...
10826 (is_rsy): ... this. Support long displacements.
10827 (is_rxe): Renamed to ...
10828 (is_rxy): ... this. Support long displacements.
10829 (compute_x_addr): Support long displacements.
10830 (struct s390_prologue_data): New data type.
10831 (s390_on_stack): Change API to use struct s390_prologue_data.
10832 (s390_store): Reimplement.
10833 (s390_load): New function.
10834 (s390_get_signal_frame_info): Remove.
10835 (s390_get_frame_info): Remove, replace by ...
10836 (s390_analyze_prolog): ... this new function.
10837 (s390_check_function_end): Remove.
10838 (s390_function_start): Remove.
10839 (s390_frameless_function_invokation): Remove.
10840 (s390_is_sigreturn): Remove.
10841 (s390_init_frame_pc_first): Remove.
10842 (s390_init_frame_extra_info): Remove.
10843 (s390_frame_init_saved_regs): Remove.
10844 (s390_frame_saved_pc_nofix): Remove.
10845 (s390_frame_saved_pc): Remove.
10846 (s390_frame_chain): Remove.
10847 (s390_fp_regnum, s390_read_fp): Remove.
10848 (s390_pop_frame_regular, s390_pop_frame): Remove.
10849 (s390_saved_pc_after_call): Remove.
10850 (s390_skip_prologue): Reimplement.
10851 (s390_in_function_epilogue_p): Support long displacements.
10852 (struct s390_unwind_cache): New data structure.
10853 (s390_frame_unwind_cache): New function.
10854 (s390_prologue_frame_unwind_cache): Likewise.
10855 (s390_backchain_frame_unwind_cache): Likewise.
10856 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10857 (s390_frame_unwind): Define.
10858 (s390_frame_sniffer): New function.
10859 (struct s390_pltstub_unwind_cache): New data structure.
10860 (s390_pltstub_frame_unwind_cache): New function.
10861 (s390_pltstub_frame_this_id): Likewise.
10862 (s390_pltstub_frame_prev_register): Likewise.
10863 (s390_pltstub_frame_unwind): Define.
10864 (s390_pltstub_frame_sniffer): New function.
10865 (struct s390_sigtramp_unwind_cache): New data structure.
10866 (s390_sigtramp_frame_unwind_cache): New function.
10867 (s390_sigtramp_frame_this_id): Likewise.
10868 (s390_sigtramp_frame_prev_register): Likewise.
10869 (s390_sigtramp_frame_unwind): Define.
10870 (s390_sigtramp_frame_sniffer): New function.
10871 (s390_frame_base_address, s390_local_base_address): New functions.
10872 (s390_frame_base): Define.
10873 (s390_unwind_pc, s390_unwind_sp): New function.
10874 (s390_push_dummy_call): Use new frame base location.
10875 (s390_unwind_dummy_id): Likewise.
10876 (s390_gdbarch_init): Remove calls to:
10877 set_gdbarch_frameless_function_invocation,
10878 set_gdbarch_deprecated_init_frame_pc,
10879 set_gdbarch_deprecated_frame_chain,
10880 set_gdbarch_deprecated_frame_init_saved_regs,
10881 set_gdbarch_deprecated_pop_frame,
10882 set_gdbarch_deprecated_init_extra_frame_info,
10883 set_gdbarch_deprecated_init_frame_pc_first,
10884 set_gdbarch_deprecated_target_read_fp,
10885 set_gdbarch_deprecated_frame_saved_pc,
10886 set_gdbarch_deprecated_saved_pc_after_call,
10887 set_gdbarch_deprecated_fp_regnum.
10888 Add calls to:
10889 set_gdbarch_in_solib_call_trampoline,
10890 frame_unwind_append_sniffer,
10891 frame_base_set_default,
10892 set_gdbarch_unwind_pc,
10893 set_gdbarch_unwind_sp.
10894 * Makefile.in (s390-tdep.o): Update dependencies.
10895
b0cf273e
JB
10896 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10897 (S390_STACK_FRAME_OVERHEAD): Remove.
10898 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10899 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10900 (s390_promote_integer_argument): Remove.
10901 (s390_cannot_extract_struct_value_address): Remove.
10902 (s390_use_struct_convention, s390_store_struct_return): Remove.
10903 (s390_extract_return_value, s390_store_return_value): Remove.
10904 (s390_return_value_convention, s390_return_value): New functions.
10905 (is_float_singleton): Handle typedefs.
8a1dac83 10906 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10907 Remove, replace by ...
10908 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10909 s390_function_arg_integer): ... these new functions.
10910 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10911 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10912 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10913 Fill in tdep->abi.
10914 Remove calls to:
10915 set_gdbarch_deprecated_store_struct_return,
10916 set_gdbarch_deprecated_extract_return_value,
10917 set_gdbarch_deprecated_store_return_value,
10918 set_gdbarch_use_struct_convention,
10919 set_gdbarch_extract_struct_value_address,
10920 set_gdbarch_deprecated_pc_in_call_dummy,
10921 set_gdbarch_deprecated_push_arguments,
10922 set_gdbarch_deprecated_save_dummy_frame_tos,
10923 set_gdbarch_deprecated_push_return_address,
10924 set_gdbarch_deprecated_sizeof_call_dummy_words,
10925 set_gdbarch_deprecated_call_dummy_words,
10926 set_gdbarch_deprecated_dummy_write_sp.
10927 Add calls to:
10928 set_gdbarch_push_dummy_call,
10929 set_gdbarch_unwind_dummy_id,
10930 set_gdbarch_return_value.
8a1dac83 10931
e1457d83
JB
10932 * config/s390/nm-linux.h: Update comments.
10933 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10934 (STOPPED_BY_WATCHPOINT): Redefine.
10935 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10936 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10937 (s390_stopped_by_watchpoint): Likewise.
10938 (watch_area_cnt): Remove.
10939 * s390-nat.c: Update comments.
10940 (watch_area): Remove typedef.
10941 Global replace watch_area by struct watch_area.
10942 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10943 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10944 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10945 (s390_fix_watch_points): Remove pid argument,
10946 use s390_inferior_tid. Recompute area spanned by watchpoints.
10947 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10948 argument. Reimplement.
10949
d0f54f9d
JB
10950 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10951 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10952 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10953 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10954 core-regset.o.
10955 * config/s390/s390x.mt: Remove.
10956 * config/s390/tm-s390.h: Remove.
10957 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10958 (TARGET_ELF64): Remove.
10959 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10960 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10961 s390*-*-* case; always set gdb_target to s390.
10962 * regformats/reg-s390.dat: Remove control registers.
10963 * regformats/reg-s390x.dat: Likewise.
10964 * s390-tdep.h: New file.
8a1dac83 10965 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10966 Include "inferior.h" and "s390-tdep.h".
10967 Remove private definition of offsetof.
10968 (s390_register_u_addr): Remove.
10969 (regmap_gregset, regmap_fpregset): Define.
10970 (supply_gregset, fill_gregset): Reimplement.
10971 (supply_fpregset, fill_fpregset): Likewise.
10972 (s390_inferior_tid): New function.
10973 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10974 (fetch_inferior_registers, store_inferior_registers): Likewise.
10975 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10976 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10977 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10978 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10979 (struct gdbarch_tdep): Define.
10980 (struct s390_register_info): Define.
10981 (s390_register_info): New variable.
10982 (s390_register_name): Reimplement.
10983 (s390_register_type): New function.
10984 (s390_register_raw_size, s390x_register_raw_size): Remove.
10985 (s390_cannot_fetch_register): Remove.
10986 (s390_register_byte): Remove.
10987 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10988 (s390_dwarf_regmap): New variable.
10989 (s390_dwarf_reg_to_regnum): New function.
10990 (s390_stab_reg_to_regnum): Remove.
10991 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10992 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10993 (s390_convert_register_p): Likewise.
10994 (s390_register_to_value, s390_value_to_register): Likewise.
10995 (s390_register_reggroup_p): Likewise.
10996 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10997 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10998 (s390_supply_regset, s390_regset_from_core_section): New functions.
10999 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11000 (S390_FPR_SIZE): Likewise.
11001 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11002 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11003 (S390_NUM_GPRS): Move here from tm-s390.h.
11004 (S390_NUM_FPRS): Likewise.
11005 (s390_in_function_epilogue_p): New function.
11006 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11007 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11008 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11009 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11010 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11011 Remove calls to:
11012 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11013 set_gdbarch_deprecated_max_register_virtual_size,
11014 set_gdbarch_deprecated_register_byte,
d0f54f9d 11015 set_gdbarch_cannot_fetch_register,
8a1dac83 11016 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11017 set_gdbarch_deprecated_register_size,
11018 set_gdbarch_deprecated_register_raw_size,
11019 set_gdbarch_deprecated_register_virtual_size,
11020 set_gdbarch_deprecated_register_virtual_type,
11021 set_gdbarch_deprecated_register_bytes.
11022 Add calls to:
11023 set_gdbarch_num_pseudo_regs,
11024 set_gdbarch_register_type,
11025 set_gdbarch_convert_register_p,
11026 set_gdbarch_register_to_value,
11027 set_gdbarch_value_to_register,
11028 set_gdbarch_register_reggroup_p,
11029 set_gdbarch_regset_from_core_section,
11030 set_gdbarch_pseudo_register_read,
11031 set_gdbarch_pseudo_register_write,
11032 set_gdbarch_in_function_epilogue_p.
11033 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11034 (s390_tdep_h): New variable.
11035
8cfe231d
JB
110362004-02-17 Jim Blandy <jimb@redhat.com>
11037
4589a601
JB
11038 * findvar.c (value_from_register): If the type has no length, just
11039 return an acceptable value --- don't report an internal error.
11040
8cfe231d
JB
11041 * stabsread.c (read_type): If we find any type numbers that are
11042 forward references, complain if the references aren't resolved by
11043 the time we're finished reading.
11044 (cleanup_undefined_types): Make error message more appropriate for
11045 a complaint.
11046
5bf0017e
EZ
110472004-02-17 Elena Zannoni <ezannoni@redhat.com>
11048
9d62932d
EZ
11049 * Makefile.in (defs_h): Remove dependency on progress_h.
11050 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11051 progress.h.
11052 * main.c (captured_main): Delete use of START_PROGRESS and
11053 END_PROGRESS.
11054
110552004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11056
5bf0017e
EZ
11057 * objfiles.c (terminate_minimal_symbol_table): Add back
11058 initialization of MSYMBOL_TYPE.
11059
9fc9f5e2
AC
110602004-02-17 David Mosberger <davidm@hpl.hp.com>
11061
11062 Committed by Andrew Cagney.
11063 * Makefile.in (ia64_tdep_h): New macro.
11064 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11065 (ia64-tdep.o): Likewise.
11066 * ia64-tdep.h: New file.
11067 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11068 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11069 (ia64_aix_sigcontext_register_address): Likewise.
11070 (ia64_linux_getunwind_table): Delete declaration.
11071 * ia64-linux-tdep.c: Likewise.
11072
76cd2bd9
CV
110732004-02-17 Corinna Vinschen <vinschen@redhat.com>
11074
11075 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11076 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11077 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11078
634aa483
AC
110792004-02-17 Andrew Cagney <cagney@redhat.com>
11080
11081 * symtab.c (skip_prologue_using_sal): New function.
11082 * symtab.h (skip_prologue_using_sal): Declare.
11083 * frv-tdep.c: Include "symtab.h".
11084 (skip_prologue_using_sal): Delete function.
11085 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11086 * rs6000-tdep.c (refine_prologue_limit): Mention
11087 skip_prologue_using_sal.
11088 * ia64-tdep.c (refine_prologue_limit): Ditto.
11089 * Makefile.in: Update dependencies.
11090
110912004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11092
39ce7b3f
AC
11093 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11094 START_INFERIOR_TRAPS_EXPECTED.
11095 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11096 START_INFERIOR_TRAPS_EXPECTED.
11097 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11098 Delete macro.
11099 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11100 macro, moved to "nm-osf.h". Update copyright.
11101 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11102 update copyright.
11103
19772a2c
AC
11104 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11105 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11106 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11107 frameless_look_for_prologue.
11108 * frame.h (legacy_frameless_look_for_prologue): Rename
11109 frameless_look_for_prologue.
11110 * gdbarch.h, gdbarch.c: Re-generate.
11111 * sh64-tdep.c (sh64_gdbarch_init): Update.
11112 * sh-tdep.c (sh_gdbarch_init): Update.
11113 * s390-tdep.c (s390_gdbarch_init): Update.
11114 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11115 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11116 * m68k-tdep.c (m68k_gdbarch_init): Update.
11117 (delta68_frame_args_address): Update.
11118 * m32r-tdep.c (m32r_gdbarch_init): Update.
11119 * hppa-tdep.c (hppa_gdbarch_init): Update.
11120 * h8300-tdep.c (h8300_gdbarch_init): Update.
11121 * frv-tdep.c (frv_gdbarch_init): Update.
11122 (frv_frameless_function_invocation): Update.
11123 * cris-tdep.c (cris_gdbarch_init): Update.
11124 (cris_frameless_function_invocation): Update.
11125 * avr-tdep.c (avr_gdbarch_init): Update.
11126 * arm-tdep.c (arm_gdbarch_init): Update.
11127 * stack.c (frame_info): Update, call predicate.
11128 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11129 * frame.c (legacy_get_prev_frame): Update, call predicate..
11130 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11131 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11132 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11133 invocation.
11134 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11135 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11136 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11137
11138 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11139 function.
11140
7dcaac91
DJ
111412004-02-16 Daniel Jacobowitz <drow@mvista.com>
11142
11143 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11144 initializations.
11145
88289b6e
AC
111462004-02-16 Andrew Cagney <cagney@redhat.com>
11147
11148 * tui/tui-windata.c: Include "gdb_string.h".
11149 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11150 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11151 * Makefile.in: Update dependencies.
11152
9f976b41
DJ
111532004-02-16 Daniel Jacobowitz <drow@mvista.com>
11154
11155 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11156 * infrun.c: Include "gdb_assert.h".
11157 (singlestep_ptid, saved_singlestep_ptid)
11158 (stepping_past_singlestep_breakpoint): New variables.
11159 (resume): Set singlestep_ptid. Check for singlestep thread
11160 hop.
11161 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11162 (handle_inferior_event): Handle singlestep thread hop.
11163
c324d747
AC
111642004-02-16 Andrew Cagney <cagney@redhat.com>
11165
f090b9b1
AC
11166 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11167 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11168 (dwarf2_frame_init_reg): Ditto.
11169
fd33e6cb
AC
11170 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11171 suggested by Joshua Neuheisel
11172
c324d747
AC
11173 * configure.in: Always check for curses, including pdcurses.
11174 Warn, instead of error, when no curses are found. Enable TUI when
11175 curses is available.
11176 * configure: Re-generate.
11177
b66ba949
CV
111782004-02-16 Corinna Vinschen <vinschen@redhat.com>
11179
11180 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11181 sh_sh4_register_convert_to_virtual.
11182 (sh_register_convert_to_raw): Rename from
11183 sh_sh4_register_convert_to_raw.
11184 (sh_pseudo_register_read): Accomodate above name change.
11185 (sh_pseudo_register_write): Ditto.
11186
b58cbbf2
CV
111872004-02-16 Corinna Vinschen <vinschen@redhat.com>
11188
11189 * sh-tdep.c (sh_generic_register_name): Remove.
11190 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11191
5929a910
AC
111922004-02-15 Andrew Cagney <cagney@redhat.com>
11193
4566dfcf
AC
11194 * configure.in (build_warnings): Add -Wunused-function.
11195 * configure: Re-generate.
11196
db11ed55
AC
11197 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11198 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11199
46ac7a5d
AC
11200 * procfs.c (procfs_init_inferior): Assume that
11201 START_INFERIOR_TRAPS_EXPECTED is defined.
11202 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11203 * config/ns32k/tm-nbsd.h: Delete file,
11204 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11205
ba801595
AC
11206 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11207 * config/vax/tm-vax.h: Delete file.
11208
5929a910
AC
11209 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11210 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11211 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11212 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11213 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11214 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11215 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11216
8f22cb90
MK
112172004-02-15 Mark Kettenis <kettenis@gnu.org>
11218
11219 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11220 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11221 (struct dwarf2_frame_ops): New.
11222 (dwarf2_frame_default_init_reg): New function, based on
11223 dwarf2_frame_init_reg.
11224 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11225 (dwarf2_frame_init_reg): Call architecture-specific function.
11226 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11227 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11228 instead of dwarf2_frame_data.
11229 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11230 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11231
8132723e
AC
112322004-02-15 Andrew Cagney <cagney@redhat.com>
11233
046a4708
AC
11234 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11235 register_gdbarch_swap.
11236 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11237 * f-lang.c (_initialize_f_language): Update, use
11238 DEPRECATED_REGISTER_GDBARCH_SWAP.
11239 * remote.c (_initialize_remote): Ditto.
11240 * regcache.c (_initialize_regcache): Ditto.
11241 * parse.c (_initialize_parse): Ditto.
11242 * infrun.c (_initialize_infrun): Ditto.
11243 * mi/mi-main.c (_initialize_mi_main): Ditto.
11244 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11245
549c1eea
AC
11246 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11247 poking .cacheable directly.
11248 * symfile.c (symfile_bfd_open): Ditto.
11249
0c0b39de
AC
11250 * Makefile.in: Update all dependencies.
11251
8132723e
AC
11252 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11253 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11254 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11255 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11256 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11257
b9d26eb9
AC
112582004-02-14 Andrew Cagney <cagney@redhat.com>
11259
8e1f669a
AC
11260 * arch-utils.c (legacy_convert_register_p): Check
11261 DEPRECATED_REGISTER_CONVERTIBLE_P.
11262 * findvar.c (value_of_register): Ditto.
11263
cd0bfa36
AC
11264 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11265 * gdbarch.h, gdbarch.c: Re-generate.
11266 * arch-utils.c (deprecated_register_convertible_not): Delete.
11267 * arch-utils.h (deprecated_register_convertible_not): Delete.
11268 * mi/mi-main.c (get_register): Update. Update copyright.
11269 * infcmd.c (default_print_registers_info): Update.
11270
b9d26eb9
AC
11271 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11272 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11273 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11274 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11275 * frame.c (deprecated_get_next_frame_hack): Delete function.
11276 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11277 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11278 Update.
11279 * infcall.c (call_function_by_hand): Update.
11280
9ab9195f
EZ
112812004-02-14 Elena Zannoni <ezannoni@redhat.com>
11282
11283 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11284 from here...
9ab9195f
EZ
11285 * objfiles.c (init_entry_point_info, entry_point_address):..to
11286 here.
11287 * symfile.h (init_entry_point_info, entry_point_address): Remove
11288 prototypes.
11289 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11290 prototypes.
9ab9195f
EZ
11291 * cris-tdep.c: Remove include of symfile.h. Add include of
11292 objfiles.h.
11293 * infcall.c: Ditto.
11294 * mcore-tdep.c: Ditto.
11295 * mn10300-tdep.c: Ditto.
11296 * sh64-tdep.c: Ditto.
11297 * v850-tdep.c: Ditto.
11298 * arm-tdep.c: Remove include of symfile.h.
11299 * blockframe.c: Ditto.
11300 * coffread.c: Ditto.
11301 * dbxread.c: Ditto.
11302 * dwarf2read.c: Ditto.
11303 * dwarfread.c: Ditto.
8a1dac83 11304 * frv-tdep.c: Ditto.
9ab9195f
EZ
11305 * ia64-tdep.c: Ditto.
11306 * mdebugread.c: Ditto.
11307 * mipsread.c: Ditto.
8a1dac83 11308 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11309 * s390-tdep.c: Ditto.
11310 * sh-tdep.c: Ditto.
8a1dac83 11311 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11312 * gdbarch.sh: Remove include of symfile.h.
11313 * gdbarch.c: Regenerate.
11314 * solib-irix.c (enable_break): Use entry_point_address().
11315 Add comment about include file.
11316 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11317 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11318 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11319 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11320 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11321 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11322
c4c5b7ba
AC
113232004-02-13 Andrew Cagney <cagney@redhat.com>
11324
11325 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11326 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11327 copyright.
11328 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11329
3e7879de
FF
113302004-02-12 Fred Fish <fnf@redhat.com>
11331
11332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11333 set_gdbarch_store_return_value.
11334
6a7760b6
AC
113352004-02-12 Andrew Cagney <cagney@redhat.com>
11336
11337 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11338 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11339 (interrupt_query): Ditto.
11340 (ofunc): Delete unused variable.
11341 * cris-tdep.c (cris_abi): Delete unused function.
11342 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11343 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11344 (cris_get_asr_quick_shift_steps): Ditto.
11345 (cris_skip_prologue_frameless_p): Ditto.
11346 * arm-tdep.c (arm_push_return_address): Delete unused function.
11347 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11348 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11349 * s390-tdep.c (s390_function_start): Delete unused function.
11350
31687c3c
AC
113512004-02-12 Andrew Cagney <cagney@redhat.com>
11352
11353 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11354 gdbarch.h, gdbarch.c: Re-generate.
11355 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11356 to generic_prologue_frameless_p.
11357 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11358 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11359
6de918a6
DJ
113602004-02-11 Daniel Jacobowitz <drow@mvista.com>
11361
11362 * mips-linux-tdep.c: Include "frame.h".
11363 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11364 (mips_linux_skip_resolver): New functions.
11365 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11366 and set_gdbarch_in_solib_call_trampoline.
11367 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11368 to after set_gdbarch_in_solib_return_trampoline. Only set the
11369 solib hooks to mips16 functions if the OS ABI is unknown.
11370 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11371 including "config/tm-linux.h".
11372 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11373 * Makefile.in (mips-linux-tdep.o): Update.
11374
87b3ede8
DC
113752004-02-11 David Carlton <carlton@kealia.com>
11376
11377 * linespec.c (decode_compound): Only look for a class symbol when
11378 considering all but the rightmost component.
11379
5979bc46
AC
113802004-02-11 Andrew Cagney <cagney@redhat.com>
11381
11382 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11383 abi code are are separatly grouped.
11384
5867a2fb
AC
113852004-02-11 Andrew Cagney <cagney@redhat.com>
11386
11387 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11388 * gdbarch.h, gdbarch.c: Re-generate.
11389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11390 * v850-tdep.c (v850_gdbarch_init): Update.
11391 * sh64-tdep.c (sh64_gdbarch_init): Update.
11392 * sh-tdep.c (sh_gdbarch_init): Update.
11393 * s390-tdep.c (s390_gdbarch_init): Update.
11394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11395 * mips-tdep.c (mips_gdbarch_init): Update.
11396 * mcore-tdep.c (mcore_gdbarch_init): Update.
11397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11398 * m32r-tdep.c (m32r_gdbarch_init): Update.
11399 * ia64-tdep.c (ia64_gdbarch_init): Update.
11400 * hppa-tdep.c (hppa_gdbarch_init): Update.
11401 * h8300-tdep.c (h8300_gdbarch_init): Update.
11402 * frv-tdep.c (frv_gdbarch_init): Update.
11403 * d10v-tdep.c (d10v_gdbarch_init): Update.
11404 * cris-tdep.c (cris_gdbarch_init): Update.
11405 * avr-tdep.c (avr_gdbarch_init): Update.
11406 * arm-tdep.c (arm_gdbarch_init): Update.
11407 * alpha-tdep.c (alpha_gdbarch_init): Update.
11408
026a72f8
CV
114092004-02-11 Corinna Vinschen <vinschen@redhat.com>
11410
11411 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11412 comma.
11413 (sh_sh4al_dsp_register_name): Ditto.
11414
3903d437
AC
114152004-02-10 Andrew Cagney <cagney@redhat.com>
11416
11417 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11418 (mips_init_frame_pc_first): Delete function.
11419 (mips_frame_saved_pc): Delete function.
11420 (mips_frame_chain): Delete function.
11421 (mips_init_extra_frame_info): Delete function.
11422 (mips_xfer_register): Delete unused variable "reg".
11423 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11424 (mips_n32n64_return_value): Delete unused variable "reg".
11425 (mips_n32n64_return_value): Delete unused variable "pos".
11426 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11427 (mips_o32_return_value): Delete unused variable "pos".
11428 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11429 (mips_print_fp_register): Delete unused variable "namelen"
11430 (mips_print_fp_register): Delete unused variable "flt2"
11431 (get_frame_pointer): Delete function.
11432 (cached_proc_desc): Delete static variable.
11433 (mips_pop_frame): Delete function.
11434 (mips_find_saved_regs): Delete function.
11435 (mips_get_saved_register): Delete function.
11436 (mips_saved_pc_after_call): Delete function.
11437 (SIGFRAME_BASE): Delete macro.
11438 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11439 (SIGFRAME_PC_OFF): Delete macro.
11440 (SIGFRAME_REGSAVE_OFF): Delete macro.
11441 (mips_dump_tdep): Do not print deleted macro definitions.
11442
b9fb98bd
AC
114432004-02-10 Andrew Cagney <cagney@redhat.com>
11444
11445 * Makefile.in (SFILES): Remove explictly listed tui files.
11446 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11447
78ced177 114482004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11449
78ced177
JJ
11450 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11451 to use paddr functions to format ia64 addresses and long values.
11452 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11453 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11454 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11455 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11456 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11457
6a83354a
AC
114582004-02-10 Andrew Cagney <cagney@redhat.com>
11459
11460 * defs.h: Do not include "tui.h".
11461 * gdb_curses.h: New file.
11462 * tui/tui-hooks.h: New file.
11463 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11464 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11465 (tui_initialize_io): Delete declaration.
11466 (tui_initialize_readline: Delete redundant declaration.
11467 (struct tui_point): Delete definition.
11468 * tui/tui-data.h (struct tui_point): Define.
11469 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11470 * utils.c: Include "tui/tui.h".
11471 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11472 * printcmd.c [TUI]: Include "tui/tui.h".
11473 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11474 * tui/tui-command.c: Include "gdb_curses.h".
11475 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11476 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11477 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11478 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11479 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11480 * Makefile.in: Update all dependencies.
11481 (tui_hooks_h, gdb_curses_h): Define.
11482 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11483
997470ef
EZ
114842004-02-10 Elena Zannoni <ezannoni@redhat.com>
11485
11486 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11487 auxf2. Add comments about some other rarely used fields.
11488
4ff2cc4d
AC
114892004-02-10 Andrew Cagney <cagney@redhat.com>
11490
11491 * Makefile.in (init.c): Fix script removing duplicates. Problem
11492 reported by Peter Schauer.
11493
1ab21617
EZ
114942004-02-09 Elena Zannoni <ezannoni@redhat.com>
11495
11496 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11497 obstack_specify_allocation.
11498 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11499 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11500 (allocate_rt_common_objfile): Ditto.
11501 * symfile.c (reread_symbols): Ditto.
11502 * gdb_obstack.h: Add comment.
11503
17763fd9
EZ
115042004-02-09 Elena Zannoni <ezannoni@redhat.com>
11505
11506 * linespec.c (decode_line_1, locate_first_half)
11507 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11508 commented out code.
11509
ec5cdd75
DJ
115102004-02-09 Daniel Jacobowitz <drow@mvista.com>
11511
11512 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11513 obstack_free.
11514
43b54b88
AC
115152004-02-09 Andrew Cagney <cagney@redhat.com>
11516
11517 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11518 fails, try find_pc_section. Fix PR c++/1267.
11519 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11520 instead of find_pc_mapped_section.
11521 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11522 not default to the section containing PC. Fix PR symtab/1519.
11523
edfae063
AC
115242004-02-09 Andrew Cagney <cagney@redhat.com>
11525
11526 * Makefile.in (mips-tdep.o): Update dependencies.
11527 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11528 "trad-frame.h".
11529 (mips_unwind_pc): Return the pseudo PC register.
11530 (mips_unwind_dummy_id): New function.
11531 (mips16_fetch_instruction): New function.
11532 (mips32_fetch_instruction): New function.
11533 (struct mips_frame_cache): Define.
11534 (mips_mdebug_frame_cache): New function.
11535 (mips_mdebug_frame_this_id): New function.
11536 (mips_mdebug_frame_prev_register): New function.
11537 (mips_mdebug_frame_unwind): Define.
11538 (mips_mdebug_frame_sniffer): New function.
11539 (mips_mdebug_frame_base_address): New function.
11540 (mips_mdebug_frame_base): Define.
11541 (mips_mdebug_frame_base_sniffer): New function.
11542 (mips_gdbarch_init): Append unwind and base sniffers. Set
11543 unwind_dummy_id.
11544
defc864c
AC
115452004-02-08 Andrew Cagney <cagney@redhat.com>
11546
6764ddad
AC
11547 * frame.c: Print both the register number and name.
11548
defc864c
AC
11549 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11550 and a sed into a single sed. Make .c and .o patterns more robust.
11551 (OBS): Delete.
11552 (INIT_FILES): Replace OBS with COMMON_OBS.
11553 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11554
645d6d10
MK
115552004-02-08 Mark Kettenis <kettenis@gnu.org>
11556
11557 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11558 the PT_WCOOKIE request.
11559
23e3c3fc
AC
115602004-02-08 Andrew Cagney <cagney@redhat.com>
11561
58dfe9ff
AC
11562 * mips-tdep.c (mips_unwind_pc): New function.
11563 (mips_gdbarch_init): Set mips_unwind_pc.
11564
1152e35e
AC
11565 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11566 (get_frame_id): Allow the UNKNOWN_FRAME.
11567 (frame_register_unwind, get_frame_type): Ditto.
11568
31b75dbf
AC
11569 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11570 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11571 unwind_dummy_id indicates a legacy frame.
11572
3483b318
AC
11573 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11574 * configure: Re-generate.
11575
23e3c3fc
AC
11576 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11577 methods.
11578
33f8ca73
AC
115792004-02-08 Andrew Cagney <cagney@redhat.com>
11580
11581 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11582 makefile macro.
11583 * configure: Re-generate.
11584 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11585 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11586 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11587 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11588 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11589 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11590 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11591 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11592 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11593 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11594
6ba8e26f 115952004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11596
20d286a5
AC
11597 * Makefile.in: Update all dependencies.
11598
d836ee13
AC
11599 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11600 * configure: Re-generate.
11601 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11602 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11603 (COMMON_OBS): Add "main.o" and "annotate.o".
11604 (ANNOTATE_OBS): Delete.
11605 (OBS): Remove ANNOTATE_OBS.
11606 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11607 CONFIG_INITS.
11608 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11609 against CONFIG_OBS and "main.o".
11610 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11611 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11612
d02c80cd
AC
11613 * tui/tui-command.c: Include "gdb_string.h", delete register
11614 attribute, use ISO-C function signatures.
11615 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11616 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11617 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11618 * tui/tui.c: Ditto.
6ba8e26f
AC
11619
11620 * tui/tui-command.c: Change variable and function names to lower
11621 case.
11622 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11623 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11624 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11625 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11626 * tui/tui-winsource.c, tui/tui.c: Ditto.
11627
4a146b47
EZ
116282004-02-07 Elena Zannoni <ezannoni@redhat.com>
11629
11630 * buildsym.c (free_pending_blocks, finish_block)
11631 (record_pending_block, make_blockvector, end_symtab): Replace
11632 symbol_obstack with objfile_obstack.
8a1dac83 11633 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11634 (coff_read_enum_type): Ditto.
8a1dac83 11635 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11636 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11637 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11638 (dwarf2_symbol_mark_computed): Ditto.
11639 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11640 * elfread.c (elf_symtab_read): Ditto.
11641 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11642 (hpread_read_enum_type, hpread_read_function_type)
11643 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11644 Ditto.
8a1dac83 11645 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11646 (java_link_class_type): Ditto.
8a1dac83 11647 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11648 (new_symbol): Ditto.
11649 * minsyms.c (install_minimal_symbols): Ditto.
11650 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11651 (terminate_minimal_symbol_table): Replace symbol_obstack with
11652 objfile_obstack.
11653 (free_objfile): Remove freeing of symbol_obstack.
11654 * objfiles.h: Remove symbol_obstack field.
11655 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11656 objfile_obstack.
11657 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11658 symbol_obstack.
11659 (solib_add_common_symbols): Replace symbol_obstack with
11660 objfile_obstack.
11661 * somsolib.c (som_solib_add): Ditto.
11662 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11663 (common_block_start, common_block_end): Ditto.
11664 * symfile.c (reread_symbols): Remove freeing and init of
11665 symbol_obstack.
11666 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11667 * symfile.h: Update comment.
11668 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11669 stats printing.
11670 * symtab.c (symbol_set_names): Replace symbol_obstack with
11671 objfile_obstack.
11672 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11673 Update comments.
11674 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11675 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11676 objfile_obstack.
11677
6d012f14
AC
116782004-02-07 Andrew Cagney <cagney@redhat.com>
11679
11680 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11681 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11682 fields and variables.
11683 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11684 (m_beInvisible): Delete macro.
11685 * tui/tui-data.h: Fix case case fields and variables.
11686 (m_genWinPtrIsNull): Delete macro.
11687 (tui_win_list): Rename winList.
11688 (TUI_SRC_WIN): Rename srcWin.
11689 (TUI_DISASM_WIN): Rename disassemWin.
11690 (TUI_DATA_WIN): Rename dataWin.
11691 (TUI_CMD_WIN): Rename cmdWin.
11692 (m_genWinPtrNotNull): Delete macro.
11693 (m_winPtrIsNull): Delete macro.
11694 (m_winPtrNotNull): Delete macro.
11695 (tui_win_is_source_type): Replace m_winIsSourceType
11696 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11697 (tui_win_has_locator): Replace m_hasLocator.
11698 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11699 m_setWinHighlightOff.
11700 * tui/tui-data.c: Update references.
11701 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11702 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11703 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11704 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11705 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11706 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11707 * tui/tui-winsource.c, tui/tui.c: Ditto.
11708
7d34766b
MK
117092004-02-07 Mark Kettenis <kettenis@gnu.org>
11710
1c800673
MK
11711 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11712 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11713 StackGhost.
11714
7d34766b
MK
11715 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11716 variable `i6' to `i7'.
11717 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11718
22940a24
AC
117192004-02-07 Andrew Cagney <cagney@redhat.com>
11720
11721 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11722 (TuiPoint, TuiPointPtr): Ditto.
11723 (TuiStatus, TuiStatusPtr): Ditto.
11724 (TuiWinType, TuiWinTypePtr): Ditto.
11725 (struct tui_point): Rename _TuiPoint.
11726 (tui_get_low_disassembly_address): Rename
11727 tuiGetLowDisassemblyAddress.
11728 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11729 (tuiFree): Delete declaration.
11730 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11731 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11732 * tui/tui.c (tuiFree): Delete function.
11733 * cli/cli-cmds.c (disassemble_command): Update references.
11734 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11735 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11736 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11737 * tui/tui-winsource.c: Ditto.
11738
8b92e4d5
EZ
117392004-02-07 Elena Zannoni <ezannoni@redhat.com>
11740
11741 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11742 coffstab_build_psymtabs, elfstab_build_psymtabs)
11743 (stabsect_build_psymtabs): Replace psymbol_obstack with
11744 objfile_obstack.
11745 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11746 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11747 Ditto.
11748 * dwarfread.c (scan_compilation_units): Ditto.
11749 * elfread.c (elfstab_offset_sections): Ditto.
11750 * hppa-tdep.c (read_unwind_info): Ditto.
11751 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11752 (hpread_end_psymtab): Ditto.
11753 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11754 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11755 Ditto.
11756 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11757 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11758 (build_objfile_section_table): Ditto.
11759 (allocate_objfile): Remove init of psymbol_obstack.
11760 (free_objfile): Remove freeing of psymbol_obstack.
11761 * objfiles.h (struct objfile): Remove field
11762 psymbol_obstack. Update comments.
11763 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11764 psymbol_obstack with objfile_obstack.
11765 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11766 psymbol_obstack.
11767 * somread.c (som_symfile_offsets, init_import_symbols)
11768 (init_export_symbols): Replace psymbol_obstack with
11769 objfile_obstack.
11770 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11771 * symfile.c (default_symfile_offsets, syms_from_objfile)
11772 (reread_symbols): Remove freeing and init of psymbol_obstack.
11773 (cashier_psymtab): Update comment.
11774 * symmisc.c (print_objfile_statistics): Don't report stats for
11775 psymbol obstack.
11776 * symtab.h (struct general_symbol_info, struct partial_symtab):
11777 Update comments.
11778 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11779 (xcoff_symfile_offsets): Replace psymbol_obstack with
11780 objfile_obstack.
11781
b99607ea
EZ
117822004-02-07 Elena Zannoni <ezannoni@redhat.com>
11783
11784 * objfiles.h (struct objfile): Add objfile_obstack field.
11785 Remove type_obstack field.
11786
11787 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11788 read_structure_scope read_enumeration, new_symbol): Replace
11789 type_obstack with objfile_obstack.
11790 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11791 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11792 (lookup_fundamental_type): Ditto.
11793 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11794 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11795 (hpread_read_doc_function_type, hpread_read_struct_type)
11796 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11797 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11798 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11799 (java_link_class_type): Ditto.
11800 * mdebugread.c (parse_type): Ditto.
11801 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11802 * solib-sunos.c (solib_add_common_symbols): Ditto.
11803 * stabsread.c (define_symbol, read_type, read_member_functions,
11804 read_cpp_abbrev, read_one_struct_field): Ditto.
11805 * symfile.c (reread_symbols): Ditto.
11806 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11807
2a8854a7
AC
118082004-02-07 Andrew Cagney <cagney@redhat.com>
11809
11810 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11811 (tui_exec_info_content): Rename TuiExecInfoContent.
11812 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11813 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11814 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11815 (TuiList, TuiListPtr): Ditto.
11816 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11817 (TuiDataType, TuiDataTypePtr): Ditto.
11818 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11819 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11820 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11821 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11822 (TuiDataElement, TuiDataElementPtr): Ditto.
11823 (TuiWinElement, TuiWinElementPtr): Ditto.
11824 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11825 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11826 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11827 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11828 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11829 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11830 * tui/tui-command.c, tui/tui-data.c: Update references.
11831 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11832 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11833 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11834 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11835
05cbe71a
MK
118362004-02-07 Mark Kettenis <kettenis@gnu.org>
11837
11838 * dwarf2-frame.h: Update copyright.
11839 (enum dwarf2_frame_reg_rule): New.
11840 (struct dwarf2_frame_state_reg): New.
11841 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11842 * dwarf2-frame.c: Update copyright.
11843 (enum dwarf2_reg_rule): Remove.
11844 (struct dwarf2_frame_state): Remove defenition of `struct
11845 dwarf2_frame_state_reg'.
11846 (read_reg): Call get_frame_arch to get the architecture instead of
11847 using CURRENT_GDBARCH.
11848 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11849 DWARF2_FRAME_.
11850 (dwarf2_frame_init_reg): New function.
11851 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11852 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11853 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11854 tags with DWARF2_FRAME_.
11855 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11856 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11857 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11858
ec7d9e56
AC
118592004-02-06 Andrew Cagney <cagney@redhat.com>
11860
dd1abb8c
AC
11861 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11862 (enum tui_data_type): Rename _TuiDataType.
11863 (struct tui_layout_def): Rename _TuiLayoutDef.
11864 (struct tui_source_element): Rename _TuiSourceElement.
11865 (struct tui_data_element): Rename _TuiDataElement.
11866 (struct tui_command_element): Rename _TuiCommandElement.
11867 (struct tui_locator_element): Rename _TuiLocatorElement.
11868 (union tui_which_element): Define.
11869 (struct tui_win_element): Rename _TuiWinElement.
11870 (struct tui_data_info): Rename _TuiDataInfo.
11871 (struct tui_source_info): Rename _TuiSourceInfo.
11872 (struct tui_command_info): Rename _TuiCommandInfo.
11873 (tui_initialize_static_data): Rename initializeStaticData.
11874 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11875 (tui_alloc_win_info): Rename allocWinInfo.
11876 (tui_init_generic_part): Rename initGenericPart.
11877 (tui_init_win_info): Rename initWinInfo.
11878 (tui_alloc_content): Rename allocContent.
11879 (tui_add_content_elements): Rename addContentElements.
11880 (tui_init_content_element): Rename initContentElement.
11881 (tui_free_window): Rename freeWindow.
11882 (tui_free_win_content): Rename freeWinContent.
11883 (tui_free_data_content): Rename freeDataContent.
11884 (tui_free_all_source_wins_content): Rename
11885 freeAllSourceWinsContent.
11886 (tui_del_window): Rename tuiDelWindow.
11887 (tui_del_data_windows): Rename tuiDelDataWindows.
11888 (tui_partial_win_by_name): Rename partialWinByName.
11889 (tui_win_name): Rename winName.
11890 (tui_current_layout): Rename currentLayout.
11891 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11892 (tui_term_height): Rename termHeight.
11893 (tui_set_term_height_to): Rename setTermHeightTo.
11894 (tui_term_width): Rename termWidth.
11895 (tui_set_term_width_to): Rename setTermWidthTo.
11896 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11897 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11898 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11899 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11900 (tui_source_windows): Rename sourceWindows.
11901 (tui_clear_source_windows): Rename clearSourceWindows.
11902 (tui_clear_source_windows_detail): Rename
11903 clearSourceWindowsDetail.
11904 (tui_clear_win_detail): Rename clearWinDetail.
11905 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11906 (tui_default_tab_len): Rename tuiDefaultTabLen.
11907 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11908 (tui_win_with_focus): Rename tuiWinWithFocus.
11909 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11910 (tui_layout_def): Rename tuiLayoutDef.
11911 (tui_win_resized): Rename tuiWinResized.
11912 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11913 (tui_next_win): Rename tuiNextWin.
11914 (tui_prev_win): Rename tuiPrevWin.
11915 (tui_add_to_source_windows): Rename addToSourceWindows.
11916 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11917 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11918 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11919 * tui/tui.c, tui/tui-data.c: Ditto.
11920 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11921 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11922
a358af15
AC
11923 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11924 (struct symtab): Declare.
11925 (tui_set_source_content): Rename tuiSetSourceContent.
11926 (tui_show_symtab_source): Rename tuiShowSource.
11927 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11928 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11929 * tui/tui-source.c: Update copyright. Update references.
11930 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11931 * tui/tui-stack.c: Update references.
11932
a21fcd8f
AC
11933 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11934 (struct tui_win_info): Declare.
11935 (tui_scroll_forward): Rename tuiScrollForward.
11936 (tui_scroll_backward): Rename tuiScrollBackward.
11937 (tui_scroll_left): Rename tuiScrollLeft.
11938 (tui_scroll_right): Rename tuiScrollRight.
11939 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11940 (tui_resize_all): Rename tuiResizeAll.
11941 (tui_refresh_all_win): Rename tuiRefreshAll.
11942 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11943 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11944 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11945 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11946
edae1ccf
AC
11947 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11948 (tui_erase_data_content): Rename tuiEraseDataContent.
11949 (tui_display_all_data): Rename tuiDisplayAllData.
11950 (tui_check_data_values): Rename tuiCheckDataValues.
11951 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11952 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11953 (tui_first_data_element_no_in_line): Rename
11954 tuiFirstDataElementNoInLine.
11955 (tui_delete_data_content_windows): Rename
11956 tuiDeleteDataContentWindows.
11957 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11958 (tui_display_data_from): Rename tuiDisplayDataFrom.
11959 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11960 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11961 * tui/tui-win.c, tui/tui-regs.c: Update references.
11962 * tui/tui-layout.c, tui/tui.c: Update references.
11963
ec7d9e56
AC
11964 * tui/tui-wingeneral.h: Update copyright.
11965 (m_allBeVisible): Delete macro.
8a1dac83 11966 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11967 (struct tui_gen_win_info): Declare.
11968 (struct tui_win_info): Declare.
11969 (tui_unhighlight_win): Rename unhighlightWin.
11970 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11971 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11972 (tui_make_window): Rename makeWindow.
11973 (tui_copy_win): Rename copyWin.
11974 (tui_box_win): Rename boxWin.
11975 (tui_highlight_win): Rename highlightWin.
11976 (tui_check_and_display_highlight_if_needed): Rename
11977 checkAndDisplayHighlightIfNeeded.
11978 (tui_refresh_all): Rename refreshAll.
11979 (tui_delete_win): Rename tuiDelwin.
11980 (tui_refresh_win): Rename tuiRefreshWin.
11981 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11982 (tui_make_visible, tui_make_invisible): New functions.
11983 (tui_make_all_visible, tui_make_all_invisible): New functions.
11984 (make_all_visible): Rename makeAllVisible.
11985 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11986 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11987 * tui/tui-windata.c, tui/tui-win.c: Update references.
11988 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11989 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11990
1e52e2eb
MK
119912004-02-06 Mark Kettenis <kettenis@gnu.org>
11992
11993 * proc-api.c (write_with_trace): Initialize local variable to
11994 silence compiler warning.
11995
f80bda8e
AC
119962004-02-06 Andrew Cagney <cagney@redhat.com>
11997
11998 * tui/tui-source.h: Do not include "defs.h".
11999 (struct tui_win_info): Declare.
12000 (tui_set_source_content_nil): Declare.
12001 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12002 (union tui_line_or_address): Rename _TuiLineOrAddress.
12003 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12004 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12005 (tui_update_source_window_as_is): Rename
12006 tuiUpdateSourceWindowAsIs.
12007 (tui_update_source_windows_with_addr): Rename
12008 tuiUpdateSourceWindowsWithAddr.
12009 (tui_update_source_windows_with_line): Rename
12010 tuiUpdateSourceWindowsWithLine.
12011 (tui_clear_source_content): Rename tuiClearSourceContent.
12012 (tui_erase_source_content): Rename tuiEraseSourceContent.
12013 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12014 (tui_show_source_content): Rename tuiShowSourceContent.
12015 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12016 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12017 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12018 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12019 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12020 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12021 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12022 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12023 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12024 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12025 (struct tui_win_info): Declare.
12026 * tui/tui-stack.c: Update references.
12027 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12028 * tui/tui-win.c, tui/tui-source.c: Ditto.
12029 * tui/tui.c, tui/tui-disasm.c: Ditto.
12030
9fbfb822
MK
120312004-02-06 Mark Kettenis <kettenis@gnu.org>
12032
12033 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12034 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12035
03cebad2
MK
120362004-02-05 Mark Kettenis <kettenis@gnu.org>
12037
12038 * infrun.c (handle_inferior_event): Allow for breakpoint
12039 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12040 and SIGEMT. Update comments.
12041 * NEWS (Revised SPARC target): Mention support for non-executable
12042 stack.
12043
290281b1
MK
120442004-02-04 Mark Kettenis <kettenis@gnu.org>
12045
12046 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12047 * inftarg.c: Update copyright year.
12048 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12049 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12050 (sparc_xfer_wcookie): New function.
12051 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12052 * Makefile.in (sparc-nat.o): Update dependencies.
12053 * config/sparc/nm-nbsd.h: Include "target.h".
12054 (NATIVE_XFER_WCOOKIE): New define.
12055 (sparc_xfer_wcookie): New prototype.
12056
212161df
AC
120572004-02-04 Andrew Cagney <cagney@redhat.com>
12058
12059 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12060 SYSCALL_TRAP function.
12061 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12062
6e4c6c91
DJ
120632004-02-04 Andrew Cagney <cagney@redhat.com>
12064 Daniel Jacobowitz <drow@mvista.com>
12065
12066 * objfiles.h: Delete comments refering to inside_entry_func and
12067 DEPRECATED_FRAME_CHAIN_VALID.
12068 * defs.h (inside_entry_func): Update prototype..
12069 * blockframe.c (inside_entry_func): Rename to
12070 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12071 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12072
cae688ec
JJ
120732004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12074
12075 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12076 outside of #ifdef SOLIB_ADD region.
12077 (do_restore_lang_radix_cleanup): Ditto.
12078 (resolve_pending_breakpoint): Ditto.
12079
19217676
AC
120802004-02-03 Andrew Cagney <cagney@redhat.com>
12081
12082 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12083 (process_note_abi_tag_sections): Delete unused function.
12084 (ia64_read_fp): Delete unused function.
12085 (gdbarch_extract_struct_value_address): Delete declaration.
12086
876753be
AC
120872004-02-02 Andrew Cagney <cagney@redhat.com>
12088
12089 * vax-tdep.c (vax_frame_chain): Delete call to
12090 deprecated_inside_entry_file.
12091 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12092
d4f10bf2
MK
120932004-02-02 Mark Kettenis <kettenis@gnu.org>
12094
12095 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12096 column that's "empty" or "same value" when eliminating REG_RA
12097 rules.
12098
cae688ec
JJ
120992004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12100
12101 * NEWS: Add information about new pending breakpoint support.
12102
0101ce28
JJ
121032004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12104
12105 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12106 and pending fields for pending breakpoint support.
12107 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12108 (condition_command): Only parse condition if not a pending
12109 breakpoint.
12110 (print_one_breakpoint): Add support for pending breakpoints.
12111 (describe_other_breakpoints): Add checks to verify we are not
12112 dealing with pending breakpoints.
12113 (check_duplicates): Don't check pending breakpoints.
12114 (set_raw_breakpoint): Initialize pending flag.
12115 (do_restore_lang_radix_cleanup): New cleanup routine.
12116 (resolve_pending_breakpoint): New function.
12117 (re_enable_breakpoints_in_shlibs): Try and resolve any
12118 pending breakpoints via resolve_pending_breakpoint.
12119 (mention): Add pending breakpoint support.
12120 (parse_breakpoint_sals): Add new parameter to pass to
12121 decode_line_1 to indicate silent errors when files or functions
12122 are not found. Change all callers.
12123 (do_captured_parse_breakpoint): New function.
12124 (break_command_1): Change prototype to return an rc value and to
12125 take an optional pending breakpoint pointer. Support creating
12126 a pending breakpoint if a "not found" form of error occurs when
12127 parsing the breakpoint. Also support resolving an existing pending
12128 breakpoint and be silent if the resolution fails.
12129 (create_breakpoints): Change prototype to take pending breakpoint
12130 pointer. When resolving a pending breakpoint, use the new pointer
12131 to provide a conditional or commands added by the end-user.
12132 (delete_breakpoint): Add appropriate check for pending.
12133 (breakpoint_re_set_one): Ditto.
12134 (do_enable_breakpoint): Ditto.
12135
8d577d32
DC
121362004-02-02 David Carlton <carlton@kealia.com>
12137
12138 * valops.c (enum oload_classification): New.
12139 (find_overload_match): Break implementation into separate
12140 functions; delete #if 0'd code; look for symbols within
12141 namespaces.
12142 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12143 (find_oload_champ,oload_method_static,classify_oload_match): New.
12144 * cp-support.h: Add declaration for cp_func_name; update
12145 declaration for make_symbol_overload_list.
12146 * cp-support.c (cp_func_name): New.
12147 (overload_list_add_symbol): Fix comment, use
12148 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12149 (make_symbol_overload_list): Take a function name and a namespace
12150 instead of a symbol; change implementation.
12151 (make_symbol_overload_list_using): New.
12152 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12153
22e8e3c7
FF
121542004-02-02 Fred Fish <fnf@redhat.com>
12155
12156 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12157 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12158 * remote-sim.c (gdb_os_write_stderr): Write output to
12159 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12160 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12161 gdb_stderr stream and update copyright years.
22e8e3c7 12162
6b753f60
DJ
121632004-02-01 Daniel Jacobowitz <drow@mvista.com>
12164
12165 * Makefile.in (mips-linux-nat.o): Update dependencies.
12166 * mips-linux-nat.c: Include mips-tdep.h.
12167
121682004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12169
12170 * sol-thread.c (sol_thread_xfer_partial): New function.
12171 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12172 (init_sol_core_ops): Likewise.
12173
12174 * procfs.c (procfs_xfer_partial): New function.
12175 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12176 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12177
12178 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12179 procfs_xfer_auxv function.
12180
12181 * procfs.c (procfs_make_note_section): If we can read
12182 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12183 * linux-proc.c (linux_make_note_section): Likewise.
12184
12185 * auxv.h: New file.
12186 * auxv.c: New file.
12187 * Makefile.in (auxv_h): New variable.
12188 (COMMON_OBS): Add auxv.o here.
12189 (auxv.o): New target.
12190
12191 * corelow.c (core_xfer_partial): New function.
12192 (init_core_ops): Use it for core_ops.to_xfer_partial.
12193
12194 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12195 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12196 macro if that is defined.
12197
fa5281d0
DJ
121982004-02-01 Daniel Jacobowitz <drow@mvista.com>
12199
12200 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12201 and check the specified thread for each breakpoint.
12202 * breakpoint.h (bpstat_stop_status): Update prototype.
12203 * infrun.c (handle_inferior_event): Update calls to
12204 bpstat_stop_status.
12205
26ee262d
DJ
122062004-02-01 Daniel Jacobowitz <drow@mvista.com>
12207
12208 * Makefile.in (cli-cmds.o): Add $(readline_h).
12209
d9b52655
DJ
122102004-02-01 Daniel Jacobowitz <drow@mvista.com>
12211
12212 * cli/cli-cmds.c: Include readline.h.
12213 (complete_command): Pass the start of the last word to
12214 complete_line.
12215
9709f61c
DJ
122162004-01-31 Daniel Jacobowitz <drow@mvista.com>
12217
12218 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12219 argument, and change first argument to a CORE_ADDR.
12220 * breakpoint.h (bpstat_stop_status): Update prototype.
12221 * infrun.c (adjust_pc_after_break): Add a new comment.
12222 (handle_inferior_event): Update calls to bpstat_stop_status.
12223
4f1280bb
DJ
122242004-01-31 Daniel Jacobowitz <drow@mvista.com>
12225
12226 * breakpoint.h: Update copyright years.
12227
4fa8626c
DJ
122282004-01-31 Daniel Jacobowitz <drow@mvista.com>
12229
12230 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12231 (bpstat_stop_status): Don't decrement PC.
12232 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12233 prototype.
12234 * infrun.c (adjust_pc_after_break): New function.
12235 (handle_inferior_event): Call it, early. Remove later references
12236 to DECR_PC_AFTER_BREAK.
12237 (normal_stop): Add commentary.
12238
fad0733a
DJ
122392004-01-31 Daniel Jacobowitz <drow@mvista.com>
12240
12241 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12242 2004-01-27 double-free fix.
12243
42cdca6c
MK
122442004-01-31 Mark Kettenis <kettenis@gnu.org>
12245
12246 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12247 (sparc32_frame_prev_register): Handle StackGhost.
12248 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12249
932d5416
RM
122502004-01-29 Roland McGrath <roland@redhat.com>
12251
12252 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12253 * configure: Regenerated.
12254
12255 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12256 * Makefile.in (procfs.o): Add dep.
12257
47d3492a
AC
122582004-01-28 Andrew Cagney <cagney@redhat.com>
12259
12260 * tui/tui-stack.h: Update copyright.
12261 (struct frame_info): Add opaque declaration.
12262 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12263 (tui_show_locator_content): Rename tuiShowLocatorContent.
12264 (tui_show_frame_info): Rename tuiShowFrameInfo.
12265 * tui/tui-stack.c: Update copyright. Update references.
12266 * tui/tui-winsource.c: Update references.
12267 * tui/tui-win.c: Update references.
12268 * tui/tui-layout.c: Update references.
12269 * tui/tui-hooks.c: Update copyright, update references.
12270 * tui/tui.c: Update copyright, update references.
12271 * tui/tui-disasm.c: Update references.
12272
5d51ca54
DC
122732004-01-28 David Carlton <carlton@kealia.com>
12274
12275 * dwarf2read.c (add_partial_structure): Use demangled name if
12276 namespace equals "".
12277
086ed43d
JB
122782004-01-27 Jim Blandy <jimb@redhat.com>
12279
12280 Clean up misapplied patch:
12281 * dwarf2read.c (determine_prefix): Change one of the two forward
12282 declarations for 'determine_prefix_aux' to a declaration for this.
12283 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12284 argument to 'die_specification'.
12285
2a35147e
JB
12286 * dwarf2read.c (read_func_scope): Re-indent comment.
12287
a355c7de 122882004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12289
a355c7de
AC
12290 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12291 b->exp to NULL after freeing so that error during re-parsing or
12292 evaluation of expressions associated with breakpoint don't
12293 eventually lead to re-freeing of storage.
12294 Committed by Andrew Cagney.
12295
63ff5125
AC
122962004-01-27 Andrew Cagney <cagney@redhat.com>
12297
12298 * source.c (ambiguous_line_spec): Delete undefined declaration.
12299 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12300 (m32r_set_server_address, m32r_set_download_path): Ditto.
12301 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12302
e142c38c
DJ
123032004-01-27 Daniel Jacobowitz <drow@mvista.com>
12304
12305 * dwarf2read.c: Update calls to changed and renamed functions, and
12306 references to moved variables.
12307
12308 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12309 language, language_defn, list_in_scope, and ftypes members.
12310 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12311 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12312 (baseaddr): Remove globals.
12313
12314 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12315 (set_cu_language, die_is_declaration, die_specification)
12316 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12317 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12318 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12319 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12320
12321 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12322 cu.list_in_scope. Don't initialize cu_header_offset.
12323 (add_partial_symbol): Add local baseaddr.
12324 (psymtab_to_symtab_1): Add local baseaddr. Use
12325 objfile->section_offsets for consistency. Don't initialize
12326 cu_header_offset; do initialize cu.header.offset and
12327 cu.list_in_scope.
12328 (read_file_scope, read_func_scope, read_lexical_block_scope)
12329 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12330
c6e06ede
MC
123312004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12332
fb328ecc 12333 * PROBLEMS: Add gdb/1516.
c6e06ede 12334
48184fd4
AC
123352003-12-29 Robert Millan <robertmh@gnu.org>
12336
12337 Patch committed by Andrw Cagney.
12338 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12339 * configure.tgt: Match knetbsd*-gnu.
12340
c1321b30
AC
123412004-01-26 Andrew Cagney <cagney@redhat.com>
12342
f3699be3
AC
12343 * breakpoint.c (catch_command_1): Delete #ifdef code.
12344 (catch_fork_command_1): Delete #ifdef wrapper.
12345 (catch_exec_command_1): Ditto.
12346 (catch_load_command_1): Ditto.
12347 (catch_unload_command_1): Ditto.
12348
c1321b30
AC
12349 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12350 (catch_breakpoint): Delete #if0ed function.
12351 (disable_catch_breakpoint): Ditto.
12352 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12353 (disable_catch, enable_catch, delete_catch): Ditto.
12354
b4501125
AC
123552004-01-26 Andrew Cagney <cagney@redhat.com>
12356
12357 * remote.c (echo_check, quit_flag): Delete variables.
12358 (cisco_kernel_mode): Delete variable.
12359 (minitelnet_return, tty_input, escape_count): Delete variables.
12360 (remote_cisco_mode): Delete variable.
12361 (remote_cisco_open, remote_cisco_close): Delete function.
12362 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12363 (init_remote_cisco_ops): Delete function.
12364 (_initialize_remote): Do not install "remote cisco" code.
12365 (read_frame): Delete cisco specific code.
12366 (remote_info_process): Delete function.
12367 (remote_wait): Delete cisco specific code.
12368 (remote_cisco_section_offsets): Delete function.
12369 (remote_cisco_objfile_relocate): Delete function.
12370 (remote_async_wait): Delete cisco specific code.
12371 (minitelnet, readtty, readsocket): Delete function.
12372
74055713
AC
123732004-01-26 Andrew Cagney <cagney@redhat.com>
12374
12375 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12376 comments mentioning extract_returned_value_address.
12377 * infcmd.c (print_return_value): Update. Add comments on
12378 extract_returned_value_address.
12379 * stack.c (return_command): Add comments on
12380 extract_returned_value_address.
12381 * values.c: Update comment.
12382 * m32r-tdep.c: Update comment.
12383 * sparc-tdep.c: Update comment.
12384 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12385 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12386 * sh64-tdep.c (sh64_gdbarch_init): Update.
12387 * sh-tdep.c (sh_gdbarch_init): Update.
12388 * s390-tdep.c (s390_gdbarch_init): Update.
12389 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12390 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12391 * m68k-tdep.c (m68k_gdbarch_init): Update.
12392 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12393 * m32r-tdep.c (m32r_gdbarch_init): Update.
12394 * ia64-tdep.c (ia64_gdbarch_init): Update.
12395 * h8300-tdep.c (h8300_gdbarch_init): Update.
12396 * frv-tdep.c (frv_gdbarch_init): Update.
12397 * arm-tdep.c (arm_gdbarch_init): Update.
12398 * alpha-tdep.c (alpha_gdbarch_init): Update.
12399
a67af2b9
AC
124002004-01-26 Andrew Cagney <cagney@redhat.com>
12401
12402 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12403 SYMBOL_LOCATION_FUNCS
12404 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12405 "struct symbol_ops".
12406 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12407 type to "struct symbol_ops".
12408 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12409 (struct symbol): Replace ".aux_value.loc.funcs" and
12410 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12411 (SYMBOL_OBJFILE): Delete macro.
12412 (SYMBOL_LOCATION_FUNCS): Delete macro.
12413 (SYMBOL_LOCATION_BATON): Update.
12414 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12415 intead of SYMBOL_LOCATION_FUNCS.
12416 * ax-gdb.c (gen_var_ref): Ditto.
12417 * printcmd.c (address_info): Ditto.
12418 * findvar.c (read_var_value): Ditto.
12419 (symbol_read_needs_frame): Ditto.
12420
c034e007
AC
124212004-01-26 Andrew Cagney <cagney@redhat.com>
12422
12423 * dwarf2read.c (read_func_scope): Document frame-base hack.
12424
bb472c1e
MK
124252004-01-25 Mark Kettenis <kettenis@gnu.org>
12426
12427 * infcmd.c (print_return_value): Plug memory leak; delete
12428 ui_stream object. Rename argument `structure_return' to
12429 `struct_return'.
12430
c8e737d5
MK
124312004-01-25 Mark Kettenis <kettenis@gnu.org>
12432
f941662f
MK
12433 * infcmd.c (print_return_value): Wrap long lines.
12434 (finish_command_continuation, finish_command): Remove unused
12435 variable `funcaddr'. Fix some coding-standards problems.
12436
c558d81a 12437 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12438 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12439 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12440 TDEP->fpregset to zero.
12441
bf1e5861 12442 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12443 floating-point registers for traditional NetBSD core files.
12444 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12445 TDEP->sizeof_fpregset here.
12446
4c72d57a
MK
124472004-01-25 Mark Kettenis <kettenis@gnu.org>
12448
566626fa
MK
12449 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12450 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12451 function with code split out from
12452 sparc32nbsd_sigcontext_frame_cache.
12453 (sparc32nbsd_sigcontext_frame_cache): Use
12454 sparc32nbsd_sigcontext_saved_regs.
12455 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12456 OpenBSD.
12457 * sparcobsd-tdep.c: New file.
12458 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12459 (sparcobsd-tdep.o): New dependency.
12460 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12461 * config/sparc/obsd.mt: New file.
12462
4c72d57a
MK
12463 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12464 TDEP->fpregset to be initialized to enable core file register
12465 sets.
12466
7e5e9f88
MK
124672004-01-24 Mark Kettenis <kettenis@gnu.org>
12468
f0f207fd 12469 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12470 Add opaque declarations.
12471 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12472 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12473 function with code split out from
12474 sparc64nbsd_sigcontext_frame_cache.
12475 (sparc64nbsd_sigcontext_frame_cache): Use
12476 sparc64nbsd_sigcontext_saved_regs.
12477 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12478 OpenBSD.
12479 * sparc64obsd-tdep.c: New file.
12480 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12481 (sparc64obsd-tdep.o): New dependency.
12482 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12483 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12484 * config/sparc/obsd64.mt: New file.
12485
690668cc
MK
12486 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12487 read the instruction at PC.
12488
7e5e9f88
MK
12489 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12490 value of GDB_OSABI_DEFAULT.
12491 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12492 instead of GDB_OSABI_NETBSD_AOUT.
12493
68b6dce9
NR
124942004-01-24 Nick Roberts <nick@nick.uklinux.net>
12495
12496 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12497 copyright.
12498
080ce8c0
AC
124992004-01-23 Andrew Cagney <cagney@redhat.com>
12500
12501 * printcmd.c (display_command): Replace tui_set_display call with
12502 tui_set_layout_for_display_command.
12503 * tui/tui.h (enum tui_win_type): Define.
12504 (tui_set_layout): Delete declaration.
12505 (tui_set_layout_for_display_command): Rename set_tui_layout.
12506 * tui/tui-data.h (enum tui_layout_type): Define.
12507 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12508 "tui.h".
12509 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12510 (tui_default_win_height): Rename tuiDefaultWinHeight.
12511 (tui_default_win_viewport_height): Rename
12512 tuiDefaultWinViewportHeight.
12513 (tui_set_layout): RenametuiSetLayout.
12514 * tui/tui-layout.c: Update references.
12515 * tui/tui.c: Update references.
12516 * tui/tui-disasm.c: Update references.
12517
b368761e
DC
125182004-01-23 David Carlton <carlton@kealia.com>
12519
12520 Partial workaround for PR c++/1511:
12521 * cp-namespace.c: Include frame.h.
12522 (cp_lookup_transparent_type): New
12523 (cp_lookup_transparent_type_loop): New.
12524 * cp-support.h: Declare cp_lookup_transparent_type.
12525 * symtab.c (basic_lookup_transparent_type): Renamed from
12526 lookup_transparent_type.
12527 (lookup_transparent_type): Replace old body by a call to
12528 current_language->la_lookup_transparent_type.
12529 * symtab.h: Update copyright. Declare
12530 basic_lookup_transparent_type.
12531 * language.h: Update copyright.
12532 (struct language_defn): Add la_lookup_transparent_type.
12533 * language.c: Update copyright.
12534 (unknown_language_defn): Add basic_lookup_transparent_type.
12535 (auto_language_defn): Add basic_lookup_transparent_type.
12536 (local_language_defn): Add basic_lookup_transparent_type.
12537 * ada-lang.c: Update copyright.
12538 (ada_language_defn): Add basic_lookup_transparent_type.
12539 * c-lang.c: Update copyright.
12540 (c_language_defn): Add basic_lookup_transparent_type.
12541 (cplus_language_defn): Add basic_lookup_transparent_type.
12542 (asm_language_defn): Add basic_lookup_transparent_type.
12543 (minimal_language_defn): Add basic_lookup_transparent_type.
12544 * f-lang.c: Update copyright.
12545 (f_language_defn): Add basic_lookup_transparent_type.
12546 * jv-lang.c: Update copyright.
12547 (java_language_defn): Add basic_lookup_transparent_type.
12548 * m2-lang.c: Update copyright.
12549 (m2_language_defn): Add basic_lookup_transparent_type.
12550 * objc-lang.c: Update copyright.
12551 (objc_language_defn): Add basic_lookup_transparent_type.
12552 * p-lang.c: Update copyright.
12553 (p_language_defn): Add basic_lookup_transparent_type.
12554 * scm-lang.c: Update copyright.
12555 (scm_language_defn): Add basic_lookup_transparent_type.
12556 * Makefile.in (cp-namespace.o): Depend on frame.h.
12557
fdde2d81
DC
125582004-01-23 David Carlton <carlton@kealia.com>
12559
12560 Patch for PR c++/1520:
12561 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12562 properly if we have a specification die.
12563 (determine_prefix_aux): Rename from determine_prefix.
12564 (determine_prefix): Like the old determine_prefix, but never
12565 returns NULL.
12566
5b828b6b
TR
125672004-01-23 Theodore A. Roth <troth@openavr.org>
12568
12569 * avr-tdep.c: Update copyright.
12570 (avr_iaddr_p): Delete unused function.
12571 (avr_saddr_p): Delete unused function.
12572
a1b8c067
DC
125732004-01-23 David Carlton <carlton@kealia.com>
12574
12575 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12576 Fix for PR symtab/1534.
12577
f2cab569
MK
125782004-01-23 Mark Kettenis <kettenis@gnu.org>
12579
12580 * NEWS (New native configurations): Mention OpenBSD/sparc and
12581 OpenBSD/sparc64.
12582 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12583 * configure.host: Likewise.
12584 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12585 handler for OpenBSD.
12586 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12587
642d8300
MK
125882004-01-22 Mark Kettenis <kettenis@gnu.org>
12589
89aac506
MK
12590 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12591 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12592
36662fde
MK
12593 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12594 * cli/cli-cmds.c (shell_escape): Likewise.
12595
642d8300
MK
12596 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12597 OpenBSD .note.openbsd.ident sections.
12598
fae299cd
DC
125992004-01-22 David Carlton <carlton@kealia.com>
12600
12601 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12602 get_scope_pc_bounds.
12603 (read_file_scope): Ditto.
12604 (get_scope_pc_bounds): New function, produced by extracting code
12605 from the above two functions, consolidating it, and adding support
12606 for DW_TAG_namespace.
12607
a49d618c
MK
126082004-01-22 Mark Kettenis <kettenis@gnu.org>
12609
12610 * osabi.c (MAX_NOTESZ): New define.
12611 (check_note): New function.
12612 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12613 check_note.
12614
fe61caab
RM
126152004-01-21 Roland McGrath <roland@redhat.com>
12616
12617 * MAINTAINERS (write after approval): Add myself.
12618
ec145965
EZ
126192004-01-21 Eli Zaretskii <eliz@gnu.org>
12620
12621 * utils.c (init_page_info): Move declarations of `rows' and
12622 `cols' before the __GO32__-specific code. Move the closing brace
12623 outside the #ifdef __GO32__..#endif block.
12624 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12625
877522db
PB
126262004-01-21 Paul Brook <paul@codesourcery.com>
12627
12628 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12629 BPSTAT_WHAT_CHECK_SHLIBS.
12630
dbf5be1c
PB
126312004-01-21 Paul Brook <paul@codesourcery.com>
12632
12633 * MAINTAINERS: Add myself to write-after-approval.
12634
81f08b92
AC
126352004-01-20 Andrew Cagney <cagney@redhat.com>
12636
5a1efed7
AC
12637 * ax-gdb.c (print_axs_value): Delete unused function.
12638 * jv-lang.c (java_lookup_type): Delete unused function.
12639 * cli/cli-dump.c (dump_filetype): Delete unused function.
12640 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12641 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12642 (mips_getstring): Delete unused function.
12643 (pmon_insert_breakpoint): Delete #if0ed function.
12644 (PMON_MAX_BP): Delete #if0ed MACRO.
12645 (mips_pmon_bp_info): Delete #if0ed variable.
12646 (pmon_remove_breakpoint): Delete #if0ed function.
12647 * monitor.c (monitor_write_even_block): Delete unused function.
12648 (monitor_write_memory_block): Delete #if0ed code.
12649 * dink32-rom.c (dink32_load): Delete unused function.
12650 (_initialize_dink32_rom): Delete #if0ed code.
12651 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12652
b0a30fce
AC
12653 * tui/tui-command.c: Update references.
12654 * tui/tui-io.c: Update references.
12655 * tui/tui-command.h: Update copyright.
12656 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12657
81f08b92
AC
12658 * source.c (ambiguous_line_spec): Delete never-defined function.
12659 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12660 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12661 * cli/cli-cmds.c (validate_comname): Ditto.
12662
65f05602
AC
12663 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12664 "tui-data.h".
12665 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12666 (tui_show_disassem): Rename tuiShowDisassem.
12667 (tui_show_disassem_and_update_source): Rename
12668 tuiVerticalDisassemScroll.
12669 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12670 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12671 * tui/tui.h: Update copyright.
12672 (enum tui_status): Define.
12673 * tui/tui-data.h (enum tui_scroll_direction): Define.
12674 * tui/tui-disasm.c: Update copyright. Update references.
12675 * tui/tui-winsource.c: Update copyright. Update references.
12676 * tui/tui-win.c: Update references.
12677 * tui/tui-layout.c: Update references.
12678
6bb0384f
AC
126792004-01-20 Andrew Cagney <cagney@redhat.com>
12680
12681 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12682 sym2 to start of block.
12683
9175c9a3
MC
126842004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12685
12686 * MAINTAINERS: Delete mmalloc.
12687 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12688 * NEWS: Mention removal of --with-malloc.
12689 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12690 * config.in: Regenerate.
12691 * configure: Regenerate.
6bb0384f
AC
12692 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12693 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12694 * gdbinit.in: Remove mmalloc.
12695 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12696 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12697 * config/i386/go32.mh: Likewise.
12698 * config/i386/interix.mh: Likewise.
12699 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12700
4fcef00a
JJ
127012004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12702
12703 * linespec.c (decode_variable, symtab_from_filename): Call
12704 error_silent with error message instead of throwing an exception
12705 directly.
12706 * defs.h (error_silent, error_output_message): Add prototypes.
12707 (catch_exceptions_with_msg): Ditto.
12708 * utils.c (error_silent, error_output_message): New functions.
12709 * top.c (catch_exceptions_with_msg): New function.
12710
8e94b928
NR
127112004-01-20 Nick Roberts <nick@nick.uklinux.net>
12712
12713 * mi/mi-cmds.h (enum print_values): Add definition.
12714
12715 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12716 type and value for simple data types and just the name and type
12717 for complex ones, if required.
12718
12719 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12720 children, if required.
12721
a02d6af8
KB
127222004-01-19 Kevin Buettner <kevinb@redhat.com>
12723
12724 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12725 unused declarations.
12726
78a4a9b9
AC
127272004-01-19 Andrew Cagney <cagney@redhat.com>
12728
12729 * top.h (mapped_symbol_files): Delete declaration.
12730 * main.c (captured_main): Delete option "m" and "mapped".
12731 * objfiles.c (mapped_symbol_files): Delete variable.
12732 * symfile.c (symbol_file_command): Delete mmap code.
12733 (symbol_file_add_with_addrs_or_offsets): Ditto.
12734 (add_symbol_file_command, reread_separate_symbols): Ditto.
12735 * objfiles.h (OBJF_MAPPED): Delete.
12736 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12737 (free_objfile) [USE_MMALLOC]: Ditto.
12738 (open_existing_mapped_file): Delete function.
12739 (open_mapped_file): Delete function.
12740 (map_to_file): Delete function.
12741
2dbd5e30
KB
127422004-01-19 Kevin Buettner <kevinb@redhat.com>
12743
12744 * infrun.c (step_into_function): Account for possible breakpoint
12745 adjustment when computing ``stop_func_start''.
12746
437b434f
KB
127472004-01-19 Kevin Buettner <kevinb@redhat.com>
12748
12749 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12750 the region size against the size of a pointer, not the size of
12751 a register as given by DEPRECATED_REGISTER_SIZE.
12752
55fb0713
AC
127532004-01-19 Andrew Cagney <cagney@redhat.com>
12754
12755 * tui/tui-regs.h: Include "tui-data.h".
12756 (tuiFirstRegElementNoInLine): Delete declaration.
12757 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12758 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12759 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12760 (tui_calculate_regs_column_count): Rename
12761 tuiCalculateRegsColumnCount.
12762 (tui_check_register_values): Rename tuiCheckRegisterValues.
12763 (tui_show_registers): Rename tuiShowRegisters.
12764 (tui_display_registers_from_line): Rename
12765 tuiDisplayRegistersFromLine.
12766 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12767 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12768 (tui_first_reg_element_no_inline): Rename
12769 tuiFirstRegElementNoInLine.
12770 * tui/tui-data.h: Update copyright.
12771 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12772 * tui/tui-windata.c: Update copyright, update references.
12773 * tui/tui-regs.c: Update copyright, update references.
12774 * tui/tui-win.c: Update copyright, update references.
12775 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12776
cebe9500
AC
127772004-01-18 Andrew Cagney <cagney@redhat.com>
12778
bcdf1568
AC
12779 * tui/tui-io.c: Update copyright.
12780 (key_is_end_sequence, key_is_backspace): New functions.
12781 (key_is_command_char, key_is_start_sequence): New function.
12782 (tui_getc): Update references.
12783 * tui/tui-io.h: Update copyright.
12784 (m_tuiStartNewLine): Delete macro.
12785 (m_isBackspace, m_isDeleteChar): Delete macros.
12786 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12787 (m_isNextPage, m_isPrevPage): Delete macros.
12788 (m_isLeftArrow, m_isRightArrow): Delete macros.
12789 (m_isXdbStyleCommandChar): Delete macro.
12790 (key_is_start_sequence): Declare, replace m_isStartSequence.
12791 (key_is_end_sequence): Declare, replace m_isEndSequence.
12792 (key_is_backspace): Declare ,replace m_isBackspace.
12793 (key_is_command_char): Declare, replace m_isCommandChar.
12794 * tui/tui-command.c: Update copyright.
12795 (tuiDispatchCtrlChar): Update references.
12796
130d87e6
AC
12797 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12798 tuiSourceWin.h.
12799
d7b2e967
AC
12800 * tui/tui-command.c: Rename tui/tuiCommand.c.
12801 * tui/tui-command.h: Rename tui/tuiCommand.h.
12802 * tui/tui-data.c: Rename tui/tuiData.c.
12803 * tui/tui-data.h: Rename tui/tuiData.h.
12804 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12805 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12806 * tui/tui-io.c: Rename tui/tuiIO.c.
12807 * tui/tui-io.h: Rename tui/tuiIO.h.
12808 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12809 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12810 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12811 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12812 * tui/tui-source.c: Rename tui/tuiSource.c.
12813 * tui/tui-source.h: Rename tui/tuiSource.h.
12814 * tui/tui-stack.c: Rename tui/tuiStack.c.
12815 * tui/tui-stack.h: Rename tui/tuiStack.h.
12816 * tui/tui-win.c: Rename tui/tuiWin.c.
12817 * tui/tui-win.h: Rename tui/tuiWin.h.
12818 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12819 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12820 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12821 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12822 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12823 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12824 * tui/tui-file.c: Update includes.
12825 * tui/tui-hooks.c: Update includes.
12826 * tui/tui-interp.c: Update includes.
12827 * tui/tui.c: Update includes.
12828 * Makefile.in: Update all tui/ dependencies.
12829 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12830
b2100910
AC
12831 * Makefile.in: Update copyright. Update dependencies.
12832
cebe9500
AC
12833 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12834 problem.
12835
c6f0559b
AC
128362004-01-18 Andrew Cagney <cagney@redhat.com>
12837
43e9390b
AC
12838 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12839 instead of register_gdbarch_init.
12840
c6f0559b
AC
12841 * remote-sds.c (tohex): Delete unused function. Update copyright.
12842 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12843 * v850-tdep.c (v850_register_virtual_size): Ditto.
12844 * target.c (normal_target_post_startup_inferior): Ditto.
12845 * source.c (ambiguous_line_spec): Ditto.
12846 * remote.c (adapt_remote_get_threadinfo): Ditto.
12847 * mi/mi-out.c (out_field_fmt): Ditto.
12848 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12849 (output_control_change_notification): Ditto.
12850 * m68k-tdep.c (m68k_register_byte): Ditto.
12851 (m68k_remote_breakpoint_from_pc): Ditto.
12852 * ui-out.c (init_ui_out_state): Delete unused declaration.
12853 * stabsread.c (search_value): Ditto.
12854 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12855 * maint.c (print_section_table): Ditto.
12856 * infrun.c (set_follow_fork_mode_command): Ditto.
12857
a8504492
MK
128582004-01-18 Mark Kettenis <kettenis@gnu.org>
12859
12860 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12861 DW_CFA_def_cfa_exporession. Add support for
12862 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12863 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12864
0bd8997e
AC
128652004-01-18 Andrew Cagney <cagney@redhat.com>
12866
12867 * ocd.c: Update copyright.
12868 (bdm_read_register_command): Delete unused function.
12869 (_initialize_remote_ocd): Delete commented out reference.
12870 (get_quoted_char, reset_packet): Delete #if0ed function.
12871 (output_packet, put_quoted_char): Delete #if0ed function.
12872 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12873 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12874 (BDM_BREAKPOINT): Delete #if0ed macro.
12875 (remote_timeout): Delete #if0ed variable.
12876
31bb40e4
MK
128772004-01-18 Mark Kettenis <kettenis@gnu.org>
12878
12879 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12880 (core-sol2.o): Remove dependency.
12881 * core-sol2.c: Remove file.
12882
887432a5
AC
128832004-01-17 Andrew Cagney <cagney@redhat.com>
12884
12885 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12886 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12887 enums.
12888
29182b13
DJ
128892004-01-17 Daniel Jacobowitz <drow@mvista.com>
12890
12891 * remote.c: Update copyright years.
12892
2963ee1d
DJ
128932004-01-17 Daniel Jacobowitz <drow@mvista.com>
12894
12895 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12896
79d45cd4
AC
128972004-01-17 Andrew Cagney <cagney@redhat.com>
12898
ee300cd4
AC
12899 * mdebugread.c: Update copyright.
12900 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12901 (parse_type, parse_procedure): Ditto.
12902 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12903
fcacc9c2
AC
12904 * cris-tdep.c (cris_store_struct_return): Put back accidently
12905 deleted function.
12906
79d45cd4
AC
12907 * gdbarch.sh: Update copyright year.
12908 * gdbarch.h, gdbarch.c: Re-generate.
12909
b263358a
DJ
129102004-01-17 Daniel Jacobowitz <drow@mvista.com>
12911
12912 Suggested by George Anzinger.
12913 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12914 correct stack offset. Include unknown opcode numbers in the error
12915 message.
12916
931aecf5
AC
129172004-01-17 Andrew Cagney <cagney@redhat.com>
12918
12919 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12920 extract_struct_value_address, i386 does not set it.
12921 * sparc64-tdep.c (sparc64_init_abi): Do not set
12922 extract_struct_value_address, never called.
12923 (sparc64_extract_struct_value_address): Delete function.
12924 * m68hc11-tdep.c: Update copyright.
12925 (m68hc11_gdbarch_init): Delete redundant assignment of
12926 extract_struct_value_address.
12927 * i386-tdep.c: Update copyright.
12928 (i386_gdbarch_init): Do not set extract_struct_value_address,
12929 never called.
12930 (i386_extract_struct_value_address): Delete function.
12931 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12932 extract_struct_value_address, never called.
12933 (sparc32_extract_struct_value_address): #if 0 function. Add
12934 comments explaining its future.
12935
756fe439
DJ
129362004-01-17 Daniel Jacobowitz <drow@mvista.com>
12937
12938 * arm-tdep.c (arm_write_pc): New function.
12939 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12940
e74f0f02
DJ
129412004-01-17 Daniel Jacobowitz <drow@mvista.com>
12942
12943 * breakpoint.c (must_shift_inst_regs): Delete.
12944 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12945 and SHIFT_INST_REGS.
12946 * infcmd.c (step_1, step_1_continuation): Delete references to
12947 SHIFT_INST_REGS.
12948 * infrun.c (keep_going): Likewise.
12949 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12950 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12951
b6cb9035
AC
129522004-01-17 Andrew Cagney <cagney@redhat.com>
12953
444a1e2e
AC
12954 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12955 * gdbarch.h, gdbarch.c: Re-generate.
12956 * infcmd.c (print_return_value): Delete reference to
12957 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12958
def7e6ed
AC
12959 * cris-tdep.c (cris_gdbarch_init): Do not set
12960 deprecated_extract_struct_value_address.
12961
07be497a
AC
12962 * xstormy16-tdep.c: Update copyright.
12963 (xstormy16_extract_struct_value_address): Update to current
12964 extract struct value address interface.
12965 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12966 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12967 current extract struct value address interface.
12968 (sh64_gdbarch_init): Set extract_struct_value_address.
12969
6b4d5c91
AC
12970 * cris-tdep.c: Update copyright.
12971 (cris_extract_struct_value_address): Delete function.
12972 (struct_return_address): Delete variable.
12973 (cris_store_struct_return): Do not set struct_return_address.
12974
464e0365
AC
12975 * mcore-tdep.c: Update copyright.
12976 (mcore_extract_struct_value_address): Delete function. Update
12977 comments.
12978 (mcore_gdbarch_init): Update.
12979 * mn10300-tdep.c: Update copyright.
12980 (mn10300_extract_struct_value_address): Delete function.
12981 (mn10300_gdbarch_init): Update.
12982 * v850-tdep.c: Update copyright.
12983 (v850_extract_struct_value_address): Delete.
12984 (v850_gdbarch_init): Update.
12985 * ns32k-tdep.c: Update copyright.
12986 (ns32k_extract_struct_value_address): Delete.
12987 (ns32k_gdbarch_init): Update.
12988 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12989 (hppa_gdbarch_init): Update.
12990 * vax-tdep.c: Update copyright.
12991 (vax_extract_struct_value_address): Delete.
12992 (vax_gdbarch_init): Update.
12993
afb18d0f
AC
12994 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12995 * gdbarch.h, gdbarch.c: Re-generate.
12996 * procfs.c (procfs_fetch_registers): Delete reference to
12997 DEPRECATED_NPC_REGNUM.
12998 (procfs_store_registers): Ditto.
12999 * regcache.c (generic_target_write_pc): Simplify.
13000 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13001
a698f53e
AC
13002 * core-sol2.c (fetch_core_registers): Replace
13003 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13004
adc11376
AC
13005 * hppa-tdep.c: Update copyright year.
13006 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13007 NPC_REGNUM.
13008 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13009
b6cb9035
AC
13010 * mips-tdep.c (mips_write_pc): New function.
13011 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13012 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13013 (mips_find_saved_regs, mips_software_single_step: Ditto.
13014 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13015 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13016
6d82d43b
AC
130172004-01-17 Andrew Cagney <cagney@redhat.com>
13018
13019 * mips-tdep.c: Re-indent. Group functions by ABI.
13020
71bd6bd4
AC
130212004-01-17 Andrew Cagney <cagney@redhat.com>
13022
13023 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13024 * gdbarch.c: Re-generate.
13025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13026 DECR_PC_AFTER_BREAK to zero.
13027 * vax-tdep.c (vax_gdbarch_init): Ditto.
13028 * v850-tdep.c (v850_gdbarch_init): Ditto.
13029 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13030 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13031 * sh-tdep.c (sh_gdbarch_init): Ditto.
13032 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13033 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13034 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13035 * mips-tdep.c (mips_gdbarch_init): Ditto.
13036 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13038 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13039 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13040 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13041 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13042 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13043 * frv-tdep.c (frv_gdbarch_init): Ditto.
13044 * cris-tdep.c (cris_gdbarch_init): Ditto.
13045 * avr-tdep.c (avr_gdbarch_init): Ditto.
13046 * arm-tdep.c (arm_gdbarch_init): Ditto.
13047 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13048
a02abb62
JB
130492004-01-17 J. Brobecker <brobecker@gnat.com>
13050
13051 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13052 Delete, no longer used.
13053 (read_subrange_type): New function, mostly extracted from
13054 read_array_type().
13055 (read_array_type): Replace extracted code by call to
13056 read_subrange_type().
13057 (dwarf2_get_attr_constant_value): New function.
13058 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13059 (add_partial_symbol): Likewise.
13060 (process_die): Likewise.
13061 (new_symbol): Likewise.
13062 (read_type_die): Likewise.
13063
cf5b2f1b
AC
130642004-01-16 Andrew Cagney <cagney@redhat.com>
13065
13066 * symfile.c: Update copyright year.
13067 (compare_symbols): Delete unused function.
13068 * stabsread.c: Update copyright year.
13069 (lrs_general_complaint): Delete unused function.
13070 (ref_search_value): Ditto.
13071 (get_substring): Delete declaration.
13072 * sh64-tdep.c: Update copyright year.
13073 (sh64_get_gdb_regnum): Delete unused function.
13074 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13075 Delete unused function.
13076
d33b9831
MK
130772004-01-17 Mark Kettenis <kettenis@gnu.org>
13078
13079 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13080 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13081
7aea86e6
AC
130822004-01-16 Andrew Cagney <cagney@redhat.com>
13083
13084 Changes from Peter Schauer.
13085 * rs6000-tdep.c: Update copyright year.
13086 (rs6000_push_dummy_call): Update the stack pointer before
13087 accessing the corresponding stack region.
13088 * rs6000-nat.c: Update copyright year.
13089 (set_host_arch): Set "info.abfd" to "exec_bfd".
13090
26b0da32
MK
130912004-01-15 Mark Kettenis <kettenis@gnu.org>
13092
13093 * blockframe.c: Update copyright year.
13094 (inside_entry_func): Don't treat a zero PC specially.
13095
86fbe6cc
EZ
130962004-01-14 Elena Zannoni <ezannoni@redhat.com>
13097
13098 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13099 variable.
13100 (gcore_create_callback): Ditto. Skip any memory segment that has
13101 no permissions set.
13102
63d06c5c
DC
131032004-01-14 David Carlton <carlton@kealia.com>
13104
13105 Change symbols for C++ nested types to contain the fully qualified
13106 name, if possible. (At least in the DWARF-2 case.) Partial fix
13107 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13108 c++/895.
13109 * c-exp.y (qualified_type): Handle types nested within classes.
13110 * cp-namespace.c: Update comments.
13111 (cp_set_block_scope): Delete #if 0.
13112 (cp_lookup_nested_type): Handle types nested within classes.
13113 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13114 when appropriate.
13115 (add_partial_symbol): Add the name of the enclosing namespace to
13116 types.
13117 (pdi_needs_namespace): New.
13118 (add_partial_namespace): Tweak comment.
13119 (add_partial_structure): New.
13120 (psymtab_to_symtab_1): Initialize processing_current_prefix
13121 here...
13122 (process_die): instead of here.
13123 (read_structure_scope): Try to figure out the name of the class or
13124 namespace that the structure might be defined within.
13125 (read_enumeration): Generate fully-qualified names, if possible.
13126 (read_namespace): Don't set name to NULL.
13127 (die_specification): New.
13128 (new_symbol): Generate fully-qualified names for types.
13129 (read_type_die): Determine appropriate prefix.
13130 (determine_prefix): New.
13131 (typename_concat): New.
13132 (class_name): New.
13133 * valops.c (value_aggregate_elt): Pass NOSIDE to
13134 value_struct_elt_for_reference.
13135 (value_struct_elt_for_reference): Make static, add NOSIDE
13136 parameter, call value_maybe_namespace_elt as a last resort.
13137 (value_namespace_elt): Break out code into
13138 value_maybe_namespace_elt.
13139 (value_maybe_namespace_elt): New.
13140
87783b8b
AC
131412004-01-12 Andrew Cagney <cagney@redhat.com>
13142
13143 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13144 cooked floating-point registers.
13145 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13146 and value_to_register.
13147
6503b91e
AC
131482004-01-13 Andrew Cagney <cagney@redhat.com>
13149
13150 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13151 * gdbarch.c: Re-generate.
13152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13153 FUNCTION_START_OFFSET.
13154 * v850-tdep.c (v850_gdbarch_init): Ditto.
13155 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13156 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13157 * sh-tdep.c (sh_gdbarch_init): Ditto.
13158 * s390-tdep.c (s390_gdbarch_init): Ditto.
13159 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13160 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13162 * mips-tdep.c (mips_gdbarch_init): Ditto.
13163 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13164 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13166 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13167 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13168 * i386-tdep.c (i386_gdbarch_init): Ditto.
13169 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13170 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13171 * frv-tdep.c (frv_gdbarch_init): Ditto.
13172 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13173 * cris-tdep.c (cris_gdbarch_init): Ditto.
13174 * avr-tdep.c (avr_gdbarch_init): Ditto.
13175 * arm-tdep.c (arm_gdbarch_init): Ditto.
13176 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13177
ea1dd7bc
DJ
131782004-01-13 Daniel Jacobowitz <drow@mvista.com>
13179
13180 * infrun.c (follow_fork_mode_ask): Remove.
13181 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13182 (follow_fork): Simplify and remove internal error for
13183 follow_fork_mode_ask.
13184 (_initialize_infrun): Update "set follow-fork-mode" help text.
13185
0f0cffd2
AC
131862004-01-13 Andrew Cagney <cagney@redhat.com>
13187
13188 * configure.in: Update copyright year.
13189 (build_warnings): Add -Wunused-label.
13190 * configure: Re-generate.
13191
de38af99
AC
131922004-01-12 Andrew Cagney <cagney@redhat.com>
13193
954a7fba
AC
13194 * exec.h (exec_ops): Make "extern".
13195
de38af99
AC
13196 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13197 the function is void.
13198 (mips_pseudo_register_write): Ditto.
13199
1a111ce3
AC
132002004-01-12 Andrew Cagney <cagney@redhat.com>
13201
13202 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13203 call. Never defined.
13204 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13205 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13206 (struct sparc_gregset, struct regcache): Ditto.
13207 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13208
48efe704
AC
132092004-01-12 Andrew Cagney <cagney@redhat.com>
13210
13211 * mi/ChangeLog: Delete file. Renamed to ...
13212 * mi/ChangeLog-1999-2003: New file.
13213 * tui/ChangeLog: Delete file. Renamed to ...
13214 * tui/ChangeLog-1998-2003: New file.
fe61caab 13215
a54124c5
MK
132162004-01-11 Mark Kettenis <kettenis@gnu.org>
13217
2ca62865
MK
13218 * sparc64nbsd-tdep.c: Include "regset.h".
13219 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13220 Remove variables.
13221 (fetch_core_registers): Remove function.
13222 (sparc64nbsd_core_fns): Remove variable.
13223 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13224 functions.
13225 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13226 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13227 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13228
ca9d58e9
MK
13229 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13230 sparc_extract_struct_value_address.
13231 (sparc32_gdbarch_init): Set extract_struct_value_address.
13232 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13233 function.
13234 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13235 return_value_on_stack.
13236
3cc87ec0
MK
13237 * NEWS: Mention that %cs and %ss have been added to the AMD64
13238 configurations
13239
5bf00f29
MK
13240 * frame.c: Update copyright year.
13241 (get_prev_frame): Improve comment.
13242
4f7ec84e
MK
13243 * sparc64fbsd-tdep.c: Include "regset.h".
13244 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13245 Remove variables.
13246 (fetch_core_registers): Remove function.
13247 (sparc64fbsd_core_fns): Remove variable.
13248 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13249 functions.
13250 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13251 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13252 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13253
4e7b0cd3
MK
13254 * sparcnbsd-tdep.c: Include "regset.h".
13255 (fetch_core_registers): Remove function.
13256 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13257 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13258 functions.
13259 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13260 TDEP->fpregset.
46b58ce9 13261 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13262
a54124c5
MK
13263 * sparc-tdep.h (struct regset): Provide opaque declaration.
13264 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13265 fpregset and sizeof_fpregset members.
13266 * sparc-tdep.c (struct regset): Provide opaque declaration.
13267 (sparc_regset_from_core_section): New function.
13268 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13269 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13270 Set regset_from_core_section when appropriate.
13271
29ff87c5
MK
132722004-01-10 Mark Kettenis <kettenis@gnu.org>
13273
79b1ab3d
MK
13274 * x86-64-tdep.c (amd64_non_pod_p): New function.
13275 (amd64_classify_aggregate): Return class memory for non-POD
13276 C++ structure types.
13277
6470d250
MK
13278 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13279 argument. Use it to reserve a register if necessary.
13280 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13281 amd64_push_arguments.
13282
562c50c2
MK
13283 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13284
af233647
MK
13285 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13286 register numbers in comments.
13287 * x86-64-tdep.h: Update copyright year.
13288 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13289 Adjust for addition of %cs and %ss.
13290 * amd64fbsd-nat.c: Update copyright year.
13291 (reg_offset): Add register offsets for %cs and %ss.
13292 * amd64fbsd-tdep.c: Update copyright year.
13293 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13294 (amd64fbsd_sc_reg_offset): Likewise.
13295 * x86-64-linux-nat.c: Update copyright year.
13296 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13297 and %ss.
13298 * amd64nbsd-nat.c: Update copyright year.
13299 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13300 * amd64nbsd-tdep.c: Update copyright year.
13301 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13302 * x86-64-linux-tdep.c: Update copyright year.
13303 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13304 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13305 * regformats/reg-x86-64.dat: Add %cs and %ss.
13306
29ff87c5
MK
13307 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13308 variables to prevent long lines. Update comments to reflect
13309 reality.
13310
38d518c9
EZ
133112004-01-09 David Carlton <carlton@kealia.com>
13312
13313 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13314 * dwarf2read.c (read_namespace): Pull out name-generating code
13315 into namespace_name. Rename previous_namespace to previous_prefix
13316 and processing_current_namespace to processing_current_prefix..
13317 (namespace_name): New function.
13318 (add_partial_symbol): Substitute uses of pdi->name with
13319 actual_name.
13320 * cp-support.h: Rename processing_current_namespace to
13321 processing_current_prefix.
13322 Update copyright year.
13323 * cp-namespace.c: Rename processing_current_namespace to
13324 processing_current_prefix.
13325 Update copyright year.
fe61caab 13326
1e4728e7
AC
133272004-01-09 Andrew Cagney <cagney@redhat.com>
13328
13329 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13330
c77c642a
MK
133312004-01-09 Mark Kettenis <kettenis@gnu.org>
13332
13333 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13334 complaining.
13335 (process_one_symbol): Deal with N_PATCH stabs.
13336
b44e9041
EZ
133372004-01-09 Elena Zannoni <ezannoni@redhat.com>
13338
13339 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13340 ifdeffed code.
13341 Update copyright year.
38d518c9 13342
eccfb640
MC
133432004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13344
13345 * config/pa/tm-hppa.h: Update extern declarations for
13346 hppa32_hpux_frame_saved_pc_in_sigtramp,
13347 hppa32_hpux_frame_base_before_sigtramp, and
13348 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13349
848c5feb
MC
133502004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13351
13352 * config/pa/tm-hppah.h: Update copyright years.
13353
3cc5d663
AC
133542004-01-08 Andrew Cagney <cagney@redhat.com>
13355
13356 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13357 (mips_o32_reg_struct_has_addr): Delete function.
13358 (mips_gdbarch_init): Update.
13359 (mips_extract_struct_value_address): Delete function.
13360
bfec0b41
JJ
133612004-01-08 David Mosberger <davidm@hpl.hp.com>
13362
13363 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13364 reality.
13365
16e109ca
AC
133662004-01-07 Andrew Cagney <cagney@redhat.com>
13367
6214a8a1
AC
13368 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13369 architecture's elf flags (when available).
13370
8d5838b5
AC
13371 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13372 FPU to the start, check the MIPS FPU when looking for an old
13373 architecture.
13374 (set_mipsfpu_single_command): Update the architecture.
13375 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13376
480d3dd2
AC
13377 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13378 (mips_mask_address_p): Add "tdep" parameter.
13379 (show_mask_address, mips_addr_bits_remove): Update.
13380 (mips_dump_tdep): Update.
13381 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13382 (MIPS_STACK_ARGSIZE): Delete macro.
13383 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13384 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13385 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13386 (mips_dump_tdep): Update.
13387 (MIPS_SAVED_REGSIZE): Delete macro.
13388 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13389 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13390 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13391 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13392 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13393 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13394 (mips_pop_frame, return_value_location): Update.
13395 (mips_n32n64_return_value, mips_dump_tdep): Update.
13396
ec03c1ac
AC
13397 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13398 MIPS ABI.
13399
16e109ca
AC
13400 * mips-tdep.c: Update copyright.
13401 (mips_gdbarch_init): Merge two code blocks handling the register
13402 name and number layout.
13403
15255275
MS
134042004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13405
13406 * tracepoint.c (validate_actionline): Fix segv at EOF
13407
9f9057da
MC
134082004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13409
13410 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13411 properly for static fields.
13412
0127c0d3 134132004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13414 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13415
13416 * disasm.c: Update copyright to include 2004.
13417 (do_mixed_source_and_assembly): For uiout asm list
13418 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13419 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13420 the tuple/list. Move check for whether to close off the
fe61caab 13421 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13422 on each loop iteration.
13423
5269965e
AC
134242004-01-05 Andrew Cagney <cagney@redhat.com>
13425
54f1137d
AC
13426 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13427 should be a switch case and not a label.
13428 * mips-tdep.c (mips32_next_pc): Delete unused labels
13429 "greater_equal_branch" and "less_zero_branch".
13430 * jv-valprint.c (java_print_value_fields): Delete unused label
13431 "flush_it".
13432
5269965e
AC
13433 * target.c (unpush_target): Only close a target that is in the
13434 target stack.
13435
dbc22fa1
MK
134362004-01-05 Mark Kettenis <kettenis@gnu.org>
13437
9515395e
MK
13438 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13439 address from [sp + 64] instead of %o2.
13440
dbc22fa1
MK
13441 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13442 fixes PR backtrace/1476.
13443
5439edaa
AC
134442004-01-05 Andrew Cagney <cagney@redhat.com>
13445
13446 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13447 move to start of file.
13448 * i386-tdep.h (struct regcache): Add opaque declaration.
13449 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13450 declaration.
13451 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13452 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13453 * win32-nat.c (fake_create_process): Use ISO C style definition.
13454 * stabsread.c (define_symbol): Delete #ifndef
13455 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13456 stabs_argument_has_addr call, macro never defined.
13457
19061abe
MC
134582004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13459
13460 * op50-rom.c: Delete.
13461 * w89k-rom.c: Delete.
13462 * Makefile.in: Remove references.
13463
e53bef9f
MK
134642004-01-04 Mark Kettenis <kettenis@gnu.org>
13465
13466 * x86-64-tdep.c: Update copyright year.
13467 (struct amd64_register_info): Rename from x86_64_register_info.
13468 (amd64_register_info): Rename from x86_64_register_info.
13469 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13470 (amd64_register_name): Rename from x86_64_register_name.
13471 (amd64_register_type): Rename from x86_64_register_type.
13472 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13473 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13474 (amd64_dwarf_reg_to_regnum): Rename from
13475 x86_64_dwarf_reg_to_regnum.
13476 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13477 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13478 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13479 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13480 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13481 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13482 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13483 (amd64_frame_cache): Rename from x86_64_frame_cache.
13484 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13485 (amd64_frame_prev_register): Rename from
13486 x86_64_frame_prev_register.
13487 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13488 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13489 (amd64_sigtramp_frame_cache): Rename from
13490 x86_64_sigtramp_frame_cache.
13491 (amd64_sigtramp_frame_prev_register): Rename from
13492 x86_64_sigtramp_frame_prev_register.
13493 (amd64_sigtramp_frame_unwind): Rename from
13494 x86_64_sigtramp_frame_unwind.
13495 (amd64_sigtramp_frame_sniffer): Rename from
13496 x86_64_sigtramp_frame_sniffer.
13497 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13498 (amd64_frame_base): Rename from x86_64_frame_base.
13499 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13500 (amd64_frame_align): Rename from x86_64_frame_align.
13501 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13502 (amd64_regset_from_core_section): Rename from
13503 x86_64_regset_from_core_section.
13504 (x86_64_init_abi): Update comments.
13505
fca6aa58
NR
135062004-01-04 Nick Roberts <nick@nick.uklinux.net>
13507
13508 * MAINTAINERS (write after approval): Add myself.
13509
8ada74e3
MK
135102004-01-04 Mark Kettenis <kettenis@gnu.org>
13511
13512 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13513 `float' arguments.
13514
5154b0cd
MK
135152004-01-04 Mark Kettenis <kettenis@gnu.org>
13516
13517 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13518 such that it mentions a specific version of GCC that exhibits this
13519 bug.
13520
fb316966
MK
135212004-01-03 Mark Kettenis <kettenis@gnu.org>
13522
200cc553
MK
13523 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13524 structure that has a single `float' member, store it in %f1 in
13525 addition to %f0.
13526
e226a4a0
MK
13527 * sparc-sol2-nat.c: Add missing '\'.
13528
b9d4c5ed
MK
13529 * sparc-tdep.c (sparc32_return_value): New function.
13530 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13531 Remove functions.
13532 (sparc32_gdbarch_init): Set return_value, don't set
13533 extract_return_value, store_return_value, use_struct_convention
13534 and return_value_on_stack.
13535
fb316966
MK
13536 * sparc-sol2-nat.c: Add missing ')'.
13537
1af510a8
JB
135382004-01-03 J. Brobecker <brobecker@gnat.com>
13539
13540 * infrun.c (handle_step_into_function): New function.
13541 (handle_inferior_event): Extract out some code into the new
13542 function above.
13543
5cf4d23a
JB
135442004-01-03 J. Brobecker <brobecker@gnat.com>
13545
13546 * infrun.c (handle_inferior_event): Move the declaration of
13547 real_stop_pc inside the if blocks where it is used.
13548
60af1db2
MK
135492004-01-03 Mark Kettenis <kettenis@gnu.org>
13550
13551 * sparc64-tdep.c (sparc64_16_byte_align_p)
13552 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13553 Use check_typedef to get subtypes of structures and unions.
13554 (sparc64_store_return_value): Fix calculation of the appropriate
13555 offset into VALBUF when storing a structure or union.
13556 (sparc64_return_value): New function.
13557 (sparc64_use_struct_convention): Remove function.
13558 (sparc64_init_abi): Set return_value, don't set
13559 extract_return_value, store_return_value and
13560 use_struct_convention.
13561
1a901d3f
EZ
135622004-01-03 Eli Zaretskii <eliz@elta.co.il>
13563
13564 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13565 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13566 gdb/config/alpha/xm-alphaosf.h,
13567 gdb/config/powerpc/tm-ppcle-eabi.h,
13568 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13569 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13570 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13571 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13572 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13573 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13574 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13575 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13576 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13577 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13578 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13579 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13580 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13581 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13582 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13583 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13584 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13585 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13586 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13587 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13588 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13589 Remove lines for .cvsignore files.
13590
ef52e463
JB
135912004-01-03 J. Brobecker <brobecker@gnat.com>
13592
13593 * infrun.c: Back out the previous change.
13594
cb1bf9dc
MK
135952004-01-03 Mark Kettenis <kettenis@gnu.org>
13596
f0424ef6
MK
13597 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13598 sparc-*-sunos4* to the list of REMOVED configurations.
13599
cb1bf9dc
MK
13600 * configure.tgt: Add back sparc-*-vxworks*.
13601 * remote-vxsparc.c: Remove all includes except for "defs.h",
13602 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13603 Include "sparc-tdep.h".
13604 (SPARC_R_G1): New define.
13605 (vxsparc_gregset): New variable.
13606 (ext_format_sparc): Remove extern declaration.
13607 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13608 sparc32_supply_fpregset.
13609 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13610 sparc_collect_rwindow and sparc32_collect_fpregset.
13611 * config/sparc/tm-vxworks.h: New file, based on recently removed
13612 tm-vxsparc.h.
13613 * config/sparc/vxworks.mt: New file, based on recently removed
13614 vxworks.mt.
fe61caab 13615
5e938f9f
JB
136162004-01-03 J. Brobecker <brobecker@gnat.com>
13617
13618 * infrun.c (handle_step_into_function): New function.
13619 (handle_inferior_event): Extract out some code into the new
13620 function above.
13621
386c036b
MK
136222004-01-02 Mark Kettenis <kettenis@gnu.org>
13623
13624 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13625 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13626 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13627 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13628 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13629 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13630 (sparc_nat_h): New variable.
13631 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13632 (tm-sun4os4.h): Remove dependency.
13633 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13634 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13635 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13636 sparc-tdep.o): Update dependencies.
13637 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13638 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13639 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13640 dependencies.
13641 * configure.host: Remove existing sparc-*-lynxos*,
13642 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13643 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13644 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13645 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13646 triplets.
13647 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13648 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13649 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13650 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13651 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13652 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13653 sparc64-*-solaris2* and sparc64-*-* triplets.
13654 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13655 "symtab.h" and "objfiles.h".
13656 (BIAS): Remove define.
13657 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13658 (X_DISP19): Remove macros.
13659 (sparc_fetch_instruction): Remove function.
13660 (struct gdbarch_tdep): Remove definition.
13661 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13662 (sparc_breakpoint_from_pc): Remove function.
13663 (struct sparc64_frame_cache): Remove definition.
13664 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13665 sparc64_unwind_pc): Remove functions.
13666 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13667 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13668 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13669 (sparc64_frame_cache): Change return type to `struct
13670 sparc_frame_cache *'. Simply call sparc_frame_cache.
13671 (sparc64_frame_this_id, sparc64_frame_prev_register,
13672 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13673 instead of `struct sparc64_frame_cache.
13674 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13675 sparc_analyze_control_transfer, sparc_software_single_step,
13676 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13677 _initialize_sparc64_tdep): Remove functions.
13678 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13679 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13680 macros.
13681 (sparc64_supply_gregset, sparc64_collect_gregset,
13682 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13683 (sparc64_init_abi): New function.
13684 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13685 inclusion guard. Include "sparc-tdep.h".
13686 (BIAS): Define.
13687 (r_tstate_offset, r_fprs_offset): New defines.
13688 (enum sparc_regnum): Remove defenition.
13689 (enum sparc64_regnum): Reformat.
13690 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13691 (sparc64_init_abi, sparc64_supply_gregset,
13692 sparc64_collect_gregset, sparc64_supply_fpregset,
13693 sparc64_collect_fpregset): New prototypes.
13694 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13695 Add extern declarations.
13696 (sparc64_sol2_init_abi): New prototype.
13697 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13698 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13699 prototypes.
13700 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13701 "sparnbsd-nat.h".
13702 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13703 functions.
13704 (_initialize_sparc64fbsd_nat): Remove initialization of
13705 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13706 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13707 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13708 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13709 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13710 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13711 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13712 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13713 (sparc64fbsd_r_y_offset): Remove variables.
13714 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13715 Make static and const.
13716 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13717 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13718 functions.
13719 (sparc64fbsd_gregset): New variable.
13720 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13721 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13722 and sparc64_supply_fpregset.
13723 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13724 (sparc64fbsd_sigtramp_frame_this_id)
13725 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13726 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13727 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13728 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13729 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13730 * sparcnbsd-tdep.c: Update copyright year. Include
13731 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13732 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13733 "value.h" and "sparcnbsd-tdep.h".
13734 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13735 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13736 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13737 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13738 defines.
13739 (sparcnbsd_gregset): New variable.
13740 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13741 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13742 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13743 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13744 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13745 variables.
13746 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13747 (sparc32nbsd_sigcontext_frame_this_id)
13748 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13749 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13750 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13751 (sparcnbsd_get_longjmp_target_32,
13752 sparcnbsd_get_longjmp_target_64): Remove functions.
13753 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13754 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13755 sparcnbsd_init_elf): Remove.
13756 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13757 (sparcnbsd_elf_init_abi): New functions.
13758 (_initialize_sparcnbsd_tdep): New prototype.
13759 (_initialize_sparnbsd_tdep): Update.
13760 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13761 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13762 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13763 * config/sparc/linux.mh: Update comment.
13764 (XM_FILE, HOST_IPC): Remove variables.
13765 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13766 sparc-linux-nat.o.
13767 * config/sparc/linux.mt: Update comment.
13768 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13769 * config/sparc/nbsd.mt: Reformat.
13770 * config/sparc/nbsd64.mh: Update comment.
13771 (NATDEPFILES): Add sparc-nat.o.
13772 * config/sparc/nbsd64.mt: Update comment.
13773 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13774 (TM_FILE): Set to tm-nbsd.h.
13775 * config/sparc/nbsdelf.mh: Update comment.
13776 (NATDEPFILES): Add sparc-nat.o.
13777 (XM_FILE): Delete.
13778 * config/sparc/nbsdaout.mh: Update comment.
13779 (NATDEPFILES): Add sparc-nat.o
13780 (XM_FILE): Delete.
13781 * config/sparc/nm-linux.h: Update copyright year. Don't include
13782 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13783 inclusion.
13784 (KERNEL_U_SIZE): Remove define.
13785 (kernel_u_size): Remove prototype.
13786 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13787 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13788 "regcache.h".
13789 (CHILD_PREPARE_TO_STORE): Remove define.
13790 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13791 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13792 sparcnbsd-nat.c: Rewrite files.
13793 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13794 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13795 sparcnbsd-tdep.h: Remove files.
13796 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13797 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13798 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13799 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13800 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13801 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13802 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13803 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13804 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13805 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13806 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13807 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13808 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13809 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13810 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13811 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13812 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13813 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13814 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13815
ee84457a
AC
138162004-01-02 Andrew Cagney <cagney@redhat.com>
13817
13818 From 2003-12-18 Kazuhiro Inaoka:
13819 * configure.host: Add m32r-linux target.
13820
0bc2134e
MC
138212004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13822
13823 * top.c (print_gdb_version): Update year to 2004.
13824
89a72f9c
MM
138252004-01-02 Mark Mitchell <mark@codesourcery.com>
13826
13827 * MAINTAINERS: Add myself to the write-after-approval category.
13828
86b013ed
DJ
138292004-01-02 Daniel Jacobowitz <drow@mvista.com>
13830
13831 From Bernardo Innocenti <bernie@develer.com>:
13832 * configure.tgt: Add uClinux target.
13833
e42c9534
AC
138342004-01-02 Andrew Cagney <cagney@redhat.com>
13835
13836 * utils.c (do_my_cleanups): Make static, add forward declaration.
13837 * defs.h (do_my_cleanups): Delete declaration.
13838
162467d3
EZ
138392004-01-02 Eli Zaretskii <eliz@elta.co.il>
13840
13841 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13842 bfd/ChangeLog-0203.
13843
78434e59
MK
138442004-01-02 Mark Kettenis <kettenis@gnu.org>
13845
13846 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13847 in <machine/reg.h>.
13848 * configure, config.in: Regenerate.
13849
48efe704
AC
13850For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13851tui/ChangeLog-1998-2003.
c906108c
SS
13852\f
13853Local Variables:
13854mode: change-log
13855left-margin: 8
13856fill-column: 74
13857version-control: never
13858End:
This page took 1.562063 seconds and 4 git commands to generate.