2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
2
3 * defs.h (fatal, vfatal): New function prototypes.
4 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
5 via catch_errors.
6 (backtrace_command): Change to call backtrace_command_stub via
7 catch_errors instead of calling backtrace_command_1 directly.
8 (backtrace_full_command): Ditto.
9 * utils.c (error_stream_1): New static function.
10 (verror): Change to call error_stream_1 instead of error_stream.
11 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
12 (vfatal, fatal): New functions.
13
14 2004-11-05 Andrew Cagney <cagney@gnu.org>
15
16 * stack.c (parse_frame_specification_1): Clear selected_frame_p
17 when not using selected frame.
18
19 2004-11-05 Mark Kettenis <kettenis@jive.nl>
20
21 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
22 personality routine in a CIE augmentation.
23
24 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
25
26 * stack.c (set_current_sal_from_frame): New function.
27 (print_args_stub): Use it.
28 (print_frame_info): Don't set sal here.
29
30 2004-11-04 Mark Kettenis <kettenis@gnu.org>
31
32 * dwarf2-frame.c (read_encoded_value): Change type of third
33 argument to `unsigned char *'. Add support for LEB128 encodings.
34
35 2004-11-04 Jim Blandy <jimb@redhat.com>
36
37 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
38 prevent cross-objfile references.
39 (make_cv_type): Doc fix. Don't create cross-objfile references,
40 even for stub types.
41 (replace_type): Add assertion to prevent cross-objfile references.
42 (check_typedef): Never resolve a stub type by copying over a type
43 from another file.
44
45 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
46
47 * Makefile.in (m32r-tdep.o): Update dependencies.
48 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
49 ABI-specific overrides.
50
51 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
52
53 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
54 unnecessary parallel execution bit.
55 (m32r_memory_remove_breakpoint): Ditto.
56 (m32r_breakpoint_from_pc): Update.
57
58 2004-11-03 Randolph Chung <tausq@debian.org>
59
60 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
61 frame_func_unwind to locate the unwind entry.
62 (hppa_frame_this_id): Likewise.
63
64 2004-11-03 Andrew Cagney <cagney@gnu.org>
65
66 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
67 packet, obsolete configurations, end-of-life deprecated_registers.
68
69 2004-11-02 Mark Kettenis <kettenis@gnu.org>
70
71 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
72 encodings as well as unsigned encodings.
73
74 2004-11-02 Andrew Cagney <cagney@gnu.org>
75
76 * value.h (COERCE_VARYING_ARRAY): Delete.
77 * valops.c (value_cast, value_slice): Delete use.
78 * valarith.c (value_subscript, value_concat): Delete use.
79
80 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
81
82 * NEWS: GDB understands GNAT Ada.
83
84 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
85
86 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
87 (amd64-sol2-tdep.o): Add dependencies.
88 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
89 config/i386/sol2-64.mt: New files.
90 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
91 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
92 (supply_gregset): Correct order of arguments to
93 amd64_supply_native_gregset.
94 (fill_gregset): Correct order of arguments to
95 amd64_collect_native_gregset.
96 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
97 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
98 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
99 for definition of NEW_PROC_API.
100 * configure: Regenerate.
101
102 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
103
104 * MAINTAINERS (Write After Approval): Add myself.
105
106 2004-11-01 Andrew Cagney <cagney@gnu.org>
107
108 * configure.tgt: Mark d10v-*-* as obsolete.
109 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
110
111 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
112
113 * values.c (modify_field): Correct handling of bit-fields that
114 don't fit in 32 bits. Use unsigned operations throughout and
115 simplify the code a bit. Document preconditions.
116
117 2004-10-31 Andrew Cagney <cagney@gnu.org>
118
119 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
120 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
121 (in_plt_section): Delete.
122
123 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
124 (mips_gdbarch_init): Do not set same.
125
126 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
127 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
128
129 * gdbarch.sh (in_solib_call_trampoline): Delete.
130 * gdbarch.h, gdbarch.c: Re-generate.
131
132 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
133 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
134 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
135 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
136 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
137
138 2004-10-31 Mark Kettenis <kettenis@gnu.org>
139
140 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
141 (mipsnbsd_fetch_inferior_registers): Rename from
142 fetch_inferior_registers. Make static.
143 (mipsnbsd_store_inferior_registers): Rename from
144 store_inferior_registers. Make static.
145 (_initialize_mipsnbsd_nat): New function and prototype.
146 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
147 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
148 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
149 inf-ptrace.o.
150
151 2004-10-31 Andrew Cagney <cagney@gnu.org>
152
153 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
154 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
155 delete corresponding unused function.
156 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
157 in_solib_call_trampoline.
158 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
159 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
160 * config/mips/tm-nbsd.h: Ditto.
161 * config/arm/tm-linux.h: Ditto.
162 * config/mips/tm-linux.h: Ditto.
163
164 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
165 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
166 in_solib_call_trampoline, delete corresponding unused function.
167 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
168 (vaxnbsd_aout_init_abi): Ditto.
169 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
170 (sparc32nbsd_aout_init_abi): Ditto.
171 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
172 (ppc_linux_init_abi): Ditto.
173 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
174 (ns32knbsd_init_abi_aout): Ditto.
175 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
176 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
177 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
178 (m68kbsd_aout_init_abi): Ditto.
179 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
180 (i386_cygwin_init_abi): Ditto.
181 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
182 (i386bsd_init_abi): Ditto.
183
184 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
185 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
186 isn't used by this architecture.
187 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
188 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
189 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
190 * s390-tdep.c (s390_gdbarch_init): Ditto.
191 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
192 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
193 * i386-tdep.c (i386_svr4_init_abi): Ditto.
194 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
195 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
196 * amd64-tdep.c (amd64_init_abi): Ditto.
197
198 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
199 in_solib_call_trampoline to its default value of
200 generic_in_solib_call_trampoline.
201 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
202 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
203 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
204 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
205 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
206 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
207
208 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
209
210 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
211
212 * config/mips/tm-mips.h: Delete file.
213 * remote-mips.c: Delete tm-mips.h from comment.
214 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
215 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
216 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
217 * config/mips/tm-linux.h: Don't include tm-mips.h.
218 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
219 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
220 * config/mips/tm-wince.h: Don't include.
221
222 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
223 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
224 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
225 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
226
227 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
228 * mdebugread.c (ecoff_relocate_efi): Delete function.
229 * objfiles.c (objfile_relocate): Delete #ifdef
230 MDEBUG_EFI_SYMBOL_NAME code.
231
232 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
233 Andrew Cagney <cagney@gnu.org>
234
235 * gdbarch.sh (single_step_through_delay): Add.
236 * gdbarch.h, gdbarch.c: Re-generate.
237 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
238 (mips_step_skips_delay): Delete.
239 * mips-tdep.c (mips_single_step_through_delay): Replace
240 mips_step_skips_delay.
241 (mips_gdbarch_init): Set single_step_through_delay.
242 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
243
244 2004-10-31 Mark Kettenis <kettenis@gnu.org>
245
246 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
247 from TRAMP_FRAME frame type.
248
249 2004-10-31 Andrew Cagney <cagney@gnu.org>
250
251 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
252
253 * mips-tdep.c (mips_ignore_helper): Delete.
254 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
255 * infrun.c (handle_inferior_event): Delete #ifdef
256 DEPRECATED_IGNORE_HELPER_CALL code.
257
258 * config/mips/tm-mips.h (RA_REGNUM): Delete.
259
260 2004-10-31 Mark Kettenis <kettenis@gnu.org>
261
262 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
263 (fill_fpregset): Do not compile for 64-bit systems.
264 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
265 * Makefile.in (i386-sol2-nat.o): Update dependencies.
266 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
267
268 2004-10-30 Andrew Cagney <cagney@gnu.org>
269
270 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
271 (struct mdebug_extra_func_info): Define.
272 * config/alpha/tm-alpha.h: Delete same.
273 * config/mips/tm-mips.h: Delete same.
274 * mdebugread.c: Delete same.
275 * Makefile.in: Update dependencies.
276 * mips-mdebug-tdep.c: Include "mdebugread.h".
277
278 * objfiles.c: Include "mdebugread.h".
279 * mdebugread.c: Include "mdebugread.h".
280 (ecoff_relocate_cfi): Delete.
281 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
282 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
283 * mdebugread.h (ecoff_relocate_efi): New file.
284 * Makefile.in: Update dependencies.
285
286 * mips-tdep.c (struct frame_extra_info): Delete.
287 (temp_proc_desc): Delete.
288
289 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
290 MIPS_EFI_SYMBOL_NAME.
291 (mips_extra_func_info_t, mips_extra_func_info): Delete.
292 (struct mdebug_extra_func_info): Replace struct
293 alpha_extra_func_info and alpha_extra_func_info_t.
294 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
295 MIPS_EFI_SYMBOL_NAME.
296 (struct mdebug_extra_func_info): Replace struct
297 alpha_extra_func_info and alpha_extra_func_info_t.
298 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
299 * mdebugread.c, alpha-mdebug-tdep.c:
300
301 Suggested by Mark Kettenis.
302 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
303 fields frame_adjust and high_addr.
304 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
305 (non_heuristic_proc_desc): Delete references.
306
307 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
308 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
309 * mips-tdep.c: Update.
310
311 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
312 (MIPS_LAST_EMBED_REGNUM): Add.
313 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
314 (LAST_EMBED_REGNUM): Delete.
315 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
316
317 * config/mips/tm-mips.h (PS_REGNUM): Delete.
318 * mips-tdep.h (MIPS_PS_REGNUM): Add.
319 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
320 * mips-linux-nat.c: Update.
321
322 * mips-tdep.h: Add comments on registers.
323 (MIPS_UNUSED_REGNUM): Define.
324 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
325 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
326 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
327 * mips-linux-nat.c, remote-mips.c: Update.
328
329 * config/mips/tm-mips.h (t_insn): Delete.
330 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
331 Replace t_insn with ULONGEST.
332
333 2004-10-30 Mark Kettenis <kettenis@gnu.org>
334
335 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
336 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
337 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
338 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
339 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
340 (mipsnbsd_core_osabi_sniffer): New function.
341 (mipsnbsd_init_abi): Set regset_from_core_section.
342 (_initialize_mipsnbsd_tdep): Remove calls to
343 deprecated_add_core_fns.
344 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
345 (mipsnbsd_regset_from_core_section): New functions.
346 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
347 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
348
349 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
350 Remove optimization for DEPRECATED_FP_REGNUM.
351
352 2004-10-30 Andrew Cagney <cagney@gnu.org>
353
354 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
355 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
356 (alpha_setup_arbitrary_frame): Delete.
357 * mips-tdep.c (setup_arbitrary_frame): Delete.
358 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
359 (setup_arbitrary_frame): Delete.
360 * stack.c (parse_frame_specification_1): When specified, call
361 create_new_frame with two parameters. Delete #ifdef
362 SETUP_ARBITRARY_FRAME.
363
364 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
365 (MIPS_INSTLEN): Delete.
366 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
367 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
368 * remote-mips.c, mips-tdep.c: Update.
369
370 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
371 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
372 * mips-tdep.c (mips_mdebug_frame_cache)
373 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
374 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
375 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
376 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
377 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
378 (mips_gdbarch_init): Do not append mdebug sniffers.
379 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
380 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
381 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
382 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
383 * Makefile.in: Update dependencies.
384
385 * mips-tdep.h (mips_abi_regsize): Declare.
386 * mips-tdep.c (mips_abi_regsize): Make non-static.
387
388 * mips-tdep.c (gdb_print_insn_mips): Simplify.
389 (make_mips16_addr): Delete.
390
391 2004-10-30 Mark Kettenis <kettenis@gnu.org>
392
393 * i386-sol2-nat.c: New file.
394 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
395 i386-sol2-tdep.c.
396 (i386-sol2-nat.o): Update dependencies.
397 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
398 i386-sol2-nat.o.
399
400 2004-10-30 Andrew Cagney <cagney@gnu.org>
401
402 Total breakage identified by Joel Brobecker.
403 * mips-tdep.c (after_prologue): Delete.
404 (mips_skip_prologue): Use skip_prologue_using_sal.
405 (heuristic_proc_desc): Delete, unused.
406
407 2004-10-30 Mark Kettenis <kettenis@gnu.org>
408
409 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
410 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
411 Cleanup coding style.
412
413 2004-10-30 Andrew Cagney <cagney@gnu.org>
414
415 * mips-tdep.h (mips_pc_is_mips16): Declare.
416 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
417 non-static. Update calls.
418
419 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
420 * command.h (add_setshow_enum_cmd): Declare.
421 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
422
423 * mips-tdep.c (_initialize_mips_tdep): Use
424 add_setshow_zinteger_cmd.
425
426 * mips-tdep.c (mips_eabi_extract_return_value)
427 (mips_o64_extract_return_value, mips_o64_store_return_value)
428 (return_value_location, mips_eabi_reg_struct_has_addr)
429 (mips_eabi_use_struct_convention)
430 (mips_eabi_store_return_value): Delete.
431 (mips_eabi_store_return_value): New function.
432 (mips_eabi_return_value): New function.
433 (mips_gdbarch_init): For O64 and EABI, delete
434 extract_return_value, store_return_value, use_struct_convention
435 and reg_struct_has_addr, add return_value.
436
437 * mips-tdep.c (read_signed_register): Use
438 regcache_cooked_read_signed.
439
440 2004-10-30 Mark Kettenis <kettenis@gnu.org>
441
442 * mipsread.c: Cleanup coding style.
443 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
444 (mipscoff_symfile_finish): Remove prototypes.
445
446 2004-10-29 Mark Kettenis <kettenis@gnu.org>
447
448 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
449 (mips_mdebug_frame_cache, mips16_scan_prologue)
450 (mips32_scan_prologue, mips_stub_frame_cache)
451 (heuristic_proc_start, heuristic_proc_desc)
452 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
453 (mips_n32n64_return_value, mips_o32_push_dummy_call)
454 (mips_o32_return_value, mips_o64_push_dummy_call)
455 (mips_step_skips_delay, mips_skip_trampoline_code)
456 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
457 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
458 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
459 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
460 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
461 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
462 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
463 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
464 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
465 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
466 ZERO_REGNUM.
467 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
468 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
469 ZERO_REGNUM.
470 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
471 A0_REGNUM.
472 * mipsnbsd-nat.c: Include "mips-tdep.h".
473 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
474 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
475
476 2004-10-29 Andrew Cagney <cagney@gnu.org>
477
478 * stack.c (parse_frame_specification_1): New function based on
479 parse_frame_specification. Add message and selected_frame_p
480 paramters. Truely always return non-NULL.
481 (parse_frame_specification): Call parse_frame_specification_1.
482 (frame_info): Update. Eliminate target_has_stack check.
483 (select_frame_command): Update.
484
485 2004-10-29 Andrew Cagney <cagney@gnu.org>
486
487 * frame.h (get_selected_frame): Add message parameter.
488 * frame.c (get_selected_frame): Add and use message parameter.
489 * stack.c (current_frame_command, return_command, locals_info)
490 (catch_info, args_info, up_silently_base, down_silently_base): Use
491 get_selected_frame with an explicit message.
492 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
493 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
494 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
495 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
496 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
497 * breakpoint.c: Update.
498
499 2004-10-29 Andrew Cagney <cagney@gnu.org>
500
501 * trad-frame.c (trad_frame_get_prev_register): Use
502 frame_unwind_register instead of frame_register_unwind, do not
503 recurse the register's location.
504 * xstormy16-tdep.c (xstormy16_frame_prev_register):
505 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
506 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
507 * sh-tdep.c (sh_frame_prev_register): Ditto.
508 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
509 * i386-tdep.c (i386_frame_prev_register): Ditto.
510 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
511 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
512
513 2004-10-28 Mark Kettenis <kettenis@jive.nl>
514
515 * proc-events.c: Fix several coding-style issues. Consistently
516 use #ifdef instead of #if defined().
517 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
518 ARRAY_SIZE.
519 (_initialize_proc_events): New prototype.
520
521 * proc-why.c: Fix several coding-style issues.
522 (proc_prettyfprint_why): Use ARRAY_SIZE.
523
524 2004-10-27 Jim Blandy <jimb@redhat.com>
525
526 * remote.c (fetch_register_using_p): Construct 'p' packet in a
527 manner independent of the host byte order.
528
529 2004-10-27 Mark Kettenis <kettenis@gnu.org>
530
531 * mips-tdep.c (id_delayed): Remove prototype.
532
533 2004-10-26 Mark Kettenis <kettenis@gnu.org>
534
535 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
536 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
537 to enum with register numbers.
538 (enum mips_insn_size): New enum.
539
540 2004-10-26 Andrew Cagney <cagney@gnu.org>
541
542 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
543 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
544 (mips_gdbarch_init): Update.
545 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
546
547 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
548 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
549 IN_SOLIB_RETURN_TRAMPOLINE.
550 * mips-tdep.c (mips_dump_tdep): Do not print
551 IN_SOLIB_RETURN_TRAMPOLINE.
552 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
553 (mips_gdbarch_init): Update.
554
555 * mips-tdep.h (mips_software_single_step): Move to here ...
556 * config/mips/tm-mips.h: ... from here.
557 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
558 (SOFTWARE_SINGLE_STEP): Delete.
559 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
560
561 2004-10-25 Andrew Cagney <cagney@gnu.org>
562
563 * NEWS: Add Changes since GDB 6.3 section.
564
565 2004-10-23 Andreas Schwab <schwab@suse.de>
566
567 * ada-lang.c (grow_vect): Return the new array instead of
568 expecting pointer to pointer to avoid violation of aliasing rules.
569 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
570
571 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
572
573 * s390-tdep.c (enum pv_boolean): Remove.
574 (pv_is_array_ref): Remove.
575 (s390_on_stack): Remove.
576 (S390_NUM_SPILL_SLOTS): Remove.
577 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
578 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
579 (s390_store): Track all stores of orginal incoming registers to the
580 stack constant offsets relative to the CFA, instead of only tracking
581 stores into specific spill slots.
582 (s390_load): Likewise.
583 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
584 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
585 defined as call-saved by the ABI.
586 (s390_push_dummy_call): Use bottom of dummy call argument save area
587 as return value, not the top. Do not store to the called function's
588 register save area.
589 (s390_unwind_dummy_id): Adapt accordingly.
590
591 2004-10-23 Andrew Cagney <cagney@gnu.org>
592
593 * objfiles.h (struct objfile): Rename obj_private to
594 deprecated_obj_private, sym_private to deprecated_sym_private, and
595 sym_stab_info to deprecated_sym_stab_info.
596 * gdb-stabs.h: Update.
597 * elfread.c: Update.
598 * dbxread.c: Update.
599 * coffread.c: Update.
600 * xcoffread.c: Update.
601 * symfile.c: Update.
602 * somread.c: Update.
603 * nlmread.c: Update.
604 * mdebugread.c: Update.
605 * hpread.c: Update.
606 * coffread.c: Update.
607
608 2004-10-23 Mark Kettenis <kettenis@gnu.org>
609
610 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
611 * configure.host: Add mips64*-*-openbsd*.
612 * configure.tgt: Add mips64*-*-openbsd*.
613 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
614 mips64obsd-tdep.c.
615 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
616 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
617
618 2004-10-21 Joel Brobecker <brobecker@gnat.com>
619
620 * symtab.c (symbol_search_name): Minor reformatting.
621
622 2004-10-20 Joel Brobecker <brobecker@gnat.com>
623
624 * symtab.h: Fix typo in comment.
625
626 2004-10-19 Mark Kettenis <kettenis@gnu.org>
627
628 * dwarf2read.c (struct comp_unit_head): Fix coding style.
629 (dwarf_decode_line_header): Likewise.
630
631 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
632
633 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
634
635 2004-10-19 Andrew Cagney <cagney@gnu.org>
636
637 GDB 6.3 branch created.
638 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
639
640 2004-10-15 Joel Brobecker <brobecker@gnat.com>
641
642 * dwarf2read.c (set_cu_language): Set language to Ada for
643 DW_LANG_Ada83 and DW_LANG_Ada95.
644
645 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
646
647 From Andreas Schwab <schwab@suse.de>:
648 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
649 for xmalloc and xrealloc.
650
651 2004-10-15 Andrew Cagney <cagney@gnu.org>
652
653 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
654 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
655 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
656 Update dependencies.
657
658 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
659
660 * ada-lang.c (ada_lookup_symbol): Correct comment.
661 (ada_evaluate_subexp): Change error message for
662 OP_FUNCALL case so as not to indicate an internal error.
663
664 2004-10-15 Joel Brobecker <brobecker@gnat.com>
665
666 Committed by Paul Hilfinger.
667 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
668 type sizes in XVE/XVU types, and emit a warning when that happens,
669 instead of rounding up the size of the resulting type.
670 Some minor reformatting.
671 (ada_is_aligner_type): Do not consider a type as an aligner type
672 if there is a corresponding XVS type as well.
673 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
674 have several levels of pointer indirection to the array.
675
676 2004-10-15 Jerome Guitton <guitton@gnat.com>
677
678 Committed by Paul Hilfinger.
679 * ada-lang.c (check_size): New function.
680 (coerce_unspec_val_to_type): call check_size to make sure
681 that the object size is reasonable.
682 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
683 Implements the case when we get a reference when we evaluate
684 the expression of one of the bounds of the slice.
685 (ada_value_struct_elt): when a packed array field is
686 a reference, use ada_coerce_ref to dereference it; use
687 ada_value_ind only if it is a pointer.
688
689 2004-10-15 Joel Brobecker <brobecker@gnat.com>
690
691 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
692 a bit to avoid the necessity of an advance declaration. Remove
693 declaration.
694 (set_reg_offset): Move implemenation up.
695 (mips16_get_imm): Likewise.
696 (mips16_scan_prologue): Likewise.
697 (reset_saved_regs): Likewise.
698 (mips32_scan_prologue): Likewise.
699
700 2004-10-14 Joel Brobecker <brobecker@gnat.com>
701
702 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
703 Remove sp as a parameter, compute it internally instead. Move
704 prologue scanning limit from heuristic_proc_desc to here.
705 (mips16_scan_prologue): Likewise.
706 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
707 by call to mips16_scan_prologue.
708 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
709 by call to mips32_scan_prologue.
710 (heuristic_proc_desc): Remove code that's no longer necessary.
711 Update calls to mips16_scan_prologue and mips32_scan_prologue.
712 (mips_skip_prologue): Update calls to mips16_scan_prologue
713 and mips32_scan_prologue.
714
715 2004-10-14 Joel Brobecker <brobecker@gnat.com>
716
717 * mips-tdep.c (mips16_scan_prologue): Merge code from
718 mips16_skip_prologue. Now return the address of the first
719 instruction past the function prologue.
720 (mips16_skip_prologue): Remove, no longer necessary.
721 (mips_skip_prologue): Replace call to mips16_skip_prologue
722 by call to mips16_scan_prologue.
723
724 2004-10-14 Joel Brobecker <brobecker@gnat.com>
725
726 * mips-tdep.c (mips32_scan_prologue): Merge code from
727 mips32_skip_prologue. Now return the address of the first
728 instruction past the function prologue.
729 (mips32_skip_prologue): Remove. No longer necessary.
730 (mips16_skip_prologue): Add parameter end_pc instead of
731 computing it.
732 (mips_skip_prologue): Compute the upper limit for the
733 prologue scanning. Update call to mips16_skip_prologue.
734 Replace call to mips32_skip_prologue by call to
735 mips32_scan_prologue.
736
737 2004-10-14 Mark Kettenis <kettenis@gnu.org>
738
739 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
740 NetBSD system call stubs that store %rp in the ERP slot of the
741 stack frame.
742
743 * source.c: Always define O_BINARY to 0 if not defined already.
744 (openp): Unconditionally use O_BINARY.
745
746 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
747 * event-top.c (gdb_readline2): Likewise.
748
749 2004-10-14 Orjan Friberg <orjanf@axis.com>
750
751 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
752 deprecated_add_core_fns which was removed by mistake.
753
754 2004-10-13 Kevin Buettner <kevinb@redhat.com>
755
756 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
757 references to deprecated_registers[] with equivalent code.
758
759 2004-10-13 Kevin Buettner <kevinb@redhat.com>
760
761 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
762 ``deprecated_registers'' with equivalent code. Use gdb_assert()
763 instead of explicit test and print statement.
764
765 2004-10-12 Mark Kettenis <kettenis@gnu.org>
766
767 * sparc-nat.c: Include "inf-ptrace.h".
768 (sparc_target): New function.
769 * sparc-nat.h: Update copyright year.
770 (sparc_target): New prototype.
771 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
772 (_initialize_sparcnbsd_nat): Construct and add target vector.
773 * sparc64nbsd-nat.c: Include "target.h".
774 (_initialize_sparc64nbsd_nat): Construct and add target vector.
775 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
776 Update dependencies.
777 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
778 inftarg.o, add inf-ptrace.o.
779 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
780 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
781 (NAT_FILE): Set to nm-bsd.h.
782 (LOADLIBES): New variable.
783 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
784 infarg.o, add inf-ptrace.o.
785 * config/sparc/nm-nbsdaout.h: Remove file.
786 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
787 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
788 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
789
790 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
791 "fopen-same.h". Update comment.
792
793 2004-10-11 Mark Kettenis <kettenis@gnu.org>
794
795 * i386gnu-nat.c: Include "gdb_string.h".
796 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
797 registers when the floating-point state isn't initialized.
798 * Makefile.in (i386gnu-nat.o): Update dependencies.
799
800 2004-10-11 David Anderson <davea@sgi.com>
801
802 * regcache.c (regcache_raw_read): Comment was missing "to".
803 Extraneous ' removed.
804 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
805 comment now describes use.
806
807 2004-10-11 Orjan Friberg <orjanf@axis.com>
808
809 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
810 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
811 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
812 (cris_sigtramp_frame_sniffer): New functions.
813 (cris_gdbarch_init): Hook in signal trampoline unwinder.
814 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
815 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
816 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
817 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
818 command.
819 (cris_version_update): Remove, replace with ...
820 (set_cris_version): New function.
821 (struct gdbarch_tdep, cris_mode, cris_mode_update)
822 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
823 (_initialize_cris_tdep): Remove CRIS mode command.
824 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
825 cris-fpless-backtrace command.
826 (cris_scan_prologue): Fix prologue scanning limit.
827 (cris_register_type): Update to reflect actual registers.
828 (cris_register_bytes_ok) Remove.
829 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
830 Remove set_gdbarch_deprecated_register_size,
831 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
832
833 2004-10-10 Andrew Cagney <cagney@gnu.org>
834
835 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
836 comment.
837
838 2004-10-10 Joel Brobecker <brobecker@gnat.com>
839
840 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
841
842 2004-10-10 Joel Brobecker <brobecker@gnat.com>
843
844 * mips-tdep.c (mips16_scan_prologue): Renames
845 mips16_heuristic_proc_desc. Update comment.
846 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
847 (heuristic_proc_desc): Update calls to the 2 functions above.
848
849 2004-10-10 Joel Brobecker <brobecker@gnat.com>
850
851 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
852 Update comments. Also immediately return empty cache when the start
853 address of our function could not be found.
854 (mips_insn32_frame_cache): Likewise.
855
856 2004-10-10 Joel Brobecker <brobecker@gnat.com>
857
858 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
859 (mips_insn16_frame_cache): Pass frame cache in call to
860 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
861 Remove code that became redundant as a consequence.
862 (mips32_heuristic_proc_desc): No longer compute a fake
863 procedure descriptor. Compute the full frame cache instead.
864 Some minor comment reformatting.
865
866 2004-10-10 Jim Blandy <jimb@redhat.com>
867
868 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
869 reader, tracing bytecode stuff): Remove self.
870
871 2004-10-10 Mark Kettenis <kettenis@gnu.org>
872
873 * sparc64-linux-tdep.c: Update copyright year. Don't include
874 "solib-svr4.h".
875 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
876 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
877 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
878
879 * sparc-linux-tdep.c: Update copyright year.
880 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
881 to struct frame_info *. Use safe_frame_unwind_memory instead of
882 deprecated_read_memory_nobpt.
883 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
884 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
885 changed signature of sparc_linux_sigtramp_start.
886 (sparc32_linux_pc_in_sigtramp): Remove function.
887 (sparc32_linux_sigtramp_p): New function.
888 (sparc32_linux_sigtramp_frame_sniffer): Use
889 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
890
891 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
892 Remove function.
893 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
894
895 * ada-lang.c (lim_warning): Re-implement as a varargs function.
896 (decode_packed_array_type, value_subscript_packed)
897 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
898 argument in call to lim_warning.
899
900 * configure.in: Really disable the TUI if an enhanced curses
901 library isn't found.
902 * configure: Regenerate.
903
904 2004-10-09 Mark Kettenis <kettenis@gnu.org>
905
906 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
907 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
908 * config/i386/nm-nbsdaout.h: Remove file.
909 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
910 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
911 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
912 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
913 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
914 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
915 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
916 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
917 (ldd, ld_un, ld_2): Remove defines.
918 * config/i386/nm-obsd.h: Likewise.
919
920 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
921
922 * ada-lex.l: Remove useless rule whose right-context clause
923 causes unreferenced static function warning for yyrealloc.
924 (ada_flex_use): Remove the artificial reference to yyrealloc.
925
926 2004-10-08 Andrew Cagney <cagney@gnu.org>
927
928 * target.h (struct target_ops): Rename to_xfer_memory to
929 deprecated_xfer_memory.
930 * target.c: Update.
931 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
932 * wince.c: Update.
933 * win32-nat.c: Update.
934 * v850ice.c: Update.
935 * uw-thread.c: Update.
936 * thread-db.c: Update.
937 * sol-thread.c: Update.
938 * remote.c: Update.
939 * remote-vx.c: Update.
940 * remote-st.c: Update.
941 * remote-sim.c: Update.
942 * remote-sds.c: Update.
943 * remote-rdp.c: Update.
944 * remote-rdi.c: Update.
945 * remote-mips.c: Update.
946 * remote-m32r-sdi.c: Update.
947 * remote-e7000.c: Update.
948 * procfs.c: Update.
949 * ppc-bdm.c: Update.
950 * nto-procfs.c: Update.
951 * monitor.c: Update.
952 * linux-nat.c: Update.
953 * inftarg.c: Update.
954 * hpux-thread.c: Update.
955 * go32-nat.c: Update.
956 * gnu-nat.c: Update.
957 * exec.c: Update.
958 * corelow.c: Update.
959 * bsd-kvm.c: Update.
960 * aix-thread.c: Update.
961
962 2004-10-08 Andrew Cagney <cagney@gnu.org>
963
964 * target.c (debug_target): Move to near start of file.
965 (target_stopped_data_address_p): Re-org logic, add casts.
966
967 2004-10-02 Mark Kettenis <kettenis@gnu.org>
968
969 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
970 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
971 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
972 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
973 New defines.
974
975 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
976
977 * target.h (to_stopped_data_address): Change prototype to
978 take a CORE_ADDR pointer and return an int.
979 * target.c (update_current_target): Change to_stopped_data_address
980 to match new prototype.
981 (debug_to_stopped_data_address): Change appropriately.
982 * breakpoint.c (bpstat_stop_status): Change call to
983 target_stopped_data_address to use new prototype.
984 * frv-tdep.c (frv_have_stopped_data_address): New function.
985 (frv_stopped_data_address): Change to new prototype and
986 functionality.
987 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
988 prototype and functionality.
989 (ia64_stopped_by_watchpoint): New function.
990 * i386-nat.c (i386_stopped_data_address): Change to new
991 prototype and functionality.
992 (i386_stopped_by_watchpoint): New function.
993 * remote.c (remote_stopped_data_address): Change to new prototype
994 and functionality.
995 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
996 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
997 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
998 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
999 new i386_stopped_by_watchpoint function.
1000 (i386_stopped_by_watchpoint): New prototype.
1001 (i386_stoppped_data_address): Change to new prototype.
1002 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1003 new ia64_stopped_by_watchpoint function.
1004 (ia64_stopped_by_watchpoint): New prototype.
1005 (ia64_stopped_data_address): Ditto.
1006
1007 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1008
1009 * ada-typeprint.c (ada_print_type): Use int_string for printing
1010 modulus of modular type.
1011 * ada-lang.h (ada_modulus): Change return type to unsigned.
1012 * ada-lang.c (ada_language_arch_info): Correct type of
1013 string_char_type.
1014 (ada_modulus): Return unsigned result.
1015 (ada_lookup_symbol): Remove user disambiguation and modify comment
1016 accordingly.
1017
1018 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1019
1020 Committed by Paul Hilfinger.
1021 * ada-lang.c (decode_packed_array): On big-endian targets,
1022 left-justify the value if it comes with a modular type.
1023
1024 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1025
1026 Committed by Paul Hilfinger.
1027 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1028 (is_name_suffix): Add support for "___JM" suffixes.
1029 (ada_check_typedef): Renames ada_completed_type.
1030 Update all users of CHECK_TYPEDEF, check_typedef, and
1031 ada_complete_type to call ada_check_typedef.
1032 * ada-typeprint.c: Likewise.
1033 * ada-valprint.c: Likewise.
1034
1035 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1036
1037 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1038
1039 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1040
1041 * MAINTAINERS: Update e-mail address.
1042
1043 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1044
1045 From Maciej W. Rozycki <macro@mips.com>:
1046 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1047 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1048
1049 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1050
1051 * m32r-tdep.c (decode_prologue): Support functions written
1052 in assembler language. Recognize trap instructions as the
1053 end of prologue.
1054 (m32r_frame_unwind_cache): Ditto.
1055 (m32r_skip_prologue): Extend search limit. Quit analyzing
1056 prologue if pc's location is not readable.
1057
1058 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1059
1060 * Makefile.in (.l.c): Do conversions of names of alloc and free
1061 functions that are done for .y.c files, plus special one
1062 for yy_flex_realloc. Also, correct missing-file tests here.
1063 * ada-lex.l (malloc, free): Remove macros.
1064 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1065 xrealloc.
1066 (ada_flex_use): Dummy definition to remove warnings about unused
1067 functions.
1068 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1069 to suppress warning.
1070
1071 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1072
1073 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1074 RETURN_VALUE.
1075 (sh_return_value_fpu): Ditto for CPUs with FPU.
1076 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1077 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1078 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1079 RETURN_VALUE functions.
1080
1081 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1082
1083 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1084 (sh_pseudo_register_write): Ditto.
1085
1086 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1087
1088 * sh-tdep.c (IS_MACL_STS): New define.
1089 (IS_MOVI20): Ditto.
1090 (IS_MACL_LDS): Ditto.
1091 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1092 instructions in prologue.
1093 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1094 instructions in epilogue.
1095
1096 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1097
1098 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1099 (sh_sh_register_name): Add eight empty register names.
1100 (sh_sh3_register_name): Ditto.
1101 (sh_sh3e_register_name): Ditto.
1102 (sh_sh2e_register_name): Ditto.
1103 (sh_sh2a_register_name): New function, defining SH2A register set.
1104 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1105 in nofpu case.
1106 (sh_sh_dsp_register_name): Add eight empty register names.
1107 (sh_sh3_dsp_register_name): Ditto.
1108 (sh_sh4_register_name): Ditto.
1109 (sh_sh4_nofpu_register_name): Ditto.
1110 (sh_sh4al_dsp_register_name): Ditto.
1111 (sh2a_show_regs): New function.
1112 (sh2a_nofpu_show_regs): New function.
1113 (sh_sh2a_register_type): New function.
1114 (do_bank_register_info): New function.
1115 (sh_print_pseudo_register): Call do_bank_register_info.
1116 Call sh_print_pseudo_register for valid "bank" register.
1117 (sh_sh2a_register_sim_regno): New function.
1118 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1119 Increment pseudo register count by one for all sh variants with
1120 pseudo registers to accomodate pseudo bank register.
1121 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1122 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1123 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1124 Increment pseudo register numbers.
1125
1126 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1127
1128 * dwarf2read.c (read_subroutine_type): Call make_function_type
1129 instead of lookup_function_type.
1130
1131 2004-10-05 Jim Blandy <jimb@redhat.com>
1132
1133 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1134 (Previous change missed some uses.)
1135
1136 2004-10-05 Andrew Cagney <cagney@gnu.org>
1137
1138 * target.h (deprecated_child_ops): Rename child_ops.
1139 * wince.c: Update copyright. Rename child_ops.
1140 * win32-nat.c: Rename child_ops.
1141 * target.c: Rename child_ops.
1142 * rs6000-nat.c: Rename child_ops.
1143 * linux-nat.c: Rename child_ops.
1144 * infttrace.c: Rename child_ops.
1145 * inftarg.c: Rename child_ops.
1146 * infptrace.c: Rename child_ops.
1147 * hppah-nat.c: Update copyright. Rename child_ops.
1148 * hpux-thread.c: Update copyright. Rename child_ops.
1149
1150 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1151
1152 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1153
1154 2004-10-05 Andrew Cagney <cagney@gnu.org>
1155
1156 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1157
1158 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1159
1160 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1161 (die_ref_table): Remove.
1162 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1163 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1164 the usage of this type.
1165 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1166 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1167 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1168 (dwarf2_create_include_psymtab): Update comment.
1169 (find_partial_die): Remove third argument. Remove unreachable call
1170 to error ().
1171 (dwarf2_find_containing_comp_unit): Update comments. Change one
1172 assertion to an error. Remove an unreachable error.
1173 (dwarf2_find_comp_unit): Update comments.
1174 (type_at_offset): Remove dead code.
1175 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1176 (store_in_ref_table): Add CU argument.
1177 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1178 inter-compilation-unit references.
1179 (load_full_comp_unit, process_full_comp_unit): New functions, based
1180 on psymtab_to_symtab_1.
1181 (psymtab_to_symtab_1): Use them.
1182 (dwarf2_add_dependence): New function.
1183 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1184 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1185 (partial_die_parent_scope, guess_structure_name): Update for changes
1186 to find_partial_die.
1187 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1188 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1189 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1190 (read_die_and_children): Update call to store_in_ref_table.
1191 (do_free_die_list_cleanup): Remove.
1192 (fixup_partial_die): Update for changes to find_partial_die.
1193 (read_full_die): Handle queueing absolute references.
1194 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1195 (dwarf2_attr, die_specification, die_type)
1196 (die_containing_type, dwarf2_extension): Update calls to
1197 follow_die_ref.
1198 (dump_die): Update DW_FORM_ref* handling.
1199 (dwarf2_get_ref_die_offset): Likewise.
1200 (free_one_comp_unit): Release the dies list.
1201 (dwarf2_mark_helper): New function.
1202 (dwarf2_mark): Use it.
1203
1204 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1205
1206 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1207 when writing to memory.
1208
1209 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1210
1211 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1212 (m32r_extract_struct_value_address): Delete function.
1213 (m32r_return_value): New function.
1214 (m32r_gdbarch_init): Instead of store_return_value,
1215 extract_return_value, deprecated_extract_struct_value_address
1216 and deprecated_use_struct_convention, set return_value.
1217
1218 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1219
1220 * dwarf2read.c (read_subrange_type): Add comment for variable
1221 sized arrays.
1222
1223 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1224
1225 * Makefile.in (.l.c): Modify rule for compatibility with recent
1226 versions of flex, and remove most command-line options.
1227 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1228 options.
1229
1230 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1231
1232 Turn on initial Ada support (mainly expression evaluation).
1233
1234 * Makefile.in (SFILES): Remove ada-tasks.c.
1235 (HFILES_NO_SRCDIR): Add ada-lang.h.
1236 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1237 (YYOBJ): Add ada-exp.o.
1238 (rule .l.c): Generalize to not mention ada.
1239 * symtab.c: Include ada-lang.h.
1240 (symbol_natural_name, symbol_demangled_name)
1241 (symbol_search_name): Add Ada case.
1242
1243 2004-10-01 Andrew Cagney <cagney@gnu.org>
1244
1245 * Makefile.in (COMMON_OBS): Add inf-child.o.
1246 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1247 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1248 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1249 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1250 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1251 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1252 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1253 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1254 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1255 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1256 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1257 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1258 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1259
1260 * target.c (xfer_using_stratum): Change return type to LONGEST.
1261 On each iteration offset, readbuf and writebuf.
1262 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1263 partial_length, and read/modify/write predicate, update comments.
1264 Pass buffer.word to ptrace write.
1265
1266 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1267
1268 * symfile.c (init_filename_language_table): Add extensions for
1269 Ada.
1270 * defs.h (enum language): Add language_ada.
1271 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1272 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1273 (add_symbols_from_enclosing_procs): Make a no-op for now.
1274 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1275 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1276 (find_line_in_linetable, find_next_line_in_linetable)
1277 (read_all_symtabs, is_plausible_func_for_line)
1278 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1279 (is_runtime_sym_defined, check_size): Remove declaration.
1280 (function_name_from_pc, ada_translate_error_message)
1281 (ada_lookup_minimal_symbol): Remove definition.
1282 (ada_add_block_symbols): Remove useless label.
1283 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1284 useless declaration.
1285 (ada_is_exception_sym): Likewise.
1286
1287 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1288
1289 Add m32r-linux support.
1290 * configure.tgt: Add m32r*-*-linux*.
1291 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1292 and m32r-linux-tdep.c.
1293 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1294 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1295 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1296 m32r-linux-tdep.c.
1297 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1298 config/m32r/linux.mh, config/m32r/linux.mt,
1299 config/m32r/nm-linux.h: New files.
1300
1301 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1302
1303 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1304 (mips32_fetch_instruction): Remove, unused.
1305
1306 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1307
1308 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1309 conditions that will always be true.
1310
1311 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1312
1313 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1314 (vaxbsd_fetch_inferior_registers): Rename from
1315 fetch_inferior_registers. Make static.
1316 (vaxbsd_store_inferior_registers): Rename from
1317 store_inferior_registers. Make static.
1318 (_initialize_vaxbsd_nat): Construct and add target vector.
1319 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1320 inftarg.o. Add inf-child.o and inf-ptrace.o.
1321 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1322 inftarg.o. Add inf-child.o and inf-ptrace.o.
1323 (NAT_FILE): Remove.
1324 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1325 inftarg.o. Add inf-child.o and inf-ptrace.o.
1326 (NAT_FILE): Remove.
1327 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1328
1329 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1330 (m88kbsd_fetch_inferior_registers): Rename from
1331 fetch_inferior_registers. Make static.
1332 (m88kbsd_store_inferior_registers): Rename from
1333 store_inferior_registers. Make static.
1334 (_initialize_m88kbsd_nat): New prototype and function.
1335 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1336 inftarg.o. Add inf-child.o and inf-ptrace.o.
1337 (NAT_FILE): Remove.
1338 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1339
1340 2004-09-30 Andrew Cagney <cagney@gnu.org>
1341
1342 * target.c (target_xfer_partial): New function.
1343 (target_read_memory_partial, target_write_memory_partial)
1344 (default_xfer_partial, target_read_partial, target_write_partial)
1345 (xfer_using_stratum): Use.
1346 (debug_to_xfer_partial): Delete function.
1347 (setup_target_debug): Do not override to_xfer_partial.
1348
1349 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1350
1351 * fork-child.c: Update copyright year. Fix coding style.
1352
1353 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1354
1355 * defs.h (msavestring, mstrsave): Remove prototypes.
1356 * utils.c (msavestring, mstrsave): Remove functions.
1357 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1358 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1359 of mstrsave.
1360 * source.c (find_and_open_source): Use xstrdup instead of
1361 mstrsave.
1362
1363 2004-09-30 Andrew Cagney <cagney@gnu.org>
1364
1365 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1366 (inf_ptrace_xfer_memory): Delete.
1367 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1368 (target_read_memory, target_write_memory): Use xfer_using_stratum
1369 when target_xfer_partial_p.
1370 (debug_target): Move to start of file.
1371 (target_read_memory_partial, target_write_memory_partial): Use
1372 to_xfer_partial when target_xfer_partial_p.
1373
1374 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1375 inf_ptrace_xfer_memory with equivalent code.
1376 * inftarg.c (child_xfer_partial): When performing a write, pass
1377 writebuf to child_xfer_memory.
1378
1379 * target.c (target_read_string): Use target_read_memory instead of
1380 target_xfer_memory.
1381
1382 2004-09-29 Andrew Cagney <cagney@gnu.org>
1383
1384 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1385 the address of status.
1386
1387 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1388 (kill_inferior): Inline ptrace_wait call.
1389 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1390 * inftarg.c (child_wait): Inline ptrace_wait call.
1391
1392 * target.h (struct target_ops): Delete field to_post_wait.
1393 (target_post_wait): Delete macro.
1394 (child_post_wait): Delete declaration.
1395 * target.c (update_current_target, update_current_target)
1396 (debug_to_post_wait, setup_target_debug): Delete functions and
1397 references.
1398 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1399 * inftarg.c (child_post_wait): Delete.
1400 (init_child_ops): Do not set to_post_wait.
1401 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1402 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1403 * inf-child.c (inf_child_post_wait): Delete.
1404 (inf_child_target): Do not set to_post_wait.
1405 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1406 (inf_ptrace_target): Do not set to_post_wait.
1407
1408 * wince.c (child_ops): Delete.
1409 * win32-nat.c (child_ops): Delete.
1410
1411 * inftarg.c (inftarg_set_find_memory_regions)
1412 (inftarg_set_make_corefile_notes): Delete functions.
1413 (_initialize_linux_nat): Inline calls.
1414
1415 * target.h (child_ops): Declare.
1416 * inftarg.c (child_ops): Move from here ...
1417 * target.c (child_ops): ... to here.
1418 * wince.c (child_ops): Delete extern declaration.
1419 * win32-nat.c (child_ops): Delete extern declaration.
1420 * linux-nat.c (child_ops): Delete extern declaration.
1421 * hpux-thread.c (child_ops): Delete extern declaration.
1422
1423 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1424
1425 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1426
1427 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1428
1429 * configure.in: Only set host_makefile_frag when building a native
1430 debugger.
1431 * configure: Regenerate.
1432
1433 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1434 for OpenBSD ELF.
1435
1436 2004-09-28 Andrew Cagney <cagney@gnu.org>
1437
1438 Problem identified by Paul Hilfinger.
1439 * Makefile.in (ada_lex_c): Define.
1440 (ada-lex.o): Delete rule.
1441
1442 * linux-proc.c: Delete file.
1443 * Makefile.in: Update.
1444 * config/sparc/linux64.mh (NATDEPFILES):
1445 * config/sparc/linux.mh (NATDEPFILES): Update.
1446 * config/s390/s390.mh (NATDEPFILES): Update.
1447 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1448 * config/powerpc/linux.mh (NATDEPFILES): Update.
1449 * config/pa/linux.mh (NATDEPFILES): Update.
1450 * config/mips/linux.mh (NATDEPFILES): Update.
1451 * config/m68k/linux.mh (NATDEPFILES): Update.
1452 * config/ia64/linux.mh (NATDEPFILES): Update.
1453 * config/i386/linux64.mh (NATDEPFILES): Update.
1454 * config/i386/linux.mh (NATDEPFILES): Update.
1455 * config/arm/linux.mh (NATDEPFILES): Update.
1456 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1457 * linux-nat.c: Update copyright. Include <sys/param.h>,
1458 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1459 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1460 (O_LARGEFILE): Possibly define.
1461 (_initialize_linux_nat, linux_proc_pending_signals)
1462 (add_line_to_sigset, linux_proc_xfer_memory)
1463 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1464 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1465 (struct linux_corefile_thread_data)
1466 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1467 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1468
1469 2004-09-16 Andrew Cagney <cagney@gnu.org>
1470
1471 * lin-lwp.c: Delete file.
1472 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1473 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1474 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1475 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1476 (linux_nat_attach, detach_callback, linux_nat_detach)
1477 (resume_callback, resume_clear_callback, linux_nat_resume)
1478 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1479 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1480 (status_callback, running_callback, count_events_callback)
1481 (select_singlestep_lwp_callback, select_event_lwp_callback)
1482 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1483 (child_wait, stop_and_resume_callback, linux_nat_wait)
1484 (kill_callback, kill_wait_callback, linux_nat_kill)
1485 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1486 (linux_nat_xfer_memory, linux_nat_thread_alive)
1487 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1488 (_initialize_linux_nat): New functions.
1489 * Makefile.in: Update all dependencies.
1490 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1491 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1492 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1493 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1494 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1495 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1496 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1497 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1498 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1499 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1500 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1501 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1502 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1503
1504 2004-09-27 Mark Kettenis <kettenis@gnu.org>
1505
1506 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1507 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1508
1509 * configure.in: Don't comment out NATDEPFILES in the generated
1510 Makefile if NAT_FILE is unset.
1511 * configure: Regenerate.
1512
1513 2004-09-27 Andrew Cagney <cagney@gnu.org>
1514
1515 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1516 (insert_step_resume_breakpoint): Delete.
1517 (insert_step_resume_breakpoint_at_frame): New function.
1518 (insert_step_resume_breakpoint_at_sal): New function.
1519 (handle_inferior_event, step_into_function)
1520 (insert_step_resume_breakpoint): Simplify by using same.
1521
1522 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1523
1524 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1525
1526 * fbsd-proc.c: Remove file.
1527 * Makefile.in (fbsd-proc.o): Remove dependency.
1528
1529 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1530 code together.
1531
1532 * config/i386/nm-fbsd64.h: Remove file.
1533 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1534
1535 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1536
1537 * amd64-nat.h: Update copyright year.
1538 (amd64bsd_target): New prototype.
1539 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1540 (amd64bsd_target): New function.
1541 (amd64bsd_fetch_inferior_registers): Rename from
1542 fetch_inferior_registers. Make static.
1543 (amd64bsd_store_inferior_registers): Rename from
1544 store_inferior_registers. Make static.
1545 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1546 (_initialize_amd64fbsd_nat): Construct and add target vector.
1547 * amd64nbsd-nat.o: Include "target.h".
1548 (_initialize_amd64nbsd_nat): Construct and add target vector.
1549 * amd64obsd-nat.c: Include "target.h".
1550 (_initialize_amd64obsd_nat): Construct and add target vector.
1551 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1552 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1553 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1554 fbsd-nat.o.
1555 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1556 Remove infptrace.o and inftarg.o. Add inf-child.o and
1557 inf-ptrace.o.
1558 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1559 (amd64obsd-nat.o): Update dependencies.
1560
1561 2004-09-25 Mark Kettenis <kettenis@gnu.org>
1562
1563 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1564 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1565 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1566 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1567 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1568
1569 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1570 Inline attach call.
1571 (inf_ptrace_detach): Inline detach call.
1572
1573 * configure.in: Check for waddstr instead of mvwaddstr when
1574 searching for curses library. Check for wborder.
1575 * configure, config.in: Regenerate.
1576 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1577 available.
1578
1579 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1580
1581 2004-09-24 Robert Picco <Robert.Picco@hp.com>
1582
1583 Committed by Andrew Cagney.
1584 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1585 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1586 configuration.
1587 (fetch_register_using_p): Implement 'p' packet. Based on code by
1588 Fernando Nasser.
1589 (remote_fetch_registers): Call fetch_register_using_p.
1590 (init_all_packet_configs, show_remote_cmd)
1591 (_initialize_remote): Add p-packet.
1592
1593 2004-09-24 Mark Kettenis <kettenis@gnu.org>
1594
1595 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1596 instead of call_ptrace. Call wait directly instead of
1597 ptrace_wait.
1598 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1599 (inf_ptrace_wait): Inline ptrace_wait call.
1600
1601 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1602
1603 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1604 rolled back instead.
1605
1606 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1607
1608 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1609 the new argument order.
1610
1611 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
1612
1613 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1614 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1615 (struct gdbarch_tdep): Remove.
1616 (struct xstormy16_frame_cache): New frame cache structure.
1617 (xstormy16_register_byte, xstormy16_register_raw_size)
1618 (xstormy16_reg_virtual_type, xstormy16_register_type)
1619 (xstormy16_push_arguments, xstormy16_push_return_address)
1620 (xstormy16_pop_frame, xstormy16_store_struct_return)
1621 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1622 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1623 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1624 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1625 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1626 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1627 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1628 (xstormy16_extract_return_value, xstormy16_store_return_value):
1629 Regcachify. Drop useless struct convention handling.
1630 (xstormy16_register_type, xstormy16_return_value)
1631 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1632 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1633 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1634 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1635 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1636 (xstormy16_unwind_dummy_id) : New functions.
1637 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1638 of xstormy16_scan_prologue.
1639 (xstormy16_frame_unwind): New frame_unwind structure.
1640 (xstormy16_frame_base): New frame_base structure.
1641 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1642 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1643
1644 2004-09-22 Mark Kettenis <kettenis@gnu.org>
1645
1646 * language.c (language_gdbarch_post_init): Fix off-by one error.
1647
1648 2004-09-21 Daniel Jacobowitz <dan@debian.org>
1649
1650 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1651 (struct dwarf2_offset_and_type): New.
1652 (set_die_type, reset_die_and_siblings_types, get_die_type)
1653 (offset_and_type_hash, offset_and_type_eq): New functions.
1654 (read_structure_type, read_enumeration_type, read_array_type)
1655 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1656 (read_tag_reference_type, read_tag_const_type)
1657 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1658 (read_typedef, read_base_type, read_subrange_type): Use
1659 set_die_type.
1660
1661 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1662
1663 * Makefile.in (dwarf2read.o): Update dependencies.
1664 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1665 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1666 and read_in_chain.
1667 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1668 mark, and has_form_ref_addr.
1669 (struct dwarf2_per_cu_data): New.
1670 (dwarf2_max_cache_age): New.
1671 (dwarf2_build_psymtabs_hard): Free cached compilation units
1672 after loading. Create and manage the list of compilation units.
1673 Remove unnecessary NULL initialization. Fix indentation.
1674 (psymtab_to_symtab_1): Initialize all of CU.
1675 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1676 (find_partial_die): Use dwarf2_find_containing_comp_unit
1677 and load_comp_unit.
1678 (free_stack_comp_unit): Update comments. Clear the per-cu
1679 pointer. Handle aging.
1680 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1681 (age_cached_comp_units, free_one_cached_comp_unit)
1682 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1683 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1684 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1685 (show_dwarf2_cmd): New.
1686 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1687 and "maint show dwarf2 max-cache-age".
1688 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1689 externs.
1690 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1691 global.
1692
1693 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1694
1695 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1696 and dwarf2_cu struct pointer as arguments. Change function to use
1697 obstack if provided and use dwarf2_cu to determine language-specific
1698 separator.
1699 (partial_die_parent_scope): Change comment to include java. Use
1700 new version of typename_concat instead of obconcat.
1701 (partial_die_full_name): Use typename_concat.
1702 (read_namespace): Ditto.
1703 (read_enumeration_type): Use typename_concat instead of obconcat.
1704 (new_symbol): Ditto.
1705 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1706 (guess_structure_name): Ditto.
1707 (read_subroutine_type): Ditto.
1708 (read_structure_type): Ditto.
1709 (is_vtable_name): Add Java support.
1710 (determine_class_name): Switch to new typename_concat call.
1711 (determine_prefix): Switch to new typename_concat call.
1712 * jv-exp.y (FuncStart): New pattern.
1713 (MethodInvocation): Add support for simple function calls. Change
1714 warning message for other forms of inferior call currently not
1715 supported.
1716 * valarith.c (value_subscript): Treat an array with upper-bound
1717 of -1 as unknown size.
1718
1719 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1720
1721 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1722 (lookup_partial_symtab): Use symtab_to_fullname.
1723
1724 2004-09-19 Jim Blandy <jimb@redhat.com>
1725
1726 * minsyms.c (lookup_minimal_symbol): Doc fix.
1727
1728 2004-09-20 Andrew Cagney <cagney@gnu.org>
1729
1730 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1731 CHILD_RESUME.
1732 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1733 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1734 KILL_INFERIOR.
1735 * infptrace.c: Update.
1736
1737 2004-09-19 Daniel Jacobowitz <dan@debian.org>
1738
1739 * symtab.c (output_source_filename): Mark first argument as const.
1740 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1741 for "info sources" output.
1742
1743 2004-09-20 Mark Kettenis <kettenis@gnu.org>
1744
1745 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1746 <machine/vmparam.h>.
1747 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1748 (register_u_addr): Remove prototype.
1749
1750 2004-09-19 Mark Kettenis <kettenis@gnu.org>
1751
1752 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1753 (i386bsd_fetch_inferior_registers): Rename from
1754 fetch_inferior_registers. Make static.
1755 (i386bsd_store_inferior_registers): Rename from
1756 store_inferior_registers. Make static.
1757 (i386bsd_target): New function.
1758 * i386bsd-nat.h: New file.
1759 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1760 "i386bsd-nat.h".
1761 (i386fbsd_resume): Rename from child_resume. Make static.
1762 (_initialize_i386fbsd_nat): Construct and add target vector.
1763 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1764 (_initialize_i386nbsd_nat): Construct and add target vector.
1765 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1766 Remove defines.
1767 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1768 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1769 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1770 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1771 (LOADLIBES): New variable.
1772 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1773 inf-ptrace.o. Remove inftarg.o.
1774 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1775 inf-ptrace.o. Remove inftarg.o.
1776 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1777 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1778 (LOADLIBES): New variable.
1779 * Makefile.in (i386bsd_nat_h): New variable.
1780 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1781 dependencies.
1782
1783 * sparc64nbsd-tdep.c: Include "objfiles.h".
1784 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1785 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1786 svr4_lp64_fetch_link_map_offsets.
1787 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1788 "nbsd-tdep.h".
1789 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1790 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1791 svr4_lp64_fetch_link_map_offsets.
1792 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1793 dependencies.
1794
1795 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1796 * fbsd-nat.h: New file.
1797 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1798 (fbsd_nat_h): New variable.
1799 (fbsd-nat.o): New dependency.
1800
1801 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1802 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1803
1804 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1805 comment.
1806
1807 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1808
1809 * ada-exp.y (type_int): New function to add layer of abstraction
1810 around references to expression types.
1811 (type_long): Ditto.
1812 (type_long_long): Ditto.
1813 (type_float): Ditto.
1814 (type_double): Ditto.
1815 (type_long_double): Ditto.
1816 (type_char): Ditto.
1817 (type_system_address): Ditto.
1818 (simple_exp): Use type_* functions in place of builtin_*
1819 variables.
1820 (exp): Ditto.
1821 (write_var_from_name): Ditto.
1822 (write_object_renaming): Ditto.
1823 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1824 declaration.
1825 (build_ada_types): Remove, replacing with...
1826 (ada_language_arch_info): New function to initialize primitive
1827 type vector in language_arch_info.
1828 (ada_array_length): Remove use of builtin_type_ada_int.
1829 (value_pos_atr): Ditto.
1830 (ada_evaluate_subexp): Ditto.
1831 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1832 builtin_type_ada_long_long, builtin_type_ada_char,
1833 builtin_type_ada_float, builtin_type_ada_double,
1834 builtin_type_ada_long_double, builtin_type_ada_natural,
1835 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1836 (ada_builtin_types): Remove.
1837 (ada_language_defn): Remove entries for la_builtin_type_vector and
1838 string_char_type and use ada_language_arch_info.
1839 (_initialize_ada_language): Do type-vector initialization along
1840 the lines of c-lang.c.
1841 (ada_create_fundamental_type): Break up line.
1842 (ada_dump_symtab): Remove unused function.
1843 (enum ada_primitive_types): Define.
1844 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1845 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1846 builtin_type_ada_float, builtin_type_ada_double,
1847 builtin_type_ada_long_double, builtin_type_ada_natural,
1848 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1849 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1850 (processInt): Ditto.
1851 (processReal): Ditto.
1852 (name_lookup): Ditto.
1853 * ada-typeprint.c (print_range): Use builtin_type_int, not
1854 builtin_type_ada_int.
1855
1856 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1857
1858 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1859
1860 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1861 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1862 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1863 * configure.in: Improve checks for curses library by checking for
1864 mvwaddstr instead of initscr. Drop HP curses in favour of
1865 standard curses on HP-UX.
1866 * configure: Regenerated.
1867
1868 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1869
1870 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1871 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1872 Minor formatting changes.
1873 (empty_array): Slight rewrite for formatting.
1874 (emit_char,parse,ada_language_defn,build_ada_types,
1875 ada_is_exception_sym, _initialize_ada_language): Move
1876 definitions around.
1877 (ada_dump_symtab): Remove unused definition.
1878 (ada_maybe_exception_partial_symbol): Remove unused definition.
1879
1880 2004-09-16 Andrew Cagney <cagney@gnu.org>
1881
1882 * inf-child.c: Include "gdb_string.h".
1883 (inf_child_core_file_to_sym_file): Delete.
1884 (inf_child_target): Set to_fetch_registers and to_store_registers.
1885 * inf-ptrace.c: Include "gdb_string.h".
1886 * Makefile.in: Update all dependencies.
1887
1888 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1889 problem.
1890
1891 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1892
1893 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1894 call to heuristic_proc_desc. Remove code that became redundant
1895 as a consequence.
1896 (read_next_frame_reg): Remove special case for SP_REGNUM.
1897 (set_reg_offset): Fix small typo.
1898 (reset_saved_regs): New procedure.
1899 (mips32_heuristic_proc_desc): No longer compute a fake
1900 procedure descriptor. Compute the full frame cache instead.
1901 Some minor comment reformatting.
1902
1903 2004-09-14 Andrew Cagney <cagney@gnu.org>
1904
1905 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1906 maintainer.
1907
1908 * thread-db.c (thread_db_new_objfile): Assume that there is a
1909 child process.
1910
1911 2004-09-13 Jim Blandy <jimb@redhat.com>
1912
1913 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1914 so that its storage isn't referenced after its lifetime ends.
1915
1916 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1917 and never assigned to. Delete it, and the 'if (use_buffer)'
1918 clauses. Delete 'raw_buffer', since it is now unused.
1919
1920 2004-09-13 Andrew Cagney <cagney@gnu.org>
1921
1922 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1923 * configure: Re-generate.
1924 * nlm/Makefile.in (TAGS): Update.
1925 * Makefile.in (TAGS): Update.
1926 * config/vax/nbsd.mt (TM_FILE): Update.
1927 * config/sparc/vxworks.mt (TM_FILE): Update.
1928 * config/sparc/sol2.mt (TM_FILE): Update.
1929 * config/sparc/sol2-64.mt (TM_FILE): Update.
1930 * config/sparc/obsd64.mt (TM_FILE): Update.
1931 * config/sparc/obsd.mt (TM_FILE): Update.
1932 * config/sparc/nbsd64.mt (TM_FILE): Update.
1933 * config/sparc/nbsd.mt (TM_FILE): Update.
1934 * config/sparc/linux64.mt (TM_FILE): Update.
1935 * config/sparc/linux.mt (TM_FILE): Update.
1936 * config/sparc/fbsd.mt (TM_FILE): Update.
1937 * config/sh/wince.mt (TM_FILE): Update.
1938 * config/sh/nbsd.mt (TM_FILE): Update.
1939 * config/sh/linux.mt (TM_FILE): Update.
1940 * config/sh/embed.mt (TM_FILE): Update.
1941 * config/s390/s390.mt (TM_FILE): Update.
1942 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1943 * config/rs6000/rs6000.mt (TM_FILE): Update.
1944 * config/rs6000/aix4.mt (TM_FILE): Update.
1945 * config/powerpc/vxworks.mt (TM_FILE): Update.
1946 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1947 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1948 * config/powerpc/obsd.mt (TM_FILE): Update.
1949 * config/powerpc/nbsd.mt (TM_FILE): Update.
1950 * config/powerpc/linux.mt (TM_FILE): Update.
1951 * config/powerpc/aix.mt (TM_FILE): Update.
1952 * config/pa/obsd.mt (TM_FILE): Update.
1953 * config/pa/linux.mt (TM_FILE): Update.
1954 * config/pa/hppahpux.mt (TM_FILE): Update.
1955 * config/pa/hppa64.mt (TM_FILE): Update.
1956 * config/pa/hppa.mt (TM_FILE): Update.
1957 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1958 * config/mips/wince.mt (TM_FILE): Update.
1959 * config/mips/vxmips.mt (TM_FILE): Update.
1960 * config/mips/nbsd.mt (TM_FILE): Update.
1961 * config/mips/linux.mt (TM_FILE): Update.
1962 * config/mips/irix6.mt (TM_FILE): Update.
1963 * config/mips/irix5.mt (TM_FILE): Update.
1964 * config/mips/embed.mt (TM_FILE): Update.
1965 * config/m68k/vxworks68.mt (TM_FILE): Update.
1966 * config/m68k/st2000.mt (TM_FILE): Update.
1967 * config/m68k/os68k.mt (TM_FILE): Update.
1968 * config/m68k/obsd.mt (TM_FILE): Update.
1969 * config/m68k/nbsd.mt (TM_FILE): Update.
1970 * config/m68k/monitor.mt (TM_FILE): Update.
1971 * config/m68k/linux.mt (TM_FILE): Update.
1972 * config/m68k/cisco.mt (TM_FILE): Update.
1973 * config/ia64/linux.mt (TM_FILE): Update.
1974 * config/ia64/aix.mt (TM_FILE): Update.
1975 * config/ia64/ia64.mt (TM_FILE): Update.
1976 * config/i386/vxworks.mt (TM_FILE): Update.
1977 * config/i386/obsd64.mt (TM_FILE): Update.
1978 * config/i386/obsd.mt (TM_FILE): Update.
1979 * config/i386/nto.mt (TM_FILE): Update.
1980 * config/i386/nbsd64.mt (TM_FILE): Update.
1981 * config/i386/nbsd.mt (TM_FILE): Update.
1982 * config/i386/linux64.mt (TM_FILE): Update.
1983 * config/i386/linux.mt (TM_FILE): Update.
1984 * config/i386/i386sol2.mt (TM_FILE): Update.
1985 * config/i386/i386lynx.mt (TM_FILE): Update.
1986 * config/i386/fbsd64.mt (TM_FILE): Update.
1987 * config/i386/fbsd.mt (TM_FILE): Update.
1988 * config/i386/cygwin.mt (TM_FILE): Update.
1989 * config/h8300/h8300.mt (TM_FILE): Update.
1990 * config/frv/frv.mt (TM_FILE): Update.
1991 * config/cris/cris.mt (TM_FILE): Update.
1992 * config/arm/wince.mt (TM_FILE): Update.
1993 * config/arm/nbsd.mt (TM_FILE): Update.
1994 * config/arm/linux.mt (TM_FILE): Update.
1995 * config/arm/embed.mt (TM_FILE): Update.
1996 * config/alpha/nbsd.mt (TM_FILE): Update.
1997 * config/alpha/fbsd.mt (TM_FILE): Update.
1998 * config/alpha/alpha.mt (TM_FILE): Update.
1999 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2000 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2001
2002 Eliminate event_loop_p, always has the value 1.
2003 * defs.h (event_loop_p): Delete macro.
2004 * breakpoint.c (until_break_command): Simplify.
2005 * utils.c (prompt_for_continue): Simplify.
2006 * tracepoint.c (read_actions): Simplify.
2007 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2008 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2009 (set_prompt, init_main): Simplify.
2010 (init_signals, disconnect): Delete, unused.
2011 * remote.c (remote_async_resume)
2012 (extended_remote_async_create_inferior): Simplify.
2013 * mi/mi-interp.c (mi_input): Delete, unused.
2014 (mi_interpreter_resume, mi_command_loop): Simplify.
2015 * interps.c (current_interp_command_loop): Simplify.
2016 * infrun.c (proceed): Simplify.
2017 * infcmd.c (run_command, continue_command, step_1, jump_command)
2018 (until_command, advance_command, finish_command)
2019 (interrupt_target_command): Simplify.
2020 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2021
2022 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2023 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2024 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2025 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2026 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2027 * mips-tdep.c (mips_dump_tdep): Do not print same.
2028
2029 2004-09-12 Andrew Cagney <cagney@gnu.org>
2030
2031 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2032 const.
2033 * Makefile.in (valprint.o): Delete explict rule.
2034
2035 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2036 reported by Dave Anderson.
2037
2038 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2039
2040 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2041
2042 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2043 Andrew Cagney <cagney@gnu.org>
2044
2045 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2046 (mi_cmd_data_list_register_values)
2047 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2048 the register number computation.
2049
2050 2004-09-12 Andrew Cagney <cagney@gnu.org>
2051
2052 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2053 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2054 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2055 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2056 target.
2057 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2058 inf-ptrace.o and inf-child.o.
2059 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2060 * Makefile.in: Update dependencies.
2061
2062 2004-09-11 Andrew Cagney <cagney@gnu.org>
2063
2064 * language.c (hex_string, hex_string_custom): Move from here ...
2065 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2066 (CELLSIZE): Increase to 50.
2067 * language.h (hex_string, hex_string_custom): Move from here ...
2068 * defs.h: ... to here.
2069 * Makefile.in: Update all dependencies.
2070
2071 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2072
2073 * language.c (local_hex_format_custom): Remove.
2074 (local_hex_string): Rename to hex_string, use C format, and move to
2075 utils.c
2076 (local_hex_string_custom): Rename to hex_string_custom and change
2077 interface. Now uses C format. Move to utils.c
2078 (local_octal_format_custom): Remove.
2079 (local_decimal_format_custom): Remove.
2080 (unknown_language_defn): Remove language-specific number
2081 formatting entries.
2082 (auto_language_defn): Ditto.
2083 (local_language_defn): Ditto.
2084 * language.h (struct language_format_info): Delete declaration.
2085 (struct language_defn): Remove language_format_info fields
2086 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2087 (local_binary_format): Remove macro.
2088 (local_binary_format_prefix): Remove macro.
2089 (local_binary_format_specifier): Remove macro.
2090 (local_binary_format_suffix): Remove macro.
2091 (local_octal_format): Remove macro.
2092 (local_octal_format_prefix): Remove macro.
2093 (local_octal_format_specifier): Remove macro.
2094 (local_octal_format_suffix): Remove macro.
2095 (local_decimal_format): Remove macro.
2096 (local_decimal_format_prefix): Remove macro.
2097 (local_decimal_format_specifier): Remove macro.
2098 (local_decimal_format_suffix): Remove macro.
2099 (local_hex_format): Remove macro.
2100 (local_hex_format_prefix): Remove macro.
2101 (local_hex_format_specifier): Remove macro.
2102 (local_hex_format_suffix): Remove macro.
2103 (local_decimal_format_custom): Remove.
2104 (local_octal_format_custom): Remove.
2105 (local_hex_format_custom): Remove.
2106 (local_hex_string): Rename to hex_string and move to defs.h.
2107 (local_hex_string_custom): Rename to hex_string_custom, change
2108 interface, and move to defs.h.
2109 * utils.c: (int_string): New function.
2110 (hex_string): New function (from language.c).
2111 (hex_string_custom): New function (from language.c).
2112 (octal2str): New function.
2113 (decimal2str): Add width parameter.
2114 (paddr_u): Use new decimal2str interface.
2115 (paddr_d): Ditto.
2116 * defs.h (hex_string): Declare.
2117 (hex_string_custom): Declare.
2118 (int_string): Declare.
2119 * printcmd.c (print_scalar_formatted): Remove localized binary
2120 formatting.
2121 * valprint.c (print_longest): Use int_string.
2122 (print_floating): Use C hex format.
2123 (print_hex_chars): Ditto.
2124 (print_binary_chars): Remove language-specific formatting.
2125 (print_octal_chars): Use C octal format.
2126 (print_decimal_chars): Delocalize format.
2127 (print_decimal): Remove.
2128 * ada-lang.c (ada_language_defn): Remove language-specific number
2129 formatting entries.
2130 * p-lang.c (pascal_language_defn): Ditto.
2131 * c-lang.c (c_language_defn): Ditto.
2132 (cplus_language_defn): Ditto.
2133 (asm_language_defn): Ditto.
2134 (minimal_language_defn): Ditto.
2135 * f-lang.c (f_language_defn): Ditto.
2136 * jv-lang.c (java_language_defn): Ditto.
2137 * m2-lang.c (m2_language_defn): Ditto.
2138 * scm-lang.c (scm_language_defn): Ditto.
2139 * objc-lang.c (objc_language_defn): Ditto.
2140 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2141 new interface.
2142 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2143 * ui-out.c (ui_out_field_core_addr): Ditto.
2144 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2145 * exec.c (print_section_info): Ditto.
2146 * i387-tdep.c (print_i387_status_word): Ditto.
2147 (print_i387_control_word): Ditto.
2148 (i387_print_float_info): Ditto.
2149 * maint.c (maint_print_section_info): Ditto.
2150 * solib.c (info_sharedlibrary_command): Ditto.
2151 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2152 * symtab.c (print_msymbol_info): Ditto.
2153 * tracepoint.c (tracepoints_info): Ditto.
2154 * solib-frv.c (lm_base): Ditto.
2155 (frv_current_sos): Ditto.
2156 (enable_break2): Ditto.
2157 (enable_break): Ditto.
2158 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2159 (process_one_symbol): Ditto.
2160 * infcmd.c (program_info): Ditto.
2161 * mdebugread.c (parse_partial_symbols): Ditto.
2162 * symfile.c (add_symbol_file_command): Ditto.
2163 * cli/cli-cmds.c (edit_command): Ditto.
2164 (list_command): Ditto.
2165 * infcall.c (call_function_by_hand): Ditto.
2166 * remote-vx.c (vx_run_files_info): Ditto.
2167 (vx_wait): Ditto.
2168 (vx_attach): Ditto.
2169 (vx_detach): Ditto.
2170 (vx_kill): Ditto.
2171 * aix-thread.c (pdc_symbol_addrs): Ditto.
2172 (pdc_read_regs): Ditto.
2173 (pdc_write_regs): Ditto.
2174 (pdc_read_data): Ditto.
2175 (pdc_write_data): Ditto.
2176 * d10v-tdep.c (display_trace): Ditto.
2177 * rs6000-nat.c (find_toc_address): Ditto.
2178 * aix-thread.c: Don't include language.h.
2179 * buildsym.c: Ditto.
2180 * dbxread.c: Ditto.
2181 * mdebugread.c: Ditto.
2182 * rs6000-nat.c: Ditto.
2183 * buildsym.c (make_blockvector): Use renamed hex_string.
2184
2185 2004-09-10 Jason Molenda (jmolenda@apple.com)
2186
2187 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2188 chars after 'if' or 'while' commands in user-defined commands.
2189
2190 2004-09-08 Jim Blandy <jimb@redhat.com>
2191
2192 Fix bug reported and analyzed by Olivier Crete:
2193 * symfile.c (copy_section_addr_info): New function.
2194 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2195 original set of address arguments, instead of handwritten code
2196 that uses one length to allocate and a different length to
2197 initialize. Use make_cleanup_free_section_addr_info.
2198 * symfile.h (copy_section_addr_info): New declaration.
2199 * utils.c: #include "symfile.h".
2200 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2201 New functions.
2202 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2203 * Makefile.in (utils.o): Update dependencies.
2204
2205 2004-09-08 Andrew Cagney <cagney@gnu.org>
2206
2207 * thread-db.c (keep_thread_db): Delete.
2208 (thread_db_new_objfile, thread_db_create_inferior)
2209 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2210
2211 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2212
2213 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2214 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2215 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2216 (i386_frameless_signal_p): Remove prototype.
2217 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2218 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2219 I386_SSE_NUM_REGS.
2220 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2221 instead of FP0_REGNUM.
2222 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2223 of FP0_REGNUM and FPC_REGNUM.
2224
2225 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2226 (sunos_solib_create_inferior_hook): Don't call
2227 sunos_relocate_main_executable.
2228
2229 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2230 solib_svr4_fetch_link_map_offsets to
2231 svr4_ilp32_fetch_link_map_offsets.
2232 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2233 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2234 svr4_ilp32_fetch_link_map_offsets.
2235 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2236
2237 2004-09-07 Jim Blandy <jimb@redhat.com>
2238
2239 * frame.h (frame_register): Doc fix.
2240
2241 2004-09-07 Andrew Cagney <cagney@gnu.org>
2242
2243 * vx-share/wait.h: Delete #ifdef USG.
2244 * utils.c (request_quit): Ditto.
2245 * tui/tui.c (tui_reset): Ditto.
2246 * remote.c: Ditto.
2247 * remote-sds.c: Ditto.
2248 * remote-rdi.c: Ditto.
2249 * mdebugread.c: Ditto.
2250 * m68klinux-nat.c: Ditto.
2251 * infttrace.c: Ditto.
2252 * infptrace.c: Ditto.
2253 * i386v-nat.c: Ditto.
2254 * exec.c: Ditto.
2255 * dbxread.c: Ditto.
2256 * core-aout.c: Ditto.
2257
2258 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2259
2260 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2261 heuristic_proc_desc.
2262 (mips_insn32_frame_cache): Likewise.
2263
2264 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2265
2266 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2267 left behind by error.
2268
2269 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2270
2271 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2272 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2273
2274 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2275
2276 * config/rs6000/xm-aix4.h: Remove this file.
2277 * config/rs6000/aix4.mh (XM_FILE): Delete.
2278
2279 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2280
2281 * config/rs6000/xm-rs6000.h: Remove this file.
2282 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2283
2284 2004-09-03 Andrew Cagney <cagney@gnu.org>
2285
2286 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2287 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2288 only use.
2289
2290 * mips-tdep.c (temp_saved_regs): Delete.
2291 (set_reg_offset): Replace saved_regs parameter with this_cache.
2292 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2293 (mips32_heuristic_proc_desc): Add this_cache parameter.
2294 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2295 (after_prologue): Pass a NULL this_cache.
2296
2297 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2298 non-kernel trap prologues.
2299
2300 * mips-tdep.c (find_proc_desc): Delete function.
2301 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2302 simplify.
2303 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2304 mips_insn32_frame_cache.
2305
2306 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2307 Simplify as NEXT_FRAME is NULL.
2308 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2309
2310 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2311 local variable.
2312 (mips_skip_prologue): Update.
2313
2314 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2315 "cur_frame" parameter.
2316 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2317 (mips_insn32_frame_cache, find_proc_desc): Update
2318
2319 * config/vax/nm-obsd.h: Delete file.
2320 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2321 * config/vax/nm-nbsd.h: Delete file.
2322 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2323 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2324 * config/sh/nm-nbsd.h: Delete file.
2325 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2326 * config/rs6000/nm-rs6000ly.h: Delete file.
2327 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2328 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2329 * config/powerpc/nm-obsd.h: Delete file.
2330 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2331 * config/powerpc/nm-nbsd.h: Delete file.
2332 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2333 * config/pa/nm-obsd.h: Delete file.
2334 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2335 * config/mips/nm-nbsd.h: Delete file.
2336 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2337 * config/m88k/nm-obsd.h: Delete file.
2338 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2339 * config/m68k/nm-nbsd.h: Delete file.
2340 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2341 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2342 * config/i386/nm-nbsd.h: Delete file.
2343 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2344 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2345 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2346 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2347 * config/i386/nm-i386lynx.h: Delete file.
2348 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2349 * config/arm/nm-nbsd.h: Delete file.
2350 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2351 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2352
2353 * config/i386/tm-fbsd.h: Delete file.
2354 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2355 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2356
2357 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2358 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2359 * config/rs6000/aix4.mt (TM_FILE): Set to
2360 config/rs6000/tm-rs6000.h.
2361 * config/powerpc/tm-ppc-aix.h: Delete file.
2362 * config/powerpc/aix.mt (TM_FILE): Set to
2363 config/rs6000/tm-rs6000.h.
2364 * config/m68k/tm-linux.h: Delete file.
2365 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2366 * config/i386/tm-linux64.h: Delete file.
2367 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2368 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2369
2370 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2371 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2372 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2373 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2374 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2375 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2376 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2377 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2378 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2379
2380 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2381 gdb_host_cpu.
2382
2383 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2384
2385 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2386 Minor reformatting. Some code factoring.
2387
2388 2004-09-02 Andrew Cagney <cagney@gnu.org>
2389
2390 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2391 * config/vax/tm-nbsd.h: Delete file.
2392 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2393 * config/sparc/tm-vxworks.h: Delete file.
2394 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2395 * config/sparc/tm-nbsd.h: Delete file.
2396 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2397 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2398 * config/sparc/tm-linux.h: Delete file.
2399 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2400 * config/s390/tm-linux.h: Delete file.
2401 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2402 * config/pa/tm-bsd.h: Delete file.
2403 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2404 * config/m68k/tm-obsd.h: Delete file.
2405 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2406 * config/m68k/tm-nbsd.h: Delete file.
2407 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2408 * config/i386/tm-vxworks.h: Delete file.
2409 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2410 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2411 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2412 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2413 * config/i386/tm-nbsd.h: Delete file.
2414 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2415 * config/i386/tm-i386lynx.h: Delete file.
2416 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2417 * config/cris/tm-cris.h: Delete file.
2418
2419 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2420 * configure: Re-generate.
2421 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2422 * config/arm/tm-nbsd.h: Delete file.
2423
2424 * config/powerpc/tm-ppcle-sim.h: Delete.
2425 * config/powerpc/tm-ppcle-eabi.h: Delete.
2426 * config/powerpc/tm-nbsd.h: Delete.
2427 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2428 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2429 tm-ppcle-eabi.h.
2430
2431 * config/i386/nto.mh (NAT_FILE): Delete.
2432 * config/i386/nm-nto.h: Delete.
2433
2434 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2435 * config/m68k/tm-os68k.h: Ditto.
2436 * config/m68k/tm-monitor.h: Ditto.
2437 * config/m68k/tm-cisco.h: Ditto.
2438 * config/m68k/st2000.mt (TM_FILE): Delete.
2439 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2440 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2441 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2442 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2443
2444 * config/m68k/tm-st2000.h: Delete.
2445 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2446 * config/sparc/fbsd.mt (TM_FILE): Delete.
2447 * config/sparc/tm-fbsd.h: Delete.
2448
2449 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2450 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2451 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2452
2453 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2454 GDB_TM_FILE and GDB_XM_FILE.
2455 * gdbarch.c: Re-generate.
2456 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2457 quotes in macro definition.
2458 * configure.in: Re-generate.
2459
2460 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2461 validating architecture methods.
2462 * gdbarch.c: Re-generate.
2463
2464 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2465 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2466 GDB_MULTI_ARCH_PARTIAL.
2467 * gdbarch.h: Re-generate.
2468
2469 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2470 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2471 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2472 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2473 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2474 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2475 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2476 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2477 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2478 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2479 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2480 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2481
2482 2004-09-01 Andrew Cagney <cagney@gnu.org>
2483
2484 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2485 and main_func_highpc.
2486 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2487 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2488 * nlmread.c (nlm_symfile_read): Update.
2489
2490 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2491
2492 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2493 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2494 (find_proc_desc): Remove dead code.
2495
2496 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2497
2498 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2499
2500 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2501
2502 * observer.sh: Add struct so_list declaration.
2503 * Makefile.in: Add dependencies on observer.h for solib.c and
2504 breakpoint.c.
2505 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2506 function.
2507 (_initialize_breakpoint): Register
2508 disable_breakpoints_in_unloaded_shlib as an observer of the
2509 "solib unloaded" observation event.
2510 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2511 call decode_line_1 so unfound breakpoint errors are silent.
2512 * solib.c (update_solib_list): When a solib is discovered to have
2513 been unloaded by the program, notify all observers of the
2514 "solib unloaded" observation event.
2515
2516 2004-09-01 Andrew Cagney <cagney@gnu.org>
2517
2518 * frame.c: Include "objfiles.h".
2519 (inside_main_func): New function.
2520 (get_prev_frame): Use new inside_main_func.
2521 * Makefile.in (frame.o): Update dependencies.
2522 * defs.h (inside_main_func): Delete declaration.
2523 * blockframe.c (inside_main_func): Delete function.
2524
2525 2004-08-31 Jim Blandy <jimb@redhat.com>
2526
2527 * dwarf2read.c (is_vtable_name): New function, based on logic from
2528 read_structure_type, but passing the correct length to strncmp,
2529 and using 'sizeof' instead of 'strlen'.
2530 (read_structure_type): Call it.
2531
2532 2004-08-31 Joel Brobecker <brobecker@gnat.com>
2533
2534 * config/powerpc/aix.mh: Add comment.
2535
2536 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2537
2538 * MAINTAINERS: Add self to Write-After-Approval.
2539
2540 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2541
2542 * MAINTAINERS: Add self to Write-After-Approval.
2543
2544 2004-08-30 Andrew Cagney <cagney@gnu.org>
2545
2546 Fix PR breakpoints/1757.
2547 * infrun.c (struct execution_control_state): Replace
2548 remove_breakpoints_on_following_step with
2549 step_after_step_resume_breakpoint.
2550 (init_execution_control_state): Update.
2551 (handle_inferior_event): For signals, when stepping off a
2552 breakpoint, set step_after_step_resume_breakpoint. When
2553 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2554 (keep_going): Delete code handling
2555 remove_breakpoints_on_following_step.
2556
2557 2004-08-29 David Lecomber <david@streamline-computing.com>
2558
2559 Fix PR gdb/648
2560 * language.h (enum array_ordering): New enum.
2561 * language.h (struct language_defn): New la_array_ordering
2562 attribute.
2563 * language.c (unknown_language_defn, auto_language_defn)
2564 (local_language_defn): Ditto.
2565 * ada-lang.c (ada_language_defn): Ditto.
2566 * c-lang.c (c_language_defn, cplus_language_defn)
2567 (asm_language_defn, minimal_language_defn): Ditto.
2568 * f-lang.c (f_language_defn): Ditto.
2569 * jv-lang.c (java_language_defn): Ditto.
2570 * m2-lang.c (f_language_defn): Ditto.
2571 * objc-lang.c (objc_language_defn): Ditto.
2572 * p-lang.c (pascal_language_defn): Ditto.
2573 * scm-lang.c (scm_language_defn): Ditto.
2574 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2575 oriented large to small in type structure.
2576 * dwarf2read.c (read_array_order): New function.
2577 (read_array_type): Use read_array_order to check row/column
2578 major ordering.
2579
2580 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2581
2582 * target.c (target_resize_to_sections): Check
2583 current_target.to_sections for an old value when updating.
2584
2585 2004-08-27 Joel Brobecker <brobecker@gnat.com>
2586
2587 * procfs.c (dbx_link_bpt_addr): New static global variable.
2588 (dbx_link_shadow_contents): New static global variable.
2589 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2590 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2591 if we just hit it.
2592 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2593 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2594 from run to run.
2595 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2596 after the inferior has been forked.
2597 (remove_dbx_link_breakpoint): New function.
2598 (dbx_link_addr): New function.
2599 (insert_dbx_link_bpt_in_file): New function.
2600 (insert_dbx_link_bpt_in_region): New function.
2601 (insert_dbx_link_breakpoint): New function.
2602 (proc_trace_syscalls_1): New function, extracted from
2603 proc_trace_syscalls.
2604 (proc_trace_syscalls): Replace extract code by call to
2605 proc_trace_syscalls_1.
2606 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2607 is no longer valid.
2608
2609 2004-08-25 Jim Blandy <jimb@redhat.com>
2610
2611 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2612
2613 2004-08-25 Andrew Cagney <cagney@gnu.org>
2614
2615 * infrun.c (struct execution_control_state): Delete field
2616 "stepping_through_sigtramp".
2617 (init_execution_control_state): Do not set same.
2618 (context_switch): Do not pass same to save_infrun_state and
2619 load_infrun_state.
2620 * gdbthread.h (struct thread_info): Delete field
2621 stepping_through_sigtramp.
2622 (save_infrun_state, load_infrun_state): Delete parameter
2623 stepping_through_sigtramp.
2624 * thread.c (load_infrun_state, save_infrun_state): Update.
2625
2626 * infrun.c: Re-indent. Move expression operators to the beginning
2627 of the line. Remove long disabled #if 0 code.
2628
2629 2004-08-24 Andrew Cagney <cagney@gnu.org>
2630
2631 * doublest.h (floatformat_ieee_quad): Rename
2632 floatformat_ia64_quad.
2633 * doublest.c (floatformat_ieee_quad): Rename
2634 floatformat_ia64_quad.
2635 (_initialize_doublest): Update.
2636
2637 2004-08-24 Jim Blandy <jimb@redhat.com>
2638
2639 * dwarf2expr.h (struct dwarf_expr_context): New members
2640 'num_pieces' and 'pieces', for returning the result of an
2641 expression that uses DW_OP_piece.
2642 (struct dwarf_expr_piece): New struct type.
2643 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2644 pieces.
2645 (free_dwarf_expr_context): Free pieces, if any.
2646 (add_piece): New function.
2647 (execute_stack_op): Implement DW_OP_piece.
2648 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2649 expression is a list of pieces, print an error message.
2650 (dwarf2_loc_desc_needs_frame): If the expression yields
2651 pieces, and any piece is in a register, then we need a frame.
2652
2653 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2654 the stack until we've decided what sort of result the evaluation
2655 has produced. Use separate variables, with more specific names.
2656
2657 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
2658
2659 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2660 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2661 (arm_netbsd_init_abi_common): Register them.
2662
2663 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2664
2665 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2666
2667 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2668 safe_frame_unwind_memory instead of target_read_memory.
2669
2670 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2671 Reorder includes.
2672 (fetch_register, store_register): Remove prototypes.
2673 (child_resume): Reorganize code and comments such that it is
2674 grouped a bit more logically.
2675 (attach): Explicitly compare errno against 0.
2676 (detach): Likewise. Use perror_with_name instead of
2677 print_sys_errmsg.
2678 * Makefile.in (infptrace.o): Update dependencies.
2679
2680 * ia64-linux-nat.c: Update copyright year.
2681 (fetch_debug_register, store_debug_register)
2682 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2683 PTRACE_TYPE_ARG3.
2684 * config/ia64/nm-linux.h: Update copyright year.
2685 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2686
2687 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2688 from CORE_ADDR to struct frame_info *. Use
2689 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2690 (amd64_linux_sigtramp_p): Adjust for changed signature of
2691 and64_linux_sigtramp_start
2692
2693 * gdb_ptrace.h: GNU/Linux.
2694
2695 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2696 Remove defines.
2697
2698 * infptrace.c: Include "gdb_assert.h".
2699 (PTRACE_XFER_TYPE): Remove define.
2700 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2701 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2702 Tweak comment.
2703 (fetch_inferior_registers, store_inferior_registers): Remove
2704 redundant culry braces. Tweak comment. s/regno/regnum.
2705 * Makefile.in (infptrace.o): Update dependencies.
2706
2707 * configure.in: Change test for return type of ptrace to default
2708 to `long' instead of `int'.
2709 * configure: Regenerate.
2710
2711 2004-08-21 Mark Kettenis <kettenis@gnu.org>
2712
2713 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2714
2715 * configure.in: Check for ttrace function.
2716 * configure, config.in: Regenerate.
2717
2718 * gdb_ptrace.h: New file.
2719 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2720 <sys/ptrace.h>.
2721 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2722 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2723 (attach): Don't define PT_ATTACH.
2724 (detach): Don't define PT_DETACH.
2725 * Makefile.in (gdb_ptrace_h): New variable.
2726 (infptrace.o): Update dependencies.
2727
2728 2004-08-16 Mark Kettenis <kettenis@gnu.org>
2729
2730 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2731 instead of `int' if not already defined.
2732 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2733 PTRACE_TYPE_ARG3.
2734 * infptrace.c (call_ptrace): Revert change that replaced
2735 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2736
2737 2004-08-15 Mark Kettenis <kettenis@gnu.org>
2738
2739 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2740 Remove defines.
2741
2742 * linux-nat.c (kill_inferior): Add missing third and fourth
2743 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2744
2745 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2746 PTRACE_TYPE_RET.
2747
2748 * proc-why.c (proc_prettyfprint_why): Fix format string.
2749
2750 * solib-osf.c (osf_current_sos): Remove unsused label.
2751
2752 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2753 curses headers.
2754 * configure, config.in: Regenerate.
2755 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2756 <ncurses/ncurses.h>.
2757
2758 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2759 * config/nm-nbsd.h: Update copyright year.
2760 (PTRACE_ARG3_TYPE): Remove define.
2761
2762 * sparc-nat.c (fetch_inferior_registers)
2763 (store_inferior_registers, sparc_xfer_wcookie):
2764 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2765
2766 * alphabsd-nat.c (fetch_inferior_registers):
2767 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2768 PTRACE_TYPE_ARG3.
2769 * amd64bsd-nat.c (fetch_inferior_registers)
2770 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2771 PTRACE_TYPE_ARG3.
2772 * armnbsd-nat.c: Update copyright year.
2773 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2774 (store_register, store_regs, store_fp_register, store_fp_regs):
2775 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2776 * hppabsd-nat.c (fetch_inferior_registers)
2777 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2778 PTRACE_TYPE_ARG3.
2779 * i386bsd-nat.c (fetch_inferior_registers)
2780 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2781 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2782 * m68kbsd-nat.c (fetch_inferior_registers)
2783 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2784 PTRACE_TYPE_ARG3.
2785 * m88kbsd-nat.c (fetch_inferior_registers)
2786 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2787 PTRACE_TYPE_ARG3.
2788 * mipsnbsd-nat.c: Update copyright year.
2789 (fetch_inferior_registers, store_inferior_registers):
2790 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2791 * ns32knbsd-nat.c: Update copyright year.
2792 (fetch_inferior_registers, store_inferior_registers):
2793 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2794 * ppcnbsd-nat.c (fetch_inferior_registers):
2795 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2796 PTRACE_TYPE_ARG3.
2797 * ppcobsd-nat.c (fetch_inferior_registers):
2798 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2799 PTRACE_TYPE_ARG3.
2800 * shnbsd-nat.c: Update copyright year.
2801 (fetch_inferior_registers, store_inferior_registers):
2802 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2803 * vaxbsd-nat.c (fetch_inferior_registers)
2804 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2805 PTRACE_TYPE_ARG3.
2806
2807 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2808 PTRACE_TYPE_ARG3.
2809 * infptrace.c (call_ptrace, child_resume, attach, detach)
2810 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2811 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2812 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2813 PTRACE_TYPE_ARG3.
2814
2815 2004-08-14 Mark Kettenis <kettenis@gnu.org>
2816
2817 * defs.h: Remove out-of-date comment.
2818 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2819 [!GETENV_PROVIDED] (getenv): Remove prototype.
2820
2821 * standalone.c: Remove file.
2822 * Makefile.in (standalone.o): Remove dependency.
2823
2824 * i386-linux-nat.c (dummy_sse_values): Remove function and
2825 prototype.
2826 (i386_linux_dr_get): Fix typo in comment.
2827 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2828
2829 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2830
2831 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2832 from declaration.
2833 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2834 from definition.
2835
2836 2004-08-13 Mark Kettenis <kettenis@gnu.org>
2837
2838 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2839 parenthesis in definition.
2840 * configure: Regenerated.
2841
2842 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2843
2844 * PROBLEMS: Mention build/1411.
2845
2846 2004-08-09 Robert Millan <robertmh@gnu.org>
2847
2848 Committed by Nathanael Nerode.
2849 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2850 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2851
2852 2004-08-12 Andrew Cagney <cagney@gnu.org>
2853
2854 * NEWS: Mention fixes in GDB 6.2.1.
2855 * PROBLEMS: Remove mention of mips-irix.
2856
2857 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2858
2859 * config/powerpc/xm-aix.h: Delete.
2860 * config/powerpc/aix.mh (MH_FILE): Remove.
2861 * config/powerpc/aix432.mh (MH_FILE): Remove.
2862
2863 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2864
2865 * config/powerpc/aix.mh: Remove obsolete comment.
2866 * config/powerpc/aix432.mh: Likewise.
2867
2868 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2869
2870 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2871
2872 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2873
2874 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2875 this file is now empty.
2876 * config/xm-aix4.h: Remove, this file is no longer included
2877 anywhere.
2878
2879 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2880
2881 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2882 that file is now empty.
2883 (termdef): Remove prototype, function no longer used.
2884
2885 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2886
2887 * doc/gdbint.texinfo (Host Definition): Remove documentation
2888 for USE_O_NOCTTY, no longer used.
2889 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2890 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2891
2892 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2893
2894 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2895 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2896 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2897
2898 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2899
2900 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2901 instead of FIVE_ARG_PTRACE.
2902
2903 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2904 (new_tty): Use O_NOCTTY unconditionally.
2905
2906 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2907
2908 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2909 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2910 fflush on stdout.
2911
2912 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2913
2914 * xcoff_symfile_finish: Replace last call to xmfree by call
2915 to xfree.
2916
2917 2004-08-10 Andrew Cagney <cagney@gnu.org>
2918
2919 * main.c (captured_main): Delete call to init_malloc.
2920 * defs.h (init_malloc): Delete declaration.
2921 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2922 (init_malloc): Delete functions.
2923
2924 * defs.h (xmfree): Delete.
2925 * utils.c (xmfree): Delete function.
2926 (xfree): Inline calls to xmfree and mfree.
2927 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2928 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2929 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2930 * somread.c (som_symfile_finish): Ditto.
2931 * objfiles.c (allocate_objfile, free_objfile):
2932 * nlmread.c (nlm_symfile_finish): Ditto.
2933 * hpread.c (hpread_symfile_finish): Ditto.
2934 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2935 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2936 * coffread.c (coff_symfile_finish): Ditto.
2937
2938 * defs.h (xmcalloc): Delete declaration.
2939 * utils.c (xmcalloc): Delete.
2940 (xcalloc): Inline calls to xmcalloc and mcalloc.
2941 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2942 xcalloc and xfree.
2943 * symtab.c (create_demangled_names_hash): Ditto.
2944
2945 * defs.h (xmrealloc): Delete.
2946 * utils.c (xmrealloc): Delete.
2947 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2948 * symmisc.c (extend_psymbol_list): Use xrealloc.
2949 * source.c (find_source_lines): Ditto.
2950 * hpread.c (hpread_lookup_type): Ditto.
2951 * dbxread.c (add_bincl_to_list): Ditto.
2952
2953 * utils.c (xmmalloc): Delete.
2954 (xmalloc): Inline xmmalloc and mmalloc calls.
2955 (msavestring): Use xmalloc.
2956 * defs.h (xmmalloc): Delete declaration.
2957 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2958 xmmalloc.
2959 * symmisc.c (extend_psymbol_list): Ditto.
2960 * symfile.c (init_psymbol_list): Ditto.
2961 * source.c (find_source_lines): Ditto.
2962 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2963 * elfread.c (elf_symtab_read): Ditto.
2964 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2965 * coffread.c (coff_symfile_init): Ditto.
2966
2967 2004-08-10 David Carlton <carlton@bactrian.org>
2968
2969 * MAINTAINERS: Remove David Carlton from c++ testsuite
2970 maintainers.
2971
2972 2004-08-10 Jerome Guitton <guitton@gnat.com>
2973
2974 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2975 print a line feed before the prompt.
2976
2977 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2978
2979 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2980
2981 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2982
2983 General cleanup of the AIX xm include file:
2984 * config/xm-aix4.h (fd_set): Remove undefine.
2985 Remove include of <sys/select.h>.
2986 (HAVE_TERMIO): Remove define.
2987 (USG): Likewise.
2988 (NULL): Remove redefine.
2989 (alloca): Remove #pragma.
2990 (vfork): Remove define.
2991 (termdef): Remove.
2992 (SIGWINCH_HANDLER): Remove.
2993 (SIGWINCH_HANDLER_BODY): Remove.
2994
2995 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2996
2997 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2998 GDB_OSABI_OPENBSD_ELF.
2999
3000 2004-08-07 Robert Millan <robertmh@gnu.org>
3001
3002 * bsd-kvm.c: Check for nlist.h before including it.
3003
3004 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3005
3006 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3007 sigcontext' offset consistency checks for ancient BSD.
3008
3009 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3010
3011 * configure.in: Check for <sys/types.h>. Check return and
3012 argument types of ptrace.
3013 * configure, config.in: Regenerate.
3014
3015 2004-08-09 Jim Blandy <jimb@redhat.com>
3016
3017 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3018 rs6000_register_sim_regno): Doc fixes.
3019
3020 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3021
3022 * mips-tdep.c: Include "floatformat.h".
3023 (n32n64_floatformat_always_valid): New function.
3024 (floatformat_n32n64_long_double_big): New constant.
3025 (mips_gdbarch_init): Set size and format of long double
3026 for N32 and N64 ABIs.
3027 * Makefile.in (mips-tdep.o): Update dependencies.
3028
3029 2004-08-08 Andrew Cagney <cagney@gnu.org>
3030
3031 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3032 print. Improve script's error messages.
3033 * gdbarch.h: Re-generate.
3034
3035 * gdbarch.sh (pformat): New function.
3036 (float_format, double_format, long_double_format): List with bit
3037 members. Use pformat when printing.
3038 * gdbarch.c, gdbarch.h: Re-generate.
3039
3040 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3041
3042 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3043 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3044 (ppcnbsd_supply_pcb): New function.
3045 (_initialize_ppcnbsd_nat): New prototype and function.
3046 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3047 (LOADLIBES): New variable.
3048 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3049
3050 2004-08-08 Andrew Cagney <cagney@gnu.org>
3051
3052 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3053 (builtin_type_ieee_double, builtin_type_ia64_quad)
3054 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3055 BE/LE floating-point types.
3056 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3057 (builtin_type_ieee_double, builtin_type_ia64_quad)
3058 (builtin_type_ia64_spill): Declare.
3059 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3060 (floatformat_ieee_double, floatformat_arm_ext)
3061 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3062 of LE/BE floatformats.
3063 * doublest.h: (struct floatformat, floatformat_ieee_single)
3064 (floatformat_ieee_double, floatformat_arm_ext)
3065 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3066
3067 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3068
3069 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3070
3071 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3072 instead of regcache_raw_supply when storing the registers.
3073
3074 * i386gnu-nat.c: Update copyright year.
3075 (gnu_store_registers): Don't use deprecated_registers and
3076 deprecated_registers_valid. Use regcache_valid_p and
3077 regcache_raw_supply instead.
3078
3079 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3080 frame_pc_unwind.
3081
3082 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3083 variables. Incapitalized "process".
3084
3085 * configure.in: Add cursesX to the list of possible curses libs.
3086 Add cursesX.h to the list of possible curses headers.
3087 * configure, config.in: Regenerate.
3088
3089 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3090
3091 * configure.in: Test for struct lwp in <sys/lwp.h>.
3092 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3093 the offset of l_addr in struct lwp.
3094
3095 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3096
3097 * bsd-kvm.c: Include "gdbcore.h"
3098 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3099
3100 2004-08-07 Andrew Cagney <cagney@gnu.org>
3101
3102 * gdbtypes.c (build_flt, build_complex): New functions.
3103 (gdbtypes_post_init): Use.
3104
3105 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3106
3107 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3108 through to builtin_type_uint128.
3109
3110 * c-exp.y: Use builtin_type function to obtain builtin types.
3111
3112 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3113 builtin_uint128.
3114 * gdbtypes.c (gdbtypes_post_init): Update.
3115 (build_gdbtypes): Move initialization of builtin_type_int0
3116 through to builtin_type_uint128 from here ...
3117 (_initialize_gdbtypes): ... to here.
3118 * d10v-tdep.c (d10v_register_type): Update.
3119
3120 * doublest.c: Update copyright.
3121 (floatformat_from_length): Call error when floatformat is NULL.
3122 (extract_floating_by_length): Remove NULL fmt check.
3123 (store_floating_by_length): Ditto.
3124
3125 2004-08-07 Andrew Cagney <cagney@gnu.org>
3126
3127 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3128 that the register is valid.
3129
3130 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3131
3132 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3133 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3134 struct frame_info *. Use safe_frame_unwind_memory instead of
3135 deprecated_read_memory_nobpt.
3136 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3137 changed signature of i386_linux_sigtramp_start and
3138 i386_linux_rt_sigtramp_start.
3139
3140 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3141 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3142 instead of deprecated_read_memory_nobpt.
3143 (i386nbsd_sigtramp_p): Adjust for changed signature of
3144 i386nbsd_sigtramp_offset.
3145
3146 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3147 safe_frame_unwind_memory instead of target_read_memory.
3148
3149 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3150 !NO_SYS_FILE.
3151 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3152 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3153 (_initialize_kernel_u_addr): Remove prototype and function.
3154 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3155 !NO_SYS_FILE.
3156 * xcoffread.c: Likewise.
3157
3158 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3159
3160 * vax-nat.c: New file.
3161 * vaxbsd-nat.c: Tweak comment.
3162 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3163 vaxnbsd-tdep.c.
3164 (vax-nat.o): New dependency.
3165 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3166 (vax-*-ultrix2*): Remove.
3167 * config/vax/vax.mh: New file.
3168 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3169 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3170 (vax_register_u_addr): New prototype.
3171 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3172 * config/vax/vaxult2.mh: Remove file.
3173 * config/vax/vaxult.mh: Remove file.
3174 * config/vax/vaxbsd.mh: Remove file.
3175 * config/vax/vax.mt (TM_FILE): Remove.
3176 * config/vax/tm-vaxbsd.h: Remove file.
3177
3178 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3179
3180 * aix-thread.c (get_signaled_thread): New function.
3181 (iter_trap): Delete, no longer used.
3182 (iter_tid): New function.
3183 (pd_update): Find the thread that received the SIGTRAP signal
3184 by first locating the kernel thread, and then finding its
3185 associated thread.
3186
3187 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3188
3189 * lin-lwp.c (child_wait): Continue inferior after processing
3190 PTRACE_EVENT_CLONE event.
3191
3192 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3193
3194 * MAINTAINERS: Add self to Write-After-Approval.
3195
3196 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3197
3198 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3199 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3200
3201 2004-08-05 Andrew Cagney <cagney@gnu.org>
3202
3203 * config/xm-sysv4.h: Delete file.
3204 * config/mips/xm-irix5.h: Delete file.
3205 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3206 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3207 * config/ia64/xm-aix.h: Delete file.
3208 * config/ia64/aix.mh (XM_FILE): Delete.
3209 * config/pa/xm-hppah.h: Delete file.
3210 * config/pa/hpux11w.mh (XM_FILE): Delete.
3211 * config/pa/hpux11.mh (XM_FILE): Delete.
3212 * config/pa/hpux1020.mh (XM_FILE): Delete.
3213 * config/pa/hppahpux.mh (XM_FILE): Delete.
3214
3215 * config/alpha/xm-alphalinux.h: Delete file.
3216 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3217 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3218 * config/alpha/xm-alphaosf.h: Delete file.
3219 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3220 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3221 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3222 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3223
3224 * config/i386/xm-i386v.h: Delete file.
3225 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3226 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3227 * config/i386/xm-i386sco.h: Delete file.
3228 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3229 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3230 * config/i386/xm-i386v4.h: Delete file.
3231 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3232 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3233 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3234 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3235
3236 * config/vax/xm-vax.h: Delete file.
3237 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3238 * config/vax/xm-vaxult2.h: Delete file.
3239 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3240 * config/vax/vaxult2.mh (XM_FILE): Delete.
3241 * config/vax/xm-vaxult.h: Delete file.
3242 * config/vax/vaxult.mh (XM_FILE): Delete.
3243 * config/vax/xm-vaxbsd.h: Delete file.
3244 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3245
3246 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3247 * gdbarch.h, gdbarch.c: Re-generate.
3248 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3249 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3250 * frame.h: Delete deprecated_read_fp from comments.
3251 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3252 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3253
3254 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3255
3256 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3257 trampoline in OpenBSD 3.5-current.
3258
3259 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3260 SSE registers.
3261
3262 * Makefile.in: Remove embedded page breaks.
3263
3264 2004-08-04 Jim Blandy <jimb@redhat.com>
3265
3266 * regcache.c (regcache_raw_read): Assert that, after calling
3267 target_fetch_registers, the register we're reading is cached.
3268
3269 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3270 a call to 'internal_error', with a more helpful error message.
3271 * rs6000-tdep.c (e500_pseudo_register_read,
3272 e500_pseudo_register_write, rs6000_store_return_value): Same.
3273
3274 2004-08-04 Andrew Cagney <cagney@gnu.org>
3275
3276 * Makefile.in: Update dependencies.
3277
3278 2004-08-04 Jim Blandy <jimb@redhat.com>
3279
3280 Change the layout of the PowerPC E500 raw register cache to allow
3281 the lower 32-bit halves of the GPRS to be their own raw registers,
3282 not pseudoregisters.
3283 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3284 add ppc_ev0_upper_regnum flag.
3285 * rs6000-tdep.c: #include "reggroups.h".
3286 (spe_register_p): Recognize the ev upper half registers as SPE
3287 registers.
3288 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3289 registers.
3290 (e500_move_ev_register): New function.
3291 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3292 vector registers are the pseudo-registers now, formed by splicing
3293 together the gprs and the upper-half registers.
3294 (e500_register_reggroup_p): New function.
3295 (P): Macro deleted.
3296 (P8, A4): New macro.
3297 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3298 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3299 macros.
3300 (registers_e500): Rearrange register set so that the raw register
3301 set contains 32-bit GPRs and upper-half registers, and the SPE
3302 vector registers become pseudo-registers.
3303 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3304 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3305 register numbers are now the same for the E500 as they are for
3306 other PowerPC variants. Register e500_register_reggroup_p as the
3307 register group function for the E500.
3308 * Makefile.in (rs6000-tdep.o): Update dependencies.
3309
3310 Adapt PPC E500 native support to the new raw regcache layout.
3311 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3312 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3313 (fetch_spe_register, store_spe_register): Handle fetching/storing
3314 all the SPE registers at once, if regno == -1. These now take
3315 over the job of fetch_spe_registers and store_spe_registers.
3316 (fetch_spe_registers, store_spe_registers): Deleted.
3317 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3318 unconditionally; they're always raw. Fetch/store SPE upper half
3319 registers, if present, instead of ev registers.
3320 (fetch_register, store_register): Remove sanity checks: gprs are
3321 never pseudo-registers now, so we never need to even mention any
3322 registers that are ever pseudoregisters.
3323
3324 Use a fixed register numbering when communicating with the PowerPC
3325 simulator.
3326 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3327 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3328 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3329 New functions.
3330 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3331 init_sim_regno_table.
3332 * Makefile.in (gdb_sim_ppc_h): New variable.
3333 (rs6000-tdep.o): Update dependencies.
3334
3335 2004-08-02 Andrew Cagney <cagney@gnu.org>
3336
3337 * cris-tdep.c (cris_register_size): Restore function, still used
3338 locally.
3339
3340 * gdbarch.sh (deprecated_target_read_fp)
3341 (deprecated_frame_locals_address, deprecated_frame_args_address)
3342 (deprecated_frame_chain_valid, deprecated_frame_chain)
3343 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3344 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3345 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3346 * gdbarch.h, gdbarch.c: Re-generate.
3347 * regcache.c (deprecated_read_fp): Do not call
3348 DEPRECATED_TARGET_READ_FP_P.
3349 * infcmd.c (default_print_registers_info): Do not call
3350 DEPRECATED_DO_REGISTERS_INFO.
3351 * frame-base.c (default_frame_locals_address): Do not call
3352 DEPRECATED_FRAME_LOCALS_ADDRESS.
3353 (default_frame_args_address): Do not call
3354 DEPRECATED_FRAME_ARGS_ADDRESS.
3355
3356 * gdbarch.sh (deprecated_register_raw_size)
3357 (deprecated_register_virtual_size:int): Delete.
3358 * gdbarch.h, gdbarch.c: Re-generate.
3359 * cris-tdep.c (cris_register_size): Delete.
3360 (cris_gdbarch_init): Update.
3361 * alpha-tdep.c (alpha_register_raw_size)
3362 (alpha_register_virtual_size): Delete.
3363 (alpha_gdbarch_init): Update.
3364
3365 * gdbarch.sh (deprecated_register_virtual_type)
3366 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3367 (deprecated_dummy_write_sp): Delete.
3368 * gdbarch.h, gdbarch.c: Re-generate.
3369
3370 * gdbarch.sh (deprecated_register_bytes): Delete.
3371 * gdbarch.h, gdbarch.c: Re-generate.
3372 * regcache.c (deprecated_register_bytes): New function.
3373 * regcache.h (deprecated_register_bytes): Declare.
3374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3375 * v850-tdep.c (v850_gdbarch_init): Update.
3376 * sh64-tdep.c (sh64_gdbarch_init): Update.
3377 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3378 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3379 * mcore-tdep.c (mcore_gdbarch_init): Update.
3380 * cris-tdep.c (cris_gdbarch_init): Update.
3381 * arm-tdep.c (arm_gdbarch_init): Update.
3382 * remote.c (init_remote_state): Update.
3383 * remote-vx.c (vx_prepare_to_store): Update.
3384 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3385 * irix5-nat.c (fetch_core_registers): Update.
3386 * cris-tdep.c (cris_register_bytes_ok): Update.
3387 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3388
3389 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3390 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3391 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3392 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3393 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3394 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3395 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3396 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3397 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3398 with mips_insn16 and mips_insn32.
3399
3400 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3401 * rs6000-tdep.c (rs6000_push_dummy_call)
3402 (rs6000_extract_return_value): Use register_size.
3403 * xstormy16-tdep.c (xstormy16_get_saved_register)
3404 (xstormy16_extract_return_value): Ditto.
3405 * valops.c (value_assign): Ditto.
3406 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3407 * v850-tdep.c (v850_extract_return_value): Ditto.
3408 * tracepoint.c (collect_symbol): Ditto.
3409 * target.c (debug_print_register): Ditto.
3410 * stack.c (frame_info): Ditto.
3411 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3412 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3413 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3414 (store_register_using_P): Ditto.
3415 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3416 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3417 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3418 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3419 * regcache.c (deprecated_read_register_bytes)
3420 (deprecated_write_register_bytes, read_register)
3421 (write_register): Ditto.
3422 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3423 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3424 * monitor.c (monitor_supply_register, monitor_fetch_register)
3425 (monitor_store_register): Ditto.
3426 * mn10300-tdep.c (mn10300_pop_frame_regular)
3427 (mn10300_print_register): Ditto.
3428 * mipsv4-nat.c (fill_fpregset): Ditto.
3429 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3430 (mips64_fill_fpregset): Ditto.
3431 * mi/mi-main.c (register_changed_p, get_register)
3432 (mi_cmd_data_write_register_values): Ditto.
3433 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3434 * irix5-nat.c (fill_gregset, fetch_core_registers):
3435 * infrun.c (write_inferior_status_register): Ditto.
3436 * infptrace.c (fetch_register, store_register): Ditto.
3437 * infcmd.c (default_print_registers_info): Ditto.
3438 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3439 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3440 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3441 * hpux-thread.c (hpux_thread_fetch_registers)
3442 (hpux_thread_store_registers): Ditto.
3443 * hppah-nat.c (store_inferior_registers, fetch_register):
3444 * findvar.c (value_from_register): Ditto.
3445 * dve3900-rom.c (fetch_bitmapped_register):
3446 * cris-tdep.c (cris_gdbarch_init): Ditto.
3447 * alpha-tdep.h: Ditto.
3448 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3449
3450 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3451 DEPRECATED_REGISTER_RAW_SIZE from comments.
3452 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3453 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3454 DEPRECATED_REGISTER_RAW_SIZE.
3455 * findvar.c (value_of_register): Simplify by assuming that the
3456 registers raw and virtual sizes are identical.
3457 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3458 comment.
3459 * arch-utils.c (generic_register_size): Simplify by assuming
3460 register_type.
3461
3462 * regcache.c (legacy_read_register_gen, real_register)
3463 (legacy_write_register_gen): Delete, not used.
3464
3465 * regcache.c (struct regcache_descr): Delete legacy_p.
3466 (init_legacy_regcache_descr): Delete function.
3467 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3468 Do not use deprecated register functions.
3469 (regcache_raw_read, deprecated_write_register_gen):
3470 (deprecated_read_register_gen, regcache_raw_write): Delete code
3471 predicated on legacy_p.
3472 (register_size): Delete check against register raw size.
3473
3474 * cris-tdep.c (cris_register_type): Replace
3475 cris_register_virtual_type.
3476 (cris_gdbarch_init): Update, set register_type.
3477
3478 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3479 * gdbarch.h, gdbarch.c: Re-generate.
3480 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3481 (arm_gdbarch_init) Do not set frameless function invocation.
3482 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3483 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3484 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3485 (frv_gdbarch_init): Do not set frameless function invocation.
3486 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3487 * sh-tdep.c (sh_gdbarch_init): Ditto.
3488 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3489 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3490 * avr-tdep.c (avr_gdbarch_init): Ditto.
3491
3492 * blockframe.c (legacy_frame_chain_valid): Delete function.
3493
3494 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3495 and pc. Update comments.
3496 (pc_in_dummy_frame): Delete function.
3497 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3498 use the "id".
3499 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3500 call_hi, top and pc, use the id.
3501 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3502
3503 * dummy-frame.c: Include "gdb_string.h".
3504 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3505 (generic_save_dummy_frame_tos): Delete.
3506 (dummy_frame_push): New function, replaces above.
3507 * dummy-frame.h: Update copyright.
3508 (dummy_frame_push): Declare.
3509 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3510 (generic_save_call_dummy_addr): Delete declarations.
3511 * infcall.c: Include "dummy-frame.h".
3512 (call_function_by_hand): Add locals caller_regcache,
3513 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3514 with call to frame_save_as_regcache plus cleanup. Delete calls to
3515 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3516 Move clear_proceed_status to just before the resume, add call to
3517 dummy_frame_push (discard cleanup).
3518 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3519 (dummy-frame.o): Add $(gdb_string_h).
3520
3521 2004-08-01 Andrew Cagney <cagney@gnu.org>
3522
3523 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3524 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3525 * dummy-frame.c (find_dummy_frame): Delete.
3526 (struct dummy_frame_cache, dummy_frame_sniffer)
3527 (dummy_frame_prev_register, dummy_frame_this_id)
3528 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3529 frame unwinder using a dummy_frame_cache.
3530
3531 2004-08-01 Andrew Cagney <cagney@gnu.org>
3532
3533 * frame.h (frame_save_as_regcache): Declare.
3534 * frame.c (frame_save_as_regcache): New function.
3535 (do_frame_read_register): Replace do_frame_unwind_register.
3536 (frame_pop): Use frame_save_as_regcache.
3537 * dummy-frame.c (generic_push_dummy_frame): Use
3538 frame_save_as_regcache.
3539
3540 2004-08-01 Joel Brobecker <brobecker@gnat.com>
3541
3542 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3543 file as included until we record the first line in the linetable.
3544
3545 2004-08-01 Andrew Cagney <cagney@gnu.org>
3546
3547 * frame.h (deprecated_pop_dummy_frame)
3548 (deprecated_read_register_dummy)
3549 (deprecated_generic_find_dummy_frame): Delete.
3550 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3551 (deprecated_read_register_dummy)
3552 (deprecated_find_dummy_frame_regcache)
3553 (discard_innermost_dummy)
3554 (deprecated_pop_dummy_frame): Delete.
3555 (dummy_frame_this_id): Simplify.
3556 (struct dummy_frame): Delete "fp" and "sp".
3557 (find_dummy_frame): Simplify.
3558 (generic_push_dummy_frame): Do not set "fp" or "sp".
3559 (fprint_dummy_frames): Do not print "fp" and "sp"
3560
3561 2004-08-01 Mark Kettenis <kettenis@gnu.org>
3562
3563 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3564 (struct i386_insn): New structure.
3565 (i386_match_insn): New function.
3566 (i386_frame_setup_skip_insns): New variable.
3567 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3568 array i386_frame_setup_insns of instructions that should be
3569 skipped inside the frame setup sequence.
3570
3571 2004-08-01 Andrew Cagney <cagney@gnu.org>
3572
3573 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3574 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3575 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3576 * stack.c (frame_info): Delete references to
3577 DEPRECATED_FRAME_INIT_SAVED_REGS and
3578 deprecated_get_frame_saved_regs.
3579 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3580 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3581 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3582 (frame_unwind_register_signed)
3583 (frame_unwind_register_unsigned)
3584 (frame_unwind_unsigned_register): Use register_size.
3585 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3586 (deprecated_frame_xmalloc_with_cleanup)
3587 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3588 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3589
3590 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3591 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3592 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3593 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3594
3595 * infcall.c (call_function_by_hand): Do not use
3596 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3597 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3598 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3599 DEPRECATED_STACK_ALIGN.
3600
3601 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3602
3603 Committed by Andrew Cagney.
3604 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3605
3606 2004-08-01 Andrew Cagney <cagney@gnu.org>
3607
3608 * mips-tdep.c (mips16_frame_cache)
3609 (mips16_frame_this_id, mips16_frame_prev_register)
3610 (mips16_frame_unwind, mips16_frame_sniffer)
3611 (mips16_frame_base_address, mips16_frame_base)
3612 (mips16_frame_base_sniffer, mips32_frame_cache)
3613 (mips32_frame_this_id, mips32_frame_prev_register)
3614 (mips32_frame_unwind, mips32_frame_sniffer)
3615 (mips32_frame_base_address, mips32_frame_base)
3616 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3617 separate heuristic mips16 and mips32 unwinders.
3618 (mips_stub_frame_cache, mips_stub_frame_this_id)
3619 (mips_stub_frame_prev_register)
3620 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3621 (mips_stub_frame_base_address, mips_stub_frame_base)
3622 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3623 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3624 match true mdebug frames.
3625 (non_heuristic_proc_desc): Add forward declaration.
3626
3627 2004-08-01 Andrew Cagney <cagney@gnu.org>
3628
3629 * config/mips/tm-irix6.h: Delete file.
3630 * config/mips/tm-irix5.h: Delete file.
3631 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3632 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3633
3634 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3635 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3636 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3637 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3638 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3639 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3640 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3641 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3642 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3643 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3644 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3645 (TARGET_SIGNAL_RAW_VALUES): Delete.
3646 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3647 Delete.
3648 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3649 (TARGET_HW_WATCH_LIMIT): Delete.
3650 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3651 * minimon.h: Delete file.
3652
3653 * trad-frame.c (trad_frame_get_this_base)
3654 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3655 functions.
3656 * trad-frame.h (trad_frame_set_this_base)
3657 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3658
3659 2004-07-31 Andrew Cagney <cagney@gnu.org>
3660
3661 * trad-frame.c (trad_frame_get_prev_register): Rename
3662 trad_frame_get_prev_register.
3663 * vax-tdep.c (vax_frame_prev_register): Update.
3664 * trad-frame.h: Update.
3665 * trad-frame.c (trad_frame_get_register): Update.
3666 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3667 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3668 Update.
3669 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3670 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3671 Update.
3672 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3673 Update.
3674 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3675 Update.
3676 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3677 Update.
3678 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3679 Update.
3680 * s390-tdep.c (s390_frame_prev_register)
3681 (s390_stub_frame_prev_register)
3682 (s390_sigtramp_frame_prev_register): Update.
3683 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3684 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3685 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3686 * m88k-tdep.c (m88k_frame_prev_register)
3687 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3688 * m32r-tdep.c (m32r_frame_prev_register): Update.
3689 * hppa-tdep.c (hppa_frame_prev_register_helper)
3690 * frv-tdep.c (frv_frame_prev_register): Update.
3691 * d10v-tdep.c (d10v_frame_prev_register): Update.
3692 * cris-tdep.c (cris_frame_prev_register): Update.
3693 * avr-tdep.c (avr_frame_prev_register): Update.
3694 * arm-tdep.c (arm_prologue_prev_register)
3695 (arm_sigtramp_prev_register): Update.
3696
3697 2004-07-31 Andrew Cagney <cagney@gnu.org>
3698
3699 * frame.h (legacy_saved_regs_unwind)
3700 (legacy_frame_chain_valid, legacy_frame_p)
3701 (enum frame_type): Delete UNKNOWN_FRAME.
3702 * dummy-frame.c (dummy_frame_this_id): Simplify.
3703 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3704 * frame.c (struct frame_info): Delete the field "type".
3705 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3706 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3707 (legacy_saved_regs_unwind, legacy_frame_p)
3708 (frame_type_from_pc): Delete.
3709 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3710 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3711
3712 2004-07-31 Mark Kettenis <kettenis@gnu.org>
3713
3714 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3715 indentation.
3716
3717 * mips-nat.c: Remove file.
3718 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3719 (mips-nat.o): Remove dependency.
3720
3721 * infptrace.c: Update copyright year.
3722 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3723 explicitly setting the buffer to all zeroes.
3724
3725 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3726 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3727
3728 2004-07-30 Andrew Cagney <cagney@gnu.org>
3729
3730 * GDB 6.2 released from gdb_6_2-branch.
3731
3732 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3733
3734 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3735
3736 * exec.c (exec_file_attach):
3737 * nto-tdep.c (nto_find_and_open_solib):
3738 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3739 * solib.c (solib_open):
3740 * somsolib.c (som_solib_sizeof_symbol_table):
3741 * source.c (is_regular_file, openp, open_source_file):
3742 * symfile.c (symfile_bfd_open):
3743 * wince.c (upload_to_device): Differentiate between the search for
3744 binary and source files.
3745
3746 2004-07-30 Andrew Cagney <cagney@gnu.org>
3747
3748 * complaints.c (_initialize_complaints): Pass NULL to
3749 add_setshow_zinteger_cmd for help_doc.
3750 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3751
3752 2004-07-30 Andrew Cagney <cagney@gnu.org>
3753
3754 Fix PR i18n/761.
3755 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3756 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3757 $(PACKAGE).pot and update-po.
3758 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3759 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3760 (update-po): New rules.
3761 (localedir): Define using autoconf.
3762 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3763 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3764 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3765 * configure.in: Generate CATALOGS and LINGUAS from contents of
3766 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3767 * configure: Re-generate.
3768 * po/gdbtext: New file
3769
3770 2004-07-30 Jerome Guitton <guitton@gnat.com>
3771
3772 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3773 order.
3774
3775 2004-07-30 David Lecomber <dsl@sources.redhat.com>
3776
3777 * dwarf2read.c (read_file_scope): Set producer if attribute
3778 present.
3779 (struct dwarf2_cu): Added new member producer.
3780
3781 2004-07-30 Jerome Guitton <guitton@gnat.com>
3782
3783 * inflow.c (kill_command): release file handles in BFD.
3784 * exec.c (exec_file_attach): Ditto.
3785 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3786
3787 2004-07-29 Andrew Cagney <cagney@gnu.org>
3788
3789 * PROBLEMS (mips-irix): Note that it is broken.
3790
3791 2004-07-29 Andrew Cagney <cagney@gnu.org>
3792
3793 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3794 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3795
3796 * config/xm-nbsd.h: Delete file.
3797 * config/arm/xm-nbsd.h: Delete file.
3798 * config/i386/xm-nbsd.h: Delete file.
3799 * config/ns32k/xm-nbsd.h: Delete file.
3800 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3801 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3802 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3803 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3804 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3805
3806 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3807 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3808 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3809 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3810 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3811 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3812
3813 * config/powerpc/xm-linux.h: Delete empty file.
3814 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3815 * config/powerpc/linux.mh (XM_FILE): Delete.
3816 * config/m68k/xm-linux.h: Delete empty file.
3817 * config/m68k/linux.mh (XM_FILE): Delete.
3818 * config/ia64/xm-linux.h: Delete empty file.
3819 * config/ia64/linux.mh (XM_FILE): Delete.
3820 * config/arm/xm-linux.h: Delete empty file.
3821 * config/arm/linux.mh (XM_FILE): Delete.
3822
3823 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3824 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3825 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3826 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3827 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3828 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3829 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3830 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3831
3832 * config/m68k/xm-m68k.h: Delete file.
3833 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3834 copyright.
3835 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3836 * config/pa/xm-linux.h: Delete empty file.
3837 * config/pa/linux.mh (XM_FILE): Delete.
3838 * config/i386/xm-i386.h: Delete empty file.
3839 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3840 "i386/xm-i386.h".
3841 * config/i386/obsdaout.mh (XM_FILE): Delete.
3842 * config/i386/obsd64.mh (XM_FILE): Delete.
3843 * config/i386/fbsd64.mh (XM_FILE): Delete.
3844 * config/i386/nto.mh (XM_FILE): Delete.
3845 * config/i386/obsd.mh (XM_FILE): Delete.
3846 * config/i386/linux64.mh (XM_FILE): Delete.
3847 * config/i386/linux.mh (XM_FILE): Delete.
3848 * config/i386/i386sol2.mh (XM_FILE): Delete.
3849 * config/i386/i386gnu.mh (XM_FILE): Delete.
3850 * config/i386/fbsd.mh (XM_FILE): Delete.
3851 * config/i386/nbsd64.mh (XM_FILE): Delete.
3852
3853 2004-07-29 Andrew Cagney <cagney@gnu.org>
3854
3855 * config/pa/xm-linux.h: Do not include "floatformat.h".
3856 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3857 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3858 * config/i386/xm-i386.h: Do not include "floatformat.h".
3859 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3860 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3861 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3862 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3863 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3864 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3865 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3866 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3867 * configure, config.in: Regenerate.
3868 * configure.host (gdb_host_float_format, gdb_host_double_format)
3869 (gdb_host_long_double_format): Set according to the host.
3870
3871 2004-07-29 Andrew Cagney <cagney@gnu.org>
3872
3873 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3874
3875 2004-07-28 Andrew Cagney <cagney@gnu.org>
3876
3877 * PROBLEMS: Mention threads/1650.
3878 * NEWS: Mention the NPTL fix.
3879
3880 2004-07-28 Andrew Cagney <cagney@gnu.org>
3881
3882 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3883 (add_setshow_cmd_full): Make static.
3884 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3885 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3886 * cli/cli-decode.c (add_setshow_filename_cmd)
3887 (add_setshow_string_cmd): New functions.
3888 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3889 * mips-tdep.c (_initialize_mips_tdep): Update.
3890 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3891 * cli/cli-logging.c (_initialize_cli_logging): Update.
3892 * complaints.c (_initialize_complaints): Update.
3893 * remote.c (_initialize_remote): Update.
3894
3895 2004-07-28 Andrew Cagney <cagney@gnu.org>
3896
3897 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3898 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3899 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3900 print parameters. Make string parameters constant.
3901 * command.h: Update. Update copyright.
3902 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3903 * observer.c (_initialize_observer): Ditto.
3904 * frame.c (_initialize_frame): Ditto.
3905 * complaints.c (_initialize_complaints): Ditto.
3906 * maint.c (_initialize_maint_cmds): Ditto.
3907 * target.c (initialize_targets): Ditto.
3908 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3909 * infcall.c (_initialize_infcall): Ditto.
3910 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3911 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3912 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3913 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3914 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3915
3916 2004-07-28 Andrew Cagney <cagney@gnu.org>
3917
3918 * gdbtypes.c (lookup_primitive_typename): Delete function.
3919 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3920 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3921 * gdbtypes.c (lookup_typename): Ditto.
3922 * f-exp.y (yylex): Ditto.
3923 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3924
3925 * scm-lang.c (c_builtin_types): Delete extern declaration.
3926 (scm_language_defn): Replace
3927 string_char_type and primitive_type_vector with
3928 la_language_arch_info.
3929 * jv-lang.c (java_language_defn): Replace
3930 string_char_type and primitive_type_vector with
3931 la_language_arch_info.
3932 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3933 c_builtin_types in comment.
3934 * c-lang.h (struct language_arch_info): Declare opaque.
3935 (c_language_arch_info): Declare.
3936 (c_builtin_types): Delete declaration.
3937 * c-lang.c (c_language_arch_info): Set string_char_type to
3938 builtin_char, not builtin_true_char. Make global.
3939 (c_builtin_types): Delete array.
3940 (asm_language_defn, minimal_language_defn): Replace
3941 string_char_type and primitive_type_vector with
3942 la_language_arch_info.
3943
3944 2004-07-28 Andrew Cagney <cagney@gnu.org>
3945
3946 * gdbtypes.h (struct builtin_type): Rename true_char to
3947 builtin_true_char.
3948 * gdbtypes.c (gdbtypes_post_init): Update.
3949 * c-lang.c (arch_info): New function.
3950 (enum c_primitive_types): New enum.
3951 (c_language_defn): Instead of string_char_type and
3952 primitive_type_vector set la_language_arch_info.
3953
3954 2004-07-28 Andrew Cagney <cagney@gnu.org>
3955
3956 * language.h (struct language_arch_info): Fix typo
3957 s/primative/primitive/.
3958 * gdbtypes.c (lookup_primitive_typename): Ditto.
3959 * language.c (language_lookup_primitive_type_by_name)
3960 (unknown_language_arch_info): Ditto.
3961
3962 2004-07-27 Andrew Cagney <cagney@gnu.org>
3963
3964 * defs.h (enum language): Add nr_languages.
3965 * language.h (struct language_arch_info): Define.
3966 (struct language_defn): Add la_language_arch_info.
3967 (language_lookup_primative_type_by_name): Declare.
3968 (language_string_char_type): Declare.
3969 * language.c (_initialize_language, language_gdbarch_post_init)
3970 (struct language_gdbarch, language_gdbarch_data): Implement
3971 per-architecture language information.
3972 (unknown_language_arch_info, language_string_char_type)
3973 (language_lookup_primative_type_by_name): New functions.
3974 (unknown_language_defn, auto_language_defn)
3975 (local_language_defn): Set la_language_arch_info to
3976 unknown_language_arch_info.
3977 (unknown_builtin_types): Delete.
3978 * gdbtypes.c (lookup_primitive_typename): Use
3979 language_lookup_primative_type_by_name.
3980 (create_string_type): Use language_string_char_type.
3981 * values.c (value_from_string): Use language_string_char_type.
3982 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3983 * p-lang.c (pascal_language_defn): Ditto.
3984 * m2-lang.c (m2_language_defn): Ditto.
3985 * jv-lang.c (java_language_defn): Ditto.
3986 * objc-lang.c (objc_language_defn): Ditto.
3987 * f-lang.c (f_language_defn): Ditto.
3988 * c-lang.c (c_language_defn, cplus_language_defn)
3989 (asm_language_defn, minimal_language_defn): Ditto.
3990
3991 2004-07-27 Andrew Cagney <cagney@gnu.org>
3992
3993 * gdbtypes.h (struct builtin_type): Declare.
3994 (builtin_type): Declare.
3995 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3996 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3997 (gdbtypes_post_init): New function.
3998 (builtin_type): New function.
3999
4000 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4001
4002 * remote-m32r-sdi.c: Fix breakpoint bug.
4003 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4004 recv_char_data, recv_long_data): New functions to replace communication
4005 sequences.
4006
4007 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4008
4009 Document PR threads/1650.
4010 * PROBLEMS (Threads): Document problem with many threads
4011
4012 2004-07-26 Andrew Cagney <cagney@gnu.org>
4013
4014 * gdb-mi.el: Move from here ...
4015 * mi/gdb-mi.el: ... to here.
4016
4017 2004-07-26 Andrew Cagney <cagney@gnu.org>
4018
4019 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4020 * main.c (captured_main): When in batch mode always detach.
4021
4022 2004-07-26 Andrew Cagney <cagney@gnu.org>
4023
4024 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4025 and h8300 as broken.
4026 * NEWS: END-OF-LIFE frame compatibility module.
4027 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4028 specific comments.
4029
4030 2004-07-26 Andrew Cagney <cagney@gnu.org>
4031
4032 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4033 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4034 * wince.c (_initialize_wince): Update.
4035 * win32-nat.c (_initialize_win32_nat): Update.
4036 * varobj.c (_initialize_varobj): Update.
4037 * valops.c (_initialize_valops): Update.
4038 * utils.c (initialize_utils, initialize_utils): Update.
4039 * tui/tui-win.c (_initialize_tui_win): Update.
4040 * top.c (init_main): Update.
4041 * symfile.c (_initialize_symfile): Update.
4042 * source.c (_initialize_source): Update.
4043 * somsolib.c (_initialize_som_solib): Update.
4044 * solib.c (_initialize_solib): Update.
4045 * solib-frv.c (_initialize_frv_solib): Update.
4046 * serial.c (_initialize_serial): Update.
4047 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4048 * remote.c (_initialize_remote, _initialize_remote): Update.
4049 * remote-vx.c (_initialize_vx): Update.
4050 * remote-utils.c (_initialize_sr_support): Update.
4051 * remote-sds.c (_initialize_remote_sds): Update.
4052 * remote-mips.c (_initialize_remote_mips): Update.
4053 * remote-e7000.c (_initialize_remote_e7000): Update.
4054 * proc-api.c (_initialize_proc_api): Update.
4055 * printcmd.c: Update.
4056 * parse.c (_initialize_parse): Update.
4057 * pa64solib.c (_initialize_pa64_solib): Update.
4058 * p-valprint.c (_initialize_pascal_valprint): Update.
4059 * monitor.c (_initialize_remote_monitors): Update.
4060 * mips-tdep.c (_initialize_mips_tdep): Update.
4061 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4062 * maint.c (_initialize_maint_cmds): Update.
4063 * lin-lwp.c (_initialize_lin_lwp): Update.
4064 * language.c (_initialize_language): Update.
4065 * kod.c (_initialize_kod): Update.
4066 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4067 * i386-tdep.c (_initialize_i386_tdep): Update.
4068 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4069 * gdbarch.sh: Update.
4070 * gdbarch.c: Re-generate.
4071 * gdb-events.sh: Update.
4072 * gdb-events.c: Re-generate.
4073 * frame.c (_initialize_frame): Update.
4074 * exec.c: Update.
4075 * demangle.c (_initialize_demangler): Update.
4076 * dcache.c (_initialize_dcache): Update.
4077 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4078 * cp-valprint.c (_initialize_cp_valprint): Update.
4079 * corefile.c (_initialize_core): Update.
4080 * command.h: Update.
4081 * cli/cli-decode.h: Update.
4082 * cli/cli-cmds.c (init_cli_cmds): Update.
4083 * charset.c (_initialize_charset): Update.
4084 * breakpoint.c (_initialize_breakpoint): Update.
4085 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4086 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4087 * aix-thread.c (_initialize_aix_thread): Update.
4088
4089 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4090
4091 Partial fix for PR backtrace/1718.
4092 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4093 that GCC migrates into the prolugue. Don't handle any
4094 instructions that clobber %ebx.
4095
4096 2004-07-23 Andrew Cagney <cagney@gnu.org>
4097
4098 Use regcache_raw_collect instead of regcache_collect.
4099 * regcache.h (regcache_collect): Delete declaration.
4100 * regcache.c (regcache_colect): Delete function.
4101 * win32-nat.c (do_child_store_inferior_registers): Update.
4102 * sol-thread.c (sol_thread_store_registers): Update.
4103 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4104 * rs6000-nat.c (store_register): Update.
4105 * remote.c (store_register_using_P, remote_store_registers): Update.
4106 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4107 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4108 (fill_vrregset, store_spe_registers, fill_gregset)
4109 (fill_gregset): Update.
4110 * nto-procfs.c (procfs_store_registers): Update.
4111 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4112 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4113 * m68klinux-nat.c (store_register, fill_gregset): Update.
4114 * m68k-tdep.c (fill_gregset): Update.
4115 * infptrace.c (store_register): Update.
4116 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4117 * i386-linux-nat.c (store_register, fill_gregset): Update.
4118 * hppa-linux-nat.c (fill_gregset): Update.
4119 * go32-nat.c (store_register): Update.
4120 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4121 (store_fp_regs): Update.
4122 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4123 (store_nwfpe_extended, store_fpregister, store_fpregs)
4124 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4125 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4126 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4127 (store_regs_user_thread, store_regs_kernel_thread): Update.
4128
4129 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4130
4131 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4132 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4133 encoding.
4134 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4135 member of `struct comp_unit'.
4136
4137 2004-07-23 Andrew Cagney <cagney@gnu.org>
4138
4139 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4140 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4141
4142 2004-07-23 Martin Hunt <hunt@redhat.com>
4143 Kevin Buettner <kevinb@redhat.com>
4144
4145 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4146 alignment was being added to the offset instead of multiplied.
4147
4148 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4149
4150 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4151 changed signal trampoline in OpenBSD 3.5-current.
4152
4153 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4154 <machine/pcb.h> and "bsd-kvm.h".
4155 (sparc64nbsd_supply_pcb): New function.
4156 (_initialize_sparc64nbsd_nat): Renamed from
4157 _initialize_sparcnbsd_nat. Enable libkvm interface.
4158 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4159 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4160 (LOADLIBES): New variable.
4161
4162 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4163
4164 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4165
4166 2004-07-21 Andrew Cagney <cagney@gnu.org>
4167
4168 Use regcache_raw_supply instead of supply_register.
4169 * regcache.h (supply_register): Delete declaration.
4170 * regcache.c (supply_register): Delete function.
4171 * wince.c (do_child_fetch_inferior_registers): Update.
4172 * win32-nat.c (do_child_fetch_inferior_registers)
4173 (fetch_elf_core_registers): Update.
4174 * v850ice.c (v850ice_fetch_registers): Update.
4175 * thread-db.c (thread_db_store_registers): Update.
4176 * sol-thread.c (sol_thread_store_registers): Update.
4177 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4178 * rs6000-nat.c (fetch_register): Update.
4179 * rom68k-rom.c (rom68k_supply_one_register): Update.
4180 * remote.c (remote_wait, remote_async_wait): Update.
4181 * remote-st.c (get_hex_regs): Update.
4182 * remote-sim.c (gdbsim_fetch_register): Update.
4183 * remote-sds.c (sds_fetch_registers): Update.
4184 * remote-rdp.c (remote_rdp_fetch_register): Update.
4185 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4186 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4187 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4188 * remote-hms.c (init_hms_cmds): Update.
4189 * remote-est.c (init_est_cmds): Update.
4190 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4191 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4192 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4193 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4194 (fetch_register, supply_vrregset, supply_vrregset)
4195 (fetch_spe_registers): Update.
4196 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4197 * monitor.c (monitor_supply_register): Update.
4198 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4199 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4200 (mipsnbsd_supply_fpreg): Update.
4201 * mips-nat.c (fetch_inferior_registers)
4202 (fetch_core_registers): Update.
4203 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4204 (supply_fpregset, mips64_supply_gregset)
4205 (mips64_supply_fpregset): Update.
4206 * m68klinux-nat.c (fetch_register, supply_gregset)
4207 (supply_fpregset): Update.
4208 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4209 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4210 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4211 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4212 * infptrace.c (fetch_register): Update.
4213 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4214 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4215 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4216 (gnu_fetch_registers, gnu_store_registers): Update.
4217 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4218 * i386-linux-nat.c (fetch_register, supply_gregset)
4219 (dummy_sse_values): Update.
4220 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4221 * hppah-nat.c (fetch_register): Update.
4222 * hppa-linux-nat.c (fetch_register, supply_gregset)
4223 (supply_fpregset): Update.
4224 * go32-nat.c (fetch_register): Update.
4225 * dve3900-rom.c (fetch_bitmapped_register)
4226 (_initialize_r3900_rom): Update.
4227 * cris-tdep.c (supply_gregset): Update.
4228 * abug-rom.c (init_abug_cmds): Update.
4229 * core-aout.c (fetch_core_registers): Update.
4230 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4231 (fetch_register, fetch_fp_register): Update.
4232 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4233 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4234 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4235 * alphanbsd-tdep.c (fetch_core_registers): Update.
4236 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4237 * alpha-nat.c (fetch_osf_core_registers)
4238 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4239 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4240 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4241
4242 2004-07-21 Andrew Cagney <cagney@gnu.org>
4243
4244 * PROBLEMS: Mention breakpoints/1702.
4245 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4246 that is known to work.
4247
4248 2004-07-21 Andrew Cagney <cagney@gnu.org>
4249
4250 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4251 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4252 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4253 (handle_inferior_event): Wrap call to deprecated
4254 IGNORE_HELPER_CALL in #ifdef.
4255 * config/mips/tm-nbsd.h: Update.
4256
4257 2004-07-20 Jim Blandy <jimb@redhat.com>
4258
4259 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4260 bfd_mach_ppc has no segment registers.
4261
4262 Include PowerPC SPR numbers for special-purpose registers.
4263 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4264 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4265 new member in initializer.
4266 (S, S4, SN4, S64): New macros for defining special-purpose
4267 registers.
4268 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4269 registers_403, registers_403GC, registers_505, registers_860,
4270 registers_601, registers_602, registers_603, registers_604,
4271 registers_750, registers_e500): Use them.
4272
4273 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4274 replace references with expression used to initialize variable.
4275
4276 2004-07-20 Andrew Cagney <cagney@gnu.org>
4277
4278 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4279 read_memory_nobpt.
4280 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4281 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4282 (s390_sigtramp_frame_sniffer): Update.
4283 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4284 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4285 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4286 (mips32_fetch_instruction): Update.
4287 * mcore-tdep.c (get_insn): Update.
4288 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4289 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4290 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4291 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4292 (i386_linux_rt_sigtramp_start): Update.
4293 * i386-linux-nat.c (child_resume): Update.
4294 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4295 * hppa-linux-tdep.c (insns_match_pattern): Update.
4296 * gdbcore.h: Update.
4297 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4298 * frame.c (safe_frame_unwind_memory): Update.
4299 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4300 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4301 * alpha-tdep.c (alpha_read_insn): Update.
4302
4303 2004-07-20 Andrew Cagney <cagney@gnu.org>
4304
4305 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4306 containing both bytes and mask. Add "frame_type".
4307 * tramp-frame.c (tramp_frame_start): Update.
4308 (tramp_frame_prepend_unwinder): Update.
4309 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4310 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4311 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4312 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4313
4314 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4315
4316 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4317 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4318 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4319 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4320
4321 2004-07-17 Andrew Cagney <cagney@gnu.org>
4322
4323 * NEWS, PROBLEMS: Update for 6.2.
4324
4325 * README: Update to 6.2.
4326
4327 * utils.c (xvasprintf): Call xstrvprintf.
4328
4329 * parse.c: Update copyright.
4330 (null_post_parser): Eliminate ARGSUSED.
4331
4332 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4333 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4334 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4335
4336 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4337 * ppc-linux-nat.c: Use "Linux kernel".
4338 * hppa-linux-tdep.c: Use GNU/Linux.
4339 * hppa-linux-nat.c: Use GNU/Linux.
4340 * dwarfread.c: Add [sic] to use of Linux.
4341
4342 * hppa-linux-nat.c: Do not include <string.h>.
4343 (supply_fpregset): Remove "register" attribute.
4344
4345 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4346
4347 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4348
4349 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4350 * configure, config.in: Regenerated.
4351
4352 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4353 "bsd-kvm.h".
4354 (vaxbsd_supply_pcb): New function.
4355 (_initialize_vaxbsd_nat): New prototype and function.
4356 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4357 solib-sunos.o.
4358 (LOADLIBES): New variable.
4359 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4360 (LOADLIBES): New variable.
4361 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4362 (LOADLIBES): New variable.
4363 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4364
4365 2004-07-16 Andrew Cagney <cagney@gnu.org>
4366
4367 * defs.h (event_loop_p): Replace variable declaration with macro,
4368 always 1.
4369 * main.c (captured_main): Delete options "-async" and "-noasync".
4370 (event_loop_p): Delete variable.
4371 * NEWS: Mention that "-async" and "-noasync" were removed.
4372
4373 2004-07-16 Andrew Cagney <cagney@gnu.org>
4374
4375 * remote-m32r-sdi.c: Re-indent.
4376
4377 2004-07-16 Jim Blandy <jimb@redhat.com>
4378
4379 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4380 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4381 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4382 missing MPC823 SPRs.
4383 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4384 incorrect. (This was corrected in GDB's register name tables on
4385 2004-07-14.)
4386
4387 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4388 should be "esasrr" ("ESA Save and Restore Register").
4389
4390 2004-07-16 Andrew Cagney <cagney@gnu.org>
4391
4392 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4393 calls, no longer applicable. Update comments and rename parameter
4394 "step_frame" to "return_frame".
4395
4396 2004-07-16 Andrew Cagney <cagney@gnu.org>
4397
4398 * frame.c (fprint_field): New function.
4399 (fprint_frame_id): Use fprint_field.
4400
4401 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4402
4403 * ada-lang.c (ada_language_defn): Remove commented out code.
4404
4405 2004-07-15 Jim Blandy <jimb@redhat.com>
4406
4407 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4408 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4409
4410 2004-07-14 Jim Blandy <jimb@redhat.com>
4411
4412 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4413
4414 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4415
4416 * ppc-tdep.h (ppc_num_srs): New enum constant.
4417
4418 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4419 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4420 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4421 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4422 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4423 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4424 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4425 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4426 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4427 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4428 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4429 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4430 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4431 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4432 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4433 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4434 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4435 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4436 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4437 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4438 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4439 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4440 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4441 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4442 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4443 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4444 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4445 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4446 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4447 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4448 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4449 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4450 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4451 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4452 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4453 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4454 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4455 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4456 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4457 special-purpose register numbers.
4458
4459 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4460 manual mentions 'md_twb', but many mention 'm_twb', and at that
4461 point in the register list.)
4462
4463 2004-07-14 Andrew Cagney <cagney@gnu.org>
4464
4465 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4466 instead of "internal-error".
4467
4468 2004-07-10 Joel Brobecker <brobecker@gnat.com>
4469
4470 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4471 that was inserted inside a comment.
4472
4473 2004-07-10 Randolph Chung <tausq@debian.org>
4474
4475 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4476 function.
4477 (hppa_hpux_push_dummy_code): New function.
4478 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4479 Set find_global_pointer method.
4480
4481 2004-07-10 Mark Kettenis <kettenis@gnu.org>
4482
4483 * NEWS: Mention BSD libkvm interface.
4484
4485 2004-07-10 Michael Snyder <msnyder@redhat.com>
4486
4487 * symfile.c (generic_load): Comment typo.
4488 * stack.c (get_selected_block): Ditto.
4489 * regcache.c (regcache_cooked_read): Ditto.
4490 * monitor.c (monitor_debug): Ditto.
4491 * mips-tdep.c (mips_read_pc): Ditto.
4492 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4493 * gdb_mbuild.sh: Ditto.
4494 * gdbarch.sh: Ditto.
4495 * gdbarch.h: Ditto.
4496
4497 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4498
4499 * ada-tasks.c: Remove file.
4500
4501 Remove ARI problems:
4502
4503 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4504 beginning of line.
4505
4506 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4507 Add comment.
4508 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4509 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4510 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4511 (UMIN_OF_SIZE): Remove.
4512 (max_of_type): New function to replace orphan macro in gdbtypes.h
4513 (min_of_type): Ditto.
4514 (discrete_type_high_bound): Use max_of_type.
4515 (discrete_type_low_bound): Use min_of_type.
4516 (possible_user_operator_p): Move operator to beginning of line.
4517 (ada_is_variant_part): Ditto.
4518 (ensure_lval): Rewrite to avoid deprecated operations.
4519 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4520 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4521 (ada_enum_name): Remove assignments in 'if' statements.
4522 (build_ada_types): Add gdbarch parameter.
4523 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4524 with gdbarch_data_register_post_init.
4525 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4526 add_show_from_set.
4527
4528 * ada-valprint.c (inspect_it): Remove declaration.
4529 (repeat_count_threshold): Remove declaration.
4530 (ada_print_floating): Remove assignments in 'if' statements.
4531 (print_str): Move operator to beginning of line.
4532
4533 2004-07-08 Jim Blandy <jimb@redhat.com>
4534
4535 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4536
4537 2004-07-08 Bob Rossi <bob@brasko.net>
4538
4539 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4540
4541 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4542
4543 * language.h (struct_language_defn): Add new function pointer:
4544 la_class_name_from_physname. Also add new prototype for
4545 language_class_name_from_physname.
4546 * language.c (language_class_name_from_physname): New function.
4547 (unk_lang_class_name): Ditto.
4548 (unknown_language_defn, auto_language_defn): Change
4549 to add unk_lang_class_name function pointer for
4550 la_class_name_from_physname.
4551 (local_language_defn): Ditto.
4552 * dwarf2read.c (guess_structure_name): Change to call
4553 language_class_name_from_physname.
4554 (determine_class_name): Ditto.
4555 * cp-support.c (class_name_from_physname): Renamed.
4556 (cp_class_name_from_physname): New name of function.
4557 * cp-support.h: Ditto.
4558 * c-lang.c (c_language_defn): Change to add NULL
4559 for class_name_from_physname function pointer.
4560 (cplus_language_defn): Change to add cp_class_name_from_physname.
4561 * jv-lang.c (java_class_name_physname): New function.
4562 (java_find_last_component): New static routine.
4563 (java_language_defn): Add java_class_name_from_physname pointer.
4564 * ada-lang.c (ada_language_defn): Change to add NULL
4565 for class_name_from_physname function pointer.
4566 * f-lang.c (f_language_defn): Ditto.
4567 * m2-lang.c (m2_language_defn): Ditto.
4568 * objc-lang.c (objc_language_defn): Ditto.
4569 * p-lang.c (pascal_language_defn): Ditto.
4570 * scm-lang.c (scm_language_defn): Ditto.
4571
4572 2004-07-06 Andrew Cagney <cagney@gnu.org>
4573
4574 Patch from Bart Robinson.
4575 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4576 (O_LARGEFILE): Define to 0, if not defined.
4577
4578 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4579
4580 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4581 <machine/pcb.h> and "bsd-kvm.h".
4582 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4583 (m68kbsd_supply_pcb): New function.
4584 (_initialize_m68kbsd_nat): New prototype and function.
4585 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4586 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4587 (LOADLIBES): New variable.
4588 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4589 (LOADLIBES): New variable.
4590
4591 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4592
4593 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4594
4595 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4596 <sys/proc.h>.
4597 (bsd_kvm_cmdlist): New variable.
4598 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4599 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4600 command and "kvm proc" command.
4601 * Makefile.in (bsd-kvm.o): Update dependencies.
4602
4603 2004-07-02 Mark Kettenis <kettenis@gnu.org>
4604
4605 * osabi.c: Update copyright year.
4606 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4607 notes if EI_OSABI is set to ELFOSABI_HPUX.
4608
4609 2004-07-01 Michael Snyder <msnyder@redhat.com>
4610
4611 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4612 that seems to have gotten whacked out of line.
4613
4614 2004-07-01 Mark Kettenis <kettenis@gnu.org>
4615
4616 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4617 code.
4618
4619 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4620
4621 * ada-lang.c (decode_packed_array): Minor change to comment.
4622 (ada_value_slice_ptr): New function.
4623 (ada_value_slice): New function.
4624 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4625 test. Don't know why it is there.
4626 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4627 to avoid dereferencing huge arrays from which one is slicing.
4628 (empty_array): Correct to return an array rather than
4629 a subrange value.
4630 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4631 on empty arrays (let'em use 'FIRST instead).
4632
4633 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4634
4635 Address complaints from gdb_ari.sh:
4636
4637 * ada-exp.y: Include gdb_string.h rather than string.h.
4638 (convert_char_literal): Reformat declaration.
4639 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4640 * ada-lex.l: Change use of free to xfree (the macro would do so
4641 anyway, but this is harmless).
4642 Include gdb_string.h rather than string.h.
4643 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4644
4645 * ada-lang.c (parse): Remove K&Rism in parameter list.
4646 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4647
4648 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4649
4650 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4651 dead code.
4652
4653 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4654
4655 * alphabsd-nat.c: Update copyright year.
4656 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4657
4658 2004-06-29 Joel Brobecker <brobecker@gnat.com>
4659
4660 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4661 (i386_cygwin_in_solib_call_trampoline): New function.
4662 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4663 and skip_trampoline_code gdbarch methods.
4664
4665 2004-06-29 Jim Blandy <jimb@redhat.com>
4666
4667 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4668 name actually used in the dependency lists.
4669
4670 2004-06-29 Randolph Chung <tausq@debian.org>
4671
4672 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4673
4674 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4675
4676 * win32-nat.c (child_pid_to_exec_file): New function.
4677 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4678 functionality.
4679
4680 2004-06-28 Andrew Cagney <cagney@gnu.org>
4681
4682 * defs.h (xstrvprintf): Declare.
4683 * utils.c (xstrvprintf): New function.
4684 (internal_vproblem, xstrprintf, xasprintf)
4685 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4686 * serial.c (serial_printf): Ditto.
4687 * complaints.c (vcomplaint): Ditto.
4688
4689 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4690
4691 * infcmd.c (attach_command): Move call to target_terminal_inferior
4692 behind loading symbol table.
4693
4694 2004-06-28 Andrew Cagney <cagney@gnu.org>
4695
4696 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4697 change - add back extern deprecated_ui_loop_hook declaration.
4698
4699 2004-06-28 Andrew Cagney <cagney@gnu.org>
4700
4701 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4702 xstrprintf.
4703 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4704 (c_value_of_variable): Ditto.
4705 * utils.c (internal_vproblem): Ditto.
4706 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4707 * remote.c (add_packet_config_cmd): Ditto.
4708 * remote-rdp.c (rdp_set_command_line): Ditto.
4709 * regcache.c (regcache_dump): Ditto.
4710 * frv-tdep.c (new_variant, new_variant): Ditto.
4711 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4712 (fbsd_find_memory_regions): Ditto.
4713 * breakpoint.c (create_thread_event_breakpoint)
4714 (create_breakpoints): Ditto.
4715 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4716 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4717
4718 2004-06-28 Joel Brobecker <brobecker@gnat.com>
4719
4720 * ada-lang.c: Re-indent file, with some massaging to help indent
4721 a bit when the result is otherwise really too ugly.
4722
4723 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4724
4725 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4726 code_addr_p and special_addr_p to 'unsigned int'.
4727
4728 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4729
4730 * i386v4-nat.c: Update copyright year and tweak comment.
4731 (regmap): Remove trailing comma.
4732 (supply_gregset): Rename local variable i to regnum. Call
4733 regcache_raw_supply instead of supply_register.
4734 (fill_gregset): Rename argument regno to regnum. Call
4735 regcache_raw_collect instead of regcache_collect.
4736
4737 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4738
4739 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4740 and special_addr_p.
4741 (frame_id_build, frame_id_build_special): Update comments.
4742 (frame_id_build_wild): New prototype.
4743 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4744 struct frame_id fields.
4745 (frame_id_build_wild): New function.
4746 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4747
4748 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4749
4750 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4751 hppabsd-tdep.c.
4752
4753 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4754
4755 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4756
4757 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4758
4759 * ada-lang.c: Re-indent file.
4760
4761 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4762
4763 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4764 (no_symtab_msg): Likewise.
4765
4766 2004-06-27 Andreas Schwab <schwab@suse.de>
4767
4768 * source.c: Fix whitespace.
4769
4770 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4771
4772 * configure.in: Include <sys/param.h> for td_pcb test.
4773 * configure: Regenerated.
4774
4775 * i386nbsd-nat.c: New file.
4776 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4777 i386obsd-nat.c and i386obsd-tdep.c.
4778 (i386nbsd-nat.o): New dependency.
4779 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4780 bsd-kvm.o.
4781 (LOADLIBES): New variable.
4782 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4783 bsd-kvm.o.
4784 (LOADLIBES): New variable.
4785
4786 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4787 (LOADLIBES): New variable.
4788
4789 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4790 fetching from BSD_KVM_PADDR. Correctly lookup address for
4791 "_thread0".
4792
4793 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4794 "bsd-kvm.h".
4795 (amd64fbsd_supply_pcb): New funcion.
4796 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4797
4798 2004-06-27 <david@streamline-computing.com>
4799
4800 Partial fix for PR cli/1056.
4801 * valarith.c: Check for zero in division and remainder
4802 evaluation.
4803
4804 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4805
4806 * i387-tdep.c: Remove excessive whitespace.
4807
4808 2004-06-26 Andrew Cagney <cagney@gnu.org>
4809
4810 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4811 * gdb-events.h, gdb-events.c: Re-generate.
4812 * tui/tui-hooks.c (tui_install_hooks): Update.
4813 (tui_remove_hooks): Update.
4814 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4815
4816 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4817
4818 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4819 (gregset_t, fpregset_t): Remove typedefs.
4820 (REG_OFFSET): Rename argument.
4821 (amd64bsd_r_reg_offset): Rename from reg_offset.
4822 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4823 Remove functions.
4824 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4825 of reg_offset.
4826 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4827
4828 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4829
4830 * vax-tdep.c: Tweak comment.
4831
4832 Add OpenBSD/hppa support.
4833 * NEWS (New native configurations): Mention OpenBSD/hppa.
4834 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4835 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4836 files.
4837 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4838 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4839 * configure.host: Add hppa*-*-openbsd*.
4840 * configure.tgt: Add hppa*-*-openbsd*.
4841
4842 2004-06-25 Andrew Cagney <cagney@gnu.org>
4843
4844 * defs.h (deprecated_ui_loop_hook): Deprecated.
4845 * wince.c (child_wait): Update.
4846 * win32-nat.c (child_wait): Update.
4847 * v850ice.c (v850ice_wait): Update.
4848 * top.c (deprecated_ui_loop_hook): Update.
4849 * serial.h: Update.
4850 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4851 (do_unix_readchar): Update.
4852 * ser-tcp.c (net_open): Update.
4853 * remote-sim.c (gdb_os_poll_quit): Update.
4854 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4855
4856 2004-06-24 Andrew Cagney <cagney@gnu.org>
4857
4858 * defs.h (deprecated_pre_add_symbol_hook)
4859 (deprecated_post_add_symbol_hook): Deprecated.
4860 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4861 (symbol_file_add_with_addrs_or_offsets): Update references.
4862
4863 2004-06-24 Andrew Cagney <cagney@gnu.org>
4864
4865 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4866 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4867 * wince.c (ui_loop_hook): Delete extern declaration.
4868 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4869 * v850ice.c (ui_loop_hook): Delete extern declaration..
4870 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4871 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4872 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4873 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4874 ui_loop_hook declaration.
4875
4876 2004-06-24 Andrew Cagney <cagney@gnu.org>
4877
4878 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4879 entry_func_highpc fields.
4880 * objfiles.c (init_entry_point_info): Do not clear
4881 entry_func_lowpc and entry_func_highpc.
4882 (objfile_relocate): Do not relocate entry_func_lowpc and
4883 entry_func_highpc.
4884 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4885 entry_func_highpc.
4886 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4887 entry_func_highpc.
4888 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4889 entry_func_lowpc and entry_func_highpc with call to
4890 inside_entry_func.
4891
4892 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4893
4894 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4895 quad-precision floating point arguments in registers.
4896
4897 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4898
4899 From Michael Mueller <m.mueller99@kay-mueller.de>:
4900 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4901 account.
4902
4903 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4904
4905 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4906 to -1.
4907 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4908 untriggered watchpoints to a separate if clause. Update function
4909 comment regarding STOPPED_BY_WATCHPOINT argument.
4910
4911 2004-06-22 Jim Blandy <jimb@redhat.com>
4912
4913 * gdbarch.sh: Doc fix.
4914
4915 2004-06-21 Martin Hunt <hunt@redhat.com>
4916 Kevin Buettner <kevinb@redhat.com>
4917
4918 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4919 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4920 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4921 to set_gdbarch_sp_regnum(). Use cooked register number.
4922 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4923
4924 2004-06-21 Andrew Cagney <cagney@gnu.org>
4925
4926 * gdbarch.sh: When the macro field is empty, do not generate a
4927 macro definition. When the macro field is "=", generate the macro
4928 name from the upper-case function name.
4929 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4930 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4931 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4932 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4933 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4934 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4935 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4936 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4937 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4938 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4939 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4940 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4941 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4942 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4943 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4944 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4945 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4946 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4947 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4948 (DEPRECATED_USE_STRUCT_CONVENTION)
4949 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4950 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4951 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4952 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4953 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4954 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4955 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4956 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4957 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4958 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4959 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4960 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4961 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4962 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4963 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4964 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4965 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4966 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4967
4968 2004-06-21 Andrew Cagney <cagney@gnu.org>
4969
4970 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4971 macro name, and the function rather than macro value. Only wrap
4972 macro print statements in #ifdef. Move format logic to where it
4973 is needed.
4974 * gdbarch.c: Re-generate.
4975
4976 * gdbarch.sh (read): Delete "print_p" and "description", add
4977 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4978 Delete references to print_p.
4979 (TARGET_ARCHITECTURE): Delete print predicate.
4980 * gdbarch.c: Re-generate.
4981
4982 * gdbarch.sh: Check that multi-arch methods do not provide a
4983 macro.
4984 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4985 (print_registers_info, print_float_info, print_vector_info)
4986 (adjust_breakpoint_address, remote_translate_xfer_address)
4987 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4988 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4989 name from the multi-arch definition.
4990
4991 2004-06-20 Andrew Cagney <cagney@gnu.org>
4992
4993 * gdbarch.sh: Sort by the function, instead of macro name.
4994 * gdbarch.c: Re-generate.
4995
4996 2004-06-20 Andrew Cagney <cagney@gnu.org>
4997
4998 * gdbarch.sh: Use the function, instead of macro name in
4999 errors and the log file.
5000 (return_value): Remove stray ":" in spec.
5001
5002 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5003 * gdbarch.h, gdbarch.c: Re-generate.
5004 * Makefile.in (arch-utils.o): Update dependencies.
5005 * values.c (using_struct_return): Move code calling
5006 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5007 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5008 to legacy_return_value, simplify.
5009 * infcmd.c (print_return_value): Move code calling
5010 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5011 to legacy_return_value, simplify.
5012 * infcall.c (call_function_by_hand): Move code calling
5013 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5014 * arch-utils.c: Update copyright. Include "gdbcore.h".
5015 (legacy_return_value): New function.
5016 * arch-utils.h: Update copyright.
5017 (legacy_return_value): Declare.
5018
5019 2004-06-20 Andrew Cagney <cagney@gnu.org>
5020
5021 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5022 * gdbarch.h, gdbarch.c: Re-generate.
5023 * values.c (using_struct_return): Update call.
5024 * mcore-tdep.c: Update comment.
5025 * infcall.c (call_function_by_hand): Update comment.
5026 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5027 * arch-utils.h (always_use_struct_convention): Update.
5028 * v850-tdep.c (v850_gdbarch_init): Update.
5029 * sh64-tdep.c (sh64_gdbarch_init): Update.
5030 * sh-tdep.c (sh_gdbarch_init): Update.
5031 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5032 * mips-tdep.c (mips_gdbarch_init): Update.
5033 * mcore-tdep.c (mcore_gdbarch_init): Update.
5034 * m32r-tdep.c (m32r_gdbarch_init): Update.
5035 * ia64-tdep.c (ia64_gdbarch_init): Update.
5036 * h8300-tdep.c (h8300_gdbarch_init): Update.
5037 * frv-tdep.c (frv_gdbarch_init): Update.
5038 * cris-tdep.c (cris_gdbarch_init): Update.
5039 * arm-tdep.c (arm_gdbarch_init): Update.
5040 * alpha-tdep.c (alpha_gdbarch_init): Update.
5041
5042 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5043
5044 * PROBLEMS: Add more specific information, and a work-around,
5045 for PR gdb/1458.
5046
5047 2004-06-18 Andrew Cagney <cagney@gnu.org>
5048
5049 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5050 * gdbarch.h, gdbarch.c: Re-generate.
5051 * ada-lang.c (ada_finish_decode_line_1): Update.
5052 * infrun.c (handle_inferior_event): Update.
5053 * infcall.c (find_function_addr): Update.
5054 * linespec.c (minsym_found): Update.
5055 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5056 Update.
5057 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5058 * cli/cli-cmds.c (disassemble_command): Update.
5059 * vax-tdep.c (vax_gdbarch_init): Update.
5060
5061 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5062
5063 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5064
5065 2004-06-17 Andrew Cagney <cagney@gnu.org>
5066
5067 GDB 6.1.1 released from the GDB 6.1 branch.
5068 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5069 * PROBLEMS: Ditto.
5070
5071 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5072
5073 PR gdb/1658
5074 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5075 operation as a uleb128. Found by Michael Coulter.
5076
5077 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5078
5079 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5080 make it non-static.
5081 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5082 to ada-lang.h; this is needed to be able to implement the kill command
5083 in multi-task mode.
5084 (task_ptid): Ditto.
5085 (task_entry): Ditto.
5086 (task_list): Ditto.
5087 (ada_build_task_list): Ditto.
5088
5089 * ada-lang.c: Conditionalize routines and data structures related
5090 to breakpoints, exceptions, completion, and symbol caching on
5091 GNAT_GDB, since these are not yet used in the submitted public sources.
5092 (ada_main_name): Editorial: Move definition out of exception-related
5093 code.
5094
5095 2004-06-15 Andrew Cagney <cagney@gnu.org>
5096
5097 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5098 deprecated_pc_in_call_dummy.
5099
5100 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5101
5102 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5103 bfd_get_section_size_before_reloc or _raw_size.
5104 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5105 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5106 (dwarf2_read_section): Likewise.
5107 * elfread.c (elf_locate_sections): Likewise.
5108 * gcore.c (derive_heap_segment): Likewise.
5109 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5110 * remote-e7000.c (e7000_load): Likewise.
5111 * remote-m32r-sdi.c (m32r_load): Likewise.
5112 * remote-mips.c (mips_load_srec): Likewise.
5113 (pmon_load_fast): Likewise.
5114 * remote.c (compare_sections_command): Likewise.
5115 * symfile.c (add_section_size_callback): Likewise.
5116 (load_section_callback): Likewise.
5117 (pc_in_unmapped_range): Likewise.
5118 (pc_in_mapped_range): Likewise.
5119 (sections_overlap): Likewise.
5120 (list_overlays_command): Likewise.
5121 (simple_overlay_update_1): Likewise.
5122 (simple_overlay_update): Likewise.
5123 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5124 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5125
5126 2004-06-14 Randolph Chung <tausq@debian.org>
5127
5128 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5129 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5130 static.
5131 (hppa_hpux_inferior_created): New function.
5132 (hppa_hpux_init_abi): Register observer.
5133 * symfile.c (hp_cxx_exception_support_initialized)
5134 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5135 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5136
5137 2004-06-14 Randolph Chung <tausq@debian.org>
5138
5139 * MAINTAINERS (Write After Approval): Alphabetize my entry
5140 correctly.
5141
5142 2004-06-14 Andrew Cagney <cagney@gnu.org>
5143
5144 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5145 testsuite maintainer.
5146
5147 2004-06-13 Andrew Cagney <cagney@gnu.org>
5148
5149 * infcmd.c (print_return_value): Fix logic, allow
5150 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5151
5152 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5153 defining any macros.
5154 * gdbarch.h: Re-generate.
5155
5156 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5157 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5158 * gdbarch.h: Re-generate.
5159
5160 * values.c (generic_use_struct_convention): Don't check gcc_p.
5161
5162 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5163 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5164 * gdbarch.h, gdbarch.c: Regenerate.
5165 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5166 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5168 deprecated_max_register_raw_size and
5169 deprecated_max_register_virtual_size.
5170 * v850-tdep.c (v850_gdbarch_init): Ditto.
5171 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5172 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5173 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5174 * cris-tdep.c (cris_gdbarch_init): Ditto.
5175
5176 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5177 * gdbarch.h, gdbarch.c: Re-generate.
5178 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5179 (m68hc11_use_struct_convention): Delete function.
5180 (m68hc11_extract_struct_value_address): Delete function.
5181 (m68hc11_return_value): New function.
5182 (m68hc11_gdbarch_init): Instead of store_return_value,
5183 extract_return_value, return_value_on_stack,
5184 deprecated_extract_struct_value_address and use_struct_convention,
5185 set return_value.
5186 * values.c (using_struct_return): Do not call
5187 RETURN_VALUE_ON_STACK.
5188 * arch-utils.h (generic_return_value_on_stack_not): Delete
5189 declaration.
5190 * arch-utils.c (generic_return_value_on_stack_not): Delete
5191 function.
5192
5193 2004-06-12 Andrew Cagney <cagney@gnu.org>
5194
5195 * values.c (register_value_being_returned): Delete function.
5196 * infcmd.c (legacy_return_value): Delete function.
5197 * infcall.c (call_function_by_hand): Inline
5198 "register_value_being_returned", simplify.
5199 * values.c (using_struct_return): Update comment, refer to
5200 print_return_value instead of register_value_being_returned.
5201 * infcmd.c (print_return_value): Inline calls to
5202 register_value_being_returned and legacy_return_value. Simplify.
5203
5204 2004-06-11 Randolph Chung <tausq@debian.org>
5205
5206 * somread.c (som_symtab_read): Exclude gcc local symbols.
5207
5208 2004-06-11 Randolph Chung <tausq@debian.org>
5209
5210 * infrun.c (handle_inferior_event): Handle the case when a
5211 trampoline ends up in the runtime resolver, and if the trampoline
5212 has no name. Rearrange the code so that all the trampoline
5213 processing happens before other step-out-of-range handling.
5214
5215 2004-06-11 Martin Hunt <hunt@redhat.com>
5216
5217 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5218 has no fpu.
5219
5220 2004-06-10 Andrew Cagney <cagney@gnu.org>
5221
5222 * blockframe.c (legacy_inside_entry_func): Delete.
5223 (legacy_frame_chain_valid): Inline call to
5224 legacy_inside_entry_func, simplify.
5225
5226 2004-06-10 Bob Rossi <bob@brasko.net>
5227
5228 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5229 * dwarf2read.c (partial_die_info): Add dirname field.
5230 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5231 (read_partial_die): Save away DW_AT_comp_dir.
5232 * defs.h (symtab_to_filename): Removed.
5233 * source.c (find_and_open_source): Added.
5234 (open_source_file): Just calls find_and_open_source.
5235 (symtab_to_filename): Removed.
5236 (symtab_to_fullname, psymtab_to_fullname): Added.
5237 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5238 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5239 symtab_to_filename.
5240 * symtab.h (partial_symtab): Add dirname field.
5241 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5242 (mi_cmd_file_list_exec_source_file): Call new function
5243 symtab_to_fullname to find fullname.
5244 (mi_cmd_file_list_exec_source_files): Added.
5245 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5246 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5247
5248 2004-06-10 Andrew Cagney <cagney@gnu.org>
5249
5250 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5251 to generic_use_struct_convention, the default value.
5252
5253 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5254 of abort.
5255
5256 * ns32k-tdep.c (ns32k_push_arguments): New function.
5257 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5258 * infcall.c (call_function_by_hand): Call error instead of
5259 legacy_push_arguments.
5260 * value.h (legacy_push_arguments): Delete declaration.
5261 * valops.c (legacy_push_arguments): Delete function.
5262 (value_push): Delete function.
5263
5264 2004-06-10 Brian Ford <ford@vss.fsi.com>
5265
5266 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5267 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5268 info.
5269 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5270
5271 2004-06-10 Andrew Cagney <cagney@gnu.org>
5272
5273 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5274 * gdbarch.h, gdbarch.c: Re-generate.
5275 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5276 parameters.
5277 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5278 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5279 deprecated_pc_in_call_dummy instead of
5280 DEPRECATED_PC_IN_CALL_DUMMY.
5281 (arm_skip_prologue): Ditto.
5282 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5283 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5284 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5285 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5286 Ditto.
5287 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5288 (sh64_init_extra_frame_info, sh64_get_saved_register)
5289 (sh64_pop_frame): Ditto.
5290 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5291 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5292 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5293 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5294 (h8300_pop_frame): Ditto.
5295 * blockframe.c (legacy_inside_entry_func)
5296 (legacy_frame_chain_valid): Ditto.
5297 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5298 to deprecated_pc_in_call_dummy.
5299
5300 2004-06-09 Andrew Cagney <cagney@gnu.org>
5301
5302 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5303 provide a default value.
5304 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5305 * gdbarch.h, gdbarch.c: Re-generate.
5306 * arch-utils.c (generic_convert_register_p): Rename
5307 legacy_convert_register_p
5308 (legacy_register_to_value, legacy_value_to_register): Delete
5309 functions.
5310 * arch-utils.h (generic_convert_register_p): Rename
5311 legacy_convert_register_p.
5312 (legacy_register_to_value, legacy_value_to_register): Delete
5313 declarations.
5314
5315 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5316 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5317 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5318 * gdbarch.h, gdbarch.c: Re-generate.
5319 * infcmd.c (default_print_registers_info): Simplify.
5320 * findvar.c (value_of_register): Simplify.
5321 * mi/mi-main.c (get_register): Simplify.
5322 * arch-utils.c (legacy_convert_register_p): Always return 0.
5323 (legacy_register_to_value, legacy_value_to_register): Always call
5324 internal_error.
5325
5326 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5327 #ifdef CLEAR_INSN_CACHE code.
5328 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5329 Delete #ifdef CLEAR_DEFERRED_STORES code.
5330
5331 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5332
5333 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5334 copyright.
5335 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5336
5337 * config/mips/mipsv4.mh: Delete file.
5338
5339 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5340 unreferenced macro.
5341 (hpread_adjust_stack_address): Delete declaration.
5342
5343 2004-06-08 Andrew Cagney <cagney@gnu.org>
5344
5345 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5346 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5347 PTRACE_ATTACH / PTRACE_DETACH available call error.
5348 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5349 * infttrace.c (update_thread_state_after_attach, attach, detach):
5350 Remove #ifdef wrappers.
5351 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5352 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5353 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5354 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5355 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5356 * config/nm-linux.h (ATTACH_DETACH): Delete.
5357 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5358 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5359 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5360 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5361 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5362
5363 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5364
5365 * configure.in: Set $configdir to the right OS specific value.
5366 Use value when setting $tcldir and $tkdir.
5367 * configure: Regenerate.
5368
5369 2004-06-06 Paul Brook <paul@codesourcery.com>
5370
5371 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5372 records.
5373
5374 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5375
5376 * ada-lang.c (lookup_symbol_in_language): New function to allow
5377 re-use of another language's symbol lookup code. (Placed here
5378 temporarily while Ada support is being integrated into the public
5379 tree).
5380 (restore_language): New auxiliary function for
5381 lookup_symbol_in_language.
5382 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5383 temporarily while Ada support is being integrated into the public
5384 tree).
5385
5386 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5387
5388 * Makefile.in (check//%): New.
5389
5390 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5391 (mn10300_store_return_value): Rewrite.
5392 (mn10300_type_align): New.
5393 (mn10300_use_struct_convention): Rewrite.
5394 (mn10300_return_value): New, using all of the above.
5395 (mn10300_pop_frame_regular): Add saved_regs_size.
5396 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5397
5398 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5399 regs if PC is on movm.
5400
5401 2004-06-07 Jim Blandy <jimb@redhat.com>
5402
5403 Add native Linux support for the PowerPC E500.
5404 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5405 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5406 all architectures except the E500.
5407 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5408 #definitions.
5409 (struct gdb_evrregset_t): New type.
5410 (have_ptrace_getsetevrregs): New variable.
5411 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5412 fetch_spe_registers): New functions.
5413 (fetch_register): Call fetch_spe_register as appropriate.
5414 Assert that we're only passed raw register numbers.
5415 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5416 Don't fetch gprs if they're pseudoregisters.
5417 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5418 store_spe_registers): New functions.
5419 (store_register): Call store_spe_register as appropriate.
5420 Assert that we're only passed raw register numbers.
5421 (store_ppc_registers): Call store_spe_registers as appropriate.
5422 Don't store gprs if they're pseudoregisters.
5423
5424 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5425
5426 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5427 struct if one exists, even if we are dealing with a zombie thread.
5428
5429 2004-06-07 Andrew Cagney <cagney@gnu.org>
5430
5431 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5432 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5433 Rename PC_REQUIRES_RUN_BEFORE_USE.
5434 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5435 #ifdef.
5436
5437 2004-06-07 Randolph Chung <tausq@debian.org>
5438
5439 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5440 unwinding after sp has been saved to the stack but before the end
5441 of the prologue, and after the fp has been modified but before it has
5442 been saved to the stack.
5443 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5444 Remove superfluous definitions.
5445 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5446
5447 2004-06-07 Guy Martin <gmsoft@gentoo.org>
5448
5449 Committed by Randolph Chung.
5450 * hppa-linux-nat.c: Include the correct version of the header file
5451 depending on the kernel version.
5452
5453 2004-06-06 Randolph Chung <tausq@debian.org>
5454
5455 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5456 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5457
5458 2004-06-06 Randolph Chung <tausq@debian.org>
5459
5460 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5461 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5462 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5463 * hppa-tdep.c (hppa_symbol_address): New function definition.
5464 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5465
5466 2004-06-06 Randolph Chung <tausq@debian.org>
5467
5468 * hppa-tdep.h (struct value): Forward declaration.
5469 (gdbarch_tdep): Define tdep find_global_pointer method.
5470 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5471 associated with the function we are trying to call, and write it
5472 to the gp register.
5473 (hppa32_convert_from_funct_ptr_addr): New function.
5474 (hppa_find_global_pointer): New function.
5475 (hppa_gdbarch_init): Set default find_global_pointer method; set
5476 convert_from_func_ptr_addr method.
5477 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5478 (hppa_linux_init_abi): Set find_global_pointer method.
5479 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5480
5481 2004-06-06 Randolph Chung <tausq@debian.org>
5482
5483 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5484 to struct value *function.
5485 * gdbarch.c: Regenerate.
5486 * gdbarch.h: Likewise.
5487 * infcall.c (call_function_by_hand): Pass entire function value
5488 to push_dummy_call.
5489
5490 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5491 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5492 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5493 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5494 * arm-tdep.c (arm_push_dummy_call): Likewise.
5495 * avr-tdep.c (avr_push_dummy_call): Likewise.
5496 * cris-tdep.c (cris_push_dummy_call): Likewise.
5497 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5498 * frv-tdep.c (frv_push_dummy_call): Likewise.
5499 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5500 * hppa-tdep.c (hppa32_push_dummy_call)
5501 (hppa64_push_dummy_call): Likewise.
5502 * i386-tdep.c (i386_push_dummy_call): Likewise.
5503 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5504 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5505 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5506 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5507 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5508 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5509 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5510 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5511 (ppc64_sysv_abi_push_dummy_call): Likewise.
5512 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5513 (ppc64_sysv_abi_push_dummy_call): Likewise.
5514 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5515 * s390-tdep.c (s390_push_dummy_call): Likewise.
5516 * sh-tdep.c (sh_push_dummy_call_fpu)
5517 (sh_push_dummy_call_nofpu): Likewise.
5518 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5519 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5520 * vax-tdep.c (vax_push_dummy_call): Likewise.
5521
5522 2004-06-04 Jim Blandy <jimb@redhat.com>
5523
5524 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5525 gdbarch argument to register_size.
5526
5527 * rs6000-tdep.c (rs6000_store_return_value): Use
5528 regcache_cooked_write_part instead of
5529 deprecated_write_register_bytes.
5530 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5531 not gdbarch_deprecated_store_return_value.
5532
5533 * ppc-linux-nat.c (store_register, fetch_register): Remove
5534 incorrect assertions. Simplify and generalize handling of
5535 transfers whose sizes are not multiples of, or less than, sizeof
5536 (PTRACE_XFER_TYPE).
5537
5538 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5539
5540 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5541 as a new thread event.
5542 * thread-db.c (thread_get_info_callback): If the thread is a
5543 zombie, return TD_THR_ZOMBIE.
5544 (thread_from_lwp): If thread_get_info_callback returns
5545 TD_THR_ZOMBIE, check if the thread is still on the thread list
5546 and return a -1 ptid if not found.
5547 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5548 change the status to TARGET_WAITKIND_SPURIOUS.
5549
5550 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
5551
5552 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5553 double values in little endian mode.
5554
5555 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5556
5557 Committed by Andrew Cagney.
5558 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5559 after last enum constant to avoid error from IBM C
5560 compiler.
5561
5562 2004-06-02 Jim Blandy <jimb@redhat.com>
5563
5564 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5565 to 'message', and make it local to the lone block that uses it.
5566
5567 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5568
5569 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5570
5571 * ada-exp.y: Update copyright notice.
5572 Include block.h.
5573
5574 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5575 SPECIAL_VARIABLE and unify the treatment of these cases.
5576
5577 (write_attribute_call0): Remove.
5578 (write_attribute_call1): Remove.
5579 (write_attribute_calln): Remove.
5580 (save_qualifier): Add missing semicolon.
5581
5582 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5583 temporarily disabled to allow compilation with FSF head version.
5584
5585 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5586 use individual operators (OP_*) for all attributes.
5587 (exp syntax): Use write_int.
5588 Handle STRING literals with OP_STRING.
5589 (variable syntax): Add limit parameter to calls to
5590 write_object_renaming.
5591
5592 (temp_parse_space): New definition to hold entities that need
5593 only live until the next call to ada_parse.
5594 (string_to_operator): Rename fields of ada_opname_table entries.
5595
5596 (write_var_from_sym): Record block.
5597 (write_var_from_name): Minor reformatting.
5598 Make sure saved name is properly encoded in the case of multiple
5599 matches, and set its language to Ada.
5600 Update comment.
5601 Modify to indicate unresolved name as symbol in the UNRESOLVED
5602 namespace, allocated in temp_parse_space.
5603 (write_int): New function.
5604
5605 (write_object_renaming): Add max_depth parameter to limit
5606 chains of object renamings.
5607 Handle case where root of renaming expression is itself a renaming.
5608 Use temp_parse_space for temporary name buffer.
5609 Handle renamings to dereferenced pointers (___XEXA suffices).
5610
5611 (ada_parse, yyerror, string_to_operator,
5612 write_var_from_sym, write_var_from_name, write_attribute_call0,
5613 write_attribute_call1, write_attribute_calln,
5614 write_object_renaming): Protoize.
5615
5616 (_initialize_ada_exp): New function.
5617
5618 * ada-lang.c: Update copyright notice.
5619 General terminology change to conform to GNAT compiler usage:
5620 mangle => encode, demangle => decode
5621 Include gdb_obstack.h.
5622 Include gdb_regex.h
5623 Include frame.h
5624 Include hashtab.h
5625 Include completer.h
5626 Include gdb_stat.h
5627 Include block.h
5628 Include infcall.h
5629
5630 (ADA_RETAIN_DOTS): Make sure this is defined.
5631 (TRUNCATION_TOWARDS_ZERO): Define.
5632 (struct string_vector): Define.
5633 (unresolved_names): Remove definition.
5634 (xnew_string_vector): New function.
5635 (string_vector_append): New function.
5636 (extract_string): Make static.
5637 (ada_unqualified_name): New function.
5638 (add_angle_brackets): New function.
5639 (function_name_from_pc): New function.
5640 (place_on_stack): Rename to ensure_lval.
5641
5642 (ensure_lval): Renamed from place_on_stack.
5643 Make identity on lvals.
5644 Update comment.
5645 (is_nonfunction): New interface.
5646 Only symbols in LOC_CONST class can be enumerals.
5647 (fill_in_ada_prototype): Remove; now independent of language.
5648 (add_defn_to_vec): Add obstack and symtab arguments.
5649 Use obstack to hold collected definitions.
5650 (num_defns_collected): New function.
5651 (defns_collected): New function.
5652 (ada_resolve_subexp): Rename to resolve_subexp.
5653 (resolve_subexp): Renamed from ada_resolve_subexp.
5654 (ada_op_name): Return non-const result.
5655 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5656 other purposes.
5657
5658 (to_fixed_array_type): Add declaration.
5659 (coerce_unspec_val_to_type): Remove offset parameter.
5660 (find_sal_from_funcs_and_line): New interface.
5661 (find_line_in_linetable): Ditto.
5662
5663 (all_sals_for_line): Rename to ada_sals_for_line and make
5664 global.
5665 Add new parameter. When set, do not ask the user to choose the
5666 instance, but use the first one found instead.
5667 Use given line number in returned sals.
5668 Fix comment.
5669 Skip the prologue if funfirstline is set.
5670 Correct for memory leak when 0 lines found.
5671
5672 (value_pos_atr): Use pos_atr.
5673 (pos_atr): New function.
5674 (standard_lookup): Add block parameter.
5675
5676 (makeTimeStart): Remove declaration and uses.
5677 (makeTimeStop): Remove declaration and uses.
5678
5679 (ada_completer_word_break_characters): Allow for VMS.
5680 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5681 (raise_sym_name): New constant.
5682 (raise_unhandled_sym_name): New constant.
5683 (raise_assert_sym_name): New constant.
5684 (process_raise_exception_name): New constant.
5685 (longest_exception_template): New constant.
5686 (warning_limit): New variable to limit warnings during expression
5687 evaluation.
5688 (warnings_issued): New variable to keep track of warnings issued.
5689 (known_runtime_file_name_patterns): New constant.
5690 (known_auxiliary_function_name_patterns): New constant.
5691 (symbol_list_obstack): New variable.
5692
5693 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5694 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5695 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5696 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5697 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5698 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5699 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5700 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5701 and strcmp.
5702
5703 (ada_get_field_index): New function.
5704 (lim_warning): New function.
5705 (ada_translate_error_message): New function.
5706 (MAX_OF_SIZE): New function.
5707 (MIN_OF_SIZE): New function.
5708 (UMAX_OF_SIZE): New function.
5709 (UMIN_OF_SIZE): New function.
5710 (discrete_type_high_bound): New function.
5711 (discrete_type_low_bound): New function.
5712 (base_type): New function.
5713 (do_command): Remove.
5714
5715 (ada_update_initial_language): Use language_ada, not language_unknown.
5716 (ada_encode): Renamed from ada_mangle.
5717 Obey ADA_RETAIN_DOTS.
5718 (ada_decode): Renamed from ada_demangle.
5719 Update coding conventions.
5720 (decoded_names_store): New hash table.
5721 (ada_decode_symbol): New function.
5722 (ada_la_decode): New function.
5723
5724 (modify_general_field): Correct computations of offset and bit
5725 position.
5726 (desc_base_type): Handle ref types, too.
5727 (ada_is_direct_array_type): New function.
5728
5729 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5730 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5731 (ada_is_bogus_array_descriptor,ada_type_of_array,
5732 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5733 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5734 ada_is_array_descriptor_type.
5735
5736 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5737 (ada_is_packed_array_type): Handle pointers or
5738 references to packed arrays as well.
5739 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5740 (decode_packed_array_type): Search for the packed array type
5741 symbol in the currently selected block and associated
5742 superblocks too.
5743 Use lookup_symbol again.
5744
5745 (decode_packed_array): Handle pointers and references.
5746 Update call to coerce_unspec_val_to_type.
5747 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5748 (ada_value_primitive_packed_val): Improve comment.
5749
5750 (ada_index_type): Substitute int type for "undefined".
5751 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5752 ada_array_langth, ada_is_string_type): Use renamed
5753 ada_is_simple_array_type.
5754 (empty_array): New function.
5755
5756 (ada_resolve): Rename to resolve.
5757 (resolve): Make static.
5758 Call renamed resolve_subexp.
5759 Update comment.
5760 (ada_resolve_subexp): Rename to resolve_subexp.
5761 (resolve_subexp): Update comment.
5762 Decomment disabled code.
5763 Add LOC_COMPUTED* cases.
5764 Modify to use temporary struct symbols (marked as being in
5765 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5766 OP_UNRESOLVED_VALUE.
5767 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5768 Add OP_STRING case.
5769 Remove OP_ARRAY.
5770 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5771 Use new ada_lookup_symbol_list interface.
5772 Use new ada_resolve_function interface.
5773 Remove OP_TYPE case.
5774
5775 (ada_args_match): Idiot proof against null actuals.
5776 Use intermediate variables to clarify.
5777 (ada_resolve_function): Update comment and interface.
5778 (mangled_ordered_before): Rename to encoded_ordered_before and
5779 update comment.
5780 (sort_choices): Update comment and interface.
5781 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5782 (user_select_syms): New interface.
5783 Use new sort_choices interface.
5784 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5785 (possible_user_operator_p): Idiot-proof against null values.
5786 (ada_simple_renamed_entity): Don't make cleanup; rely on
5787 caller to free result string.
5788 Remove const from return type.
5789 (make_array_descriptor): Rename uses of place_on_stack to
5790 ensure_lval.
5791 Make sure that arrays are on stack.
5792
5793 (HASH_SIZE): Define.
5794 (struct cache_entry): Define.
5795 (cache_space): Define.
5796 (cache): Define.
5797 (clear_ada_sym_cache): New function.
5798 (find_entry): New function.
5799 (lookup_cached_symbol): New function.
5800 (defn_vector_size): Define.
5801 (cache_symbol): New function.
5802 (defn_symbols): Remove.
5803
5804 (standard_lookup): Use lookup_symbol_in_language to get effect of
5805 C lookup.
5806 Cache results.
5807
5808 (symbol_completion_match): New function.
5809 (symbol_completion_add): New function.
5810 (ada_make_symbol_completion_list): New function.
5811
5812 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5813 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5814 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5815 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5816
5817 (ada_lookup_simple_minsym): New function.
5818 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5819
5820 (add_symbols_from_enclosing_procs): New interface.
5821 Conditionalize more helpfully.
5822 Don't bother if program isn't running.
5823 Use new interface to get_frame_block.
5824 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5825
5826 (remove_extra_symbols): New interface.
5827 (xget_renaming_scope): New function.
5828 (is_package_name): New function.
5829 (renaming_is_visible): New function.
5830 (remove_out_of_scope_renamings): New function.
5831
5832 (ada_lookup_symbol_list): New interface.
5833 Properly reinitialize the symbol list obstack.
5834 Don't call add_symbols_from_enclosing_procs if we start from a
5835 static or global block.
5836 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5837 add_symbols_from_enclosing_procs.
5838 Add symtab data to cached entries.
5839 Handle symbols prefixed with
5840 "standard__" specially; strip prefix and don't look in local symbols.
5841 Do not include out of scope renaming symbols in list of
5842 symbols returned.
5843 Add const to block parameter.
5844 Move check for non-local, non-global symbols earlier.
5845 Remove timing stuff.
5846 (ada_lookup_symbol): New interface.
5847 Find symtab as well.
5848 (ada_lookup_symbol_nonlocal): New function.
5849
5850 (is_name_suffix): Enhance suffix detection to recognize
5851 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5852 (is_dot_digits_suffix): New function.
5853 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5854
5855 (ada_add_block_symbols): New interface. Use obstack to return results
5856 in a vector of struct ada_symbol_infos. Add symtab argument.
5857 Use new interface to add_defn_to_vec.
5858 Remove calls to fill_in_ada_prototype.
5859 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5860
5861 (ada_finish_decode_line_1): Add const qualification to local to fix
5862 warning.
5863 Start looking in static block for functions to avoid attempts
5864 to search frame chain for up-level variables.
5865 Adapt to new ada_sals_for_line interface.
5866 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5867 Handle quoting of the function name inside the spec string.
5868 Skip prologue when funfirstline is set and update the
5869 function documentation to that effect.
5870
5871 (debug_print_lines, debug_print_block, debug_print_blocks,
5872 debug_print_symtab): Remove.
5873
5874 (ada_main_name): New function.
5875 (ada_exception_breakpoint_type): New function.
5876 (is_known_support_routine): New function.
5877 (ada_find_printable_frame): Renamed from find_printable_frame and made
5878 global.
5879 Remove level parameter.
5880 Use new interface to select_frame.
5881
5882 (begin_command): Remove.
5883 (ada_adjust_exception_stop): New function.
5884 (ada_print_exception_stop): New function.
5885 (exception_name_from_cond): New function.
5886 (ada_report_exception_break): Replace disabled code with
5887 conditionalization on GNAT_GDB.
5888 Get the exception name from the condition string.
5889 Remove and move functionality into new functions
5890 ada_print_exception_breakpoint_task and
5891 ada_print_exception_breakpoint_nontask.
5892 (error_breakpoint_runtime_sym_not_found): New function.
5893 (is_runtime_sym_defined): New function.
5894 (ada_breakpoint_rewrite): Uncomment suppressed code.
5895 Use symbolic error-message and runtime-symbol names.
5896 Surround runtime symbol names in quotes.
5897 Allow non-specific breakpoints on exceptions and assertions before
5898 program starts.
5899
5900 (ada_is_tagged_type): Add parameter.
5901 (ada_is_tag_type): New function.
5902 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5903 (ada_variant_discrim_type): Ditto.
5904 (value_tag_from_contents_and_address): New function.
5905 (type_from_tag): New function.
5906 (struct tag_args): New structure used to communicate with
5907 ada_tag_name_1.
5908 (ada_tag_name_1): New function.
5909 (ada_tag_name): New function.
5910
5911 (ada_scan_number): Update comment.
5912 (find_struct_field): New function.
5913 (ada_search_struct_field): Make static.
5914 (ada_value_struct_elt): New version that returns references when
5915 given pointers or references to structs.
5916 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5917 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5918 interface.
5919 (ada_value_ind): Use new ada_to_fixed_value interface.
5920 (ada_coerce_ref): Ditto.
5921 (field_offset): Remove.
5922
5923 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5924 (ada_find_renaming_symbol): New function.
5925 (ada_prefer_type): Prefer named types over unnamed ones.
5926 (variant_field_index): New function.
5927 (contains_variant_part): Removed: subsumed by variant_field_index.
5928 (ada_template_to_fixed_record_type): New function, mostly from
5929 template_to_fixed_record_type.
5930 (template_to_fixed_record_type):
5931 Do not scan the type fields beyond the last one; prevents a
5932 potential SEGV.
5933 Handle case where variant field is listed BEFORE discriminant it
5934 depends on.
5935 Fix calculation of record length when bit length is
5936 not evenly divisible by char length.
5937 Move code to ada_template_to_fixed_record_type and call it.
5938
5939 (template_to_static_fixed_type): Revise comment.
5940 Modify to work on ordinary record types as well as templates,
5941 so as to handle fields that use ___XVE or ___XVU encodings.
5942 (to_record_with_fixed_variant_part): Fill out comment.
5943 Initialize C++ stuff in right type.
5944 Allow case where DVAL is null.
5945 Handle case where variant field is not last.
5946 Fix typo concerning record length.
5947 (to_fixed_record_type): Decomment disabled code.
5948 (to_fixed_record_type): Use variant_field_index instead of
5949 contains_variant_part.
5950 (to_fixed_variant_branch_type): Ditto.
5951 (to_fixed_array_type): Decomment disabled code.
5952 (ada_to_fixed_type): Convert tagged types to the specific type.
5953 Deactivate the size-check for array types in order to avoid
5954 some false size alarms.
5955 (to_static_fixed_type): Decomment disabled code.
5956 Modify to call template_to_static_fixed_type
5957 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5958 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5959 Remove valaddr argument, as it is never really used.
5960 (ada_to_fixed_value): Change interface to act on single struct value*
5961 operand.
5962 (adjust_pc_past_prologue): New function.
5963 (ada_attribute_name): Modify to take enum exp_opcode argument.
5964
5965 (ada_enum_name): Recognize new homonym-distinguishing convention.
5966 Adjust local variable's type to remove compiler warning.
5967 Fix a small problem in the part that unqualifies the enumeration name.
5968 (ada_value_binop): New function.
5969 (ada_value_equal): New function.
5970
5971 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5972 Don't give error message when not doing normal evaluation
5973 and a tagged type doesn't seem to contain a structure member.
5974 Give error message for packed arrays.
5975 For indexing arrays, handle pointers to packed arrays correctly.
5976 Handle case of 'first and 'last attributes of bare integral type
5977 without encoded subtype info.
5978 Remove some unnecessary casts.
5979 Fix uninitialized value of type in computing 'first, 'last, or 'length
5980 of array object.
5981 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5982 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5983 calls.
5984 Attributes are now exp_opcode values.
5985 Correct treatment of 'modulus.
5986 Better error message for taking 'length of wrong kind of type;
5987 improve comment.
5988 Change EVAL_NORMAL to noside for consistency.
5989 Use ada_value_binop for DIV, MOD, REM.
5990 Make special case out of array of length 0, since an argument
5991 of 0 upsets some platforms' malloc.
5992 Use OP_STRING instead of OP_ARRAY.
5993 For slice, add check that we have an array type before extracting
5994 a slice out of it. Avoids a SEGV.
5995 When evaluating an array slice, if the array type is a reference to
5996 an aligner type, then replace the aligner type by the actual type.
5997 Decomment disabled code.
5998 Remove some dead code.
5999 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6000 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6001 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6002 and UNOP_MBR to UNOP_IN_RANGE.
6003 If an array type has a parallel ___XVE type, then use it.
6004 Turn arrays into pointers for lvalue arrays.
6005 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6006 bounds error and handle 0-length slices.
6007 Use lim_warning.
6008 When selecting fields, apply ada_to_fixed_value (because the fields
6009 might have ___XVU or ___XVE encodings even if not dynamic.)
6010 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6011 (ada_is_system_address_type): New function.
6012
6013 (get_var_value): Use new interface to ada_lookup_symbol_list.
6014 (get_int_var_value): New interface.
6015 (to_fixed_range_type): Allow unknown bound, with warning.
6016 (ada_is_modular_type): Decomment disabled code.
6017 (ADA_OPERATORS): New definition.
6018 (ada_operator_length): New function.
6019 (ada_expr_op_name): New function.
6020 (ada_forward_operator_length): New function.
6021 (ada_dump_subexp_body): New function.
6022 (ada_print_subexp): New function.
6023 (ada_exp_descriptor): New constant.
6024 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6025 (ada_language_defn): Add ada_exp_descriptor entry.
6026 Change ada_parse => parse.
6027 Add post-parser entry.
6028 Use ada-specific non-local symbol lookup.
6029 Don't use C-style arrays.
6030 String lower-bound is 1.
6031 Decomment disabled code.
6032 (parse): New function.
6033 New fields ada_translate_error_message, ada_lookup_symbol,
6034 ada_lookup_minimal_symbol.
6035
6036 * ada-lang.h: Update copyright dates.
6037 Replace the mangle/demangle terminology throughout by the
6038 more appropriate encode/decode one.
6039 Include breakpoint.h.
6040 Forward declare struct partial_symbol, struct block.
6041 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6042 (EXTRACT_ADDRESS): Remove.
6043 (EXTRACT_INT): Remove.
6044 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6045 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6046 (MAX_RENAMING_CHAIN_LENGTH): Define.
6047 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6048
6049 (enum task_states): Remove.
6050 ada_task_states: Remove.
6051 (fat_string): Remove.
6052 (struct entry_call): Remove.
6053 (struct task_fields): Remove.
6054 (struct task_entry): Remove.
6055
6056 (struct ada_symbol_info): Define.
6057 (enum ada_attribute): Remove.
6058 (enum ada_operator): Define.
6059
6060 (ada_get_field_index): Declare.
6061 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6062 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6063 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6064 (ada_lookup_symbol_list): New interface.
6065 (ada_decode_symbol): Declare.
6066 (ada_decode): Declare.
6067 (ada_lookup_symbol): New interface.
6068 (ada_update_initial_language): Declare.
6069 (ada_lookup_simple_minsym): Declare.
6070 (user_select_syms): New interface.
6071 (ada_sals_for_line): Declare.
6072 (ada_is_tagged_type): New interface.
6073 (ada_tag_name): Declare.
6074 (ada_lookup_struct_elt_type): Remove declaration.
6075 (ada_search_struct_field): Remove declaration.
6076 (ada_attribute_name): New interface.
6077 (ada_is_system_address_type): Declare.
6078 (ada_to_fixed_value): Remove declaration.
6079 (ada_template_to_fixed_record_type_1): Declare.
6080 (get_int_var_value): New interface.
6081 (ada_find_any_symbol): Declare.
6082 (ada_find_renaming_symbol): Declare.
6083 (ada_mangle): Rename to ada_encode.
6084 (ada_simple_renamed_entity): Remove const.
6085 (ada_main_name): Declare.
6086 (get_current_task): Rename to ada_get_current_task.
6087 (get_entry_number): Remove declaration.
6088 (ada_report_exception_break): Remove declaration.
6089 (ada_print_exception_breakpoint_nontask): Declare.
6090 (ada_print_exception_breakpoint_task): Declare.
6091 (ada_find_printable_frame): Declare.
6092
6093 * ada-lex.l: Update copyright notices.
6094 Use xmalloc and xfree instead of malloc and free.
6095 Use new interface to name_lookup.
6096 Use new interface to
6097 ada_mangle=>ada_encode.
6098 Redo handling of '$...' variable to parallel current treatment
6099 in c-exp.y.
6100 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6101 digit_to_int, strtoulst, processInt, processReal, processId,
6102 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6103 yywrap): Protoize.
6104
6105 (processInt): Use cast to remove harmless warning.
6106 (processReal): Modify to get rid of compiler warning on scan formats.
6107
6108 (processId): Replace xmalloc with obstack_alloc for name and remove
6109 call to ada_name_string_cleanup.
6110 Remove obsolete disabled code.
6111 (name_lookup): Ditto.
6112 New interface.
6113 Use obsavestring on temp_parse_space instead of savestring
6114 on name, and remove call to ada_name_string_cleanup.
6115 Free string returned from ada_simple_renamed_entity.
6116 Use new interface to ada_lookup_symbol_list.
6117 Decomment disabled code.
6118 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6119 not types.
6120 When a type name lookup succeeds as a result of
6121 lookup_primitive_typename, check for regular type entry that has not
6122 yet been read in.
6123 Limit length of chain of renamed symbols we are willing to follow.
6124 Do not break names beginning with "standard__" into segments.
6125 (block_lookup): Use new interface to ada_lookup_symbol_list.
6126
6127 * ada-typeprint.c: Update copyright notice.
6128 (demangled_type_name): Rename to decoded_type_name.
6129 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6130 (print_range_bound): Correct handling of negative
6131 bounds that make the index type looked unsigned under STABS.
6132 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6133 (print_range_type_named): Use the builtin int type if no type
6134 corresponding to the given type name could be found.
6135 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6136 Add some bullet-proofing.
6137 (print_variant_clauses): Allow for variant branches with ___XVU
6138 encodings that are not dynamic fields.
6139 Use new interface to ada_is_tagged_type.
6140 (print_record_type): Allow for fields with ___XVE encodings that
6141 are not dynamic fields.
6142 Use new interface to ada_is_tagged_type.
6143 (ada_print_type): ada_is_array_descriptor =>
6144 ada_is_array_descriptor_type.
6145
6146 * ada-valprint.c: Update copyright notice.
6147 Include gdb_string.h
6148 Include infcall.h
6149 (ui_memcpy): New function.
6150 (ada_print_floating): New function.
6151 (ada_print_str): Order arguments correctly.
6152 Correct handling of empty arrays and arrays of 0-length items.
6153 ada_is_array_descriptor => ada_is_array_descriptor_type
6154 Print values of type System.Address in hexadecimal format.
6155 Use ada_print_floating to print floating-point numbers in Ada format.
6156 Print class tag values with type names.
6157 No longer print the address of reference values. Avoids
6158 a potential confusion.
6159 (ada_value_print): Stop printing the object type for reference
6160 values, but preserve that behavior for access types. Avoids
6161 a potential confusion.
6162 Simplify one conditional expression, as the first part is now
6163 necessarily true.
6164 ada_is_array_descriptor => ada_is_array_descriptor_type
6165 Add check for arrays for null records, and print them by hand.
6166
6167 2004-06-01 Jim Blandy <jimb@redhat.com>
6168
6169 * ppc-tdep.h: Delete unused 'regoff' member.
6170 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6171
6172 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6173
6174 Fix PR symtab/1661.
6175 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6176 (hpread_read_struct_type): Likewise.
6177
6178 2004-06-01 Andrew Cagney <cagney@gnu.org>
6179
6180 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6181 instead of xasprintf.
6182 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6183 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6184 (mi_cmd_data_list_register_names)
6185 (mi_cmd_data_list_changed_registers)
6186 (mi_cmd_data_list_register_values)
6187 (get_register, mi_cmd_data_write_register_values)
6188 (mi_cmd_data_write_register_values)
6189 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6190 (mi_cmd_target_download, mi_cmd_target_select)
6191 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6192 (mi_execute_cli_command, mi_execute_async_cli_command)
6193 (mi_execute_async_cli_command): Ditto.
6194 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6195 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6196
6197 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6198 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6199 error_last_message instead of mi_error_last_message.
6200 * mi/mi-main.c (mi_error_last_message): Delete function.
6201
6202 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6203 "invalid number of columns" error. Delete redundant "out of
6204 memory" check.
6205
6206 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6207
6208 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6209 (gregset_t, fpregset_t): Remove typedefs.
6210 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6211 (REG_OFFSET): Rename argument.
6212 (i386bsd_r_reg_offset): Rename from reg_offset.
6213 (REG_ADDR): Remove macro.
6214 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6215 functions.
6216 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6217 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6218 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6219 instead of supply_gregset.
6220 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6221 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6222 instead of fill_gregset.
6223 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6224
6225 * i386bsd-nat.c: Don't include "gregset.h".
6226 (supply_gregset, fill_gregset): Make static.
6227 (supply_fpregset, fill_fpregset): Remove.
6228 * Makefile.in (i386bsd-nat.o): Update dependencies.
6229
6230 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6231
6232 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6233 "gdb_assert.h". Con't include "gregset.h".
6234 (fbsd_make_corefile_notes): Use regset-based core file support
6235 instead off fill_gregset and fill_fpregset.
6236 * Makefile.in (fbsd-proc.o): Update dependencies.
6237
6238 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6239 instructions.
6240 (m88k_frame_prev_register): Simplify code a bit.
6241
6242 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6243 (amd64_collect_fpregset): New function.
6244 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6245
6246 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6247
6248 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6249 (i386_collect_gregset): New function.
6250 (i386_supply_fpregset): Adjust comment.
6251 (i386_collect_fpregset): New function.
6252 (i386_regset_from_core_section): Use i386_collect_gregset and
6253 i386_collect_fpregset.
6254
6255 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6256 handle VALUEP being null.
6257
6258 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6259
6260 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6261
6262 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6263
6264 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6265 assembler in OpenBSD 3.5-current.
6266 (amd64obsd_sigcontext_addr): Likewise.
6267
6268 2004-05-28 Jim Blandy <jimb@redhat.com>
6269
6270 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6271 register set, so our regcache isn't declared "legacy" and our E500
6272 pseudoregister read and write functions aren't ignored.
6273 (rs6000_register_byte, rs6000_register_raw_size,
6274 rs6000_register_virtual_type, rs6000_register_convertible,
6275 rs6000_register_convert_to_virtual,
6276 rs6000_register_convert_to_raw): Deleted.
6277 (rs6000_register_type, rs6000_convert_register_p,
6278 rs6000_register_to_value, rs6000_value_to_register): New
6279 functions.
6280 (rs6000_gdbarch_init): Don't register
6281 gdbarch_deprecated_register_size,
6282 gdbarch_deprecated_register_bytes,
6283 gdbarch_deprecated_register_byte,
6284 gdbarch_deprecated_register_raw_size,
6285 gdbarch_deprecated_register_virtual_type,
6286 gdbarch_deprecated_register_convertible,
6287 gdbarch_deprecated_register_convert_to_virtual, or
6288 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6289 register gdbarch_register_type, gdbarch_convert_register_p,
6290 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6291
6292 2004-05-26 Jim Blandy <jimb@redhat.com>
6293
6294 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6295 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6296 functions, updated to match the register numberings used in GCC.
6297 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6298 rs6000_dwarf2_reg_to_regnum as register number conversions
6299 functions for STABS and Dwarf2.
6300
6301 2004-05-26 Randolph Chung <tausq@debian.org>
6302
6303 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6304 in header file.
6305
6306 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6307
6308 * NEWS: Document new "start" command.
6309
6310 2004-05-25 Randolph Chung <tausq@debian.org>
6311
6312 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6313 hppa-linux.
6314
6315 2004-05-25 Randolph Chung <tausq@debian.org>
6316
6317 * hppa-hpux-tdep.c (offsetof): Define.
6318 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6319 (hppa32_hpux_frame_base_before_sigtramp)
6320 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6321 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6322 (hppa64_hpux_frame_base_before_sigtramp)
6323 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6324 functions.
6325 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6326 (hppa_hpux_sigtramp_frame_unwind_cache)
6327 (hppa_hpux_sigtramp_frame_this_id)
6328 (hppa_hpux_sigtramp_frame_prev_register)
6329 (hppa_hpux_sigtramp_frame_unwind)
6330 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6331 (hppa_hpux_init_abi): Register sigtramp unwinder.
6332 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6333
6334 2004-05-25 Randolph Chung <tausq@debian.org>
6335
6336 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6337 and multiple stack unwinds.
6338 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6339
6340 2004-05-25 Andrew Cagney <cagney@gnu.org>
6341
6342 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6343 * symfile-mem.h: Delete file.
6344 * symfile-mem.c: Do not include "symfile-mem.h".
6345 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6346 "struct bfd_section". When an error do not bother returning NULL.
6347 (add_symbol_file_from_memory_command): Use "struct bfd" and
6348 "struct bfd_section".
6349 * Makefile.in (symfile_mem_h): Delete.
6350 (symfile-mem.o): Update dependencies.
6351
6352 2004-05-25 Nick Roberts <nickrob@gnu.org>
6353
6354 * gdb-mi.el: New file.
6355
6356 2004-05-25 Andrew Cagney <cagney@gnu.org>
6357
6358 * inftarg.c: Include "observer.h".
6359 (child_attach, child_create_inferior): Notify inferior_created.
6360 * corelow.c: Include "observer.h".
6361 (core_open): Notify inferior_created.
6362 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6363
6364 2004-05-25 Andrew Cagney <cagney@gnu.org>
6365
6366 * target.h (struct target_ops): Add from_tty to
6367 to_create_inferior.
6368 (target_create_inferior, find_default_create_inferior): Update.
6369 * infcmd.c (run_command): Update.
6370 * wince.c (child_create_inferior): Update.
6371 * win32-nat.c (child_create_inferior): Update.
6372 * uw-thread.c (uw_thread_create_inferior): Update.
6373 * thread-db.c (thread_db_create_inferior): Update.
6374 * target.c (debug_to_create_inferior)
6375 (find_default_create_inferior): Update.
6376 (maybe_kill_then_create_inferior): Update.
6377 * sol-thread.c (sol_thread_create_inferior): Update.
6378 * remote.c (extended_remote_async_create_inferior)
6379 (extended_remote_create_inferior): Update.
6380 * remote-vx.c (vx_create_inferior): Update.
6381 * remote-st.c (st2000_create_inferior): Update.
6382 * remote-sim.c (gdbsim_create_inferior): Update.
6383 * remote-sds.c (sds_create_inferior): Update.
6384 * remote-rdp.c (remote_rdp_create_inferior): Update.
6385 * remote-rdi.c (arm_rdi_create_inferior): Update.
6386 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6387 * remote-e7000.c (e7000_create_inferior): Update.
6388 * procfs.c (procfs_create_inferior): Update.
6389 * ocd.c (ocd_create_inferior): Update.
6390 * ocd.h (ocd_create_inferior): Update.
6391 * nto-procfs.c (procfs_create_inferior): Update.
6392 * monitor.c (monitor_create_inferior): Update.
6393 * lin-lwp.c (lin_lwp_create_inferior): Update.
6394 * inftarg.c (child_create_inferior): Update.
6395 * hpux-thread.c (hpux_thread_create_inferior): Update.
6396 * gnu-nat.c (gnu_create_inferior): Update.
6397
6398 2004-05-25 Andrew Cagney <cagney@gnu.com>
6399
6400 * MAINTAINERS: Update e-mail address.
6401
6402 2004-05-24 Randolph Chung <tausq@debian.org>
6403
6404 * thread.c (info_threads_command, thread_apply_all_command)
6405 (thread_apply_command, thread_command, do_captured_thread_select):
6406 Remove HPUXHPPA-specific code.
6407
6408 2004-05-24 Randolph Chung <tausq@debian.org>
6409
6410 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6411 unused symbols.
6412 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6413 references.
6414
6415 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6416
6417 * infcmd.c (kill_if_already_running): New function, extracted
6418 from run_command().
6419 (run_command): Replace extracted code by call to
6420 kill_if_already_running().
6421 (start_command): New function.
6422 (_initialize_infcmd): Add "start" command.
6423
6424 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6425
6426 Add OpenBSD/m88k support.
6427 * NEWS (New native configurations): Mention OpenBSD/m88k.
6428 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6429 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6430 * Makefile.in (m88k_tdep_h): New variable.
6431 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6432 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6433 * configure.host: Add m88*-*-openbsd*.
6434 * configure.tgt: Add m88*-*-openbsd*.
6435
6436 2004-05-24 Jim Blandy <jimb@redhat.com>
6437
6438 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6439 to approve changes.
6440
6441 2004-05-24 Kevin Buettner <kevinb@redhat.com>
6442
6443 * symtab.c (fixup_section): Search section table when lookup by
6444 name fails.
6445
6446 2004-05-24 Randolph Chung <tausq@debian.org>
6447
6448 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6449 be "small_struct".
6450
6451 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6452
6453 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6454 register number in regcache_raw_collect call.
6455 (m68kbsd_collect_fpregset): Likewise.
6456 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6457
6458 * regset.h (struct regset): Add back `regset' member.
6459
6460 2004-05-23 Mark Kettenis <kettenis@gnu.org>
6461
6462 * configure.in: Check for td_pcb in `struct thread'.
6463 * configure, config.in: Regenerated.
6464
6465 * dpx2-nat.c: Remove file.
6466 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6467 (dpx2-nat.o): Remove dependencies.
6468
6469 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6470 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6471 (amd64obsd_supply_pcb): New function.
6472 (_initialize_amd64obsd_nat): Enable libkvm interface.
6473 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6474 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6475 (LOADLIBES): New variable.
6476
6477 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6478 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6479 (sparc32nbsd_supply_pcb): New function.
6480 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6481 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6482 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6483 (LOADLIBES): New variable.
6484
6485 2004-05-22 Mark Kettenis <kettenis@gnu.org>
6486
6487 * bsd-kvm.c, bsd-kvm.h: New files.
6488 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6489 "bsd-kvm.h".
6490 (i386fbsd_supply_pcb): New function.
6491 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6492 (i386fbsd-nat.o): Update dependencies.
6493 (bsd_kvm_h): New variable.
6494 (bsd-kvm.o): New dependency.
6495 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6496 (LOADLIBES): New variable.
6497
6498 * regset.c: Tweak comment.
6499 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6500 macro.
6501 * regset.h: Update copyright year.
6502 (struct regset): Remove `descr' member, add `gdbarch' member.
6503 (regset_alloc): Adjust prototype and comment.
6504 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6505 (i386_supply_fpregset): Likewise.
6506 (i386_regset_from_core_section): Update call to regset_alloc.
6507 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6508 REGSET->arch.
6509 (i386obsd_aout_regset_from_core_section): Update call to
6510 regset_alloc.
6511 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6512 REGSET->arch.
6513 (i386nbsd_aout_regset_from_core_section): Update call to
6514 regset_alloc.
6515 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6516 REGSET->arch.
6517 (amd64_regset_from_core_section): Update call to regset_alloc.
6518 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6519 REGSET->arch.
6520 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6521 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6522 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6523 (sparc32nbsd_init_abi): Update call to regset_alloc.
6524 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6525 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6526 (sparc64obsd_init_abi): Update call to regset_alloc.
6527 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6528 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6529 (sparc64nbsd_init_abi): Update call to regset_alloc.
6530 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6531 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6532 (sparc64fbsd_init_abi): Update call to regset_alloc.
6533
6534 2004-05-22 Jim Blandy <jimb@redhat.com>
6535
6536 * ppc-tdep.h (spe_register_p): New declaration.
6537 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6538 ppc_spefscr_regnum.
6539 * rs6000-tdep.c (spe_register_p): New function.
6540 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6541 spefscr.
6542 (rs6000_gdbarch_init): Initialize the new members of the tdep
6543 structure.
6544
6545 2004-05-21 Jim Blandy <jimb@redhat.com>
6546
6547 * ppc-linux-nat.c (fetch_register): Move code back to be next
6548 to the comment that describes it. (Moved code, instead of
6549 comment, for symmetry with store_register.)
6550
6551 Allocate regset structures in the gdbarch's obstack, not using
6552 xmalloc.
6553 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6554 Add 'arch' argument. Allocate the regset on arch's obstack, not
6555 using xmalloc.
6556 * regset.h (regset_alloc): Update declaration.
6557 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6558 gdbarch argument.
6559 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6560 * i386-tdep.c (i386_regset_from_core_section): Same.
6561 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6562 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6563 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6564 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6565 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6566 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6567
6568 2004-05-21 Joel Brobecker <brobecker@gnat.com>
6569
6570 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6571
6572 2004-05-21 Jim Blandy <jimb@redhat.com>
6573
6574 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6575 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6576
6577 2004-05-20 Jim Blandy <jimb@redhat.com>
6578
6579 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6580
6581 2004-05-20 Mark Kettenis <kettenis@gnu.org>
6582
6583 * regset.h: Make prototype const-correct.
6584 * regset.c (regset_xmalloc): Make const-correct.
6585
6586 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6587
6588 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6589 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6590 (symbol_search_name): Declare.
6591
6592 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6593 (iter_name_next_hashed): Ditto.
6594 (iter_name_next_linear): Ditto.
6595 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6596
6597 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6598 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6599 (symbol_search_name): New function.
6600
6601 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6602
6603 * minsyms.c (build_minimal_symbol_hash_tables): Change
6604 test for adding to demangled hash table to check for difference
6605 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6606
6607 2004-05-19 Jim Blandy <jimb@redhat.com>
6608
6609 Use a constructor function to create regset structures.
6610 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6611 (struct regset): Use supply_regset_ftype. Add new
6612 'collect_regset' member.
6613 (regset_xmalloc): New declaration.
6614 * regset.c: New file.
6615 * am64-tdep.c (amd64_regset_from_core_section): Use
6616 regset_xmalloc to construct regset structures.
6617 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6618 * i386-tdep.c (i386_regset_from_core_section): Same.
6619 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6620 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6621 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6622 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6623 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6624 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6625 * Makefile.in (COMMON_OBS): Add regset.o.
6626 (regset.o): New rule.
6627
6628 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6629
6630 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6631 and pthread_cond_wait.c.
6632
6633 2004-05-18 Jim Blandy <jimb@redhat.com>
6634
6635 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6636 before the mach-specific switch, and then let the individual cases
6637 override the defaults, rather than leaving them uninitialized
6638 until the switch and then setting them in each case.
6639
6640 2004-05-18 Randolph Chung <tausq@debian.org>
6641
6642 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6643 millicode functions.
6644
6645 2004-05-18 Randolph Chung <tausq@debian.org>
6646
6647 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6648 references to dld_flags_buffer consistent.
6649
6650 2004-05-18 Randolph Chung <tausq@debian.org>
6651
6652 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6653 it for unwinding the stack.
6654
6655 2004-05-18 Randolph Chung <tausq@debian.org>
6656
6657 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6658 Undefine these so we can overide them using gdbarch.
6659
6660 2004-05-18 Randolph Chung <tausq@debian.org>
6661
6662 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6663 handling for 64-bit HPUX (elf).
6664
6665 2004-05-18 Daniel Jacobowitz <dan@debian.org>
6666
6667 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6668 constants.
6669 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6670 * ia64-tdep.c (examine_prologue): Likewise.
6671 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6672 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6673
6674 2004-05-18 Mark Kettenis <kettenis@gnu.org>
6675
6676 * vax-tdep.c (vax_return_value): Implement
6677 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6678
6679 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6680
6681 * vax-tdep.c (vax_return_value): Fix typo.
6682
6683 2004-05-17 Andrew Cagney <cagney@redhat.com>
6684
6685 * MAINTAINERS: Mark Salter was also responsible for
6686 testsuite/config/
6687
6688 * NEWS: Mention signal fixes.
6689
6690 2004-05-17 Randolph Chung <tausq@debian.org>
6691
6692 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6693 check to see if we are unwinding an export stub. Export stubs clobber
6694 the %rp in the call path and stores the original rp in a stack slot.
6695
6696 2004-05-17 Jim Blandy <jimb@redhat.com>
6697
6698 * MAINTAINERS: Update address for J.T. Conklin.
6699
6700 2004-05-17 Randolph Chung <tausq@debian.org>
6701
6702 * hppa-tdep.c: Remove superfluous #include's.
6703 * Makefile.in (hppa-tdep.o): Update dependencies.
6704
6705 2004-05-17 Randolph Chung <tausq@debian.org>
6706
6707 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6708 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6709 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6710 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6711 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6712 Remove static function declarations.
6713
6714 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6715
6716 * alphabsd-nat.c: Update copyright year.
6717 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6718
6719 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6720 and M68K_A2_REGNUM.
6721
6722 * m68k-tdep.c (m68k_svr4_return_value): Implement
6723 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6724
6725 2004-05-16 Mark Kettenis <kettenis@gnu.org>
6726
6727 * sol-thread.c Update copyright year. Fix various coding
6728 standards violations. Tweak a few comments.
6729 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6730 Delete prototypes.
6731
6732 2004-05-15 Randolph Chung <tausq@debian.org>
6733
6734 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6735 as pointer instead of array reference since HPUX compiler does
6736 not accept unsized array arguments.
6737 * somsolib.c (dld_flags_buffer): Use constant array size.
6738
6739 2004-05-15 Mark Kettenis <kettenis@gnu.org>
6740
6741 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6742 offset with decimal offset.
6743 (amd64obsd_sigcontext_addr): Return correct address for entire
6744 signal trampoline.
6745
6746 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6747 instead of get_frame_base.
6748
6749 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6750 (fill_gregset): Use regcache_raw_collect.
6751
6752 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6753 ppcobsd-tdep.c.
6754
6755 * config/sparc/tm-nbsd64.h: Remove file.
6756 * config/tm-sunos.h: Remove file.
6757
6758 2004-05-15 Joel Brobecker <brobecker@gnat.com>
6759
6760 * rs6000-tdep.c (store_param_on_stack_p): New function,
6761 an improved version of some code extracted from skip_prologue().
6762 (skip_prologue): Use store_param_on_stack_p() to detect
6763 instructions saving a parameter on the stack. Detect when r0
6764 is used to save a parameter.
6765 Do not mark "li rx, SIMM" instructions as part of the prologue,
6766 unless the following instruction is also part of the prologue.
6767
6768 2004-05-14 Andrew Cagney <cagney@redhat.com>
6769
6770 * infrun.c (handle_inferior_event): Simplify
6771 STEP_OVER_UNDEBUGGABLE.
6772
6773 * infrun.c (handle_step_into_function): Delete function.
6774 (handle_inferior_event): Inline calls to
6775 handle_step_into_function.
6776
6777 2004-05-14 Jerome Guitton <guitton@gnat.com>
6778
6779 * rs6000-nat.c: Fix a comment.
6780
6781 2004-05-12 David Anderson <davea@sgi.com>
6782
6783 Committed by Jim Blandy <jimb@redhat.com>:
6784 * regcache.c (struct regcache_descr): fix comment spelling.
6785
6786 2004-05-13 J. Brobecker <brobecker@gnat.com>
6787
6788 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6789 Fixes a link link failure.
6790
6791 2004-05-13 J. Brobecker <brobecker@gnat.com>
6792
6793 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6794 error that was causing the build to fail.
6795
6796 2004-05-13 J. Brobecker <brobecker@gnat.com>
6797
6798 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6799 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6800
6801 2004-05-13 Andrew Cagney <cagney@redhat.com>
6802
6803 * infrun.c (handle_inferior_event): Check for
6804 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6805 calls. Update comments.
6806
6807 2004-05-13 Jim Blandy <jimb@redhat.com>
6808
6809 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6810 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6811 (store_regs_user_thread, store_regs_kernel_thread): Use
6812 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6813 * ppc-linux-nat.c (fill_gregset): Same.
6814 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6815 (ppc_linux_sigtramp_cache): Same.
6816 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6817 (ppcnbsd_sigtramp_cache_init): Same.
6818 * rs6000-nat.c (fetch_core_registers): Same.
6819 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6820 (rs6000_frame_cache): Same.
6821
6822 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6823 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6824 of assuming that the gprs are numbered starting with zero.
6825 * ppc-linux-nat.c (fill_gregset): Same.
6826 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6827 * ppcnbsd-nat.c (getregs_supplies): Same.
6828 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6829 * rs6000-nat.c (fetch_core_registers): Same.
6830 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6831
6832 2004-05-07 Michael Snyder <msnyder@redhat.com>
6833
6834 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6835 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6836
6837 2004-05-13 Andrew Cagney <cagney@redhat.com>
6838
6839 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6840
6841 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6842
6843 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6844 base_address for shared libraries.
6845
6846 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6847
6848 * MAINTAINERS (write after approval): Add myself.
6849
6850 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6851
6852 * breakpoint.c (bpstat_stop_status): Add new argument
6853 STOPPED_BY_WATCHPOINT. Use it instead of testing
6854 target_stopped_data_address agaist 0 to check whether
6855 or not we stopped due to a hardware watchpoint.
6856 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6857 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6858 with new argument.
6859
6860 2004-05-12 Jim Blandy <jimb@redhat.com>
6861
6862 * configure.in: When checking whether we should use the -bbigtoc
6863 option, don't forget to restore the original value of LDFLAGS.
6864 * configure: Regenerated.
6865
6866 2004-05-12 Andrew Cagney <cagney@redhat.com>
6867
6868 * thread.c (load_infrun_state): Delete step_sp.
6869 * infrun.c (context_switch): Ditto.
6870 * inferior.h (step_sp): Ditto.
6871 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6872 * gdbthread.h (struct thread_info, save_infrun_state)
6873 (restore_infrun_state): Ditto.
6874
6875 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6876
6877 * MAINTAINERS (write after approval): Add myself.
6878
6879 2004-05-12 Andrew Cagney <cagney@redhat.com>
6880
6881 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6882 eliminate reference to step_sp.
6883 (struct execution_control_state, init_execution_control_state)
6884 (handle_inferior_event, keep_going): Delete update_step_sp and
6885 step_sp.
6886 * infcmd.c (step_sp): Note that variable is unused.
6887
6888 2004-05-11 Andrew Cagney <cagney@redhat.com>
6889
6890 * infrun.c (step_over_function): Delete function.
6891 (handle_step_into_function): Use insert_step_resume_breakpoint.
6892 (insert_step_resume_breakpoint): Fix assertion.
6893
6894 2004-05-11 Nick Roberts <nickrob@gnu.org>
6895
6896 * utils.c (defaulted_query): Just use the normal query input type
6897 when printing the annotations.
6898
6899 2004-05-11 Andrew Cagney <cagney@redhat.com>
6900
6901 * infrun.c (handle_inferior_event): Simplify code handling
6902 step-into or return-from a signal trampoline.
6903
6904 2004-05-11 Andrew Cagney <cagney@redhat.com>
6905
6906 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6907 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6908
6909 2004-05-10 Jim Blandy <jimb@redhat.com>
6910
6911 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6912 with a call to internal_error.
6913
6914 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6915 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6916 processor variant lacks those registers.
6917 (ppc_floating_point_unit_p): Change description to make it clear
6918 that this returns info about the ISA, not the ABI.
6919 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6920 return true or false by checking tdep->ppc_fp0_regnum and
6921 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6922 arch/mach switching done in rs6000_gdbarch_init; it's better to
6923 keep that logic there, and just check the results here.
6924 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6925 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6926 floating-point registers.
6927 (ppc_supply_fpregset, ppc_collect_fpregset)
6928 (rs6000_push_dummy_call, rs6000_extract_return_value)
6929 (rs6000_store_return_value): Assert that we have floating-point
6930 registers.
6931 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6932 (rs6000_frame_cache): Don't note the locations at which
6933 floating-point registers were saved if we have no fprs.
6934 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6935 registers.
6936 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6937 (store_regs_user_thread, store_regs_kernel_thread): Only call
6938 supply_fprs / fill_fprs if we actually have floating-point
6939 registers.
6940 (special_register_p): Check ppc_fpscr_regnum before matching
6941 against it.
6942 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6943 supply / collect fpscr if we don't have it.
6944 * ppc-bdm.c: #include "gdb_assert.h".
6945 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6946 have floating-point registers, since I can't test this code on
6947 FP-free systems to adapt it.
6948 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6949 fpscr and floating point register numbers if they don't exist.
6950 (fetch_register): Assert that we have floating-point registers
6951 before we reach the code that handles them.
6952 (store_register): Same. And use tdep instead of calling
6953 gdbarch_tdep again.
6954 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6955 don't have them.
6956 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6957 fprs and fpscr if we don't have them.
6958 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6959 don't have them.
6960 * ppcnbsd-nat.c: #include "gdb_assert.h".
6961 (getfpregs_supplies): Assert that we have floating-point registers.
6962 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6963 * ppcobsd-tdep.c: #include "gdb_assert.h".
6964 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6965 have floating-point registers.
6966 * rs6000-nat.c (regmap): Don't match against the fpscr and
6967 floating point register numbers if they don't exist.
6968 (fetch_inferior_registers, store_inferior_registers,
6969 fetch_core_registers): Only fetch / store / supply the
6970 floating-point registers and the fpscr if we have them.
6971 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6972 (ppcobsd-tdep.o): Update dependencies.
6973
6974 2004-05-10 Andrew Cagney <cagney@redhat.com>
6975
6976 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6977 (context_switch): Do not switch through_sigtramp_breakpoint.
6978 * gdbthread.h (save_infrun_state, load_infrun_state)
6979 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6980 and structure member.
6981 * thread.c (load_infrun_state, save_infrun_state): Update.
6982
6983 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6984
6985 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6986
6987 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6988
6989 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6990 throughout.
6991 * aclocal.m4: Regenerate.
6992
6993 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6994
6995 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6996
6997 2004-05-10 Andrew Cagney <cagney@redhat.com>
6998
6999 * infrun.c (check_sigtramp2): Delete function.
7000 (handle_inferior_event): When single stepping, and taking a
7001 signal, set a breakpoint at the signal return address. Delete
7002 redundant calls to check_sigtramp2.
7003 (insert_step_resume_breakpoint): New function.
7004 (through_sigtramp_breakpoint, handle_inferior_event)
7005 (follow_exec, wait_for_inferior, fetch_inferior_event)
7006 (currently_stepping, keep_going): Delete most uses of
7007 through_sigtramp_breakpoint, not that it should be deleted.
7008 (delete_breakpoint_current_contents): Delete function.
7009
7010 2004-05-10 Randolph Chung <tausq@debian.org>
7011
7012 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7013 target.
7014 * config/pa/tm-linux.h: New file.
7015
7016 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7017
7018 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7019 of prefixes. Don't print the prefix twice in the CLI.
7020
7021 2004-05-10 Jim Blandy <jimb@redhat.com>
7022
7023 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7024 collect all the gprs.
7025
7026 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7027 loop collecting gprs.
7028
7029 2004-05-09 Andrew Cagney <cagney@redhat.com>
7030
7031 * remote-vx.c (net_step): Delete step-range code.
7032 * remote.c (remote_resume, init_all_packet_configs)
7033 (set_remote_protocol_E_packet_cmd)
7034 (show_remote_protocol_E_packet_cmd)
7035 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7036 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7037 (show_remote_protocol_e_packet_cmd): Ditto.
7038
7039 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7040
7041 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7042
7043 * hppa-tdep.h: Update copyright year.
7044 (struct trad_frame_saved_reg): Add opaque declaration.
7045
7046 * amd64-tdep.c (amd64_return_value): Implement
7047 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7048
7049 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7050 (m68k_value_to_register): New functions.
7051 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7052 value_to_register.
7053
7054 * defs.h (enum return_value_convention): Add
7055 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7056 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7057 * infcmd.c (legacy_return_value): New function.
7058 (print_return_value): Rwerite to implement
7059 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7060 * values.c (using_struct_return): Check for inequality to
7061 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7062 RETURN_VALUE_STRUCT_CONVENTION.
7063 * i386-tdep.c (i386_return_value): Implement
7064 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7065
7066 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7067 include "symtab.h", "opcode/vax.h" and "inferior.h".
7068 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7069 to read_memory_unsigned_integer.
7070 (vax_gdbarch_init): Reorder.
7071 (_initialize_vax_tdep): Spell out prototype.
7072 * Makefile.in (vax-tdep.o): Update dependencies.
7073
7074 2004-05-08 Andrew Cagney <cagney@redhat.com>
7075
7076 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7077 * target.c (target_detach, target_disconnect): Ditto.
7078
7079 * infcall.c (call_function_by_hand): When no
7080 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7081 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7082 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7083 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7084 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7085
7086 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7087 * gdbarch.h, gdbarch.c: Re-generate.
7088 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7089 deprecated_fix_call_dummy.
7090 * v850-tdep.c (v850_gdbarch_init): Ditto.
7091 * infcall.c (call_function_by_hand): Do not call
7092 DEPRECATED_FIX_CALL_DUMMY.
7093
7094 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7095 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7096 * gdbarch.h, gdbarch.c: Re-generate.
7097 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7098 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7099 deprecated_sizeof_call_dummy_words.
7100 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7102 * v850-tdep.c (v850_gdbarch_init): Ditto.
7103 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7104 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7105 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7106 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7107 * arch-utils.h (legacy_call_dummy_words)
7108 (legacy_sizeof_call_dummy_words): Delete declarations.
7109 * arch-utils.c (legacy_call_dummy_words)
7110 (legacy_sizeof_call_dummy_words): Delete variables.
7111
7112 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7113 * gdbarch.h, gdbarch.c: Re-generate.
7114 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7115 * infcall.c (call_function_by_hand): Eliminate call to
7116 DEPRECATED_PUSH_DUMMY_FRAME.
7117 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7118 push_dummy_frame.
7119 (ns32k_push_dummy_frame): Delete function.
7120
7121 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7122 deprecated_call_dummy_breakpoint_offset or
7123 deprecated_call_dummy_start_offset.
7124 * dummy-frame.c, arm-tdep.c: Update comments.
7125 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7126 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7127 * gdbarch.h, gdbarch.c: Re-generate.
7128
7129 * infcall.c (legacy_push_dummy_code): Delete function.
7130 (push_dummy_code): Delete call.
7131
7132 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7133 * gdbarch.h, gdbarch.c: Re-generate.
7134 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7135 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7136 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7137 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7138
7139 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7140 (struct frame_info): Delete opaque declaration.
7141 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7142 * frame.c (get_frame_type): Delete call.
7143
7144 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7145 pc_in_call_dummy.
7146 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7147 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7148
7149 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7150
7151 * alphanbsd-tdep.c: Include "gdb_string.h".
7152 * armnbsd-tdep.c: Update copyright year.
7153 Include "gdb_string.h".
7154 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7155 dependencies.
7156
7157 * delta68-nat.c: Remove file.
7158 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7159 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7160 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7161 (delta68-nat.o): Remove dependency.
7162
7163 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7164 function.
7165 (m68k_gdbarch_init): Don't set
7166 deprecated_frameless_function_invocation.
7167
7168 2004-05-07 Randolph Chung <tausq@debian.org>
7169
7170 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7171 read_memory_nobpt for code reading when doing frame unwinding.
7172 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7173
7174 2004-05-07 Randolph Chung <tausq@debian.org>
7175
7176 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7177 instead of sp, handle sigaltstack case.
7178 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7179 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7180 signal handler and not that of the caller.
7181 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7182 hppa_linux_sigtramp_find_sigcontext.
7183
7184 2004-05-07 Randolph Chung <tausq@debian.org>
7185
7186 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7187 hppa-linux-nat.c.
7188 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7189 * hppa-linux-nat.c (fetch_register, store_register): Define.
7190 (fetch_inferior_registers, store_inferior_registers): Define.
7191 (supply_gregset): Add comment and clean up some unneeded code.
7192 (fill_gregset): Add comment and fix so that it saves registers in
7193 the right place in the gregset.
7194 (fill_fpregset): Fix buffer overrun problem.
7195 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7196
7197 2004-05-07 Randolph Chung <tausq@debian.org>
7198
7199 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7200 do common handling of the pcoqt register.
7201 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7202 to use helper function.
7203 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7204 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7205 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7206 generic fallback unwinder when all else fails.
7207 (hppa_gdbarch_init): Add fallback sniffer.
7208 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7209 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7210 to use helper function.
7211
7212 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7213
7214 * config/djgpp/fnchange.lst: Add translation rules for
7215 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7216
7217 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7218
7219 * frame.c (get_prev_frame_1): Work around GCC bug.
7220 * frame.h: Add comment about GCC bug.
7221
7222 2004-05-07 Andrew Cagney <cagney@redhat.com>
7223
7224 * observer.c: Include "commands.h" and "gdbcmd.h".
7225 (observer_debug, _initialize_observer): Add the
7226 command "set/show debug observer".
7227 * observer.sh: When observer debugging, log notify calls.
7228 * Makefile.in (observer.o): Update dependencies.
7229
7230 2004-05-07 Jason Molenda (jmolenda@apple.com)
7231
7232 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7233
7234 2004-05-07 Jim Blandy <jimb@redhat.com>
7235
7236 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7237 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7238 to recognize gpr regnums, instead of assuming that
7239 tdep->ppc_fp0_regnum marks the end of the general-purpose
7240 registers.
7241
7242 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7243 the given architecture has floating-point registers.
7244
7245 2004-05-07 Andrew Cagney <cagney@redhat.com>
7246
7247 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7248 macro defined to 1.
7249 * gdbarch.h, gdbarch.c: Re-generate.
7250 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7251 deprecated_use_generic_dummy_frames.
7252
7253 2004-05-07 Brian Ford <ford@vss.fsi.com>
7254
7255 * NEWS: Mention Cygwin DWARF 2 support.
7256
7257 2004-05-07 Andrew Cagney <cagney@redhat.com>
7258
7259 * objfiles.h (struct entry_info): Delete unused fields
7260 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7261 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7262 * mipsread.c (mipscoff_symfile_read): Update.
7263 * mdebugread.c (parse_partial_symbols): Update.
7264 * dwarfread.c (read_file_scope): Update.
7265 * dwarf2read.c (read_file_scope): Update.
7266 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7267 * coffread.c (complete_symtab): Update.
7268
7269 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7270
7271 * infcall.c (_initialize_infcall): Fix typo.
7272
7273 2004-05-07 Andrew Cagney <cagney@redhat.com>
7274
7275 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7276 * command.h (add_setshow_zinteger_cmd): Declare.
7277
7278 2004-05-06 Randolph Chung <tausq@debian.org>
7279
7280 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7281 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7282 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7283 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7284 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7285 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7286 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7287 definitions ...
7288 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7289 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7290 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7291 (hppa64_hpux_frame_find_saved_regs_in_sig)
7292 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7293 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7294 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7295 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7296 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7297 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7298 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7299 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7300 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7301 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7302 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7303 (hppa32_register_type, hppa_cannot_store_register)
7304 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7305 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7306 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7307 * pa64solib.c (pa64_solib_have_load_event)
7308 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7309 (pa64_solib_unloaded_library_pathname): Likewise.
7310 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7311 (som_solib_library_pathname): Likewise.
7312
7313 2004-05-05 Jim Ingham <jingham@apple.com>
7314
7315 * breakpoint.c (create_breakpoints): Copy the ignore count and
7316 thread id over from the pended breakpoint to the actual
7317 breakpoint.
7318
7319 2004-05-05 Andrew Cagney <cagney@redhat.com>
7320
7321 * gdbarch.sh (PARM_BOUNDARY): Delete.
7322 gdbarch.h, gdbarch.c: Re-generate.
7323 * valops.c (PARM_BOUNDARY): Delete macro.
7324 (value_push): Delete PARM_BOUNDARY code.
7325 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7326
7327 2004-05-04 Jim Blandy <jimb@redhat.com>
7328
7329 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7330 Don't assume that the gprs, fprs, and UISA sprs are
7331 contiguous, start at register number zero, and end with fpscr.
7332 Instead, use the numbers from the tdep structure.
7333
7334 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7335 should no longer be used in code specific to the RS6000 and its
7336 derivatives.
7337 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7338 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7339 tdep->ppc_fp0_regnum.
7340 (ppc_supply_fpregset, ppc_collect_fpregset)
7341 (rs6000_push_dummy_call, rs6000_extract_return_value)
7342 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7343 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7344 FP0_REGNUM.
7345 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7346 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7347 Same.
7348 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7349 bdm_ppc_store_registers): Same.
7350 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7351 (store_register, fill_fpregset): Same.
7352 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7353 (ppc_linux_supply_fpregset): Same.
7354 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7355 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7356 Same.
7357 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7358 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7359 ppc64_sysv_abi_return_value): Same.
7360 * rs6000-nat.c (regmap, fetch_inferior_registers)
7361 (store_inferior_registers, fetch_core_registers): Same.
7362
7363 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7364
7365 * m68knbsd-nat.c: Remove file.
7366 * m68knbsd-tdep.c: Remove file.
7367 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7368 dependencies.
7369 * configure.host: Add m68k-*-netbsdelf*.
7370 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7371 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7372 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7373 (XM_FILE): Remove.
7374 * config/m68k/nbsdelf.mh: New file.
7375 * config/m68k/nbsd.mt: New file.
7376 * config/m68k/nbsdaout.mt: Remove file.
7377 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7378 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7379 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7380 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7381 (use_struct_convention): Remove prototype.
7382 (USE_STRUCT_CONVENTION): Remove define.
7383 * config/m68k/xm-nbsd.h: Remove file.
7384
7385 2004-05-04 Michael Snyder <msnyder@redhat.com>
7386
7387 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7388 reg_struct_return method (as gcc usually does for cross targets).
7389
7390 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7391
7392 Committed by Andrew Cagney.
7393 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7394 alignment padding when accessing ucontext struct members.
7395
7396 2004-05-04 Jim Blandy <jimb@redhat.com>
7397
7398 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7399 'ppc_gplast_regnum' member.
7400 (ppc_num_gprs): New enum constant.
7401 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7402 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7403 * rs6000-nat.c (regmap, fetch_inferior_registers,
7404 store_inferior_registers): Same.
7405 * rs6000-tdep.c (e500_pseudo_register_read)
7406 (e500_pseudo_register_write): Same.
7407 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7408
7409 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7410 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7411 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7412 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7413 FPLAST_REGNUM.
7414 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7415 Same.
7416 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7417 * rs6000-nat.c (regmap, fetch_inferior_registers)
7418 (store_inferior_registers): Same.
7419
7420 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7421 with FPLAST_REGNUM.
7422
7423 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7424
7425 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7426 failure detected by recent versions of GCC.
7427 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7428 to be consistent with the usage in dwarf2_create_include_psymtab.
7429
7430 2004-05-03 Michael Snyder <msnyder@redhat.com>
7431
7432 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7433 (heuristic_proc_start): Whitespace cleanup.
7434
7435 2004-05-04 Mark Kettenis <kettenis@gnu.org>
7436
7437 * sun3-nat.c: Remove file.
7438 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7439 dependencies.
7440 (ALLDEPFILES): Remove sun3-nat.c.
7441 (sun3-nat.o): Remove dependencies.
7442
7443 * i386-interix-nat.c, i386-interix-tdep.c,
7444 config/i386/nm-interix.h, config/i386/interix.mh,
7445 config/i386/interix.mt: Remove files.
7446 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7447 dependencies.
7448
7449 2004-05-03 Mark Kettenis <kettenis@gnu.org>
7450
7451 * m68k-tdep.h (struct gdbarch_tdep): Add member
7452 struct_value_regnum.
7453 (m68k_svr4_init_abi): New prototype.
7454 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7455 different calling conventions.
7456 (m68k_extract_return_value): Remove code dealing with single-field
7457 structs.
7458 (m68k_store_return_value): Remove code dealing with single-field
7459 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7460 (m68k_extract_struct_value_address): Remove function.
7461 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7462 (m68k_reg_struct_return_p, m68k_return_value)
7463 (m68k_svr4_return_value): New functions.
7464 (m68k_use_struct_convention): Remove function.
7465 (m68k_push_dummy_call): Use new struct_value_regnum member of
7466 `struct gdbarch_tdep' instead of hardcoded register number to
7467 store STRUCT_ADDR.
7468 (m68k_svr4_init_abi): New function.
7469 (m68k_gdbarch_init): Don't set extract_return_value,
7470 store_return_values, deprecated_extract_struct_value_address and
7471 use_struct_convention. Set return_value instead. Initialize new
7472 struct_value_regnum member of `struct gdbarch_tdep'.
7473 * m68klinux-tdep.c: Update copyright year.
7474 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7475 (m68k_linux_extract_struct_value_address): Remove function.
7476 (m68k_linux_init_abi): Don't set extract_return_value,
7477 store_return_values, deprecated_extract_struct_value_address and
7478 use_struct_convention. Call m68k_svr4_init_abi but override the
7479 new struct_value_regnum member of `struct gdbarch_tdep'.
7480 * Makefile.in (m68k-tdep.o): Update dependencies.
7481
7482 2004-05-03 J. Brobecker <brobecker@gnat.com>
7483
7484 * dwarf2read.c (line_header): Add new included_p field in
7485 field file_names.
7486 (partial_die_info): New field has_stmt_list. New field line_offset.
7487 (dwarf2_create_include_psymtab): New function.
7488 (dwarf2_build_include_psymtabs): New function.
7489 (add_file_name): Add forward declaration. Initialize new field.
7490 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7491 to be able to determine the list of files included by the
7492 given unit, and build their associated psymtabs.
7493 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7494 files as well.
7495 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7496 (read_file_scope): Update call to dwarf_decode_lines.
7497 (read_partial_die): Handle DW_AT_stmt_list attributes.
7498
7499 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7500
7501 Unfix PR gdb/1626.
7502 * configure.in: Revert special case for osf5.*.
7503 * configure: Regenerate.
7504
7505 2004-05-02 Jim Blandy <jimb@redhat.com>
7506
7507 Move the symbol-file-from-memory functions into their own file.
7508 * symfile-mem.c, symfile-mem.h: New files.
7509 * symfile.c (symbol_file_add_from_bfd): New function.
7510 (symbol_file_add): Call symbol_file_add_from_bfd.
7511 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7512 Moved to symfile-mem.c.
7513 (_initialize_symfile): Move definition of
7514 add-symbol-file-from-memory command to symfile-mem.c.
7515 * symfile.h (symbol_file_add_from_bfd): New declaration.
7516 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7517 * config/powerpc/linux.mt (TDEPFILES): Same.
7518 * Makefile.in (SFILES): Add symfile-mem.c.
7519 (symfile_mem_h): New variable.
7520 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7521 (symfile-mem.o): New rule.
7522
7523 2004-05-01 Andrew Cagney <cagney@redhat.com>
7524
7525 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7526 frame_find_by_id instead of frame_relative_level.
7527 (do_enable_breakpoint): Ditto.
7528 * thread.c: Update copyright.
7529 (info_threads_command): Ditto, simplify.
7530
7531 * frame.c (deprecated_generic_get_saved_register): Delete
7532 function, moved to "xstormy16-tdep.c".
7533 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7534 deprecated_generic_get_saved_register from "frame.c".
7535 (xstormy16_frame_saved_register): Call
7536 xstormy16_get_saved_register.
7537 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7538 static.
7539 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7540 * frame.h (deprecated_generic_get_saved_register): Delete.
7541
7542 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7543
7544 * dwarfread.c: Update documentation on the state of dwarf-1.
7545
7546 2004-05-01 Andrew Cagney <cagney@redhat.com>
7547
7548 * stack.c (select_frame_command): Delete call to
7549 frame_relative_level.
7550 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7551 Delete #if0 code.
7552 (frame_info): Do not print FRAMELESS.
7553 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7554 (catch_info): Delete #if0 code.
7555
7556 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7557 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7558 of frame_relative_level.
7559 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7560 to SENTINEL_FRAME.
7561 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7562 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7563 frame_relative_level.
7564
7565 * frame.h (deprecated_set_frame_type): Delete declaration.
7566 * frame.c (deprecated_set_frame_type): Delete function, update
7567 comments.
7568
7569 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7570 * gdbarch.h, gdbarch.c: Re-generate.
7571 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7572 (shnbsd_pc_in_sigtramp): Delete.
7573 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7574 pc_in_sigtramp.
7575 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7576 pc_in_sigtramp.
7577 * frame.h: Update comments.
7578 * ppc-linux-tdep.c: Update comments.
7579 * breakpoint.c (bpstat_what): Update comments.
7580
7581 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7582 m68klinux-tdep.o's dependencies, were previously added to
7583 m68klinux-nat.o.
7584
7585 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7586 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7587 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7588 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7589 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7590
7591 * Makefile.in (m68klinux-nat.o): Update dependencies.
7592 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7593 (m68k_linux_sigtramp_frame_cache)
7594 (m68k_linux_sigtramp_frame_this_id)
7595 (m68k_linux_sigtramp_frame_prev_register)
7596 (m68k_linux_sigtramp_frame_unwind)
7597 (m68k_linux_sigtramp_frame_sniffer)
7598 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7599 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7600 names, use trad-frame.h.
7601 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7602 (struct m68k_sigtramp_info): Delete.
7603 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7604 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7605 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7606 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7607 "m68klinux-tdep.c".
7608
7609 * infrun.c (check_sigtramp2): Delete check for
7610 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7611
7612 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7613
7614 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7615
7616 2004-05-01 Andrew Cagney <cagney@redhat.com>
7617
7618 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7619 (frv_linux_sigtramp_frame_cache)
7620 (frv_linux_sigtramp_frame_this_id)
7621 (frv_linux_sigtramp_frame_prev_register)
7622 (frv_linux_sigtramp_frame_unwind)
7623 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7624 include "linux" in function and variable names, directly call
7625 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7626 the latest trad-frame code.
7627 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7628 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7629 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7630 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7631 * frv-tdep.c (frv_sigtramp_frame_cache)
7632 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7633 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7634 frv-linux-tdep.c.
7635 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7636 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7637 (frv_set_sigcontext_reg_addr): Delete function.
7638
7639 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7640 (DEPRECATED_SIGTRAMP_END): Delete.
7641 * gdbarch.h, gdbarch.c: Re-generate.
7642 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7643 * config/vax/tm-vaxbsd.h: Update copyright.
7644 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7645 (DEPRECATED_IN_SIGTRAMP): Define.
7646 * config/m68k/tm-nbsd.h: Update copyright.
7647 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7648 (DEPRECATED_IN_SIGTRAMP): Define.
7649
7650 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7651
7652 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7653 encondings. Fixes PR gdb/1628.
7654
7655 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7656 DW_CFA_restore state without a matching DW_CFA_remember_state
7657 instead of aborting. Fixes PR backtrace/1589.
7658
7659 2004-04-30 Joel Brobecker <brobecker@gnat.com>
7660
7661 * MAINTAINERS: Add self as AIX maintainer.
7662 Update my e-mail address in write-after-approval section.
7663
7664 2004-04-30 Andrew Cagney <cagney@redhat.com>
7665
7666 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7667 (legacy_get_prev_frame): Ditto.
7668
7669 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7670 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7671 * mipsread.c (sigtramp_address): Delete extern variable.
7672 (mipscoff_new_init): Delete reference.
7673 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7674 (fixup_sigtramp): Delete function.
7675 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7676 (fixup_sigtramp): Delete declarations.
7677
7678 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7679 deprecated_pc_in_sigtramp.
7680 (ppcnbsd_pc_in_sigtramp): Delete function.
7681
7682 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7683
7684 * config/m68k/nm-nbsd.h: Tweak comments.
7685 * config/m68k/nm-nbsdaout.h: Likewise.
7686
7687 2004-04-30 Andrew Cagney <cagney@redhat.com>
7688
7689 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7690 legacy_pc_in_sigtramp.
7691 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7692
7693 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7694
7695 Add OpenBSD/m68k support.
7696 * NEWS (New native configurations): Mention OpenBSD/m68k.
7697 * m68kbsd-tdep.c: New file.
7698 * m68kbsd-nat.c: New file.
7699 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7700 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7701 * configure.host: Add m68k-*-openbsd.
7702 * configure.tgt: Add m68k-*-openbsd.
7703 * config/m68k/tm-obsd.h: New file.
7704 * config/m68k/obsd.mt: New file.
7705 * config/m68k/obsd.mh: New file.
7706 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7707 m68kbsd-tdep.c.
7708
7709 2004-04-30 Andrew Cagney <cagney@redhat.com>
7710
7711 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7712 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7713
7714 2004-04-30 Mark Kettenis <kettenis@gnu.org>
7715
7716 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7717 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7718
7719 2004-04-30 Brian Ford <ford@vss.fsi.com>
7720
7721 Revert 2004-04-16 change.
7722 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7723 (i386_coff_init_abi): Remove.
7724 * i386-tdep.h (i386_coff_init_abi): Remove.
7725 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7726
7727 2004-04-30 Andrew Cagney <cagney@redhat.com>
7728
7729 * blockframe.c (find_pc_partial_function): Delete use of
7730 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7731 DEPRECATED_SIGTRAMP_END.
7732
7733 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7734 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7735 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7736 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7737 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7738
7739 * defs.h (deprecated_inside_entry_file): Delete declaration.
7740 * blockframe.c (deprecated_inside_entry_file): Delete function.
7741 (legacy_frame_chain_valid): Delete call.
7742 * sh64-tdep.c (sh64_frame_chain): Delete call.
7743 * objfiles.h: Update comments.
7744 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7745 call.
7746 * frame.c (get_prev_frame): Delete call, update comments.
7747
7748 2004-04-30 Brian Ford <ford@vss.fsi.com>
7749
7750 * MAINTAINERS (Write After Approval): Add myself.
7751
7752 2004-04-30 Andrew Cagney <cagney@redhat.com>
7753
7754 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7755 * gdbarch.h, gdbarch.c: Re-generate.
7756 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7757 code.
7758
7759 2004-04-30 Andrew Cagney <cagney@redhat.com>
7760
7761 * gdb-events.sh (selected_thread_changed)
7762 (selected_frame_level_changed, target_changed): Delete.
7763 * gdb-events.h, gdb-events.c: Re-generate.
7764 * valops.c (value_assign): Update.
7765 * stack.c (select_frame_command, up_silently_base)
7766 (down_silently_base): Update.
7767
7768 2004-04-29 Andrew Cagney <cagney@redhat.com>
7769
7770 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7771 registers correctly.
7772 (print_gp_register_row, mips32_heuristic_proc_desc)
7773 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7774 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7775 references to mips_isa_regsize.
7776
7777 2004-04-29 Andrew Cagney <cagney@redhat.com>
7778
7779 * mips-tdep.c (struct gdbarch_tdep): Delete
7780 mips_fp_register_double.
7781 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7782 mips_abi_regsize.
7783 (mips_gdbarch_init): Do not set mips_fp_register_double.
7784 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7785
7786 2004-04-29 Joel Brobecker <brobecker@gnat.com>
7787
7788 Committed by Andrew Cagney.
7789 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7790 function calls.
7791
7792 2004-04-29 Andrew Cagney <cagney@redhat.com>
7793
7794 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7795 gdbarch, use mips_abi, update callers.
7796 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7797 mips_abi_regsize, update callers.
7798 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7799 mips_default_abi_regsize.
7800 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7801 mips_default_abi_regsize.
7802
7803 2004-04-29 Andrew Cagney <cagney@redhat.com>
7804
7805 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7806 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7807 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7808 mips_default_abi_regsize.
7809 (mips_isa_regsize): Rename mips_regisze.
7810 * mipsnbsd-tdep.c: Update.
7811 * mips-linux-tdep.c: Update.
7812 * irix5-nat.c: Update.
7813 * mips-tdep.h (mips_isa_regsize): Update.
7814
7815 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7816 Delete all disabled code.
7817 * gdb-events.h, gdb-events.c: Re-generate.
7818
7819 2004-04-19 Jerome Guitton <guitton@gnat.com>
7820 Mark Kettenis <kettenis@gnu.org>
7821
7822 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7823 the function begins with a branch instruction.
7824
7825 2004-04-29 Mark Kettenis <kettenis@gnu.org>
7826
7827 * i386-tdep.c: Fix spelling mistakes.
7828
7829 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7830 Andrew Cagney <cagney@redhat.com>
7831
7832 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7833 <sys/proc.h>.
7834 * acconfig.h: Provide default _KMEMUSER value.
7835 * config.in, configure: Re-generate.
7836 * NEWS: Mention fix.
7837
7838 2004-04-24 Randolph Chung <tausq@debian.org>
7839
7840 * configure.host (hppa*-*-linux*): New target.
7841 * configure.tgt (hppa*-*-linux*): Likewise.
7842 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7843 gdbarch_init_osabi() call earlier so that osabi-specific frame
7844 unwinders can be registered first.
7845 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7846 hppa-linux-nat.c.
7847 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7848 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7849 * config/pa/linux.mh: New file.
7850 * config/pa/linux.mt: New file.
7851 * config/pa/nm-linux.h: New file.
7852 * config/pa/xm-linux.h: New file.
7853 * hppa-linux-nat.c: New file.
7854 * hppa-linux-tdep.c: New file.
7855
7856 2004-04-28 Randolph Chung <tausq@debian.org>
7857
7858 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7859 return values.
7860 (hppa32_push_dummy_call): Fix small struct and floating point argument
7861 passing, and make sure the stack frame is properly aligned.
7862
7863 2004-04-28 Andrew Cagney <cagney@redhat.com>
7864
7865 * stack.c (print_stack_frame): Fix description.
7866
7867 * NEWS: Mention gdb/gdbserver/configure execute permission
7868 changed. PR server/519.
7869
7870 2004-04-28 Andrew Cagney <cagney@redhat.com>
7871
7872 * stack.c (print_stack_frame_stub): Delete declaration.
7873 (struct print_stack_frame_args, print_stack_frame)
7874 (print_frame_info, print_frame): Replace "source" with print what.
7875 Replace "print" with "print_level". Replace "args" with
7876 "print_args".
7877 * frame.h (show_and_print_stack_frame, print_stack_frame)
7878 (print_frame_info): Update declarations.
7879 * stack.c (select_and_print_frame, frame_command)
7880 (current_frame_command, up_command, down_command): Update calls -
7881 use get_selected_frame, pass "enum print_what" for source, do not
7882 call frame_relative_level.
7883 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7884 * remote-rdp.c (remote_rdp_open): Ditto.
7885 * remote-mips.c (common_open): Ditto.
7886 * remote-e7000.c (e7000_start_remote): Ditto.
7887 * ocd.c (ocd_start_remote): Ditto.
7888 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7889 * infrun.c (normal_stop): Ditto.
7890 * inflow.c (kill_command): Ditto.
7891 * infcmd.c (finish_command): Ditto.
7892 * corelow.c (core_open): Ditto.
7893 * tracepoint.c (finish_tfind_command): Ditto.
7894 * thread.c (info_threads_command, info_threads_command)
7895 (restore_current_thread, do_captured_thread_select): Ditto.
7896 * ada-tasks.c (task_command): Ditto.
7897
7898 2004-04-26 Orjan Friberg <orjanf@axis.com>
7899
7900 * frame.c: Include "observer.h".
7901 (frame_observer_target_changed): New function.
7902 (_initialize_frame): Attach target_changed observer.
7903 * regcache.c: Include "observer.h".
7904 (regcache_observer_target_changed): New function.
7905 (_initialize_regcache): Attach target_changed observer.
7906 * valops.c: Include "observer.h".
7907 (value_assign): Notify target_changed event when modifying register.
7908 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7909
7910 2004-04-26 Orjan Friberg <orjanf@axis.com>
7911
7912 From Paul Koning <pkoning@equallogic.com>:
7913 * breakpoint.c (free_valchain): New function.
7914 (insert_bp_location, delete_breakpoint): Use free_valchain.
7915 (remove_breakpoint): Do not remove the valchain.
7916 (bpstat_stop_status): If not stopped by watchpoint, skip
7917 watchpoints when generating stop status list.
7918 * infrun.c (handle_inferior_event): Make
7919 stepped_after_stopped_by_watchpoint a global variable.
7920 * remote.c (remote_stopped_data_address): Return watch data
7921 address rather than zero if stepped_after_stopped_by_watchpoint is
7922 set.
7923
7924 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7925
7926 Fix PR gdb/1626.
7927 * configure.in: Check for curses after termcap.
7928 On osf5.*, do not check for ncurses.
7929 * configure: Regenerate.
7930
7931 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7932
7933 * ppcobsd-nat.c: Include "ppc-tdep.h".
7934 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7935
7936 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7937 Fixes PR tdep/1623 and PR tdep/1624.
7938
7939 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7940
7941 * xmodem.h, xmodem.c: Remove files.
7942 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7943
7944 2004-04-23 Randolph Chung <tausq@debian.org>
7945
7946 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7947 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7948 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7949 for handling stackless frames.
7950 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7951
7952 2004-04-23 Randolph Chung <tausq@debian.org>
7953
7954 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7955 starts at a pc before the frame is created.
7956
7957 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7958
7959 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7960
7961 2004-04-23 Jerome Guitton <guitton@gnat.com>
7962
7963 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7964 use convert_typed_floating to get the appropriate format.
7965
7966 2004-04-22 Randolph Chung <tausq@debian.org>
7967
7968 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7969 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7970 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7971 (hppa_sign_extend): Add prototype.
7972 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7973 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7974 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7975 hppa targets will also use these functions.
7976 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7977 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7978 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7979 (hppa_gdbarch_init): Remove gdbarch setting of
7980 skip_trampoline_code, in_solib_call_trampoline and
7981 in_solib_return_trampoline.
7982 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7983 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7984 hppa_in_solib_call_trampoline.
7985 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7986 Moved from hppa-tdep.c.
7987 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7988 in_solib_call_trampoline and in_solib_return_trampoline.
7989
7990 2004-04-22 Randolph Chung <tausq@debian.org>
7991
7992 * hppa-tdep.c (hppa_debug): New variable.
7993 (find_unwind_entry, hppa_frame_cache): Add debug output.
7994 (_initialize_hppa_tdep): Add command to set debug flag.
7995
7996 2004-04-22 Andrew Cagney <cagney@redhat.com>
7997
7998 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7999 "trad-frame.h".
8000 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8001 signal trampoline unwinder.
8002 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8003
8004 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8005
8006 Add OpenBSD/powerpc support.
8007 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8008 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8009 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8010 (ppc_collect_fpregset): New prototypes.
8011 * ppcobsd-nat.c: New file.
8012 * ppcobsd-tdep.c: New file.
8013 * ppcobsd-tdep.h: New file.
8014 * rs6000-tdep.c: Include "regset.h".
8015 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8016 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8017 New functions.
8018 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8019 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8020 (rs6000-tdep.o): Update dependencies.
8021 * configure.host: Add powerpc-*-openbsd.
8022 * configure.tgt: Add powerpc-*-openbsd.
8023 * config/powerpc/obsd.mh: New file.
8024 * config/powerpc/nm-obsd.h: New file.
8025 * config/powerpc/obsd.mt: New file.
8026
8027 2004-04-22 Andrew Cagney <cagney@redhat.com>
8028
8029 * frame.h (show_frame_info): Delete declaration.
8030
8031 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8032 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8033 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8034 * frv-tdep.c (frv_frame_this_id): Ditto.
8035 * avr-tdep.c (avr_frame_this_id): Ditto.
8036
8037 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8038
8039 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8040
8041 2004-04-22 Jim Blandy <jimb@redhat.com>
8042
8043 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8044 register number zero.
8045
8046 2004-04-21 Michael Snyder <msnyder@redhat.com>
8047
8048 * mips-tdep.c (heuristic_proc_start):
8049 Warning() already prefixes "Warning: ".
8050
8051 2004-04-21 Andrew Cagney <cagney@redhat.com>
8052
8053 * annotate.h (deprecated_annotate_starting_hook)
8054 (deprecated_annotate_stopped_hook)
8055 (deprecated_annotate_exited_hook)
8056 (deprecated_annotate_signal_hook)
8057 (deprecated_annotate_signalled_hook): Deprecate.
8058 * tracepoint.h (deprecated_create_tracepoint_hook)
8059 (deprecated_delete_tracepoint_hook)
8060 (deprecated_modify_tracepoint_hook)
8061 (deprecated_trace_find_hook)
8062 (deprecated_trace_start_stop_hook): Deprecate.
8063 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8064 * remote.h (deprecated_target_resume_hook)
8065 (deprecated_target_wait_loop_hook): Deprecate.
8066 * gdbcore.h (deprecated_exec_file_display_hook)
8067 (deprecated_file_changed_hook): Deprecate.
8068 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8069 * defs.h (deprecated_modify_breakpoint_hook)
8070 (deprecated_command_loop_hook, deprecated_show_load_progress)
8071 (deprecated_print_frame_info_listing_hook)
8072 (deprecated_query_hook, deprecated_warning_hook)
8073 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8074 (deprecated_delete_breakpoint_hook)
8075 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8076 (deprecated_readline_begin_hook, deprecated_readline_hook)
8077 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8078 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8079 (deprecated_context_hook, deprecated_target_wait_hook)
8080 (deprecated_attach_hook, deprecated_detach_hook)
8081 (deprecated_call_command_hook, deprecated_set_hook)
8082 (deprecated_error_hook, deprecated_error_begin_hook)
8083 (deprecated_ui_load_progress_hook): Deprecate.
8084 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8085 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8086 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8087 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8088 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8089 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8090 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8091 * annotate.c, aix-thread.c: Update.
8092
8093 2004-04-21 Andrew Cagney <cagney@redhat.com>
8094
8095 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8096 * vaxnbsd-tdep.c: Include "gdb_string.h".
8097
8098 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8099 (add_symbol_file_from_memory_command): #if 0 function body, call
8100 error instead.
8101
8102 2004-04-21 Andrew Cagney <cagney@redhat.com>
8103
8104 * gdbcore.h: Update copyright.
8105 (deprecated_add_core_fns): Rename add_core_fns.
8106 * win32-nat.c (_initialize_core_win32): Update.
8107 * sun3-nat.c (_initialize_core_sun3): Update.
8108 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8109 * rs6000-nat.c (_initialize_core_rs6000): Update.
8110 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8111 * nto-tdep.c (_initialize_nto_tdep): Update.
8112 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8113 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8114 * mips-nat.c (_initialize_core_mips): Update.
8115 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8116 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8117 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8118 * lynx-nat.c (_initialize_core_lynx): Update.
8119 * irix5-nat.c (_initialize_core_irix5): Update.
8120 * i386-interix-nat.c (_initialize_core_interix): Update.
8121 * cris-tdep.c (_initialize_cris_tdep): Update.
8122 * corelow.c (deprecated_add_core_fns): Update.
8123 * core-regset.c (_initialize_core_regset): Update.
8124 * core-aout.c (_initialize_core_aout): Update.
8125 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8126 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8127 * alpha-nat.c (_initialize_core_alpha): Update.
8128
8129 2004-04-21 Jim Blandy <jimb@redhat.com>
8130
8131 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8132
8133 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8134
8135 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8136 Delete.
8137 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8138 (read_attribute_value): Update calls to dwarf_alloc_block.
8139 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8140 dwarf2_tmp_obstack.
8141 (psymtab_to_symtab_1): Likewise. Clean up using
8142 free_stack_comp_unit.
8143 (add_to_cu_func_list): Use the comp_unit_obstack.
8144
8145 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8146
8147 * dwarf2read.c (dwarf2_flag_true_p): New function.
8148 (die_is_declaration): Use the function above. Add some comments.
8149
8150 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8151
8152 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8153 architecture when registering sparcnbsd_core_osabi_sniffer.
8154 Adjust comment.
8155
8156 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8157
8158 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8159 return value.
8160
8161 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8162 * i386-tdep.c: Correct register numbering scheme comments
8163 throughout.
8164 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8165 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8166 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8167 (i386_gdb_arch_init): Likewise.
8168
8169 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8170 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8171 ppcnbsd-tdep.o.
8172
8173 * m68k-tdep.h: Tweak comments.
8174 * m68k-tdep.c: Tweak comment.
8175
8176 2004-04-17 Randolph Chung <tausq@debian.org>
8177
8178 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8179 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8180 (hppa_hpux_som_init_abi): Set is_elf to 0.
8181 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8182 * hppa-tdep.c (low_text_segment_address): Remove global.
8183 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8184 section offset to calculate segment address.
8185 (internalize_unwinds): Define low_text_segment_address as local and
8186 pass to record_text_segment_lowaddr for ELF targets.
8187 (hppa_gdbarch_init): Zero fill tdep structure.
8188 (hppa_dump_tdep): Print tdep structure.
8189 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8190
8191 2004-04-17 Randolph Chung <tausq@debian.org>
8192
8193 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8194 (hppa_gdbarch_init): Set pseudo_register_read.
8195 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8196 * regcache.c (supply_register): Remove check for
8197 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8198
8199 2004-04-17 Randolph Chung <tausq@debian.org>
8200
8201 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8202 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8203 (hpread_adjust_stack_address): Move to hpread.c.
8204 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8205 obj_private_struct): Move from tm-hppa.h.
8206 * hpread.c (hppa-tdep.h): Include.
8207 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8208 (hpread_read_function_type, hpread_read_doc_function_type)
8209 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8210 directly.
8211 * pa64solib.c (hppa-tdep.h): Include.
8212 * somsolib.c (hppa-tdep.h): Include.
8213 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8214 inferior_status): Remove unused forward declarations.
8215 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8216 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8217 obj_private_struct): Move to hppa-tdep.h.
8218 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8219
8220 2004-04-17 Randolph Chung <tausq@debian.org>
8221
8222 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8223 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8224 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8225 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8226 Remove forward declaration and make static.
8227 (hppa_reg_struct_has_addr): Remove.
8228
8229 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8230
8231 * observer.sh: Move comments in sed command to first column.
8232
8233 2004-04-16 Jason Molenda (jmolenda@apple.com)
8234
8235 * frame.c: Minor typeo corrections in comments.
8236
8237 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8238
8239 * observer.c (observer_test_first_notification_function): Update
8240 function profile.
8241 (observer_test_second_notification_function): Likewise.
8242 (observer_test_third_notification_function): Likewise.
8243
8244 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8245
8246 From Brian Ford <ford@vss.fsi.com>:
8247 * i386-tdep.c (i386_coff_init_abi): New function.
8248 * i386-tdep.h (i386_coff_init_abi): New prototype.
8249 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8250 register number translation functions for DWARF and DWARF 2.
8251
8252 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8253
8254 * dwarf2read.c: Back out my previous change, it was incorrect.
8255
8256 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8257
8258 * dwarf2read.c: Include "hashtab.h".
8259 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8260 has_namespace_info.
8261 (struct partial_die_info): Add comments. Use bitfields to reduce
8262 memory footprint. Add scope, scope_set, has_specification,
8263 spec_offset, die_parent, die_child, and die_sibling.
8264 (peek_die_abbrev): Add prototype.
8265 (partial_read_comp_unit_head): New function, broken out from
8266 dwarf2_build_psymtabs_hard.
8267 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8268 Use partial_read_comp_unit_head. Initialize the CU and
8269 comp_unit_obstack. Update calls to read_partial_die and
8270 scan_partial_symbols. Use free_stack_comp_unit and
8271 load_partial_dies.
8272 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8273 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8274 Update calls to helper functions. Remove NAMESPACE argument.
8275 Update comments.
8276 (partial_die_parent_scope, partial_die_full_name): New functions.
8277 (add_partial_symbol): Remove namespace argument. Update call to
8278 pdi_needs_namespace. Use partial_die_full_name. Handle
8279 DW_TAG_namespace. Check has_namespace_info flag.
8280 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8281 tag. Handle namespaces.
8282 (add_partial_namespace, add_partial_enumeration): Simplify.
8283 (guess_structure_name): New function, derived from
8284 add_partial_structure.
8285 (add_partial_structure): Remove.
8286 (determine_class_name): Update comment.
8287 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8288 (is_type_tag_for_partial, load_partial_dies): New functions.
8289 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8290 Record specifications instead of following them immediately.
8291 (find_partial_die_in_comp_unit, find_partial_die)
8292 (fixup_partial_die, free_stack_comp_unit)
8293 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8294 (partial_die_hash, partial_die_eq): New functions.
8295 * Makefile.in (hashtab_h): Define.
8296 (dwarf2read.o): Update dependencies.
8297 (observer_inc, observer_h): Move to the correct section.
8298
8299 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8300
8301 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8302 (die_is_declaration): Use the function above. Add comment.
8303
8304 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8305
8306 * dwarf2read.c (read_structure_scope): Identify stub types
8307 using die_is_declaration() only.
8308
8309 2004-04-15 Roland McGrath <roland@redhat.com>
8310
8311 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8312 argument instead of NAME.
8313 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8314 in call to symbol_file_add_with_addrs_or_offsets.
8315 (build_addr_info): New function, helper for ...
8316 (symbol_file_add_from_memory): New function.
8317 (add_symbol_file_from_memory_command): New function using that.
8318 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8319 (pre_add_symbol_hook): Add const to argument type.
8320 * symfile.h (symbol_file_add_from_memory): Declare it.
8321
8322 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8323
8324 * NEWS (New native configurations): Mention OpenBSD/vax.
8325 * configure.host: Add vax-*-openbsd*.
8326 * config/vax/obsd.mh: New file.
8327 * config/vax/nm-obsd.h: New file.
8328
8329 * vax-tdep.c: Include "regset.h".
8330 (vax_supply_gregset): New function.
8331 (vax_gregset): New variable.
8332 (vax_regset_from_core_section): New function.
8333 (vax_gdbarch_init): Set regset_from_core_section.
8334 * Makefile.in (vax-tdep.o): Update dependencies.
8335
8336 2004-04-15 Andrew Cagney <cagney@redhat.com>
8337
8338 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8339 (observer_normal_stop_notification_stub)
8340 (observer_attach_normal_stop, observer_detach_normal_stop):
8341 Delete, replaced by #include "observer.inc".
8342 * infrun.c (normal_stop): Pass "stop_bpstat" to
8343 observer_notify_normal_stop.
8344 * Makefile.in (observer_inc): Define.
8345 (observer.o): Update dependencies.
8346 (observer.h, observer.inc): New rules.
8347 * observer.h: Delete file.
8348 * observer.sh: New file.
8349
8350 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8351
8352 * vax-tdep.c (vax_frame_cache): Fix typo.
8353
8354 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8355
8356 * NEWS (New native configurations): Mention NetBSD/vax.
8357 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8358 * config/vax/nbsdelf.mh: New file.
8359 * config/vax/nbsdaout.mh: New file.
8360 * config/vax/nm-nbsd.h: New file.
8361 * config/vax/nm-nbsdaout.h: New file.
8362
8363 * vaxnbsd-tdep.c: New file.
8364 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8365 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8366 * config/vax/nbsd.mt: New file.
8367 * config/vax/tm-nbsd.h: New file.
8368
8369 * Makefile.in (vaxbsd-nat.o): New dependency.
8370
8371 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8372 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8373 struct_addr arguments. Don't push return value address.
8374 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8375 arguments to vax_store_arguments. Store return value address in
8376 R1.
8377 (vax_store_struct_return, vax_extract_return_value)
8378 (vax_store_return_value): Remove functions.
8379 (vax_return_value): New function.
8380 (vax_gdbarch_init): Set return value. Don't set
8381 deprecated_store_struct_return, deprecated_extract_struct_return
8382 and deprecated_store_return_value.
8383
8384 2004-04-14 Andreas Schwab <schwab@suse.de>
8385
8386 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8387 value buffer.
8388 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8389
8390 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8391
8392 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8393 (vax_unwind_dummy_id): New functions.
8394 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8395 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8396 variables.
8397 (vax_fix_call_dummy): Remove function.
8398 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8399 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8400 call_dummy_location, deprecated_call_dummy_words,
8401 deprecated_sizeof_call_dummy_words,
8402 deprecated_call_dummy_breakpoint_offset,
8403 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8404 and deprecated_dummy_write_sp.
8405
8406 2004-04-13 David Carlton <carlton@kealia.com>
8407
8408 * MAINTAINERS: Move myself to "paper trail" section.
8409
8410 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8411
8412 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8413 "trad-frame.h".
8414 (vax_frame_init_saved_regs): Remove function.
8415 (vax_sigtramp_saved_pc): Remove function.
8416 (vax_frame_saved_pc): Remove function.
8417 (vax_frame_args_address): Remove function.
8418 (vax_frame_num_args): Rewrite.
8419 (vax_frame_chain): Remove function.
8420 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8421 VAX_FP_REGNUM.
8422 (vax_pop_frame): Likewise.
8423 (vax_saved_pc_after_call): Remove function.
8424 (struct vax_frame_cache): New structure.
8425 (vax_frame_cache): New function.
8426 (vax_frame_this_id): New function.
8427 (vax_frame_prev_register): New function.
8428 (vax_frame_unwind): New variable.
8429 (vax_frame_sniffer): New function.
8430 (vax_frame_base_address): New function.
8431 (vax_frame_args_address): New function.
8432 (vax_frame_base): New variable.
8433 (vax_unwind_pc): New function.
8434 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8435 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8436 deprecated_frame_chain, deprecated_frame_saved_pc,
8437 deprecated_frame_args_address and
8438 deprecated_frame_init_saved_regs.
8439 * Makefile.in (vax-tdep.o): Update dependencies.
8440
8441 * vaxbsd-nat.c: New file.
8442
8443 * vax-tdep.h: Update copyright year. Adjust comments.
8444 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8445 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8446 (vax_regnum): New enum. Replacing...
8447 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8448 (VAX_PS_REGNUM): ... these removed macros.
8449 * vax-tdep.c (vax_register_name): Remove prototype.
8450 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8451 (vax_register_byte, vax_register_raw_size,
8452 vax_register_virtual_size, vax_register_virtual_type): Remove
8453 functions.
8454 (vax_register_type): New function.
8455 (vax_breakpoint_from_pc): Reorganize.
8456 (vax_gdbarch_init): Set register_type. Don't set
8457 deprecated_register_size, deprecated_register_bytes,
8458 deprecated_register_byte, deprecated_register_raw_size,
8459 deprecated_max_register_raw_size,
8460 deprecated_register_virtual_size,
8461 deprecated_max_register_virtual_size and
8462 deprecated_register_virtual_type. Add comment on stack direction.
8463
8464 2004-04-11 Mark Kettenis <kettenis@gnu.org>
8465
8466 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8467 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
8468 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
8469
8470 2004-04-10 Randolph Chung <tausq@debian.org>
8471
8472 * MAINTAINERS (write after approval): Add myself.
8473
8474 2004-04-07 Randolph Chung <tausq@debian.org>
8475
8476 * hppa-tdep.c (hppa_inner_than): Remove.
8477 (is_pa_2): Remove unused static variable.
8478 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8479
8480 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8481
8482 * language.h (language_defn): Add new la_post_parser field.
8483 * parser-defs.h (null_post_parser): New declaration (default for
8484 la_post_parser).
8485
8486 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8487 insert call to that function.
8488 (parse_exp_in_context): New function, including code formerly in
8489 parse_exp_1. Calls language-dependent post-parser after
8490 prefixification.
8491 (parse_expression_in_context): New exported function.
8492 (null_post_parser): New definition.
8493 * expression.h (parse_expression_in_context): Add declaration.
8494
8495 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8496 * c-lang.c (c_language_defn): Ditto.
8497 (cplus_language_defn): Ditto.
8498 (asm_language_defn): Ditto.
8499 (minimal_language_defn): Ditto.
8500 * f-lang.c (f_language_defn): Ditto.
8501 * jv-lang.c (java_language_defn): Ditto.
8502 * language.c (unknown_language_defn): Ditto.
8503 (auto_language_defn): Ditto.
8504 (local_language_defn): Ditto.
8505 * m2-lang.c (m2_language_defn): Ditto.
8506 * scm-lang.c (scm_language_defn): Ditto.
8507 * obj-lang.c (objc_language_defn): Ditto.
8508
8509 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8510
8511 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8512 (amd64nbsd_mcontext_addr): New function.
8513 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8514 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8515 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8516
8517 * corelow.c (core_xfer_partial): Fix coding standards violation.
8518 Add support for TARGET_OBJECT_WCOOKIE.
8519
8520 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8521 deprecated_pc_in_sigtramp.
8522 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8523 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8524 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8525 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8526 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8527 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8528 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8529
8530 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8531 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8532 Fix typo.
8533
8534 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8535 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8536 (amd64_collect_fxsave): Likewise.
8537
8538 * i386-sol2-tdep.c: Include "gdb_string.h".
8539 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8540 name.
8541 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8542
8543 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8544
8545 * i386-sol2-tdep.c: Include "solib-svr4.h".
8546 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8547 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8548 * config/i386/tm-i386sol2.h: Include :solib.h".
8549 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8550 solib-svr4.o and solib-legacy.o.
8551 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8552 solib-svr4.o.
8553
8554 2004-04-09 Mark Kettenis <kettenis@gnu.org>
8555
8556 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8557 whether a register is supplied by PTRACE_GETFPREGS.
8558 (store_inferior_registers): Likewise.
8559 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8560 whether a register is supplied by PT_GETFPREGS.
8561 (store_inferior_registers): Likewise.
8562
8563 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8564 * config/i386/linux64.mt (TDEPFILES): Likewise.
8565
8566 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8567
8568 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8569 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8570 the program counter is in the range specified by `struct
8571 gdbarch_tdep'.
8572 * amd64-linux-tdep.c: Include "symtab.h".
8573 (amd64_linux_pc_in_sigtramp): Remove function.
8574 (amd64_linux_sigtramp_p): New function.
8575 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8576 deprecated_pc_in_sigtramp.
8577 * amd64nbsd-tdep.c: Include "symtab.h".
8578 (amd64nbsd_sigtramp_p): New function.
8579 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8580 deprecated_pc_in_sigtramp.
8581 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8582 few comments.
8583 (amd64obsd_pc_in_sigtramp): Remove function.
8584 (amd64obsd_sigtramp_p): New function.
8585 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8586 deprecated_pc_in_sigtramp.
8587 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8588 (i386bsd_pc_ins_sigtramp): Remove prototype.
8589 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8590 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8591 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8592 the program counter is in the range specified by `struct
8593 gdbarch_tdep'.
8594 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8595 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8596 (i386_go32_pc_in_sigtramp): Remove function.
8597 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8598 Initialize TDEP->sigtramp_p.
8599 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8600 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8601 deprecated_pc_in_sigtramp.
8602 * i386-linux-tdep.c: Adjust comments.
8603 (i386_linux_pc_in_sigtramp): Remove function.
8604 (i386_linux_sigtramp_p): New function.
8605 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8606 deprecated_pc_in_sigtramp.
8607 * i386-nto-tdep.c: Update copyright year.
8608 (i386nto_pc_in_sigtramp): Remove function.
8609 (i386nto_sigtramp_p): New function.
8610 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8611 SP_REGNUM.
8612 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8613 deprecated_pc_in_sigtramp.
8614 * i386-sol2-tdep.c: Update copyright year.
8615 (i386_sol2_pc_in_sigtramp): Remove function.
8616 (i386_sol2_sigtramp_p): New function.
8617 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8618 deprecated_pc_in_sigtramp.
8619 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8620 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8621 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8622 deprecated_sigtramp_start and deprecated_sigtramp_end.
8623 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8624 (i386nbsd_pc_in_sigtramp): Remove function.
8625 (i386nbsd_sigtramp_p): New function.
8626 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8627 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8628 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8629 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8630 (i386obsd_pc_in_sigtramp): Remove function.
8631 (i386obsd_sigtramp_p): New function.
8632 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8633 functions.
8634 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8635 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8636 TDEP->sigtramp_p.
8637 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8638 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8639 dependencies.
8640
8641 * config/i386/i386aout.mt: Remove file.
8642
8643 * configure.tgt: Remove i[34567]86-*-go32*,
8644 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8645 and i[34567]86-*-isc*. Set gdb_target to i386 for
8646 i[34567]86-*-netware* and i[34567]86-*-*.
8647 * config/i386/i386.mt: New file.
8648 * config/i386/embed.mt: Remove file.
8649 * config/i386/go32.mt: Remove file.
8650 * config/i386/i386nw.mt: Remove file.
8651 * config/i386/i386v.mt: Remove file.
8652 * config/i386/tm-go32.h: Remove file.
8653
8654 * tui/tui-hooks.c: Include "readline/readline.h" after
8655 "gdb_curses.h" instead of before.
8656 * tui/tui-io.c: Likewise.
8657
8658 * tui/tui.c: Fix typo in comment.
8659
8660 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8661
8662 2004-04-08 Andrew Cagney <cagney@redhat.com>
8663
8664 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8665 (deprecated_exception_support_initialized): Declare.
8666 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8667 (initialize_hp_cxx_exception_support)
8668 (child_enable_exception_callback): Update.
8669 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8670 (deprecated_exception_support_initialized): Rename
8671 deprecated_exception_catchpoints_are_fragile and
8672 deprecated_exception_support_initialized.
8673 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8674
8675 * symtab.c (deprecated_hp_som_som_object_present): Rename
8676 hp_som_som_object_present.
8677 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8678 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8679 Update. Delete extern declaration.
8680 * valops.c (hp_som_som_object_present): Ditto.
8681 * parse.c (deprecated_hp_som_som_object_present)
8682 (parse_nested_classes_for_hpacc): Ditto.
8683 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8684 * hppa-hpux-tdep.c (hp_som_som_object_present)
8685 (initialize_hp_cxx_exception_support): Ditto.
8686 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8687 * cp-valprint.c (hp_som_som_object_present)
8688 (cp_print_class_method): Ditto.
8689 * c-typeprint.c (hp_som_som_object_present):
8690 (c_type_print_base): Ditto.
8691 * c-exp.y (hp_som_som_object_present): Ditto.
8692
8693 2004-04-08 Andrew Cagney <cagney@redhat.com>
8694
8695 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8696 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8697 (frame_unwind_find_by_frame): Re-implement the unwind code so
8698 that it can both prepend and append sniffers. Replace
8699 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8700 * tramp-frame.c (tramp_frame_append): Use
8701 frame_unwind_prepend_unwinder.
8702 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8703 frame_unwind_register_unwinder.
8704 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8705 tramp_frame_append.
8706 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8707 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8708 (mips_linux_init_abi): Update.
8709
8710 2004-04-08 Kevin Buettner <kevinb@redhat.com>
8711
8712 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8713 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8714 file support.
8715
8716 2004-04-07 Kevin Buettner <kevinb@redhat.com>
8717
8718 * ia64-tdep.c (elf.h): Don't include.
8719 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8720
8721 2004-04-07 Jason Molenda (jmolenda@apple.com)
8722
8723 * frame.h: Typeo corrections in comments.
8724
8725 2004-04-07 Jim Blandy <jimb@redhat.com>
8726
8727 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8728 %esp and %ebp
8729
8730 2004-04-07 Mark Kettenis <kettenis@gnu.org>
8731
8732 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8733 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8734 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8735 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8736 and solib-legacy.o.
8737 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8738 solib-svr4.o.
8739 * config/sparc/tm-sol2.h: Update copyright year. Include
8740 "solib.h".
8741
8742 * sparc-sol2-tdep.c: Update copyright year. Include
8743 "solib-svr4.h".
8744 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8745 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8746 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8747 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8748 dependencies.
8749
8750 2004-04-06 Andrew Cagney <cagney@redhat.com>
8751
8752 * infttrace.c: Include "infttrace.h".
8753 * infttrace.h: Include "target.h".
8754 * Makefile.in (infttrace_h): Update.
8755 (infttrace.o): Update.
8756
8757 2004-04-06 Andrew Cagney <cagney@redhat.com>
8758
8759 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8760 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8761 move extern declarations from here ...
8762 * infttrace.h: ... to here.
8763 * Makefile.in (hppah-nat.o): Update dependencies.
8764
8765 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8766 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8767 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8768 (hppa_breakpoint_from_pc): Delete.
8769
8770 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8771
8772 2004-04-05 Andrew Cagney <cagney@redhat.com>
8773
8774 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8775 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8776 <sys/file.h>.
8777
8778 2004-04-06 Randolph Chung <tausq@debian.org>
8779
8780 Committed by Andrew Cagney (mechanical change).
8781 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8782 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8783 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8784 child_enable_exception_callback, current_ex_event,
8785 null_symtab_and_line, child_get_current_exception_event,
8786 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8787 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8788 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8789 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8790 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8791 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8792 Move hpux-specific definitions ...
8793 * hppa-hpux-tdep.c: ... to here.
8794
8795 2004-04-05 Andrew Cagney <cagney@redhat.com>
8796
8797 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8798 skip_prologue_using_sal.
8799
8800 2004-04-05 Andrew Cagney <cagney@redhat.com>
8801
8802 * config/i386/tm-i386.h: Delete file.
8803 * config/i386/tm-vxworks.h: Update copyright, do not include
8804 "tm-i386.h".
8805 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8806 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8807 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8808 * config/i386/ncr3000.mt (TM_FILE): Delete.
8809 * config/i386/interix.mt (TM_FILE): Delete.
8810 * config/i386/i386v.mt (TM_FILE): Delete.
8811 * config/i386/i386nw.mt (TM_FILE): Delete.
8812 * config/i386/i386gnu.mt (TM_FILE): Delete.
8813 * config/i386/i386aout.mt (TM_FILE): Delete.
8814 * config/i386/embed.mt (TM_FILE): Delete.
8815
8816 2004-04-05 Kevin Buettner <kevinb@redhat.com>
8817
8818 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8819 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8820 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8821 (accg7_regnum): New constants.
8822 (last_spr_regnum, last_pseudo_regnum): Update.
8823 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8824 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8825 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8826 for accg registers.
8827 (frv_register_sim_regno): Update spr_map[].
8828
8829 2004-04-04 Andrew Cagney <cagney@redhat.com>
8830
8831 * config/mips/xm-riscos.h: Delete.
8832 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8833 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8834 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8835 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8836 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8837 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8838 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8839 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8840 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8841 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8842 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8843 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8844 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8845 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8846 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8847 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8848 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8849 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8850 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8851 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8852 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8853 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8854 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8855 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8856 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8857 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8858
8859 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8860 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8861 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8862 * configure.host: Remove m680[01]0-sun-sunos3*,
8863 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8864 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8865 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8866 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8867 mips-*-riscos*.
8868 * NEWS: Mention removed systems.
8869
8870 2004-04-04 Andrew Cagney <cagney@redhat.com>
8871
8872 GDB 6.1 release created from 6.1 branch.
8873
8874 2004-04-04 Andrew Cagney <cagney@redhat.com>
8875
8876 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8877 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8878 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8879
8880 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8881 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8882 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8883
8884 2004-04-03 Jim Blandy <jimb@redhat.com>
8885
8886 * MAINTAINERS: Chris Faylor has changed employers; add him to
8887 "paper trail" section, and update his E-mail address.
8888
8889 2004-04-03 Andrew Cagney <cagney@redhat.com>
8890
8891 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8892 generic dummy frames.
8893 * dummy-frame.c: Update copyright.
8894 (dummy_frame_sniffer): Delete check for generic dummy frames.
8895
8896 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8897 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8898 (REG_PARM_STACK_SPACE): Delete.
8899 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8900 Inline reference to REG_PARM_STACK_SPACE.
8901
8902 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8903 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8904 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8905 (FRAME_BASE_BEFORE_SIGTRAMP)
8906 (hppa32_hpux_frame_base_before_sigtramp)
8907 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8908 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8909 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8910 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8911 (FRAME_BASE_BEFORE_SIGTRAMP)
8912 (hppa64_hpux_frame_base_before_sigtramp)
8913 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8914
8915 2004-04-03 Andrew Cagney <cagney@redhat.com>
8916
8917 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8918
8919 2004-04-02 Andrew Cagney <cagney@redhat.com>
8920
8921 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8922 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8923 * dummy-frame.h: Delete out-of-date comments.
8924 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8925 * gdbarch.h, gdbarch.c: Re-generate.
8926
8927 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8928
8929 Committed by Andrew Cagney <cagney@redhat.com>.
8930 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8931 into account an instruction saving a register if we have already
8932 seen an earlier instruction saving that same register.
8933
8934 2004-04-02 Andrew Cagney <cagney@redhat.com>
8935
8936 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8937 * gdbarch.h, gdbarch.c: Re-generate.
8938 * frame.c (legacy_get_prev_frame): Delete references to
8939 DEPRECATED_INIT_FRAME_PC_FIRST.
8940
8941 * infrun.c (pc_in_sigtramp): Delete function.
8942 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8943 get_frame_type.
8944
8945 2004-04-02 Andrew Cagney <cagney@redhat.com>
8946
8947 * infrun.c (handle_step_into_function): Delete code conditional on
8948 legacy_frame_p.
8949 (handle_inferior_event, step_over_function): Ditto.
8950
8951 2004-04-02 Andrew Cagney <cagney@redhat.com>
8952
8953 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8954 "previous frame inner to this frame" test.
8955
8956 2004-04-02 Andrew Cagney <cagney@redhat.com>
8957
8958 * frame.c (safe_frame_unwind_memory): New function.
8959 * frame.h (safe_frame_unwind_memory): Declare. Update description
8960 of /safe_/ methods.
8961 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8962 "next_frame". Use safe_frame_unwind_memory.
8963 (tramp_frame_sniffer): Update call to tramp_frame_start.
8964
8965 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8966
8967 * dwarf2read.c (dwarf2_objfile_data_key): New.
8968 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8969 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8970 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8971 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8972 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8973 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8974 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8975 Remove variables.
8976 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8977 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8978 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8979 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8980 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8981 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8982 Remove macros.
8983 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8984 data.
8985 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8986 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8987 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8988 (read_partial_die, read_full_die, read_indirect_string)
8989 (dwarf_decode_line_header, dwarf_decode_macros)
8990 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8991 Update uses of removed variables.
8992 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8993 of removed macros.
8994 (_initialize_dwarf2_read): New function.
8995 * symfile.h (dwarf2_has_info): Update prototype.
8996 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8997 * elfread.c (elf_symfile_read): Likewise.
8998
8999 2004-04-01 Jim Blandy <jimb@redhat.com>
9000
9001 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9002 function for register numbers on all the rs6000-derived targets.
9003 (rs6000_gdbarch_init): Don't register a separate
9004 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9005 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9006 variants.
9007
9008 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9009 numbering.
9010
9011 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9012
9013 * valarith.c: Update copyright notice.
9014 (value_add): Handle range types.
9015 (value_sub): Ditto.
9016 (value_equal): Ditto.
9017 (value_less): Ditto.
9018 (value_neg): Ditto.
9019 (value_complement): Ditto.
9020 (value_binop): Simplify slightly by using is_integral_type and
9021 eliminiating unnecessary COERCE_ENUMs.
9022
9023 2004-03-31 Andrew Cagney <cagney@redhat.com>
9024
9025 * frame.h (frame_unwind_id): Declare.
9026 * frame.c (frame_unwind_id): New function.
9027 (get_prev_frame_1): New function.
9028 (frame_debug_got_null_frame): New function.
9029 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9030 code proper to prev_frame, update description.
9031 * infrun.c (step_over_function): Use frame_unwind_id.
9032
9033 2004-04-31 J. Brobecker <brobecker@gnat.com>
9034
9035 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9036 (hppa64_push_dummy_call): Likewise.
9037
9038 2004-03-30 Jim Blandy <jimb@redhat.com>
9039
9040 From Ulrich Weigand:
9041 * utils.c (query): Do not use a va_list variable multiple times.
9042
9043 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9044
9045 * Makefile.in (linux_nat_h): Update dependencies.
9046 * configure.in: Check for <gnu/libc-version.h>.
9047 * configure: Regenerate.
9048 * config.in: Regenerate.
9049 * linux-nat.h: Include "target.h". Add waitstatus field to
9050 struct lwp_info.
9051 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9052 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9053 to.
9054 (lin_lwp_handle_extended): New function. Handle clone events.
9055 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9056 thread exit events.
9057 (child_wait): Handle clone events.
9058 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9059 * linux-nat.c (linux_enable_event_reporting): Turn on
9060 PTRACE_O_TRACECLONE.
9061 (linux_handle_extended_wait): Handle clone events.
9062 * thread-db.c: Include <gnu/libc-version.h>.
9063 (struct private_thread_info): Add dying flag.
9064 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9065 higher.
9066 (attach_thread): Update comments. Handle dying threads.
9067 (detach_thread): Set the dying flag.
9068 (check_event): Always call attach_thread.
9069
9070 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9071
9072 * mips-tdep.c (mips_pdr_data): New.
9073 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9074 (_initialize_mips_tdep): Initialize mips_pdr_data.
9075
9076 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9077
9078 * minsyms.c (install_minimal_symbols): Move dropping leading
9079 char from linkage name from here...
9080 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9081 test for "__gnu_compiled*" symbols.
9082
9083 2004-03-28 Jim Blandy <jimb@redhat.com>
9084
9085 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9086 registers to temp register r0 and byte stores as prologue
9087 instructions.
9088
9089 2004-03-28 Andrew Cagney <cagney@redhat.com>
9090
9091 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9092 arm*-*-*.
9093
9094 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9095
9096 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9097 and switch the layout to force a display of register window.
9098
9099 2004-02-26 J. Brobecker <brobecker@gnat.com>
9100
9101 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9102 of the INTEGER class.
9103
9104 2004-03-26 Jim Blandy <jimb@redhat.com>
9105
9106 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9107 bytes long on PPC GNU/Linux.
9108
9109 2004-03-26 David Carlton <carlton@kealia.com>
9110
9111 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9112
9113 2004-03-25 Andrew Cagney <cagney@redhat.com>
9114
9115 * PROBLEMS: Add general section titles, remove references to
9116 specific releases.
9117
9118 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9119
9120 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9121 INT_REGISTER_SIZE.
9122 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9123 FP_REGISTER_VIRTUAL_SIZE.
9124 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9125 of DEPRECATED_REGISTER_RAW_SIZE.
9126 (arm_register_type): Add gdbarch argument.
9127 (arm_register_raw_size, arm_register_virtual_size): Delete.
9128 (arm_register_byte, arm_extract_return_value)
9129 (arm_store_return_value, arm_get_longjmp_target): Update references
9130 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9131 (arm_gdbarch_init): Likewise. Don't set
9132 deprecated_register_raw_size, deprecated_register_virtual_size,
9133 deprecated_max_register_raw_size,
9134 deprecated_max_register_virtual_size, or
9135 deprecated_max_register_virtual_type. Do set register_type.
9136 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9137 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9138 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9139 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9140 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9141 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9142 INT_REGISTER_SIZE.
9143 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9144 (remote_rdp_store_register): Likewise.
9145
9146 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9147
9148 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9149 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9150 to after osabi initialization.
9151 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9152 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9153 functions.
9154 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9155 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9156 variables.
9157 (mips_linux_init_abi): Append signal trampoline unwinders.
9158
9159 2004-03-24 Andrew Cagney <cagney@redhat.com>
9160
9161 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9162 * tramp-frame.c: Include "gdb_assert.h".
9163 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9164 correct sizeof.
9165 (tramp_frame_append): Validate the tramp frame's instructions.
9166 * Makefile.in (tramp-frame.o): Update dependencies.
9167
9168 2004-03-23 Andrew Cagney <cagney@redhat.com>
9169
9170 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9171
9172 2004-03-23 Andrew Cagney <cagney@redhat.com>
9173
9174 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9175 Nasser as past testsuite/lib/ (and other) maintainers.
9176
9177 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9178
9179 * infcmd.c (attach_command): Reread symbols if we already have
9180 an exec file.
9181
9182 2004-03-23 Andrew Cagney <cagney@redhat.com>
9183
9184 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9185
9186 2004-03-23 Andrew Cagney <cagney@redhat.com>
9187
9188 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9189 * gdbarch.h, gdbarch.c: Re-generate.
9190 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9191 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9192 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9193 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9194 (DEPRECATED_SIGTRAMP_START): Update.
9195 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9196 (DEPRECATED_SIGTRAMP_START): Update.
9197 * blockframe.c (find_pc_sect_partial_function): Update.
9198 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9199
9200 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9201
9202 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9203 if necessary.
9204
9205 2004-03-23 Andrew Cagney <cagney@redhat.com>
9206
9207 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9208 predicate, deprecate.
9209 * gdbarch.h, gdbarch.c: Re-generate.
9210 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9211 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9212 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9213 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9214 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9215 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9216 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9217 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9218 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9219 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9220 * blockframe.c (find_pc_partial_function): Update.
9221 * breakpoint.c (bpstat_what): Update.
9222 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9223 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9224 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9225 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9226 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9227 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9228 * i386-nto-tdep.c (i386nto_init_abi): Update.
9229 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9230 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9231 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9232 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9233 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9234 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9235 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9236 * infrun.c (pc_in_sigtramp): Update.
9237 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9238 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9239 * mips-tdep.c (mips_gdbarch_init): Update.
9240 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9241 * ppc-linux-tdep.c: Update comment.
9242 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9243 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9244 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9245 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9246 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9247 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9248 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9249 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9250 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9251 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9252
9253 2004-03-23 Andrew Cagney <cagney@redhat.com>
9254
9255 * tramp-frame.h, tramp-frame.h: New files.
9256 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9257 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9258
9259 * Makefile.in: Update all dependencies.
9260
9261 2004-03-23 Andrew Cagney <cagney@redhat.com>
9262
9263 * Makefile.in (trad_frame_h): Add $(frame_h).
9264 * trad-frame.h: Update copyright. Include "frame.h".
9265 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9266 (trad_frame_set_id, trad_frame_get_id): Declare.
9267 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9268 * trad-frame.c: Update copyright.
9269 (struct trad_frame_cache): Define.
9270 (trad_frame_cache_zalloc): New function.
9271 (trad_frame_set_id, trad_frame_get_id): New functions.
9272 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9273
9274 2004-03-22 Andrew Cagney <cagney@redhat.com>
9275
9276 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9277 s390_pltstub_unwind_cache.
9278 (s390_stub_frame_unwind_cache): Rename
9279 s390_pltstub_frame_unwind_cache.
9280 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9281 (s390_stub_frame_prev_register): Rename
9282 s390_pltstub_frame_prev_register.
9283 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9284 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9285
9286 From Ulrich Weigand:
9287 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9288 pointer calls like PLT calls.
9289
9290 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9291
9292 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9293 PC rather than the partial function start address. Use the start
9294 address to sanity check the found PDR.
9295
9296 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9297
9298 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9299 linux_handle_extended_wait.
9300
9301 2004-03-22 Andrew Cagney <cagney@redhat.com>
9302
9303 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9304 function.
9305
9306 * frame.h (generic_pop_current_frame): Delete declaration.
9307 (deprecate_pop_dummy_frame): Deprecate
9308 generic_pop_dummy_frame.
9309 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9310 (generic_pop_current_frame): Delete function.
9311 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9312 generic_pop_current_frame.
9313 * v850-tdep.c (v850_pop_frame): Update.
9314 * mcore-tdep.c (mcore_pop_frame): Update.
9315 * sh64-tdep.c (sh64_pop_frame): Update.
9316 * h8300-tdep.c (h8300_pop_frame): Update.
9317
9318 2004-03-22 Andrew Cagney <cagney@redhat.com>
9319
9320 * frame.h (deprecated_pc_in_call_dummy): Rename
9321 generic_pc_in_call_dummy.
9322 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9323 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9324 generic_pc_in_call_dummy.
9325 (pc_in_dummy_frame): Make static.
9326 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9327 * gdbarch.h, gdbarch.c: Re-generate.
9328 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9329 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9330 (legacy_get_prev_frame): Ditto.
9331 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9332 comment.
9333
9334 2004-03-21 Andrew Cagney <cagney@redhat.com>
9335
9336 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9337 declaration and out-of-date comment.
9338 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9339 Delete function.
9340 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9341 deprecated_pc_in_call_dummy.
9342
9343 * infrun.c (handle_inferior_event): For non legacy frames, use the
9344 frame ID and frame type to identify a signal trampoline. Update
9345 comments.
9346
9347 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9348
9349 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9350 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9351
9352 2004-03-21 Andrew Cagney <cagney@redhat.com>
9353
9354 * frame-unwind.h: Update copyright.
9355 (struct frame_data): Add opaque declaration.
9356 (frame_sniffer_ftype): Declare.
9357 (struct frame_unwind): Add "unwind_data" and "sniffer".
9358 (frame_unwind_register_unwinder): Declare.
9359 (frame_unwind_find_by_frame): Add parameter "this_cache".
9360 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9361 (legacy_get_prev_frame, legacy_get_prev_frame)
9362 (get_frame_type): Pass the prologue_cache to
9363 frame_unwind_find_by_frame.
9364 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9365 "unwinder".
9366 (frame_unwind_register_unwinder): New function.
9367 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9368
9369 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9370
9371 * bcache.c (print_percentage): Use floating point to avoid
9372 incorrect results when portion*100 overflows.
9373
9374 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9375
9376 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9377 (ppc_linux_init_extra_frame_info)
9378 (ppc_linux_frameless_function_invocation)
9379 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9380 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9381 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9382 (rs6000_frame_chain): Delete declarations.
9383 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9384 (ppc_linux_init_extra_frame_info)
9385 (ppc_linux_frameless_function_invocation)
9386 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9387 (ppc_linux_init_abi): Remove registration of above deleted functions.
9388 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9389 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9390 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9391 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9392 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9393 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9394 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9395 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9396 frame management for all OSABIs.
9397
9398 2004-03-19 Andrew Cagney <cagney@redhat.com>
9399
9400 Committed by Kevin Buettner <kevinb@redhat.com>.
9401
9402 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9403 Update copyright.
9404 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9405 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9406 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9407 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9408 unwinders. #ifdef legacy frame code.
9409 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9410 "frame-base.h".
9411 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9412 (struct rs6000_frame_cache, rs6000_frame_cache)
9413 (rs6000_frame_this_id, rs6000_frame_prev_register)
9414 (rs6000_frame_sniffer, rs6000_frame_unwind)
9415 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9416 (rs6000_frame_base): Implement a traditional frame unwinder.
9417 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9418 frame unwinder.
9419
9420 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9421
9422 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9423 breakpoint address for watchpoints or the catch eventpoints.
9424 Add new paramter ``bptype''. Adjust all callers.
9425
9426 2004-03-19 Andrew Cagney <cagney@redhat.com>
9427
9428 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9429
9430 * PROBLEMS: Delete note that ARM does not use frame code, problem
9431 fixed.
9432
9433 2004-03-18 Andrew Cagney <cagney@redhat.com>
9434
9435 * stack.c (return_command): Delete code wrapped in #ifdef
9436 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9437
9438 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9439
9440 2004-03-18 Andrew Cagney <cagney@redhat.com>
9441
9442 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9443 DEPRECATED_IN_SIGTRAMP.
9444 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9445 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9446 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9447 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9448 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9449 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9450 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9451 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9452 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9453 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9454
9455 2004-03-18 Andrew Cagney <cagney@redhat.com>
9456
9457 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9458 (struct frame_base_table_entry): Define.
9459 (struct frame_base_table): Re-implement as a linked list.
9460 (frame_base_init): Re-implement.
9461 (frame_base_table): Delete function.
9462 (append_predicate): Delete function.
9463 (frame_base_append_sniffer): Update.
9464 (frame_base_set_default): Update.
9465 (frame_base_find_by_frame): Update.
9466 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9467 * Makefile.in (frame-base.o): Update dependencies.
9468
9469 2004-03-17 Andrew Cagney <cagney@redhat.com>
9470
9471 * frame.c (legacy_get_prev_frame): Pass correct frame to
9472 frame_unwind_find_by_frame.
9473
9474 2004-03-17 David Carlton <carlton@kealia.com>
9475
9476 * NEWS: Mention C++ nested types and namespaces
9477
9478 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9479
9480 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9481 and "Regressions since gdb 5.3.". Add known regressions since
9482 gdb 6.0.
9483
9484 2004-03-16 David Carlton <carlton@kealia.com>
9485
9486 * dwarf2read.c (process_structure_scope): Process children even
9487 when we're a declaration.
9488
9489 2004-03-16 Andrew Cagney <cagney@redhat.com>
9490
9491 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9492 * blockframe.c (find_pc_partial_function)
9493 (find_pc_sect_partial_function): Merge into a single
9494 find_pc_partial_function.
9495
9496 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9497
9498 * i386bsd-nat.c: s/regno/regnum/g.
9499 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9500 FP0_REGNUM.
9501 (store_inferior_registers): Likewise.
9502
9503 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9504
9505 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9506 of i387_fill_fsave.
9507 (store_inferior_registers): Call i387_collect_fsave and
9508 i387_collect_fxsave instead of i387_fill_fsave and
9509 i387_fill_fxsave.
9510
9511 2004-03-15 Andrew Cagney <cagney@redhat.com>
9512
9513 * Makefile.in (frame-unwind.o): Update dependencies.
9514 * frame-unwind.c: Include "gdb_obstack.h".
9515 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9516 parameter.
9517 (append_predicate): Delete function.
9518 (struct frame_unwind_table_entry): New structure.
9519 (struct frame_unwind_table): Replace "sniffer" with "head" and
9520 "tail".
9521 (frame_unwind_append_sniffer): Update.
9522 (frame_unwind_find_by_frame): Update.
9523 (_initialize_frame_unwind): Registe frame_unwind_init using
9524 gdbarch_data_register_pre_init.
9525
9526 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9527
9528 * i386bsd-nat.c: Update copyright year.
9529 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9530 define unconditionally.
9531
9532 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9533
9534 * i387-tdep.h (i387_collect_fsave): New prototype.
9535 * i387-tdep.c (i387_collect_fsave): New function containing most
9536 of the code from i387_fill_fsave.
9537 (i387_fill_fsave): Call i387_collect_fsave.
9538
9539 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9540
9541 * i386-linux-tdep.c: Update copyright year.
9542 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9543 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9544 svr4_ilp32_link_map_offsets instead of
9545 i386_linux_svr4_fetch_link_map_offsets.
9546
9547 2004-03-15 David Carlton <carlton@kealia.com>
9548
9549 Fix for PR c++/1553:
9550 * dwarf2read.c (read_structure_type): Determine type name by
9551 calling determine_class_name.
9552 (determine_class_name): New.
9553 (determine_prefix): Look at TYPE_TAG_NAME and call
9554 determine_class_name when appropriate.
9555 (determine_prefix_aux, class_name): Delete.
9556 (read_namespace): Set die->type.
9557
9558 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9559
9560 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9561 unused macro definition. The definition in target.h (or perhaps
9562 elsewhere) takes precedence.
9563
9564 2004-03-15 Andrew Cagney <cagney@redhat.com>
9565
9566 * ppc-tdep.h: Update copyright.
9567 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9568 function signatures to match "regsets.h".
9569 * ppc-linux-tdep.c: Include "regset.h".
9570 (ELF_GREGSET_SIZE): Delete.
9571 (right_supply_register): New function.
9572 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9573 using right_supply_register.
9574 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9575 functions.
9576 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9577 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9578 (_initialize_ppc_linux_tdep): Do not register
9579 ppc_linux_regset_core_fns.
9580 (ppc_linux_regset_from_core_section): Replace
9581 fetch_core_registers.
9582 (ppc_linux_regset_core_fns): Delete.
9583 * ppc-linux-nat.c: (right_fill_reg): New function.
9584 (supply_gregset): Update call to ppc_linux_supply_gregset.
9585 (fill_gregset): Clear the register set, use right_fill_reg.
9586 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9587 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9588
9589 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9590 unsigned.
9591
9592 2004-03-15 Andrew Cagney <cagney@redhat.com>
9593
9594 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9595 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9596 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9597 and register_gdbarch_data.
9598 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9599 (struct gdbarch_data): Replace "init" by "pre_init" and
9600 "post_init".
9601 * gdbarch.h, gdbarch.c: Re-generate.
9602 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9603 with"obstack", use OBSTACK_ZALLOC.
9604 (dwarf2_frame_ops): Delete.
9605 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9606 (dwarf2_frame_init_reg): Use gdbarch_data.
9607 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
9608 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
9609 (_initialize_svr4_solib): Update.
9610 * user-regs.c (_initialize_user_regs): Update.
9611 * reggroups.c (_initialize_reggroup): Update.
9612 * regcache.c (_initialize_regcache): Update.
9613 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9614 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9615 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9616 * frame-unwind.c (_initialize_frame_unwind): Update.
9617 * frame-base.c (_initialize_frame_base): Update.
9618 * user-regs.c (user_reg_add): Update.
9619 * reggroups.c (reggroup_add): Update.
9620 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9621 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9622 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9623 * frame-base.c (frame_base_table): Update.
9624 * remote.c (_initialize_remote): Update.
9625 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9626
9627 2004-03-15 Andrew Cagney <cagney@redhat.com>
9628
9629 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9630
9631 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9632
9633 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9634 * frv-linux-tdep.c: New file.
9635 * frv-tdep.c (struct gdbarch_tdep): Add new field
9636 ``sigcontext_reg_addr''.
9637 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9638 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9639 (frv_sigramp_frame_sniffer): New functions.
9640 (frv_sigtramp_frame_unwind): New static global.
9641 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9642 sniffers.
9643 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9644 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9645
9646 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9647
9648 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9649 but not via a call to error(), when unable to read memory.
9650
9651 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9652
9653 * frv-tdep.c (frv_call_dummy_words): Delete.
9654 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9655
9656 2004-03-15 Andrew Cagney <cagney@redhat.com>
9657
9658 * infrun.c (handle_step_into_function, step_over_function): Only
9659 update and use STEP_FRAME_ID when the system is using legacy
9660 frames. Update comments.
9661
9662 2004-03-14 Mark Kettenis <kettenis@gnu.org>
9663
9664 * amd64-linux-tdep.h: Remove file.
9665 * amd64-linux-tdep.c: Don't include "inferior.h" and
9666 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9667 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9668 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9669 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9670 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9671 macros.
9672 (user_to_gdb_regmap): Remove variable.
9673 (amd64_linux_gregset_reg_offset): New variable.
9674 (amd64_core_fns): Remove variable.
9675 (fetch_core_registers): Remove function.
9676 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9677 functions.
9678 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9679 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9680 * Makefile.in (amd64_linux_tdep_h): Remove.
9681 (amd64-linux-nat.o): Update dependencies.
9682 (amd64-linux-tdep.o): Update dependencies.
9683
9684 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9685 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9686 functions.
9687 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9688
9689 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9690 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9691
9692 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
9693
9694 * dwarf2read.c (read_structure_type): Rename from
9695 read_structure_scope. Don't create a symbol or call process_die.
9696 Return immediately if die->type is set. Call read_type_die before
9697 dwarf2_add_member_fn.
9698 (process_structure_scope): New function.
9699 (read_enumeration_type, process_enumeration_scope): New functions,
9700 broken out from read_enumeration. Don't create the enumeration
9701 type if it has already been created.
9702 (read_enumeration): Removed.
9703 (process_die): Call read_structure_type, process_structure_scope,
9704 read_enumeration_type, and process_enumeration_scope. Just call
9705 new_symbol for base and subrange types. Add a comment about other
9706 type dies.
9707 (read_type_die): Call read_enumeration_type.
9708 (add_partial_structure, new_symbol): Update comments.
9709
9710 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9711
9712 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9713
9714 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9715
9716 * tui/tui-win.h (tui_get_cmd_list): Declare.
9717 * tui/tui-win.c (tui_command): New function.
9718 (tui_get_cmd_list): New function.
9719 (_initialize_tui_win): Moved initialization of tui command in
9720 tui_get_cmd_list.
9721
9722 * tui/tui-data.c (init_content_element): Setup new data members.
9723 (init_win_info): Likewise.
9724 (free_content_elements): Free it.
9725 * tui/tui-data.h (struct tui_data_element): Store the register
9726 content to print.
9727 (struct tui_data_info): Keep the current register group.
9728
9729 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9730
9731 * tui/tui-regs.h (tui_show_registers): Update prototype.
9732 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9733 (tui_resize_all): No need to calculate anything for register window.
9734 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9735 (tui_set_register_element, tui_set_general_regs_content): Remove.
9736 (tui_set_special_regs_content): Remove.
9737 (tui_set_general_and_special_regs_content): Remove.
9738 (tui_set_float_regs_content): Remove.
9739 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9740 (tui_set_regs_content): Remove.
9741 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9742 (tui_v_show_registers_command_support): Remove.
9743 (tui_show_registers): Use a reggroup to specify the registers to show.
9744 (tui_show_register_group): New function.
9745 (tui_display_registers_from): Compute the layout of register window
9746 and refresh with new API; be sure to delete old register windows.
9747 (tui_check_register_values): Update to use tui_get_register and
9748 tui_display_data.
9749 (tui_display_register): Just refresh the register window part.
9750 (tui_register_format): Format registers and save in tui_data_element.
9751 (tui_get_register): New to combine tui_reg_value_has_changed and
9752 tui_get_register_raw_value; fix to use the new gdb API.
9753 (tui_show_float_command): Renamed tui_reg_float_command.
9754 (tui_show_general_command): Renamed tui_reg_general_command.
9755 (tui_show_special_command): Renamed tui_reg_system_command.
9756 (_initialize_tui_regs): Remove unused commands.
9757
9758 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9759
9760 * NEWS (New native configurations): Mention OpenBSD/amd64.
9761
9762 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9763 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9764 Remove defines.
9765 * config/i386/nm-fbsd64.h: Likewise.
9766 * config/i386/nm-obsd.h: Likewise.
9767 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9768 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9769
9770 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9771
9772 * frv-tdep.c (set_variant_scratch_registers): New function.
9773 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9774 New constants.
9775
9776 From Richard Sandiford <rsandifo@redhat.com>:
9777 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9778
9779 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9780
9781 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9782 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9783 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9784 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9785 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9786 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9787 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9788 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9789 definitions from frv-tdep.c to frv-tdep.h.
9790
9791 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9792
9793 Add shared library support for FR-V FDPIC ABI:
9794 * Makefile.in (solib-frv.o): Add dependencies.
9795 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9796 New functions.
9797 (frv_push_dummy_call): Add support for FDPIC ABI.
9798 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9799 for FDPIC ABI.
9800 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9801 (frv_fdpic_find_canonical_descriptor): Declare.
9802 * solib-frv.c: New file.
9803 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9804 * config/frv/tm-frv.h (solib.h): Include.
9805
9806 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9807
9808 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9809 (frv-tdep.o): Update dependencies.
9810 * frv-tdep.h: New file.
9811 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9812 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9813 constants.
9814 (struct gdbarch_tdep): Add new member ``frv_abi''.
9815 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9816 functions.
9817 (new_variant): Set ``frv_abi'' field.
9818 (gdb_arch_init): Detect FDPIC executables.
9819
9820 2004-03-12 Mark Kettenis <kettenis@gnu.org>
9821
9822 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9823 wrapper.
9824
9825 2004-03-11 Andrew Cagney <cagney@redhat.com>
9826
9827 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9828
9829 2004-03-11 Kevin Buettner <kevinb@redhat.com>
9830
9831 * solist.h (master_so_list): New function.
9832 * solib.c (master_so_list): Likewise.
9833 * solib-svr4.c (enable_break): Iterate over so_list entries
9834 obtained from master list instead of entries obtained directly
9835 via svr4_current_sos().
9836
9837 2004-03-10 Ben Elliston <bje@gnu.org>
9838
9839 * MAINTAINERS: Update my mail address.
9840
9841 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9842
9843 * remote-m32r-sdi.c: Support hardware watchpoint.
9844
9845 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9846
9847 * user-regs.c: Update copyright years.
9848 (struct user_regs): Rename to gdb_user_regs.
9849 (append_user_reg, builtin_user_regs, user_regs_init)
9850 (user_reg_add, user_reg_map_name_to_regnum)
9851 (usernum_to_user_reg): Update.
9852
9853 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9854
9855 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9856 (skip_children): New functions.
9857 (locate_pdi_sibling): Call skip_children.
9858
9859 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9860
9861 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9862 * gdbtypes.c (check_typedef): Update comments.
9863
9864 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9865
9866 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9867 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9868 pointer. Update comment about comp_unit_head.
9869 (struct abbrev_info): Shorten two int flags.
9870 (dwarf_alloc_abbrev): Take a CU argument.
9871 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9872 each time through the loop. Update cleanup argument.
9873 (psymtab_to_symtab_1): Update cleanup call.
9874 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9875 abbrev_obstack.
9876 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9877 Just call obstack_free and clear the pointer.
9878
9879 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9880
9881 * infrun.c (handle_inferior_event): Remove short-circuit code for
9882 events in a different thread.
9883
9884 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9885
9886 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9887 print the whole transfer.
9888 (initialize_targets): Update description of "set debug target".
9889
9890 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9891
9892 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9893
9894 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9895
9896 * MAINTAINERS (write after approval): Add myself.
9897
9898 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9899
9900 * sh-tdep.c (sh_print_registers_info): Use for loop.
9901 Don't skip multiple registers when a float register is encountered.
9902
9903 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9904
9905 Fix PR tdep/1291.
9906 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9907 to official SH documentation.
9908
9909 2004-03-07 Andrew Cagney <cagney@redhat.com>
9910
9911 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9912 unused function.
9913
9914 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9915
9916 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9917 (arm_get_next_pc): Handle BX and BLX.
9918
9919 2004-03-07 Andrew Cagney <cagney@redhat.com>
9920
9921 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9922 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9923 HPPA_SP_REGNUM.
9924 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9925 (hppa_target_read_fp): Delete.
9926 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9927 register_virtual_size, max_register_raw_size,
9928 max_register_virtual_size, register_byte, register_size,
9929 target_read_fp, fp_regnum, and register_bytes. Set register_type
9930 instead of register_virtual_type.
9931 (hppa32_register_type, hppa64_register_type): Replace
9932 hppa32_register_virtual_type and hppa64_register_virtual_type.
9933 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9934 (HPPA_FP_REGNUM): Define.
9935
9936 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9937
9938 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9939 (pa_do_registers_info): Delete.
9940 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9941 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9942 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9943
9944 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9945 GDB_TARGET_IS_HPPA code.
9946 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9947 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9948 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9949 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9950 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9951 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9952 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9953 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9954 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9955 (hppa_frameless_function_invocation, hppa64_store_return_value)
9956 (hppa_store_struct_return, hppa64_extract_return_value)
9957 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9958 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9959 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9960 (find_proc_framesize, deposit_21, restore_pc_queue)
9961 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9962 (rp_saved, pc_in_linker_stub): Delete.
9963
9964 Unconditionally enable 64-bit frame and ABI code.
9965 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9966 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9967 push_dummy_frame, fix_call_dummy, push_arguments,
9968 call_dummy_location, extract_return_value, use_struct_convention,
9969 store_return_value, store_struct_return, saved_pc_after_call,
9970 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9971 frame_chain, frame_chain_valid, frameless_function_invocation,
9972 frame_saved_pc, and pop_frame.
9973
9974 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9975 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9976 (hppa_gdbarch_init): Do not set PC_REGNUM.
9977
9978 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9979
9980 * config/alpha/tm-fbsd.h: Remove file.
9981 * config/alpha/fbsd.mt: Tweak comment.
9982 (TM_FILE): Set to tm-alpha.h.
9983
9984 2004-03-05 Andrew Cagney <cagney@redhat.com>
9985
9986 * infrun.c (step_over_function): When non-legacy code, and no
9987 step_frame_id, use the unwinder to get the caller's frame ID.
9988
9989 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9990
9991 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9992 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9993 bfd_arch_unknown. Adjust comment.
9994
9995 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9996 * i386obsd-tdep.c: Correct spelling in comment.
9997 * i386nbsd-tdep.c: Correct spelling in comment.
9998 * sparc-tdep.c: Correct spelling in comments.
9999
10000 2004-03-05 David Carlton <carlton@kealia.com>
10001
10002 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10003 bug.
10004
10005 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10006
10007 * sparc-tdep.c: Fix typo in comment.
10008
10009 2004-03-04 J. Brobecker <brobecker@gnat.com>
10010
10011 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10012
10013 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10014
10015 * dwarf2read.c: Add comment describing memory lifetimes.
10016 (struct dwarf2_pinfo): Update comment.
10017 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10018 (read_enumeration, new_symbol): Don't use obsavestring.
10019
10020 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10021
10022 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10023 instead of amd64_fill_fxsave.
10024 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10025 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10026
10027 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10028 Reorganize code a bit.
10029
10030 2004-03-04 Orjan Friberg <orjanf@axis.com>
10031
10032 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10033 when the frame pointer is pushed. Don't set the frame pointer's
10034 address on the stack unless it's actually located there.
10035 Set the SRP's address on the stack correctly when the PC is still in
10036 the prologue.
10037 (cris_return_value): New function.
10038 (cris_gdbarch_init): Clear deprecated store_return_value,
10039 extract_return_value.
10040
10041 2004-03-02 Jim Blandy <jimb@redhat.com>
10042
10043 * stabsread.c (reg_value_complaint): The maximum register number
10044 is one less than the number of registers.
10045
10046 2004-03-02 Andrew Cagney <cagney@redhat.com>
10047
10048 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10049 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10050 trailing comma and redundant assignment of I386_ST0_REGNUM.
10051 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10052 32-bit segment registers.
10053
10054 2004-03-01 Andrew Cagney <cagney@redhat.com>
10055
10056 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10057 use frame_relative_level and get_next_frame.
10058
10059 2004-02-29 Andrew Cagney <cagney@redhat.com>
10060
10061 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10062 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10063 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10064 Delete macro.
10065
10066 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10067
10068 * inflow.c (terminal_inferior): Don't give up the terminal if we
10069 previously couldn't get the inferior's terminal state.
10070
10071 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10072
10073 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10074 PC_REGNUM.
10075
10076 2004-02-28 Andrew Cagney <cagney@redhat.com>
10077
10078 * NEWS: Refer to GDB 6.1.
10079 * README: Refer to GDB 6.1.
10080 * PROBLEMS: Refer to GDB 6.1.
10081
10082 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10083
10084 * thread-db.c (disable_thread_signals): Remove unused function.
10085
10086 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10087
10088 * amd64-nat.c: Include "gdb_string.h".
10089 (amd64_collect_native_gregset): Zero-extend the 32-bit
10090 general-purpose registers and %eip.
10091
10092 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10093 * amd64-tdep.c (amd64_collect_fxsave): New function.
10094 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10095
10096 * i387-tdep.h: Update copyright year.
10097 (i387_collect_fxsave): New prototype.
10098 * i387-tdep.c: Update copyright year.
10099 (i387_collect_fxsave): New function containing most of the code
10100 from i387_fill_fxsave.
10101 (i387_fill_fxsave): Call i387_collect_fxsave.
10102
10103 2004-02-28 Andrew Cagney <cagney@redhat.com>
10104
10105 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10106 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10107
10108 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10109
10110 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10111
10112 2004-02-28 Andrew Cagney <cagney@redhat.com>
10113
10114 * utils.c: Use "", instead of <>, to include readline.
10115 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10116 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10117 * source.c, solib.c, exec.c, event-top.c: Ditto.
10118 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10119 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10120 * Makefile.in: Update all dependencies.
10121 (readline_tilde_h, readline_history_h): Define.
10122 (readline_headers): Delete.
10123
10124 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10125
10126 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10127 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10128 "config/i386/tm-lx64.h".
10129
10130 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10131 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10132 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10133
10134 2004-02-28 Andrew Cagney <cagney@redhat.com>
10135
10136 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10137
10138 * breakpoint.c (_initialize_breakpoint): Use
10139 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10140 Add help to show command.
10141
10142 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10143
10144 * i386-nat.c: Reformat to be closer to coding standards.
10145 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10146 `retval'. Make variables `align' and `size' local to while-loop.
10147 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10148 (_initialize_i386_nat): New prototype.
10149
10150 * tui/tui.c: Include <readline/readline.h> instead of
10151 "readline/readline.h". Include it after <term.h> and
10152 "gdb_curses.h".
10153
10154 2004-02-27 Andrew Cagney <cagney@redhat.com>
10155
10156 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10157 the new frame unwind code.
10158 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10159 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10160 PCOQ_HEAD_REGNUM.
10161
10162 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10163 "return_value" and "push_dummy_call".
10164 (hppa32_use_struct_convention): Delete unused function.
10165 (hppa32_store_return_value): Delete unused function.
10166 (hppa32_extract_return_value): Delete unused function.
10167 (hppa32_stack_align): Delete function.
10168
10169 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10170
10171 * coffread.c (enter_linenos): Don't let rawptr reference memory
10172 outside linetab[]'s limits.
10173
10174 2004-02-27 Andrew Cagney <cagney@redhat.com>
10175
10176 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10177 inferior stack space - the stack needs to grow upwards.
10178 (hppa32_frame_align): New function.
10179 (hppa64_frame_align): Replace hppa_frame_align.
10180 (hppa_gdbarch_init): Update.
10181
10182 2004-02-26 Orjan Friberg <orjanf@axis.com>
10183
10184 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10185 (dwarf2-frame.h): Include.
10186 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10187 Remove static variables related to ABI setting.
10188 (struct gdbarch_tdep): Remove cris_abi member.
10189 (struct frame_extra_info): Remove.
10190 (cris_unwind_cache, stack_item): New structs.
10191 (cris_frame_unwind, cris_frame_base): New variables.
10192 (push_stack_item, pop_stack_item)
10193 (cris_frame_unwind_cache, cris_frame_this_id)
10194 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10195 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10196 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10197 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10198 (cris_reg_struct_has_addr): New functions.
10199 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10200 (cris_frame_saved_pc, cris_saved_pc_after_call,
10201 (cris_store_struct_return, cris_frameless_function_invocation)
10202 (cris_pop_frame, cris_skip_prologue_main)
10203 (cris_abi_original_store_return_value)
10204 (cris_abi_v2_store_return_value)
10205 (cris_abi_original_extract_return_value)
10206 (cris_abi_v2_extract_return_value)
10207 (cris_abi_original_reg_struct_has_addr)
10208 (cris_abi_v2_reg_struct_has_addr)
10209 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10210 (cris_push_return_address, cris_abi_update): Remove.
10211 (_initialize_cris_tdep): Remove ABI command.
10212 (cris_dump_tdep): Ditto.
10213 (cris_gdbarch_init): Remove ABI command.
10214 Set store_return_value, extract_return_value, push_dummy_code,
10215 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10216 frame_unwind_append_sniffer, frame_base_set_default.
10217 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10218 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10219 sizeof_call_dummy_words, get_saved_register, push_return_address,
10220 pop_frame, store_struct_return, frame_init_saved_regs,
10221 init_extra_frame_info, frameless_function_invocation, frame_chain,
10222 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10223 dummy_write_sp.
10224
10225 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10226
10227 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10228 * valprint.c (print_hex_chars): Change from static to external.
10229 (print_char_chars): New function.
10230 * printcmd.c (print_scalar_formatted): For integer and enum types
10231 that are longer than LONGEST, perform processing via appropriate
10232 print_*_chars routines.
10233
10234 2004-02-26 Andrew Cagney <cagney@redhat.com>
10235
10236 * Makefile.in: Update dependencies.
10237 Changes from Ulrich Weigand,
10238 * s390-tdep.c: Include "dwarf2-frame.h".
10239 (s390_dwarf2_frame_init_reg): New function.
10240 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10241 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10242
10243 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10244
10245 * breakpoint.c (pending_break_support): New setting variable.
10246 (break_command_1): Account for pending_break_support setting
10247 when creating pending breakpoints.
10248 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10249 (_initialize_breakpoint): Add "set breakpoint pending" and
10250 "show breakpoint pending" commands.
10251
10252 2004-02-26 Andrew Cagney <cagney@redhat.com>
10253
10254 Fix PR i18n/1570.
10255 * charset.c (backslashable, backslashed, represented): Remove 'e'
10256 from list of escaped characters, not part of ISO-C.
10257
10258 2004-02-25 J. Brobecker <brobecker@gnat.com>
10259
10260 From Peter Schauer <schauer@pdf.de>:
10261 * tui/tui.c: Move system header includes after local includes.
10262 Fixes a build failure on solaris systems.
10263
10264 2004-02-25 J. Brobecker <brobecker@gnat.com>
10265
10266 * configure.in: Refine the previous change.
10267 * configure: Regenerate.
10268
10269 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10270
10271 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10272 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10273 "amd64-tdep.h" instead of "x86-64-tdep.h".
10274 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10275 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10276 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10277 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10278 and "x86-64-tdep.c".
10279 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10280 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10281 and "x86-64-tdep.c".
10282 * amd64bsd-nat.c: Update copyright year.
10283 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10284 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10285 "x86-64-tdep.h".
10286 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10287 "x86-64-tdep.h".
10288 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10289 "x86-64-tdep.h".
10290 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10291 "x86-64-tdep.h".
10292 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10293 "x86-64-tdep.h".
10294 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10295 "x86-64-tdep.h".
10296 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10297 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10298 * Makefile.in (amd64_linux_tdep_h): Renamed from
10299 x86_64_linux_tdep_h.
10300 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10301 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10302 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10303 (amd64obsd-tdep.o): Update dependencies.
10304 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10305 dependencies.
10306 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10307 dependencies.
10308 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10309 amd64-linux-nat.c amd64-linux-tdep.c.
10310 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10311 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10312 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10313 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10314 amd64-tdep.o and amd64-linux-tdep.o.
10315 (TM_FILE): Set to tm-linux64.h.
10316 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10317 (NAT_FILE): Set to nm-linux64.h.
10318 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10319 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10320 amd64-tdep.o.
10321 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10322 amd64-tdep.o.
10323 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10324 amd64-tdep.o.
10325
10326 2004-02-25 Roland McGrath <roland@redhat.com>
10327
10328 * remote.c (remote_protocol_qPart_auxv): New variable.
10329 (init_all_packet_configs): Initialize it.
10330 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10331 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10332 (show_remote_cmd): Call it.
10333 (_initialize_remote): Initialize commands.
10334 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10335 service TARGET_OBJECT_AUXV requests.
10336
10337 2004-02-25 J. Brobecker <brobecker@gnat.com>
10338
10339 * configure.in: Make sure that the wborder function is available.
10340 Otherwise, search for it in the cur_colr library.
10341 * configure: Regenerate.
10342
10343 2004-02-25 Andrew Cagney <cagney@redhat.com>
10344
10345 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10346
10347 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10348
10349 * config/i386/tm-x86-64linux.h: Tweak comments.
10350
10351 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10352
10353 * MAINTAINERS: Add self to write-after-approval list.
10354
10355 2004-02-25 Andrew Cagney <cagney@redhat.com>
10356
10357 PR cli/1566. Problem found, and fix suggested by David Allan.
10358 * cli/cli-script.c (execute_control_command): Unconditionally
10359 install a cleanup. Default "ret" to "invalid_control". Use
10360 "break" instead of "return" to escape from the switch.
10361
10362 2004-02-24 J. Brobecker <brobecker@gnat.com>
10363
10364 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10365 with the lines macro defined in term.h on AiX.
10366 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10367 a collision with the label_width macro defined in term.h on AiX.
10368
10369 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10370
10371 Committed by Kevin Buettner <kevinb@redhat.com>.
10372
10373 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10374 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10375 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10376 instead of ia64_write_pc().
10377 * ia64-linux-tdep.c (regcache.h): Include.
10378 (ia64_linux_write_pc): New function.
10379
10380 2004-02-23 Roland McGrath <roland@redhat.com>
10381
10382 * auxv.c (info_auxv_command): Fix typos in error messages.
10383
10384 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10385
10386 * x86-64-tdep.h: Tweak comment.
10387 (enum amd64_regnum): New.
10388 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10389 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10390 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10391 (X86_64_XMM1_REGNUM): Removed.
10392 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10393 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10394 prototypes for renamed functions.
10395 * x86-64-tdep.c: Fix typo.
10396 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10397 register numbers.
10398 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10399 Use constants from `enum amd64_regnum' for register numbers.
10400 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10401 (amd64_analyze_prologue, amd64_frame_cache,
10402 amd64_sigtramp_frame_cache): Use constants from `enum
10403 amd64_regnum' for register numbers.
10404 (amd64_supply_fpregset): Adjust for renamed functions.
10405 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10406 `enum amd64_regnum' for register numbers.
10407 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10408 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10409 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10410 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10411 (amd64_linux_fill_gregset): Adjust for renamed macros.
10412 (fetch_core_registers): Adjust for renamed functions.
10413 (amd64_linux_init_abi): Adjust for renamed functions.
10414 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10415 renamed functions.
10416 * amd64-nat.c: Adjust for renamed macros.
10417 * amd64bsd-nat.c (fetch_inferior_registers)
10418 (store_inferior_registers): Use constants from `enum amd64_regnum'
10419 for register numbers. Adjust for renamed variables.
10420 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10421 renamed variables.
10422 (_initialize_amd64fbsd_nat): Use constants from `enum
10423 amd64_regnum' for register numbers.
10424 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10425 `enum amd64_regnum' for register numbers.
10426 (amd64fbsd_init_abi): Adjust for renamed functions.
10427 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10428 `enum amd64_regnum' for register numbers.
10429 (amd64nbsd_init_abi): Adjust for renamed functions.
10430 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10431 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10432 `enum amd64_regnum' for register numbers.
10433 (amd64obsd_init_abi): Adjust for renamed functions.
10434 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10435
10436 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10437
10438 * breakpoint.c (print_one_breakpoint): Do not output spaces
10439 after printing <PENDING> for a pending breakpoint.
10440
10441 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10442
10443 * printcmd.c (print_scalar_formatted): Initialize val_long
10444 to remove compiler warning message.
10445
10446 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10447
10448 * defs.h (nquery, yquery): New prototypes.
10449 * breakpoint.c (break_command_1): Use new nquery interface.
10450 * utils.c (defaulted_query, nquery, yquery): New functions.
10451
10452 2004-02-23 Andrew Cagney <cagney@redhat.com>
10453
10454 * hppa-tdep.c (hppa_frame_align): New function.
10455 (hppa32_push_dummy_call): New function.
10456 (hppa64_push_dummy_call): New function.
10457 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10458 disabled.
10459
10460 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10461 FIX_CALL_DUMMY when push_dummy_call is available.
10462 (call_function_by_hand, push_dummy_code): Ditto.
10463
10464 2004-02-22 Andrew Cagney <cagney@redhat.com>
10465
10466 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10467 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10468 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10469 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10470 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10471 call_dummy_location to ON_STACK.
10472
10473 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10474
10475 * x86-64-linux-tdep.c: Tweak comment.
10476 (amd64_linux_supply_gregset): Renamed from
10477 x86_64_linux_supply_gresget.
10478 (amd64_linux_fill_gregset): Renamed from
10479 x86_64_linux_fill_gregset.
10480 (fetch_core_registers): Adjust for renamed functions.
10481 (amd64_core_fns): Renamed from x86_64_core_fns.
10482 (amd64_linux_sigtramp_start): Renamed from
10483 x86_64_linux_sigtramp_start.
10484 (amd64_linux_pc_in_sigtramp): Renamed from
10485 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10486 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10487 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10488 (amd64_linux_sigcontext_addr): Renamed from
10489 x86_64_linux_sigcontext_addr.
10490 (amd64_linux_sc_reg_offset): Renamed from
10491 x86_64_linux_sc_reg_offset.
10492 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10493 Adjust for renamed functions and variables.
10494 (_initialize_amd64_linux_tdep): Renamed from
10495 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10496 variables.
10497 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10498 Adjust for renamed functions.
10499
10500 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10501 from x86_64_linux_gregset64_reg_offset.
10502 (amd64_linux_gregset32_reg_offset): Rename from
10503 x86_64_linux_gregset64_reg_offset.
10504 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10505 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10506 (amd64_linux_dr_set_control): Renamed from
10507 x86_64_linux_dr_set_control. Adjust for renamed functions.
10508 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10509 Adjust for renamed functions.
10510 (amd64_linux_dr_reset_addr): Renamed from
10511 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10512 (amd64_linux_dr_get_status): Renamed from
10513 x86_64_linux_dr_get_status. Adjust for renamed functions.
10514 (_initialize_amd64_linux_nat): Renamed from
10515 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10516 functions.
10517 * config/i386/nm-x86-64linux.h: Update copyright year.
10518 Adjust for renamed functions.
10519
10520 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10521 amd64fbsd_sigtramp_start.
10522 (amd64fbsd_sigtramp_end_addr): Renamed from
10523 amd64fbsd_sigtramp_end.
10524 (amd64fbsd_init_abi): Adjust for renamed variables.
10525 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10526 variables.
10527 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10528 amd64fbsd_sigtramp_start.
10529 (amd64fbsd_sigtramp_end_addr): Renamed from
10530 amd64fbsd_sigtramp_end.
10531
10532 2004-02-22 Andrew Cagney <cagney@redhat.com>
10533
10534 * hppa-tdep.c (hppa32_return_value): New function.
10535 (hppa64_return_value): New function.
10536 (hppa_gdbarch_init): Set return_value; keep disabled.
10537
10538 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10539 struct-return and inferior function call methods.
10540
10541 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10542 "frame-base.h".
10543 (struct hppa_frame_cache): Define.
10544 (hppa_frame_cache, hppa_frame_this_id): New functions.
10545 (hppa_frame_prev_register): New function.
10546 (hppa_frame_unwind, hppa_frame_base): New variables.
10547 (hppa_frame_unwind_sniffer): New function.
10548 (hppa_frame_base_address, hppa_unwind_pc): New function.
10549 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10550 sniffer, and frame base sniffer; keep disabled.
10551 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10552 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10553
10554 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10555 to predicates for "seriously old code".
10556
10557 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10558 runtime if(0).
10559
10560 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10561 unsigned.
10562 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
10563
10564 * config/pa/tm-hppa.h: Update copyright.
10565 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10566 (deprecated_init_frame_pc_default): Delete declaration.
10567 (hppa_frame_init_saved_regs): Delete declaration.
10568 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10569 * hppa-tdep.c: Include "arch-utils.h".
10570 (hppa_gdbarch_init): Set deprecated init_frame_pc
10571 and deprecated frame_init_saved_regs.
10572 (hppa_frame_init_saved_regs): Make static.
10573
10574 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10575
10576 Remove old 386BSD support.
10577 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
10578 * configure.host: Remove i[34567]86-*-bsd*.
10579 * configure.tgt: Remove i[34567]86-*-bsd*.
10580 * i386b-nat.c: Removed.
10581 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
10582 (i386b-nat.o): Remove dependencies.
10583
10584 * config/i386/i386bsd.mh: Removed.
10585 * config/i386/i386bsd.mt: Removed.
10586 * config/i386/nm-i386bsd.h: Removed.
10587 * config/i386/tm-i386bsd.h: Removed.
10588 * config/i386/xm-i386bsd.h: Removed.
10589
10590 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10591
10592 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10593 (amd64fbsd_init_abi): Set link map offsets.
10594 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10595 (amd64nbsd_init_abi): Set link map offsets.
10596 * amd64obsd-tdep.c: Include "solib-svr4.h".
10597 (amd64obsd_init_abi): Set link map offsets.
10598 * i386fbsd-tdep.c: Include "solib-svr4.h".
10599 (i386fbsd_init_abi): Set link map offsets.
10600 * i386nbsd-tdep.c: Include "solib-svr4.h".
10601 (i386nbsdelf_init_abi): Set link map offsets.
10602 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10603 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10604 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10605 solib-legacy.o and core-aout.o. Reformat.
10606 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10607 solib-svr4.o, solib-legacy.o. Reformat.
10608 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10609 * config/i386/nbsdelf.mh: Reformat.
10610 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10611 solib-svr4.o, solib-legacy.o and corelow.o.
10612 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10613 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10614 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10615 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10616 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10617 (TM_FILE): Set to tm-fbsd.h.
10618 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10619 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10620 solib-svr4.o.
10621 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10622 solib-svr4.o.
10623 (TM_FILE): Set to nm-nbsd.h.
10624 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10625 Simplify shared library support. Don't include "elf/common.h".
10626 (SVR4_SHARED_LIBS): Don't define.
10627 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10628 "solib.h".
10629 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10630 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10631 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10632 Don't include "i386/tm-i386.h". Include "solib.h".
10633 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10634 Don't include "i386/tm-i386.h".
10635 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10636 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10637 Include "i386/xm-i386.h".
10638 (HOST_LONG_DOUBLE_FORMAT): Remove.
10639
10640 Fix OpenBSD/i386 sigtramp recognition.
10641 * i386-tdep.h: Update copyright year.
10642 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10643 (i386bsd_sigtramp_end): New prototypes.
10644 (i386fbsd_sigtramp_start_addr): Renamed from
10645 i386fbsd_sigtramp_start.
10646 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10647 (i386obsd_sigtramp_start_addr): Renamed from
10648 i386obsd_sigtramp_start.
10649 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10650 * i386bsd-tdep.c: Update copyright year.
10651 (i386bsd_pc_in_sigtramp): Make public.
10652 * i386fbsd-nat.c: Update copyright year.
10653 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10654 * i386fbsd-tdep.c: Update copyright year.
10655 (i386fbsd_sigtramp_start_addr): Renamed from
10656 i386fbsd_sigtramp_start.
10657 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10658 (i386fbsdaout_init_abi): Adjust for renamed variables.
10659 * i386obsd-nat.c: Update copyright year.
10660 (_initialize_i386obsd_nat): Adjust for renamed variables.
10661 * i386obsd-tdep.c: Include "target.h".
10662 (i386obsd_page_size): New variable.
10663 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10664 (i386obsd_sigtramp_end): New functions.
10665 (i386obsd_sigtramp_start_addr): Renamed from
10666 i386obsd_sigtramp_start.
10667 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10668 (i386obsd_init_abi): Adjust for renamed variables. Set
10669 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10670 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10671
10672 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10673 trampoline change in OpenBSD kernel.
10674
10675 * amd64-nat.c: Update copyright year.
10676 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10677 architecture from REGCACHE.
10678
10679 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10680 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10681
10682 2004-02-21 Mark Kettenis <kettenis@gnu.org>
10683
10684 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10685 i[34567]86-*-openbsd3.[0-3].
10686 * config/i386/obsdaout.mh: New file.
10687
10688 * config/i386/obsd.mh (MH_FLAGS): Remove.
10689
10690 Fix PR build/1549.
10691 * i386obsd-tdep.c: Update copyright years. Include
10692 "solib-svr4.h".
10693 (i386obsd_init_abi): Don't set regset_from_core_section here.
10694 (i386obsd_aout_init_abi): New function. Set
10695 regset_from_core_section here.
10696 (i386obsd_elf_init_abi): New function.
10697 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10698 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10699 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10700 (TM_FILE): Set to tm-nbsd.h.
10701
10702 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10703 solib-sunos.o.
10704
10705 * solib-svr4.h: Update copyright year.
10706 (svr4_ilp32_fetch_link_map_offsets)
10707 (svr4_lp64_fetch_link_map_offsets): New prototype.
10708 * solib-svr4.c: Update copyright year.
10709 (svr4_ilp32_fetch_link_map_offsets)
10710 (svr4_lp64_fetch_link_map_offsets): New function.
10711
10712 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
10713
10714 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10715 to the partial symbol table.
10716
10717 2004-02-20 J. brobecker <brobecker@gnat.com>
10718
10719 * PROBLEMS: Add description of problem documented under gdb/1560.
10720
10721 2004-02-20 Mark Kettenis <kettenis@gnu.org>
10722
10723 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10724 comments.
10725 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10726 functions.
10727 (amd64obsd_init_abi): Reorder initializations. Use
10728 amd64obsd_r_reg_offset to initialize the general-purpose register
10729 set details. Set regset_from_core_section.
10730 (_initialize_amd64obsd_tdep): Rename from
10731 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10732 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10733 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10734
10735 * NEWS (New native configurations): Mention OpenBSD/alpha.
10736 * configure.tgt: Add alpha*-*-openbsd*.
10737 * configure.host: Add alpha*-*-openbsd*.
10738 * alphanbsd-tdep.c: Update copyright year.
10739 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10740
10741 2004-02-20 Andrew Cagney <cagney@redhat.com>
10742
10743 Fix PR tdep/1372.
10744 * configure.tgt: Delete target "none-*-*".
10745 * configure.host: Delete host "none-*-*".
10746 * config/none/none.mh: Delete file.
10747 * config/none/none.mt: Delete file.
10748 * config/none/xm-none.h: Delete file.
10749 * config/none/tm-none.h: Delete file.
10750 * config/none/nm-none.h: Delete file.
10751
10752 2004-02-19 Fred Fish <fnf@redhat.com>
10753
10754 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10755 cache->uses_fp prior to setting it.
10756
10757 2004-02-19 Fred Fish <fnf@redhat.com>
10758
10759 Fix for PR breakpoint/1558.
10760 * sh-tdep.c (IS_JSR): New macro.
10761 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10762
10763 2004-02-19 Jim Blandy <jimb@redhat.com>
10764
10765 * findvar.c (value_from_register): Doc fix.
10766
10767 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10768
10769 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10770 type being greater than sizeof of host's LONGEST. Always use
10771 unpack_long() unless format 'f' chosen.
10772
10773 2004-02-19 Joel Brobecker <brobecker@gnat.com>
10774
10775 Committed by Elena Zannoni <ezannoni@redhat.com>
10776
10777 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10778 contains a symbol wich is the best, non-exact match for the given
10779 pc. Update comments.
10780
10781 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
10782
10783 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10784 macro, which was part of the now removed Mach 3 port.
10785 * utils.c (request_quit): Ditto.
10786
10787 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10788
10789 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10790 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10791
10792 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10793
10794 Committed by Mark Kettenis <kettenis@gnu.org>.
10795
10796 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10797 Define.
10798
10799 2004-02-18 Andrew Cagney <cagney@redhat.com>
10800
10801 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10802 CONFIG_INSTALL and CONFIG_UNINSTALL.
10803 * configure: Re-generate.
10804 * interps.h (INTERP_TUI): Define.
10805 * Makefile.in: Update dependencies.
10806 (TUI): New macro.
10807 (tui-main.o): Specify dependencies.
10808 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10809 * tui/tui-main.c: New file.
10810
10811 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10812
10813 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10814 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10815 dependencies.
10816 * configure.host: Add x86_64-*-openbsd*.
10817 * configure.tgt: Add x86_64-*-openbsd*.
10818 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10819
10820 * tui/tui.c: Don't include <malloc.h>.
10821
10822 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10823 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10824 amd64nbsd-tdep.c.
10825
10826 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10827 static. Remove extraneous whitespace.
10828 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10829 static.
10830
10831 2004-02-17 Jim Blandy <jimb@redhat.com>
10832
10833 * findvar.c (value_from_register): Doc fix.
10834
10835 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10836
10837 Committed by Jim Blandy <jimb@redhat.com>.
10838
10839 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10840 CORE_ADDR as type for selectors. Correct types for GNU run time
10841 message lookup function to use double indirection.
10842 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10843 * objc-lang.h (lookup_child_selector): Adapt prototype.
10844
10845 * s390-nat.c (SUBOFF): New macro.
10846 (supply_gregset, fill_gregset): Use it to handle debugging
10847 of 32-bit exectuables running under a 64-bit kernel.
10848 * s390-tdep.c: Include "solib-svr4.h".
10849 (s390_svr4_fetch_link_map_offset): New function.
10850 (s390x_svr_fetch_link_map_offset): Likewise.
10851 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10852 * Makefile.in (s390-tdep.o): Update dependencies.
10853
10854 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10855 "frame-unwind.h".
10856 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10857 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10858 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10859 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10860 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10861 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10862 S390_SIGNAL_FRAMESIZE,
10863 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10864 (struct frame_extra_info): Remove.
10865 (s390_memset_extra_info): Remove.
10866 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10867 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10868 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10869 (is_rse): Renamed to ...
10870 (is_rsy): ... this. Support long displacements.
10871 (is_rxe): Renamed to ...
10872 (is_rxy): ... this. Support long displacements.
10873 (compute_x_addr): Support long displacements.
10874 (struct s390_prologue_data): New data type.
10875 (s390_on_stack): Change API to use struct s390_prologue_data.
10876 (s390_store): Reimplement.
10877 (s390_load): New function.
10878 (s390_get_signal_frame_info): Remove.
10879 (s390_get_frame_info): Remove, replace by ...
10880 (s390_analyze_prolog): ... this new function.
10881 (s390_check_function_end): Remove.
10882 (s390_function_start): Remove.
10883 (s390_frameless_function_invokation): Remove.
10884 (s390_is_sigreturn): Remove.
10885 (s390_init_frame_pc_first): Remove.
10886 (s390_init_frame_extra_info): Remove.
10887 (s390_frame_init_saved_regs): Remove.
10888 (s390_frame_saved_pc_nofix): Remove.
10889 (s390_frame_saved_pc): Remove.
10890 (s390_frame_chain): Remove.
10891 (s390_fp_regnum, s390_read_fp): Remove.
10892 (s390_pop_frame_regular, s390_pop_frame): Remove.
10893 (s390_saved_pc_after_call): Remove.
10894 (s390_skip_prologue): Reimplement.
10895 (s390_in_function_epilogue_p): Support long displacements.
10896 (struct s390_unwind_cache): New data structure.
10897 (s390_frame_unwind_cache): New function.
10898 (s390_prologue_frame_unwind_cache): Likewise.
10899 (s390_backchain_frame_unwind_cache): Likewise.
10900 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10901 (s390_frame_unwind): Define.
10902 (s390_frame_sniffer): New function.
10903 (struct s390_pltstub_unwind_cache): New data structure.
10904 (s390_pltstub_frame_unwind_cache): New function.
10905 (s390_pltstub_frame_this_id): Likewise.
10906 (s390_pltstub_frame_prev_register): Likewise.
10907 (s390_pltstub_frame_unwind): Define.
10908 (s390_pltstub_frame_sniffer): New function.
10909 (struct s390_sigtramp_unwind_cache): New data structure.
10910 (s390_sigtramp_frame_unwind_cache): New function.
10911 (s390_sigtramp_frame_this_id): Likewise.
10912 (s390_sigtramp_frame_prev_register): Likewise.
10913 (s390_sigtramp_frame_unwind): Define.
10914 (s390_sigtramp_frame_sniffer): New function.
10915 (s390_frame_base_address, s390_local_base_address): New functions.
10916 (s390_frame_base): Define.
10917 (s390_unwind_pc, s390_unwind_sp): New function.
10918 (s390_push_dummy_call): Use new frame base location.
10919 (s390_unwind_dummy_id): Likewise.
10920 (s390_gdbarch_init): Remove calls to:
10921 set_gdbarch_frameless_function_invocation,
10922 set_gdbarch_deprecated_init_frame_pc,
10923 set_gdbarch_deprecated_frame_chain,
10924 set_gdbarch_deprecated_frame_init_saved_regs,
10925 set_gdbarch_deprecated_pop_frame,
10926 set_gdbarch_deprecated_init_extra_frame_info,
10927 set_gdbarch_deprecated_init_frame_pc_first,
10928 set_gdbarch_deprecated_target_read_fp,
10929 set_gdbarch_deprecated_frame_saved_pc,
10930 set_gdbarch_deprecated_saved_pc_after_call,
10931 set_gdbarch_deprecated_fp_regnum.
10932 Add calls to:
10933 set_gdbarch_in_solib_call_trampoline,
10934 frame_unwind_append_sniffer,
10935 frame_base_set_default,
10936 set_gdbarch_unwind_pc,
10937 set_gdbarch_unwind_sp.
10938 * Makefile.in (s390-tdep.o): Update dependencies.
10939
10940 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10941 (S390_STACK_FRAME_OVERHEAD): Remove.
10942 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10943 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10944 (s390_promote_integer_argument): Remove.
10945 (s390_cannot_extract_struct_value_address): Remove.
10946 (s390_use_struct_convention, s390_store_struct_return): Remove.
10947 (s390_extract_return_value, s390_store_return_value): Remove.
10948 (s390_return_value_convention, s390_return_value): New functions.
10949 (is_float_singleton): Handle typedefs.
10950 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10951 Remove, replace by ...
10952 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10953 s390_function_arg_integer): ... these new functions.
10954 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10955 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10956 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10957 Fill in tdep->abi.
10958 Remove calls to:
10959 set_gdbarch_deprecated_store_struct_return,
10960 set_gdbarch_deprecated_extract_return_value,
10961 set_gdbarch_deprecated_store_return_value,
10962 set_gdbarch_use_struct_convention,
10963 set_gdbarch_extract_struct_value_address,
10964 set_gdbarch_deprecated_pc_in_call_dummy,
10965 set_gdbarch_deprecated_push_arguments,
10966 set_gdbarch_deprecated_save_dummy_frame_tos,
10967 set_gdbarch_deprecated_push_return_address,
10968 set_gdbarch_deprecated_sizeof_call_dummy_words,
10969 set_gdbarch_deprecated_call_dummy_words,
10970 set_gdbarch_deprecated_dummy_write_sp.
10971 Add calls to:
10972 set_gdbarch_push_dummy_call,
10973 set_gdbarch_unwind_dummy_id,
10974 set_gdbarch_return_value.
10975
10976 * config/s390/nm-linux.h: Update comments.
10977 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10978 (STOPPED_BY_WATCHPOINT): Redefine.
10979 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10980 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10981 (s390_stopped_by_watchpoint): Likewise.
10982 (watch_area_cnt): Remove.
10983 * s390-nat.c: Update comments.
10984 (watch_area): Remove typedef.
10985 Global replace watch_area by struct watch_area.
10986 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10987 (s390_stopped_by_watchpoint): Remove pid argument,
10988 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10989 (s390_fix_watch_points): Remove pid argument,
10990 use s390_inferior_tid. Recompute area spanned by watchpoints.
10991 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10992 argument. Reimplement.
10993
10994 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10995 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10996 (FETCH_INFERIOR_REGISTERS): Define.
10997 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10998 core-regset.o.
10999 * config/s390/s390x.mt: Remove.
11000 * config/s390/tm-s390.h: Remove.
11001 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11002 (TARGET_ELF64): Remove.
11003 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11004 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11005 s390*-*-* case; always set gdb_target to s390.
11006 * regformats/reg-s390.dat: Remove control registers.
11007 * regformats/reg-s390x.dat: Likewise.
11008 * s390-tdep.h: New file.
11009 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11010 Include "inferior.h" and "s390-tdep.h".
11011 Remove private definition of offsetof.
11012 (s390_register_u_addr): Remove.
11013 (regmap_gregset, regmap_fpregset): Define.
11014 (supply_gregset, fill_gregset): Reimplement.
11015 (supply_fpregset, fill_fpregset): Likewise.
11016 (s390_inferior_tid): New function.
11017 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11018 (fetch_inferior_registers, store_inferior_registers): Likewise.
11019 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11020 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11021 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11022 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11023 (struct gdbarch_tdep): Define.
11024 (struct s390_register_info): Define.
11025 (s390_register_info): New variable.
11026 (s390_register_name): Reimplement.
11027 (s390_register_type): New function.
11028 (s390_register_raw_size, s390x_register_raw_size): Remove.
11029 (s390_cannot_fetch_register): Remove.
11030 (s390_register_byte): Remove.
11031 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11032 (s390_dwarf_regmap): New variable.
11033 (s390_dwarf_reg_to_regnum): New function.
11034 (s390_stab_reg_to_regnum): Remove.
11035 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11036 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11037 (s390_convert_register_p): Likewise.
11038 (s390_register_to_value, s390_value_to_register): Likewise.
11039 (s390_register_reggroup_p): Likewise.
11040 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11041 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11042 (s390_supply_regset, s390_regset_from_core_section): New functions.
11043 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11044 (S390_FPR_SIZE): Likewise.
11045 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11046 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11047 (S390_NUM_GPRS): Move here from tm-s390.h.
11048 (S390_NUM_FPRS): Likewise.
11049 (s390_in_function_epilogue_p): New function.
11050 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11051 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11052 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11053 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11054 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11055 Remove calls to:
11056 set_gdbarch_deprecated_max_register_raw_size,
11057 set_gdbarch_deprecated_max_register_virtual_size,
11058 set_gdbarch_deprecated_register_byte,
11059 set_gdbarch_cannot_fetch_register,
11060 set_gdbarch_cannot_store_register,
11061 set_gdbarch_deprecated_register_size,
11062 set_gdbarch_deprecated_register_raw_size,
11063 set_gdbarch_deprecated_register_virtual_size,
11064 set_gdbarch_deprecated_register_virtual_type,
11065 set_gdbarch_deprecated_register_bytes.
11066 Add calls to:
11067 set_gdbarch_num_pseudo_regs,
11068 set_gdbarch_register_type,
11069 set_gdbarch_convert_register_p,
11070 set_gdbarch_register_to_value,
11071 set_gdbarch_value_to_register,
11072 set_gdbarch_register_reggroup_p,
11073 set_gdbarch_regset_from_core_section,
11074 set_gdbarch_pseudo_register_read,
11075 set_gdbarch_pseudo_register_write,
11076 set_gdbarch_in_function_epilogue_p.
11077 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11078 (s390_tdep_h): New variable.
11079
11080 2004-02-17 Jim Blandy <jimb@redhat.com>
11081
11082 * findvar.c (value_from_register): If the type has no length, just
11083 return an acceptable value --- don't report an internal error.
11084
11085 * stabsread.c (read_type): If we find any type numbers that are
11086 forward references, complain if the references aren't resolved by
11087 the time we're finished reading.
11088 (cleanup_undefined_types): Make error message more appropriate for
11089 a complaint.
11090
11091 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11092
11093 * Makefile.in (defs_h): Remove dependency on progress_h.
11094 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11095 progress.h.
11096 * main.c (captured_main): Delete use of START_PROGRESS and
11097 END_PROGRESS.
11098
11099 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11100
11101 * objfiles.c (terminate_minimal_symbol_table): Add back
11102 initialization of MSYMBOL_TYPE.
11103
11104 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11105
11106 Committed by Andrew Cagney.
11107 * Makefile.in (ia64_tdep_h): New macro.
11108 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11109 (ia64-tdep.o): Likewise.
11110 * ia64-tdep.h: New file.
11111 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11112 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11113 (ia64_aix_sigcontext_register_address): Likewise.
11114 (ia64_linux_getunwind_table): Delete declaration.
11115 * ia64-linux-tdep.c: Likewise.
11116
11117 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11118
11119 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11120 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11121 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11122
11123 2004-02-17 Andrew Cagney <cagney@redhat.com>
11124
11125 * symtab.c (skip_prologue_using_sal): New function.
11126 * symtab.h (skip_prologue_using_sal): Declare.
11127 * frv-tdep.c: Include "symtab.h".
11128 (skip_prologue_using_sal): Delete function.
11129 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11130 * rs6000-tdep.c (refine_prologue_limit): Mention
11131 skip_prologue_using_sal.
11132 * ia64-tdep.c (refine_prologue_limit): Ditto.
11133 * Makefile.in: Update dependencies.
11134
11135 2004-02-16 Andrew Cagney <cagney@redhat.com>
11136
11137 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11138 START_INFERIOR_TRAPS_EXPECTED.
11139 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11140 START_INFERIOR_TRAPS_EXPECTED.
11141 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11142 Delete macro.
11143 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11144 macro, moved to "nm-osf.h". Update copyright.
11145 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11146 update copyright.
11147
11148 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11149 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11150 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11151 frameless_look_for_prologue.
11152 * frame.h (legacy_frameless_look_for_prologue): Rename
11153 frameless_look_for_prologue.
11154 * gdbarch.h, gdbarch.c: Re-generate.
11155 * sh64-tdep.c (sh64_gdbarch_init): Update.
11156 * sh-tdep.c (sh_gdbarch_init): Update.
11157 * s390-tdep.c (s390_gdbarch_init): Update.
11158 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11159 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11160 * m68k-tdep.c (m68k_gdbarch_init): Update.
11161 (delta68_frame_args_address): Update.
11162 * m32r-tdep.c (m32r_gdbarch_init): Update.
11163 * hppa-tdep.c (hppa_gdbarch_init): Update.
11164 * h8300-tdep.c (h8300_gdbarch_init): Update.
11165 * frv-tdep.c (frv_gdbarch_init): Update.
11166 (frv_frameless_function_invocation): Update.
11167 * cris-tdep.c (cris_gdbarch_init): Update.
11168 (cris_frameless_function_invocation): Update.
11169 * avr-tdep.c (avr_gdbarch_init): Update.
11170 * arm-tdep.c (arm_gdbarch_init): Update.
11171 * stack.c (frame_info): Update, call predicate.
11172 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11173 * frame.c (legacy_get_prev_frame): Update, call predicate..
11174 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11175 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11176 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11177 invocation.
11178 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11179 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11180 * vax-tdep.c (vax_gdbarch_init): Ditto.
11181
11182 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11183 function.
11184
11185 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11186
11187 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11188 initializations.
11189
11190 2004-02-16 Andrew Cagney <cagney@redhat.com>
11191
11192 * tui/tui-windata.c: Include "gdb_string.h".
11193 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11194 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11195 * Makefile.in: Update dependencies.
11196
11197 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11198
11199 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11200 * infrun.c: Include "gdb_assert.h".
11201 (singlestep_ptid, saved_singlestep_ptid)
11202 (stepping_past_singlestep_breakpoint): New variables.
11203 (resume): Set singlestep_ptid. Check for singlestep thread
11204 hop.
11205 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11206 (handle_inferior_event): Handle singlestep thread hop.
11207
11208 2004-02-16 Andrew Cagney <cagney@redhat.com>
11209
11210 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11211 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11212 (dwarf2_frame_init_reg): Ditto.
11213
11214 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11215 suggested by Joshua Neuheisel
11216
11217 * configure.in: Always check for curses, including pdcurses.
11218 Warn, instead of error, when no curses are found. Enable TUI when
11219 curses is available.
11220 * configure: Re-generate.
11221
11222 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11223
11224 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11225 sh_sh4_register_convert_to_virtual.
11226 (sh_register_convert_to_raw): Rename from
11227 sh_sh4_register_convert_to_raw.
11228 (sh_pseudo_register_read): Accomodate above name change.
11229 (sh_pseudo_register_write): Ditto.
11230
11231 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11232
11233 * sh-tdep.c (sh_generic_register_name): Remove.
11234 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11235
11236 2004-02-15 Andrew Cagney <cagney@redhat.com>
11237
11238 * configure.in (build_warnings): Add -Wunused-function.
11239 * configure: Re-generate.
11240
11241 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11242 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11243
11244 * procfs.c (procfs_init_inferior): Assume that
11245 START_INFERIOR_TRAPS_EXPECTED is defined.
11246 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11247 * config/ns32k/tm-nbsd.h: Delete file,
11248 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11249
11250 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11251 * config/vax/tm-vax.h: Delete file.
11252
11253 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11254 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11255 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11256 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11257 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11258 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11259 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11260
11261 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11262
11263 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11264 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11265 (struct dwarf2_frame_ops): New.
11266 (dwarf2_frame_default_init_reg): New function, based on
11267 dwarf2_frame_init_reg.
11268 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11269 (dwarf2_frame_init_reg): Call architecture-specific function.
11270 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11271 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11272 instead of dwarf2_frame_data.
11273 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11274 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11275
11276 2004-02-15 Andrew Cagney <cagney@redhat.com>
11277
11278 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11279 register_gdbarch_swap.
11280 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11281 * f-lang.c (_initialize_f_language): Update, use
11282 DEPRECATED_REGISTER_GDBARCH_SWAP.
11283 * remote.c (_initialize_remote): Ditto.
11284 * regcache.c (_initialize_regcache): Ditto.
11285 * parse.c (_initialize_parse): Ditto.
11286 * infrun.c (_initialize_infrun): Ditto.
11287 * mi/mi-main.c (_initialize_mi_main): Ditto.
11288 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11289
11290 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11291 poking .cacheable directly.
11292 * symfile.c (symfile_bfd_open): Ditto.
11293
11294 * Makefile.in: Update all dependencies.
11295
11296 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11297 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11298 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11299 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11300 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11301
11302 2004-02-14 Andrew Cagney <cagney@redhat.com>
11303
11304 * arch-utils.c (legacy_convert_register_p): Check
11305 DEPRECATED_REGISTER_CONVERTIBLE_P.
11306 * findvar.c (value_of_register): Ditto.
11307
11308 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11309 * gdbarch.h, gdbarch.c: Re-generate.
11310 * arch-utils.c (deprecated_register_convertible_not): Delete.
11311 * arch-utils.h (deprecated_register_convertible_not): Delete.
11312 * mi/mi-main.c (get_register): Update. Update copyright.
11313 * infcmd.c (default_print_registers_info): Update.
11314
11315 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11316 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11317 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11318 * gdbarch.h, gdbarch.c: Re-generate.
11319 * frame.c (deprecated_get_next_frame_hack): Delete function.
11320 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11321 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11322 Update.
11323 * infcall.c (call_function_by_hand): Update.
11324
11325 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11326
11327 * symfile.c (init_entry_point_info, entry_point_address): Move
11328 from here...
11329 * objfiles.c (init_entry_point_info, entry_point_address):..to
11330 here.
11331 * symfile.h (init_entry_point_info, entry_point_address): Remove
11332 prototypes.
11333 * objfiles.h (init_entry_point_info, entry_point_address):Add
11334 prototypes.
11335 * cris-tdep.c: Remove include of symfile.h. Add include of
11336 objfiles.h.
11337 * infcall.c: Ditto.
11338 * mcore-tdep.c: Ditto.
11339 * mn10300-tdep.c: Ditto.
11340 * sh64-tdep.c: Ditto.
11341 * v850-tdep.c: Ditto.
11342 * arm-tdep.c: Remove include of symfile.h.
11343 * blockframe.c: Ditto.
11344 * coffread.c: Ditto.
11345 * dbxread.c: Ditto.
11346 * dwarf2read.c: Ditto.
11347 * dwarfread.c: Ditto.
11348 * frv-tdep.c: Ditto.
11349 * ia64-tdep.c: Ditto.
11350 * mdebugread.c: Ditto.
11351 * mipsread.c: Ditto.
11352 * rs6000-tdep.c: Ditto.
11353 * s390-tdep.c: Ditto.
11354 * sh-tdep.c: Ditto.
11355 * xstormy16-tdep.c: Ditto.
11356 * gdbarch.sh: Remove include of symfile.h.
11357 * gdbarch.c: Regenerate.
11358 * solib-irix.c (enable_break): Use entry_point_address().
11359 Add comment about include file.
11360 * xcoffread.c: Add comment about include file.
11361 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11362 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11363 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11364 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11365 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11366
11367 2004-02-13 Andrew Cagney <cagney@redhat.com>
11368
11369 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11370 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11371 copyright.
11372 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11373
11374 2004-02-12 Fred Fish <fnf@redhat.com>
11375
11376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11377 set_gdbarch_store_return_value.
11378
11379 2004-02-12 Andrew Cagney <cagney@redhat.com>
11380
11381 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11382 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11383 (interrupt_query): Ditto.
11384 (ofunc): Delete unused variable.
11385 * cris-tdep.c (cris_abi): Delete unused function.
11386 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11387 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11388 (cris_get_asr_quick_shift_steps): Ditto.
11389 (cris_skip_prologue_frameless_p): Ditto.
11390 * arm-tdep.c (arm_push_return_address): Delete unused function.
11391 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11392 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11393 * s390-tdep.c (s390_function_start): Delete unused function.
11394
11395 2004-02-12 Andrew Cagney <cagney@redhat.com>
11396
11397 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11398 gdbarch.h, gdbarch.c: Re-generate.
11399 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11400 to generic_prologue_frameless_p.
11401 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11402 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11403
11404 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11405
11406 * mips-linux-tdep.c: Include "frame.h".
11407 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11408 (mips_linux_skip_resolver): New functions.
11409 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11410 and set_gdbarch_in_solib_call_trampoline.
11411 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11412 to after set_gdbarch_in_solib_return_trampoline. Only set the
11413 solib hooks to mips16 functions if the OS ABI is unknown.
11414 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11415 including "config/tm-linux.h".
11416 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11417 * Makefile.in (mips-linux-tdep.o): Update.
11418
11419 2004-02-11 David Carlton <carlton@kealia.com>
11420
11421 * linespec.c (decode_compound): Only look for a class symbol when
11422 considering all but the rightmost component.
11423
11424 2004-02-11 Andrew Cagney <cagney@redhat.com>
11425
11426 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11427 abi code are are separatly grouped.
11428
11429 2004-02-11 Andrew Cagney <cagney@redhat.com>
11430
11431 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11432 * gdbarch.h, gdbarch.c: Re-generate.
11433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11434 * v850-tdep.c (v850_gdbarch_init): Update.
11435 * sh64-tdep.c (sh64_gdbarch_init): Update.
11436 * sh-tdep.c (sh_gdbarch_init): Update.
11437 * s390-tdep.c (s390_gdbarch_init): Update.
11438 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11439 * mips-tdep.c (mips_gdbarch_init): Update.
11440 * mcore-tdep.c (mcore_gdbarch_init): Update.
11441 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11442 * m32r-tdep.c (m32r_gdbarch_init): Update.
11443 * ia64-tdep.c (ia64_gdbarch_init): Update.
11444 * hppa-tdep.c (hppa_gdbarch_init): Update.
11445 * h8300-tdep.c (h8300_gdbarch_init): Update.
11446 * frv-tdep.c (frv_gdbarch_init): Update.
11447 * d10v-tdep.c (d10v_gdbarch_init): Update.
11448 * cris-tdep.c (cris_gdbarch_init): Update.
11449 * avr-tdep.c (avr_gdbarch_init): Update.
11450 * arm-tdep.c (arm_gdbarch_init): Update.
11451 * alpha-tdep.c (alpha_gdbarch_init): Update.
11452
11453 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
11454
11455 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11456 comma.
11457 (sh_sh4al_dsp_register_name): Ditto.
11458
11459 2004-02-10 Andrew Cagney <cagney@redhat.com>
11460
11461 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11462 (mips_init_frame_pc_first): Delete function.
11463 (mips_frame_saved_pc): Delete function.
11464 (mips_frame_chain): Delete function.
11465 (mips_init_extra_frame_info): Delete function.
11466 (mips_xfer_register): Delete unused variable "reg".
11467 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11468 (mips_n32n64_return_value): Delete unused variable "reg".
11469 (mips_n32n64_return_value): Delete unused variable "pos".
11470 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11471 (mips_o32_return_value): Delete unused variable "pos".
11472 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11473 (mips_print_fp_register): Delete unused variable "namelen"
11474 (mips_print_fp_register): Delete unused variable "flt2"
11475 (get_frame_pointer): Delete function.
11476 (cached_proc_desc): Delete static variable.
11477 (mips_pop_frame): Delete function.
11478 (mips_find_saved_regs): Delete function.
11479 (mips_get_saved_register): Delete function.
11480 (mips_saved_pc_after_call): Delete function.
11481 (SIGFRAME_BASE): Delete macro.
11482 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11483 (SIGFRAME_PC_OFF): Delete macro.
11484 (SIGFRAME_REGSAVE_OFF): Delete macro.
11485 (mips_dump_tdep): Do not print deleted macro definitions.
11486
11487 2004-02-10 Andrew Cagney <cagney@redhat.com>
11488
11489 * Makefile.in (SFILES): Remove explictly listed tui files.
11490 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11491
11492 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
11493
11494 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11495 to use paddr functions to format ia64 addresses and long values.
11496 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11497 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11498 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11499 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11500 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11501
11502 2004-02-10 Andrew Cagney <cagney@redhat.com>
11503
11504 * defs.h: Do not include "tui.h".
11505 * gdb_curses.h: New file.
11506 * tui/tui-hooks.h: New file.
11507 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11508 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11509 (tui_initialize_io): Delete declaration.
11510 (tui_initialize_readline: Delete redundant declaration.
11511 (struct tui_point): Delete definition.
11512 * tui/tui-data.h (struct tui_point): Define.
11513 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11514 * utils.c: Include "tui/tui.h".
11515 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11516 * printcmd.c [TUI]: Include "tui/tui.h".
11517 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11518 * tui/tui-command.c: Include "gdb_curses.h".
11519 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11520 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11521 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11522 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11523 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11524 * Makefile.in: Update all dependencies.
11525 (tui_hooks_h, gdb_curses_h): Define.
11526 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11527
11528 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
11529
11530 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11531 auxf2. Add comments about some other rarely used fields.
11532
11533 2004-02-10 Andrew Cagney <cagney@redhat.com>
11534
11535 * Makefile.in (init.c): Fix script removing duplicates. Problem
11536 reported by Peter Schauer.
11537
11538 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11539
11540 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11541 obstack_specify_allocation.
11542 * objfiles.c (allocate_objfile): Ditto.
11543 * solib-sunos.c (solib_add_common_symbols)
11544 (allocate_rt_common_objfile): Ditto.
11545 * symfile.c (reread_symbols): Ditto.
11546 * gdb_obstack.h: Add comment.
11547
11548 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11549
11550 * linespec.c (decode_line_1, locate_first_half)
11551 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11552 commented out code.
11553
11554 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
11555
11556 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11557 obstack_free.
11558
11559 2004-02-09 Andrew Cagney <cagney@redhat.com>
11560
11561 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11562 fails, try find_pc_section. Fix PR c++/1267.
11563 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11564 instead of find_pc_mapped_section.
11565 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11566 not default to the section containing PC. Fix PR symtab/1519.
11567
11568 2004-02-09 Andrew Cagney <cagney@redhat.com>
11569
11570 * Makefile.in (mips-tdep.o): Update dependencies.
11571 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11572 "trad-frame.h".
11573 (mips_unwind_pc): Return the pseudo PC register.
11574 (mips_unwind_dummy_id): New function.
11575 (mips16_fetch_instruction): New function.
11576 (mips32_fetch_instruction): New function.
11577 (struct mips_frame_cache): Define.
11578 (mips_mdebug_frame_cache): New function.
11579 (mips_mdebug_frame_this_id): New function.
11580 (mips_mdebug_frame_prev_register): New function.
11581 (mips_mdebug_frame_unwind): Define.
11582 (mips_mdebug_frame_sniffer): New function.
11583 (mips_mdebug_frame_base_address): New function.
11584 (mips_mdebug_frame_base): Define.
11585 (mips_mdebug_frame_base_sniffer): New function.
11586 (mips_gdbarch_init): Append unwind and base sniffers. Set
11587 unwind_dummy_id.
11588
11589 2004-02-08 Andrew Cagney <cagney@redhat.com>
11590
11591 * frame.c: Print both the register number and name.
11592
11593 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11594 and a sed into a single sed. Make .c and .o patterns more robust.
11595 (OBS): Delete.
11596 (INIT_FILES): Replace OBS with COMMON_OBS.
11597 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11598
11599 2004-02-08 Mark Kettenis <kettenis@gnu.org>
11600
11601 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11602 the PT_WCOOKIE request.
11603
11604 2004-02-08 Andrew Cagney <cagney@redhat.com>
11605
11606 * mips-tdep.c (mips_unwind_pc): New function.
11607 (mips_gdbarch_init): Set mips_unwind_pc.
11608
11609 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11610 (get_frame_id): Allow the UNKNOWN_FRAME.
11611 (frame_register_unwind, get_frame_type): Ditto.
11612
11613 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11614 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11615 unwind_dummy_id indicates a legacy frame.
11616
11617 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11618 * configure: Re-generate.
11619
11620 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11621 methods.
11622
11623 2004-02-08 Andrew Cagney <cagney@redhat.com>
11624
11625 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11626 makefile macro.
11627 * configure: Re-generate.
11628 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11629 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11630 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11631 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11632 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11633 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11634 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11635 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11636 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11637 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11638
11639 2004-02-07 Andrew Cagney <cagney@redhat.com>
11640
11641 * Makefile.in: Update all dependencies.
11642
11643 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11644 * configure: Re-generate.
11645 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11646 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11647 (COMMON_OBS): Add "main.o" and "annotate.o".
11648 (ANNOTATE_OBS): Delete.
11649 (OBS): Remove ANNOTATE_OBS.
11650 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11651 CONFIG_INITS.
11652 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11653 against CONFIG_OBS and "main.o".
11654 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11655 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11656
11657 * tui/tui-command.c: Include "gdb_string.h", delete register
11658 attribute, use ISO-C function signatures.
11659 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11660 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11661 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11662 * tui/tui.c: Ditto.
11663
11664 * tui/tui-command.c: Change variable and function names to lower
11665 case.
11666 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11667 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11668 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11669 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11670 * tui/tui-winsource.c, tui/tui.c: Ditto.
11671
11672 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11673
11674 * buildsym.c (free_pending_blocks, finish_block)
11675 (record_pending_block, make_blockvector, end_symtab): Replace
11676 symbol_obstack with objfile_obstack.
11677 * coffread.c (process_coff_symbol, coff_read_struct_type)
11678 (coff_read_enum_type): Ditto.
11679 * cp-namespace.c (initialize_namespace_symtab)
11680 (check_one_possible_namespace_symbol): Ditto.
11681 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11682 (dwarf2_symbol_mark_computed): Ditto.
11683 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11684 * elfread.c (elf_symtab_read): Ditto.
11685 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11686 (hpread_read_enum_type, hpread_read_function_type)
11687 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11688 Ditto.
11689 * jv-lang.c (get_java_class_symtab, add_class_symbol)
11690 (java_link_class_type): Ditto.
11691 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11692 (new_symbol): Ditto.
11693 * minsyms.c (install_minimal_symbols): Ditto.
11694 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11695 (terminate_minimal_symbol_table): Replace symbol_obstack with
11696 objfile_obstack.
11697 (free_objfile): Remove freeing of symbol_obstack.
11698 * objfiles.h: Remove symbol_obstack field.
11699 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11700 objfile_obstack.
11701 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11702 symbol_obstack.
11703 (solib_add_common_symbols): Replace symbol_obstack with
11704 objfile_obstack.
11705 * somsolib.c (som_solib_add): Ditto.
11706 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11707 (common_block_start, common_block_end): Ditto.
11708 * symfile.c (reread_symbols): Remove freeing and init of
11709 symbol_obstack.
11710 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11711 * symfile.h: Update comment.
11712 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11713 stats printing.
11714 * symtab.c (symbol_set_names): Replace symbol_obstack with
11715 objfile_obstack.
11716 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11717 Update comments.
11718 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11719 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11720 objfile_obstack.
11721
11722 2004-02-07 Andrew Cagney <cagney@redhat.com>
11723
11724 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11725 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11726 fields and variables.
11727 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11728 (m_beInvisible): Delete macro.
11729 * tui/tui-data.h: Fix case case fields and variables.
11730 (m_genWinPtrIsNull): Delete macro.
11731 (tui_win_list): Rename winList.
11732 (TUI_SRC_WIN): Rename srcWin.
11733 (TUI_DISASM_WIN): Rename disassemWin.
11734 (TUI_DATA_WIN): Rename dataWin.
11735 (TUI_CMD_WIN): Rename cmdWin.
11736 (m_genWinPtrNotNull): Delete macro.
11737 (m_winPtrIsNull): Delete macro.
11738 (m_winPtrNotNull): Delete macro.
11739 (tui_win_is_source_type): Replace m_winIsSourceType
11740 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11741 (tui_win_has_locator): Replace m_hasLocator.
11742 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11743 m_setWinHighlightOff.
11744 * tui/tui-data.c: Update references.
11745 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11746 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11747 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11748 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11749 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11750 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11751 * tui/tui-winsource.c, tui/tui.c: Ditto.
11752
11753 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11754
11755 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11756 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11757 StackGhost.
11758
11759 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11760 variable `i6' to `i7'.
11761 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11762
11763 2004-02-07 Andrew Cagney <cagney@redhat.com>
11764
11765 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11766 (TuiPoint, TuiPointPtr): Ditto.
11767 (TuiStatus, TuiStatusPtr): Ditto.
11768 (TuiWinType, TuiWinTypePtr): Ditto.
11769 (struct tui_point): Rename _TuiPoint.
11770 (tui_get_low_disassembly_address): Rename
11771 tuiGetLowDisassemblyAddress.
11772 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11773 (tuiFree): Delete declaration.
11774 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11775 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11776 * tui/tui.c (tuiFree): Delete function.
11777 * cli/cli-cmds.c (disassemble_command): Update references.
11778 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11779 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11780 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11781 * tui/tui-winsource.c: Ditto.
11782
11783 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11784
11785 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11786 coffstab_build_psymtabs, elfstab_build_psymtabs)
11787 (stabsect_build_psymtabs): Replace psymbol_obstack with
11788 objfile_obstack.
11789 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11790 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11791 Ditto.
11792 * dwarfread.c (scan_compilation_units): Ditto.
11793 * elfread.c (elfstab_offset_sections): Ditto.
11794 * hppa-tdep.c (read_unwind_info): Ditto.
11795 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11796 (hpread_end_psymtab): Ditto.
11797 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11798 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11799 Ditto.
11800 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11801 * objfiles.c (add_to_objfile_sections)
11802 (build_objfile_section_table): Ditto.
11803 (allocate_objfile): Remove init of psymbol_obstack.
11804 (free_objfile): Remove freeing of psymbol_obstack.
11805 * objfiles.h (struct objfile): Remove field
11806 psymbol_obstack. Update comments.
11807 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11808 psymbol_obstack with objfile_obstack.
11809 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11810 psymbol_obstack.
11811 * somread.c (som_symfile_offsets, init_import_symbols)
11812 (init_export_symbols): Replace psymbol_obstack with
11813 objfile_obstack.
11814 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11815 * symfile.c (default_symfile_offsets, syms_from_objfile)
11816 (reread_symbols): Remove freeing and init of psymbol_obstack.
11817 (cashier_psymtab): Update comment.
11818 * symmisc.c (print_objfile_statistics): Don't report stats for
11819 psymbol obstack.
11820 * symtab.h (struct general_symbol_info, struct partial_symtab):
11821 Update comments.
11822 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11823 (xcoff_symfile_offsets): Replace psymbol_obstack with
11824 objfile_obstack.
11825
11826 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11827
11828 * objfiles.h (struct objfile): Add objfile_obstack field.
11829 Remove type_obstack field.
11830
11831 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11832 read_structure_scope read_enumeration, new_symbol): Replace
11833 type_obstack with objfile_obstack.
11834 * dwarfread.c (struct_type, enum_type): Ditto.
11835 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11836 (lookup_fundamental_type): Ditto.
11837 * gdbtypes.h (TYPE_ALLOC): Ditto.
11838 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11839 (hpread_read_doc_function_type, hpread_read_struct_type)
11840 (fix_static_member_physnames, hpread_read_array_type)
11841 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11842 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11843 (java_link_class_type): Ditto.
11844 * mdebugread.c (parse_type): Ditto.
11845 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11846 * solib-sunos.c (solib_add_common_symbols): Ditto.
11847 * stabsread.c (define_symbol, read_type, read_member_functions,
11848 read_cpp_abbrev, read_one_struct_field): Ditto.
11849 * symfile.c (reread_symbols): Ditto.
11850 * symmisc.c (print_objfile_statistics): Ditto.
11851
11852 2004-02-07 Andrew Cagney <cagney@redhat.com>
11853
11854 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11855 (tui_exec_info_content): Rename TuiExecInfoContent.
11856 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11857 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11858 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11859 (TuiList, TuiListPtr): Ditto.
11860 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11861 (TuiDataType, TuiDataTypePtr): Ditto.
11862 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11863 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11864 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11865 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11866 (TuiDataElement, TuiDataElementPtr): Ditto.
11867 (TuiWinElement, TuiWinElementPtr): Ditto.
11868 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11869 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11870 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11871 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11872 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11873 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11874 * tui/tui-command.c, tui/tui-data.c: Update references.
11875 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11876 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11877 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11878 * tui/tui-winsource.c, tui/tui.c: Ditto.
11879
11880 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11881
11882 * dwarf2-frame.h: Update copyright.
11883 (enum dwarf2_frame_reg_rule): New.
11884 (struct dwarf2_frame_state_reg): New.
11885 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11886 * dwarf2-frame.c: Update copyright.
11887 (enum dwarf2_reg_rule): Remove.
11888 (struct dwarf2_frame_state): Remove defenition of `struct
11889 dwarf2_frame_state_reg'.
11890 (read_reg): Call get_frame_arch to get the architecture instead of
11891 using CURRENT_GDBARCH.
11892 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11893 DWARF2_FRAME_.
11894 (dwarf2_frame_init_reg): New function.
11895 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11896 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11897 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11898 tags with DWARF2_FRAME_.
11899 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11900 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11901 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11902
11903 2004-02-06 Andrew Cagney <cagney@redhat.com>
11904
11905 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11906 (enum tui_data_type): Rename _TuiDataType.
11907 (struct tui_layout_def): Rename _TuiLayoutDef.
11908 (struct tui_source_element): Rename _TuiSourceElement.
11909 (struct tui_data_element): Rename _TuiDataElement.
11910 (struct tui_command_element): Rename _TuiCommandElement.
11911 (struct tui_locator_element): Rename _TuiLocatorElement.
11912 (union tui_which_element): Define.
11913 (struct tui_win_element): Rename _TuiWinElement.
11914 (struct tui_data_info): Rename _TuiDataInfo.
11915 (struct tui_source_info): Rename _TuiSourceInfo.
11916 (struct tui_command_info): Rename _TuiCommandInfo.
11917 (tui_initialize_static_data): Rename initializeStaticData.
11918 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11919 (tui_alloc_win_info): Rename allocWinInfo.
11920 (tui_init_generic_part): Rename initGenericPart.
11921 (tui_init_win_info): Rename initWinInfo.
11922 (tui_alloc_content): Rename allocContent.
11923 (tui_add_content_elements): Rename addContentElements.
11924 (tui_init_content_element): Rename initContentElement.
11925 (tui_free_window): Rename freeWindow.
11926 (tui_free_win_content): Rename freeWinContent.
11927 (tui_free_data_content): Rename freeDataContent.
11928 (tui_free_all_source_wins_content): Rename
11929 freeAllSourceWinsContent.
11930 (tui_del_window): Rename tuiDelWindow.
11931 (tui_del_data_windows): Rename tuiDelDataWindows.
11932 (tui_partial_win_by_name): Rename partialWinByName.
11933 (tui_win_name): Rename winName.
11934 (tui_current_layout): Rename currentLayout.
11935 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11936 (tui_term_height): Rename termHeight.
11937 (tui_set_term_height_to): Rename setTermHeightTo.
11938 (tui_term_width): Rename termWidth.
11939 (tui_set_term_width_to): Rename setTermWidthTo.
11940 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11941 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11942 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11943 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11944 (tui_source_windows): Rename sourceWindows.
11945 (tui_clear_source_windows): Rename clearSourceWindows.
11946 (tui_clear_source_windows_detail): Rename
11947 clearSourceWindowsDetail.
11948 (tui_clear_win_detail): Rename clearWinDetail.
11949 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11950 (tui_default_tab_len): Rename tuiDefaultTabLen.
11951 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11952 (tui_win_with_focus): Rename tuiWinWithFocus.
11953 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11954 (tui_layout_def): Rename tuiLayoutDef.
11955 (tui_win_resized): Rename tuiWinResized.
11956 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11957 (tui_next_win): Rename tuiNextWin.
11958 (tui_prev_win): Rename tuiPrevWin.
11959 (tui_add_to_source_windows): Rename addToSourceWindows.
11960 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11961 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11962 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11963 * tui/tui.c, tui/tui-data.c: Ditto.
11964 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11965 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11966
11967 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11968 (struct symtab): Declare.
11969 (tui_set_source_content): Rename tuiSetSourceContent.
11970 (tui_show_symtab_source): Rename tuiShowSource.
11971 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11972 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11973 * tui/tui-source.c: Update copyright. Update references.
11974 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11975 * tui/tui-stack.c: Update references.
11976
11977 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11978 (struct tui_win_info): Declare.
11979 (tui_scroll_forward): Rename tuiScrollForward.
11980 (tui_scroll_backward): Rename tuiScrollBackward.
11981 (tui_scroll_left): Rename tuiScrollLeft.
11982 (tui_scroll_right): Rename tuiScrollRight.
11983 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11984 (tui_resize_all): Rename tuiResizeAll.
11985 (tui_refresh_all_win): Rename tuiRefreshAll.
11986 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11987 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11988 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11989 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11990
11991 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11992 (tui_erase_data_content): Rename tuiEraseDataContent.
11993 (tui_display_all_data): Rename tuiDisplayAllData.
11994 (tui_check_data_values): Rename tuiCheckDataValues.
11995 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11996 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11997 (tui_first_data_element_no_in_line): Rename
11998 tuiFirstDataElementNoInLine.
11999 (tui_delete_data_content_windows): Rename
12000 tuiDeleteDataContentWindows.
12001 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12002 (tui_display_data_from): Rename tuiDisplayDataFrom.
12003 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12004 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12005 * tui/tui-win.c, tui/tui-regs.c: Update references.
12006 * tui/tui-layout.c, tui/tui.c: Update references.
12007
12008 * tui/tui-wingeneral.h: Update copyright.
12009 (m_allBeVisible): Delete macro.
12010 (m_allBeInvisible): Delete macro.
12011 (struct tui_gen_win_info): Declare.
12012 (struct tui_win_info): Declare.
12013 (tui_unhighlight_win): Rename unhighlightWin.
12014 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12015 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12016 (tui_make_window): Rename makeWindow.
12017 (tui_copy_win): Rename copyWin.
12018 (tui_box_win): Rename boxWin.
12019 (tui_highlight_win): Rename highlightWin.
12020 (tui_check_and_display_highlight_if_needed): Rename
12021 checkAndDisplayHighlightIfNeeded.
12022 (tui_refresh_all): Rename refreshAll.
12023 (tui_delete_win): Rename tuiDelwin.
12024 (tui_refresh_win): Rename tuiRefreshWin.
12025 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12026 (tui_make_visible, tui_make_invisible): New functions.
12027 (tui_make_all_visible, tui_make_all_invisible): New functions.
12028 (make_all_visible): Rename makeAllVisible.
12029 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12030 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12031 * tui/tui-windata.c, tui/tui-win.c: Update references.
12032 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12033 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12034
12035 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12036
12037 * proc-api.c (write_with_trace): Initialize local variable to
12038 silence compiler warning.
12039
12040 2004-02-06 Andrew Cagney <cagney@redhat.com>
12041
12042 * tui/tui-source.h: Do not include "defs.h".
12043 (struct tui_win_info): Declare.
12044 (tui_set_source_content_nil): Declare.
12045 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12046 (union tui_line_or_address): Rename _TuiLineOrAddress.
12047 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12048 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12049 (tui_update_source_window_as_is): Rename
12050 tuiUpdateSourceWindowAsIs.
12051 (tui_update_source_windows_with_addr): Rename
12052 tuiUpdateSourceWindowsWithAddr.
12053 (tui_update_source_windows_with_line): Rename
12054 tuiUpdateSourceWindowsWithLine.
12055 (tui_clear_source_content): Rename tuiClearSourceContent.
12056 (tui_erase_source_content): Rename tuiEraseSourceContent.
12057 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12058 (tui_show_source_content): Rename tuiShowSourceContent.
12059 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12060 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12061 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12062 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12063 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12064 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12065 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12066 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12067 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12068 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12069 (struct tui_win_info): Declare.
12070 * tui/tui-stack.c: Update references.
12071 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12072 * tui/tui-win.c, tui/tui-source.c: Ditto.
12073 * tui/tui.c, tui/tui-disasm.c: Ditto.
12074
12075 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12076
12077 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12078 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12079
12080 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12081
12082 * infrun.c (handle_inferior_event): Allow for breakpoint
12083 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12084 and SIGEMT. Update comments.
12085 * NEWS (Revised SPARC target): Mention support for non-executable
12086 stack.
12087
12088 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12089
12090 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12091 * inftarg.c: Update copyright year.
12092 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12093 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12094 (sparc_xfer_wcookie): New function.
12095 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12096 * Makefile.in (sparc-nat.o): Update dependencies.
12097 * config/sparc/nm-nbsd.h: Include "target.h".
12098 (NATIVE_XFER_WCOOKIE): New define.
12099 (sparc_xfer_wcookie): New prototype.
12100
12101 2004-02-04 Andrew Cagney <cagney@redhat.com>
12102
12103 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12104 SYSCALL_TRAP function.
12105 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12106
12107 2004-02-04 Andrew Cagney <cagney@redhat.com>
12108 Daniel Jacobowitz <drow@mvista.com>
12109
12110 * objfiles.h: Delete comments refering to inside_entry_func and
12111 DEPRECATED_FRAME_CHAIN_VALID.
12112 * defs.h (inside_entry_func): Update prototype..
12113 * blockframe.c (inside_entry_func): Rename to
12114 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12115 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12116
12117 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12118
12119 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12120 outside of #ifdef SOLIB_ADD region.
12121 (do_restore_lang_radix_cleanup): Ditto.
12122 (resolve_pending_breakpoint): Ditto.
12123
12124 2004-02-03 Andrew Cagney <cagney@redhat.com>
12125
12126 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12127 (process_note_abi_tag_sections): Delete unused function.
12128 (ia64_read_fp): Delete unused function.
12129 (gdbarch_extract_struct_value_address): Delete declaration.
12130
12131 2004-02-02 Andrew Cagney <cagney@redhat.com>
12132
12133 * vax-tdep.c (vax_frame_chain): Delete call to
12134 deprecated_inside_entry_file.
12135 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12136
12137 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12138
12139 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12140 column that's "empty" or "same value" when eliminating REG_RA
12141 rules.
12142
12143 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12144
12145 * NEWS: Add information about new pending breakpoint support.
12146
12147 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12148
12149 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12150 and pending fields for pending breakpoint support.
12151 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12152 (condition_command): Only parse condition if not a pending
12153 breakpoint.
12154 (print_one_breakpoint): Add support for pending breakpoints.
12155 (describe_other_breakpoints): Add checks to verify we are not
12156 dealing with pending breakpoints.
12157 (check_duplicates): Don't check pending breakpoints.
12158 (set_raw_breakpoint): Initialize pending flag.
12159 (do_restore_lang_radix_cleanup): New cleanup routine.
12160 (resolve_pending_breakpoint): New function.
12161 (re_enable_breakpoints_in_shlibs): Try and resolve any
12162 pending breakpoints via resolve_pending_breakpoint.
12163 (mention): Add pending breakpoint support.
12164 (parse_breakpoint_sals): Add new parameter to pass to
12165 decode_line_1 to indicate silent errors when files or functions
12166 are not found. Change all callers.
12167 (do_captured_parse_breakpoint): New function.
12168 (break_command_1): Change prototype to return an rc value and to
12169 take an optional pending breakpoint pointer. Support creating
12170 a pending breakpoint if a "not found" form of error occurs when
12171 parsing the breakpoint. Also support resolving an existing pending
12172 breakpoint and be silent if the resolution fails.
12173 (create_breakpoints): Change prototype to take pending breakpoint
12174 pointer. When resolving a pending breakpoint, use the new pointer
12175 to provide a conditional or commands added by the end-user.
12176 (delete_breakpoint): Add appropriate check for pending.
12177 (breakpoint_re_set_one): Ditto.
12178 (do_enable_breakpoint): Ditto.
12179
12180 2004-02-02 David Carlton <carlton@kealia.com>
12181
12182 * valops.c (enum oload_classification): New.
12183 (find_overload_match): Break implementation into separate
12184 functions; delete #if 0'd code; look for symbols within
12185 namespaces.
12186 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12187 (find_oload_champ,oload_method_static,classify_oload_match): New.
12188 * cp-support.h: Add declaration for cp_func_name; update
12189 declaration for make_symbol_overload_list.
12190 * cp-support.c (cp_func_name): New.
12191 (overload_list_add_symbol): Fix comment, use
12192 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12193 (make_symbol_overload_list): Take a function name and a namespace
12194 instead of a symbol; change implementation.
12195 (make_symbol_overload_list_using): New.
12196 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12197
12198 2004-02-02 Fred Fish <fnf@redhat.com>
12199
12200 * main.c (gdb_stdtarg): Move definition to group with other
12201 gdb_stdtarg definitions and update copyright years.
12202 * remote-sim.c (gdb_os_write_stderr): Write output to
12203 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12204 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12205 gdb_stderr stream and update copyright years.
12206
12207 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12208
12209 * Makefile.in (mips-linux-nat.o): Update dependencies.
12210 * mips-linux-nat.c: Include mips-tdep.h.
12211
12212 2004-02-01 Roland McGrath <roland@redhat.com>
12213
12214 * sol-thread.c (sol_thread_xfer_partial): New function.
12215 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12216 (init_sol_core_ops): Likewise.
12217
12218 * procfs.c (procfs_xfer_partial): New function.
12219 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12220 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12221
12222 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12223 procfs_xfer_auxv function.
12224
12225 * procfs.c (procfs_make_note_section): If we can read
12226 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12227 * linux-proc.c (linux_make_note_section): Likewise.
12228
12229 * auxv.h: New file.
12230 * auxv.c: New file.
12231 * Makefile.in (auxv_h): New variable.
12232 (COMMON_OBS): Add auxv.o here.
12233 (auxv.o): New target.
12234
12235 * corelow.c (core_xfer_partial): New function.
12236 (init_core_ops): Use it for core_ops.to_xfer_partial.
12237
12238 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12239 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12240 macro if that is defined.
12241
12242 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12243
12244 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12245 and check the specified thread for each breakpoint.
12246 * breakpoint.h (bpstat_stop_status): Update prototype.
12247 * infrun.c (handle_inferior_event): Update calls to
12248 bpstat_stop_status.
12249
12250 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12251
12252 * Makefile.in (cli-cmds.o): Add $(readline_h).
12253
12254 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12255
12256 * cli/cli-cmds.c: Include readline.h.
12257 (complete_command): Pass the start of the last word to
12258 complete_line.
12259
12260 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12261
12262 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12263 argument, and change first argument to a CORE_ADDR.
12264 * breakpoint.h (bpstat_stop_status): Update prototype.
12265 * infrun.c (adjust_pc_after_break): Add a new comment.
12266 (handle_inferior_event): Update calls to bpstat_stop_status.
12267
12268 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12269
12270 * breakpoint.h: Update copyright years.
12271
12272 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12273
12274 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12275 (bpstat_stop_status): Don't decrement PC.
12276 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12277 prototype.
12278 * infrun.c (adjust_pc_after_break): New function.
12279 (handle_inferior_event): Call it, early. Remove later references
12280 to DECR_PC_AFTER_BREAK.
12281 (normal_stop): Add commentary.
12282
12283 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12284
12285 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12286 2004-01-27 double-free fix.
12287
12288 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12289
12290 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12291 (sparc32_frame_prev_register): Handle StackGhost.
12292 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12293
12294 2004-01-29 Roland McGrath <roland@redhat.com>
12295
12296 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12297 * configure: Regenerated.
12298
12299 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12300 * Makefile.in (procfs.o): Add dep.
12301
12302 2004-01-28 Andrew Cagney <cagney@redhat.com>
12303
12304 * tui/tui-stack.h: Update copyright.
12305 (struct frame_info): Add opaque declaration.
12306 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12307 (tui_show_locator_content): Rename tuiShowLocatorContent.
12308 (tui_show_frame_info): Rename tuiShowFrameInfo.
12309 * tui/tui-stack.c: Update copyright. Update references.
12310 * tui/tui-winsource.c: Update references.
12311 * tui/tui-win.c: Update references.
12312 * tui/tui-layout.c: Update references.
12313 * tui/tui-hooks.c: Update copyright, update references.
12314 * tui/tui.c: Update copyright, update references.
12315 * tui/tui-disasm.c: Update references.
12316
12317 2004-01-28 David Carlton <carlton@kealia.com>
12318
12319 * dwarf2read.c (add_partial_structure): Use demangled name if
12320 namespace equals "".
12321
12322 2004-01-27 Jim Blandy <jimb@redhat.com>
12323
12324 Clean up misapplied patch:
12325 * dwarf2read.c (determine_prefix): Change one of the two forward
12326 declarations for 'determine_prefix_aux' to a declaration for this.
12327 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12328 argument to 'die_specification'.
12329
12330 * dwarf2read.c (read_func_scope): Re-indent comment.
12331
12332 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12333
12334 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12335 b->exp to NULL after freeing so that error during re-parsing or
12336 evaluation of expressions associated with breakpoint don't
12337 eventually lead to re-freeing of storage.
12338 Committed by Andrew Cagney.
12339
12340 2004-01-27 Andrew Cagney <cagney@redhat.com>
12341
12342 * source.c (ambiguous_line_spec): Delete undefined declaration.
12343 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12344 (m32r_set_server_address, m32r_set_download_path): Ditto.
12345 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12346
12347 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12348
12349 * dwarf2read.c: Update calls to changed and renamed functions, and
12350 references to moved variables.
12351
12352 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12353 language, language_defn, list_in_scope, and ftypes members.
12354 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12355 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12356 (baseaddr): Remove globals.
12357
12358 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12359 (set_cu_language, die_is_declaration, die_specification)
12360 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12361 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12362 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12363 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12364
12365 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12366 cu.list_in_scope. Don't initialize cu_header_offset.
12367 (add_partial_symbol): Add local baseaddr.
12368 (psymtab_to_symtab_1): Add local baseaddr. Use
12369 objfile->section_offsets for consistency. Don't initialize
12370 cu_header_offset; do initialize cu.header.offset and
12371 cu.list_in_scope.
12372 (read_file_scope, read_func_scope, read_lexical_block_scope)
12373 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12374
12375 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12376
12377 * PROBLEMS: Add gdb/1516.
12378
12379 2003-12-29 Robert Millan <robertmh@gnu.org>
12380
12381 Patch committed by Andrw Cagney.
12382 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12383 * configure.tgt: Match knetbsd*-gnu.
12384
12385 2004-01-26 Andrew Cagney <cagney@redhat.com>
12386
12387 * breakpoint.c (catch_command_1): Delete #ifdef code.
12388 (catch_fork_command_1): Delete #ifdef wrapper.
12389 (catch_exec_command_1): Ditto.
12390 (catch_load_command_1): Ditto.
12391 (catch_unload_command_1): Ditto.
12392
12393 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12394 (catch_breakpoint): Delete #if0ed function.
12395 (disable_catch_breakpoint): Ditto.
12396 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12397 (disable_catch, enable_catch, delete_catch): Ditto.
12398
12399 2004-01-26 Andrew Cagney <cagney@redhat.com>
12400
12401 * remote.c (echo_check, quit_flag): Delete variables.
12402 (cisco_kernel_mode): Delete variable.
12403 (minitelnet_return, tty_input, escape_count): Delete variables.
12404 (remote_cisco_mode): Delete variable.
12405 (remote_cisco_open, remote_cisco_close): Delete function.
12406 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12407 (init_remote_cisco_ops): Delete function.
12408 (_initialize_remote): Do not install "remote cisco" code.
12409 (read_frame): Delete cisco specific code.
12410 (remote_info_process): Delete function.
12411 (remote_wait): Delete cisco specific code.
12412 (remote_cisco_section_offsets): Delete function.
12413 (remote_cisco_objfile_relocate): Delete function.
12414 (remote_async_wait): Delete cisco specific code.
12415 (minitelnet, readtty, readsocket): Delete function.
12416
12417 2004-01-26 Andrew Cagney <cagney@redhat.com>
12418
12419 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12420 comments mentioning extract_returned_value_address.
12421 * infcmd.c (print_return_value): Update. Add comments on
12422 extract_returned_value_address.
12423 * stack.c (return_command): Add comments on
12424 extract_returned_value_address.
12425 * values.c: Update comment.
12426 * m32r-tdep.c: Update comment.
12427 * sparc-tdep.c: Update comment.
12428 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12430 * sh64-tdep.c (sh64_gdbarch_init): Update.
12431 * sh-tdep.c (sh_gdbarch_init): Update.
12432 * s390-tdep.c (s390_gdbarch_init): Update.
12433 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12434 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12435 * m68k-tdep.c (m68k_gdbarch_init): Update.
12436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12437 * m32r-tdep.c (m32r_gdbarch_init): Update.
12438 * ia64-tdep.c (ia64_gdbarch_init): Update.
12439 * h8300-tdep.c (h8300_gdbarch_init): Update.
12440 * frv-tdep.c (frv_gdbarch_init): Update.
12441 * arm-tdep.c (arm_gdbarch_init): Update.
12442 * alpha-tdep.c (alpha_gdbarch_init): Update.
12443
12444 2004-01-26 Andrew Cagney <cagney@redhat.com>
12445
12446 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12447 SYMBOL_LOCATION_FUNCS
12448 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12449 "struct symbol_ops".
12450 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12451 type to "struct symbol_ops".
12452 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12453 (struct symbol): Replace ".aux_value.loc.funcs" and
12454 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12455 (SYMBOL_OBJFILE): Delete macro.
12456 (SYMBOL_LOCATION_FUNCS): Delete macro.
12457 (SYMBOL_LOCATION_BATON): Update.
12458 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12459 intead of SYMBOL_LOCATION_FUNCS.
12460 * ax-gdb.c (gen_var_ref): Ditto.
12461 * printcmd.c (address_info): Ditto.
12462 * findvar.c (read_var_value): Ditto.
12463 (symbol_read_needs_frame): Ditto.
12464
12465 2004-01-26 Andrew Cagney <cagney@redhat.com>
12466
12467 * dwarf2read.c (read_func_scope): Document frame-base hack.
12468
12469 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12470
12471 * infcmd.c (print_return_value): Plug memory leak; delete
12472 ui_stream object. Rename argument `structure_return' to
12473 `struct_return'.
12474
12475 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12476
12477 * infcmd.c (print_return_value): Wrap long lines.
12478 (finish_command_continuation, finish_command): Remove unused
12479 variable `funcaddr'. Fix some coding-standards problems.
12480
12481 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12482 SECT_SIZE is large enough, not whether it's exactly the right size.
12483 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12484 TDEP->fpregset to zero.
12485
12486 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
12487 floating-point registers for traditional NetBSD core files.
12488 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12489 TDEP->sizeof_fpregset here.
12490
12491 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12492
12493 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12494 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12495 function with code split out from
12496 sparc32nbsd_sigcontext_frame_cache.
12497 (sparc32nbsd_sigcontext_frame_cache): Use
12498 sparc32nbsd_sigcontext_saved_regs.
12499 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12500 OpenBSD.
12501 * sparcobsd-tdep.c: New file.
12502 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12503 (sparcobsd-tdep.o): New dependency.
12504 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12505 * config/sparc/obsd.mt: New file.
12506
12507 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12508 TDEP->fpregset to be initialized to enable core file register
12509 sets.
12510
12511 2004-01-24 Mark Kettenis <kettenis@gnu.org>
12512
12513 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
12514 Add opaque declarations.
12515 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12516 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12517 function with code split out from
12518 sparc64nbsd_sigcontext_frame_cache.
12519 (sparc64nbsd_sigcontext_frame_cache): Use
12520 sparc64nbsd_sigcontext_saved_regs.
12521 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12522 OpenBSD.
12523 * sparc64obsd-tdep.c: New file.
12524 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12525 (sparc64obsd-tdep.o): New dependency.
12526 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12527 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12528 * config/sparc/obsd64.mt: New file.
12529
12530 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12531 read the instruction at PC.
12532
12533 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12534 value of GDB_OSABI_DEFAULT.
12535 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12536 instead of GDB_OSABI_NETBSD_AOUT.
12537
12538 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
12539
12540 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12541 copyright.
12542
12543 2004-01-23 Andrew Cagney <cagney@redhat.com>
12544
12545 * printcmd.c (display_command): Replace tui_set_display call with
12546 tui_set_layout_for_display_command.
12547 * tui/tui.h (enum tui_win_type): Define.
12548 (tui_set_layout): Delete declaration.
12549 (tui_set_layout_for_display_command): Rename set_tui_layout.
12550 * tui/tui-data.h (enum tui_layout_type): Define.
12551 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12552 "tui.h".
12553 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12554 (tui_default_win_height): Rename tuiDefaultWinHeight.
12555 (tui_default_win_viewport_height): Rename
12556 tuiDefaultWinViewportHeight.
12557 (tui_set_layout): RenametuiSetLayout.
12558 * tui/tui-layout.c: Update references.
12559 * tui/tui.c: Update references.
12560 * tui/tui-disasm.c: Update references.
12561
12562 2004-01-23 David Carlton <carlton@kealia.com>
12563
12564 Partial workaround for PR c++/1511:
12565 * cp-namespace.c: Include frame.h.
12566 (cp_lookup_transparent_type): New
12567 (cp_lookup_transparent_type_loop): New.
12568 * cp-support.h: Declare cp_lookup_transparent_type.
12569 * symtab.c (basic_lookup_transparent_type): Renamed from
12570 lookup_transparent_type.
12571 (lookup_transparent_type): Replace old body by a call to
12572 current_language->la_lookup_transparent_type.
12573 * symtab.h: Update copyright. Declare
12574 basic_lookup_transparent_type.
12575 * language.h: Update copyright.
12576 (struct language_defn): Add la_lookup_transparent_type.
12577 * language.c: Update copyright.
12578 (unknown_language_defn): Add basic_lookup_transparent_type.
12579 (auto_language_defn): Add basic_lookup_transparent_type.
12580 (local_language_defn): Add basic_lookup_transparent_type.
12581 * ada-lang.c: Update copyright.
12582 (ada_language_defn): Add basic_lookup_transparent_type.
12583 * c-lang.c: Update copyright.
12584 (c_language_defn): Add basic_lookup_transparent_type.
12585 (cplus_language_defn): Add basic_lookup_transparent_type.
12586 (asm_language_defn): Add basic_lookup_transparent_type.
12587 (minimal_language_defn): Add basic_lookup_transparent_type.
12588 * f-lang.c: Update copyright.
12589 (f_language_defn): Add basic_lookup_transparent_type.
12590 * jv-lang.c: Update copyright.
12591 (java_language_defn): Add basic_lookup_transparent_type.
12592 * m2-lang.c: Update copyright.
12593 (m2_language_defn): Add basic_lookup_transparent_type.
12594 * objc-lang.c: Update copyright.
12595 (objc_language_defn): Add basic_lookup_transparent_type.
12596 * p-lang.c: Update copyright.
12597 (p_language_defn): Add basic_lookup_transparent_type.
12598 * scm-lang.c: Update copyright.
12599 (scm_language_defn): Add basic_lookup_transparent_type.
12600 * Makefile.in (cp-namespace.o): Depend on frame.h.
12601
12602 2004-01-23 David Carlton <carlton@kealia.com>
12603
12604 Patch for PR c++/1520:
12605 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12606 properly if we have a specification die.
12607 (determine_prefix_aux): Rename from determine_prefix.
12608 (determine_prefix): Like the old determine_prefix, but never
12609 returns NULL.
12610
12611 2004-01-23 Theodore A. Roth <troth@openavr.org>
12612
12613 * avr-tdep.c: Update copyright.
12614 (avr_iaddr_p): Delete unused function.
12615 (avr_saddr_p): Delete unused function.
12616
12617 2004-01-23 David Carlton <carlton@kealia.com>
12618
12619 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12620 Fix for PR symtab/1534.
12621
12622 2004-01-23 Mark Kettenis <kettenis@gnu.org>
12623
12624 * NEWS (New native configurations): Mention OpenBSD/sparc and
12625 OpenBSD/sparc64.
12626 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12627 * configure.host: Likewise.
12628 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12629 handler for OpenBSD.
12630 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12631
12632 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12633
12634 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12635 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12636
12637 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12638 * cli/cli-cmds.c (shell_escape): Likewise.
12639
12640 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12641 OpenBSD .note.openbsd.ident sections.
12642
12643 2004-01-22 David Carlton <carlton@kealia.com>
12644
12645 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12646 get_scope_pc_bounds.
12647 (read_file_scope): Ditto.
12648 (get_scope_pc_bounds): New function, produced by extracting code
12649 from the above two functions, consolidating it, and adding support
12650 for DW_TAG_namespace.
12651
12652 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12653
12654 * osabi.c (MAX_NOTESZ): New define.
12655 (check_note): New function.
12656 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12657 check_note.
12658
12659 2004-01-21 Roland McGrath <roland@redhat.com>
12660
12661 * MAINTAINERS (write after approval): Add myself.
12662
12663 2004-01-21 Eli Zaretskii <eliz@gnu.org>
12664
12665 * utils.c (init_page_info): Move declarations of `rows' and
12666 `cols' before the __GO32__-specific code. Move the closing brace
12667 outside the #ifdef __GO32__..#endif block.
12668 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12669
12670 2004-01-21 Paul Brook <paul@codesourcery.com>
12671
12672 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12673 BPSTAT_WHAT_CHECK_SHLIBS.
12674
12675 2004-01-21 Paul Brook <paul@codesourcery.com>
12676
12677 * MAINTAINERS: Add myself to write-after-approval.
12678
12679 2004-01-20 Andrew Cagney <cagney@redhat.com>
12680
12681 * ax-gdb.c (print_axs_value): Delete unused function.
12682 * jv-lang.c (java_lookup_type): Delete unused function.
12683 * cli/cli-dump.c (dump_filetype): Delete unused function.
12684 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12685 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12686 (mips_getstring): Delete unused function.
12687 (pmon_insert_breakpoint): Delete #if0ed function.
12688 (PMON_MAX_BP): Delete #if0ed MACRO.
12689 (mips_pmon_bp_info): Delete #if0ed variable.
12690 (pmon_remove_breakpoint): Delete #if0ed function.
12691 * monitor.c (monitor_write_even_block): Delete unused function.
12692 (monitor_write_memory_block): Delete #if0ed code.
12693 * dink32-rom.c (dink32_load): Delete unused function.
12694 (_initialize_dink32_rom): Delete #if0ed code.
12695 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12696
12697 * tui/tui-command.c: Update references.
12698 * tui/tui-io.c: Update references.
12699 * tui/tui-command.h: Update copyright.
12700 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12701
12702 * source.c (ambiguous_line_spec): Delete never-defined function.
12703 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12704 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12705 * cli/cli-cmds.c (validate_comname): Ditto.
12706
12707 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12708 "tui-data.h".
12709 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12710 (tui_show_disassem): Rename tuiShowDisassem.
12711 (tui_show_disassem_and_update_source): Rename
12712 tuiVerticalDisassemScroll.
12713 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12714 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12715 * tui/tui.h: Update copyright.
12716 (enum tui_status): Define.
12717 * tui/tui-data.h (enum tui_scroll_direction): Define.
12718 * tui/tui-disasm.c: Update copyright. Update references.
12719 * tui/tui-winsource.c: Update copyright. Update references.
12720 * tui/tui-win.c: Update references.
12721 * tui/tui-layout.c: Update references.
12722
12723 2004-01-20 Andrew Cagney <cagney@redhat.com>
12724
12725 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12726 sym2 to start of block.
12727
12728 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12729
12730 * MAINTAINERS: Delete mmalloc.
12731 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12732 * NEWS: Mention removal of --with-malloc.
12733 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12734 * config.in: Regenerate.
12735 * configure: Regenerate.
12736 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12737 USE_MMALLOC, MMCHECK_FORCE.
12738 * gdbinit.in: Remove mmalloc.
12739 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12740 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12741 * config/i386/go32.mh: Likewise.
12742 * config/i386/interix.mh: Likewise.
12743 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12744
12745 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12746
12747 * linespec.c (decode_variable, symtab_from_filename): Call
12748 error_silent with error message instead of throwing an exception
12749 directly.
12750 * defs.h (error_silent, error_output_message): Add prototypes.
12751 (catch_exceptions_with_msg): Ditto.
12752 * utils.c (error_silent, error_output_message): New functions.
12753 * top.c (catch_exceptions_with_msg): New function.
12754
12755 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
12756
12757 * mi/mi-cmds.h (enum print_values): Add definition.
12758
12759 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12760 type and value for simple data types and just the name and type
12761 for complex ones, if required.
12762
12763 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12764 children, if required.
12765
12766 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12767
12768 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12769 unused declarations.
12770
12771 2004-01-19 Andrew Cagney <cagney@redhat.com>
12772
12773 * top.h (mapped_symbol_files): Delete declaration.
12774 * main.c (captured_main): Delete option "m" and "mapped".
12775 * objfiles.c (mapped_symbol_files): Delete variable.
12776 * symfile.c (symbol_file_command): Delete mmap code.
12777 (symbol_file_add_with_addrs_or_offsets): Ditto.
12778 (add_symbol_file_command, reread_separate_symbols): Ditto.
12779 * objfiles.h (OBJF_MAPPED): Delete.
12780 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12781 (free_objfile) [USE_MMALLOC]: Ditto.
12782 (open_existing_mapped_file): Delete function.
12783 (open_mapped_file): Delete function.
12784 (map_to_file): Delete function.
12785
12786 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12787
12788 * infrun.c (step_into_function): Account for possible breakpoint
12789 adjustment when computing ``stop_func_start''.
12790
12791 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12792
12793 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12794 the region size against the size of a pointer, not the size of
12795 a register as given by DEPRECATED_REGISTER_SIZE.
12796
12797 2004-01-19 Andrew Cagney <cagney@redhat.com>
12798
12799 * tui/tui-regs.h: Include "tui-data.h".
12800 (tuiFirstRegElementNoInLine): Delete declaration.
12801 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12802 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12803 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12804 (tui_calculate_regs_column_count): Rename
12805 tuiCalculateRegsColumnCount.
12806 (tui_check_register_values): Rename tuiCheckRegisterValues.
12807 (tui_show_registers): Rename tuiShowRegisters.
12808 (tui_display_registers_from_line): Rename
12809 tuiDisplayRegistersFromLine.
12810 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12811 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12812 (tui_first_reg_element_no_inline): Rename
12813 tuiFirstRegElementNoInLine.
12814 * tui/tui-data.h: Update copyright.
12815 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12816 * tui/tui-windata.c: Update copyright, update references.
12817 * tui/tui-regs.c: Update copyright, update references.
12818 * tui/tui-win.c: Update copyright, update references.
12819 * tui/tui-layout.c: Update copyright, update references.
12820
12821 2004-01-18 Andrew Cagney <cagney@redhat.com>
12822
12823 * tui/tui-io.c: Update copyright.
12824 (key_is_end_sequence, key_is_backspace): New functions.
12825 (key_is_command_char, key_is_start_sequence): New function.
12826 (tui_getc): Update references.
12827 * tui/tui-io.h: Update copyright.
12828 (m_tuiStartNewLine): Delete macro.
12829 (m_isBackspace, m_isDeleteChar): Delete macros.
12830 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12831 (m_isNextPage, m_isPrevPage): Delete macros.
12832 (m_isLeftArrow, m_isRightArrow): Delete macros.
12833 (m_isXdbStyleCommandChar): Delete macro.
12834 (key_is_start_sequence): Declare, replace m_isStartSequence.
12835 (key_is_end_sequence): Declare, replace m_isEndSequence.
12836 (key_is_backspace): Declare ,replace m_isBackspace.
12837 (key_is_command_char): Declare, replace m_isCommandChar.
12838 * tui/tui-command.c: Update copyright.
12839 (tuiDispatchCtrlChar): Update references.
12840
12841 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12842 tuiSourceWin.h.
12843
12844 * tui/tui-command.c: Rename tui/tuiCommand.c.
12845 * tui/tui-command.h: Rename tui/tuiCommand.h.
12846 * tui/tui-data.c: Rename tui/tuiData.c.
12847 * tui/tui-data.h: Rename tui/tuiData.h.
12848 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12849 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12850 * tui/tui-io.c: Rename tui/tuiIO.c.
12851 * tui/tui-io.h: Rename tui/tuiIO.h.
12852 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12853 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12854 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12855 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12856 * tui/tui-source.c: Rename tui/tuiSource.c.
12857 * tui/tui-source.h: Rename tui/tuiSource.h.
12858 * tui/tui-stack.c: Rename tui/tuiStack.c.
12859 * tui/tui-stack.h: Rename tui/tuiStack.h.
12860 * tui/tui-win.c: Rename tui/tuiWin.c.
12861 * tui/tui-win.h: Rename tui/tuiWin.h.
12862 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12863 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12864 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12865 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12866 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12867 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12868 * tui/tui-file.c: Update includes.
12869 * tui/tui-hooks.c: Update includes.
12870 * tui/tui-interp.c: Update includes.
12871 * tui/tui.c: Update includes.
12872 * Makefile.in: Update all tui/ dependencies.
12873 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12874
12875 * Makefile.in: Update copyright. Update dependencies.
12876
12877 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12878 problem.
12879
12880 2004-01-18 Andrew Cagney <cagney@redhat.com>
12881
12882 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12883 instead of register_gdbarch_init.
12884
12885 * remote-sds.c (tohex): Delete unused function. Update copyright.
12886 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12887 * v850-tdep.c (v850_register_virtual_size): Ditto.
12888 * target.c (normal_target_post_startup_inferior): Ditto.
12889 * source.c (ambiguous_line_spec): Ditto.
12890 * remote.c (adapt_remote_get_threadinfo): Ditto.
12891 * mi/mi-out.c (out_field_fmt): Ditto.
12892 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12893 (output_control_change_notification): Ditto.
12894 * m68k-tdep.c (m68k_register_byte): Ditto.
12895 (m68k_remote_breakpoint_from_pc): Ditto.
12896 * ui-out.c (init_ui_out_state): Delete unused declaration.
12897 * stabsread.c (search_value): Ditto.
12898 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12899 * maint.c (print_section_table): Ditto.
12900 * infrun.c (set_follow_fork_mode_command): Ditto.
12901
12902 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12903
12904 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12905 DW_CFA_def_cfa_exporession. Add support for
12906 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12907 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12908
12909 2004-01-18 Andrew Cagney <cagney@redhat.com>
12910
12911 * ocd.c: Update copyright.
12912 (bdm_read_register_command): Delete unused function.
12913 (_initialize_remote_ocd): Delete commented out reference.
12914 (get_quoted_char, reset_packet): Delete #if0ed function.
12915 (output_packet, put_quoted_char): Delete #if0ed function.
12916 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12917 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12918 (BDM_BREAKPOINT): Delete #if0ed macro.
12919 (remote_timeout): Delete #if0ed variable.
12920
12921 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12922
12923 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12924 (core-sol2.o): Remove dependency.
12925 * core-sol2.c: Remove file.
12926
12927 2004-01-17 Andrew Cagney <cagney@redhat.com>
12928
12929 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12930 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12931 enums.
12932
12933 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12934
12935 * remote.c: Update copyright years.
12936
12937 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12938
12939 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12940
12941 2004-01-17 Andrew Cagney <cagney@redhat.com>
12942
12943 * mdebugread.c: Update copyright.
12944 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12945 (parse_type, parse_procedure): Ditto.
12946 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12947
12948 * cris-tdep.c (cris_store_struct_return): Put back accidently
12949 deleted function.
12950
12951 * gdbarch.sh: Update copyright year.
12952 * gdbarch.h, gdbarch.c: Re-generate.
12953
12954 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12955
12956 Suggested by George Anzinger.
12957 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12958 correct stack offset. Include unknown opcode numbers in the error
12959 message.
12960
12961 2004-01-17 Andrew Cagney <cagney@redhat.com>
12962
12963 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12964 extract_struct_value_address, i386 does not set it.
12965 * sparc64-tdep.c (sparc64_init_abi): Do not set
12966 extract_struct_value_address, never called.
12967 (sparc64_extract_struct_value_address): Delete function.
12968 * m68hc11-tdep.c: Update copyright.
12969 (m68hc11_gdbarch_init): Delete redundant assignment of
12970 extract_struct_value_address.
12971 * i386-tdep.c: Update copyright.
12972 (i386_gdbarch_init): Do not set extract_struct_value_address,
12973 never called.
12974 (i386_extract_struct_value_address): Delete function.
12975 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12976 extract_struct_value_address, never called.
12977 (sparc32_extract_struct_value_address): #if 0 function. Add
12978 comments explaining its future.
12979
12980 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12981
12982 * arm-tdep.c (arm_write_pc): New function.
12983 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12984
12985 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12986
12987 * breakpoint.c (must_shift_inst_regs): Delete.
12988 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12989 and SHIFT_INST_REGS.
12990 * infcmd.c (step_1, step_1_continuation): Delete references to
12991 SHIFT_INST_REGS.
12992 * infrun.c (keep_going): Likewise.
12993 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12994 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12995
12996 2004-01-17 Andrew Cagney <cagney@redhat.com>
12997
12998 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12999 * gdbarch.h, gdbarch.c: Re-generate.
13000 * infcmd.c (print_return_value): Delete reference to
13001 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13002
13003 * cris-tdep.c (cris_gdbarch_init): Do not set
13004 deprecated_extract_struct_value_address.
13005
13006 * xstormy16-tdep.c: Update copyright.
13007 (xstormy16_extract_struct_value_address): Update to current
13008 extract struct value address interface.
13009 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13010 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13011 current extract struct value address interface.
13012 (sh64_gdbarch_init): Set extract_struct_value_address.
13013
13014 * cris-tdep.c: Update copyright.
13015 (cris_extract_struct_value_address): Delete function.
13016 (struct_return_address): Delete variable.
13017 (cris_store_struct_return): Do not set struct_return_address.
13018
13019 * mcore-tdep.c: Update copyright.
13020 (mcore_extract_struct_value_address): Delete function. Update
13021 comments.
13022 (mcore_gdbarch_init): Update.
13023 * mn10300-tdep.c: Update copyright.
13024 (mn10300_extract_struct_value_address): Delete function.
13025 (mn10300_gdbarch_init): Update.
13026 * v850-tdep.c: Update copyright.
13027 (v850_extract_struct_value_address): Delete.
13028 (v850_gdbarch_init): Update.
13029 * ns32k-tdep.c: Update copyright.
13030 (ns32k_extract_struct_value_address): Delete.
13031 (ns32k_gdbarch_init): Update.
13032 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13033 (hppa_gdbarch_init): Update.
13034 * vax-tdep.c: Update copyright.
13035 (vax_extract_struct_value_address): Delete.
13036 (vax_gdbarch_init): Update.
13037
13038 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13039 * gdbarch.h, gdbarch.c: Re-generate.
13040 * procfs.c (procfs_fetch_registers): Delete reference to
13041 DEPRECATED_NPC_REGNUM.
13042 (procfs_store_registers): Ditto.
13043 * regcache.c (generic_target_write_pc): Simplify.
13044 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13045
13046 * core-sol2.c (fetch_core_registers): Replace
13047 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13048
13049 * hppa-tdep.c: Update copyright year.
13050 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13051 NPC_REGNUM.
13052 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13053
13054 * mips-tdep.c (mips_write_pc): New function.
13055 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13056 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13057 (mips_find_saved_regs, mips_software_single_step: Ditto.
13058 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13059 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13060
13061 2004-01-17 Andrew Cagney <cagney@redhat.com>
13062
13063 * mips-tdep.c: Re-indent. Group functions by ABI.
13064
13065 2004-01-17 Andrew Cagney <cagney@redhat.com>
13066
13067 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13068 * gdbarch.c: Re-generate.
13069 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13070 DECR_PC_AFTER_BREAK to zero.
13071 * vax-tdep.c (vax_gdbarch_init): Ditto.
13072 * v850-tdep.c (v850_gdbarch_init): Ditto.
13073 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13074 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13075 * sh-tdep.c (sh_gdbarch_init): Ditto.
13076 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13077 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13078 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13079 * mips-tdep.c (mips_gdbarch_init): Ditto.
13080 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13082 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13083 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13084 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13085 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13086 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13087 * frv-tdep.c (frv_gdbarch_init): Ditto.
13088 * cris-tdep.c (cris_gdbarch_init): Ditto.
13089 * avr-tdep.c (avr_gdbarch_init): Ditto.
13090 * arm-tdep.c (arm_gdbarch_init): Ditto.
13091 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13092
13093 2004-01-17 J. Brobecker <brobecker@gnat.com>
13094
13095 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13096 Delete, no longer used.
13097 (read_subrange_type): New function, mostly extracted from
13098 read_array_type().
13099 (read_array_type): Replace extracted code by call to
13100 read_subrange_type().
13101 (dwarf2_get_attr_constant_value): New function.
13102 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13103 (add_partial_symbol): Likewise.
13104 (process_die): Likewise.
13105 (new_symbol): Likewise.
13106 (read_type_die): Likewise.
13107
13108 2004-01-16 Andrew Cagney <cagney@redhat.com>
13109
13110 * symfile.c: Update copyright year.
13111 (compare_symbols): Delete unused function.
13112 * stabsread.c: Update copyright year.
13113 (lrs_general_complaint): Delete unused function.
13114 (ref_search_value): Ditto.
13115 (get_substring): Delete declaration.
13116 * sh64-tdep.c: Update copyright year.
13117 (sh64_get_gdb_regnum): Delete unused function.
13118 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13119 Delete unused function.
13120
13121 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13122
13123 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13124 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13125
13126 2004-01-16 Andrew Cagney <cagney@redhat.com>
13127
13128 Changes from Peter Schauer.
13129 * rs6000-tdep.c: Update copyright year.
13130 (rs6000_push_dummy_call): Update the stack pointer before
13131 accessing the corresponding stack region.
13132 * rs6000-nat.c: Update copyright year.
13133 (set_host_arch): Set "info.abfd" to "exec_bfd".
13134
13135 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13136
13137 * blockframe.c: Update copyright year.
13138 (inside_entry_func): Don't treat a zero PC specially.
13139
13140 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13141
13142 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13143 variable.
13144 (gcore_create_callback): Ditto. Skip any memory segment that has
13145 no permissions set.
13146
13147 2004-01-14 David Carlton <carlton@kealia.com>
13148
13149 Change symbols for C++ nested types to contain the fully qualified
13150 name, if possible. (At least in the DWARF-2 case.) Partial fix
13151 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13152 c++/895.
13153 * c-exp.y (qualified_type): Handle types nested within classes.
13154 * cp-namespace.c: Update comments.
13155 (cp_set_block_scope): Delete #if 0.
13156 (cp_lookup_nested_type): Handle types nested within classes.
13157 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13158 when appropriate.
13159 (add_partial_symbol): Add the name of the enclosing namespace to
13160 types.
13161 (pdi_needs_namespace): New.
13162 (add_partial_namespace): Tweak comment.
13163 (add_partial_structure): New.
13164 (psymtab_to_symtab_1): Initialize processing_current_prefix
13165 here...
13166 (process_die): instead of here.
13167 (read_structure_scope): Try to figure out the name of the class or
13168 namespace that the structure might be defined within.
13169 (read_enumeration): Generate fully-qualified names, if possible.
13170 (read_namespace): Don't set name to NULL.
13171 (die_specification): New.
13172 (new_symbol): Generate fully-qualified names for types.
13173 (read_type_die): Determine appropriate prefix.
13174 (determine_prefix): New.
13175 (typename_concat): New.
13176 (class_name): New.
13177 * valops.c (value_aggregate_elt): Pass NOSIDE to
13178 value_struct_elt_for_reference.
13179 (value_struct_elt_for_reference): Make static, add NOSIDE
13180 parameter, call value_maybe_namespace_elt as a last resort.
13181 (value_namespace_elt): Break out code into
13182 value_maybe_namespace_elt.
13183 (value_maybe_namespace_elt): New.
13184
13185 2004-01-12 Andrew Cagney <cagney@redhat.com>
13186
13187 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13188 cooked floating-point registers.
13189 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13190 and value_to_register.
13191
13192 2004-01-13 Andrew Cagney <cagney@redhat.com>
13193
13194 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13195 * gdbarch.c: Re-generate.
13196 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13197 FUNCTION_START_OFFSET.
13198 * v850-tdep.c (v850_gdbarch_init): Ditto.
13199 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13200 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13201 * sh-tdep.c (sh_gdbarch_init): Ditto.
13202 * s390-tdep.c (s390_gdbarch_init): Ditto.
13203 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13204 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13205 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13206 * mips-tdep.c (mips_gdbarch_init): Ditto.
13207 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13208 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13210 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13211 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13212 * i386-tdep.c (i386_gdbarch_init): Ditto.
13213 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13214 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13215 * frv-tdep.c (frv_gdbarch_init): Ditto.
13216 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13217 * cris-tdep.c (cris_gdbarch_init): Ditto.
13218 * avr-tdep.c (avr_gdbarch_init): Ditto.
13219 * arm-tdep.c (arm_gdbarch_init): Ditto.
13220 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13221
13222 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13223
13224 * infrun.c (follow_fork_mode_ask): Remove.
13225 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13226 (follow_fork): Simplify and remove internal error for
13227 follow_fork_mode_ask.
13228 (_initialize_infrun): Update "set follow-fork-mode" help text.
13229
13230 2004-01-13 Andrew Cagney <cagney@redhat.com>
13231
13232 * configure.in: Update copyright year.
13233 (build_warnings): Add -Wunused-label.
13234 * configure: Re-generate.
13235
13236 2004-01-12 Andrew Cagney <cagney@redhat.com>
13237
13238 * exec.h (exec_ops): Make "extern".
13239
13240 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13241 the function is void.
13242 (mips_pseudo_register_write): Ditto.
13243
13244 2004-01-12 Andrew Cagney <cagney@redhat.com>
13245
13246 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13247 call. Never defined.
13248 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13249 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13250 (struct sparc_gregset, struct regcache): Ditto.
13251 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13252
13253 2004-01-12 Andrew Cagney <cagney@redhat.com>
13254
13255 * mi/ChangeLog: Delete file. Renamed to ...
13256 * mi/ChangeLog-1999-2003: New file.
13257 * tui/ChangeLog: Delete file. Renamed to ...
13258 * tui/ChangeLog-1998-2003: New file.
13259
13260 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13261
13262 * sparc64nbsd-tdep.c: Include "regset.h".
13263 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13264 Remove variables.
13265 (fetch_core_registers): Remove function.
13266 (sparc64nbsd_core_fns): Remove variable.
13267 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13268 functions.
13269 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13270 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13271 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13272
13273 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13274 sparc_extract_struct_value_address.
13275 (sparc32_gdbarch_init): Set extract_struct_value_address.
13276 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13277 function.
13278 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13279 return_value_on_stack.
13280
13281 * NEWS: Mention that %cs and %ss have been added to the AMD64
13282 configurations
13283
13284 * frame.c: Update copyright year.
13285 (get_prev_frame): Improve comment.
13286
13287 * sparc64fbsd-tdep.c: Include "regset.h".
13288 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13289 Remove variables.
13290 (fetch_core_registers): Remove function.
13291 (sparc64fbsd_core_fns): Remove variable.
13292 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13293 functions.
13294 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13295 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13296 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13297
13298 * sparcnbsd-tdep.c: Include "regset.h".
13299 (fetch_core_registers): Remove function.
13300 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13301 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13302 functions.
13303 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13304 TDEP->fpregset.
13305 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13306
13307 * sparc-tdep.h (struct regset): Provide opaque declaration.
13308 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13309 fpregset and sizeof_fpregset members.
13310 * sparc-tdep.c (struct regset): Provide opaque declaration.
13311 (sparc_regset_from_core_section): New function.
13312 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13313 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13314 Set regset_from_core_section when appropriate.
13315
13316 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13317
13318 * x86-64-tdep.c (amd64_non_pod_p): New function.
13319 (amd64_classify_aggregate): Return class memory for non-POD
13320 C++ structure types.
13321
13322 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13323 argument. Use it to reserve a register if necessary.
13324 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13325 amd64_push_arguments.
13326
13327 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13328
13329 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13330 register numbers in comments.
13331 * x86-64-tdep.h: Update copyright year.
13332 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13333 Adjust for addition of %cs and %ss.
13334 * amd64fbsd-nat.c: Update copyright year.
13335 (reg_offset): Add register offsets for %cs and %ss.
13336 * amd64fbsd-tdep.c: Update copyright year.
13337 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13338 (amd64fbsd_sc_reg_offset): Likewise.
13339 * x86-64-linux-nat.c: Update copyright year.
13340 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13341 and %ss.
13342 * amd64nbsd-nat.c: Update copyright year.
13343 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13344 * amd64nbsd-tdep.c: Update copyright year.
13345 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13346 * x86-64-linux-tdep.c: Update copyright year.
13347 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13348 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13349 * regformats/reg-x86-64.dat: Add %cs and %ss.
13350
13351 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13352 variables to prevent long lines. Update comments to reflect
13353 reality.
13354
13355 2004-01-09 David Carlton <carlton@kealia.com>
13356
13357 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13358 * dwarf2read.c (read_namespace): Pull out name-generating code
13359 into namespace_name. Rename previous_namespace to previous_prefix
13360 and processing_current_namespace to processing_current_prefix..
13361 (namespace_name): New function.
13362 (add_partial_symbol): Substitute uses of pdi->name with
13363 actual_name.
13364 * cp-support.h: Rename processing_current_namespace to
13365 processing_current_prefix.
13366 Update copyright year.
13367 * cp-namespace.c: Rename processing_current_namespace to
13368 processing_current_prefix.
13369 Update copyright year.
13370
13371 2004-01-09 Andrew Cagney <cagney@redhat.com>
13372
13373 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13374
13375 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13376
13377 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13378 complaining.
13379 (process_one_symbol): Deal with N_PATCH stabs.
13380
13381 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13382
13383 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13384 ifdeffed code.
13385 Update copyright year.
13386
13387 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13388
13389 * config/pa/tm-hppa.h: Update extern declarations for
13390 hppa32_hpux_frame_saved_pc_in_sigtramp,
13391 hppa32_hpux_frame_base_before_sigtramp, and
13392 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13393
13394 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13395
13396 * config/pa/tm-hppah.h: Update copyright years.
13397
13398 2004-01-08 Andrew Cagney <cagney@redhat.com>
13399
13400 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13401 (mips_o32_reg_struct_has_addr): Delete function.
13402 (mips_gdbarch_init): Update.
13403 (mips_extract_struct_value_address): Delete function.
13404
13405 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13406
13407 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13408 reality.
13409
13410 2004-01-07 Andrew Cagney <cagney@redhat.com>
13411
13412 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13413 architecture's elf flags (when available).
13414
13415 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13416 FPU to the start, check the MIPS FPU when looking for an old
13417 architecture.
13418 (set_mipsfpu_single_command): Update the architecture.
13419 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13420
13421 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13422 (mips_mask_address_p): Add "tdep" parameter.
13423 (show_mask_address, mips_addr_bits_remove): Update.
13424 (mips_dump_tdep): Update.
13425 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13426 (MIPS_STACK_ARGSIZE): Delete macro.
13427 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13428 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13429 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13430 (mips_dump_tdep): Update.
13431 (MIPS_SAVED_REGSIZE): Delete macro.
13432 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13433 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13434 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13435 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13436 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13437 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13438 (mips_pop_frame, return_value_location): Update.
13439 (mips_n32n64_return_value, mips_dump_tdep): Update.
13440
13441 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13442 MIPS ABI.
13443
13444 * mips-tdep.c: Update copyright.
13445 (mips_gdbarch_init): Merge two code blocks handling the register
13446 name and number layout.
13447
13448 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13449
13450 * tracepoint.c (validate_actionline): Fix segv at EOF
13451
13452 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13453
13454 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13455 properly for static fields.
13456
13457 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
13458 Jason Molenda <jmolenda@apple.com>
13459
13460 * disasm.c: Update copyright to include 2004.
13461 (do_mixed_source_and_assembly): For uiout asm list
13462 and tuple cleanups, initialize to null_cleanup instead of
13463 NULL and do so prior to loop. Only reset when we close off
13464 the tuple/list. Move check for whether to close off the
13465 asm tuple/list to after dump_insns call where it will be run
13466 on each loop iteration.
13467
13468 2004-01-05 Andrew Cagney <cagney@redhat.com>
13469
13470 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13471 should be a switch case and not a label.
13472 * mips-tdep.c (mips32_next_pc): Delete unused labels
13473 "greater_equal_branch" and "less_zero_branch".
13474 * jv-valprint.c (java_print_value_fields): Delete unused label
13475 "flush_it".
13476
13477 * target.c (unpush_target): Only close a target that is in the
13478 target stack.
13479
13480 2004-01-05 Mark Kettenis <kettenis@gnu.org>
13481
13482 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13483 address from [sp + 64] instead of %o2.
13484
13485 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13486 fixes PR backtrace/1476.
13487
13488 2004-01-05 Andrew Cagney <cagney@redhat.com>
13489
13490 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13491 move to start of file.
13492 * i386-tdep.h (struct regcache): Add opaque declaration.
13493 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13494 declaration.
13495 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13496 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13497 * win32-nat.c (fake_create_process): Use ISO C style definition.
13498 * stabsread.c (define_symbol): Delete #ifndef
13499 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13500 stabs_argument_has_addr call, macro never defined.
13501
13502 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13503
13504 * op50-rom.c: Delete.
13505 * w89k-rom.c: Delete.
13506 * Makefile.in: Remove references.
13507
13508 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13509
13510 * x86-64-tdep.c: Update copyright year.
13511 (struct amd64_register_info): Rename from x86_64_register_info.
13512 (amd64_register_info): Rename from x86_64_register_info.
13513 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13514 (amd64_register_name): Rename from x86_64_register_name.
13515 (amd64_register_type): Rename from x86_64_register_type.
13516 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13517 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13518 (amd64_dwarf_reg_to_regnum): Rename from
13519 x86_64_dwarf_reg_to_regnum.
13520 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13521 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13522 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13523 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13524 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13525 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13526 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13527 (amd64_frame_cache): Rename from x86_64_frame_cache.
13528 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13529 (amd64_frame_prev_register): Rename from
13530 x86_64_frame_prev_register.
13531 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13532 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13533 (amd64_sigtramp_frame_cache): Rename from
13534 x86_64_sigtramp_frame_cache.
13535 (amd64_sigtramp_frame_prev_register): Rename from
13536 x86_64_sigtramp_frame_prev_register.
13537 (amd64_sigtramp_frame_unwind): Rename from
13538 x86_64_sigtramp_frame_unwind.
13539 (amd64_sigtramp_frame_sniffer): Rename from
13540 x86_64_sigtramp_frame_sniffer.
13541 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13542 (amd64_frame_base): Rename from x86_64_frame_base.
13543 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13544 (amd64_frame_align): Rename from x86_64_frame_align.
13545 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13546 (amd64_regset_from_core_section): Rename from
13547 x86_64_regset_from_core_section.
13548 (x86_64_init_abi): Update comments.
13549
13550 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
13551
13552 * MAINTAINERS (write after approval): Add myself.
13553
13554 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13555
13556 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13557 `float' arguments.
13558
13559 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13560
13561 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13562 such that it mentions a specific version of GCC that exhibits this
13563 bug.
13564
13565 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13566
13567 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13568 structure that has a single `float' member, store it in %f1 in
13569 addition to %f0.
13570
13571 * sparc-sol2-nat.c: Add missing '\'.
13572
13573 * sparc-tdep.c (sparc32_return_value): New function.
13574 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13575 Remove functions.
13576 (sparc32_gdbarch_init): Set return_value, don't set
13577 extract_return_value, store_return_value, use_struct_convention
13578 and return_value_on_stack.
13579
13580 * sparc-sol2-nat.c: Add missing ')'.
13581
13582 2004-01-03 J. Brobecker <brobecker@gnat.com>
13583
13584 * infrun.c (handle_step_into_function): New function.
13585 (handle_inferior_event): Extract out some code into the new
13586 function above.
13587
13588 2004-01-03 J. Brobecker <brobecker@gnat.com>
13589
13590 * infrun.c (handle_inferior_event): Move the declaration of
13591 real_stop_pc inside the if blocks where it is used.
13592
13593 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13594
13595 * sparc64-tdep.c (sparc64_16_byte_align_p)
13596 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13597 Use check_typedef to get subtypes of structures and unions.
13598 (sparc64_store_return_value): Fix calculation of the appropriate
13599 offset into VALBUF when storing a structure or union.
13600 (sparc64_return_value): New function.
13601 (sparc64_use_struct_convention): Remove function.
13602 (sparc64_init_abi): Set return_value, don't set
13603 extract_return_value, store_return_value and
13604 use_struct_convention.
13605
13606 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
13607
13608 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13609 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13610 gdb/config/alpha/xm-alphaosf.h,
13611 gdb/config/powerpc/tm-ppcle-eabi.h,
13612 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13613 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13614 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13615 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13616 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13617 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13618 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13619 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13620 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13621 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13622 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13623 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13624 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13625 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13626 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13627 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13628 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13629 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13630 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13631 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13632 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13633 Remove lines for .cvsignore files.
13634
13635 2004-01-03 J. Brobecker <brobecker@gnat.com>
13636
13637 * infrun.c: Back out the previous change.
13638
13639 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13640
13641 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13642 sparc-*-sunos4* to the list of REMOVED configurations.
13643
13644 * configure.tgt: Add back sparc-*-vxworks*.
13645 * remote-vxsparc.c: Remove all includes except for "defs.h",
13646 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13647 Include "sparc-tdep.h".
13648 (SPARC_R_G1): New define.
13649 (vxsparc_gregset): New variable.
13650 (ext_format_sparc): Remove extern declaration.
13651 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13652 sparc32_supply_fpregset.
13653 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13654 sparc_collect_rwindow and sparc32_collect_fpregset.
13655 * config/sparc/tm-vxworks.h: New file, based on recently removed
13656 tm-vxsparc.h.
13657 * config/sparc/vxworks.mt: New file, based on recently removed
13658 vxworks.mt.
13659
13660 2004-01-03 J. Brobecker <brobecker@gnat.com>
13661
13662 * infrun.c (handle_step_into_function): New function.
13663 (handle_inferior_event): Extract out some code into the new
13664 function above.
13665
13666 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13667
13668 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13669 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13670 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13671 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13672 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13673 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13674 (sparc_nat_h): New variable.
13675 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13676 (tm-sun4os4.h): Remove dependency.
13677 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13678 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13679 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13680 sparc-tdep.o): Update dependencies.
13681 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13682 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13683 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13684 dependencies.
13685 * configure.host: Remove existing sparc-*-lynxos*,
13686 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13687 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13688 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13689 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13690 triplets.
13691 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13692 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13693 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13694 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13695 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13696 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13697 sparc64-*-solaris2* and sparc64-*-* triplets.
13698 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13699 "symtab.h" and "objfiles.h".
13700 (BIAS): Remove define.
13701 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13702 (X_DISP19): Remove macros.
13703 (sparc_fetch_instruction): Remove function.
13704 (struct gdbarch_tdep): Remove definition.
13705 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13706 (sparc_breakpoint_from_pc): Remove function.
13707 (struct sparc64_frame_cache): Remove definition.
13708 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13709 sparc64_unwind_pc): Remove functions.
13710 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13711 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13712 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13713 (sparc64_frame_cache): Change return type to `struct
13714 sparc_frame_cache *'. Simply call sparc_frame_cache.
13715 (sparc64_frame_this_id, sparc64_frame_prev_register,
13716 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13717 instead of `struct sparc64_frame_cache.
13718 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13719 sparc_analyze_control_transfer, sparc_software_single_step,
13720 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13721 _initialize_sparc64_tdep): Remove functions.
13722 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13723 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13724 macros.
13725 (sparc64_supply_gregset, sparc64_collect_gregset,
13726 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13727 (sparc64_init_abi): New function.
13728 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13729 inclusion guard. Include "sparc-tdep.h".
13730 (BIAS): Define.
13731 (r_tstate_offset, r_fprs_offset): New defines.
13732 (enum sparc_regnum): Remove defenition.
13733 (enum sparc64_regnum): Reformat.
13734 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13735 (sparc64_init_abi, sparc64_supply_gregset,
13736 sparc64_collect_gregset, sparc64_supply_fpregset,
13737 sparc64_collect_fpregset): New prototypes.
13738 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13739 Add extern declarations.
13740 (sparc64_sol2_init_abi): New prototype.
13741 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13742 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13743 prototypes.
13744 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13745 "sparnbsd-nat.h".
13746 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13747 functions.
13748 (_initialize_sparc64fbsd_nat): Remove initialization of
13749 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13750 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13751 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
13752 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13753 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13754 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13755 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13756 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13757 (sparc64fbsd_r_y_offset): Remove variables.
13758 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13759 Make static and const.
13760 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13761 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13762 functions.
13763 (sparc64fbsd_gregset): New variable.
13764 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13765 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13766 and sparc64_supply_fpregset.
13767 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13768 (sparc64fbsd_sigtramp_frame_this_id)
13769 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13770 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13771 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13772 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13773 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13774 * sparcnbsd-tdep.c: Update copyright year. Include
13775 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13776 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13777 "value.h" and "sparcnbsd-tdep.h".
13778 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13779 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13780 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13781 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13782 defines.
13783 (sparcnbsd_gregset): New variable.
13784 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13785 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13786 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13787 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13788 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13789 variables.
13790 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13791 (sparc32nbsd_sigcontext_frame_this_id)
13792 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13793 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13794 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13795 (sparcnbsd_get_longjmp_target_32,
13796 sparcnbsd_get_longjmp_target_64): Remove functions.
13797 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13798 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13799 sparcnbsd_init_elf): Remove.
13800 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13801 (sparcnbsd_elf_init_abi): New functions.
13802 (_initialize_sparcnbsd_tdep): New prototype.
13803 (_initialize_sparnbsd_tdep): Update.
13804 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13805 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13806 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13807 * config/sparc/linux.mh: Update comment.
13808 (XM_FILE, HOST_IPC): Remove variables.
13809 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13810 sparc-linux-nat.o.
13811 * config/sparc/linux.mt: Update comment.
13812 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13813 * config/sparc/nbsd.mt: Reformat.
13814 * config/sparc/nbsd64.mh: Update comment.
13815 (NATDEPFILES): Add sparc-nat.o.
13816 * config/sparc/nbsd64.mt: Update comment.
13817 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13818 (TM_FILE): Set to tm-nbsd.h.
13819 * config/sparc/nbsdelf.mh: Update comment.
13820 (NATDEPFILES): Add sparc-nat.o.
13821 (XM_FILE): Delete.
13822 * config/sparc/nbsdaout.mh: Update comment.
13823 (NATDEPFILES): Add sparc-nat.o
13824 (XM_FILE): Delete.
13825 * config/sparc/nm-linux.h: Update copyright year. Don't include
13826 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13827 inclusion.
13828 (KERNEL_U_SIZE): Remove define.
13829 (kernel_u_size): Remove prototype.
13830 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13831 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13832 "regcache.h".
13833 (CHILD_PREPARE_TO_STORE): Remove define.
13834 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13835 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13836 sparcnbsd-nat.c: Rewrite files.
13837 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13838 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13839 sparcnbsd-tdep.h: Remove files.
13840 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13841 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13842 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13843 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13844 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13845 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13846 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13847 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13848 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13849 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13850 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13851 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13852 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13853 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13854 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13855 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13856 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13857 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13858 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13859
13860 2004-01-02 Andrew Cagney <cagney@redhat.com>
13861
13862 From 2003-12-18 Kazuhiro Inaoka:
13863 * configure.host: Add m32r-linux target.
13864
13865 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13866
13867 * top.c (print_gdb_version): Update year to 2004.
13868
13869 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13870
13871 * MAINTAINERS: Add myself to the write-after-approval category.
13872
13873 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13874
13875 From Bernardo Innocenti <bernie@develer.com>:
13876 * configure.tgt: Add uClinux target.
13877
13878 2004-01-02 Andrew Cagney <cagney@redhat.com>
13879
13880 * utils.c (do_my_cleanups): Make static, add forward declaration.
13881 * defs.h (do_my_cleanups): Delete declaration.
13882
13883 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13884
13885 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13886 bfd/ChangeLog-0203.
13887
13888 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13889
13890 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13891 in <machine/reg.h>.
13892 * configure, config.in: Regenerate.
13893
13894 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13895 tui/ChangeLog-1998-2003.
13896 \f
13897 Local Variables:
13898 mode: change-log
13899 left-margin: 8
13900 fill-column: 74
13901 version-control: never
13902 End:
This page took 0.33846 seconds and 4 git commands to generate.