2004-07-28 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5a44ea29
AC
12004-07-28 Andrew Cagney <cagney@gnu.org>
2
3 * language.h (struct language_arch_info): Fix typo
4 s/primative/primitive/.
5 * gdbtypes.c (lookup_primitive_typename): Ditto.
6 * language.c (language_lookup_primitive_type_by_name)
7 (unknown_language_arch_info): Ditto.
8
f290d38e
AC
92004-07-27 Andrew Cagney <cagney@gnu.org>
10
11 * defs.h (enum language): Add nr_languages.
12 * language.h (struct language_arch_info): Define.
13 (struct language_defn): Add la_language_arch_info.
14 (language_lookup_primative_type_by_name): Declare.
15 (language_string_char_type): Declare.
16 * language.c (_initialize_language, language_gdbarch_post_init)
17 (struct language_gdbarch, language_gdbarch_data): Implement
18 per-architecture language information.
19 (unknown_language_arch_info, language_string_char_type)
20 (language_lookup_primative_type_by_name): New functions.
21 (unknown_language_defn, auto_language_defn)
22 (local_language_defn): Set la_language_arch_info to
23 unknown_language_arch_info.
24 (unknown_builtin_types): Delete.
25 * gdbtypes.c (lookup_primitive_typename): Use
26 language_lookup_primative_type_by_name.
27 (create_string_type): Use language_string_char_type.
28 * values.c (value_from_string): Use language_string_char_type.
29 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
30 * p-lang.c (pascal_language_defn): Ditto.
31 * m2-lang.c (m2_language_defn): Ditto.
32 * jv-lang.c (java_language_defn): Ditto.
33 * objc-lang.c (objc_language_defn): Ditto.
34 * f-lang.c (f_language_defn): Ditto.
35 * c-lang.c (c_language_defn, cplus_language_defn)
36 (asm_language_defn, minimal_language_defn): Ditto.
37
000177f0
AC
382004-07-27 Andrew Cagney <cagney@gnu.org>
39
40 * gdbtypes.h (struct builtin_type): Declare.
41 (builtin_type): Declare.
42 * d10v-tdep.c (d10v_register_type): Use builtin_type.
43 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
44 (gdbtypes_post_init): New function.
45 (builtin_type): New function.
46
e22f895c
KI
472004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
48
49 * remote-m32r-sdi.c: Fix breakpoint bug.
50 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
51 recv_char_data, recv_long_data): New functions to replace communication
52 sequences.
53
536517dd
MC
542004-07-26 Michael Chastain <mec.gnu@mindspring.com>
55
56 Document PR threads/1650.
57 * PROBLEMS (Threads): Document problem with many threads
58
a0a44d18
AC
592004-07-26 Andrew Cagney <cagney@gnu.org>
60
61 * gdb-mi.el: Move from here ...
62 * mi/gdb-mi.el: ... to here.
63
7ac4ac06
AC
642004-07-26 Andrew Cagney <cagney@gnu.org>
65
66 Problem reported by Ashley Pittman <ashley@quadrics.com>.
67 * main.c (captured_main): When in batch mode always detach.
68
a1b461bf
AC
692004-07-26 Andrew Cagney <cagney@gnu.org>
70
71 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
72 and h8300 as broken.
73 * NEWS: END-OF-LIFE frame compatibility module.
74 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
75 specific comments.
76
cb1a6d5f
AC
772004-07-26 Andrew Cagney <cagney@gnu.org>
78
79 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
80 * xcoffsolib.c (_initialize_xcoffsolib): Update.
81 * wince.c (_initialize_wince): Update.
82 * win32-nat.c (_initialize_win32_nat): Update.
83 * varobj.c (_initialize_varobj): Update.
84 * valops.c (_initialize_valops): Update.
85 * utils.c (initialize_utils, initialize_utils): Update.
86 * tui/tui-win.c (_initialize_tui_win): Update.
87 * top.c (init_main): Update.
88 * symfile.c (_initialize_symfile): Update.
89 * source.c (_initialize_source): Update.
90 * somsolib.c (_initialize_som_solib): Update.
91 * solib.c (_initialize_solib): Update.
92 * solib-frv.c (_initialize_frv_solib): Update.
93 * serial.c (_initialize_serial): Update.
94 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
95 * remote.c (_initialize_remote, _initialize_remote): Update.
96 * remote-vx.c (_initialize_vx): Update.
97 * remote-utils.c (_initialize_sr_support): Update.
98 * remote-sds.c (_initialize_remote_sds): Update.
99 * remote-mips.c (_initialize_remote_mips): Update.
100 * remote-e7000.c (_initialize_remote_e7000): Update.
101 * proc-api.c (_initialize_proc_api): Update.
102 * printcmd.c: Update.
103 * parse.c (_initialize_parse): Update.
104 * pa64solib.c (_initialize_pa64_solib): Update.
105 * p-valprint.c (_initialize_pascal_valprint): Update.
106 * monitor.c (_initialize_remote_monitors): Update.
107 * mips-tdep.c (_initialize_mips_tdep): Update.
108 * mcore-tdep.c (_initialize_mcore_tdep): Update.
109 * maint.c (_initialize_maint_cmds): Update.
110 * lin-lwp.c (_initialize_lin_lwp): Update.
111 * language.c (_initialize_language): Update.
112 * kod.c (_initialize_kod): Update.
113 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
114 * i386-tdep.c (_initialize_i386_tdep): Update.
115 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
116 * gdbarch.sh: Update.
117 * gdbarch.c: Re-generate.
118 * gdb-events.sh: Update.
119 * gdb-events.c: Re-generate.
120 * frame.c (_initialize_frame): Update.
121 * exec.c: Update.
122 * demangle.c (_initialize_demangler): Update.
123 * dcache.c (_initialize_dcache): Update.
124 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
125 * cp-valprint.c (_initialize_cp_valprint): Update.
126 * corefile.c (_initialize_core): Update.
127 * command.h: Update.
128 * cli/cli-decode.h: Update.
129 * cli/cli-cmds.c (init_cli_cmds): Update.
130 * charset.c (_initialize_charset): Update.
131 * breakpoint.c (_initialize_breakpoint): Update.
132 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
133 * alpha-tdep.c (_initialize_alpha_tdep): Update.
134 * aix-thread.c (_initialize_aix_thread): Update.
135
b4632131
MK
1362004-07-24 Mark Kettenis <kettenis@gnu.org>
137
138 Partial fix for PR backtrace/1718.
139 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
140 that GCC migrates into the prolugue. Don't handle any
141 instructions that clobber %ebx.
142
822c9732
AC
1432004-07-23 Andrew Cagney <cagney@gnu.org>
144
145 Use regcache_raw_collect instead of regcache_collect.
146 * regcache.h (regcache_collect): Delete declaration.
147 * regcache.c (regcache_colect): Delete function.
148 * win32-nat.c (do_child_store_inferior_registers): Update.
149 * sol-thread.c (sol_thread_store_registers): Update.
150 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
151 * rs6000-nat.c (store_register): Update.
152 * remote.c (store_register_using_P, remote_store_registers): Update.
153 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
154 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
155 (fill_vrregset, store_spe_registers, fill_gregset)
156 (fill_gregset): Update.
157 * nto-procfs.c (procfs_store_registers): Update.
158 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
159 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
160 * m68klinux-nat.c (store_register, fill_gregset): Update.
161 * m68k-tdep.c (fill_gregset): Update.
162 * infptrace.c (store_register): Update.
163 * i386-nto-tdep.c (i386nto_regset_fill): Update.
164 * i386-linux-nat.c (store_register, fill_gregset): Update.
165 * hppa-linux-nat.c (fill_gregset): Update.
166 * go32-nat.c (store_register): Update.
167 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
168 (store_fp_regs): Update.
169 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
170 (store_nwfpe_extended, store_fpregister, store_fpregs)
171 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
172 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
173 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
174 (store_regs_user_thread, store_regs_kernel_thread): Update.
175
32b05c07
MK
1762004-07-24 Mark Kettenis <kettenis@gnu.org>
177
178 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
179 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
180 encoding.
181 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
182 member of `struct comp_unit'.
183
8567c30f
AC
1842004-07-23 Andrew Cagney <cagney@gnu.org>
185
186 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
187 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
188
f6da8dd8
MH
1892004-07-23 Martin Hunt <hunt@redhat.com>
190 Kevin Buettner <kevinb@redhat.com>
191
192 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
193 alignment was being added to the offset instead of multiplied.
194
bd921882
MK
1952004-07-23 Mark Kettenis <kettenis@gnu.org>
196
24f033e8
MK
197 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
198 changed signal trampoline in OpenBSD 3.5-current.
199
90f3cecd
MK
200 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
201 <machine/pcb.h> and "bsd-kvm.h".
202 (sparc64nbsd_supply_pcb): New function.
203 (_initialize_sparc64nbsd_nat): Renamed from
204 _initialize_sparcnbsd_nat. Enable libkvm interface.
205 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
206 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
207 (LOADLIBES): New variable.
208
a4954a62
MK
209 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
210
bd921882
MK
211 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
212
23a6d369
AC
2132004-07-21 Andrew Cagney <cagney@gnu.org>
214
215 Use regcache_raw_supply instead of supply_register.
216 * regcache.h (supply_register): Delete declaration.
217 * regcache.c (supply_register): Delete function.
218 * wince.c (do_child_fetch_inferior_registers): Update.
219 * win32-nat.c (do_child_fetch_inferior_registers)
220 (fetch_elf_core_registers): Update.
221 * v850ice.c (v850ice_fetch_registers): Update.
222 * thread-db.c (thread_db_store_registers): Update.
223 * sol-thread.c (sol_thread_store_registers): Update.
224 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
225 * rs6000-nat.c (fetch_register): Update.
226 * rom68k-rom.c (rom68k_supply_one_register): Update.
227 * remote.c (remote_wait, remote_async_wait): Update.
228 * remote-st.c (get_hex_regs): Update.
229 * remote-sim.c (gdbsim_fetch_register): Update.
230 * remote-sds.c (sds_fetch_registers): Update.
231 * remote-rdp.c (remote_rdp_fetch_register): Update.
232 * remote-rdi.c (arm_rdi_fetch_registers): Update.
233 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
234 * remote-m32r-sdi.c (m32r_fetch_register): Update.
235 * remote-hms.c (init_hms_cmds): Update.
236 * remote-est.c (init_est_cmds): Update.
237 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
238 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
239 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
240 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
241 (fetch_register, supply_vrregset, supply_vrregset)
242 (fetch_spe_registers): Update.
243 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
244 * monitor.c (monitor_supply_register): Update.
245 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
246 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
247 (mipsnbsd_supply_fpreg): Update.
248 * mips-nat.c (fetch_inferior_registers)
249 (fetch_core_registers): Update.
250 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
251 (supply_fpregset, mips64_supply_gregset)
252 (mips64_supply_fpregset): Update.
253 * m68klinux-nat.c (fetch_register, supply_gregset)
254 (supply_fpregset): Update.
255 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
256 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
257 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
258 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
259 * infptrace.c (fetch_register): Update.
260 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
261 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
262 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
263 (gnu_fetch_registers, gnu_store_registers): Update.
264 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
265 * i386-linux-nat.c (fetch_register, supply_gregset)
266 (dummy_sse_values): Update.
267 * hpux-thread.c (hpux_thread_fetch_registers): Update.
268 * hppah-nat.c (fetch_register): Update.
269 * hppa-linux-nat.c (fetch_register, supply_gregset)
270 (supply_fpregset): Update.
271 * go32-nat.c (fetch_register): Update.
272 * dve3900-rom.c (fetch_bitmapped_register)
273 (_initialize_r3900_rom): Update.
274 * cris-tdep.c (supply_gregset): Update.
275 * abug-rom.c (init_abug_cmds): Update.
276 * core-aout.c (fetch_core_registers): Update.
277 * armnbsd-nat.c (supply_gregset, supply_fparegset)
278 (fetch_register, fetch_fp_register): Update.
279 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
280 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
281 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
282 * alphanbsd-tdep.c (fetch_core_registers): Update.
283 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
284 * alpha-nat.c (fetch_osf_core_registers)
285 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
286 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
287 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
288
73cc75f3
AC
2892004-07-21 Andrew Cagney <cagney@gnu.org>
290
291 * PROBLEMS: Mention breakpoints/1702.
292 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
293 that is known to work.
294
a53c66de
AC
2952004-07-21 Andrew Cagney <cagney@gnu.org>
296
297 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
298 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
299 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
300 (handle_inferior_event): Wrap call to deprecated
301 IGNORE_HELPER_CALL in #ifdef.
302 * config/mips/tm-nbsd.h: Update.
303
708ff411
JB
3042004-07-20 Jim Blandy <jimb@redhat.com>
305
412b3060
JB
306 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
307 bfd_mach_ppc has no segment registers.
308
13ac140c
JB
309 Include PowerPC SPR numbers for special-purpose registers.
310 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
311 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
312 new member in initializer.
313 (S, S4, SN4, S64): New macros for defining special-purpose
314 registers.
315 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
316 registers_403, registers_403GC, registers_505, registers_860,
317 registers_601, registers_602, registers_603, registers_604,
318 registers_750, registers_e500): Use them.
319
708ff411
JB
320 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
321 replace references with expression used to initialize variable.
322
1f602b35
AC
3232004-07-20 Andrew Cagney <cagney@gnu.org>
324
325 * breakpoint.c (deprecated_read_memory_nobpt): Rename
326 read_memory_nobpt.
327 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
328 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
329 (s390_sigtramp_frame_sniffer): Update.
330 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
331 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
332 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
333 (mips32_fetch_instruction): Update.
334 * mcore-tdep.c (get_insn): Update.
335 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
336 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
337 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
338 * i386-linux-tdep.c (i386_linux_sigtramp_start)
339 (i386_linux_rt_sigtramp_start): Update.
340 * i386-linux-nat.c (child_resume): Update.
341 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
342 * hppa-linux-tdep.c (insns_match_pattern): Update.
343 * gdbcore.h: Update.
344 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
345 * frame.c (safe_frame_unwind_memory): Update.
346 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
347 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
348 * alpha-tdep.c (alpha_read_insn): Update.
349
2cd8546d
AC
3502004-07-20 Andrew Cagney <cagney@gnu.org>
351
352 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
353 containing both bytes and mask. Add "frame_type".
354 * tramp-frame.c (tramp_frame_start): Update.
355 (tramp_frame_prepend_unwinder): Update.
356 * mips-linux-tdep.c (mips_linux_o32_sigframe)
357 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
358 (mips_linux_n64_rt_sigframe): Update. Make "static const".
359 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
360
f928dd62
EZ
3612004-07-19 Eli Zaretskii <eliz@gnu.org>
362
363 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
364 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
365 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
366 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
367
d5c560f7
AC
3682004-07-17 Andrew Cagney <cagney@gnu.org>
369
860660cb
AC
370 * NEWS, PROBLEMS: Update for 6.2.
371
8c266f54
AC
372 * README: Update to 6.2.
373
a552edd9
AC
374 * utils.c (xvasprintf): Call xstrvprintf.
375
c4a172b5
AC
376 * parse.c: Update copyright.
377 (null_post_parser): Eliminate ARGSUSED.
378
da745b36
AC
379 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
380 * tui/tui-win.c (tui_get_cmd_list): Ditto.
381 * symfile-mem.c (_initialize_symfile_mem): Ditto.
382
9cbc6ef0
AC
383 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
384 * ppc-linux-nat.c: Use "Linux kernel".
385 * hppa-linux-tdep.c: Use GNU/Linux.
386 * hppa-linux-nat.c: Use GNU/Linux.
387 * dwarfread.c: Add [sic] to use of Linux.
388
1b89295f
AC
389 * hppa-linux-nat.c: Do not include <string.h>.
390 (supply_fpregset): Remove "register" attribute.
391
d5c560f7
AC
392 * solib-frv.c (fetch_loadmap): Use xfree, not free.
393
7ddd7709
MK
3942004-07-17 Mark Kettenis <kettenis@gnu.org>
395
b1d19a62
MK
396 * configure.in: Define _MSE_INT_H on Solaris 9 too.
397 * configure, config.in: Regenerated.
398
7ddd7709
MK
399 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
400 "bsd-kvm.h".
401 (vaxbsd_supply_pcb): New function.
402 (_initialize_vaxbsd_nat): New prototype and function.
403 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
404 solib-sunos.o.
405 (LOADLIBES): New variable.
406 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
407 (LOADLIBES): New variable.
408 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
409 (LOADLIBES): New variable.
410 * Makefile.in (vaxbsd-nat.o): Update dependencies.
411
2c07db7a
AC
4122004-07-16 Andrew Cagney <cagney@gnu.org>
413
414 * defs.h (event_loop_p): Replace variable declaration with macro,
415 always 1.
416 * main.c (captured_main): Delete options "-async" and "-noasync".
417 (event_loop_p): Delete variable.
418 * NEWS: Mention that "-async" and "-noasync" were removed.
419
717eb1cf
AC
4202004-07-16 Andrew Cagney <cagney@gnu.org>
421
422 * remote-m32r-sdi.c: Re-indent.
423
c101bc14
JB
4242004-07-16 Jim Blandy <jimb@redhat.com>
425
5109a438
JB
426 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
427 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
428 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
429 missing MPC823 SPRs.
430 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
431 incorrect. (This was corrected in GDB's register name tables on
432 2004-07-14.)
433
c101bc14
JB
434 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
435 should be "esasrr" ("ESA Save and Restore Register").
436
7ce450bd
AC
4372004-07-16 Andrew Cagney <cagney@gnu.org>
438
439 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
440 calls, no longer applicable. Update comments and rename parameter
441 "step_frame" to "return_frame".
442
ca73dd9d
AC
4432004-07-16 Andrew Cagney <cagney@gnu.org>
444
445 * frame.c (fprint_field): New function.
446 (fprint_frame_id): Use fprint_field.
447
31941f6d
JB
4482004-07-15 Joel Brobecker <brobecker@gnat.com>
449
450 * ada-lang.c (ada_language_defn): Remove commented out code.
451
f86a7158
JB
4522004-07-15 Jim Blandy <jimb@redhat.com>
453
454 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
455 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
456
c24791ec
JB
4572004-07-14 Jim Blandy <jimb@redhat.com>
458
29bb1356
JB
459 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
460
cc98b5cc
JB
461 * ppc-tdep.h (ppc_num_vrs): New enum constant.
462
8f088af7
JB
463 * ppc-tdep.h (ppc_num_srs): New enum constant.
464
0ea0ec5f
JB
465 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
466 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
467 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
468 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
469 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
470 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
471 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
472 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
473 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
474 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
475 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
476 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
477 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
478 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
479 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
480 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
481 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
482 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
483 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
484 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
485 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
486 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
487 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
488 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
489 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
490 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
491 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
492 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
493 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
494 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
495 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
496 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
497 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
498 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
499 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
500 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
501 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
502 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
503 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
504 special-purpose register numbers.
505
c24791ec
JB
506 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
507 manual mentions 'md_twb', but many mention 'm_twb', and at that
508 point in the register list.)
509
d833db3b
AC
5102004-07-14 Andrew Cagney <cagney@gnu.org>
511
512 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
513 instead of "internal-error".
514
080228b2
JB
5152004-07-10 Joel Brobecker <brobecker@gnat.com>
516
517 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
518 that was inserted inside a comment.
519
c268433a
RC
5202004-07-10 Randolph Chung <tausq@debian.org>
521
522 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
523 function.
524 (hppa_hpux_push_dummy_code): New function.
525 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
526 Set find_global_pointer method.
527
71009278
MK
5282004-07-10 Mark Kettenis <kettenis@gnu.org>
529
530 * NEWS: Mention BSD libkvm interface.
531
b2fa5097
MS
5322004-07-10 Michael Snyder <msnyder@redhat.com>
533
534 * symfile.c (generic_load): Comment typo.
535 * stack.c (get_selected_block): Ditto.
536 * regcache.c (regcache_cooked_read): Ditto.
537 * monitor.c (monitor_debug): Ditto.
538 * mips-tdep.c (mips_read_pc): Ditto.
539 * i386-linux-nat.c (ps_get_thread_area): Ditto.
540 * gdb_mbuild.sh: Ditto.
541 * gdbarch.sh: Ditto.
542 * gdbarch.h: Ditto.
543
c3e5cd34
PH
5442004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
545
8a2225b2
PH
546 * ada-tasks.c: Remove file.
547
c3e5cd34
PH
548 Remove ARI problems:
549
550 * ada-exp.y (write_var_from_sym): Reformat to put operator at
551 beginning of line.
552
553 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
554 Add comment.
555 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
556 (MIN_OF_SIZE): Rename min_of_size. Add comment.
557 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
558 (UMIN_OF_SIZE): Remove.
559 (max_of_type): New function to replace orphan macro in gdbtypes.h
560 (min_of_type): Ditto.
561 (discrete_type_high_bound): Use max_of_type.
562 (discrete_type_low_bound): Use min_of_type.
563 (possible_user_operator_p): Move operator to beginning of line.
564 (ada_is_variant_part): Ditto.
565 (ensure_lval): Rewrite to avoid deprecated operations.
566 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
567 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
568 (ada_enum_name): Remove assignments in 'if' statements.
569 (build_ada_types): Add gdbarch parameter.
570 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
571 with gdbarch_data_register_post_init.
572 Use add_setshow_uinteger_cmd rather than add_set_cmd and
573 add_show_from_set.
574
575 * ada-valprint.c (inspect_it): Remove declaration.
576 (repeat_count_threshold): Remove declaration.
577 (ada_print_floating): Remove assignments in 'if' statements.
578 (print_str): Move operator to beginning of line.
579
61ce229a
JB
5802004-07-08 Jim Blandy <jimb@redhat.com>
581
582 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
583
09bcec80
BR
5842004-07-08 Bob Rossi <bob@brasko.net>
585
586 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
587
31c27f77
JJ
5882004-07-06 Jeff Johnston <jjohnstn@redhat.com>
589
590 * language.h (struct_language_defn): Add new function pointer:
591 la_class_name_from_physname. Also add new prototype for
592 language_class_name_from_physname.
593 * language.c (language_class_name_from_physname): New function.
594 (unk_lang_class_name): Ditto.
595 (unknown_language_defn, auto_language_defn): Change
596 to add unk_lang_class_name function pointer for
597 la_class_name_from_physname.
598 (local_language_defn): Ditto.
599 * dwarf2read.c (guess_structure_name): Change to call
600 language_class_name_from_physname.
601 (determine_class_name): Ditto.
602 * cp-support.c (class_name_from_physname): Renamed.
603 (cp_class_name_from_physname): New name of function.
604 * cp-support.h: Ditto.
605 * c-lang.c (c_language_defn): Change to add NULL
606 for class_name_from_physname function pointer.
607 (cplus_language_defn): Change to add cp_class_name_from_physname.
608 * jv-lang.c (java_class_name_physname): New function.
609 (java_find_last_component): New static routine.
610 (java_language_defn): Add java_class_name_from_physname pointer.
611 * ada-lang.c (ada_language_defn): Change to add NULL
612 for class_name_from_physname function pointer.
613 * f-lang.c (f_language_defn): Ditto.
614 * m2-lang.c (m2_language_defn): Ditto.
615 * objc-lang.c (objc_language_defn): Ditto.
616 * p-lang.c (pascal_language_defn): Ditto.
617 * scm-lang.c (scm_language_defn): Ditto.
618
ee28ca0f
AC
6192004-07-06 Andrew Cagney <cagney@gnu.org>
620
621 Patch from Bart Robinson.
622 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
623 (O_LARGEFILE): Define to 0, if not defined.
624
fdb1bf9d
MK
6252004-07-03 Mark Kettenis <kettenis@gnu.org>
626
cb162ff6
MK
627 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
628 <machine/pcb.h> and "bsd-kvm.h".
629 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
630 (m68kbsd_supply_pcb): New function.
631 (_initialize_m68kbsd_nat): New prototype and function.
632 * Makefile.in (m68kbsd-nat.o): Update dependencies.
633 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
634 (LOADLIBES): New variable.
635 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
636 (LOADLIBES): New variable.
637
fdb1bf9d
MK
638 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
639
963c4174
MK
6402004-07-03 Mark Kettenis <kettenis@gnu.org>
641
642 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
643 <sys/proc.h>.
644 (bsd_kvm_cmdlist): New variable.
645 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
646 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
647 command and "kvm proc" command.
648 * Makefile.in (bsd-kvm.o): Update dependencies.
649
533f1d8f
MK
6502004-07-02 Mark Kettenis <kettenis@gnu.org>
651
652 * osabi.c: Update copyright year.
653 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
654 notes if EI_OSABI is set to ELFOSABI_HPUX.
655
6780dcde
MS
6562004-07-01 Michael Snyder <msnyder@redhat.com>
657
658 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
659 that seems to have gotten whacked out of line.
660
67bebe79
MK
6612004-07-01 Mark Kettenis <kettenis@gnu.org>
662
663 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
664 code.
665
0b5d8877
PH
6662004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
667
668 * ada-lang.c (decode_packed_array): Minor change to comment.
669 (ada_value_slice_ptr): New function.
670 (ada_value_slice): New function.
671 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
672 test. Don't know why it is there.
673 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
674 to avoid dereferencing huge arrays from which one is slicing.
675 (empty_array): Correct to return an array rather than
676 a subrange value.
677 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
678 on empty arrays (let'em use 'FIRST instead).
679
19c1ef65
PH
6802004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
681
682 Address complaints from gdb_ari.sh:
683
684 * ada-exp.y: Include gdb_string.h rather than string.h.
685 (convert_char_literal): Reformat declaration.
686 * ada-lang.h: Include opaque struct declaration for struct frame_info.
687 * ada-lex.l: Change use of free to xfree (the macro would do so
688 anyway, but this is harmless).
689 Include gdb_string.h rather than string.h.
690 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
691
692 * ada-lang.c (parse): Remove K&Rism in parameter list.
693 (is_name_suffix): Correct Linux => GNU/Linux in comment.
694
d81cbc94
MK
6952004-06-30 Mark Kettenis <kettenis@gnu.org>
696
697 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
698 dead code.
699
07681759
MK
7002004-06-30 Mark Kettenis <kettenis@gnu.org>
701
702 * alphabsd-nat.c: Update copyright year.
703 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
704
f7948b5f
JB
7052004-06-29 Joel Brobecker <brobecker@gnat.com>
706
6e0cdd28 707 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
708 (i386_cygwin_in_solib_call_trampoline): New function.
709 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
710 and skip_trampoline_code gdbarch methods.
711
8f113c9a
JB
7122004-06-29 Jim Blandy <jimb@redhat.com>
713
714 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
715 name actually used in the dependency lists.
716
97dc871c
RC
7172004-06-29 Randolph Chung <tausq@debian.org>
718
719 * NEWS (New native configurations): Mention GNU/Linux/hppa.
720
47216e51
CV
7212004-06-29 Corinna Vinschen <vinschen@redhat.com>
722
723 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 724 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
725 functionality.
726
e623b504
AC
7272004-06-28 Andrew Cagney <cagney@gnu.org>
728
729 * defs.h (xstrvprintf): Declare.
730 * utils.c (xstrvprintf): New function.
731 (internal_vproblem, xstrprintf, xasprintf)
732 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
733 * serial.c (serial_printf): Ditto.
734 * complaints.c (vcomplaint): Ditto.
735
79acc9b3
CV
7362004-06-29 Corinna Vinschen <vinschen@redhat.com>
737
738 * infcmd.c (attach_command): Move call to target_terminal_inferior
739 behind loading symbol table.
740
1daf35d9
AC
7412004-06-28 Andrew Cagney <cagney@gnu.org>
742
743 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
744 change - add back extern deprecated_ui_loop_hook declaration.
745
b435e160
AC
7462004-06-28 Andrew Cagney <cagney@gnu.org>
747
748 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
749 xstrprintf.
750 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
751 (c_value_of_variable): Ditto.
752 * utils.c (internal_vproblem): Ditto.
753 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
754 * remote.c (add_packet_config_cmd): Ditto.
755 * remote-rdp.c (rdp_set_command_line): Ditto.
756 * regcache.c (regcache_dump): Ditto.
757 * frv-tdep.c (new_variant, new_variant): Ditto.
758 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
759 (fbsd_find_memory_regions): Ditto.
760 * breakpoint.c (create_thread_event_breakpoint)
761 (create_breakpoints): Ditto.
762 * aix-thread.c (aix_thread_pid_to_str): Ditto.
763 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
764
06d5cf63
JB
7652004-06-28 Joel Brobecker <brobecker@gnat.com>
766
767 * ada-lang.c: Re-indent file, with some massaging to help indent
768 a bit when the result is otherwise really too ugly.
769
35809fad
UW
7702004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
771
772 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
773 code_addr_p and special_addr_p to 'unsigned int'.
774
40e20472
MK
7752004-06-27 Mark Kettenis <kettenis@gnu.org>
776
777 * i386v4-nat.c: Update copyright year and tweak comment.
778 (regmap): Remove trailing comma.
779 (supply_gregset): Rename local variable i to regnum. Call
780 regcache_raw_supply instead of supply_register.
781 (fill_gregset): Rename argument regno to regnum. Call
782 regcache_raw_collect instead of regcache_collect.
783
12b0b6de
UW
7842004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
785
786 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
787 and special_addr_p.
788 (frame_id_build, frame_id_build_special): Update comments.
789 (frame_id_build_wild): New prototype.
790 * frame.c (frame_id_build, frame_id_build_special): Fill in new
791 struct frame_id fields.
792 (frame_id_build_wild): New function.
793 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
794
47b42a3e
MK
7952004-06-27 Mark Kettenis <kettenis@gnu.org>
796
797 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
798 hppabsd-tdep.c.
799
1265e4aa
JB
8002004-06-27 Joel Brobecker <brobecker@gnat.com>
801
802 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
803
76a01679
JB
8042004-06-27 Joel Brobecker <brobecker@gnat.com>
805
806 * ada-lang.c: Re-indent file.
807
7aca490a
JB
8082004-06-27 Joel Brobecker <brobecker@gnat.com>
809
810 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
811 (no_symtab_msg): Likewise.
812
5e987968
AS
8132004-06-27 Andreas Schwab <schwab@suse.de>
814
815 * source.c: Fix whitespace.
816
315c4276
MK
8172004-06-27 Mark Kettenis <kettenis@gnu.org>
818
d15be926
MK
819 * configure.in: Include <sys/param.h> for td_pcb test.
820 * configure: Regenerated.
821
9062529b
MK
822 * i386nbsd-nat.c: New file.
823 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
824 i386obsd-nat.c and i386obsd-tdep.c.
825 (i386nbsd-nat.o): New dependency.
826 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
827 bsd-kvm.o.
828 (LOADLIBES): New variable.
829 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
830 bsd-kvm.o.
831 (LOADLIBES): New variable.
832
8010310e
MK
833 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
834 (LOADLIBES): New variable.
835
efe1d7b9
MK
836 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
837 fetching from BSD_KVM_PADDR. Correctly lookup address for
838 "_thread0".
839
315c4276
MK
840 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
841 "bsd-kvm.h".
842 (amd64fbsd_supply_pcb): New funcion.
843 (_initialize_amd64fbsd_nat): Enable libkvm interface.
844
399cfac6
DL
8452004-06-27 <david@streamline-computing.com>
846
847 Partial fix for PR cli/1056.
848 * valarith.c: Check for zero in division and remainder
849 evaluation.
850
6235f9c8
MK
8512004-06-27 Mark Kettenis <kettenis@gnu.org>
852
853 * i387-tdep.c: Remove excessive whitespace.
854
2726dafc
AC
8552004-06-26 Andrew Cagney <cagney@gnu.org>
856
857 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
858 * gdb-events.h, gdb-events.c: Re-generate.
859 * tui/tui-hooks.c (tui_install_hooks): Update.
860 (tui_remove_hooks): Update.
861 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
862
0e56aeaf
MK
8632004-06-26 Mark Kettenis <kettenis@gnu.org>
864
cb461069
MK
865 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
866 (gregset_t, fpregset_t): Remove typedefs.
867 (REG_OFFSET): Rename argument.
868 (amd64bsd_r_reg_offset): Rename from reg_offset.
869 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
870 Remove functions.
871 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
872 of reg_offset.
873 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
874
ecba89de
MK
875 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
876
4cd80476
MK
877 * vax-tdep.c: Tweak comment.
878
0e56aeaf
MK
879 Add OpenBSD/hppa support.
880 * NEWS (New native configurations): Mention OpenBSD/hppa.
881 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
882 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
883 files.
884 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
885 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
886 * configure.host: Add hppa*-*-openbsd*.
887 * configure.tgt: Add hppa*-*-openbsd*.
888
98bbd631
AC
8892004-06-25 Andrew Cagney <cagney@gnu.org>
890
891 * defs.h (deprecated_ui_loop_hook): Deprecated.
892 * wince.c (child_wait): Update.
893 * win32-nat.c (child_wait): Update.
894 * v850ice.c (v850ice_wait): Update.
895 * top.c (deprecated_ui_loop_hook): Update.
896 * serial.h: Update.
897 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
898 (do_unix_readchar): Update.
899 * ser-tcp.c (net_open): Update.
900 * remote-sim.c (gdb_os_poll_quit): Update.
901 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
902
769d7dc4
AC
9032004-06-24 Andrew Cagney <cagney@gnu.org>
904
905 * defs.h (deprecated_pre_add_symbol_hook)
906 (deprecated_post_add_symbol_hook): Deprecated.
907 * symfile.c (symbol_file_add_with_addrs_or_offsets)
908 (symbol_file_add_with_addrs_or_offsets): Update references.
909
11c949aa
AC
9102004-06-24 Andrew Cagney <cagney@gnu.org>
911
912 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
913 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
914 * wince.c (ui_loop_hook): Delete extern declaration.
915 * win32-nat.c (ui_loop_hook): Delete extern declaration..
916 * v850ice.c (ui_loop_hook): Delete extern declaration..
917 * ser-unix.c (ui_loop_hook): Delete extern declaration..
918 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
919 * remote-sim.c (ui_loop_hook): Delete extern declaration..
920 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
921 ui_loop_hook declaration.
922
eedc19af
AC
9232004-06-24 Andrew Cagney <cagney@gnu.org>
924
925 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
926 entry_func_highpc fields.
927 * objfiles.c (init_entry_point_info): Do not clear
928 entry_func_lowpc and entry_func_highpc.
929 (objfile_relocate): Do not relocate entry_func_lowpc and
930 entry_func_highpc.
931 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
932 entry_func_highpc.
933 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
934 entry_func_highpc.
935 * blockframe.c (legacy_frame_chain_valid): Replace tests against
936 entry_func_lowpc and entry_func_highpc with call to
937 inside_entry_func.
938
d47079be
MK
9392004-06-24 Mark Kettenis <kettenis@gnu.org>
940
941 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
942 quad-precision floating point arguments in registers.
943
2107e348
MK
9442004-06-24 Mark Kettenis <kettenis@gnu.org>
945
946 From Michael Mueller <m.mueller99@kay-mueller.de>:
947 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
948 account.
949
46587c42
JJ
9502004-06-22 Jeff Johnston <jjohnstn@redhat.com>
951
952 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
953 to -1.
954 * breakpoint.c (bpstat_stop_status): Move check for ignoring
955 untriggered watchpoints to a separate if clause. Update function
956 comment regarding STOPPED_BY_WATCHPOINT argument.
957
226f5cf4
JB
9582004-06-22 Jim Blandy <jimb@redhat.com>
959
960 * gdbarch.sh: Doc fix.
961
f10683bb
MH
9622004-06-21 Martin Hunt <hunt@redhat.com>
963 Kevin Buettner <kevinb@redhat.com>
964
965 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
966 * mips-tdep.h (MIPS_SP_REGNUM): Define.
967 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
968 to set_gdbarch_sp_regnum(). Use cooked register number.
969 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
970
412d5987
AC
9712004-06-21 Andrew Cagney <cagney@gnu.org>
972
973 * gdbarch.sh: When the macro field is empty, do not generate a
974 macro definition. When the macro field is "=", generate the macro
975 name from the upper-case function name.
976 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
977 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
978 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
979 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
980 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
981 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
982 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
983 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
984 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
985 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
986 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
987 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
988 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
989 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
990 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
991 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
992 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
993 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
994 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
995 (DEPRECATED_USE_STRUCT_CONVENTION)
996 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
997 (DEPRECATED_FRAME_INIT_SAVED_REGS)
998 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
999 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
1000 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
1001 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
1002 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
1003 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
1004 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
1005 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
1006 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
1007 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
1008 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
1009 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
1010 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
1011 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
1012 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
1013 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
1014
68908a3e
AC
10152004-06-21 Andrew Cagney <cagney@gnu.org>
1016
48f7351b
AC
1017 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
1018 macro name, and the function rather than macro value. Only wrap
1019 macro print statements in #ifdef. Move format logic to where it
1020 is needed.
1021 * gdbarch.c: Re-generate.
1022
283354d8
AC
1023 * gdbarch.sh (read): Delete "print_p" and "description", add
1024 "garbage_at_eol". Check for non-empty garbage at end-of-line.
1025 Delete references to print_p.
1026 (TARGET_ARCHITECTURE): Delete print predicate.
1027 * gdbarch.c: Re-generate.
1028
68908a3e
AC
1029 * gdbarch.sh: Check that multi-arch methods do not provide a
1030 macro.
1031 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
1032 (print_registers_info, print_float_info, print_vector_info)
1033 (adjust_breakpoint_address, remote_translate_xfer_address)
1034 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
1035 (address_class_type_flags_to_name, unwind_sp): Remove the macro
1036 name from the multi-arch definition.
1037
a2428dbe
AC
10382004-06-20 Andrew Cagney <cagney@gnu.org>
1039
1040 * gdbarch.sh: Sort by the function, instead of macro name.
1041 * gdbarch.c: Re-generate.
1042
750eb019
AC
10432004-06-20 Andrew Cagney <cagney@gnu.org>
1044
66d659b1
AC
1045 * gdbarch.sh: Use the function, instead of macro name in
1046 errors and the log file.
1047 (return_value): Remove stray ":" in spec.
1048
750eb019
AC
1049 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
1050 * gdbarch.h, gdbarch.c: Re-generate.
1051 * Makefile.in (arch-utils.o): Update dependencies.
1052 * values.c (using_struct_return): Move code calling
1053 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
1054 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
1055 to legacy_return_value, simplify.
1056 * infcmd.c (print_return_value): Move code calling
1057 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
1058 to legacy_return_value, simplify.
1059 * infcall.c (call_function_by_hand): Move code calling
1060 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
1061 * arch-utils.c: Update copyright. Include "gdbcore.h".
1062 (legacy_return_value): New function.
1063 * arch-utils.h: Update copyright.
1064 (legacy_return_value): Declare.
1065
b5622e8d
AC
10662004-06-20 Andrew Cagney <cagney@gnu.org>
1067
1068 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
1069 * gdbarch.h, gdbarch.c: Re-generate.
1070 * values.c (using_struct_return): Update call.
1071 * mcore-tdep.c: Update comment.
1072 * infcall.c (call_function_by_hand): Update comment.
1073 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1074 * arch-utils.h (always_use_struct_convention): Update.
1075 * v850-tdep.c (v850_gdbarch_init): Update.
1076 * sh64-tdep.c (sh64_gdbarch_init): Update.
1077 * sh-tdep.c (sh_gdbarch_init): Update.
1078 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1079 * mips-tdep.c (mips_gdbarch_init): Update.
1080 * mcore-tdep.c (mcore_gdbarch_init): Update.
1081 * m32r-tdep.c (m32r_gdbarch_init): Update.
1082 * ia64-tdep.c (ia64_gdbarch_init): Update.
1083 * h8300-tdep.c (h8300_gdbarch_init): Update.
1084 * frv-tdep.c (frv_gdbarch_init): Update.
1085 * cris-tdep.c (cris_gdbarch_init): Update.
1086 * arm-tdep.c (arm_gdbarch_init): Update.
1087 * alpha-tdep.c (alpha_gdbarch_init): Update.
1088
5191de37
MC
10892004-06-18 Michael Chastain <mec.gnu@mindspring.com>
1090
1091 * PROBLEMS: Add more specific information, and a work-around,
1092 for PR gdb/1458.
1093
782263ab
AC
10942004-06-18 Andrew Cagney <cagney@gnu.org>
1095
1096 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
1097 * gdbarch.h, gdbarch.c: Re-generate.
1098 * ada-lang.c (ada_finish_decode_line_1): Update.
1099 * infrun.c (handle_inferior_event): Update.
1100 * infcall.c (find_function_addr): Update.
1101 * linespec.c (minsym_found): Update.
1102 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
1103 Update.
1104 * blockframe.c (legacy_frameless_look_for_prologue): Update.
1105 * cli/cli-cmds.c (disassemble_command): Update.
1106 * vax-tdep.c (vax_gdbarch_init): Update.
1107
2f305df1
MK
11082004-06-18 Mark Kettenis <kettenis@gnu.org>
1109
1110 * i386-tdep.c (i386_collect_fpregset): Fix comment.
1111
e5fe55f7
AC
11122004-06-17 Andrew Cagney <cagney@gnu.org>
1113
1114 GDB 6.1.1 released from the GDB 6.1 branch.
1115 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
1116 * PROBLEMS: Ditto.
1117
473b7be6
DJ
11182004-06-16 Daniel Jacobowitz <dan@debian.org>
1119
1120 PR gdb/1658
1121 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
1122 operation as a uleb128. Found by Michael Coulter.
1123
96d887e8
PH
11242004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
1125
1126 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
1127 make it non-static.
1128 * ada-lang.h (task_control_block): declaration moved from ada-task.c
1129 to ada-lang.h; this is needed to be able to implement the kill command
1130 in multi-task mode.
1131 (task_ptid): Ditto.
1132 (task_entry): Ditto.
1133 (task_list): Ditto.
1134 (ada_build_task_list): Ditto.
1135
1136 * ada-lang.c: Conditionalize routines and data structures related
1137 to breakpoints, exceptions, completion, and symbol caching on
1138 GNAT_GDB, since these are not yet used in the submitted public sources.
1139 (ada_main_name): Editorial: Move definition out of exception-related
1140 code.
1141
31eef181
AC
11422004-06-15 Andrew Cagney <cagney@gnu.org>
1143
1144 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
1145 deprecated_pc_in_call_dummy.
1146
2c500098
AM
11472004-06-15 Alan Modra <amodra@bigpond.net.au>
1148
1149 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
1150 bfd_get_section_size_before_reloc or _raw_size.
1151 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1152 * dwarf2read.c (dwarf2_locate_sections): Likewise.
1153 (dwarf2_read_section): Likewise.
1154 * elfread.c (elf_locate_sections): Likewise.
1155 * gcore.c (derive_heap_segment): Likewise.
1156 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1157 * remote-e7000.c (e7000_load): Likewise.
1158 * remote-m32r-sdi.c (m32r_load): Likewise.
1159 * remote-mips.c (mips_load_srec): Likewise.
1160 (pmon_load_fast): Likewise.
1161 * remote.c (compare_sections_command): Likewise.
1162 * symfile.c (add_section_size_callback): Likewise.
1163 (load_section_callback): Likewise.
1164 (pc_in_unmapped_range): Likewise.
1165 (pc_in_mapped_range): Likewise.
1166 (sections_overlap): Likewise.
1167 (list_overlays_command): Likewise.
1168 (simple_overlay_update_1): Likewise.
1169 (simple_overlay_update): Likewise.
1170 * tracepoint.c (remote_set_transparent_ranges): Likewise.
1171 * win32-nat.c (core_section_load_dll_symbols): Likewise.
1172
90f943f1
RC
11732004-06-14 Randolph Chung <tausq@debian.org>
1174
1175 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
1176 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
1177 static.
1178 (hppa_hpux_inferior_created): New function.
1179 (hppa_hpux_init_abi): Register observer.
1180 * symfile.c (hp_cxx_exception_support_initialized)
1181 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
1182 (symbol_file_add_main_1, symbol_file_clear): Likewise.
1183
700c15aa
RC
11842004-06-14 Randolph Chung <tausq@debian.org>
1185
3973a7d3
AC
1186 * MAINTAINERS (Write After Approval): Alphabetize my entry
1187 correctly.
700c15aa 1188
cea4838c
AC
11892004-06-14 Andrew Cagney <cagney@gnu.org>
1190
1191 * MAINTAINERS (testsuite): List Michael Chastain as the lead
1192 testsuite maintainer.
1193
97092415
AC
11942004-06-13 Andrew Cagney <cagney@gnu.org>
1195
e8c3165b
AC
1196 * infcmd.c (print_return_value): Fix logic, allow
1197 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
1198
bceabdd8
AC
1199 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
1200 defining any macros.
1201 * gdbarch.h: Re-generate.
1202
57010b1c
AC
1203 * gdbarch.sh: Delete "level" attribute. Only check for a macro
1204 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
1205 * gdbarch.h: Re-generate.
1206
bc87dfa0
AC
1207 * values.c (generic_use_struct_convention): Don't check gcc_p.
1208
15ac804d
AC
1209 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1210 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
1211 * gdbarch.h, gdbarch.c: Regenerate.
1212 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
1213 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
1214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1215 deprecated_max_register_raw_size and
1216 deprecated_max_register_virtual_size.
1217 * v850-tdep.c (v850_gdbarch_init): Ditto.
1218 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1219 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1220 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1221 * cris-tdep.c (cris_gdbarch_init): Ditto.
1222
97092415
AC
1223 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
1224 * gdbarch.h, gdbarch.c: Re-generate.
1225 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
1226 (m68hc11_use_struct_convention): Delete function.
1227 (m68hc11_extract_struct_value_address): Delete function.
1228 (m68hc11_return_value): New function.
1229 (m68hc11_gdbarch_init): Instead of store_return_value,
1230 extract_return_value, return_value_on_stack,
1231 deprecated_extract_struct_value_address and use_struct_convention,
1232 set return_value.
1233 * values.c (using_struct_return): Do not call
1234 RETURN_VALUE_ON_STACK.
1235 * arch-utils.h (generic_return_value_on_stack_not): Delete
1236 declaration.
1237 * arch-utils.c (generic_return_value_on_stack_not): Delete
1238 function.
1239
44e5158b
AC
12402004-06-12 Andrew Cagney <cagney@gnu.org>
1241
1242 * values.c (register_value_being_returned): Delete function.
1243 * infcmd.c (legacy_return_value): Delete function.
1244 * infcall.c (call_function_by_hand): Inline
1245 "register_value_being_returned", simplify.
1246 * values.c (using_struct_return): Update comment, refer to
1247 print_return_value instead of register_value_being_returned.
1248 * infcmd.c (print_return_value): Inline calls to
1249 register_value_being_returned and legacy_return_value. Simplify.
1250
b887c273
RC
12512004-06-11 Randolph Chung <tausq@debian.org>
1252
1253 * somread.c (som_symtab_read): Exclude gcc local symbols.
1254
1b2bfbb9
RC
12552004-06-11 Randolph Chung <tausq@debian.org>
1256
3973a7d3
AC
1257 * infrun.c (handle_inferior_event): Handle the case when a
1258 trampoline ends up in the runtime resolver, and if the trampoline
1259 has no name. Rearrange the code so that all the trampoline
1260 processing happens before other step-out-of-range handling.
1b2bfbb9 1261
a9d61c86
MH
12622004-06-11 Martin Hunt <hunt@redhat.com>
1263
1264 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
1265 has no fpu.
1266
2c87cf5a
AC
12672004-06-10 Andrew Cagney <cagney@gnu.org>
1268
1269 * blockframe.c (legacy_inside_entry_func): Delete.
1270 (legacy_frame_chain_valid): Inline call to
1271 legacy_inside_entry_func, simplify.
1272
0b67b468 12732004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
1274
1275 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
1276 * dwarf2read.c (partial_die_info): Add dirname field.
1277 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
1278 (read_partial_die): Save away DW_AT_comp_dir.
1279 * defs.h (symtab_to_filename): Removed.
1280 * source.c (find_and_open_source): Added.
57c22c6c 1281 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
1282 (symtab_to_filename): Removed.
1283 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
1284 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
1285 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
1286 symtab_to_filename.
1287 * symtab.h (partial_symtab): Add dirname field.
1288 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
1289 (mi_cmd_file_list_exec_source_file): Call new function
1290 symtab_to_fullname to find fullname.
57c22c6c 1291 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 1292 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
1293 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
1294
9a1dd1ad
AC
12952004-06-10 Andrew Cagney <cagney@gnu.org>
1296
239ae8c7
AC
1297 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
1298 to generic_use_struct_convention, the default value.
1299
fc720350
AC
1300 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
1301 of abort.
1302
9a1dd1ad
AC
1303 * ns32k-tdep.c (ns32k_push_arguments): New function.
1304 (ns32k_gdbarch_init): Set deprecated_push_arguments.
1305 * infcall.c (call_function_by_hand): Call error instead of
1306 legacy_push_arguments.
1307 * value.h (legacy_push_arguments): Delete declaration.
1308 * valops.c (legacy_push_arguments): Delete function.
1309 (value_push): Delete function.
1310
fea25152
BF
13112004-06-10 Brian Ford <ford@vss.fsi.com>
1312
1313 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
1314 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
1315 info.
1316 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
1317
30a4a8e0
AC
13182004-06-10 Andrew Cagney <cagney@gnu.org>
1319
1320 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
1321 * gdbarch.h, gdbarch.c: Re-generate.
1322 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
1323 parameters.
1324 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
1325 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
1326 deprecated_pc_in_call_dummy instead of
1327 DEPRECATED_PC_IN_CALL_DUMMY.
1328 (arm_skip_prologue): Ditto.
1329 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
1330 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
1331 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
1332 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
1333 Ditto.
1334 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
1335 (sh64_init_extra_frame_info, sh64_get_saved_register)
1336 (sh64_pop_frame): Ditto.
1337 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
1338 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
1339 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
1340 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
1341 (h8300_pop_frame): Ditto.
1342 * blockframe.c (legacy_inside_entry_func)
1343 (legacy_frame_chain_valid): Ditto.
1344 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
1345 to deprecated_pc_in_call_dummy.
1346
81cfbe54
AC
13472004-06-09 Andrew Cagney <cagney@gnu.org>
1348
a1f4a1b6
AC
1349 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
1350 provide a default value.
1351 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
1352 * gdbarch.h, gdbarch.c: Re-generate.
1353 * arch-utils.c (generic_convert_register_p): Rename
1354 legacy_convert_register_p
1355 (legacy_register_to_value, legacy_value_to_register): Delete
1356 functions.
1357 * arch-utils.h (generic_convert_register_p): Rename
1358 legacy_convert_register_p.
1359 (legacy_register_to_value, legacy_value_to_register): Delete
1360 declarations.
1361
9730f241
AC
1362 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
1363 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
1364 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
1365 * gdbarch.h, gdbarch.c: Re-generate.
1366 * infcmd.c (default_print_registers_info): Simplify.
1367 * findvar.c (value_of_register): Simplify.
1368 * mi/mi-main.c (get_register): Simplify.
1369 * arch-utils.c (legacy_convert_register_p): Always return 0.
1370 (legacy_register_to_value, legacy_value_to_register): Always call
1371 internal_error.
1372
8a1bf479
AC
1373 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
1374 #ifdef CLEAR_INSN_CACHE code.
1375 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
1376 Delete #ifdef CLEAR_DEFERRED_STORES code.
1377
4b38d6f1
AC
1378 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
1379
2d62ecc7
AC
1380 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
1381 copyright.
1382 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
1383
be4f7469
AC
1384 * config/mips/mipsv4.mh: Delete file.
1385
81cfbe54
AC
1386 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
1387 unreferenced macro.
1388 (hpread_adjust_stack_address): Delete declaration.
1389
d966f0cb
AC
13902004-06-08 Andrew Cagney <cagney@gnu.org>
1391
1392 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
1393 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
1394 PTRACE_ATTACH / PTRACE_DETACH available call error.
1395 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
1396 * infttrace.c (update_thread_state_after_attach, attach, detach):
1397 Remove #ifdef wrappers.
1398 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
1399 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
1400 * config/nm-bsd.h (ATTACH_DETACH): Delete.
1401 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
1402 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
1403 * config/nm-linux.h (ATTACH_DETACH): Delete.
1404 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
1405 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
1406 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
1407 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
1408 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
1409
d91670b9
CV
14102004-06-08 Corinna Vinschen <vinschen@redhat.com>
1411
1412 * configure.in: Set $configdir to the right OS specific value.
1413 Use value when setting $tcldir and $tkdir.
1414 * configure: Regenerate.
1415
28ba0b33
PB
14162004-06-06 Paul Brook <paul@codesourcery.com>
1417
1418 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
1419 records.
1420
f26caa11
PH
14212004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
1422
1423 * ada-lang.c (lookup_symbol_in_language): New function to allow
1424 re-use of another language's symbol lookup code. (Placed here
1425 temporarily while Ada support is being integrated into the public
1426 tree).
1427 (restore_language): New auxiliary function for
1428 lookup_symbol_in_language.
1429 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
1430 temporarily while Ada support is being integrated into the public
1431 tree).
1432
d560a54b
AO
14332004-06-08 Alexandre Oliva <aoliva@redhat.com>
1434
e75d110c
AO
1435 * Makefile.in (check//%): New.
1436
d560a54b
AO
1437 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
1438 (mn10300_store_return_value): Rewrite.
1439 (mn10300_type_align): New.
1440 (mn10300_use_struct_convention): Rewrite.
1441 (mn10300_return_value): New, using all of the above.
1442 (mn10300_pop_frame_regular): Add saved_regs_size.
1443 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
1444
a72fbdb7
AO
1445 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
1446 regs if PC is on movm.
1447
01904826
JB
14482004-06-07 Jim Blandy <jimb@redhat.com>
1449
1450 Add native Linux support for the PowerPC E500.
1451 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
1452 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
1453 all architectures except the E500.
1454 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
1455 #definitions.
1456 (struct gdb_evrregset_t): New type.
1457 (have_ptrace_getsetevrregs): New variable.
1458 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
1459 fetch_spe_registers): New functions.
1460 (fetch_register): Call fetch_spe_register as appropriate.
1461 Assert that we're only passed raw register numbers.
1462 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
1463 Don't fetch gprs if they're pseudoregisters.
1464 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
1465 store_spe_registers): New functions.
1466 (store_register): Call store_spe_register as appropriate.
1467 Assert that we're only passed raw register numbers.
1468 (store_ppc_registers): Call store_spe_registers as appropriate.
1469 Don't store gprs if they're pseudoregisters.
1470
f90ef764
JJ
14712004-06-07 Jeff Johnston <jjohnstn@redhat.com>
1472
1473 * thread-db.c (thread_get_info_callback): Fill in the thread_info
1474 struct if one exists, even if we are dealing with a zombie thread.
1475
45b75230
AC
14762004-06-07 Andrew Cagney <cagney@gnu.org>
1477
1478 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
1479 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
1480 Rename PC_REQUIRES_RUN_BEFORE_USE.
1481 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
1482 #ifdef.
1483
1658da49
RC
14842004-06-07 Randolph Chung <tausq@debian.org>
1485
1486 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
1487 unwinding after sp has been saved to the stack but before the end
1488 of the prologue, and after the fp has been modified but before it has
1489 been saved to the stack.
1490 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
1491 Remove superfluous definitions.
1492 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
1493
9a727a3c
RC
14942004-06-07 Guy Martin <gmsoft@gentoo.org>
1495
1496 Committed by Randolph Chung.
1497 * hppa-linux-nat.c: Include the correct version of the header file
1498 depending on the kernel version.
1499
9e500012
RC
15002004-06-06 Randolph Chung <tausq@debian.org>
1501
1502 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
1503 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
1504
3388d7ff
RC
15052004-06-06 Randolph Chung <tausq@debian.org>
1506
1507 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1508 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
1509 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
1510 * hppa-tdep.c (hppa_symbol_address): New function definition.
1511 * hppa-tdep.h (hppa_symbol_address): New function declaration.
1512
d49771ef
RC
15132004-06-06 Randolph Chung <tausq@debian.org>
1514
1515 * hppa-tdep.h (struct value): Forward declaration.
1516 (gdbarch_tdep): Define tdep find_global_pointer method.
1517 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
1518 associated with the function we are trying to call, and write it
1519 to the gp register.
1520 (hppa32_convert_from_funct_ptr_addr): New function.
1521 (hppa_find_global_pointer): New function.
1522 (hppa_gdbarch_init): Set default find_global_pointer method; set
1523 convert_from_func_ptr_addr method.
1524 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
1525 (hppa_linux_init_abi): Set find_global_pointer method.
1526 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
1527
7d9b040b
RC
15282004-06-06 Randolph Chung <tausq@debian.org>
1529
1530 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
1531 to struct value *function.
1532 * gdbarch.c: Regenerate.
1533 * gdbarch.h: Likewise.
1534 * infcall.c (call_function_by_hand): Pass entire function value
1535 to push_dummy_call.
1536
1537 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
1538 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
1539 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
1540 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
1541 * arm-tdep.c (arm_push_dummy_call): Likewise.
1542 * avr-tdep.c (avr_push_dummy_call): Likewise.
1543 * cris-tdep.c (cris_push_dummy_call): Likewise.
1544 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
1545 * frv-tdep.c (frv_push_dummy_call): Likewise.
1546 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1547 * hppa-tdep.c (hppa32_push_dummy_call)
1548 (hppa64_push_dummy_call): Likewise.
1549 * i386-tdep.c (i386_push_dummy_call): Likewise.
1550 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
1551 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
1552 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1553 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
1554 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
1555 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1556 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
1557 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1558 (ppc64_sysv_abi_push_dummy_call): Likewise.
1559 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
1560 (ppc64_sysv_abi_push_dummy_call): Likewise.
1561 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1562 * s390-tdep.c (s390_push_dummy_call): Likewise.
1563 * sh-tdep.c (sh_push_dummy_call_fpu)
1564 (sh_push_dummy_call_nofpu): Likewise.
1565 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
1566 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
1567 * vax-tdep.c (vax_push_dummy_call): Likewise.
1568
4a19ea35
JB
15692004-06-04 Jim Blandy <jimb@redhat.com>
1570
8327ccee
JB
1571 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
1572 gdbarch argument to register_size.
1573
a3c001ce
JB
1574 * rs6000-tdep.c (rs6000_store_return_value): Use
1575 regcache_cooked_write_part instead of
1576 deprecated_write_register_bytes.
1577 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
1578 not gdbarch_deprecated_store_return_value.
1579
4a19ea35
JB
1580 * ppc-linux-nat.c (store_register, fetch_register): Remove
1581 incorrect assertions. Simplify and generalize handling of
1582 transfers whose sizes are not multiples of, or less than, sizeof
1583 (PTRACE_XFER_TYPE).
1584
b9b5d7ea
JJ
15852004-06-04 Jeff Johnston <jjohnstn@redhat.com>
1586
1587 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
1588 as a new thread event.
720c7d64 1589 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 1590 zombie, return TD_THR_ZOMBIE.
720c7d64 1591 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
1592 TD_THR_ZOMBIE, check if the thread is still on the thread list
1593 and return a -1 ptid if not found.
1594 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
1595 change the status to TARGET_WAITKIND_SPURIOUS.
1596
c8a3b559
CV
15972004-06-03 Corinna Vinschen <vinschen@redhat.com>
1598
1599 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
1600 double values in little endian mode.
1601
20605361
AC
16022004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
1603
1604 Committed by Andrew Cagney.
1605 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
1606 after last enum constant to avoid error from IBM C
1607 compiler.
1608
bc97b3ba
JB
16092004-06-02 Jim Blandy <jimb@redhat.com>
1610
1611 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
1612 to 'message', and make it local to the lone block that uses it.
1613
1da28ab0
JB
1614 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
1615
4c4b4cd2
PH
16162004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
1617
8a2225b2
PH
1618 * ada-exp.y: Update copyright notice.
1619 Include block.h.
1620
1621 Replace REGNAME, LAST, INTERNAL_VARIABLE with
1622 SPECIAL_VARIABLE and unify the treatment of these cases.
1623
1624 (write_attribute_call0): Remove.
1625 (write_attribute_call1): Remove.
1626 (write_attribute_calln): Remove.
1627 (save_qualifier): Add missing semicolon.
1628
1629 (simple_exp,exp): Decomment (i.e., reactivate) code that was
1630 temporarily disabled to allow compilation with FSF head version.
1631
1632 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
1633 use individual operators (OP_*) for all attributes.
1634 (exp syntax): Use write_int.
1635 Handle STRING literals with OP_STRING.
1636 (variable syntax): Add limit parameter to calls to
1637 write_object_renaming.
1638
1639 (temp_parse_space): New definition to hold entities that need
1640 only live until the next call to ada_parse.
1641 (string_to_operator): Rename fields of ada_opname_table entries.
1642
1643 (write_var_from_sym): Record block.
1644 (write_var_from_name): Minor reformatting.
1645 Make sure saved name is properly encoded in the case of multiple
1646 matches, and set its language to Ada.
1647 Update comment.
1648 Modify to indicate unresolved name as symbol in the UNRESOLVED
1649 namespace, allocated in temp_parse_space.
1650 (write_int): New function.
1651
1652 (write_object_renaming): Add max_depth parameter to limit
1653 chains of object renamings.
1654 Handle case where root of renaming expression is itself a renaming.
1655 Use temp_parse_space for temporary name buffer.
1656 Handle renamings to dereferenced pointers (___XEXA suffices).
1657
1658 (ada_parse, yyerror, string_to_operator,
1659 write_var_from_sym, write_var_from_name, write_attribute_call0,
1660 write_attribute_call1, write_attribute_calln,
1661 write_object_renaming): Protoize.
1662
1663 (_initialize_ada_exp): New function.
1664
1665 * ada-lang.c: Update copyright notice.
1666 General terminology change to conform to GNAT compiler usage:
1667 mangle => encode, demangle => decode
1668 Include gdb_obstack.h.
1669 Include gdb_regex.h
1670 Include frame.h
1671 Include hashtab.h
1672 Include completer.h
1673 Include gdb_stat.h
1674 Include block.h
1675 Include infcall.h
1676
1677 (ADA_RETAIN_DOTS): Make sure this is defined.
1678 (TRUNCATION_TOWARDS_ZERO): Define.
1679 (struct string_vector): Define.
1680 (unresolved_names): Remove definition.
1681 (xnew_string_vector): New function.
1682 (string_vector_append): New function.
1683 (extract_string): Make static.
1684 (ada_unqualified_name): New function.
1685 (add_angle_brackets): New function.
1686 (function_name_from_pc): New function.
1687 (place_on_stack): Rename to ensure_lval.
1688
1689 (ensure_lval): Renamed from place_on_stack.
1690 Make identity on lvals.
1691 Update comment.
1692 (is_nonfunction): New interface.
1693 Only symbols in LOC_CONST class can be enumerals.
1694 (fill_in_ada_prototype): Remove; now independent of language.
1695 (add_defn_to_vec): Add obstack and symtab arguments.
1696 Use obstack to hold collected definitions.
1697 (num_defns_collected): New function.
1698 (defns_collected): New function.
1699 (ada_resolve_subexp): Rename to resolve_subexp.
1700 (resolve_subexp): Renamed from ada_resolve_subexp.
1701 (ada_op_name): Return non-const result.
1702 (ada_decoded_op_name): Renamed from ada_op_name, now used for
1703 other purposes.
1704
1705 (to_fixed_array_type): Add declaration.
1706 (coerce_unspec_val_to_type): Remove offset parameter.
1707 (find_sal_from_funcs_and_line): New interface.
1708 (find_line_in_linetable): Ditto.
1709
1710 (all_sals_for_line): Rename to ada_sals_for_line and make
1711 global.
1712 Add new parameter. When set, do not ask the user to choose the
1713 instance, but use the first one found instead.
1714 Use given line number in returned sals.
1715 Fix comment.
1716 Skip the prologue if funfirstline is set.
1717 Correct for memory leak when 0 lines found.
1718
1719 (value_pos_atr): Use pos_atr.
1720 (pos_atr): New function.
1721 (standard_lookup): Add block parameter.
1722
1723 (makeTimeStart): Remove declaration and uses.
1724 (makeTimeStop): Remove declaration and uses.
1725
1726 (ada_completer_word_break_characters): Allow for VMS.
1727 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
1728 (raise_sym_name): New constant.
1729 (raise_unhandled_sym_name): New constant.
1730 (raise_assert_sym_name): New constant.
1731 (process_raise_exception_name): New constant.
1732 (longest_exception_template): New constant.
1733 (warning_limit): New variable to limit warnings during expression
1734 evaluation.
1735 (warnings_issued): New variable to keep track of warnings issued.
1736 (known_runtime_file_name_patterns): New constant.
1737 (known_auxiliary_function_name_patterns): New constant.
1738 (symbol_list_obstack): New variable.
1739
1740 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
1741 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
1742 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
1743 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
1744 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
1745 ada_variant_discrim_name, field_alignment, dynamic_template_type,
1746 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
1747 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
1748 and strcmp.
1749
1750 (ada_get_field_index): New function.
1751 (lim_warning): New function.
1752 (ada_translate_error_message): New function.
1753 (MAX_OF_SIZE): New function.
1754 (MIN_OF_SIZE): New function.
1755 (UMAX_OF_SIZE): New function.
1756 (UMIN_OF_SIZE): New function.
1757 (discrete_type_high_bound): New function.
1758 (discrete_type_low_bound): New function.
1759 (base_type): New function.
1760 (do_command): Remove.
1761
1762 (ada_update_initial_language): Use language_ada, not language_unknown.
1763 (ada_encode): Renamed from ada_mangle.
1764 Obey ADA_RETAIN_DOTS.
1765 (ada_decode): Renamed from ada_demangle.
1766 Update coding conventions.
1767 (decoded_names_store): New hash table.
1768 (ada_decode_symbol): New function.
1769 (ada_la_decode): New function.
1770
1771 (modify_general_field): Correct computations of offset and bit
1772 position.
1773 (desc_base_type): Handle ref types, too.
1774 (ada_is_direct_array_type): New function.
1775
1776 (ada_is_simple_array): Rename to ada_is_simple_array_type.
1777 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
1778 (ada_is_bogus_array_descriptor,ada_type_of_array,
1779 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
1780 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
1781 ada_is_array_descriptor_type.
1782
1783 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
1784 (ada_is_packed_array_type): Handle pointers or
1785 references to packed arrays as well.
1786 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
1787 (decode_packed_array_type): Search for the packed array type
1788 symbol in the currently selected block and associated
1789 superblocks too.
1790 Use lookup_symbol again.
1791
1792 (decode_packed_array): Handle pointers and references.
1793 Update call to coerce_unspec_val_to_type.
1794 (decode_packed_array_type,value_subscript_packed): Limit warnings.
1795 (ada_value_primitive_packed_val): Improve comment.
1796
1797 (ada_index_type): Substitute int type for "undefined".
1798 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
1799 ada_array_langth, ada_is_string_type): Use renamed
1800 ada_is_simple_array_type.
1801 (empty_array): New function.
1802
1803 (ada_resolve): Rename to resolve.
1804 (resolve): Make static.
1805 Call renamed resolve_subexp.
1806 Update comment.
1807 (ada_resolve_subexp): Rename to resolve_subexp.
1808 (resolve_subexp): Update comment.
1809 Decomment disabled code.
1810 Add LOC_COMPUTED* cases.
1811 Modify to use temporary struct symbols (marked as being in
1812 UNDEF_NAMESPACE) to indicate unresolved names, instead of
1813 OP_UNRESOLVED_VALUE.
1814 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
1815 Add OP_STRING case.
1816 Remove OP_ARRAY.
1817 Use SYMBOL_PRINT_NAME instead of ada_demangle.
1818 Use new ada_lookup_symbol_list interface.
1819 Use new ada_resolve_function interface.
1820 Remove OP_TYPE case.
1821
1822 (ada_args_match): Idiot proof against null actuals.
1823 Use intermediate variables to clarify.
1824 (ada_resolve_function): Update comment and interface.
1825 (mangled_ordered_before): Rename to encoded_ordered_before and
1826 update comment.
1827 (sort_choices): Update comment and interface.
1828 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
1829 (user_select_syms): New interface.
1830 Use new sort_choices interface.
1831 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
1832 (possible_user_operator_p): Idiot-proof against null values.
1833 (ada_simple_renamed_entity): Don't make cleanup; rely on
1834 caller to free result string.
1835 Remove const from return type.
1836 (make_array_descriptor): Rename uses of place_on_stack to
1837 ensure_lval.
1838 Make sure that arrays are on stack.
1839
1840 (HASH_SIZE): Define.
1841 (struct cache_entry): Define.
1842 (cache_space): Define.
1843 (cache): Define.
1844 (clear_ada_sym_cache): New function.
1845 (find_entry): New function.
1846 (lookup_cached_symbol): New function.
1847 (defn_vector_size): Define.
1848 (cache_symbol): New function.
1849 (defn_symbols): Remove.
1850
1851 (standard_lookup): Use lookup_symbol_in_language to get effect of
1852 C lookup.
1853 Cache results.
1854
1855 (symbol_completion_match): New function.
1856 (symbol_completion_add): New function.
1857 (ada_make_symbol_completion_list): New function.
1858
1859 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
1860 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
1861 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1862 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
1863
1864 (ada_lookup_simple_minsym): New function.
1865 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
1866
1867 (add_symbols_from_enclosing_procs): New interface.
1868 Conditionalize more helpfully.
1869 Don't bother if program isn't running.
1870 Use new interface to get_frame_block.
1871 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
1872
1873 (remove_extra_symbols): New interface.
1874 (xget_renaming_scope): New function.
1875 (is_package_name): New function.
1876 (renaming_is_visible): New function.
1877 (remove_out_of_scope_renamings): New function.
1878
1879 (ada_lookup_symbol_list): New interface.
1880 Properly reinitialize the symbol list obstack.
1881 Don't call add_symbols_from_enclosing_procs if we start from a
1882 static or global block.
1883 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
1884 add_symbols_from_enclosing_procs.
1885 Add symtab data to cached entries.
1886 Handle symbols prefixed with
1887 "standard__" specially; strip prefix and don't look in local symbols.
1888 Do not include out of scope renaming symbols in list of
1889 symbols returned.
1890 Add const to block parameter.
1891 Move check for non-local, non-global symbols earlier.
1892 Remove timing stuff.
1893 (ada_lookup_symbol): New interface.
1894 Find symtab as well.
1895 (ada_lookup_symbol_nonlocal): New function.
1896
1897 (is_name_suffix): Enhance suffix detection to recognize
1898 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
1899 (is_dot_digits_suffix): New function.
1900 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
1901
1902 (ada_add_block_symbols): New interface. Use obstack to return results
1903 in a vector of struct ada_symbol_infos. Add symtab argument.
1904 Use new interface to add_defn_to_vec.
1905 Remove calls to fill_in_ada_prototype.
1906 Use BLOCK_BUCKETS, BLOCK_BUCKET.
1907
1908 (ada_finish_decode_line_1): Add const qualification to local to fix
1909 warning.
1910 Start looking in static block for functions to avoid attempts
1911 to search frame chain for up-level variables.
1912 Adapt to new ada_sals_for_line interface.
1913 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
1914 Handle quoting of the function name inside the spec string.
1915 Skip prologue when funfirstline is set and update the
1916 function documentation to that effect.
1917
1918 (debug_print_lines, debug_print_block, debug_print_blocks,
1919 debug_print_symtab): Remove.
1920
1921 (ada_main_name): New function.
1922 (ada_exception_breakpoint_type): New function.
1923 (is_known_support_routine): New function.
1924 (ada_find_printable_frame): Renamed from find_printable_frame and made
1925 global.
1926 Remove level parameter.
1927 Use new interface to select_frame.
1928
1929 (begin_command): Remove.
1930 (ada_adjust_exception_stop): New function.
1931 (ada_print_exception_stop): New function.
1932 (exception_name_from_cond): New function.
1933 (ada_report_exception_break): Replace disabled code with
1934 conditionalization on GNAT_GDB.
1935 Get the exception name from the condition string.
1936 Remove and move functionality into new functions
1937 ada_print_exception_breakpoint_task and
1938 ada_print_exception_breakpoint_nontask.
1939 (error_breakpoint_runtime_sym_not_found): New function.
1940 (is_runtime_sym_defined): New function.
1941 (ada_breakpoint_rewrite): Uncomment suppressed code.
1942 Use symbolic error-message and runtime-symbol names.
1943 Surround runtime symbol names in quotes.
1944 Allow non-specific breakpoints on exceptions and assertions before
1945 program starts.
1946
1947 (ada_is_tagged_type): Add parameter.
1948 (ada_is_tag_type): New function.
1949 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
1950 (ada_variant_discrim_type): Ditto.
1951 (value_tag_from_contents_and_address): New function.
1952 (type_from_tag): New function.
1953 (struct tag_args): New structure used to communicate with
1954 ada_tag_name_1.
1955 (ada_tag_name_1): New function.
1956 (ada_tag_name): New function.
1957
1958 (ada_scan_number): Update comment.
1959 (find_struct_field): New function.
1960 (ada_search_struct_field): Make static.
1961 (ada_value_struct_elt): New version that returns references when
1962 given pointers or references to structs.
1963 (ada_lookup_struct_elt_type): Add 'refok' parameter.
1964 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
1965 interface.
1966 (ada_value_ind): Use new ada_to_fixed_value interface.
1967 (ada_coerce_ref): Ditto.
1968 (field_offset): Remove.
1969
1970 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
1971 (ada_find_renaming_symbol): New function.
1972 (ada_prefer_type): Prefer named types over unnamed ones.
1973 (variant_field_index): New function.
1974 (contains_variant_part): Removed: subsumed by variant_field_index.
1975 (ada_template_to_fixed_record_type): New function, mostly from
1976 template_to_fixed_record_type.
1977 (template_to_fixed_record_type):
1978 Do not scan the type fields beyond the last one; prevents a
1979 potential SEGV.
1980 Handle case where variant field is listed BEFORE discriminant it
1981 depends on.
1982 Fix calculation of record length when bit length is
1983 not evenly divisible by char length.
1984 Move code to ada_template_to_fixed_record_type and call it.
1985
1986 (template_to_static_fixed_type): Revise comment.
1987 Modify to work on ordinary record types as well as templates,
1988 so as to handle fields that use ___XVE or ___XVU encodings.
1989 (to_record_with_fixed_variant_part): Fill out comment.
1990 Initialize C++ stuff in right type.
1991 Allow case where DVAL is null.
1992 Handle case where variant field is not last.
1993 Fix typo concerning record length.
1994 (to_fixed_record_type): Decomment disabled code.
1995 (to_fixed_record_type): Use variant_field_index instead of
1996 contains_variant_part.
1997 (to_fixed_variant_branch_type): Ditto.
1998 (to_fixed_array_type): Decomment disabled code.
1999 (ada_to_fixed_type): Convert tagged types to the specific type.
2000 Deactivate the size-check for array types in order to avoid
2001 some false size alarms.
2002 (to_static_fixed_type): Decomment disabled code.
2003 Modify to call template_to_static_fixed_type
2004 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
2005 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
2006 Remove valaddr argument, as it is never really used.
2007 (ada_to_fixed_value): Change interface to act on single struct value*
2008 operand.
2009 (adjust_pc_past_prologue): New function.
2010 (ada_attribute_name): Modify to take enum exp_opcode argument.
2011
2012 (ada_enum_name): Recognize new homonym-distinguishing convention.
2013 Adjust local variable's type to remove compiler warning.
2014 Fix a small problem in the part that unqualifies the enumeration name.
2015 (ada_value_binop): New function.
2016 (ada_value_equal): New function.
2017
2018 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
2019 Don't give error message when not doing normal evaluation
2020 and a tagged type doesn't seem to contain a structure member.
2021 Give error message for packed arrays.
2022 For indexing arrays, handle pointers to packed arrays correctly.
2023 Handle case of 'first and 'last attributes of bare integral type
2024 without encoded subtype info.
2025 Remove some unnecessary casts.
2026 Fix uninitialized value of type in computing 'first, 'last, or 'length
2027 of array object.
2028 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
2029 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
2030 calls.
2031 Attributes are now exp_opcode values.
2032 Correct treatment of 'modulus.
2033 Better error message for taking 'length of wrong kind of type;
2034 improve comment.
2035 Change EVAL_NORMAL to noside for consistency.
2036 Use ada_value_binop for DIV, MOD, REM.
2037 Make special case out of array of length 0, since an argument
2038 of 0 upsets some platforms' malloc.
2039 Use OP_STRING instead of OP_ARRAY.
2040 For slice, add check that we have an array type before extracting
2041 a slice out of it. Avoids a SEGV.
2042 When evaluating an array slice, if the array type is a reference to
2043 an aligner type, then replace the aligner type by the actual type.
2044 Decomment disabled code.
2045 Remove some dead code.
2046 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
2047 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
2048 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
2049 and UNOP_MBR to UNOP_IN_RANGE.
2050 If an array type has a parallel ___XVE type, then use it.
2051 Turn arrays into pointers for lvalue arrays.
2052 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
2053 bounds error and handle 0-length slices.
2054 Use lim_warning.
2055 When selecting fields, apply ada_to_fixed_value (because the fields
2056 might have ___XVU or ___XVE encodings even if not dynamic.)
2057 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
2058 (ada_is_system_address_type): New function.
2059
2060 (get_var_value): Use new interface to ada_lookup_symbol_list.
2061 (get_int_var_value): New interface.
2062 (to_fixed_range_type): Allow unknown bound, with warning.
2063 (ada_is_modular_type): Decomment disabled code.
2064 (ADA_OPERATORS): New definition.
2065 (ada_operator_length): New function.
2066 (ada_expr_op_name): New function.
2067 (ada_forward_operator_length): New function.
2068 (ada_dump_subexp_body): New function.
2069 (ada_print_subexp): New function.
2070 (ada_exp_descriptor): New constant.
2071 (ada_op_print_tab): Add 'size. Remove FIXMEs.
2072 (ada_language_defn): Add ada_exp_descriptor entry.
2073 Change ada_parse => parse.
2074 Add post-parser entry.
2075 Use ada-specific non-local symbol lookup.
2076 Don't use C-style arrays.
2077 String lower-bound is 1.
2078 Decomment disabled code.
2079 (parse): New function.
2080 New fields ada_translate_error_message, ada_lookup_symbol,
2081 ada_lookup_minimal_symbol.
2082
2083 * ada-lang.h: Update copyright dates.
2084 Replace the mangle/demangle terminology throughout by the
2085 more appropriate encode/decode one.
2086 Include breakpoint.h.
2087 Forward declare struct partial_symbol, struct block.
2088 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
2089 (EXTRACT_ADDRESS): Remove.
2090 (EXTRACT_INT): Remove.
2091 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
2092 (MAX_ENCLOSING_FRAME_LEVELS): Define.
2093 (MAX_RENAMING_CHAIN_LENGTH): Define.
2094 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
2095
2096 (enum task_states): Remove.
2097 ada_task_states: Remove.
2098 (fat_string): Remove.
2099 (struct entry_call): Remove.
2100 (struct task_fields): Remove.
2101 (struct task_entry): Remove.
2102
2103 (struct ada_symbol_info): Define.
2104 (enum ada_attribute): Remove.
2105 (enum ada_operator): Define.
2106
2107 (ada_get_field_index): Declare.
2108 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
2109 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2110 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2111 (ada_lookup_symbol_list): New interface.
2112 (ada_decode_symbol): Declare.
2113 (ada_decode): Declare.
2114 (ada_lookup_symbol): New interface.
2115 (ada_update_initial_language): Declare.
2116 (ada_lookup_simple_minsym): Declare.
2117 (user_select_syms): New interface.
2118 (ada_sals_for_line): Declare.
2119 (ada_is_tagged_type): New interface.
2120 (ada_tag_name): Declare.
2121 (ada_lookup_struct_elt_type): Remove declaration.
2122 (ada_search_struct_field): Remove declaration.
2123 (ada_attribute_name): New interface.
2124 (ada_is_system_address_type): Declare.
2125 (ada_to_fixed_value): Remove declaration.
2126 (ada_template_to_fixed_record_type_1): Declare.
2127 (get_int_var_value): New interface.
2128 (ada_find_any_symbol): Declare.
2129 (ada_find_renaming_symbol): Declare.
2130 (ada_mangle): Rename to ada_encode.
2131 (ada_simple_renamed_entity): Remove const.
2132 (ada_main_name): Declare.
2133 (get_current_task): Rename to ada_get_current_task.
2134 (get_entry_number): Remove declaration.
2135 (ada_report_exception_break): Remove declaration.
2136 (ada_print_exception_breakpoint_nontask): Declare.
2137 (ada_print_exception_breakpoint_task): Declare.
2138 (ada_find_printable_frame): Declare.
2139
2140 * ada-lex.l: Update copyright notices.
2141 Use xmalloc and xfree instead of malloc and free.
2142 Use new interface to name_lookup.
2143 Use new interface to
2144 ada_mangle=>ada_encode.
2145 Redo handling of '$...' variable to parallel current treatment
2146 in c-exp.y.
2147 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
2148 digit_to_int, strtoulst, processInt, processReal, processId,
2149 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
2150 yywrap): Protoize.
2151
2152 (processInt): Use cast to remove harmless warning.
2153 (processReal): Modify to get rid of compiler warning on scan formats.
2154
2155 (processId): Replace xmalloc with obstack_alloc for name and remove
2156 call to ada_name_string_cleanup.
2157 Remove obsolete disabled code.
2158 (name_lookup): Ditto.
2159 New interface.
2160 Use obsavestring on temp_parse_space instead of savestring
2161 on name, and remove call to ada_name_string_cleanup.
2162 Free string returned from ada_simple_renamed_entity.
2163 Use new interface to ada_lookup_symbol_list.
2164 Decomment disabled code.
2165 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
2166 not types.
2167 When a type name lookup succeeds as a result of
2168 lookup_primitive_typename, check for regular type entry that has not
2169 yet been read in.
2170 Limit length of chain of renamed symbols we are willing to follow.
2171 Do not break names beginning with "standard__" into segments.
2172 (block_lookup): Use new interface to ada_lookup_symbol_list.
2173
2174 * ada-typeprint.c: Update copyright notice.
2175 (demangled_type_name): Rename to decoded_type_name.
2176 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
2177 (print_range_bound): Correct handling of negative
2178 bounds that make the index type looked unsigned under STABS.
2179 (print_dynamic_range_bound): Use new interface to get_int_var_value.
2180 (print_range_type_named): Use the builtin int type if no type
2181 corresponding to the given type name could be found.
2182 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
2183 Add some bullet-proofing.
2184 (print_variant_clauses): Allow for variant branches with ___XVU
2185 encodings that are not dynamic fields.
2186 Use new interface to ada_is_tagged_type.
2187 (print_record_type): Allow for fields with ___XVE encodings that
2188 are not dynamic fields.
2189 Use new interface to ada_is_tagged_type.
2190 (ada_print_type): ada_is_array_descriptor =>
2191 ada_is_array_descriptor_type.
2192
2193 * ada-valprint.c: Update copyright notice.
2194 Include gdb_string.h
2195 Include infcall.h
2196 (ui_memcpy): New function.
2197 (ada_print_floating): New function.
2198 (ada_print_str): Order arguments correctly.
2199 Correct handling of empty arrays and arrays of 0-length items.
2200 ada_is_array_descriptor => ada_is_array_descriptor_type
2201 Print values of type System.Address in hexadecimal format.
2202 Use ada_print_floating to print floating-point numbers in Ada format.
2203 Print class tag values with type names.
2204 No longer print the address of reference values. Avoids
2205 a potential confusion.
2206 (ada_value_print): Stop printing the object type for reference
2207 values, but preserve that behavior for access types. Avoids
2208 a potential confusion.
2209 Simplify one conditional expression, as the first part is now
2210 necessarily true.
2211 ada_is_array_descriptor => ada_is_array_descriptor_type
2212 Add check for arrays for null records, and print them by hand.
4c4b4cd2 2213
f65f91b5
JB
22142004-06-01 Jim Blandy <jimb@redhat.com>
2215
2216 * ppc-tdep.h: Delete unused 'regoff' member.
2217 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
2218
d4687fa0
MC
22192004-06-01 Michael Chastain <mec.gnu@mindspring.com>
2220
2221 Fix PR symtab/1661.
2222 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
2223 (hpread_read_struct_type): Likewise.
2224
de169ec9
AC
22252004-06-01 Andrew Cagney <cagney@gnu.org>
2226
c6902d46
AC
2227 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
2228 instead of xasprintf.
2229 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
2230 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
2231 (mi_cmd_data_list_register_names)
2232 (mi_cmd_data_list_changed_registers)
2233 (mi_cmd_data_list_register_values)
2234 (get_register, mi_cmd_data_write_register_values)
2235 (mi_cmd_data_write_register_values)
2236 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
2237 (mi_cmd_target_download, mi_cmd_target_select)
2238 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
2239 (mi_execute_cli_command, mi_execute_async_cli_command)
2240 (mi_execute_async_cli_command): Ditto.
2241 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
2242 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
2243
6085fc2d
AC
2244 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
2245 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
2246 error_last_message instead of mi_error_last_message.
2247 * mi/mi-main.c (mi_error_last_message): Delete function.
2248
de169ec9
AC
2249 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
2250 "invalid number of columns" error. Delete redundant "out of
2251 memory" check.
2252
1fc7d519
MK
22532004-05-31 Mark Kettenis <kettenis@gnu.org>
2254
6cfb2041
MK
2255 * i386bsd-nat.c: Don't include <sys/procfs.h>.
2256 (gregset_t, fpregset_t): Remove typedefs.
2257 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
2258 (REG_OFFSET): Rename argument.
2259 (i386bsd_r_reg_offset): Rename from reg_offset.
2260 (REG_ADDR): Remove macro.
2261 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
2262 functions.
2263 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
2264 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
2265 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
2266 instead of supply_gregset.
2267 (store_inferior_registers): Use `struct reg' and `struct fpreg'
2268 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
2269 instead of fill_gregset.
2270 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
2271
1fc7d519
MK
2272 * i386bsd-nat.c: Don't include "gregset.h".
2273 (supply_gregset, fill_gregset): Make static.
2274 (supply_fpregset, fill_fpregset): Remove.
2275 * Makefile.in (i386bsd-nat.o): Update dependencies.
2276
2c34abbe
MK
22772004-05-30 Mark Kettenis <kettenis@gnu.org>
2278
448724fb
MK
2279 * fbsd-proc.c: Include "regcache.h", "regset.h" and
2280 "gdb_assert.h". Con't include "gregset.h".
2281 (fbsd_make_corefile_notes): Use regset-based core file support
2282 instead off fill_gregset and fill_fpregset.
2283 * Makefile.in (fbsd-proc.o): Update dependencies.
2284
5ca8ca7c
MK
2285 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
2286 instructions.
2287 (m88k_frame_prev_register): Simplify code a bit.
2288
593adc23
MK
2289 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
2290 (amd64_collect_fpregset): New function.
2291 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
2292
8d1b517b
MK
2293 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
2294
7fdafb5a
MK
2295 * i386-tdep.c (i386_supply_gregset): Adjust comment.
2296 (i386_collect_gregset): New function.
2297 (i386_supply_fpregset): Adjust comment.
2298 (i386_collect_fpregset): New function.
2299 (i386_regset_from_core_section): Use i386_collect_gregset and
2300 i386_collect_fpregset.
2301
8693c419
MK
2302 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
2303 handle VALUEP being null.
2304
2c34abbe
MK
2305 * regset.h (collect_regset_ftype): Unconstify fourth argument.
2306
45d134d8
MK
23072004-05-29 Mark Kettenis <kettenis@gnu.org>
2308
1698f4e7
MK
2309 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
2310
45d134d8
MK
2311 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
2312 assembler in OpenBSD 3.5-current.
2313 (amd64obsd_sigcontext_addr): Likewise.
2314
691d145a
JB
23152004-05-28 Jim Blandy <jimb@redhat.com>
2316
2317 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
2318 register set, so our regcache isn't declared "legacy" and our E500
2319 pseudoregister read and write functions aren't ignored.
2320 (rs6000_register_byte, rs6000_register_raw_size,
2321 rs6000_register_virtual_type, rs6000_register_convertible,
2322 rs6000_register_convert_to_virtual,
2323 rs6000_register_convert_to_raw): Deleted.
2324 (rs6000_register_type, rs6000_convert_register_p,
2325 rs6000_register_to_value, rs6000_value_to_register): New
2326 functions.
2327 (rs6000_gdbarch_init): Don't register
2328 gdbarch_deprecated_register_size,
2329 gdbarch_deprecated_register_bytes,
2330 gdbarch_deprecated_register_byte,
2331 gdbarch_deprecated_register_raw_size,
2332 gdbarch_deprecated_register_virtual_type,
2333 gdbarch_deprecated_register_convertible,
2334 gdbarch_deprecated_register_convert_to_virtual, or
2335 gdbarch_deprecated_register_convert_to_raw methods. Instead,
2336 register gdbarch_register_type, gdbarch_convert_register_p,
2337 gdbarch_register_to_value, and gdbarch_value_to_register methods.
2338
18ed0c4e
JB
23392004-05-26 Jim Blandy <jimb@redhat.com>
2340
2341 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
2342 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
2343 functions, updated to match the register numberings used in GCC.
2344 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
2345 rs6000_dwarf2_reg_to_regnum as register number conversions
2346 functions for STABS and Dwarf2.
2347
779af9e3
RC
23482004-05-26 Randolph Chung <tausq@debian.org>
2349
2350 * infttrace.h (target_waitkind): Forward declare type instead of pulling
2351 in header file.
2352
c23968a2
JB
23532004-05-25 Joel Brobecker <brobecker@gnat.com>
2354
2355 * NEWS: Document new "start" command.
2356
3a7d1c27
RC
23572004-05-25 Randolph Chung <tausq@debian.org>
2358
2359 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
2360 hppa-linux.
2361
43613416
RC
23622004-05-25 Randolph Chung <tausq@debian.org>
2363
2364 * hppa-hpux-tdep.c (offsetof): Define.
2365 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
2366 (hppa32_hpux_frame_base_before_sigtramp)
2367 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
2368 (hppa64_hpux_frame_saved_pc_in_sigtramp)
2369 (hppa64_hpux_frame_base_before_sigtramp)
2370 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
2371 functions.
2372 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
2373 (hppa_hpux_sigtramp_frame_unwind_cache)
2374 (hppa_hpux_sigtramp_frame_this_id)
2375 (hppa_hpux_sigtramp_frame_prev_register)
2376 (hppa_hpux_sigtramp_frame_unwind)
2377 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
2378 (hppa_hpux_init_abi): Register sigtramp unwinder.
2379 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
2380
6d1be3f1
RC
23812004-05-25 Randolph Chung <tausq@debian.org>
2382
2383 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
2384 and multiple stack unwinds.
2385 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
2386
97c34f65
AC
23872004-05-25 Andrew Cagney <cagney@gnu.org>
2388
2389 * symfile.h (symbol_file_add_from_memory): Delete declaration.
2390 * symfile-mem.h: Delete file.
2391 * symfile-mem.c: Do not include "symfile-mem.h".
2392 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
2393 "struct bfd_section". When an error do not bother returning NULL.
2394 (add_symbol_file_from_memory_command): Use "struct bfd" and
2395 "struct bfd_section".
2396 * Makefile.in (symfile_mem_h): Delete.
2397 (symfile-mem.o): Update dependencies.
2398
e23cbd82
NR
23992004-05-25 Nick Roberts <nickrob@gnu.org>
2400
2401 * gdb-mi.el: New file.
2402
20d2ca3e
AC
24032004-05-25 Andrew Cagney <cagney@gnu.org>
2404
2405 * inftarg.c: Include "observer.h".
2406 (child_attach, child_create_inferior): Notify inferior_created.
2407 * corelow.c: Include "observer.h".
2408 (core_open): Notify inferior_created.
2409 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
2410
c27cda74
AC
24112004-05-25 Andrew Cagney <cagney@gnu.org>
2412
2413 * target.h (struct target_ops): Add from_tty to
2414 to_create_inferior.
2415 (target_create_inferior, find_default_create_inferior): Update.
2416 * infcmd.c (run_command): Update.
2417 * wince.c (child_create_inferior): Update.
2418 * win32-nat.c (child_create_inferior): Update.
2419 * uw-thread.c (uw_thread_create_inferior): Update.
2420 * thread-db.c (thread_db_create_inferior): Update.
2421 * target.c (debug_to_create_inferior)
2422 (find_default_create_inferior): Update.
2423 (maybe_kill_then_create_inferior): Update.
2424 * sol-thread.c (sol_thread_create_inferior): Update.
2425 * remote.c (extended_remote_async_create_inferior)
2426 (extended_remote_create_inferior): Update.
2427 * remote-vx.c (vx_create_inferior): Update.
2428 * remote-st.c (st2000_create_inferior): Update.
2429 * remote-sim.c (gdbsim_create_inferior): Update.
2430 * remote-sds.c (sds_create_inferior): Update.
2431 * remote-rdp.c (remote_rdp_create_inferior): Update.
2432 * remote-rdi.c (arm_rdi_create_inferior): Update.
2433 * remote-m32r-sdi.c (m32r_create_inferior): Update.
2434 * remote-e7000.c (e7000_create_inferior): Update.
2435 * procfs.c (procfs_create_inferior): Update.
2436 * ocd.c (ocd_create_inferior): Update.
2437 * ocd.h (ocd_create_inferior): Update.
2438 * nto-procfs.c (procfs_create_inferior): Update.
2439 * monitor.c (monitor_create_inferior): Update.
2440 * lin-lwp.c (lin_lwp_create_inferior): Update.
2441 * inftarg.c (child_create_inferior): Update.
2442 * hpux-thread.c (hpux_thread_create_inferior): Update.
2443 * gnu-nat.c (gnu_create_inferior): Update.
2444
1db2a798
AC
24452004-05-25 Andrew Cagney <cagney@gnu.com>
2446
2447 * MAINTAINERS: Update e-mail address.
2448
007d08bb
RC
24492004-05-24 Randolph Chung <tausq@debian.org>
2450
2451 * thread.c (info_threads_command, thread_apply_all_command)
2452 (thread_apply_command, thread_command, do_captured_thread_select):
2453 Remove HPUXHPPA-specific code.
2454
69e7b95e
RC
24552004-05-24 Randolph Chung <tausq@debian.org>
2456
2457 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
2458 unused symbols.
2459 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
2460 references.
2461
a4d5f2e0
JB
24622004-05-24 Joel Brobecker <brobecker@gnat.com>
2463
2464 * infcmd.c (kill_if_already_running): New function, extracted
2465 from run_command().
2466 (run_command): Replace extracted code by call to
2467 kill_if_already_running().
2468 (start_command): New function.
2469 (_initialize_infcmd): Add "start" command.
2470
bf2ca189
MK
24712004-05-24 Mark Kettenis <kettenis@gnu.org>
2472
2473 Add OpenBSD/m88k support.
2474 * NEWS (New native configurations): Mention OpenBSD/m88k.
2475 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
2476 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
2477 * Makefile.in (m88k_tdep_h): New variable.
2478 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
2479 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
2480 * configure.host: Add m88*-*-openbsd*.
2481 * configure.tgt: Add m88*-*-openbsd*.
2482
80fadb11
JB
24832004-05-24 Jim Blandy <jimb@redhat.com>
2484
2485 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
2486 to approve changes.
2487
19e2d14b
KB
24882004-05-24 Kevin Buettner <kevinb@redhat.com>
2489
2490 * symtab.c (fixup_section): Search section table when lookup by
2491 name fails.
2492
1b07b470
RC
24932004-05-24 Randolph Chung <tausq@debian.org>
2494
2495 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
2496 be "small_struct".
2497
368702b1
MK
24982004-05-24 Mark Kettenis <kettenis@gnu.org>
2499
5df97fde
MK
2500 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
2501 register number in regcache_raw_collect call.
2502 (m68kbsd_collect_fpregset): Likewise.
2503 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
2504
368702b1
MK
2505 * regset.h (struct regset): Add back `regset' member.
2506
a770d4ec
MK
25072004-05-23 Mark Kettenis <kettenis@gnu.org>
2508
70f9f479
MK
2509 * configure.in: Check for td_pcb in `struct thread'.
2510 * configure, config.in: Regenerated.
2511
2e16d79e
MK
2512 * dpx2-nat.c: Remove file.
2513 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
2514 (dpx2-nat.o): Remove dependencies.
2515
492cf391
MK
2516 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
2517 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
2518 (amd64obsd_supply_pcb): New function.
2519 (_initialize_amd64obsd_nat): Enable libkvm interface.
2520 * Makefile.in (amd64obsd-nat.o): Update dependencies.
2521 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
2522 (LOADLIBES): New variable.
2523
a770d4ec
MK
2524 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
2525 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
2526 (sparc32nbsd_supply_pcb): New function.
2527 (_initialize_sparcnbsd_nat): Enable libkvm interface.
2528 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
2529 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2530 (LOADLIBES): New variable.
2531
9ea75c57
MK
25322004-05-22 Mark Kettenis <kettenis@gnu.org>
2533
2e0c3539
MK
2534 * bsd-kvm.c, bsd-kvm.h: New files.
2535 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2536 "bsd-kvm.h".
2537 (i386fbsd_supply_pcb): New function.
2538 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
2539 (i386fbsd-nat.o): Update dependencies.
2540 (bsd_kvm_h): New variable.
2541 (bsd-kvm.o): New dependency.
2542 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2543 (LOADLIBES): New variable.
2544
9ea75c57
MK
2545 * regset.c: Tweak comment.
2546 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
2547 macro.
2548 * regset.h: Update copyright year.
2549 (struct regset): Remove `descr' member, add `gdbarch' member.
2550 (regset_alloc): Adjust prototype and comment.
2551 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
2552 (i386_supply_fpregset): Likewise.
2553 (i386_regset_from_core_section): Update call to regset_alloc.
2554 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
2555 REGSET->arch.
2556 (i386obsd_aout_regset_from_core_section): Update call to
2557 regset_alloc.
2558 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
2559 REGSET->arch.
2560 (i386nbsd_aout_regset_from_core_section): Update call to
2561 regset_alloc.
2562 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
2563 REGSET->arch.
2564 (amd64_regset_from_core_section): Update call to regset_alloc.
2565 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
2566 REGSET->arch.
2567 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
2568 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
2569 &sparc32nbsd_gregset in sparc32_supply_gregset call.
2570 (sparc32nbsd_init_abi): Update call to regset_alloc.
2571 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
2572 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
2573 (sparc64obsd_init_abi): Update call to regset_alloc.
2574 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
2575 &sparc64nbsd_gregset in sparc64_supply_gregset call.
2576 (sparc64nbsd_init_abi): Update call to regset_alloc.
2577 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
2578 &sparc64fbsd_gregset in sparc64_supply_gregset call.
2579 (sparc64fbsd_init_abi): Update call to regset_alloc.
2580
867e2dc5
JB
25812004-05-22 Jim Blandy <jimb@redhat.com>
2582
2583 * ppc-tdep.h (spe_register_p): New declaration.
2584 (struct gdbarch_tdep): New members: ppc_acc_regnum and
2585 ppc_spefscr_regnum.
2586 * rs6000-tdep.c (spe_register_p): New function.
2587 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
2588 spefscr.
2589 (rs6000_gdbarch_init): Initialize the new members of the tdep
2590 structure.
2591
617a4cba
JB
25922004-05-21 Jim Blandy <jimb@redhat.com>
2593
0397dee1
JB
2594 * ppc-linux-nat.c (fetch_register): Move code back to be next
2595 to the comment that describes it. (Moved code, instead of
2596 comment, for symmetry with store_register.)
2597
617a4cba
JB
2598 Allocate regset structures in the gdbarch's obstack, not using
2599 xmalloc.
2600 * regset.c (regset_alloc): Renamed from regset_xmalloc.
2601 Add 'arch' argument. Allocate the regset on arch's obstack, not
2602 using xmalloc.
2603 * regset.h (regset_alloc): Update declaration.
2604 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
2605 gdbarch argument.
2606 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
2607 * i386-tdep.c (i386_regset_from_core_section): Same.
2608 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
2609 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
2610 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
2611 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
2612 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
2613 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
2614
9aa3914d
JB
26152004-05-21 Joel Brobecker <brobecker@gnat.com>
2616
2617 * config/djgpp/fnchange.lst: Undo previous change, was useless.
2618
99c87dab
JB
26192004-05-21 Jim Blandy <jimb@redhat.com>
2620
2621 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
2622 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
2623
c2b6b4aa
JB
26242004-05-20 Jim Blandy <jimb@redhat.com>
2625
2626 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
2627
144529d0
MK
26282004-05-20 Mark Kettenis <kettenis@gnu.org>
2629
2630 * regset.h: Make prototype const-correct.
2631 * regset.c (regset_xmalloc): Make const-correct.
2632
4725b721
PH
26332004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
2634
2635 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
2636 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
2637 (symbol_search_name): Declare.
2638
2639 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
2640 (iter_name_next_hashed): Ditto.
2641 (iter_name_next_linear): Ditto.
2642 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
2643
2644 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
2645 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
2646 (symbol_search_name): New function.
2647
2648 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
2649
2650 * minsyms.c (build_minimal_symbol_hash_tables): Change
2651 test for adding to demangled hash table to check for difference
2652 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
2653
be07a590
JB
26542004-05-19 Jim Blandy <jimb@redhat.com>
2655
2656 Use a constructor function to create regset structures.
2657 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
2658 (struct regset): Use supply_regset_ftype. Add new
2659 'collect_regset' member.
2660 (regset_xmalloc): New declaration.
2661 * regset.c: New file.
2662 * am64-tdep.c (amd64_regset_from_core_section): Use
2663 regset_xmalloc to construct regset structures.
2664 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
2665 * i386-tdep.c (i386_regset_from_core_section): Same.
2666 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
2667 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
2668 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
2669 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
2670 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
2671 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
2672 * Makefile.in (COMMON_OBS): Add regset.o.
2673 (regset.o): New rule.
2674
604368f5
JB
26752004-05-19 Joel Brobecker <brobecker@gnat.com>
2676
2677 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
2678 and pthread_cond_wait.c.
2679
82d69f8b
JB
26802004-05-18 Jim Blandy <jimb@redhat.com>
2681
2682 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
2683 before the mach-specific switch, and then let the individual cases
2684 override the defaults, rather than leaving them uninitialized
2685 until the switch and then setting them in each case.
2686
5859efe5
RC
26872004-05-18 Randolph Chung <tausq@debian.org>
2688
2689 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
2690 millicode functions.
2691
9ca80cf8
RC
26922004-05-18 Randolph Chung <tausq@debian.org>
2693
2694 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
2695 references to dld_flags_buffer consistent.
2696
ed70ba00
RC
26972004-05-18 Randolph Chung <tausq@debian.org>
2698
2699 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
2700 it for unwinding the stack.
2701
63100632
RC
27022004-05-18 Randolph Chung <tausq@debian.org>
2703
2704 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
2705 Undefine these so we can overide them using gdbarch.
2706
090ccbb7
RC
27072004-05-18 Randolph Chung <tausq@debian.org>
2708
2709 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
2710 handling for 64-bit HPUX (elf).
2711
594706e6
DJ
27122004-05-18 Daniel Jacobowitz <dan@debian.org>
2713
2714 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
2715 constants.
2716 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2717 * ia64-tdep.c (examine_prologue): Likewise.
2718 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
2719 * v850-tdep.c (v850_fix_call_dummy): Likewise.
2720
e5483145
MK
27212004-05-18 Mark Kettenis <kettenis@gnu.org>
2722
2723 * vax-tdep.c (vax_return_value): Implement
2724 RETURN_VALUE_ABI_RETURNS_ADDRESS.
2725
caed1a45
MK
27262004-05-17 Mark Kettenis <kettenis@gnu.org>
2727
2728 * vax-tdep.c (vax_return_value): Fix typo.
2729
3c0b7db2
AC
27302004-05-17 Andrew Cagney <cagney@redhat.com>
2731
5aae53e5
AC
2732 * MAINTAINERS: Mark Salter was also responsible for
2733 testsuite/config/
2734
3c0b7db2
AC
2735 * NEWS: Mention signal fixes.
2736
22b0923d
RC
27372004-05-17 Randolph Chung <tausq@debian.org>
2738
2739 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
2740 check to see if we are unwinding an export stub. Export stubs clobber
2741 the %rp in the call path and stores the original rp in a stack slot.
2742
22f2b2f3
JB
27432004-05-17 Jim Blandy <jimb@redhat.com>
2744
2745 * MAINTAINERS: Update address for J.T. Conklin.
2746
cea96d64
RC
27472004-05-17 Randolph Chung <tausq@debian.org>
2748
2749 * hppa-tdep.c: Remove superfluous #include's.
2750 * Makefile.in (hppa-tdep.o): Update dependencies.
2751
f08f6a4a
RC
27522004-05-17 Randolph Chung <tausq@debian.org>
2753
2754 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
2755 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
2756 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
2757 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
2758 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
2759 Remove static function declarations.
2760
51da707a
MK
27612004-05-17 Mark Kettenis <kettenis@gnu.org>
2762
caed1a45
MK
2763 * alphabsd-nat.c: Update copyright year.
2764 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
2765
c0c2b0db
MK
2766 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
2767 and M68K_A2_REGNUM.
2768
51da707a
MK
2769 * m68k-tdep.c (m68k_svr4_return_value): Implement
2770 RETURN_VALUE_ABI_RETURNS_ADDRESS.
2771
8d027a04
MK
27722004-05-16 Mark Kettenis <kettenis@gnu.org>
2773
2774 * sol-thread.c Update copyright year. Fix various coding
2775 standards violations. Tweak a few comments.
2776 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
2777 Delete prototypes.
2778
0d99fdb9
RC
27792004-05-15 Randolph Chung <tausq@debian.org>
2780
2781 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
2782 as pointer instead of array reference since HPUX compiler does
2783 not accept unsized array arguments.
2784 * somsolib.c (dld_flags_buffer): Use constant array size.
2785
f7e3843a
MK
27862004-05-15 Mark Kettenis <kettenis@gnu.org>
2787
0fe85704
MK
2788 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
2789 offset with decimal offset.
2790 (amd64obsd_sigcontext_addr): Return correct address for entire
2791 signal trampoline.
2792
a54f9a00
MK
2793 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
2794 instead of get_frame_base.
2795
feae6502
MK
2796 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
2797 (fill_gregset): Use regcache_raw_collect.
2798
0382d099
MK
2799 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
2800 ppcobsd-tdep.c.
2801
f7e3843a
MK
2802 * config/sparc/tm-nbsd64.h: Remove file.
2803 * config/tm-sunos.h: Remove file.
2804
773df3e5
JB
28052004-05-15 Joel Brobecker <brobecker@gnat.com>
2806
2807 * rs6000-tdep.c (store_param_on_stack_p): New function,
2808 an improved version of some code extracted from skip_prologue().
2809 (skip_prologue): Use store_param_on_stack_p() to detect
2810 instructions saving a parameter on the stack. Detect when r0
2811 is used to save a parameter.
2812 Do not mark "li rx, SIMM" instructions as part of the prologue,
2813 unless the following instruction is also part of the prologue.
2814
95918acb
AC
28152004-05-14 Andrew Cagney <cagney@redhat.com>
2816
06f32659
AC
2817 * infrun.c (handle_inferior_event): Simplify
2818 STEP_OVER_UNDEBUGGABLE.
2819
95918acb
AC
2820 * infrun.c (handle_step_into_function): Delete function.
2821 (handle_inferior_event): Inline calls to
2822 handle_step_into_function.
2823
42203e46
JG
28242004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
2825
2826 * rs6000-nat.c: Fix a comment.
2827
02f60eae
JB
28282004-05-12 David Anderson <davea@sgi.com>
2829
2830 Committed by Jim Blandy <jimb@redhat.com>:
2831 * regcache.c (struct regcache_descr): fix comment spelling.
2832
552e377b
JB
28332004-05-13 J. Brobecker <brobecker@gnat.com>
2834
2835 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
2836 Fixes a link link failure.
2837
349766b2
JB
28382004-05-13 J. Brobecker <brobecker@gnat.com>
2839
2840 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
2841 error that was causing the build to fail.
2842
0d4d5484
JB
28432004-05-13 J. Brobecker <brobecker@gnat.com>
2844
2845 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
2846 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
2847
0b30808c
AC
28482004-05-13 Andrew Cagney <cagney@redhat.com>
2849
2850 * infrun.c (handle_inferior_event): Check for
2851 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
2852 calls. Update comments.
2853
cdf2c5f5
JB
28542004-05-13 Jim Blandy <jimb@redhat.com>
2855
063715bf
JB
2856 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
2857 (fetch_regs_user_thread, fetch_regs_kernel_thread)
2858 (store_regs_user_thread, store_regs_kernel_thread): Use
2859 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
2860 * ppc-linux-nat.c (fill_gregset): Same.
2861 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2862 (ppc_linux_sigtramp_cache): Same.
2863 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
2864 (ppcnbsd_sigtramp_cache_init): Same.
2865 * rs6000-nat.c (fetch_core_registers): Same.
2866 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2867 (rs6000_frame_cache): Same.
2868
cdf2c5f5
JB
2869 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
2870 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
2871 of assuming that the gprs are numbered starting with zero.
2872 * ppc-linux-nat.c (fill_gregset): Same.
2873 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
2874 * ppcnbsd-nat.c (getregs_supplies): Same.
2875 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
2876 * rs6000-nat.c (fetch_core_registers): Same.
2877 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
2878
450bd37b
MS
28792004-05-07 Michael Snyder <msnyder@redhat.com>
2880
2881 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
2882 LOC_COMPUTED_ARG, and LOC_INDIRECT.
2883
4a72a2a6
AC
28842004-05-13 Andrew Cagney <cagney@redhat.com>
2885
2886 * infrun.c (handle_inferior_event): Use frame_unwind_id.
2887
8edfa926
BM
28882004-05-13 Bryce McKinlay <mckinlay@redhat.com>
2889
2890 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
2891 base_address for shared libraries.
2892
723e0e3d
BM
28932004-05-13 Bryce McKinlay <mckinlay@redhat.com>
2894
2895 * MAINTAINERS (write after approval): Add myself.
2896
00d4360e
UW
28972004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2898
2899 * breakpoint.c (bpstat_stop_status): Add new argument
2900 STOPPED_BY_WATCHPOINT. Use it instead of testing
2901 target_stopped_data_address agaist 0 to check whether
2902 or not we stopped due to a hardware watchpoint.
2903 * breakpoint.h (bpstat_stop_status): Adapt prototype.
2904 * infrun.c (handle_inferior_event): Call bpstat_stop_status
2905 with new argument.
2906
ec76baa5
JB
29072004-05-12 Jim Blandy <jimb@redhat.com>
2908
2909 * configure.in: When checking whether we should use the -bbigtoc
2910 option, don't forget to restore the original value of LDFLAGS.
2911 * configure: Regenerated.
2912
f2c9ca08
AC
29132004-05-12 Andrew Cagney <cagney@redhat.com>
2914
2915 * thread.c (load_infrun_state): Delete step_sp.
2916 * infrun.c (context_switch): Ditto.
2917 * inferior.h (step_sp): Ditto.
2918 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
2919 * gdbthread.h (struct thread_info, save_infrun_state)
2920 (restore_infrun_state): Ditto.
2921
090ddb2a
UW
29222004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
2923
2924 * MAINTAINERS (write after approval): Add myself.
2925
8aad930b
AC
29262004-05-12 Andrew Cagney <cagney@redhat.com>
2927
2928 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
2929 eliminate reference to step_sp.
2930 (struct execution_control_state, init_execution_control_state)
2931 (handle_inferior_event, keep_going): Delete update_step_sp and
2932 step_sp.
2933 * infcmd.c (step_sp): Note that variable is unused.
2934
922d5ae0
AC
29352004-05-11 Andrew Cagney <cagney@redhat.com>
2936
2937 * infrun.c (step_over_function): Delete function.
2938 (handle_step_into_function): Use insert_step_resume_breakpoint.
2939 (insert_step_resume_breakpoint): Fix assertion.
2940
017c5ca5
NR
29412004-05-11 Nick Roberts <nickrob@gnu.org>
2942
2943 * utils.c (defaulted_query): Just use the normal query input type
2944 when printing the annotations.
2945
42edda50
AC
29462004-05-11 Andrew Cagney <cagney@redhat.com>
2947
2948 * infrun.c (handle_inferior_event): Simplify code handling
2949 step-into or return-from a signal trampoline.
2950
d28b44a7
AC
29512004-05-11 Andrew Cagney <cagney@redhat.com>
2952
2953 * ppcnbsd-tdep.c: Include "gdb_assert.h".
2954 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
2955
383f0f5b
JB
29562004-05-10 Jim Blandy <jimb@redhat.com>
2957
d0b57c3a
JB
2958 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
2959 with a call to internal_error.
2960
383f0f5b
JB
2961 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
2962 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
2963 processor variant lacks those registers.
2964 (ppc_floating_point_unit_p): Change description to make it clear
2965 that this returns info about the ISA, not the ABI.
2966 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
2967 return true or false by checking tdep->ppc_fp0_regnum and
2968 tdep->ppc_fpscr_regnum. The original code replicated the BFD
2969 arch/mach switching done in rs6000_gdbarch_init; it's better to
2970 keep that logic there, and just check the results here.
2971 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
2972 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
2973 floating-point registers.
2974 (ppc_supply_fpregset, ppc_collect_fpregset)
2975 (rs6000_push_dummy_call, rs6000_extract_return_value)
2976 (rs6000_store_return_value): Assert that we have floating-point
2977 registers.
2978 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
2979 (rs6000_frame_cache): Don't note the locations at which
2980 floating-point registers were saved if we have no fprs.
2981 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
2982 registers.
2983 (fetch_regs_user_thread, fetch_regs_kernel_thread)
2984 (store_regs_user_thread, store_regs_kernel_thread): Only call
2985 supply_fprs / fill_fprs if we actually have floating-point
2986 registers.
2987 (special_register_p): Check ppc_fpscr_regnum before matching
2988 against it.
2989 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
2990 supply / collect fpscr if we don't have it.
2991 * ppc-bdm.c: #include "gdb_assert.h".
2992 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
2993 have floating-point registers, since I can't test this code on
2994 FP-free systems to adapt it.
2995 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
2996 fpscr and floating point register numbers if they don't exist.
2997 (fetch_register): Assert that we have floating-point registers
2998 before we reach the code that handles them.
2999 (store_register): Same. And use tdep instead of calling
3000 gdbarch_tdep again.
3001 (fill_fpregset): Don't try to collect FP registers and fpscr if we
3002 don't have them.
3003 (ppc_linux_sigtramp_cache): Don't record the saved locations of
3004 fprs and fpscr if we don't have them.
3005 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
3006 don't have them.
3007 * ppcnbsd-nat.c: #include "gdb_assert.h".
3008 (getfpregs_supplies): Assert that we have floating-point registers.
3009 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
3010 * ppcobsd-tdep.c: #include "gdb_assert.h".
3011 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
3012 have floating-point registers.
3013 * rs6000-nat.c (regmap): Don't match against the fpscr and
3014 floating point register numbers if they don't exist.
3015 (fetch_inferior_registers, store_inferior_registers,
3016 fetch_core_registers): Only fetch / store / supply the
3017 floating-point registers and the fpscr if we have them.
3018 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
3019 (ppcobsd-tdep.o): Update dependencies.
3020
15960608
AC
30212004-05-10 Andrew Cagney <cagney@redhat.com>
3022
3023 * infrun.c (through_sigtramp_breakpoint): Delete variable.
3024 (context_switch): Do not switch through_sigtramp_breakpoint.
3025 * gdbthread.h (save_infrun_state, load_infrun_state)
3026 (struct thread_info): Delete through_sigtramp_breakpoint parameter
3027 and structure member.
3028 * thread.c (load_infrun_state, save_infrun_state): Update.
3029
5ab5aa0f
MK
30302004-05-10 Mark Kettenis <kettenis@gnu.org>
3031
3032 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
3033
da78b0e7
DJ
30342004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3035
3036 * acinclude.m4: Quote macro names being defined by AC_DEFUN
3037 throughout.
3038 * aclocal.m4: Regenerate.
3039
cca0d3b0
NW
30402004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
3041
3042 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
3043
d303a6c7
AC
30442004-05-10 Andrew Cagney <cagney@redhat.com>
3045
3046 * infrun.c (check_sigtramp2): Delete function.
3047 (handle_inferior_event): When single stepping, and taking a
3048 signal, set a breakpoint at the signal return address. Delete
3049 redundant calls to check_sigtramp2.
3050 (insert_step_resume_breakpoint): New function.
3051 (through_sigtramp_breakpoint, handle_inferior_event)
3052 (follow_exec, wait_for_inferior, fetch_inferior_event)
3053 (currently_stepping, keep_going): Delete most uses of
3054 through_sigtramp_breakpoint, not that it should be deleted.
3055 (delete_breakpoint_current_contents): Delete function.
3056
03f4cc20
RC
30572004-05-10 Randolph Chung <tausq@debian.org>
3058
3059 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
3060 target.
3061 * config/pa/tm-linux.h: New file.
3062
37fc812e
DJ
30632004-05-10 Daniel Jacobowitz <drow@mvista.com>
3064
3065 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
3066 of prefixes. Don't print the prefix twice in the CLI.
3067
26c0b942
JB
30682004-05-10 Jim Blandy <jimb@redhat.com>
3069
2e56e9c1
JB
3070 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
3071 collect all the gprs.
3072
26c0b942
JB
3073 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
3074 loop collecting gprs.
3075
dc497459
AC
30762004-05-09 Andrew Cagney <cagney@redhat.com>
3077
3078 * remote-vx.c (net_step): Delete step-range code.
3079 * remote.c (remote_resume, init_all_packet_configs)
3080 (set_remote_protocol_E_packet_cmd)
3081 (show_remote_protocol_E_packet_cmd)
3082 (remote_protocol_E, show_remote_cmd, _initialize_remote)
3083 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
3084 (show_remote_protocol_e_packet_cmd): Ditto.
3085
0543f387
MK
30862004-05-09 Mark Kettenis <kettenis@gnu.org>
3087
c481d1ca
MK
3088 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
3089
f626a069
MK
3090 * hppa-tdep.h: Update copyright year.
3091 (struct trad_frame_saved_reg): Add opaque declaration.
3092
6fa57a7d
MK
3093 * amd64-tdep.c (amd64_return_value): Implement
3094 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3095
e47577ab
MK
3096 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
3097 (m68k_value_to_register): New functions.
3098 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
3099 value_to_register.
3100
31db7b6c
MK
3101 * defs.h (enum return_value_convention): Add
3102 RETURN_VALUE_ABI_RETURNS_ADDRESS and
3103 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3104 * infcmd.c (legacy_return_value): New function.
3105 (print_return_value): Rwerite to implement
3106 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3107 * values.c (using_struct_return): Check for inequality to
3108 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
3109 RETURN_VALUE_STRUCT_CONVENTION.
3110 * i386-tdep.c (i386_return_value): Implement
3111 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3112
0543f387
MK
3113 * vax-tdep.c: Tweak comments. Reorder include files. Don't
3114 include "symtab.h", "opcode/vax.h" and "inferior.h".
3115 (vax_skip_prologue): Replace calls to read_memory_integer by calls
3116 to read_memory_unsigned_integer.
3117 (vax_gdbarch_init): Reorder.
3118 (_initialize_vax_tdep): Spell out prototype.
3119 * Makefile.in (vax-tdep.o): Update dependencies.
3120
0c93b7b6
AC
31212004-05-08 Andrew Cagney <cagney@redhat.com>
3122
e6b55ae2
AC
3123 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
3124 * target.c (target_detach, target_disconnect): Ditto.
3125
1ac839b8
AC
3126 * infcall.c (call_function_by_hand): When no
3127 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
3128 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
3129 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
3130 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3131 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3132
28954179
AC
3133 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
3134 * gdbarch.h, gdbarch.c: Re-generate.
3135 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3136 deprecated_fix_call_dummy.
3137 * v850-tdep.c (v850_gdbarch_init): Ditto.
3138 * infcall.c (call_function_by_hand): Do not call
3139 DEPRECATED_FIX_CALL_DUMMY.
3140
434b87dd
AC
3141 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
3142 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
3143 * gdbarch.h, gdbarch.c: Re-generate.
3144 * arm-linux-tdep.c (arm_linux_call_dummy_words)
3145 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
3146 deprecated_sizeof_call_dummy_words.
3147 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
3148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3149 * v850-tdep.c (v850_gdbarch_init): Ditto.
3150 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3151 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
3152 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3153 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3154 * arch-utils.h (legacy_call_dummy_words)
3155 (legacy_sizeof_call_dummy_words): Delete declarations.
3156 * arch-utils.c (legacy_call_dummy_words)
3157 (legacy_sizeof_call_dummy_words): Delete variables.
3158
58d28df8
AC
3159 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
3160 * gdbarch.h, gdbarch.c: Re-generate.
3161 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
3162 * infcall.c (call_function_by_hand): Eliminate call to
3163 DEPRECATED_PUSH_DUMMY_FRAME.
3164 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
3165 push_dummy_frame.
3166 (ns32k_push_dummy_frame): Delete function.
3167
e4a2df64
AC
3168 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3169 deprecated_call_dummy_breakpoint_offset or
3170 deprecated_call_dummy_start_offset.
3171 * dummy-frame.c, arm-tdep.c: Update comments.
3172 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
3173 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
3174 * gdbarch.h, gdbarch.c: Re-generate.
3175
d3712828
AC
3176 * infcall.c (legacy_push_dummy_code): Delete function.
3177 (push_dummy_code): Delete call.
3178
7a882905
AC
3179 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
3180 * gdbarch.h, gdbarch.c: Re-generate.
3181 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
3182 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
3183 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
3184 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
3185
0ec5872b
AC
3186 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
3187 (struct frame_info): Delete opaque declaration.
3188 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
3189 * frame.c (get_frame_type): Delete call.
3190
0c93b7b6
AC
3191 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
3192 pc_in_call_dummy.
3193 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
3194 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
3195
75536971
MK
31962004-05-08 Mark Kettenis <kettenis@gnu.org>
3197
527ca6bb
MK
3198 * alphanbsd-tdep.c: Include "gdb_string.h".
3199 * armnbsd-tdep.c: Update copyright year.
3200 Include "gdb_string.h".
3201 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
3202 dependencies.
3203
d39fdc61
MK
3204 * delta68-nat.c: Remove file.
3205 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
3206 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
3207 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
3208 (delta68-nat.o): Remove dependency.
3209
75536971
MK
3210 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
3211 function.
3212 (m68k_gdbarch_init): Don't set
3213 deprecated_frameless_function_invocation.
3214
f4ca1d1f
RC
32152004-05-07 Randolph Chung <tausq@debian.org>
3216
3217 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
3218 read_memory_nobpt for code reading when doing frame unwinding.
3219 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
3220
2f0e8c7a
RC
32212004-05-07 Randolph Chung <tausq@debian.org>
3222
3223 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
3224 instead of sp, handle sigaltstack case.
3225 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
3226 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
3227 signal handler and not that of the caller.
3228 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
3229 hppa_linux_sigtramp_find_sigcontext.
3230
959464ff
RC
32312004-05-07 Randolph Chung <tausq@debian.org>
3232
3233 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
3234 hppa-linux-nat.c.
3235 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
3236 * hppa-linux-nat.c (fetch_register, store_register): Define.
3237 (fetch_inferior_registers, store_inferior_registers): Define.
3238 (supply_gregset): Add comment and clean up some unneeded code.
3239 (fill_gregset): Add comment and fix so that it saves registers in
3240 the right place in the gregset.
3241 (fill_fpregset): Fix buffer overrun problem.
3242 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3243
0da28f8a
RC
32442004-05-07 Randolph Chung <tausq@debian.org>
3245
3246 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
3247 do common handling of the pcoqt register.
3248 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
3249 to use helper function.
3250 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
3251 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
3252 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
3253 generic fallback unwinder when all else fails.
3254 (hppa_gdbarch_init): Add fallback sniffer.
3255 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
3256 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
3257 to use helper function.
3258
b9ec757a
JB
32592004-05-08 Joel Brobecker <brobecker@gnat.com>
3260
3261 * config/djgpp/fnchange.lst: Add translation rules for
3262 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
3263
756e95f1
MK
32642004-05-08 Mark Kettenis <kettenis@gnu.org>
3265
3266 * frame.c (get_prev_frame_1): Work around GCC bug.
3267 * frame.h: Add comment about GCC bug.
3268
2b4855ab
AC
32692004-05-07 Andrew Cagney <cagney@redhat.com>
3270
3271 * observer.c: Include "commands.h" and "gdbcmd.h".
3272 (observer_debug, _initialize_observer): Add the
3273 command "set/show debug observer".
3274 * observer.sh: When observer debugging, log notify calls.
3275 * Makefile.in (observer.o): Update dependencies.
3276
ba3e8e46
JM
32772004-05-07 Jason Molenda (jmolenda@apple.com)
3278
3279 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
3280
16796152
JB
32812004-05-07 Jim Blandy <jimb@redhat.com>
3282
daf6dc85
JB
3283 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
3284 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
3285 to recognize gpr regnums, instead of assuming that
3286 tdep->ppc_fp0_regnum marks the end of the general-purpose
3287 registers.
3288
16796152
JB
3289 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
3290 the given architecture has floating-point registers.
3291
c69b8bfc
AC
32922004-05-07 Andrew Cagney <cagney@redhat.com>
3293
3294 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
3295 macro defined to 1.
3296 * gdbarch.h, gdbarch.c: Re-generate.
3297 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3298 deprecated_use_generic_dummy_frames.
3299
7243600a
BF
33002004-05-07 Brian Ford <ford@vss.fsi.com>
3301
3302 * NEWS: Mention Cygwin DWARF 2 support.
3303
73c1e0a1
AC
33042004-05-07 Andrew Cagney <cagney@redhat.com>
3305
3306 * objfiles.h (struct entry_info): Delete unused fields
3307 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
3308 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
3309 * mipsread.c (mipscoff_symfile_read): Update.
3310 * mdebugread.c (parse_partial_symbols): Update.
3311 * dwarfread.c (read_file_scope): Update.
3312 * dwarf2read.c (read_file_scope): Update.
3313 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
3314 * coffread.c (complete_symtab): Update.
3315
1d3056ac
MK
33162004-05-07 Mark Kettenis <kettenis@gnu.org>
3317
3318 * infcall.c (_initialize_infcall): Fix typo.
3319
15170568
AC
33202004-05-07 Andrew Cagney <cagney@redhat.com>
3321
3322 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
3323 * command.h (add_setshow_zinteger_cmd): Declare.
3324
34f75cc1
RC
33252004-05-06 Randolph Chung <tausq@debian.org>
3326
3327 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
3328 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
3329 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
3330 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
3331 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
3332 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
3333 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
3334 definitions ...
3335 * hppa-tdep.h: ... to here, with HPPA_ prefix.
3336 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
3337 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
3338 (hppa64_hpux_frame_find_saved_regs_in_sig)
3339 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
3340 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
3341 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
3342 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
3343 (hppa_linux_sigtramp_frame_prev_register): Likewise.
3344 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
3345 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
3346 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
3347 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
3348 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
3349 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
3350 (hppa32_register_type, hppa_cannot_store_register)
3351 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
3352 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
3353 * hpread.c (hpread_process_one_debug_symbol): Likewise.
3354 * pa64solib.c (pa64_solib_have_load_event)
3355 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
3356 (pa64_solib_unloaded_library_pathname): Likewise.
3357 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
3358 (som_solib_library_pathname): Likewise.
3359
0a5e7efe
JI
33602004-05-05 Jim Ingham <jingham@apple.com>
3361
3362 * breakpoint.c (create_breakpoints): Copy the ignore count and
3363 thread id over from the pended breakpoint to the actual
3364 breakpoint.
3365
10a4b113
AC
33662004-05-05 Andrew Cagney <cagney@redhat.com>
3367
3368 * gdbarch.sh (PARM_BOUNDARY): Delete.
3369 gdbarch.h, gdbarch.c: Re-generate.
3370 * valops.c (PARM_BOUNDARY): Delete macro.
3371 (value_push): Delete PARM_BOUNDARY code.
3372 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
3373
366f009f
JB
33742004-05-04 Jim Blandy <jimb@redhat.com>
3375
32b99774
JB
3376 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
3377 Don't assume that the gprs, fprs, and UISA sprs are
3378 contiguous, start at register number zero, and end with fpscr.
3379 Instead, use the numbers from the tdep structure.
3380
366f009f
JB
3381 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
3382 should no longer be used in code specific to the RS6000 and its
3383 derivatives.
3384 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
3385 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
3386 tdep->ppc_fp0_regnum.
3387 (ppc_supply_fpregset, ppc_collect_fpregset)
3388 (rs6000_push_dummy_call, rs6000_extract_return_value)
3389 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
3390 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
3391 FP0_REGNUM.
3392 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
3393 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
3394 Same.
3395 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
3396 bdm_ppc_store_registers): Same.
3397 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
3398 (store_register, fill_fpregset): Same.
3399 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
3400 (ppc_linux_supply_fpregset): Same.
3401 * ppcnbsd-nat.c (getfpregs_supplies): Same.
3402 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
3403 Same.
3404 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
3405 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
3406 ppc64_sysv_abi_return_value): Same.
3407 * rs6000-nat.c (regmap, fetch_inferior_registers)
3408 (store_inferior_registers, fetch_core_registers): Same.
3409
827f338d
MK
34102004-05-01 Mark Kettenis <kettenis@gnu.org>
3411
3412 * m68knbsd-nat.c: Remove file.
3413 * m68knbsd-tdep.c: Remove file.
3414 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
3415 dependencies.
3416 * configure.host: Add m68k-*-netbsdelf*.
3417 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
3418 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
3419 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
3420 (XM_FILE): Remove.
3421 * config/m68k/nbsdelf.mh: New file.
3422 * config/m68k/nbsd.mt: New file.
3423 * config/m68k/nbsdaout.mt: Remove file.
3424 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
3425 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
3426 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
3427 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
3428 (use_struct_convention): Remove prototype.
3429 (USE_STRUCT_CONVENTION): Remove define.
3430 * config/m68k/xm-nbsd.h: Remove file.
3431
66894781
MS
34322004-05-04 Michael Snyder <msnyder@redhat.com>
3433
3434 * m68k-tdep.c (m68k_gdbarch_init): Default to using
3435 reg_struct_return method (as gcc usually does for cross targets).
3436
f0f63663
AC
34372004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3438
3439 Committed by Andrew Cagney.
3440 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
3441 alignment padding when accessing ucontext struct members.
3442
edf61169
JB
34432004-05-04 Jim Blandy <jimb@redhat.com>
3444
8bf659e8
JB
3445 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
3446 'ppc_gplast_regnum' member.
3447 (ppc_num_gprs): New enum constant.
3448 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
3449 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
3450 * rs6000-nat.c (regmap, fetch_inferior_registers,
3451 store_inferior_registers): Same.
3452 * rs6000-tdep.c (e500_pseudo_register_read)
3453 (e500_pseudo_register_write): Same.
3454 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
3455
b967e06f
JB
3456 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
3457 * ppc-tdep.h (ppc_num_fprs): New enum constant.
3458 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
3459 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
3460 FPLAST_REGNUM.
3461 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3462 Same.
3463 * ppc-linux-nat.c (ppc_register_u_addr): Same.
3464 * rs6000-nat.c (regmap, fetch_inferior_registers)
3465 (store_inferior_registers): Same.
3466
edf61169
JB
3467 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
3468 with FPLAST_REGNUM.
3469
58a9656e
JB
34702004-05-03 Joel Brobecker <brobecker@gnat.com>
3471
3472 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
3473 failure detected by recent versions of GCC.
3474 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
3475 to be consistent with the usage in dwarf2_create_include_psymtab.
3476
dc305454
MS
34772004-05-03 Michael Snyder <msnyder@redhat.com>
3478
3479 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
3480 (heuristic_proc_start): Whitespace cleanup.
3481
29972665
MK
34822004-05-04 Mark Kettenis <kettenis@gnu.org>
3483
6b57680d
MK
3484 * sun3-nat.c: Remove file.
3485 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
3486 dependencies.
3487 (ALLDEPFILES): Remove sun3-nat.c.
3488 (sun3-nat.o): Remove dependencies.
3489
29972665
MK
3490 * i386-interix-nat.c, i386-interix-tdep.c,
3491 config/i386/nm-interix.h, config/i386/interix.mh,
3492 config/i386/interix.mt: Remove files.
3493 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
3494 dependencies.
3495
f595cb19
MK
34962004-05-03 Mark Kettenis <kettenis@gnu.org>
3497
3498 * m68k-tdep.h (struct gdbarch_tdep): Add member
3499 struct_value_regnum.
3500 (m68k_svr4_init_abi): New prototype.
3501 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
3502 different calling conventions.
3503 (m68k_extract_return_value): Remove code dealing with single-field
3504 structs.
3505 (m68k_store_return_value): Remove code dealing with single-field
3506 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
3507 (m68k_extract_struct_value_address): Remove function.
3508 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
3509 (m68k_reg_struct_return_p, m68k_return_value)
3510 (m68k_svr4_return_value): New functions.
3511 (m68k_use_struct_convention): Remove function.
3512 (m68k_push_dummy_call): Use new struct_value_regnum member of
3513 `struct gdbarch_tdep' instead of hardcoded register number to
3514 store STRUCT_ADDR.
3515 (m68k_svr4_init_abi): New function.
3516 (m68k_gdbarch_init): Don't set extract_return_value,
3517 store_return_values, deprecated_extract_struct_value_address and
3518 use_struct_convention. Set return_value instead. Initialize new
3519 struct_value_regnum member of `struct gdbarch_tdep'.
3520 * m68klinux-tdep.c: Update copyright year.
3521 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
3522 (m68k_linux_extract_struct_value_address): Remove function.
3523 (m68k_linux_init_abi): Don't set extract_return_value,
3524 store_return_values, deprecated_extract_struct_value_address and
3525 use_struct_convention. Call m68k_svr4_init_abi but override the
3526 new struct_value_regnum member of `struct gdbarch_tdep'.
3527 * Makefile.in (m68k-tdep.o): Update dependencies.
3528
aaa75496
JB
35292004-05-03 J. Brobecker <brobecker@gnat.com>
3530
3531 * dwarf2read.c (line_header): Add new included_p field in
3532 field file_names.
3533 (partial_die_info): New field has_stmt_list. New field line_offset.
3534 (dwarf2_create_include_psymtab): New function.
3535 (dwarf2_build_include_psymtabs): New function.
3536 (add_file_name): Add forward declaration. Initialize new field.
3537 (dwarf_decode_lines): Add new parameter. Enhance this procedure
3538 to be able to determine the list of files included by the
3539 given unit, and build their associated psymtabs.
3540 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
3541 files as well.
3542 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
3543 (read_file_scope): Update call to dwarf_decode_lines.
3544 (read_partial_die): Handle DW_AT_stmt_list attributes.
3545
c848556f
MC
35462004-05-02 Michael Chastain <mec.gnu@mindspring.com>
3547
3548 Unfix PR gdb/1626.
3549 * configure.in: Revert special case for osf5.*.
3550 * configure: Regenerate.
3551
eb4556d7
JB
35522004-05-02 Jim Blandy <jimb@redhat.com>
3553
3554 Move the symbol-file-from-memory functions into their own file.
3555 * symfile-mem.c, symfile-mem.h: New files.
3556 * symfile.c (symbol_file_add_from_bfd): New function.
3557 (symbol_file_add): Call symbol_file_add_from_bfd.
3558 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
3559 Moved to symfile-mem.c.
3560 (_initialize_symfile): Move definition of
3561 add-symbol-file-from-memory command to symfile-mem.c.
3562 * symfile.h (symbol_file_add_from_bfd): New declaration.
3563 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
3564 * config/powerpc/linux.mt (TDEPFILES): Same.
3565 * Makefile.in (SFILES): Add symfile-mem.c.
3566 (symfile_mem_h): New variable.
3567 (HFILES_NO_SRCDIR): Add symfile-mem.h.
3568 (symfile-mem.o): New rule.
3569
80bb239e
AC
35702004-05-01 Andrew Cagney <cagney@redhat.com>
3571
7789d0fa
AC
3572 * breakpoint.c (insert_bp_location): Use get_frame_id, and
3573 frame_find_by_id instead of frame_relative_level.
3574 (do_enable_breakpoint): Ditto.
3575 * thread.c: Update copyright.
3576 (info_threads_command): Ditto, simplify.
3577
80bb239e
AC
3578 * frame.c (deprecated_generic_get_saved_register): Delete
3579 function, moved to "xstormy16-tdep.c".
3580 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
3581 deprecated_generic_get_saved_register from "frame.c".
3582 (xstormy16_frame_saved_register): Call
3583 xstormy16_get_saved_register.
3584 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
3585 static.
3586 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
3587 * frame.h (deprecated_generic_get_saved_register): Delete.
3588
b2a871dd
MC
35892004-05-01 Michael Chastain <mec.gnu@mindspring.com>
3590
3591 * dwarfread.c: Update documentation on the state of dwarf-1.
3592
0e100dab
AC
35932004-05-01 Andrew Cagney <cagney@redhat.com>
3594
acd8056e
AC
3595 * stack.c (select_frame_command): Delete call to
3596 frame_relative_level.
3597 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
3598 Delete #if0 code.
3599 (frame_info): Do not print FRAMELESS.
3600 (print_block_frame_labels): Replace DEPRECATED_STREQ.
3601 (catch_info): Delete #if0 code.
3602
0e100dab
AC
3603 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
3604 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
3605 of frame_relative_level.
3606 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
3607 to SENTINEL_FRAME.
3608 * frame.h (enum frame_type): Add SENTINEL_FRAME.
3609 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
3610 frame_relative_level.
3611
55699d59
AC
3612 * frame.h (deprecated_set_frame_type): Delete declaration.
3613 * frame.c (deprecated_set_frame_type): Delete function, update
3614 comments.
3615
fcf70625
AC
3616 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
3617 * gdbarch.h, gdbarch.c: Re-generate.
3618 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
3619 (shnbsd_pc_in_sigtramp): Delete.
3620 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
3621 pc_in_sigtramp.
3622 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
3623 pc_in_sigtramp.
3624 * frame.h: Update comments.
3625 * ppc-linux-tdep.c: Update comments.
3626 * breakpoint.c (bpstat_what): Update comments.
3627
ac5eccb7
AC
3628 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
3629 m68klinux-tdep.o's dependencies, were previously added to
3630 m68klinux-nat.o.
3631
f2524b93
AC
3632 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
3633 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
3634 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3635 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3636 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3637
17e20bce
AC
3638 * Makefile.in (m68klinux-nat.o): Update dependencies.
3639 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
3640 (m68k_linux_sigtramp_frame_cache)
3641 (m68k_linux_sigtramp_frame_this_id)
3642 (m68k_linux_sigtramp_frame_prev_register)
3643 (m68k_linux_sigtramp_frame_unwind)
3644 (m68k_linux_sigtramp_frame_sniffer)
3645 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
3646 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
3647 names, use trad-frame.h.
3648 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
3649 (struct m68k_sigtramp_info): Delete.
3650 * m68k-tdep.c (m68k_sigtramp_frame_cache)
3651 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
3652 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
3653 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
3654 "m68klinux-tdep.c".
3655
c8864fa2
AC
3656 * infrun.c (check_sigtramp2): Delete check for
3657 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
3658
511dd2cd
MK
36592004-05-01 Mark Kettenis <kettenis@gnu.org>
3660
3661 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
3662
8c6b0e06
AC
36632004-05-01 Andrew Cagney <cagney@redhat.com>
3664
9df0bb3f
AC
3665 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
3666 (frv_linux_sigtramp_frame_cache)
3667 (frv_linux_sigtramp_frame_this_id)
3668 (frv_linux_sigtramp_frame_prev_register)
3669 (frv_linux_sigtramp_frame_unwind)
3670 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
3671 include "linux" in function and variable names, directly call
3672 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
3673 the latest trad-frame code.
3674 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
3675 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
3676 * Makefile.in (frv-linux-tdep.o): Update dependencies.
3677 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
3678 * frv-tdep.c (frv_sigtramp_frame_cache)
3679 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
3680 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
3681 frv-linux-tdep.c.
3682 (frv_gdbarch_init): Do not append a sigtramp sniffer.
3683 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
3684 (frv_set_sigcontext_reg_addr): Delete function.
3685
8c6b0e06
AC
3686 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
3687 (DEPRECATED_SIGTRAMP_END): Delete.
3688 * gdbarch.h, gdbarch.c: Re-generate.
3689 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
3690 * config/vax/tm-vaxbsd.h: Update copyright.
3691 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
3692 (DEPRECATED_IN_SIGTRAMP): Define.
3693 * config/m68k/tm-nbsd.h: Update copyright.
3694 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
3695 (DEPRECATED_IN_SIGTRAMP): Define.
3696
50ea7769
MK
36972004-05-01 Mark Kettenis <kettenis@gnu.org>
3698
03ac2a74
MK
3699 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
3700 encondings. Fixes PR gdb/1628.
3701
50ea7769
MK
3702 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
3703 DW_CFA_restore state without a matching DW_CFA_remember_state
3704 instead of aborting. Fixes PR backtrace/1589.
3705
9a5d7be1
JB
37062004-04-30 Joel Brobecker <brobecker@gnat.com>
3707
3708 * MAINTAINERS: Add self as AIX maintainer.
3709 Update my e-mail address in write-after-approval section.
3710
2593d1cd
AC
37112004-04-30 Andrew Cagney <cagney@redhat.com>
3712
ce12bbf9
AC
3713 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
3714 (legacy_get_prev_frame): Ditto.
3715
36710c63
AC
3716 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
3717 (mips_gdbarch_init): Do not set pc_in_sigtramp.
3718 * mipsread.c (sigtramp_address): Delete extern variable.
3719 (mipscoff_new_init): Delete reference.
3720 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
3721 (fixup_sigtramp): Delete function.
3722 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
3723 (fixup_sigtramp): Delete declarations.
3724
2593d1cd
AC
3725 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
3726 deprecated_pc_in_sigtramp.
3727 (ppcnbsd_pc_in_sigtramp): Delete function.
3728
2a25f91c
MK
37292004-05-01 Mark Kettenis <kettenis@gnu.org>
3730
3731 * config/m68k/nm-nbsd.h: Tweak comments.
3732 * config/m68k/nm-nbsdaout.h: Likewise.
3733
0b281939
AC
37342004-04-30 Andrew Cagney <cagney@redhat.com>
3735
3736 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
3737 legacy_pc_in_sigtramp.
3738 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
3739
8f2d3ea0
MK
37402004-05-01 Mark Kettenis <kettenis@gnu.org>
3741
3742 Add OpenBSD/m68k support.
3743 * NEWS (New native configurations): Mention OpenBSD/m68k.
3744 * m68kbsd-tdep.c: New file.
3745 * m68kbsd-nat.c: New file.
3746 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
3747 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
3748 * configure.host: Add m68k-*-openbsd.
3749 * configure.tgt: Add m68k-*-openbsd.
3750 * config/m68k/tm-obsd.h: New file.
3751 * config/m68k/obsd.mt: New file.
3752 * config/m68k/obsd.mh: New file.
3753 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
3754 m68kbsd-tdep.c.
3755
c40f49a4
AC
37562004-04-30 Andrew Cagney <cagney@redhat.com>
3757
3758 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
3759 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
3760
e81554cd
MK
37612004-04-30 Mark Kettenis <kettenis@gnu.org>
3762
3763 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
3764 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
3765
d4dc1a91
BF
37662004-04-30 Brian Ford <ford@vss.fsi.com>
3767
3768 Revert 2004-04-16 change.
3769 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
3770 (i386_coff_init_abi): Remove.
3771 * i386-tdep.h (i386_coff_init_abi): Remove.
3772 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
3773
2f72f850
AC
37742004-04-30 Andrew Cagney <cagney@redhat.com>
3775
e492f9d6
AC
3776 * blockframe.c (find_pc_partial_function): Delete use of
3777 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
3778 DEPRECATED_SIGTRAMP_END.
3779
7b7adad0
AC
3780 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
3781 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
3782 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
3783 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
3784 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
3785
2f72f850
AC
3786 * defs.h (deprecated_inside_entry_file): Delete declaration.
3787 * blockframe.c (deprecated_inside_entry_file): Delete function.
3788 (legacy_frame_chain_valid): Delete call.
3789 * sh64-tdep.c (sh64_frame_chain): Delete call.
3790 * objfiles.h: Update comments.
3791 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
3792 call.
3793 * frame.c (get_prev_frame): Delete call, update comments.
3794
283f90a7
BF
37952004-04-30 Brian Ford <ford@vss.fsi.com>
3796
3797 * MAINTAINERS (Write After Approval): Add myself.
3798
8ee56bcf
AC
37992004-04-30 Andrew Cagney <cagney@redhat.com>
3800
3801 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
3802 * gdbarch.h, gdbarch.c: Re-generate.
3803 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
3804 code.
3805
ee27e1b6
AC
38062004-04-30 Andrew Cagney <cagney@redhat.com>
3807
3808 * gdb-events.sh (selected_thread_changed)
3809 (selected_frame_level_changed, target_changed): Delete.
3810 * gdb-events.h, gdb-events.c: Re-generate.
3811 * valops.c (value_assign): Update.
3812 * stack.c (select_frame_command, up_silently_base)
3813 (down_silently_base): Update.
3814
d5ac5a39
AC
38152004-04-29 Andrew Cagney <cagney@redhat.com>
3816
3817 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
3818 registers correctly.
3819 (print_gp_register_row, mips32_heuristic_proc_desc)
3820 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
3821 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
3822 references to mips_isa_regsize.
3823
ceae6e75
AC
38242004-04-29 Andrew Cagney <cagney@redhat.com>
3825
3826 * mips-tdep.c (struct gdbarch_tdep): Delete
3827 mips_fp_register_double.
3828 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
3829 mips_abi_regsize.
3830 (mips_gdbarch_init): Do not set mips_fp_register_double.
3831 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
3832
a587af0b
AC
38332004-04-29 Joel Brobecker <brobecker@gnat.com>
3834
3835 Committed by Andrew Cagney.
3836 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
3837 function calls.
3838
13326b4e
AC
38392004-04-29 Andrew Cagney <cagney@redhat.com>
3840
3841 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
3842 gdbarch, use mips_abi, update callers.
3843 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
3844 mips_abi_regsize, update callers.
3845 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
3846 mips_default_abi_regsize.
3847 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
3848 mips_default_abi_regsize.
3849
711cc5cd
AC
38502004-04-29 Andrew Cagney <cagney@redhat.com>
3851
1b13c4f6
AC
3852 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
3853 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
3854 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
3855 mips_default_abi_regsize.
3856 (mips_isa_regsize): Rename mips_regisze.
3857 * mipsnbsd-tdep.c: Update.
3858 * mips-linux-tdep.c: Update.
3859 * irix5-nat.c: Update.
3860 * mips-tdep.h (mips_isa_regsize): Update.
3861
711cc5cd
AC
3862 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
3863 Delete all disabled code.
3864 * gdb-events.h, gdb-events.c: Re-generate.
3865
e63bbc88
MK
38662004-04-19 Jerome Guitton <guitton@gnat.com>
3867 Mark Kettenis <kettenis@gnu.org>
3868
3869 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
3870 the function begins with a branch instruction.
3871
fd35795f
MK
38722004-04-29 Mark Kettenis <kettenis@gnu.org>
3873
3874 * i386-tdep.c: Fix spelling mistakes.
3875
c960c18f
AC
38762004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3877 Andrew Cagney <cagney@redhat.com>
3878
3879 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
3880 <sys/proc.h>.
3881 * acconfig.h: Provide default _KMEMUSER value.
3882 * config.in, configure: Re-generate.
3883 * NEWS: Mention fix.
3884
50306a9d
RC
38852004-04-24 Randolph Chung <tausq@debian.org>
3886
3887 * configure.host (hppa*-*-linux*): New target.
3888 * configure.tgt (hppa*-*-linux*): Likewise.
3889 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
3890 gdbarch_init_osabi() call earlier so that osabi-specific frame
3891 unwinders can be registered first.
3892 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
3893 hppa-linux-nat.c.
3894 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
3895 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
3896 * config/pa/linux.mh: New file.
3897 * config/pa/linux.mt: New file.
3898 * config/pa/nm-linux.h: New file.
3899 * config/pa/xm-linux.h: New file.
3900 * hppa-linux-nat.c: New file.
3901 * hppa-linux-tdep.c: New file.
3902
2a6228ef
RC
39032004-04-28 Randolph Chung <tausq@debian.org>
3904
3905 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
3906 return values.
3907 (hppa32_push_dummy_call): Fix small struct and floating point argument
3908 passing, and make sure the stack frame is properly aligned.
3909
82c10df6
AC
39102004-04-28 Andrew Cagney <cagney@redhat.com>
3911
d762c46a
AC
3912 * stack.c (print_stack_frame): Fix description.
3913
82c10df6
AC
3914 * NEWS: Mention gdb/gdbserver/configure execute permission
3915 changed. PR server/519.
3916
0faf0076
AC
39172004-04-28 Andrew Cagney <cagney@redhat.com>
3918
3919 * stack.c (print_stack_frame_stub): Delete declaration.
3920 (struct print_stack_frame_args, print_stack_frame)
3921 (print_frame_info, print_frame): Replace "source" with print what.
3922 Replace "print" with "print_level". Replace "args" with
3923 "print_args".
3924 * frame.h (show_and_print_stack_frame, print_stack_frame)
3925 (print_frame_info): Update declarations.
3926 * stack.c (select_and_print_frame, frame_command)
3927 (current_frame_command, up_command, down_command): Update calls -
3928 use get_selected_frame, pass "enum print_what" for source, do not
3929 call frame_relative_level.
3930 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
3931 * remote-rdp.c (remote_rdp_open): Ditto.
3932 * remote-mips.c (common_open): Ditto.
3933 * remote-e7000.c (e7000_start_remote): Ditto.
3934 * ocd.c (ocd_start_remote): Ditto.
3935 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
3936 * infrun.c (normal_stop): Ditto.
3937 * inflow.c (kill_command): Ditto.
3938 * infcmd.c (finish_command): Ditto.
3939 * corelow.c (core_open): Ditto.
3940 * tracepoint.c (finish_tfind_command): Ditto.
3941 * thread.c (info_threads_command, info_threads_command)
3942 (restore_current_thread, do_captured_thread_select): Ditto.
3943 * ada-tasks.c (task_command): Ditto.
3944
f4c5303c
OF
39452004-04-26 Orjan Friberg <orjanf@axis.com>
3946
3947 * frame.c: Include "observer.h".
3948 (frame_observer_target_changed): New function.
3949 (_initialize_frame): Attach target_changed observer.
3950 * regcache.c: Include "observer.h".
3951 (regcache_observer_target_changed): New function.
3952 (_initialize_regcache): Attach target_changed observer.
3953 * valops.c: Include "observer.h".
3954 (value_assign): Notify target_changed event when modifying register.
3955 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
3956
7270d8f2
OF
39572004-04-26 Orjan Friberg <orjanf@axis.com>
3958
3959 From Paul Koning <pkoning@equallogic.com>:
3960 * breakpoint.c (free_valchain): New function.
3961 (insert_bp_location, delete_breakpoint): Use free_valchain.
3962 (remove_breakpoint): Do not remove the valchain.
3963 (bpstat_stop_status): If not stopped by watchpoint, skip
3964 watchpoints when generating stop status list.
3965 * infrun.c (handle_inferior_event): Make
3966 stepped_after_stopped_by_watchpoint a global variable.
3967 * remote.c (remote_stopped_data_address): Return watch data
3968 address rather than zero if stepped_after_stopped_by_watchpoint is
3969 set.
3970
02d62932
MC
39712004-04-25 Michael Chastain <mec.gnu@mindspring.com>
3972
3973 Fix PR gdb/1626.
3974 * configure.in: Check for curses after termcap.
3975 On osf5.*, do not check for ncurses.
3976 * configure: Regenerate.
3977
3e9a183c
MK
39782004-04-25 Mark Kettenis <kettenis@gnu.org>
3979
c79ac407
MK
3980 * ppcobsd-nat.c: Include "ppc-tdep.h".
3981 * Makefile.in (ppcobsd-nat.o): Update dependencies.
3982
3e9a183c
MK
3983 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
3984 Fixes PR tdep/1623 and PR tdep/1624.
3985
38cc9c28
MC
39862004-04-24 Michael Chastain <mec.gnu@mindspring.com>
3987
3988 * xmodem.h, xmodem.c: Remove files.
3989 * Makefile.in: Remove references to xmodem.h, xmodem.c.
3990
7f07c5b6
RC
39912004-04-23 Randolph Chung <tausq@debian.org>
3992
3993 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
3994 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
3995 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
3996 for handling stackless frames.
3997 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
3998
9f7194c3
RC
39992004-04-23 Randolph Chung <tausq@debian.org>
4000
4001 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
4002 starts at a pc before the frame is created.
4003
dcff6009
JB
40042004-04-23 Joel Brobecker <brobecker@gnat.com>
4005
4006 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
4007
65951cd9
JG
40082004-04-23 Jerome Guitton <guitton@gnat.fr>
4009
4010 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
4011 use convert_typed_floating to get the appropriate format.
4012
abc485a1
RC
40132004-04-22 Randolph Chung <tausq@debian.org>
4014
4015 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
4016 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
4017 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
4018 (hppa_sign_extend): Add prototype.
4019 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
4020 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
4021 (sign_extend): Rename with hppa_ prefix and make non-static. Other
4022 hppa targets will also use these functions.
4023 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
4024 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
4025 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
4026 (hppa_gdbarch_init): Remove gdbarch setting of
4027 skip_trampoline_code, in_solib_call_trampoline and
4028 in_solib_return_trampoline.
4029 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4030 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
4031 hppa_in_solib_call_trampoline.
4032 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
4033 Moved from hppa-tdep.c.
4034 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
4035 in_solib_call_trampoline and in_solib_return_trampoline.
4036
369aa520
RC
40372004-04-22 Randolph Chung <tausq@debian.org>
4038
4039 * hppa-tdep.c (hppa_debug): New variable.
4040 (find_unwind_entry, hppa_frame_cache): Add debug output.
4041 (_initialize_hppa_tdep): Add command to set debug flag.
4042
476be15e
AC
40432004-04-22 Andrew Cagney <cagney@redhat.com>
4044
4045 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
4046 "trad-frame.h".
4047 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
4048 signal trampoline unwinder.
4049 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
4050
d195bc9f
MK
40512004-04-22 Mark Kettenis <kettenis@gnu.org>
4052
4053 Add OpenBSD/powerpc support.
4054 * NEWS (New native configurations): Mention OpenBSD/powerpc.
4055 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
4056 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
4057 (ppc_collect_fpregset): New prototypes.
4058 * ppcobsd-nat.c: New file.
4059 * ppcobsd-tdep.c: New file.
4060 * ppcobsd-tdep.h: New file.
4061 * rs6000-tdep.c: Include "regset.h".
4062 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
4063 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
4064 New functions.
4065 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
4066 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
4067 (rs6000-tdep.o): Update dependencies.
4068 * configure.host: Add powerpc-*-openbsd.
4069 * configure.tgt: Add powerpc-*-openbsd.
4070 * config/powerpc/obsd.mh: New file.
4071 * config/powerpc/nm-obsd.h: New file.
4072 * config/powerpc/obsd.mt: New file.
4073
6f14cc33
AC
40742004-04-22 Andrew Cagney <cagney@redhat.com>
4075
fcf29e5f
AC
4076 * frame.h (show_frame_info): Delete declaration.
4077
6f14cc33
AC
4078 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
4079 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
4080 * m32r-tdep.c (m32r_frame_this_id): Ditto.
4081 * frv-tdep.c (frv_frame_this_id): Ditto.
4082 * avr-tdep.c (avr_frame_this_id): Ditto.
4083
e5786a5c
EZ
40842004-04-22 Elena Zannoni <ezannoni@redhat.com>
4085
4086 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
4087
26e75e5c
JB
40882004-04-22 Jim Blandy <jimb@redhat.com>
4089
4090 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
4091 register number zero.
4092
d8d65dd3
MS
40932004-04-21 Michael Snyder <msnyder@redhat.com>
4094
4095 * mips-tdep.c (heuristic_proc_start):
4096 Warning() already prefixes "Warning: ".
4097
9a4105ab
AC
40982004-04-21 Andrew Cagney <cagney@redhat.com>
4099
4100 * annotate.h (deprecated_annotate_starting_hook)
4101 (deprecated_annotate_stopped_hook)
4102 (deprecated_annotate_exited_hook)
4103 (deprecated_annotate_signal_hook)
4104 (deprecated_annotate_signalled_hook): Deprecate.
4105 * tracepoint.h (deprecated_create_tracepoint_hook)
4106 (deprecated_delete_tracepoint_hook)
4107 (deprecated_modify_tracepoint_hook)
4108 (deprecated_trace_find_hook)
4109 (deprecated_trace_start_stop_hook): Deprecate.
4110 * target.h (deprecated_target_new_objfile_hook): Deprecate.
4111 * remote.h (deprecated_target_resume_hook)
4112 (deprecated_target_wait_loop_hook): Deprecate.
4113 * gdbcore.h (deprecated_exec_file_display_hook)
4114 (deprecated_file_changed_hook): Deprecate.
4115 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
4116 * defs.h (deprecated_modify_breakpoint_hook)
4117 (deprecated_command_loop_hook, deprecated_show_load_progress)
4118 (deprecated_print_frame_info_listing_hook)
4119 (deprecated_query_hook, deprecated_warning_hook)
4120 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
4121 (deprecated_delete_breakpoint_hook)
4122 (deprecated_interactive_hook, deprecated_registers_changed_hook)
4123 (deprecated_readline_begin_hook, deprecated_readline_hook)
4124 (deprecated_readline_end_hook, deprecated_register_changed_hook)
4125 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
4126 (deprecated_context_hook, deprecated_target_wait_hook)
4127 (deprecated_attach_hook, deprecated_detach_hook)
4128 (deprecated_call_command_hook, deprecated_set_hook)
4129 (deprecated_error_hook, deprecated_error_begin_hook)
4130 (deprecated_ui_load_progress_hook): Deprecate.
4131 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
4132 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
4133 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
4134 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
4135 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
4136 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
4137 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
4138 * annotate.c, aix-thread.c: Update.
4139
62cf13cc
AC
41402004-04-21 Andrew Cagney <cagney@redhat.com>
4141
b2e31a62
AC
4142 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
4143 * vaxnbsd-tdep.c: Include "gdb_string.h".
4144
62cf13cc
AC
4145 * symfile.c (symbol_file_add_from_memory): #if 0 function.
4146 (add_symbol_file_from_memory_command): #if 0 function body, call
4147 error instead.
4148
00e32a35
AC
41492004-04-21 Andrew Cagney <cagney@redhat.com>
4150
4151 * gdbcore.h: Update copyright.
4152 (deprecated_add_core_fns): Rename add_core_fns.
4153 * win32-nat.c (_initialize_core_win32): Update.
4154 * sun3-nat.c (_initialize_core_sun3): Update.
4155 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
4156 * rs6000-nat.c (_initialize_core_rs6000): Update.
4157 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
4158 * nto-tdep.c (_initialize_nto_tdep): Update.
4159 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
4160 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
4161 * mips-nat.c (_initialize_core_mips): Update.
4162 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4163 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
4164 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
4165 * lynx-nat.c (_initialize_core_lynx): Update.
4166 * irix5-nat.c (_initialize_core_irix5): Update.
4167 * i386-interix-nat.c (_initialize_core_interix): Update.
4168 * cris-tdep.c (_initialize_cris_tdep): Update.
4169 * corelow.c (deprecated_add_core_fns): Update.
4170 * core-regset.c (_initialize_core_regset): Update.
4171 * core-aout.c (_initialize_core_aout): Update.
4172 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
4173 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
4174 * alpha-nat.c (_initialize_core_alpha): Update.
4175
13c7b1ca
JB
41762004-04-21 Jim Blandy <jimb@redhat.com>
4177
4178 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
4179
7b5a2f43
DJ
41802004-04-19 Daniel Jacobowitz <drow@mvista.com>
4181
4182 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
4183 Delete.
4184 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
4185 (read_attribute_value): Update calls to dwarf_alloc_block.
4186 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
4187 dwarf2_tmp_obstack.
4188 (psymtab_to_symtab_1): Likewise. Clean up using
4189 free_stack_comp_unit.
4190 (add_to_cu_func_list): Use the comp_unit_obstack.
4191
05cf31d1
JB
41922004-04-19 Joel Brobecker <brobecker@gnat.com>
4193
4194 * dwarf2read.c (dwarf2_flag_true_p): New function.
4195 (die_is_declaration): Use the function above. Add some comments.
4196
adf93a2f
MK
41972004-04-19 Mark Kettenis <kettenis@gnu.org>
4198
4199 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
4200 architecture when registering sparcnbsd_core_osabi_sniffer.
4201 Adjust comment.
4202
748894bf
MK
42032004-04-18 Mark Kettenis <kettenis@gnu.org>
4204
f622ad42
MK
4205 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
4206 return value.
4207
c4fc7f1b
MK
4208 Based on a patch from Brian Ford <ford@vss.fsi.com>:
4209 * i386-tdep.c: Correct register numbering scheme comments
4210 throughout.
4211 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
4212 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
4213 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
4214 (i386_gdb_arch_init): Likewise.
4215
b4ead1bd
MK
4216 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
4217 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
4218 ppcnbsd-tdep.o.
4219
748894bf
MK
4220 * m68k-tdep.h: Tweak comments.
4221 * m68k-tdep.c: Tweak comment.
4222
fdd72f95
RC
42232004-04-17 Randolph Chung <tausq@debian.org>
4224
4225 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
4226 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
4227 (hppa_hpux_som_init_abi): Set is_elf to 0.
4228 (hppa_hpux_elf_init_abi): Set is_elf to 1.
4229 * hppa-tdep.c (low_text_segment_address): Remove global.
4230 (record_text_segment_lowaddr): Pass in low address as parameter. Use
4231 section offset to calculate segment address.
4232 (internalize_unwinds): Define low_text_segment_address as local and
4233 pass to record_text_segment_lowaddr for ELF targets.
4234 (hppa_gdbarch_init): Zero fill tdep structure.
4235 (hppa_dump_tdep): Print tdep structure.
4236 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
4237
0f8d9d59
RC
42382004-04-17 Randolph Chung <tausq@debian.org>
4239
4240 * hppa-tdep.c (hppa_pseudo_register_read): Define.
4241 (hppa_gdbarch_init): Set pseudo_register_read.
4242 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
4243 * regcache.c (supply_register): Remove check for
4244 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
4245
7c46b9fb
RC
42462004-04-17 Randolph Chung <tausq@debian.org>
4247
4248 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
4249 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
4250 (hpread_adjust_stack_address): Move to hpread.c.
4251 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
4252 obj_private_struct): Move from tm-hppa.h.
4253 * hpread.c (hppa-tdep.h): Include.
4254 (hpread_adjust_stack_address): Move from hppa-tdep.c.
4255 (hpread_read_function_type, hpread_read_doc_function_type)
4256 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
4257 directly.
4258 * pa64solib.c (hppa-tdep.h): Include.
4259 * somsolib.c (hppa-tdep.h): Include.
4260 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
4261 inferior_status): Remove unused forward declarations.
4262 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
4263 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
4264 obj_private_struct): Move to hppa-tdep.h.
4265 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
4266
8d153463
RC
42672004-04-17 Randolph Chung <tausq@debian.org>
4268
4269 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
4270 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
4271 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
4272 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
4273 Remove forward declaration and make static.
4274 (hppa_reg_struct_has_addr): Remove.
4275
350c2e5b
JB
42762004-04-16 Joel Brobecker <brobecker@gnat.com>
4277
4278 * observer.sh: Move comments in sed command to first column.
4279
bbde78fa
JM
42802004-04-16 Jason Molenda (jmolenda@apple.com)
4281
4282 * frame.c: Minor typeo corrections in comments.
4283
e0270fd9
JB
42842004-04-16 Joel Brobecker <brobecker@gnat.com>
4285
4286 * observer.c (observer_test_first_notification_function): Update
4287 function profile.
4288 (observer_test_second_notification_function): Likewise.
4289 (observer_test_third_notification_function): Likewise.
4290
3d049254
MK
42912004-04-16 Mark Kettenis <kettenis@gnu.org>
4292
4293 From Brian Ford <ford@vss.fsi.com>:
4294 * i386-tdep.c (i386_coff_init_abi): New function.
4295 * i386-tdep.h (i386_coff_init_abi): New prototype.
4296 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
4297 register number translation functions for DWARF and DWARF 2.
4298
7867684d
JB
42992004-04-16 Joel Brobecker <brobecker@gnat.com>
4300
4301 * dwarf2read.c: Back out my previous change, it was incorrect.
4302
72bf9492
DJ
43032004-04-16 Daniel Jacobowitz <drow@mvista.com>
4304
4305 * dwarf2read.c: Include "hashtab.h".
4306 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
4307 has_namespace_info.
4308 (struct partial_die_info): Add comments. Use bitfields to reduce
4309 memory footprint. Add scope, scope_set, has_specification,
4310 spec_offset, die_parent, die_child, and die_sibling.
4311 (peek_die_abbrev): Add prototype.
4312 (partial_read_comp_unit_head): New function, broken out from
4313 dwarf2_build_psymtabs_hard.
4314 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
4315 Use partial_read_comp_unit_head. Initialize the CU and
4316 comp_unit_obstack. Update calls to read_partial_die and
4317 scan_partial_symbols. Use free_stack_comp_unit and
4318 load_partial_dies.
4319 (scan_partial_symbols): Change PDI to a pointer. Use the child and
4320 sibling pointers to walk partial DIEs. Call fixup_partial_die.
4321 Update calls to helper functions. Remove NAMESPACE argument.
4322 Update comments.
4323 (partial_die_parent_scope, partial_die_full_name): New functions.
4324 (add_partial_symbol): Remove namespace argument. Update call to
4325 pdi_needs_namespace. Use partial_die_full_name. Handle
4326 DW_TAG_namespace. Check has_namespace_info flag.
4327 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
4328 tag. Handle namespaces.
4329 (add_partial_namespace, add_partial_enumeration): Simplify.
4330 (guess_structure_name): New function, derived from
4331 add_partial_structure.
4332 (add_partial_structure): Remove.
4333 (determine_class_name): Update comment.
4334 (dwarf2_read_abbrevs): Set has_namespace_info flag.
4335 (is_type_tag_for_partial, load_partial_dies): New functions.
4336 (read_partial_die): Pass abbrev and abbrev_len as arguments.
4337 Record specifications instead of following them immediately.
4338 (find_partial_die_in_comp_unit, find_partial_die)
4339 (fixup_partial_die, free_stack_comp_unit)
4340 (hashtab_obstack_allocate, dummy_obstack_deallocate)
4341 (partial_die_hash, partial_die_eq): New functions.
4342 * Makefile.in (hashtab_h): Define.
4343 (dwarf2read.o): Update dependencies.
4344 (observer_inc, observer_h): Move to the correct section.
4345
fdc860a3
JB
43462004-04-15 Joel Brobecker <brobecker@gnat.com>
4347
4348 * dwarf2read.c (dwarf2_attribute_true_p): New function.
4349 (die_is_declaration): Use the function above. Add comment.
4350
dc718098
JB
43512004-04-15 Joel Brobecker <brobecker@gnat.com>
4352
4353 * dwarf2read.c (read_structure_scope): Identify stub types
4354 using die_is_declaration() only.
4355
8718a420
RM
43562004-04-15 Roland McGrath <roland@redhat.com>
4357
4358 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
4359 argument instead of NAME.
4360 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
4361 in call to symbol_file_add_with_addrs_or_offsets.
4362 (build_addr_info): New function, helper for ...
4363 (symbol_file_add_from_memory): New function.
4364 (add_symbol_file_from_memory_command): New function using that.
4365 (_initialize_symfile): Register it for add-symbol-file-from-memory.
4366 (pre_add_symbol_hook): Add const to argument type.
4367 * symfile.h (symbol_file_add_from_memory): Declare it.
4368
8b910bab
MK
43692004-04-15 Mark Kettenis <kettenis@gnu.org>
4370
9f076e7a
MK
4371 * NEWS (New native configurations): Mention OpenBSD/vax.
4372 * configure.host: Add vax-*-openbsd*.
4373 * config/vax/obsd.mh: New file.
4374 * config/vax/nm-obsd.h: New file.
4375
8b910bab
MK
4376 * vax-tdep.c: Include "regset.h".
4377 (vax_supply_gregset): New function.
4378 (vax_gregset): New variable.
4379 (vax_regset_from_core_section): New function.
4380 (vax_gdbarch_init): Set regset_from_core_section.
4381 * Makefile.in (vax-tdep.o): Update dependencies.
4382
7a464420
AC
43832004-04-15 Andrew Cagney <cagney@redhat.com>
4384
4385 * observer.c (normal_stop_subject, observer_notify_normal_stop)
4386 (observer_normal_stop_notification_stub)
4387 (observer_attach_normal_stop, observer_detach_normal_stop):
4388 Delete, replaced by #include "observer.inc".
4389 * infrun.c (normal_stop): Pass "stop_bpstat" to
4390 observer_notify_normal_stop.
4391 * Makefile.in (observer_inc): Define.
4392 (observer.o): Update dependencies.
4393 (observer.h, observer.inc): New rules.
4394 * observer.h: Delete file.
4395 * observer.sh: New file.
4396
e36ad527
MK
43972004-04-15 Mark Kettenis <kettenis@gnu.org>
4398
4399 * vax-tdep.c (vax_frame_cache): Fix typo.
4400
67b441e1
MK
44012004-04-14 Mark Kettenis <kettenis@gnu.org>
4402
6f606e1c
MK
4403 * NEWS (New native configurations): Mention NetBSD/vax.
4404 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
4405 * config/vax/nbsdelf.mh: New file.
4406 * config/vax/nbsdaout.mh: New file.
4407 * config/vax/nm-nbsd.h: New file.
4408 * config/vax/nm-nbsdaout.h: New file.
4409
9c5519a5
MK
4410 * vaxnbsd-tdep.c: New file.
4411 * Makefile.in (vaxnbsd-tdep.o): New dependency.
4412 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
4413 * config/vax/nbsd.mt: New file.
4414 * config/vax/tm-nbsd.h: New file.
4415
4844a614
MK
4416 * Makefile.in (vaxbsd-nat.o): New dependency.
4417
67b441e1
MK
4418 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
4419 * vax-tdep.c (vax_store_arguments): Remove struct_return and
4420 struct_addr arguments. Don't push return value address.
4421 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
4422 arguments to vax_store_arguments. Store return value address in
4423 R1.
4424 (vax_store_struct_return, vax_extract_return_value)
4425 (vax_store_return_value): Remove functions.
4426 (vax_return_value): New function.
4427 (vax_gdbarch_init): Set return value. Don't set
4428 deprecated_store_struct_return, deprecated_extract_struct_return
4429 and deprecated_store_return_value.
4430
6672f2ae
AS
44312004-04-14 Andreas Schwab <schwab@suse.de>
4432
4433 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
4434 value buffer.
4435 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
4436
7346c184
MK
44372004-04-14 Mark Kettenis <kettenis@gnu.org>
4438
4439 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
4440 (vax_unwind_dummy_id): New functions.
4441 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
4442 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
4443 variables.
4444 (vax_fix_call_dummy): Remove function.
4445 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
4446 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
4447 call_dummy_location, deprecated_call_dummy_words,
4448 deprecated_sizeof_call_dummy_words,
4449 deprecated_call_dummy_breakpoint_offset,
4450 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
4451 and deprecated_dummy_write_sp.
4452
58e23df4
DC
44532004-04-13 David Carlton <carlton@kealia.com>
4454
4455 * MAINTAINERS: Move myself to "paper trail" section.
4456
5e6b39ff
MK
44572004-04-12 Mark Kettenis <kettenis@gnu.org>
4458
7def7fef
MK
4459 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
4460 "trad-frame.h".
4461 (vax_frame_init_saved_regs): Remove function.
4462 (vax_sigtramp_saved_pc): Remove function.
4463 (vax_frame_saved_pc): Remove function.
4464 (vax_frame_args_address): Remove function.
4465 (vax_frame_num_args): Rewrite.
4466 (vax_frame_chain): Remove function.
4467 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
4468 VAX_FP_REGNUM.
4469 (vax_pop_frame): Likewise.
4470 (vax_saved_pc_after_call): Remove function.
4471 (struct vax_frame_cache): New structure.
4472 (vax_frame_cache): New function.
4473 (vax_frame_this_id): New function.
4474 (vax_frame_prev_register): New function.
4475 (vax_frame_unwind): New variable.
4476 (vax_frame_sniffer): New function.
4477 (vax_frame_base_address): New function.
4478 (vax_frame_args_address): New function.
4479 (vax_frame_base): New variable.
4480 (vax_unwind_pc): New function.
4481 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
4482 deprecated_fp_regnum, deprecated_saved_pc_after_call,
4483 deprecated_frame_chain, deprecated_frame_saved_pc,
4484 deprecated_frame_args_address and
4485 deprecated_frame_init_saved_regs.
4486 * Makefile.in (vax-tdep.o): Update dependencies.
4487
53284fc1
MK
4488 * vaxbsd-nat.c: New file.
4489
5e6b39ff
MK
4490 * vax-tdep.h: Update copyright year. Adjust comments.
4491 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
4492 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
4493 (vax_regnum): New enum. Replacing...
4494 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
4495 (VAX_PS_REGNUM): ... these removed macros.
4496 * vax-tdep.c (vax_register_name): Remove prototype.
4497 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
4498 (vax_register_byte, vax_register_raw_size,
4499 vax_register_virtual_size, vax_register_virtual_type): Remove
4500 functions.
4501 (vax_register_type): New function.
4502 (vax_breakpoint_from_pc): Reorganize.
4503 (vax_gdbarch_init): Set register_type. Don't set
4504 deprecated_register_size, deprecated_register_bytes,
4505 deprecated_register_byte, deprecated_register_raw_size,
4506 deprecated_max_register_raw_size,
4507 deprecated_register_virtual_size,
4508 deprecated_max_register_virtual_size and
4509 deprecated_register_virtual_type. Add comment on stack direction.
4510
e9c71e9f
MK
45112004-04-11 Mark Kettenis <kettenis@gnu.org>
4512
4513 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
4514 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 4515 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 4516
d46f1176 45172004-04-10 Randolph Chung <tausq@debian.org>
8718a420 4518
d46f1176
RC
4519 * MAINTAINERS (write after approval): Add myself.
4520
a2a84a72
RC
45212004-04-07 Randolph Chung <tausq@debian.org>
4522
4523 * hppa-tdep.c (hppa_inner_than): Remove.
4524 (is_pa_2): Remove unused static variable.
8718a420 4525 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 4526
e85c3284
PH
45272004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
4528
4529 * language.h (language_defn): Add new la_post_parser field.
4530 * parser-defs.h (null_post_parser): New declaration (default for
4531 la_post_parser).
8718a420 4532
e85c3284
PH
4533 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
4534 insert call to that function.
4535 (parse_exp_in_context): New function, including code formerly in
8718a420 4536 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
4537 prefixification.
4538 (parse_expression_in_context): New exported function.
4539 (null_post_parser): New definition.
4540 * expression.h (parse_expression_in_context): Add declaration.
8718a420 4541
e85c3284
PH
4542 * p-lang.c (pascal_language_defn): Add trivial post-parser.
4543 * c-lang.c (c_language_defn): Ditto.
4544 (cplus_language_defn): Ditto.
4545 (asm_language_defn): Ditto.
4546 (minimal_language_defn): Ditto.
4547 * f-lang.c (f_language_defn): Ditto.
4548 * jv-lang.c (java_language_defn): Ditto.
4549 * language.c (unknown_language_defn): Ditto.
4550 (auto_language_defn): Ditto.
4551 (local_language_defn): Ditto.
4552 * m2-lang.c (m2_language_defn): Ditto.
4553 * scm-lang.c (scm_language_defn): Ditto.
4554 * obj-lang.c (objc_language_defn): Ditto.
8718a420 4555
d9f8c85b
MK
45562004-04-10 Mark Kettenis <kettenis@gnu.org>
4557
fa34704a
MK
4558 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
4559 (amd64nbsd_mcontext_addr): New function.
4560 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
4561 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
4562 with amd64nbsd_r_reg_offset, instead of building it on the fly.
4563
403e1656
MK
4564 * corelow.c (core_xfer_partial): Fix coding standards violation.
4565 Add support for TARGET_OBJECT_WCOOKIE.
4566
a57e5a95
MK
4567 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
4568 deprecated_pc_in_sigtramp.
4569 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
4570 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
4571 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
4572 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
4573 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
4574 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
4575 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
4576
377d9ebd
MK
4577 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
4578 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
4579 Fix typo.
4580
f0ef85a5
MK
4581 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
4582 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
4583 (amd64_collect_fxsave): Likewise.
4584
d9f8c85b
MK
4585 * i386-sol2-tdep.c: Include "gdb_string.h".
4586 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
4587 name.
4588 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
4589
75f501b5
MK
45902004-04-10 Mark Kettenis <kettenis@gnu.org>
4591
4592 * i386-sol2-tdep.c: Include "solib-svr4.h".
4593 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
4594 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
4595 * config/i386/tm-i386sol2.h: Include :solib.h".
4596 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
4597 solib-svr4.o and solib-legacy.o.
4598 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
4599 solib-svr4.o.
4600
b31bc724
MK
46012004-04-09 Mark Kettenis <kettenis@gnu.org>
4602
18bbbd9e
MK
4603 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
4604 whether a register is supplied by PTRACE_GETFPREGS.
4605 (store_inferior_registers): Likewise.
4606 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
4607 whether a register is supplied by PT_GETFPREGS.
4608 (store_inferior_registers): Likewise.
4609
3c30bf1b
MK
4610 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
4611 * config/i386/linux64.mt (TDEPFILES): Likewise.
4612
a4194092
MK
4613 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
4614
911bc6ee
MK
4615 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
4616 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
4617 the program counter is in the range specified by `struct
4618 gdbarch_tdep'.
4619 * amd64-linux-tdep.c: Include "symtab.h".
4620 (amd64_linux_pc_in_sigtramp): Remove function.
4621 (amd64_linux_sigtramp_p): New function.
4622 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
4623 deprecated_pc_in_sigtramp.
4624 * amd64nbsd-tdep.c: Include "symtab.h".
4625 (amd64nbsd_sigtramp_p): New function.
4626 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
4627 deprecated_pc_in_sigtramp.
4628 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
4629 few comments.
4630 (amd64obsd_pc_in_sigtramp): Remove function.
4631 (amd64obsd_sigtramp_p): New function.
4632 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
4633 deprecated_pc_in_sigtramp.
4634 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
4635 (i386bsd_pc_ins_sigtramp): Remove prototype.
4636 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
4637 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
4638 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
4639 the program counter is in the range specified by `struct
4640 gdbarch_tdep'.
4641 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
4642 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
4643 (i386_go32_pc_in_sigtramp): Remove function.
4644 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
4645 Initialize TDEP->sigtramp_p.
4646 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
4647 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
4648 deprecated_pc_in_sigtramp.
4649 * i386-linux-tdep.c: Adjust comments.
4650 (i386_linux_pc_in_sigtramp): Remove function.
4651 (i386_linux_sigtramp_p): New function.
4652 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
4653 deprecated_pc_in_sigtramp.
4654 * i386-nto-tdep.c: Update copyright year.
4655 (i386nto_pc_in_sigtramp): Remove function.
4656 (i386nto_sigtramp_p): New function.
4657 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
4658 SP_REGNUM.
4659 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
4660 deprecated_pc_in_sigtramp.
4661 * i386-sol2-tdep.c: Update copyright year.
4662 (i386_sol2_pc_in_sigtramp): Remove function.
4663 (i386_sol2_sigtramp_p): New function.
4664 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
4665 deprecated_pc_in_sigtramp.
4666 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
4667 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
4668 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
4669 deprecated_sigtramp_start and deprecated_sigtramp_end.
4670 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
4671 (i386nbsd_pc_in_sigtramp): Remove function.
4672 (i386nbsd_sigtramp_p): New function.
4673 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
4674 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
4675 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
4676 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
4677 (i386obsd_pc_in_sigtramp): Remove function.
4678 (i386obsd_sigtramp_p): New function.
4679 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
4680 functions.
4681 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
4682 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
4683 TDEP->sigtramp_p.
4684 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
4685 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
4686 dependencies.
4687
e083e6ec
MK
4688 * config/i386/i386aout.mt: Remove file.
4689
bd153b94
MK
4690 * configure.tgt: Remove i[34567]86-*-go32*,
4691 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
4692 and i[34567]86-*-isc*. Set gdb_target to i386 for
4693 i[34567]86-*-netware* and i[34567]86-*-*.
4694 * config/i386/i386.mt: New file.
4695 * config/i386/embed.mt: Remove file.
4696 * config/i386/go32.mt: Remove file.
4697 * config/i386/i386nw.mt: Remove file.
4698 * config/i386/i386v.mt: Remove file.
4699 * config/i386/tm-go32.h: Remove file.
4700
4a1bcc8c
MK
4701 * tui/tui-hooks.c: Include "readline/readline.h" after
4702 "gdb_curses.h" instead of before.
4703 * tui/tui-io.c: Likewise.
4704
f9a79064
MK
4705 * tui/tui.c: Fix typo in comment.
4706
b31bc724
MK
4707 * sparc64-tdep.c (sparc_address_from_register): Remove function.
4708
f83f82bc
AC
47092004-04-08 Andrew Cagney <cagney@redhat.com>
4710
4711 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
4712 (deprecated_exception_support_initialized): Declare.
8718a420 4713 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
4714 (initialize_hp_cxx_exception_support)
4715 (child_enable_exception_callback): Update.
4716 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
4717 (deprecated_exception_support_initialized): Rename
4718 deprecated_exception_catchpoints_are_fragile and
4719 deprecated_exception_support_initialized.
4720 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
4721
4722 * symtab.c (deprecated_hp_som_som_object_present): Rename
4723 hp_som_som_object_present.
4724 * symtab.h (deprecated_hp_som_som_object_present): Declare.
4725 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
4726 Update. Delete extern declaration.
4727 * valops.c (hp_som_som_object_present): Ditto.
8718a420 4728 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
4729 (parse_nested_classes_for_hpacc): Ditto.
4730 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 4731 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
4732 (initialize_hp_cxx_exception_support): Ditto.
4733 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 4734 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 4735 (cp_print_class_method): Ditto.
8718a420 4736 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
4737 (c_type_print_base): Ditto.
4738 * c-exp.y (hp_som_som_object_present): Ditto.
4739
fb2be677
AC
47402004-04-08 Andrew Cagney <cagney@redhat.com>
4741
4742 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
4743 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
4744 (frame_unwind_find_by_frame): Re-implement the unwind code so
4745 that it can both prepend and append sniffers. Replace
4746 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
4747 * tramp-frame.c (tramp_frame_append): Use
4748 frame_unwind_prepend_unwinder.
4749 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
4750 frame_unwind_register_unwinder.
4751 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
4752 tramp_frame_append.
4753 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 4754 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
4755 (mips_linux_init_abi): Update.
4756
67faf007
KB
47572004-04-08 Kevin Buettner <kevinb@redhat.com>
4758
4759 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
4760 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
4761 file support.
4762
8973ff21
KB
47632004-04-07 Kevin Buettner <kevinb@redhat.com>
4764
4765 * ia64-tdep.c (elf.h): Don't include.
4766 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
4767
4a0e2f88
JM
47682004-04-07 Jason Molenda (jmolenda@apple.com)
4769
4770 * frame.h: Typeo corrections in comments.
4771
9872ad24
JB
47722004-04-07 Jim Blandy <jimb@redhat.com>
4773
4774 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
4775 %esp and %ebp
4776
70b216c8
MK
47772004-04-07 Mark Kettenis <kettenis@gnu.org>
4778
11d5789c
MK
4779 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
4780 * config/sparc/linux64.mt (TDEPFILES): Likewise.
4781 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4782 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
4783 and solib-legacy.o.
4784 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
4785 solib-svr4.o.
4786 * config/sparc/tm-sol2.h: Update copyright year. Include
4787 "solib.h".
4788
70b216c8
MK
4789 * sparc-sol2-tdep.c: Update copyright year. Include
4790 "solib-svr4.h".
4791 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
4792 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
4793 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 4794 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
4795 dependencies.
4796
6339dc9e
AC
47972004-04-06 Andrew Cagney <cagney@redhat.com>
4798
4799 * infttrace.c: Include "infttrace.h".
4800 * infttrace.h: Include "target.h".
4801 * Makefile.in (infttrace_h): Update.
4802 (infttrace.o): Update.
8718a420 4803
93449403
AC
48042004-04-06 Andrew Cagney <cagney@redhat.com>
4805
6d518969
AC
4806 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
4807 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
4808 move extern declarations from here ...
4809 * infttrace.h: ... to here.
4810 * Makefile.in (hppah-nat.o): Update dependencies.
4811
85f4f2d8
AC
4812 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
4813 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 4814 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
4815 (hppa_breakpoint_from_pc): Delete.
4816
93449403
AC
4817 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
4818
71456ec6
AC
48192004-04-05 Andrew Cagney <cagney@redhat.com>
4820
4821 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
4822 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
4823 <sys/file.h>.
8718a420 4824
4c02c60c
AC
48252004-04-06 Randolph Chung <tausq@debian.org>
4826
4827 Committed by Andrew Cagney (mechanical change).
4828 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
4829 exception_catchpoints_are_fragile, find_stub_with_shl_get,
4830 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
4831 child_enable_exception_callback, current_ex_event,
4832 null_symtab_and_line, child_get_current_exception_event,
4833 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
4834 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
4835 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
4836 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
4837 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
4838 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
4839 Move hpux-specific definitions ...
4840 * hppa-hpux-tdep.c: ... to here.
4841
3a515653
AC
48422004-04-05 Andrew Cagney <cagney@redhat.com>
4843
4844 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
4845 skip_prologue_using_sal.
4846
c1730d02
AC
48472004-04-05 Andrew Cagney <cagney@redhat.com>
4848
4849 * config/i386/tm-i386.h: Delete file.
4850 * config/i386/tm-vxworks.h: Update copyright, do not include
4851 "tm-i386.h".
4852 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
4853 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
4854 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
4855 * config/i386/ncr3000.mt (TM_FILE): Delete.
4856 * config/i386/interix.mt (TM_FILE): Delete.
4857 * config/i386/i386v.mt (TM_FILE): Delete.
4858 * config/i386/i386nw.mt (TM_FILE): Delete.
4859 * config/i386/i386gnu.mt (TM_FILE): Delete.
4860 * config/i386/i386aout.mt (TM_FILE): Delete.
4861 * config/i386/embed.mt (TM_FILE): Delete.
4862
8b67aa36
KB
48632004-04-05 Kevin Buettner <kevinb@redhat.com>
4864
4865 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
4866 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
4867 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
4868 (accg7_regnum): New constants.
4869 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
4870 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
4871 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
4872 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
4873 for accg registers.
4874 (frv_register_sim_regno): Update spr_map[].
4875
3c7012f5
AC
48762004-04-04 Andrew Cagney <cagney@redhat.com>
4877
4878 * config/mips/xm-riscos.h: Delete.
4879 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
4880 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
4881 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
4882 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
4883 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
4884 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
4885 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
4886 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
4887 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
4888 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
4889 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
4890 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
4891 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
4892 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
4893 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
4894 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
4895 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
4896 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
4897 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
4898 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
4899 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
4900 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
4901 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
4902 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
4903 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
4904 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 4905
3c7012f5
AC
4906 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
4907 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
4908 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
4909 * configure.host: Remove m680[01]0-sun-sunos3*,
4910 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
4911 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
4912 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
4913 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
4914 mips-*-riscos*.
4915 * NEWS: Mention removed systems.
4916
99d16a21
AC
49172004-04-04 Andrew Cagney <cagney@redhat.com>
4918
4919 GDB 6.1 release created from 6.1 branch.
4920
6cdf9d98
AC
49212004-04-04 Andrew Cagney <cagney@redhat.com>
4922
98d346c3
AC
4923 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
4924 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4925 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
4926
6cdf9d98
AC
4927 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
4928 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
4929 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
4930
859a326d
JB
49312004-04-03 Jim Blandy <jimb@redhat.com>
4932
4933 * MAINTAINERS: Chris Faylor has changed employers; add him to
4934 "paper trail" section, and update his E-mail address.
4935
b87178c3
AC
49362004-04-03 Andrew Cagney <cagney@redhat.com>
4937
4ea2acf0
AC
4938 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
4939 generic dummy frames.
4940 * dummy-frame.c: Update copyright.
4941 (dummy_frame_sniffer): Delete check for generic dummy frames.
4942
d0bd2d18 4943 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 4944 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
4945 (REG_PARM_STACK_SPACE): Delete.
4946 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
4947 Inline reference to REG_PARM_STACK_SPACE.
4948
b87178c3
AC
4949 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
4950 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
4951 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4952 (FRAME_BASE_BEFORE_SIGTRAMP)
4953 (hppa32_hpux_frame_base_before_sigtramp)
4954 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
4955 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
4956 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
4957 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
4958 (FRAME_BASE_BEFORE_SIGTRAMP)
4959 (hppa64_hpux_frame_base_before_sigtramp)
4960 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
4961
43e2e1a0
AC
49622004-04-03 Andrew Cagney <cagney@redhat.com>
4963
4964 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
4965
ddc135a4
AC
49662004-04-02 Andrew Cagney <cagney@redhat.com>
4967
4968 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
4969 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
4970 * dummy-frame.h: Delete out-of-date comments.
4971 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
4972 * gdbarch.h, gdbarch.c: Re-generate.
4973
d15bfd3a 49742004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 4975
d15bfd3a
AC
4976 Committed by Andrew Cagney <cagney@redhat.com>.
4977 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
4978 into account an instruction saving a register if we have already
4979 seen an earlier instruction saving that same register.
4980
f04ceafa
AC
49812004-04-02 Andrew Cagney <cagney@redhat.com>
4982
08be3abd
AC
4983 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
4984 * gdbarch.h, gdbarch.c: Re-generate.
4985 * frame.c (legacy_get_prev_frame): Delete references to
4986 DEPRECATED_INIT_FRAME_PC_FIRST.
4987
f04ceafa
AC
4988 * infrun.c (pc_in_sigtramp): Delete function.
4989 (check_sigtramp2): Inline call to pc_in_sigtramp, use
4990 get_frame_type.
4991
08e69816
AC
49922004-04-02 Andrew Cagney <cagney@redhat.com>
4993
4994 * infrun.c (handle_step_into_function): Delete code conditional on
4995 legacy_frame_p.
4996 (handle_inferior_event, step_over_function): Ditto.
4997
adb54772
AC
49982004-04-02 Andrew Cagney <cagney@redhat.com>
4999
5000 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
5001 "previous frame inner to this frame" test.
5002
304396fb
AC
50032004-04-02 Andrew Cagney <cagney@redhat.com>
5004
5005 * frame.c (safe_frame_unwind_memory): New function.
5006 * frame.h (safe_frame_unwind_memory): Declare. Update description
5007 of /safe_/ methods.
5008 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
5009 "next_frame". Use safe_frame_unwind_memory.
5010 (tramp_frame_sniffer): Update call to tramp_frame_start.
5011
6502dd73
DJ
50122004-04-01 Daniel Jacobowitz <drow@mvista.com>
5013
5014 * dwarf2read.c (dwarf2_objfile_data_key): New.
5015 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
5016 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
5017 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
5018 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
5019 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
5020 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
5021 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
5022 Remove variables.
5023 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
5024 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
5025 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
5026 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
5027 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
5028 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
5029 Remove macros.
5030 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
5031 data.
5032 (dwarf2_locate_sections, dwarf2_build_psymtabs)
5033 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
5034 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
5035 (read_partial_die, read_full_die, read_indirect_string)
5036 (dwarf_decode_line_header, dwarf_decode_macros)
5037 (dwarf2_symbol_mark_computed): Remove use of removed macros.
5038 Update uses of removed variables.
5039 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
5040 of removed macros.
5041 (_initialize_dwarf2_read): New function.
5042 * symfile.h (dwarf2_has_info): Update prototype.
5043 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
5044 * elfread.c (elf_symfile_read): Likewise.
5045
408752b0
JB
50462004-04-01 Jim Blandy <jimb@redhat.com>
5047
9f744501
JB
5048 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
5049 function for register numbers on all the rs6000-derived targets.
5050 (rs6000_gdbarch_init): Don't register a separate
5051 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
5052 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
5053 variants.
5054
408752b0
JB
5055 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
5056 numbering.
5057
2de41bce
PH
50582004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5059
5060 * valarith.c: Update copyright notice.
5061 (value_add): Handle range types.
5062 (value_sub): Ditto.
5063 (value_equal): Ditto.
5064 (value_less): Ditto.
5065 (value_neg): Ditto.
5066 (value_complement): Ditto.
8718a420 5067 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 5068 eliminiating unnecessary COERCE_ENUMs.
8718a420 5069
5613d8d3
AC
50702004-03-31 Andrew Cagney <cagney@redhat.com>
5071
5072 * frame.h (frame_unwind_id): Declare.
5073 * frame.c (frame_unwind_id): New function.
5074 (get_prev_frame_1): New function.
5075 (frame_debug_got_null_frame): New function.
5076 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
5077 code proper to prev_frame, update description.
5078 * infrun.c (step_over_function): Use frame_unwind_id.
5079
c4557624
JB
50802004-04-31 J. Brobecker <brobecker@gnat.com>
5081
5082 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
5083 (hppa64_push_dummy_call): Likewise.
5084
3e6bb910
JB
50852004-03-30 Jim Blandy <jimb@redhat.com>
5086
5087 From Ulrich Weigand:
5088 * utils.c (query): Do not use a va_list variable multiple times.
5089
a2f23071
DJ
50902004-03-29 Daniel Jacobowitz <drow@mvista.com>
5091
5092 * Makefile.in (linux_nat_h): Update dependencies.
5093 * configure.in: Check for <gnu/libc-version.h>.
5094 * configure: Regenerate.
5095 * config.in: Regenerate.
5096 * linux-nat.h: Include "target.h". Add waitstatus field to
5097 struct lwp_info.
5098 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
5099 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
5100 to.
5101 (lin_lwp_handle_extended): New function. Handle clone events.
5102 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
5103 thread exit events.
5104 (child_wait): Handle clone events.
5105 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
5106 * linux-nat.c (linux_enable_event_reporting): Turn on
5107 PTRACE_O_TRACECLONE.
5108 (linux_handle_extended_wait): Handle clone events.
5109 * thread-db.c: Include <gnu/libc-version.h>.
5110 (struct private_thread_info): Add dying flag.
5111 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
5112 higher.
5113 (attach_thread): Update comments. Handle dying threads.
5114 (detach_thread): Set the dying flag.
5115 (check_event): Always call attach_thread.
5116
8d5f9dcb
DJ
51172004-03-29 Daniel Jacobowitz <drow@mvista.com>
5118
5119 * mips-tdep.c (mips_pdr_data): New.
5120 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
5121 (_initialize_mips_tdep): Initialize mips_pdr_data.
5122
66337bb1
CV
51232004-03-29 Corinna Vinschen <vinschen@redhat.com>
5124
5125 * minsyms.c (install_minimal_symbols): Move dropping leading
5126 char from linkage name from here...
5127 (prim_record_minimal_symbol_and_info): ...to here. Simplify
5128 test for "__gnu_compiled*" symbols.
5129
e802b915
JB
51302004-03-28 Jim Blandy <jimb@redhat.com>
5131
5132 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
5133 registers to temp register r0 and byte stores as prologue
5134 instructions.
5135
72b56458
AC
51362004-03-28 Andrew Cagney <cagney@redhat.com>
5137
5138 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
5139 arm*-*-*.
5140
0bfbda3b
SC
51412004-03-28 Stephane Carrez <stcarrez@nerim.fr>
5142
5143 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
5144 and switch the layout to force a display of register window.
5145
5a7225ed
JB
51462004-02-26 J. Brobecker <brobecker@gnat.com>
5147
5148 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
5149 of the INTEGER class.
5150
81a07a45
JB
51512004-03-26 Jim Blandy <jimb@redhat.com>
5152
5153 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
5154 bytes long on PPC GNU/Linux.
5155
8c691c7a
DC
51562004-03-26 David Carlton <carlton@kealia.com>
5157
5158 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
5159
103a0089
AC
51602004-03-25 Andrew Cagney <cagney@redhat.com>
5161
5162 * PROBLEMS: Add general section titles, remove references to
5163 specific releases.
5164
7a5ea0d4
DJ
51652004-03-25 Daniel Jacobowitz <drow@mvista.com>
5166
5167 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
5168 INT_REGISTER_SIZE.
5169 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
5170 FP_REGISTER_VIRTUAL_SIZE.
5171 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
5172 of DEPRECATED_REGISTER_RAW_SIZE.
5173 (arm_register_type): Add gdbarch argument.
5174 (arm_register_raw_size, arm_register_virtual_size): Delete.
5175 (arm_register_byte, arm_extract_return_value)
5176 (arm_store_return_value, arm_get_longjmp_target): Update references
5177 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
5178 (arm_gdbarch_init): Likewise. Don't set
5179 deprecated_register_raw_size, deprecated_register_virtual_size,
5180 deprecated_max_register_raw_size,
5181 deprecated_max_register_virtual_size, or
5182 deprecated_max_register_virtual_type. Do set register_type.
5183 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
5184 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
5185 (FP_REGISTER_VIRTUAL_SIZE): Delete.
5186 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
5187 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
5188 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
5189 INT_REGISTER_SIZE.
5190 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
5191 (remote_rdp_store_register): Likewise.
5192
5792a79b
DJ
51932004-03-24 Daniel Jacobowitz <drow@mvista.com>
5194
5195 * Makefile.in (mips-linux-tdep.o): Update dependencies.
5196 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
5197 to after osabi initialization.
5198 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
5199 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
5200 functions.
5201 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
5202 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
5203 variables.
5204 (mips_linux_init_abi): Append signal trampoline unwinders.
5205
1196bfda
AC
52062004-03-24 Andrew Cagney <cagney@redhat.com>
5207
5208 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
5209 * tramp-frame.c: Include "gdb_assert.h".
5210 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
5211 correct sizeof.
5212 (tramp_frame_append): Validate the tramp frame's instructions.
5213 * Makefile.in (tramp-frame.o): Update dependencies.
5214
4be282b4
AC
52152004-03-23 Andrew Cagney <cagney@redhat.com>
5216
5217 * trad-frame.h (trad_frame_set_reg_addr): Declare.
5218
69aec09b
AC
52192004-03-23 Andrew Cagney <cagney@redhat.com>
5220
5221 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
5222 Nasser as past testsuite/lib/ (and other) maintainers.
5223
63ed89b4
DJ
52242004-03-23 Daniel Jacobowitz <drow@mvista.com>
5225
5226 * infcmd.c (attach_command): Reread symbols if we already have
5227 an exec file.
5228
f3b36427
AC
52292004-03-23 Andrew Cagney <cagney@redhat.com>
5230
5231 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
5232
aa2a3f87
AC
52332004-03-23 Andrew Cagney <cagney@redhat.com>
5234
5235 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
5236 * gdbarch.h, gdbarch.c: Re-generate.
5237 * i386obsd-tdep.c (i386obsd_init_abi): Update.
5238 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
5239 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 5240 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 5241 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 5242 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
5243 (DEPRECATED_SIGTRAMP_START): Update.
5244 * blockframe.c (find_pc_sect_partial_function): Update.
5245 * arch-utils.c (legacy_pc_in_sigtramp): Update.
5246
00cac895
DJ
52472004-03-23 Daniel Jacobowitz <drow@mvista.com>
5248
5249 * remote.c (remote_open_1): Reopen the exec file and reread symbols
5250 if necessary.
5251
f561f026
AC
52522004-03-23 Andrew Cagney <cagney@redhat.com>
5253
5254 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
5255 predicate, deprecate.
5256 * gdbarch.h, gdbarch.c: Re-generate.
5257 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5258 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5259 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
5260 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5261 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
5262 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
5263 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
5264 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
5265 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
5266 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
5267 * blockframe.c (find_pc_partial_function): Update.
5268 * breakpoint.c (bpstat_what): Update.
5269 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
5270 * frv-linux-tdep.c (frv_linux_init_abi): Update.
5271 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
5272 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
5273 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5274 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5275 * i386-nto-tdep.c (i386nto_init_abi): Update.
5276 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
5277 * i386-tdep.c (i386_sigtramp_frame_sniffer)
5278 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
5279 * i386bsd-tdep.c (i386bsd_init_abi): Update.
5280 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
5281 * i386obsd-tdep.c (i386obsd_init_abi): Update.
5282 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
5283 * infrun.c (pc_in_sigtramp): Update.
5284 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
5285 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
5286 * mips-tdep.c (mips_gdbarch_init): Update.
5287 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
5288 * ppc-linux-tdep.c: Update comment.
5289 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
5290 * shnbsd-tdep.c (shnbsd_init_abi): Update.
5291 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
5292 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
5293 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
5294 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
5295 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
5296 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
5297 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
5298 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 5299
8050c72f
AC
53002004-03-23 Andrew Cagney <cagney@redhat.com>
5301
d2259dd3
AC
5302 * tramp-frame.h, tramp-frame.h: New files.
5303 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
5304 Update rules to include "tramp-frame.h" and "tramp-frame.c".
5305
8050c72f
AC
5306 * Makefile.in: Update all dependencies.
5307
0db9b4b7
AC
53082004-03-23 Andrew Cagney <cagney@redhat.com>
5309
5310 * Makefile.in (trad_frame_h): Add $(frame_h).
5311 * trad-frame.h: Update copyright. Include "frame.h".
5312 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
5313 (trad_frame_set_id, trad_frame_get_id): Declare.
5314 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
5315 * trad-frame.c: Update copyright.
5316 (struct trad_frame_cache): Define.
5317 (trad_frame_cache_zalloc): New function.
5318 (trad_frame_set_id, trad_frame_get_id): New functions.
5319 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 5320
8e645ae7
AC
53212004-03-22 Andrew Cagney <cagney@redhat.com>
5322
5323 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
5324 s390_pltstub_unwind_cache.
5325 (s390_stub_frame_unwind_cache): Rename
5326 s390_pltstub_frame_unwind_cache.
5327 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
5328 (s390_stub_frame_prev_register): Rename
5329 s390_pltstub_frame_prev_register.
5330 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
5331 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
5332
5333 From Ulrich Weigand:
5334 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
5335 pointer calls like PLT calls.
5336
34fcf120
DJ
53372004-03-22 Daniel Jacobowitz <drow@mvista.com>
5338
5339 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
5340 PC rather than the partial function start address. Use the start
5341 address to sanity check the found PDR.
5342
5b917078
DJ
53432004-03-22 Daniel Jacobowitz <drow@mvista.com>
5344
5345 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
5346 linux_handle_extended_wait.
5347
8adf9e78
AC
53482004-03-22 Andrew Cagney <cagney@redhat.com>
5349
c3122434
AC
5350 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
5351 function.
5352
8adf9e78
AC
5353 * frame.h (generic_pop_current_frame): Delete declaration.
5354 (deprecate_pop_dummy_frame): Deprecate
5355 generic_pop_dummy_frame.
5356 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
5357 (generic_pop_current_frame): Delete function.
5358 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
5359 generic_pop_current_frame.
5360 * v850-tdep.c (v850_pop_frame): Update.
5361 * mcore-tdep.c (mcore_pop_frame): Update.
5362 * sh64-tdep.c (sh64_pop_frame): Update.
5363 * h8300-tdep.c (h8300_pop_frame): Update.
5364
90ba813f
AC
53652004-03-22 Andrew Cagney <cagney@redhat.com>
5366
5367 * frame.h (deprecated_pc_in_call_dummy): Rename
5368 generic_pc_in_call_dummy.
5369 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
5370 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
5371 generic_pc_in_call_dummy.
5372 (pc_in_dummy_frame): Make static.
5373 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
5374 * gdbarch.h, gdbarch.c: Re-generate.
5375 * dummy-frame.c (dummy_frame_sniffer): Simplify.
5376 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
5377 (legacy_get_prev_frame): Ditto.
5378 * inferior.h: Delete reference to generic_pc_in_call_dummy in
5379 comment.
8718a420 5380
ca4bb888
AC
53812004-03-21 Andrew Cagney <cagney@redhat.com>
5382
244675f9
AC
5383 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
5384 declaration and out-of-date comment.
5385 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5386 Delete function.
5387 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
5388 deprecated_pc_in_call_dummy.
5389
ca4bb888
AC
5390 * infrun.c (handle_inferior_event): For non legacy frames, use the
5391 frame ID and frame type to identify a signal trampoline. Update
5392 comments.
5393
1777c7b4
NW
53942004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
5395
5396 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
5397 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
5398
82417da5
AC
53992004-03-21 Andrew Cagney <cagney@redhat.com>
5400
5401 * frame-unwind.h: Update copyright.
5402 (struct frame_data): Add opaque declaration.
5403 (frame_sniffer_ftype): Declare.
5404 (struct frame_unwind): Add "unwind_data" and "sniffer".
5405 (frame_unwind_register_unwinder): Declare.
5406 (frame_unwind_find_by_frame): Add parameter "this_cache".
5407 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
5408 (legacy_get_prev_frame, legacy_get_prev_frame)
5409 (get_frame_type): Pass the prologue_cache to
5410 frame_unwind_find_by_frame.
5411 * frame-unwind.c (struct frame_unwind_table_entry): Add field
5412 "unwinder".
5413 (frame_unwind_register_unwinder): New function.
5414 (frame_unwind_find_by_frame): Handle an unwind sniffer.
5415
b2ba182e
PH
54162004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
5417
5418 * bcache.c (print_percentage): Use floating point to avoid
5419 incorrect results when portion*100 overflows.
5420
81332287
KB
54212004-03-19 Kevin Buettner <kevinb@redhat.com>
5422
5423 * ppc_tdep.h (ppc_linux_frame_saved_pc)
5424 (ppc_linux_init_extra_frame_info)
5425 (ppc_linux_frameless_function_invocation)
5426 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
5427 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
5428 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
5429 (rs6000_frame_chain): Delete declarations.
5430 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
5431 (ppc_linux_init_extra_frame_info)
5432 (ppc_linux_frameless_function_invocation)
5433 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
5434 (ppc_linux_init_abi): Remove registration of above deleted functions.
5435 * rs6000-tdep.c (rs6000_init_extra_frame_info)
5436 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
5437 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
5438 (rs6000_pop_frame, rs6000_frameless_function_invocation)
5439 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
5440 (rs6000_gdbarch_init): Remove registration of above deleted functions.
5441 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
5442 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
5443 frame management for all OSABIs.
5444
61a65099
KB
54452004-03-19 Andrew Cagney <cagney@redhat.com>
5446
5447 Committed by Kevin Buettner <kevinb@redhat.com>.
5448
5449 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
5450 Update copyright.
5451 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
5452 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
5453 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
5454 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
5455 unwinders. #ifdef legacy frame code.
5456 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5457 "frame-base.h".
5458 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
5459 (struct rs6000_frame_cache, rs6000_frame_cache)
5460 (rs6000_frame_this_id, rs6000_frame_prev_register)
5461 (rs6000_frame_sniffer, rs6000_frame_unwind)
5462 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
5463 (rs6000_frame_base): Implement a traditional frame unwinder.
5464 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
5465 frame unwinder.
5466
88f7da05
KB
54672004-03-19 Kevin Buettner <kevinb@redhat.com>
5468
5469 * breakpoint.c (adjust_breakpoint_address): Don't adjust
5470 breakpoint address for watchpoints or the catch eventpoints.
5471 Add new paramter ``bptype''. Adjust all callers.
5472
f826dce1
AC
54732004-03-19 Andrew Cagney <cagney@redhat.com>
5474
33cb8b0f
AC
5475 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
5476
f826dce1
AC
5477 * PROBLEMS: Delete note that ARM does not use frame code, problem
5478 fixed.
5479
43b1ab88
AC
54802004-03-18 Andrew Cagney <cagney@redhat.com>
5481
292ab034
AC
5482 * stack.c (return_command): Delete code wrapped in #ifdef
5483 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
5484
43b1ab88
AC
5485 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
5486
dbfe4626
AC
54872004-03-18 Andrew Cagney <cagney@redhat.com>
5488
5489 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
5490 DEPRECATED_IN_SIGTRAMP.
5491 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5492 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
5493 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5494 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5495 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5496 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5497 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5498 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5499 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
5500 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
5501
0cad6aec
AC
55022004-03-18 Andrew Cagney <cagney@redhat.com>
5503
5504 * frame-base.c: Update copyright. Include "gdb_obstack.h".
5505 (struct frame_base_table_entry): Define.
5506 (struct frame_base_table): Re-implement as a linked list.
5507 (frame_base_init): Re-implement.
5508 (frame_base_table): Delete function.
5509 (append_predicate): Delete function.
5510 (frame_base_append_sniffer): Update.
5511 (frame_base_set_default): Update.
5512 (frame_base_find_by_frame): Update.
5513 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
5514 * Makefile.in (frame-base.o): Update dependencies.
5515
9982c2e7
AC
55162004-03-17 Andrew Cagney <cagney@redhat.com>
5517
5518 * frame.c (legacy_get_prev_frame): Pass correct frame to
5519 frame_unwind_find_by_frame.
5520
8dfe8985
DC
55212004-03-17 David Carlton <carlton@kealia.com>
5522
5523 * NEWS: Mention C++ nested types and namespaces
5524
ed47347a
MC
55252004-03-16 Michael Chastain <mec.gnu@mindspring.com>
5526
5527 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
5528 and "Regressions since gdb 5.3.". Add known regressions since
5529 gdb 6.0.
5530
90aeadfc
DC
55312004-03-16 David Carlton <carlton@kealia.com>
5532
5533 * dwarf2read.c (process_structure_scope): Process children even
5534 when we're a declaration.
5535
73912b9b
AC
55362004-03-16 Andrew Cagney <cagney@redhat.com>
5537
5538 * symtab.h (find_pc_sect_partial_function): Delete declaration.
5539 * blockframe.c (find_pc_partial_function)
5540 (find_pc_sect_partial_function): Merge into a single
5541 find_pc_partial_function.
5542
283accbc
MK
55432004-03-16 Mark Kettenis <kettenis@gnu.org>
5544
5545 * i386bsd-nat.c: s/regno/regnum/g.
5546 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
5547 FP0_REGNUM.
5548 (store_inferior_registers): Likewise.
5549
f5b1afdf
MK
55502004-03-16 Mark Kettenis <kettenis@gnu.org>
5551
5552 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
5553 of i387_fill_fsave.
5554 (store_inferior_registers): Call i387_collect_fsave and
5555 i387_collect_fxsave instead of i387_fill_fsave and
5556 i387_fill_fxsave.
5557
41fe5eb3
AC
55582004-03-15 Andrew Cagney <cagney@redhat.com>
5559
5560 * Makefile.in (frame-unwind.o): Update dependencies.
5561 * frame-unwind.c: Include "gdb_obstack.h".
5562 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
5563 parameter.
5564 (append_predicate): Delete function.
5565 (struct frame_unwind_table_entry): New structure.
5566 (struct frame_unwind_table): Replace "sniffer" with "head" and
5567 "tail".
5568 (frame_unwind_append_sniffer): Update.
5569 (frame_unwind_find_by_frame): Update.
5570 (_initialize_frame_unwind): Registe frame_unwind_init using
5571 gdbarch_data_register_pre_init.
5572
3f63813d
MK
55732004-03-15 Mark Kettenis <kettenis@gnu.org>
5574
5575 * i386bsd-nat.c: Update copyright year.
5576 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
5577 define unconditionally.
5578
3248c325 55792004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
5580
5581 * i387-tdep.h (i387_collect_fsave): New prototype.
5582 * i387-tdep.c (i387_collect_fsave): New function containing most
5583 of the code from i387_fill_fsave.
3248c325 5584 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 5585
871fbe6a
MK
55862004-03-15 Mark Kettenis <kettenis@gnu.org>
5587
5588 * i386-linux-tdep.c: Update copyright year.
5589 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
5590 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
5591 svr4_ilp32_link_map_offsets instead of
5592 i386_linux_svr4_fetch_link_map_offsets.
5593
8176b9b8
DC
55942004-03-15 David Carlton <carlton@kealia.com>
5595
5596 Fix for PR c++/1553:
5597 * dwarf2read.c (read_structure_type): Determine type name by
5598 calling determine_class_name.
5599 (determine_class_name): New.
5600 (determine_prefix): Look at TYPE_TAG_NAME and call
5601 determine_class_name when appropriate.
5602 (determine_prefix_aux, class_name): Delete.
9d58e29d 5603 (read_namespace): Set die->type.
8176b9b8 5604
fe8bf7d7
KB
56052004-03-15 Kevin Buettner <kevinb@redhat.com>
5606
5607 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
5608 unused macro definition. The definition in target.h (or perhaps
5609 elsewhere) takes precedence.
5610
ed6edd9b
AC
56112004-03-15 Andrew Cagney <cagney@redhat.com>
5612
f9be684a
AC
5613 * ppc-tdep.h: Update copyright.
5614 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
5615 function signatures to match "regsets.h".
5616 * ppc-linux-tdep.c: Include "regset.h".
5617 (ELF_GREGSET_SIZE): Delete.
5618 (right_supply_register): New function.
5619 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
5620 using right_supply_register.
5621 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
5622 functions.
5623 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
5624 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
5625 (_initialize_ppc_linux_tdep): Do not register
5626 ppc_linux_regset_core_fns.
5627 (ppc_linux_regset_from_core_section): Replace
5628 fetch_core_registers.
5629 (ppc_linux_regset_core_fns): Delete.
5630 * ppc-linux-nat.c: (right_fill_reg): New function.
5631 (supply_gregset): Update call to ppc_linux_supply_gregset.
5632 (fill_gregset): Clear the register set, use right_fill_reg.
5633 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
5634 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
5635
ed6edd9b
AC
5636 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
5637 unsigned.
5638
030f20e1
AC
56392004-03-15 Andrew Cagney <cagney@redhat.com>
5640
5641 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
5642 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
5643 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
5644 and register_gdbarch_data.
5645 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
5646 (struct gdbarch_data): Replace "init" by "pre_init" and
5647 "post_init".
5648 * gdbarch.h, gdbarch.c: Re-generate.
5649 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
5650 with"obstack", use OBSTACK_ZALLOC.
5651 (dwarf2_frame_ops): Delete.
5652 (dwarf2_frame_set_init_reg): Use gdbarch_data.
5653 (dwarf2_frame_init_reg): Use gdbarch_data.
5654 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 5655 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
5656 (_initialize_svr4_solib): Update.
5657 * user-regs.c (_initialize_user_regs): Update.
5658 * reggroups.c (_initialize_reggroup): Update.
5659 * regcache.c (_initialize_regcache): Update.
5660 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5661 * libunwind-frame.c (_initialize_libunwind_frame): Update.
5662 * gnu-v3-abi.c (init_gnuv3_ops): Update.
5663 * frame-unwind.c (_initialize_frame_unwind): Update.
5664 * frame-base.c (_initialize_frame_base): Update.
5665 * user-regs.c (user_reg_add): Update.
5666 * reggroups.c (reggroup_add): Update.
5667 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
5668 * libunwind-frame.c (libunwind_frame_set_descr): Update.
5669 * frame-unwind.c (frame_unwind_append_sniffer): Update.
5670 * frame-base.c (frame_base_table): Update.
5671 * remote.c (_initialize_remote): Update.
5672 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 5673
3111a3fc
AC
56742004-03-15 Andrew Cagney <cagney@redhat.com>
5675
5676 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
5677
5ecb7103
KB
56782004-03-15 Kevin Buettner <kevinb@redhat.com>
5679
5680 * Makefile.in (frv-linux-tdep.o): Add dependencies.
5681 * frv-linux-tdep.c: New file.
5682 * frv-tdep.c (struct gdbarch_tdep): Add new field
5683 ``sigcontext_reg_addr''.
5684 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
5685 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5686 (frv_sigramp_frame_sniffer): New functions.
5687 (frv_sigtramp_frame_unwind): New static global.
5688 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
5689 sniffers.
5690 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
5691 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
5692
1ccda5e9
KB
56932004-03-15 Kevin Buettner <kevinb@redhat.com>
5694
5695 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
5696 but not via a call to error(), when unable to read memory.
5697
b375a0a5
KB
56982004-03-15 Kevin Buettner <kevinb@redhat.com>
5699
5700 * frv-tdep.c (frv_call_dummy_words): Delete.
5701 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
5702
4fdf6121
AC
57032004-03-15 Andrew Cagney <cagney@redhat.com>
5704
5705 * infrun.c (handle_step_into_function, step_over_function): Only
5706 update and use STEP_FRAME_ID when the system is using legacy
5707 frames. Update comments.
5708
34021503
MK
57092004-03-14 Mark Kettenis <kettenis@gnu.org>
5710
187e21d1
MK
5711 * amd64-linux-tdep.h: Remove file.
5712 * amd64-linux-tdep.c: Don't include "inferior.h" and
5713 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
5714 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
5715 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
5716 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
5717 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
5718 macros.
5719 (user_to_gdb_regmap): Remove variable.
5720 (amd64_linux_gregset_reg_offset): New variable.
5721 (amd64_core_fns): Remove variable.
5722 (fetch_core_registers): Remove function.
5723 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
5724 functions.
5725 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
5726 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
5727 * Makefile.in (amd64_linux_tdep_h): Remove.
5728 (amd64-linux-nat.o): Update dependencies.
5729 (amd64-linux-tdep.o): Update dependencies.
5730
99679982
MK
5731 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
5732 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
5733 functions.
5734 (fetch_inferior_registers, store_inferior_registers): Rewrite.
5735
34021503
MK
5736 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
5737 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
5738
134d01f1
DJ
57392004-03-14 Daniel Jacobowitz <drow@mvista.com>
5740
5741 * dwarf2read.c (read_structure_type): Rename from
8718a420 5742 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
5743 Return immediately if die->type is set. Call read_type_die before
5744 dwarf2_add_member_fn.
5745 (process_structure_scope): New function.
5746 (read_enumeration_type, process_enumeration_scope): New functions,
5747 broken out from read_enumeration. Don't create the enumeration
5748 type if it has already been created.
5749 (read_enumeration): Removed.
5750 (process_die): Call read_structure_type, process_structure_scope,
5751 read_enumeration_type, and process_enumeration_scope. Just call
5752 new_symbol for base and subrange types. Add a comment about other
5753 type dies.
5754 (read_type_die): Call read_enumeration_type.
5755 (add_partial_structure, new_symbol): Update comments.
5756
65760afb
SC
57572004-03-13 Stephane Carrez <stcarrez@nerim.fr>
5758
5759 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
5760
10f59415
SC
57612004-03-13 Stephane Carrez <stcarrez@nerim.fr>
5762
5763 * tui/tui-win.h (tui_get_cmd_list): Declare.
5764 * tui/tui-win.c (tui_command): New function.
5765 (tui_get_cmd_list): New function.
5766 (_initialize_tui_win): Moved initialization of tui command in
5767 tui_get_cmd_list.
5768
5769 * tui/tui-data.c (init_content_element): Setup new data members.
5770 (init_win_info): Likewise.
5771 (free_content_elements): Free it.
5772 * tui/tui-data.h (struct tui_data_element): Store the register
5773 content to print.
5774 (struct tui_data_info): Keep the current register group.
5775
5776 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
5777
5778 * tui/tui-regs.h (tui_show_registers): Update prototype.
5779 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
5780 (tui_resize_all): No need to calculate anything for register window.
5781 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
5782 (tui_set_register_element, tui_set_general_regs_content): Remove.
5783 (tui_set_special_regs_content): Remove.
5784 (tui_set_general_and_special_regs_content): Remove.
5785 (tui_set_float_regs_content): Remove.
5786 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
5787 (tui_set_regs_content): Remove.
5788 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
5789 (tui_v_show_registers_command_support): Remove.
5790 (tui_show_registers): Use a reggroup to specify the registers to show.
5791 (tui_show_register_group): New function.
5792 (tui_display_registers_from): Compute the layout of register window
5793 and refresh with new API; be sure to delete old register windows.
5794 (tui_check_register_values): Update to use tui_get_register and
5795 tui_display_data.
5796 (tui_display_register): Just refresh the register window part.
5797 (tui_register_format): Format registers and save in tui_data_element.
5798 (tui_get_register): New to combine tui_reg_value_has_changed and
5799 tui_get_register_raw_value; fix to use the new gdb API.
5800 (tui_show_float_command): Renamed tui_reg_float_command.
5801 (tui_show_general_command): Renamed tui_reg_general_command.
5802 (tui_show_special_command): Renamed tui_reg_system_command.
5803 (_initialize_tui_regs): Remove unused commands.
5804
c3364ea4
MK
58052004-03-13 Mark Kettenis <kettenis@gnu.org>
5806
27d1e716
MK
5807 * NEWS (New native configurations): Mention OpenBSD/amd64.
5808
c3364ea4
MK
5809 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
5810 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
5811 Remove defines.
5812 * config/i386/nm-fbsd64.h: Likewise.
5813 * config/i386/nm-obsd.h: Likewise.
5814 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
5815 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
5816
b2d6d697
KB
58172004-03-12 Kevin Buettner <kevinb@redhat.com>
5818
5819 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
5820 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
5821 New constants.
5822
76e43199
KB
5823 From Richard Sandiford <rsandifo@redhat.com>:
5824 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
5825
34ce532e
KB
58262004-03-12 Kevin Buettner <kevinb@redhat.com>
5827
5828 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
5829 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
5830 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
5831 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
5832 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
5833 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
5834 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
5835 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
5836 definitions from frv-tdep.c to frv-tdep.h.
5837
c4d10515
KB
58382004-03-12 Kevin Buettner <kevinb@redhat.com>
5839
5840 Add shared library support for FR-V FDPIC ABI:
5841 * Makefile.in (solib-frv.o): Add dependencies.
5842 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
5843 New functions.
5844 (frv_push_dummy_call): Add support for FDPIC ABI.
5845 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
5846 for FDPIC ABI.
5847 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
5848 (frv_fdpic_find_canonical_descriptor): Declare.
5849 * solib-frv.c: New file.
5850 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
5851 * config/frv/tm-frv.h (solib.h): Include.
5852
ed1bd989
KB
58532004-03-12 Kevin Buettner <kevinb@redhat.com>
5854
5855 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
5856 (frv-tdep.o): Update dependencies.
5857 * frv-tdep.h: New file.
5858 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
5859 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
5860 constants.
5861 (struct gdbarch_tdep): Add new member ``frv_abi''.
5862 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
5863 functions.
5864 (new_variant): Set ``frv_abi'' field.
5865 (gdb_arch_init): Detect FDPIC executables.
5866
82b38f72
MK
58672004-03-12 Mark Kettenis <kettenis@gnu.org>
5868
5869 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
5870 wrapper.
5871
db1ea9ba
AC
58722004-03-11 Andrew Cagney <cagney@redhat.com>
5873
5874 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
5875
f8766ec1
KB
58762004-03-11 Kevin Buettner <kevinb@redhat.com>
5877
5878 * solist.h (master_so_list): New function.
5879 * solib.c (master_so_list): Likewise.
5880 * solib-svr4.c (enable_break): Iterate over so_list entries
5881 obtained from master list instead of entries obtained directly
5882 via svr4_current_sos().
5883
523f6a27
BE
58842004-03-10 Ben Elliston <bje@gnu.org>
5885
5886 * MAINTAINERS: Update my mail address.
5887
37814c18
KI
58882004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
5889
5890 * remote-m32r-sdi.c: Support hardware watchpoint.
5891
8b9740d8
DJ
58922004-03-09 Daniel Jacobowitz <drow@mvista.com>
5893
5894 * user-regs.c: Update copyright years.
5895 (struct user_regs): Rename to gdb_user_regs.
5896 (append_user_reg, builtin_user_regs, user_regs_init)
5897 (user_reg_add, user_reg_map_name_to_regnum)
5898 (usernum_to_user_reg): Update.
5899
4bb7a0a7
DJ
59002004-03-09 Daniel Jacobowitz <drow@mvista.com>
5901
5902 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
5903 (skip_children): New functions.
5904 (locate_pdi_sibling): Call skip_children.
5905
44e1a9eb
DJ
59062004-03-09 Daniel Jacobowitz <drow@mvista.com>
5907
5908 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
5909 * gdbtypes.c (check_typedef): Update comments.
5910
f3dd6933
DJ
59112004-03-09 Daniel Jacobowitz <drow@mvista.com>
5912
5913 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
5914 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
5915 pointer. Update comment about comp_unit_head.
5916 (struct abbrev_info): Shorten two int flags.
5917 (dwarf_alloc_abbrev): Take a CU argument.
5918 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
5919 each time through the loop. Update cleanup argument.
5920 (psymtab_to_symtab_1): Update cleanup call.
5921 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
5922 abbrev_obstack.
5923 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
5924 Just call obstack_free and clear the pointer.
5925
b40c7d58
DJ
59262004-03-09 Daniel Jacobowitz <drow@mvista.com>
5927
5928 * infrun.c (handle_inferior_event): Remove short-circuit code for
5929 events in a different thread.
5930
333dabeb
DJ
59312004-03-09 Daniel Jacobowitz <drow@mvista.com>
5932
5933 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
5934 print the whole transfer.
5935 (initialize_targets): Update description of "set debug target".
5936
aa17d93e
DJ
59372004-03-09 Daniel Jacobowitz <drow@mvista.com>
5938
5939 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
5940
0b71f08f
NW
59412004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
5942
5943 * MAINTAINERS (write after approval): Add myself.
5944
3930f270
CV
59452004-03-08 Corinna Vinschen <vinschen@redhat.com>
5946
5947 * sh-tdep.c (sh_print_registers_info): Use for loop.
5948 Don't skip multiple registers when a float register is encountered.
5949
a2b4a96c
CV
59502004-03-08 Corinna Vinschen <vinschen@redhat.com>
5951
5952 Fix PR tdep/1291.
5953 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
5954 to official SH documentation.
5955
f15a4bc0
AC
59562004-03-07 Andrew Cagney <cagney@redhat.com>
5957
5958 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
5959 unused function.
5960
9498281f
DJ
59612004-03-07 Daniel Jacobowitz <drow@mvista.com>
5962
5963 * arm-tdep.c (thumb_get_next_pc): Handle BX.
5964 (arm_get_next_pc): Handle BX and BLX.
5965
449e1137
AC
59662004-03-07 Andrew Cagney <cagney@redhat.com>
5967
eded0a31
AC
5968 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
5969 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
5970 HPPA_SP_REGNUM.
5971 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
5972 (hppa_target_read_fp): Delete.
5973 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
5974 register_virtual_size, max_register_raw_size,
5975 max_register_virtual_size, register_byte, register_size,
5976 target_read_fp, fp_regnum, and register_bytes. Set register_type
5977 instead of register_virtual_type.
5978 (hppa32_register_type, hppa64_register_type): Replace
5979 hppa32_register_virtual_type and hppa64_register_virtual_type.
5980 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
5981 (HPPA_FP_REGNUM): Define.
5982
f5f907e2
AC
5983 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
5984
69b4bbe4
AC
5985 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
5986 (pa_do_registers_info): Delete.
5987 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 5988 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 5989 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 5990
78161e48
AC
5991 * infcall.c (legacy_push_dummy_code): Delete #ifdef
5992 GDB_TARGET_IS_HPPA code.
5993 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 5994 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
5995 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
5996 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
5997 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
5998 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
5999 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 6000 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
6001 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
6002 (hppa_frameless_function_invocation, hppa64_store_return_value)
6003 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 6004 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 6005 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 6006 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
6007 (find_proc_framesize, deposit_21, restore_pc_queue)
6008 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 6009 (rp_saved, pc_in_linker_stub): Delete.
78161e48 6010
782eae8b
AC
6011 Unconditionally enable 64-bit frame and ABI code.
6012 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
6013 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
6014 push_dummy_frame, fix_call_dummy, push_arguments,
6015 call_dummy_location, extract_return_value, use_struct_convention,
6016 store_return_value, store_struct_return, saved_pc_after_call,
6017 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
6018 frame_chain, frame_chain_valid, frameless_function_invocation,
6019 frame_saved_pc, and pop_frame.
78161e48 6020
449e1137
AC
6021 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
6022 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
6023 (hppa_gdbarch_init): Do not set PC_REGNUM.
6024
12507572
MK
60252004-03-06 Mark Kettenis <kettenis@gnu.org>
6026
6027 * config/alpha/tm-fbsd.h: Remove file.
6028 * config/alpha/fbsd.mt: Tweak comment.
6029 (TM_FILE): Set to tm-alpha.h.
6030
c107cc1b
AC
60312004-03-05 Andrew Cagney <cagney@redhat.com>
6032
6033 * infrun.c (step_over_function): When non-legacy code, and no
6034 step_frame_id, use the unwinder to get the caller's frame ID.
6035
f2e7c15d
MK
60362004-03-05 Mark Kettenis <kettenis@gnu.org>
6037
8b0c3633
MK
6038 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
6039 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
6040 bfd_arch_unknown. Adjust comment.
6041
f2e7c15d
MK
6042 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
6043 * i386obsd-tdep.c: Correct spelling in comment.
6044 * i386nbsd-tdep.c: Correct spelling in comment.
6045 * sparc-tdep.c: Correct spelling in comments.
6046
1198ecbe
DC
60472004-03-05 David Carlton <carlton@kealia.com>
6048
6049 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
6050 bug.
6051
9eb42ed1
MK
60522004-03-05 Mark Kettenis <kettenis@gnu.org>
6053
6054 * sparc-tdep.c: Fix typo in comment.
6055
52b5e991
JB
60562004-03-04 J. Brobecker <brobecker@gnat.com>
6057
6058 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
6059
d8151005
DJ
60602004-03-04 Daniel Jacobowitz <drow@mvista.com>
6061
6062 * dwarf2read.c: Add comment describing memory lifetimes.
6063 (struct dwarf2_pinfo): Update comment.
6064 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
6065 (read_enumeration, new_symbol): Don't use obsavestring.
6066
cbeae229
MK
60672004-03-04 Mark Kettenis <kettenis@gnu.org>
6068
722d18c2
MK
6069 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
6070 instead of amd64_fill_fxsave.
6071 * amd64bsd-nat.c (store_inferior_registers): Likewise.
6072 * amd64fbsd-nat.c (fill_fpregset): Likewise.
6073
cbeae229
MK
6074 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
6075 Reorganize code a bit.
6076
b4206d25
OF
60772004-03-04 Orjan Friberg <orjanf@axis.com>
6078
6079 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
6080 when the frame pointer is pushed. Don't set the frame pointer's
6081 address on the stack unless it's actually located there.
b4206d25
OF
6082 Set the SRP's address on the stack correctly when the PC is still in
6083 the prologue.
6084 (cris_return_value): New function.
6085 (cris_gdbarch_init): Clear deprecated store_return_value,
6086 extract_return_value.
6087
49b0b195
JB
60882004-03-02 Jim Blandy <jimb@redhat.com>
6089
6090 * stabsread.c (reg_value_complaint): The maximum register number
6091 is one less than the number of registers.
6092
e9ff708b
AC
60932004-03-02 Andrew Cagney <cagney@redhat.com>
6094
6095 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
6096 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
6097 trailing comma and redundant assignment of I386_ST0_REGNUM.
6098 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
6099 32-bit segment registers.
6100
d4715e41
AC
61012004-03-01 Andrew Cagney <cagney@redhat.com>
6102
6103 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
6104 use frame_relative_level and get_next_frame.
6105
3ce2bf18
AC
61062004-02-29 Andrew Cagney <cagney@redhat.com>
6107
6108 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
6109 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
6110 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
6111 Delete macro.
6112
2da6aac3
DJ
61132004-02-29 Daniel Jacobowitz <drow@mvista.com>
6114
6115 * inflow.c (terminal_inferior): Don't give up the terminal if we
6116 previously couldn't get the inferior's terminal state.
6117
6ba34a8d
DJ
61182004-02-29 Daniel Jacobowitz <drow@mvista.com>
6119
6120 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
6121 PC_REGNUM.
6122
faae5abe
AC
61232004-02-28 Andrew Cagney <cagney@redhat.com>
6124
6125 * NEWS: Refer to GDB 6.1.
6126 * README: Refer to GDB 6.1.
6127 * PROBLEMS: Refer to GDB 6.1.
6128
2227a3c5
DJ
61292004-02-28 Daniel Jacobowitz <drow@mvista.com>
6130
6131 * thread-db.c (disable_thread_signals): Remove unused function.
6132
80571bff
MK
61332004-02-28 Mark Kettenis <kettenis@gnu.org>
6134
041bd74b
MK
6135 * amd64-nat.c: Include "gdb_string.h".
6136 (amd64_collect_native_gregset): Zero-extend the 32-bit
6137 general-purpose registers and %eip.
6138
3c017e40
MK
6139 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
6140 * amd64-tdep.c (amd64_collect_fxsave): New function.
6141 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
6142
80571bff
MK
6143 * i387-tdep.h: Update copyright year.
6144 (i387_collect_fxsave): New prototype.
6145 * i387-tdep.c: Update copyright year.
6146 (i387_collect_fxsave): New function containing most of the code
6147 from i387_fill_fxsave.
6148 (i387_fill_fxsave): Call i387_collect_fxsave.
6149
50d71875
AC
61502004-02-28 Andrew Cagney <cagney@redhat.com>
6151
6152 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
6153 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
6154
4a28816e
MK
61552004-02-28 Mark Kettenis <kettenis@gnu.org>
6156
6157 * amd64-tdep.c (amd64_frame_cache): Fix comment.
6158
dbda9972
AC
61592004-02-28 Andrew Cagney <cagney@redhat.com>
6160
6161 * utils.c: Use "", instead of <>, to include readline.
6162 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
6163 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
6164 * source.c, solib.c, exec.c, event-top.c: Ditto.
6165 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
6166 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
6167 * Makefile.in: Update all dependencies.
6168 (readline_tilde_h, readline_history_h): Define.
6169 (readline_headers): Delete.
6170
83277a99
MK
61712004-02-28 Mark Kettenis <kettenis@gnu.org>
6172
91ae4303
MK
6173 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
6174 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
6175 "config/i386/tm-lx64.h".
6176
83277a99
MK
6177 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
6178 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
6179 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
6180
6e1d7d6c
AC
61812004-02-28 Andrew Cagney <cagney@redhat.com>
6182
ecc9ac84
AC
6183 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
6184
6e1d7d6c
AC
6185 * breakpoint.c (_initialize_breakpoint): Use
6186 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
6187 Add help to show command.
6188
9671aeef
MK
61892004-02-28 Mark Kettenis <kettenis@gnu.org>
6190
7fa2737c
MK
6191 * i386-nat.c: Reformat to be closer to coding standards.
6192 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
6193 `retval'. Make variables `align' and `size' local to while-loop.
6194 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
6195 (_initialize_i386_nat): New prototype.
6196
9671aeef
MK
6197 * tui/tui.c: Include <readline/readline.h> instead of
6198 "readline/readline.h". Include it after <term.h> and
6199 "gdb_curses.h".
6200
fca7aa43
AC
62012004-02-27 Andrew Cagney <cagney@redhat.com>
6202
412275d5
AC
6203 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
6204 the new frame unwind code.
6205 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
6206 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
6207 PCOQ_HEAD_REGNUM.
6208
fca7aa43
AC
6209 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
6210 "return_value" and "push_dummy_call".
6211 (hppa32_use_struct_convention): Delete unused function.
6212 (hppa32_store_return_value): Delete unused function.
6213 (hppa32_extract_return_value): Delete unused function.
6214 (hppa32_stack_align): Delete function.
6215
e6a8a7d2
EZ
62162004-02-27 Eli Zaretskii <eliz@elta.co.il>
6217
6218 * coffread.c (enter_linenos): Don't let rawptr reference memory
6219 outside linetab[]'s limits.
6220
1797a8f6
AC
62212004-02-27 Andrew Cagney <cagney@redhat.com>
6222
6223 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
6224 inferior stack space - the stack needs to grow upwards.
6225 (hppa32_frame_align): New function.
6226 (hppa64_frame_align): Replace hppa_frame_align.
6227 (hppa_gdbarch_init): Update.
6228
2e4b5889
OF
62292004-02-26 Orjan Friberg <orjanf@axis.com>
6230
6231 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
6232 (dwarf2-frame.h): Include.
6233 (enum cris_regnums): New enum CRIS_FP_REGNUM.
6234 Remove static variables related to ABI setting.
6235 (struct gdbarch_tdep): Remove cris_abi member.
6236 (struct frame_extra_info): Remove.
6237 (cris_unwind_cache, stack_item): New structs.
6238 (cris_frame_unwind, cris_frame_base): New variables.
6239 (push_stack_item, pop_stack_item)
6240 (cris_frame_unwind_cache, cris_frame_this_id)
6241 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
6242 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
6243 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
6244 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
6245 (cris_reg_struct_has_addr): New functions.
6246 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 6247 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
6248 (cris_store_struct_return, cris_frameless_function_invocation)
6249 (cris_pop_frame, cris_skip_prologue_main)
6250 (cris_abi_original_store_return_value)
6251 (cris_abi_v2_store_return_value)
6252 (cris_abi_original_extract_return_value)
6253 (cris_abi_v2_extract_return_value)
6254 (cris_abi_original_reg_struct_has_addr)
6255 (cris_abi_v2_reg_struct_has_addr)
6256 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
6257 (cris_push_return_address, cris_abi_update): Remove.
6258 (_initialize_cris_tdep): Remove ABI command.
6259 (cris_dump_tdep): Ditto.
8718a420 6260 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
6261 Set store_return_value, extract_return_value, push_dummy_code,
6262 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
6263 frame_unwind_append_sniffer, frame_base_set_default.
6264 Clear deprecated init_frame_pc, push_arguments, store_return_value,
6265 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
6266 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 6267 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
6268 init_extra_frame_info, frameless_function_invocation, frame_chain,
6269 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
6270 dummy_write_sp.
8718a420 6271
6b9acc27
JJ
62722004-02-26 Jeff Johnston <jjohnstn@redhat.com>
6273
6274 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
6275 * valprint.c (print_hex_chars): Change from static to external.
6276 (print_char_chars): New function.
6277 * printcmd.c (print_scalar_formatted): For integer and enum types
6278 that are longer than LONGEST, perform processing via appropriate
6279 print_*_chars routines.
6280
a431654a
AC
62812004-02-26 Andrew Cagney <cagney@redhat.com>
6282
6283 * Makefile.in: Update dependencies.
6284 Changes from Ulrich Weigand,
6285 * s390-tdep.c: Include "dwarf2-frame.h".
6286 (s390_dwarf2_frame_init_reg): New function.
6287 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
6288 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
6289
fa8d40ab
JJ
62902004-02-26 Jeff Johnston <jjohnstn@redhat.com>
6291
6292 * breakpoint.c (pending_break_support): New setting variable.
6293 (break_command_1): Account for pending_break_support setting
6294 when creating pending breakpoints.
6295 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
6296 (_initialize_breakpoint): Add "set breakpoint pending" and
6297 "show breakpoint pending" commands.
6298
0dcd613f
AC
62992004-02-26 Andrew Cagney <cagney@redhat.com>
6300
6301 Fix PR i18n/1570.
6302 * charset.c (backslashable, backslashed, represented): Remove 'e'
6303 from list of escaped characters, not part of ISO-C.
6304
479272a3
JB
63052004-02-25 J. Brobecker <brobecker@gnat.com>
6306
6307 From Peter Schauer <schauer@pdf.de>:
6308 * tui/tui.c: Move system header includes after local includes.
6309 Fixes a build failure on solaris systems.
6310
7613d933
JB
63112004-02-25 J. Brobecker <brobecker@gnat.com>
6312
6313 * configure.in: Refine the previous change.
6314 * configure: Regenerate.
6315
9c1488cb
MK
63162004-02-25 Mark Kettenis <kettenis@gnu.org>
6317
6318 * amd64-tdep.h: Renamed from x86-64-tdep.h.
6319 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
6320 "amd64-tdep.h" instead of "x86-64-tdep.h".
6321 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
6322 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
6323 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
6324 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
6325 and "x86-64-tdep.c".
6326 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
6327 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
6328 and "x86-64-tdep.c".
6329 * amd64bsd-nat.c: Update copyright year.
6330 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
6331 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
6332 "x86-64-tdep.h".
6333 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
6334 "x86-64-tdep.h".
6335 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
6336 "x86-64-tdep.h".
6337 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
6338 "x86-64-tdep.h".
6339 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
6340 "x86-64-tdep.h".
6341 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
6342 "x86-64-tdep.h".
8718a420 6343 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
6344 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
6345 * Makefile.in (amd64_linux_tdep_h): Renamed from
6346 x86_64_linux_tdep_h.
6347 (amd64_tdep_h): Renamed from x86_64_tdep_h.
6348 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
6349 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
6350 (amd64obsd-tdep.o): Update dependencies.
6351 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
6352 dependencies.
6353 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
6354 dependencies.
6355 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
6356 amd64-linux-nat.c amd64-linux-tdep.c.
6357 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
6358 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
6359 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
6360 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
6361 amd64-tdep.o and amd64-linux-tdep.o.
6362 (TM_FILE): Set to tm-linux64.h.
6363 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
6364 (NAT_FILE): Set to nm-linux64.h.
6365 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
6366 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6367 amd64-tdep.o.
6368 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6369 amd64-tdep.o.
6370 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6371 amd64-tdep.o.
6372
4b8dad4a
RM
63732004-02-25 Roland McGrath <roland@redhat.com>
6374
6375 * remote.c (remote_protocol_qPart_auxv): New variable.
6376 (init_all_packet_configs): Initialize it.
6377 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
6378 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
6379 (show_remote_cmd): Call it.
6380 (_initialize_remote): Initialize commands.
6381 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
6382 service TARGET_OBJECT_AUXV requests.
6383
66745969
JB
63842004-02-25 J. Brobecker <brobecker@gnat.com>
6385
6386 * configure.in: Make sure that the wborder function is available.
6387 Otherwise, search for it in the cur_colr library.
6388 * configure: Regenerate.
6389
79508e1e
AC
63902004-02-25 Andrew Cagney <cagney@redhat.com>
6391
6392 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
6393
571ee600
MK
63942004-02-25 Mark Kettenis <kettenis@gnu.org>
6395
6396 * config/i386/tm-x86-64linux.h: Tweak comments.
6397
2b1b322f 63982004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
6399
6400 * MAINTAINERS: Add self to write-after-approval list.
6401
4d2acc65
AC
64022004-02-25 Andrew Cagney <cagney@redhat.com>
6403
4b8dad4a 6404 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
6405 * cli/cli-script.c (execute_control_command): Unconditionally
6406 install a cleanup. Default "ret" to "invalid_control". Use
6407 "break" instead of "return" to escape from the switch.
6408
4cfcaf21
JB
64092004-02-24 J. Brobecker <brobecker@gnat.com>
6410
6411 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
6412 with the lines macro defined in term.h on AiX.
6413 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
6414 a collision with the label_width macro defined in term.h on AiX.
6415
54a5c8d8
KB
64162004-02-23 David Mosberger <davidm@hpl.hp.com>
6417
6418 Committed by Kevin Buettner <kevinb@redhat.com>.
6419
6420 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
6421 * ia64-tdep.c (ia64_write_pc): Make it a global function.
6422 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
6423 instead of ia64_write_pc().
6424 * ia64-linux-tdep.c (regcache.h): Include.
6425 (ia64_linux_write_pc): New function.
4b8dad4a 6426
8a1dac83
RM
64272004-02-23 Roland McGrath <roland@redhat.com>
6428
6429 * auxv.c (info_auxv_command): Fix typos in error messages.
6430
90f90721
MK
64312004-02-23 Mark Kettenis <kettenis@gnu.org>
6432
8a1dac83 6433 * x86-64-tdep.h: Tweak comment.
90f90721
MK
6434 (enum amd64_regnum): New.
6435 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
6436 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
6437 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
6438 (X86_64_XMM1_REGNUM): Removed.
6439 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
6440 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
6441 prototypes for renamed functions.
6442 * x86-64-tdep.c: Fix typo.
6443 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
6444 register numbers.
6445 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
6446 Use constants from `enum amd64_regnum' for register numbers.
6447 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
6448 (amd64_analyze_prologue, amd64_frame_cache,
6449 amd64_sigtramp_frame_cache): Use constants from `enum
6450 amd64_regnum' for register numbers.
6451 (amd64_supply_fpregset): Adjust for renamed functions.
6452 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
6453 `enum amd64_regnum' for register numbers.
6454 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
6455 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
6456 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
6457 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
6458 (amd64_linux_fill_gregset): Adjust for renamed macros.
6459 (fetch_core_registers): Adjust for renamed functions.
6460 (amd64_linux_init_abi): Adjust for renamed functions.
6461 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
6462 renamed functions.
6463 * amd64-nat.c: Adjust for renamed macros.
6464 * amd64bsd-nat.c (fetch_inferior_registers)
6465 (store_inferior_registers): Use constants from `enum amd64_regnum'
6466 for register numbers. Adjust for renamed variables.
6467 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
6468 renamed variables.
6469 (_initialize_amd64fbsd_nat): Use constants from `enum
6470 amd64_regnum' for register numbers.
6471 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
6472 `enum amd64_regnum' for register numbers.
6473 (amd64fbsd_init_abi): Adjust for renamed functions.
6474 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
6475 `enum amd64_regnum' for register numbers.
6476 (amd64nbsd_init_abi): Adjust for renamed functions.
6477 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
6478 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
6479 `enum amd64_regnum' for register numbers.
6480 (amd64obsd_init_abi): Adjust for renamed functions.
6481 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
6482
d5479188
JJ
64832004-02-23 Jeff Johnston <jjohnstn@redhat.com>
6484
6485 * breakpoint.c (print_one_breakpoint): Do not output spaces
6486 after printing <PENDING> for a pending breakpoint.
6487
81cb7cc9
JJ
64882004-02-23 Jeff Johnston <jjohnstn@redhat.com>
6489
6490 * printcmd.c (print_scalar_formatted): Initialize val_long
6491 to remove compiler warning message.
6492
cbdeadca
JJ
64932004-02-23 Jeff Johnston <jjohnstn@redhat.com>
6494
6495 * defs.h (nquery, yquery): New prototypes.
6496 * breakpoint.c (break_command_1): Use new nquery interface.
6497 * utils.c (defaulted_query, nquery, yquery): New functions.
6498
da6bab63
AC
64992004-02-23 Andrew Cagney <cagney@redhat.com>
6500
2f690297
AC
6501 * hppa-tdep.c (hppa_frame_align): New function.
6502 (hppa32_push_dummy_call): New function.
6503 (hppa64_push_dummy_call): New function.
6504 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
6505 disabled.
8a1dac83 6506
da6bab63
AC
6507 * infcall.c (legacy_push_dummy_code): Don't call deprecated
6508 FIX_CALL_DUMMY when push_dummy_call is available.
6509 (call_function_by_hand, push_dummy_code): Ditto.
6510
abf9b42d
AC
65112004-02-22 Andrew Cagney <cagney@redhat.com>
6512
6513 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
6514 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
6515 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
6516 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
6517 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
6518 call_dummy_location to ON_STACK.
6519
10fc94a4
MK
65202004-02-22 Mark Kettenis <kettenis@gnu.org>
6521
51433e4b
MK
6522 * x86-64-linux-tdep.c: Tweak comment.
6523 (amd64_linux_supply_gregset): Renamed from
6524 x86_64_linux_supply_gresget.
6525 (amd64_linux_fill_gregset): Renamed from
6526 x86_64_linux_fill_gregset.
6527 (fetch_core_registers): Adjust for renamed functions.
6528 (amd64_core_fns): Renamed from x86_64_core_fns.
6529 (amd64_linux_sigtramp_start): Renamed from
6530 x86_64_linux_sigtramp_start.
6531 (amd64_linux_pc_in_sigtramp): Renamed from
6532 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
6533 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
6534 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
6535 (amd64_linux_sigcontext_addr): Renamed from
6536 x86_64_linux_sigcontext_addr.
6537 (amd64_linux_sc_reg_offset): Renamed from
6538 x86_64_linux_sc_reg_offset.
6539 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
6540 Adjust for renamed functions and variables.
6541 (_initialize_amd64_linux_tdep): Renamed from
6542 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
6543 variables.
6544 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
6545 Adjust for renamed functions.
6546
430eaf2e
MK
6547 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
6548 from x86_64_linux_gregset64_reg_offset.
6549 (amd64_linux_gregset32_reg_offset): Rename from
6550 x86_64_linux_gregset64_reg_offset.
6551 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
6552 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
6553 (amd64_linux_dr_set_control): Renamed from
6554 x86_64_linux_dr_set_control. Adjust for renamed functions.
6555 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
6556 Adjust for renamed functions.
6557 (amd64_linux_dr_reset_addr): Renamed from
6558 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
6559 (amd64_linux_dr_get_status): Renamed from
6560 x86_64_linux_dr_get_status. Adjust for renamed functions.
6561 (_initialize_amd64_linux_nat): Renamed from
6562 _initialize_x86_64_linux_nat. Adjust for renamed variables and
6563 functions.
6564 * config/i386/nm-x86-64linux.h: Update copyright year.
6565 Adjust for renamed functions.
6566
10fc94a4
MK
6567 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
6568 amd64fbsd_sigtramp_start.
6569 (amd64fbsd_sigtramp_end_addr): Renamed from
6570 amd64fbsd_sigtramp_end.
6571 (amd64fbsd_init_abi): Adjust for renamed variables.
6572 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
6573 variables.
6574 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
6575 amd64fbsd_sigtramp_start.
6576 (amd64fbsd_sigtramp_end_addr): Renamed from
6577 amd64fbsd_sigtramp_end.
6578
343af405
AC
65792004-02-22 Andrew Cagney <cagney@redhat.com>
6580
537987fc
AC
6581 * hppa-tdep.c (hppa32_return_value): New function.
6582 (hppa64_return_value): New function.
6583 (hppa_gdbarch_init): Set return_value; keep disabled.
6584
fad850b2
AC
6585 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
6586 struct-return and inferior function call methods.
6587
26d08f08
AC
6588 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6589 "frame-base.h".
6590 (struct hppa_frame_cache): Define.
6591 (hppa_frame_cache, hppa_frame_this_id): New functions.
6592 (hppa_frame_prev_register): New function.
6593 (hppa_frame_unwind, hppa_frame_base): New variables.
6594 (hppa_frame_unwind_sniffer): New function.
6595 (hppa_frame_base_address, hppa_unwind_pc): New function.
6596 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
6597 sniffer, and frame base sniffer; keep disabled.
6598 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
6599 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
6600
e7d7bd65
AC
6601 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
6602 to predicates for "seriously old code".
6603
e963316f
AC
6604 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
6605 runtime if(0).
6606
56132691
AC
6607 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
6608 unsigned.
6609 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 6610
343af405
AC
6611 * config/pa/tm-hppa.h: Update copyright.
6612 (DEPRECATED_INIT_FRAME_PC): Delete macro.
6613 (deprecated_init_frame_pc_default): Delete declaration.
6614 (hppa_frame_init_saved_regs): Delete declaration.
6615 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6616 * hppa-tdep.c: Include "arch-utils.h".
6617 (hppa_gdbarch_init): Set deprecated init_frame_pc
6618 and deprecated frame_init_saved_regs.
6619 (hppa_frame_init_saved_regs): Make static.
6620
f5859b4d
MK
66212004-02-22 Mark Kettenis <kettenis@gnu.org>
6622
86f6f8e7 6623 Remove old 386BSD support.
cf7c5c23 6624 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
6625 * configure.host: Remove i[34567]86-*-bsd*.
6626 * configure.tgt: Remove i[34567]86-*-bsd*.
6627 * i386b-nat.c: Removed.
6628 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
6629 (i386b-nat.o): Remove dependencies.
6630
86f6f8e7
MK
6631 * config/i386/i386bsd.mh: Removed.
6632 * config/i386/i386bsd.mt: Removed.
6633 * config/i386/nm-i386bsd.h: Removed.
6634 * config/i386/tm-i386bsd.h: Removed.
6635 * config/i386/xm-i386bsd.h: Removed.
6636
971218cd
MK
6637 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
6638
7e654c37
MK
6639 * amd64fbsd-tdep.c: Include "solib-svr4.h".
6640 (amd64fbsd_init_abi): Set link map offsets.
6641 * amd64nbsd-tdep.c: Include "slib-svr4.h".
6642 (amd64nbsd_init_abi): Set link map offsets.
6643 * amd64obsd-tdep.c: Include "solib-svr4.h".
6644 (amd64obsd_init_abi): Set link map offsets.
6645 * i386fbsd-tdep.c: Include "solib-svr4.h".
6646 (i386fbsd_init_abi): Set link map offsets.
6647 * i386nbsd-tdep.c: Include "solib-svr4.h".
6648 (i386nbsdelf_init_abi): Set link map offsets.
6649 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
6650 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
6651 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
6652 solib-legacy.o and core-aout.o. Reformat.
6653 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
6654 solib-svr4.o, solib-legacy.o. Reformat.
6655 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
6656 * config/i386/nbsdelf.mh: Reformat.
6657 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
6658 solib-svr4.o, solib-legacy.o and corelow.o.
6659 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
6660 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
6661 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
6662 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
6663 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
6664 (TM_FILE): Set to tm-fbsd.h.
6665 * config/i386/nbsd.mt (TDEPFILES): Reformat.
6666 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
6667 solib-svr4.o.
6668 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
6669 solib-svr4.o.
6670 (TM_FILE): Set to nm-nbsd.h.
6671 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
6672 Simplify shared library support. Don't include "elf/common.h".
6673 (SVR4_SHARED_LIBS): Don't define.
6674 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
6675 "solib.h".
6676 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
6677 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
6678 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
6679 Don't include "i386/tm-i386.h". Include "solib.h".
6680 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
6681 Don't include "i386/tm-i386.h".
6682 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
6683 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
6684 Include "i386/xm-i386.h".
6685 (HOST_LONG_DOUBLE_FORMAT): Remove.
6686
5d93ae8c
MK
6687 Fix OpenBSD/i386 sigtramp recognition.
6688 * i386-tdep.h: Update copyright year.
6689 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
6690 (i386bsd_sigtramp_end): New prototypes.
6691 (i386fbsd_sigtramp_start_addr): Renamed from
6692 i386fbsd_sigtramp_start.
6693 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
6694 (i386obsd_sigtramp_start_addr): Renamed from
6695 i386obsd_sigtramp_start.
6696 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
6697 * i386bsd-tdep.c: Update copyright year.
6698 (i386bsd_pc_in_sigtramp): Make public.
6699 * i386fbsd-nat.c: Update copyright year.
6700 (_initialize_i386fbsd_nat): Adjust for renamed variables.
6701 * i386fbsd-tdep.c: Update copyright year.
6702 (i386fbsd_sigtramp_start_addr): Renamed from
6703 i386fbsd_sigtramp_start.
6704 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
6705 (i386fbsdaout_init_abi): Adjust for renamed variables.
6706 * i386obsd-nat.c: Update copyright year.
6707 (_initialize_i386obsd_nat): Adjust for renamed variables.
6708 * i386obsd-tdep.c: Include "target.h".
6709 (i386obsd_page_size): New variable.
6710 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
6711 (i386obsd_sigtramp_end): New functions.
6712 (i386obsd_sigtramp_start_addr): Renamed from
6713 i386obsd_sigtramp_start.
6714 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
6715 (i386obsd_init_abi): Adjust for renamed variables. Set
6716 pc_in_sigtramp, sigtramp_start and sigtramp_end.
6717 * Makefile.in (i386obsd-tdep.o): Update dependencies.
6718
84d04465
MK
6719 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
6720 trampoline change in OpenBSD kernel.
6721
b053aceb
MK
6722 * amd64-nat.c: Update copyright year.
6723 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
6724 architecture from REGCACHE.
6725
f5859b4d
MK
6726 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
6727 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
6728
e4bbbda8
MK
67292004-02-21 Mark Kettenis <kettenis@gnu.org>
6730
ba361932
MK
6731 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
6732 i[34567]86-*-openbsd3.[0-3].
6733 * config/i386/obsdaout.mh: New file.
6734
d3e48264
MK
6735 * config/i386/obsd.mh (MH_FLAGS): Remove.
6736
60a6eeb6
MK
6737 Fix PR build/1549.
6738 * i386obsd-tdep.c: Update copyright years. Include
6739 "solib-svr4.h".
6740 (i386obsd_init_abi): Don't set regset_from_core_section here.
6741 (i386obsd_aout_init_abi): New function. Set
6742 regset_from_core_section here.
6743 (i386obsd_elf_init_abi): New function.
6744 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
6745 * Makefile.in (i386obsd-tdep.o): Update dependecies.
6746 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6747 (TM_FILE): Set to tm-nbsd.h.
6748
6749 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
6750 solib-sunos.o.
6751
e4bbbda8
MK
6752 * solib-svr4.h: Update copyright year.
6753 (svr4_ilp32_fetch_link_map_offsets)
6754 (svr4_lp64_fetch_link_map_offsets): New prototype.
6755 * solib-svr4.c: Update copyright year.
6756 (svr4_ilp32_fetch_link_map_offsets)
6757 (svr4_lp64_fetch_link_map_offsets): New function.
6758
f6fe98ef
DJ
67592004-02-20 Daniel Jacobowitz <drow@mvista.com>
6760
6761 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
6762 to the partial symbol table.
6763
589ca796
JB
67642004-02-20 J. brobecker <brobecker@gnat.com>
6765
6766 * PROBLEMS: Add description of problem documented under gdb/1560.
6767
2031c21a
MK
67682004-02-20 Mark Kettenis <kettenis@gnu.org>
6769
30b344b1
MK
6770 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
6771 comments.
6772 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
6773 functions.
6774 (amd64obsd_init_abi): Reorder initializations. Use
6775 amd64obsd_r_reg_offset to initialize the general-purpose register
6776 set details. Set regset_from_core_section.
6777 (_initialize_amd64obsd_tdep): Rename from
6778 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
6779 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
6780 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
6781
2031c21a
MK
6782 * NEWS (New native configurations): Mention OpenBSD/alpha.
6783 * configure.tgt: Add alpha*-*-openbsd*.
6784 * configure.host: Add alpha*-*-openbsd*.
6785 * alphanbsd-tdep.c: Update copyright year.
6786 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
6787
42471775
AC
67882004-02-20 Andrew Cagney <cagney@redhat.com>
6789
6790 Fix PR tdep/1372.
6791 * configure.tgt: Delete target "none-*-*".
6792 * configure.host: Delete host "none-*-*".
6793 * config/none/none.mh: Delete file.
6794 * config/none/none.mt: Delete file.
6795 * config/none/xm-none.h: Delete file.
6796 * config/none/tm-none.h: Delete file.
6797 * config/none/nm-none.h: Delete file.
6798
960ccd7d
FF
67992004-02-19 Fred Fish <fnf@redhat.com>
6800
6801 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
6802 cache->uses_fp prior to setting it.
6803
5f883edd
FF
68042004-02-19 Fred Fish <fnf@redhat.com>
6805
6806 Fix for PR breakpoint/1558.
6807 * sh-tdep.c (IS_JSR): New macro.
6808 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
6809
f98c22d5
JB
68102004-02-19 Jim Blandy <jimb@redhat.com>
6811
6812 * findvar.c (value_from_register): Doc fix.
6813
95051d27
JJ
68142004-02-19 Jeff Johnston <jjohnstn@redhat.com>
6815
6816 * printcmd.c (print_scalar_formatted): Do not check for sizeof
6817 type being greater than sizeof of host's LONGEST. Always use
6818 unpack_long() unless format 'f' chosen.
6819
ccefbec3
EZ
68202004-02-19 Joel Brobecker <brobecker@gnat.com>
6821
6822 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 6823
ccefbec3
EZ
6824 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
6825 contains a symbol wich is the best, non-exact match for the given
6826 pc. Update comments.
6827
68282004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 6829
2ede629f
EZ
6830 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
6831 macro, which was part of the now removed Mach 3 port.
6832 * utils.c (request_quit): Ditto.
6833
567ee972
MK
68342004-02-18 Mark Kettenis <kettenis@gnu.org>
6835
6836 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
6837 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
6838
50cca7bb
MK
68392004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6840
6841 Committed by Mark Kettenis <kettenis@gnu.org>.
6842
6843 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
6844 Define.
6845
226361c4
AC
68462004-02-18 Andrew Cagney <cagney@redhat.com>
6847
6848 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
6849 CONFIG_INSTALL and CONFIG_UNINSTALL.
6850 * configure: Re-generate.
6851 * interps.h (INTERP_TUI): Define.
6852 * Makefile.in: Update dependencies.
6853 (TUI): New macro.
6854 (tui-main.o): Specify dependencies.
6855 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
6856 * tui/tui-main.c: New file.
6857
49cfa46f
MK
68582004-02-18 Mark Kettenis <kettenis@gnu.org>
6859
e2879ccb
MK
6860 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
6861 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
6862 dependencies.
6863 * configure.host: Add x86_64-*-openbsd*.
6864 * configure.tgt: Add x86_64-*-openbsd*.
6865 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
6866
c43f4bec
MK
6867 * tui/tui.c: Don't include <malloc.h>.
6868
09ae75b6
MK
6869 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
6870 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
6871 amd64nbsd-tdep.c.
6872
49cfa46f 6873 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 6874 static. Remove extraneous whitespace.
49cfa46f
MK
6875 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
6876 static.
6877
05957fdb
JB
68782004-02-17 Jim Blandy <jimb@redhat.com>
6879
6880 * findvar.c (value_from_register): Doc fix.
6881
d0f54f9d
JB
68822004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6883
6884 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 6885
8a1dac83 6886 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
6887 CORE_ADDR as type for selectors. Correct types for GNU run time
6888 message lookup function to use double indirection.
6889 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
6890 * objc-lang.h (lookup_child_selector): Adapt prototype.
6891
9cbd5950
JB
6892 * s390-nat.c (SUBOFF): New macro.
6893 (supply_gregset, fill_gregset): Use it to handle debugging
6894 of 32-bit exectuables running under a 64-bit kernel.
6895 * s390-tdep.c: Include "solib-svr4.h".
6896 (s390_svr4_fetch_link_map_offset): New function.
6897 (s390x_svr_fetch_link_map_offset): Likewise.
6898 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
6899 * Makefile.in (s390-tdep.o): Update dependencies.
6900
a8c99f38
JB
6901 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
6902 "frame-unwind.h".
6903 (s390_readinstruction): Reformat. Use read_memory_nobpt.
6904 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
6905 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
6906 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
6907 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
6908 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 6909 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
6910 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
6911 (struct frame_extra_info): Remove.
6912 (s390_memset_extra_info): Remove.
f73b1eff
JB
6913 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
6914 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
6915 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
6916 (is_rse): Renamed to ...
6917 (is_rsy): ... this. Support long displacements.
6918 (is_rxe): Renamed to ...
6919 (is_rxy): ... this. Support long displacements.
6920 (compute_x_addr): Support long displacements.
6921 (struct s390_prologue_data): New data type.
6922 (s390_on_stack): Change API to use struct s390_prologue_data.
6923 (s390_store): Reimplement.
6924 (s390_load): New function.
6925 (s390_get_signal_frame_info): Remove.
6926 (s390_get_frame_info): Remove, replace by ...
6927 (s390_analyze_prolog): ... this new function.
6928 (s390_check_function_end): Remove.
6929 (s390_function_start): Remove.
6930 (s390_frameless_function_invokation): Remove.
6931 (s390_is_sigreturn): Remove.
6932 (s390_init_frame_pc_first): Remove.
6933 (s390_init_frame_extra_info): Remove.
6934 (s390_frame_init_saved_regs): Remove.
6935 (s390_frame_saved_pc_nofix): Remove.
6936 (s390_frame_saved_pc): Remove.
6937 (s390_frame_chain): Remove.
6938 (s390_fp_regnum, s390_read_fp): Remove.
6939 (s390_pop_frame_regular, s390_pop_frame): Remove.
6940 (s390_saved_pc_after_call): Remove.
6941 (s390_skip_prologue): Reimplement.
6942 (s390_in_function_epilogue_p): Support long displacements.
6943 (struct s390_unwind_cache): New data structure.
6944 (s390_frame_unwind_cache): New function.
6945 (s390_prologue_frame_unwind_cache): Likewise.
6946 (s390_backchain_frame_unwind_cache): Likewise.
6947 (s390_frame_this_id, s390_frame_prev_register): Likewise.
6948 (s390_frame_unwind): Define.
6949 (s390_frame_sniffer): New function.
6950 (struct s390_pltstub_unwind_cache): New data structure.
6951 (s390_pltstub_frame_unwind_cache): New function.
6952 (s390_pltstub_frame_this_id): Likewise.
6953 (s390_pltstub_frame_prev_register): Likewise.
6954 (s390_pltstub_frame_unwind): Define.
6955 (s390_pltstub_frame_sniffer): New function.
6956 (struct s390_sigtramp_unwind_cache): New data structure.
6957 (s390_sigtramp_frame_unwind_cache): New function.
6958 (s390_sigtramp_frame_this_id): Likewise.
6959 (s390_sigtramp_frame_prev_register): Likewise.
6960 (s390_sigtramp_frame_unwind): Define.
6961 (s390_sigtramp_frame_sniffer): New function.
6962 (s390_frame_base_address, s390_local_base_address): New functions.
6963 (s390_frame_base): Define.
6964 (s390_unwind_pc, s390_unwind_sp): New function.
6965 (s390_push_dummy_call): Use new frame base location.
6966 (s390_unwind_dummy_id): Likewise.
6967 (s390_gdbarch_init): Remove calls to:
6968 set_gdbarch_frameless_function_invocation,
6969 set_gdbarch_deprecated_init_frame_pc,
6970 set_gdbarch_deprecated_frame_chain,
6971 set_gdbarch_deprecated_frame_init_saved_regs,
6972 set_gdbarch_deprecated_pop_frame,
6973 set_gdbarch_deprecated_init_extra_frame_info,
6974 set_gdbarch_deprecated_init_frame_pc_first,
6975 set_gdbarch_deprecated_target_read_fp,
6976 set_gdbarch_deprecated_frame_saved_pc,
6977 set_gdbarch_deprecated_saved_pc_after_call,
6978 set_gdbarch_deprecated_fp_regnum.
6979 Add calls to:
6980 set_gdbarch_in_solib_call_trampoline,
6981 frame_unwind_append_sniffer,
6982 frame_base_set_default,
6983 set_gdbarch_unwind_pc,
6984 set_gdbarch_unwind_sp.
6985 * Makefile.in (s390-tdep.o): Update dependencies.
6986
b0cf273e
JB
6987 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
6988 (S390_STACK_FRAME_OVERHEAD): Remove.
6989 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
6990 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
6991 (s390_promote_integer_argument): Remove.
6992 (s390_cannot_extract_struct_value_address): Remove.
6993 (s390_use_struct_convention, s390_store_struct_return): Remove.
6994 (s390_extract_return_value, s390_store_return_value): Remove.
6995 (s390_return_value_convention, s390_return_value): New functions.
6996 (is_float_singleton): Handle typedefs.
8a1dac83 6997 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
6998 Remove, replace by ...
6999 (s390_function_arg_pass_by_reference, s390_function_arg_float,
7000 s390_function_arg_integer): ... these new functions.
7001 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
7002 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
7003 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
7004 Fill in tdep->abi.
7005 Remove calls to:
7006 set_gdbarch_deprecated_store_struct_return,
7007 set_gdbarch_deprecated_extract_return_value,
7008 set_gdbarch_deprecated_store_return_value,
7009 set_gdbarch_use_struct_convention,
7010 set_gdbarch_extract_struct_value_address,
7011 set_gdbarch_deprecated_pc_in_call_dummy,
7012 set_gdbarch_deprecated_push_arguments,
7013 set_gdbarch_deprecated_save_dummy_frame_tos,
7014 set_gdbarch_deprecated_push_return_address,
7015 set_gdbarch_deprecated_sizeof_call_dummy_words,
7016 set_gdbarch_deprecated_call_dummy_words,
7017 set_gdbarch_deprecated_dummy_write_sp.
7018 Add calls to:
7019 set_gdbarch_push_dummy_call,
7020 set_gdbarch_unwind_dummy_id,
7021 set_gdbarch_return_value.
8a1dac83 7022
e1457d83
JB
7023 * config/s390/nm-linux.h: Update comments.
7024 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
7025 (STOPPED_BY_WATCHPOINT): Redefine.
7026 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
7027 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
7028 (s390_stopped_by_watchpoint): Likewise.
7029 (watch_area_cnt): Remove.
7030 * s390-nat.c: Update comments.
7031 (watch_area): Remove typedef.
7032 Global replace watch_area by struct watch_area.
7033 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 7034 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
7035 use s390_inferior_tid. Add short-cut for the no watchpoint case.
7036 (s390_fix_watch_points): Remove pid argument,
7037 use s390_inferior_tid. Recompute area spanned by watchpoints.
7038 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
7039 argument. Reimplement.
7040
d0f54f9d
JB
7041 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
7042 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
7043 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 7044 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
7045 core-regset.o.
7046 * config/s390/s390x.mt: Remove.
7047 * config/s390/tm-s390.h: Remove.
7048 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
7049 (TARGET_ELF64): Remove.
7050 (SKIP_TRAMPOLINE_CODE): Do not undefine.
7051 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
7052 s390*-*-* case; always set gdb_target to s390.
7053 * regformats/reg-s390.dat: Remove control registers.
7054 * regformats/reg-s390x.dat: Likewise.
7055 * s390-tdep.h: New file.
8a1dac83 7056 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
7057 Include "inferior.h" and "s390-tdep.h".
7058 Remove private definition of offsetof.
7059 (s390_register_u_addr): Remove.
7060 (regmap_gregset, regmap_fpregset): Define.
7061 (supply_gregset, fill_gregset): Reimplement.
7062 (supply_fpregset, fill_fpregset): Likewise.
7063 (s390_inferior_tid): New function.
7064 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
7065 (fetch_inferior_registers, store_inferior_registers): Likewise.
7066 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
7067 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
7068 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
7069 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
7070 (struct gdbarch_tdep): Define.
7071 (struct s390_register_info): Define.
7072 (s390_register_info): New variable.
7073 (s390_register_name): Reimplement.
7074 (s390_register_type): New function.
7075 (s390_register_raw_size, s390x_register_raw_size): Remove.
7076 (s390_cannot_fetch_register): Remove.
7077 (s390_register_byte): Remove.
7078 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
7079 (s390_dwarf_regmap): New variable.
7080 (s390_dwarf_reg_to_regnum): New function.
7081 (s390_stab_reg_to_regnum): Remove.
7082 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
7083 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
7084 (s390_convert_register_p): Likewise.
7085 (s390_register_to_value, s390_value_to_register): Likewise.
7086 (s390_register_reggroup_p): Likewise.
7087 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
7088 s390_gregset, s390x_gregset, s390_fpregset): New variables.
7089 (s390_supply_regset, s390_regset_from_core_section): New functions.
7090 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
7091 (S390_FPR_SIZE): Likewise.
7092 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
7093 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
7094 (S390_NUM_GPRS): Move here from tm-s390.h.
7095 (S390_NUM_FPRS): Likewise.
7096 (s390_in_function_epilogue_p): New function.
7097 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
7098 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
7099 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
7100 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
7101 Replace S390_FP_REGNUM by S390_SP_REGNUM.
7102 Remove calls to:
7103 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
7104 set_gdbarch_deprecated_max_register_virtual_size,
7105 set_gdbarch_deprecated_register_byte,
d0f54f9d 7106 set_gdbarch_cannot_fetch_register,
8a1dac83 7107 set_gdbarch_cannot_store_register,
d0f54f9d
JB
7108 set_gdbarch_deprecated_register_size,
7109 set_gdbarch_deprecated_register_raw_size,
7110 set_gdbarch_deprecated_register_virtual_size,
7111 set_gdbarch_deprecated_register_virtual_type,
7112 set_gdbarch_deprecated_register_bytes.
7113 Add calls to:
7114 set_gdbarch_num_pseudo_regs,
7115 set_gdbarch_register_type,
7116 set_gdbarch_convert_register_p,
7117 set_gdbarch_register_to_value,
7118 set_gdbarch_value_to_register,
7119 set_gdbarch_register_reggroup_p,
7120 set_gdbarch_regset_from_core_section,
7121 set_gdbarch_pseudo_register_read,
7122 set_gdbarch_pseudo_register_write,
7123 set_gdbarch_in_function_epilogue_p.
7124 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
7125 (s390_tdep_h): New variable.
7126
8cfe231d
JB
71272004-02-17 Jim Blandy <jimb@redhat.com>
7128
4589a601
JB
7129 * findvar.c (value_from_register): If the type has no length, just
7130 return an acceptable value --- don't report an internal error.
7131
8cfe231d
JB
7132 * stabsread.c (read_type): If we find any type numbers that are
7133 forward references, complain if the references aren't resolved by
7134 the time we're finished reading.
7135 (cleanup_undefined_types): Make error message more appropriate for
7136 a complaint.
7137
5bf0017e
EZ
71382004-02-17 Elena Zannoni <ezannoni@redhat.com>
7139
9d62932d
EZ
7140 * Makefile.in (defs_h): Remove dependency on progress_h.
7141 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
7142 progress.h.
7143 * main.c (captured_main): Delete use of START_PROGRESS and
7144 END_PROGRESS.
7145
71462004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 7147
5bf0017e
EZ
7148 * objfiles.c (terminate_minimal_symbol_table): Add back
7149 initialization of MSYMBOL_TYPE.
7150
9fc9f5e2
AC
71512004-02-17 David Mosberger <davidm@hpl.hp.com>
7152
7153 Committed by Andrew Cagney.
7154 * Makefile.in (ia64_tdep_h): New macro.
7155 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
7156 (ia64-tdep.o): Likewise.
7157 * ia64-tdep.h: New file.
7158 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
7159 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
7160 (ia64_aix_sigcontext_register_address): Likewise.
7161 (ia64_linux_getunwind_table): Delete declaration.
7162 * ia64-linux-tdep.c: Likewise.
7163
76cd2bd9
CV
71642004-02-17 Corinna Vinschen <vinschen@redhat.com>
7165
7166 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
7167 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
7168 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
7169
634aa483
AC
71702004-02-17 Andrew Cagney <cagney@redhat.com>
7171
7172 * symtab.c (skip_prologue_using_sal): New function.
7173 * symtab.h (skip_prologue_using_sal): Declare.
7174 * frv-tdep.c: Include "symtab.h".
7175 (skip_prologue_using_sal): Delete function.
7176 * mips-tdep.c (skip_prologue_using_sal): Delete function.
7177 * rs6000-tdep.c (refine_prologue_limit): Mention
7178 skip_prologue_using_sal.
7179 * ia64-tdep.c (refine_prologue_limit): Ditto.
7180 * Makefile.in: Update dependencies.
7181
71822004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 7183
39ce7b3f
AC
7184 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
7185 START_INFERIOR_TRAPS_EXPECTED.
7186 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
7187 START_INFERIOR_TRAPS_EXPECTED.
7188 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
7189 Delete macro.
7190 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
7191 macro, moved to "nm-osf.h". Update copyright.
7192 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
7193 update copyright.
7194
19772a2c
AC
7195 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
7196 and function replacing FRAMELESS_FUNCTION_INVOCATION.
7197 * blockframe.c (legacy_frameless_look_for_prologue): Rename
7198 frameless_look_for_prologue.
7199 * frame.h (legacy_frameless_look_for_prologue): Rename
7200 frameless_look_for_prologue.
7201 * gdbarch.h, gdbarch.c: Re-generate.
7202 * sh64-tdep.c (sh64_gdbarch_init): Update.
7203 * sh-tdep.c (sh_gdbarch_init): Update.
7204 * s390-tdep.c (s390_gdbarch_init): Update.
7205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7206 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7207 * m68k-tdep.c (m68k_gdbarch_init): Update.
7208 (delta68_frame_args_address): Update.
7209 * m32r-tdep.c (m32r_gdbarch_init): Update.
7210 * hppa-tdep.c (hppa_gdbarch_init): Update.
7211 * h8300-tdep.c (h8300_gdbarch_init): Update.
7212 * frv-tdep.c (frv_gdbarch_init): Update.
7213 (frv_frameless_function_invocation): Update.
7214 * cris-tdep.c (cris_gdbarch_init): Update.
7215 (cris_frameless_function_invocation): Update.
7216 * avr-tdep.c (avr_gdbarch_init): Update.
7217 * arm-tdep.c (arm_gdbarch_init): Update.
7218 * stack.c (frame_info): Update, call predicate.
7219 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
7220 * frame.c (legacy_get_prev_frame): Update, call predicate..
7221 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
7222 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
7223 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
7224 invocation.
7225 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7226 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7227 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
7228
7229 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
7230 function.
7231
7dcaac91
DJ
72322004-02-16 Daniel Jacobowitz <drow@mvista.com>
7233
7234 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
7235 initializations.
7236
88289b6e
AC
72372004-02-16 Andrew Cagney <cagney@redhat.com>
7238
7239 * tui/tui-windata.c: Include "gdb_string.h".
7240 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
7241 * tui/tui-layout.c, tui/tui-command.c: Ditto.
7242 * Makefile.in: Update dependencies.
7243
9f976b41
DJ
72442004-02-16 Daniel Jacobowitz <drow@mvista.com>
7245
7246 * Makefile.in (infrun.o): Add $(gdb_assert_h).
7247 * infrun.c: Include "gdb_assert.h".
7248 (singlestep_ptid, saved_singlestep_ptid)
7249 (stepping_past_singlestep_breakpoint): New variables.
7250 (resume): Set singlestep_ptid. Check for singlestep thread
7251 hop.
7252 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
7253 (handle_inferior_event): Handle singlestep thread hop.
7254
c324d747
AC
72552004-02-16 Andrew Cagney <cagney@redhat.com>
7256
f090b9b1
AC
7257 * dwarf2-frame.c (dwarf2_frame_ops): New function.
7258 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
7259 (dwarf2_frame_init_reg): Ditto.
7260
fd33e6cb
AC
7261 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
7262 suggested by Joshua Neuheisel
7263
c324d747
AC
7264 * configure.in: Always check for curses, including pdcurses.
7265 Warn, instead of error, when no curses are found. Enable TUI when
7266 curses is available.
7267 * configure: Re-generate.
7268
b66ba949
CV
72692004-02-16 Corinna Vinschen <vinschen@redhat.com>
7270
7271 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
7272 sh_sh4_register_convert_to_virtual.
7273 (sh_register_convert_to_raw): Rename from
7274 sh_sh4_register_convert_to_raw.
7275 (sh_pseudo_register_read): Accomodate above name change.
7276 (sh_pseudo_register_write): Ditto.
7277
b58cbbf2
CV
72782004-02-16 Corinna Vinschen <vinschen@redhat.com>
7279
7280 * sh-tdep.c (sh_generic_register_name): Remove.
7281 (sh_gdbarch_init): Use sh_sh_register_name in default case.
7282
5929a910
AC
72832004-02-15 Andrew Cagney <cagney@redhat.com>
7284
4566dfcf
AC
7285 * configure.in (build_warnings): Add -Wunused-function.
7286 * configure: Re-generate.
7287
db11ed55
AC
7288 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
7289 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
7290
46ac7a5d
AC
7291 * procfs.c (procfs_init_inferior): Assume that
7292 START_INFERIOR_TRAPS_EXPECTED is defined.
7293 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
7294 * config/ns32k/tm-nbsd.h: Delete file,
7295 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
7296
ba801595
AC
7297 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
7298 * config/vax/tm-vax.h: Delete file.
7299
5929a910
AC
7300 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7301 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7302 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7303 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7304 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
7305 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7306 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
7307
8f22cb90
MK
73082004-02-15 Mark Kettenis <kettenis@gnu.org>
7309
7310 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
7311 * dwarf2-frame.c (dwarf2_frame_data): New variable.
7312 (struct dwarf2_frame_ops): New.
7313 (dwarf2_frame_default_init_reg): New function, based on
7314 dwarf2_frame_init_reg.
7315 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
7316 (dwarf2_frame_init_reg): Call architecture-specific function.
7317 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
7318 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
7319 instead of dwarf2_frame_data.
7320 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
7321 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
7322
8132723e
AC
73232004-02-15 Andrew Cagney <cagney@redhat.com>
7324
046a4708
AC
7325 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
7326 register_gdbarch_swap.
7327 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
7328 * f-lang.c (_initialize_f_language): Update, use
7329 DEPRECATED_REGISTER_GDBARCH_SWAP.
7330 * remote.c (_initialize_remote): Ditto.
7331 * regcache.c (_initialize_regcache): Ditto.
7332 * parse.c (_initialize_parse): Ditto.
7333 * infrun.c (_initialize_infrun): Ditto.
7334 * mi/mi-main.c (_initialize_mi_main): Ditto.
7335 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 7336
549c1eea
AC
7337 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
7338 poking .cacheable directly.
7339 * symfile.c (symfile_bfd_open): Ditto.
7340
0c0b39de
AC
7341 * Makefile.in: Update all dependencies.
7342
8132723e
AC
7343 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
7344 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
7345 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
7346 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
7347 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 7348
b9d26eb9
AC
73492004-02-14 Andrew Cagney <cagney@redhat.com>
7350
8e1f669a
AC
7351 * arch-utils.c (legacy_convert_register_p): Check
7352 DEPRECATED_REGISTER_CONVERTIBLE_P.
7353 * findvar.c (value_of_register): Ditto.
7354
cd0bfa36
AC
7355 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
7356 * gdbarch.h, gdbarch.c: Re-generate.
7357 * arch-utils.c (deprecated_register_convertible_not): Delete.
7358 * arch-utils.h (deprecated_register_convertible_not): Delete.
7359 * mi/mi-main.c (get_register): Update. Update copyright.
7360 * infcmd.c (default_print_registers_info): Update.
7361
b9d26eb9
AC
7362 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7363 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
7364 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 7365 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
7366 * frame.c (deprecated_get_next_frame_hack): Delete function.
7367 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
7368 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7369 Update.
7370 * infcall.c (call_function_by_hand): Update.
7371
9ab9195f
EZ
73722004-02-14 Elena Zannoni <ezannoni@redhat.com>
7373
7374 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 7375 from here...
9ab9195f
EZ
7376 * objfiles.c (init_entry_point_info, entry_point_address):..to
7377 here.
7378 * symfile.h (init_entry_point_info, entry_point_address): Remove
7379 prototypes.
7380 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 7381 prototypes.
9ab9195f
EZ
7382 * cris-tdep.c: Remove include of symfile.h. Add include of
7383 objfiles.h.
7384 * infcall.c: Ditto.
7385 * mcore-tdep.c: Ditto.
7386 * mn10300-tdep.c: Ditto.
7387 * sh64-tdep.c: Ditto.
7388 * v850-tdep.c: Ditto.
7389 * arm-tdep.c: Remove include of symfile.h.
7390 * blockframe.c: Ditto.
7391 * coffread.c: Ditto.
7392 * dbxread.c: Ditto.
7393 * dwarf2read.c: Ditto.
7394 * dwarfread.c: Ditto.
8a1dac83 7395 * frv-tdep.c: Ditto.
9ab9195f
EZ
7396 * ia64-tdep.c: Ditto.
7397 * mdebugread.c: Ditto.
7398 * mipsread.c: Ditto.
8a1dac83 7399 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
7400 * s390-tdep.c: Ditto.
7401 * sh-tdep.c: Ditto.
8a1dac83 7402 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
7403 * gdbarch.sh: Remove include of symfile.h.
7404 * gdbarch.c: Regenerate.
7405 * solib-irix.c (enable_break): Use entry_point_address().
7406 Add comment about include file.
7407 * xcoffread.c: Add comment about include file.
8a1dac83
RM
7408 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
7409 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
7410 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
7411 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
7412 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
7413
c4c5b7ba
AC
74142004-02-13 Andrew Cagney <cagney@redhat.com>
7415
7416 * corelow.c (core_xfer_partial): Use "struct bfd_section".
7417 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
7418 copyright.
7419 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
7420
3e7879de
FF
74212004-02-12 Fred Fish <fnf@redhat.com>
7422
7423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
7424 set_gdbarch_store_return_value.
7425
6a7760b6
AC
74262004-02-12 Andrew Cagney <cagney@redhat.com>
7427
7428 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
7429 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
7430 (interrupt_query): Ditto.
7431 (ofunc): Delete unused variable.
7432 * cris-tdep.c (cris_abi): Delete unused function.
7433 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
7434 (cris_get_wide_opcode, cris_get_short_size): Ditto.
7435 (cris_get_asr_quick_shift_steps): Ditto.
7436 (cris_skip_prologue_frameless_p): Ditto.
7437 * arm-tdep.c (arm_push_return_address): Delete unused function.
7438 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
7439 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
7440 * s390-tdep.c (s390_function_start): Delete unused function.
7441
31687c3c
AC
74422004-02-12 Andrew Cagney <cagney@redhat.com>
7443
7444 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
7445 gdbarch.h, gdbarch.c: Re-generate.
7446 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
7447 to generic_prologue_frameless_p.
7448 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
7449 * arch-utils.c (generic_prologue_frameless_p): Delete function.
7450
6de918a6
DJ
74512004-02-11 Daniel Jacobowitz <drow@mvista.com>
7452
7453 * mips-linux-tdep.c: Include "frame.h".
7454 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
7455 (mips_linux_skip_resolver): New functions.
7456 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
7457 and set_gdbarch_in_solib_call_trampoline.
7458 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
7459 to after set_gdbarch_in_solib_return_trampoline. Only set the
7460 solib hooks to mips16 functions if the OS ABI is unknown.
7461 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
7462 including "config/tm-linux.h".
7463 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
7464 * Makefile.in (mips-linux-tdep.o): Update.
7465
87b3ede8
DC
74662004-02-11 David Carlton <carlton@kealia.com>
7467
7468 * linespec.c (decode_compound): Only look for a class symbol when
7469 considering all but the rightmost component.
7470
5979bc46
AC
74712004-02-11 Andrew Cagney <cagney@redhat.com>
7472
7473 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
7474 abi code are are separatly grouped.
7475
5867a2fb
AC
74762004-02-11 Andrew Cagney <cagney@redhat.com>
7477
7478 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
7479 * gdbarch.h, gdbarch.c: Re-generate.
7480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7481 * v850-tdep.c (v850_gdbarch_init): Update.
7482 * sh64-tdep.c (sh64_gdbarch_init): Update.
7483 * sh-tdep.c (sh_gdbarch_init): Update.
7484 * s390-tdep.c (s390_gdbarch_init): Update.
7485 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7486 * mips-tdep.c (mips_gdbarch_init): Update.
7487 * mcore-tdep.c (mcore_gdbarch_init): Update.
7488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7489 * m32r-tdep.c (m32r_gdbarch_init): Update.
7490 * ia64-tdep.c (ia64_gdbarch_init): Update.
7491 * hppa-tdep.c (hppa_gdbarch_init): Update.
7492 * h8300-tdep.c (h8300_gdbarch_init): Update.
7493 * frv-tdep.c (frv_gdbarch_init): Update.
7494 * d10v-tdep.c (d10v_gdbarch_init): Update.
7495 * cris-tdep.c (cris_gdbarch_init): Update.
7496 * avr-tdep.c (avr_gdbarch_init): Update.
7497 * arm-tdep.c (arm_gdbarch_init): Update.
7498 * alpha-tdep.c (alpha_gdbarch_init): Update.
7499
026a72f8
CV
75002004-02-11 Corinna Vinschen <vinschen@redhat.com>
7501
7502 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
7503 comma.
7504 (sh_sh4al_dsp_register_name): Ditto.
7505
3903d437
AC
75062004-02-10 Andrew Cagney <cagney@redhat.com>
7507
7508 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
7509 (mips_init_frame_pc_first): Delete function.
7510 (mips_frame_saved_pc): Delete function.
7511 (mips_frame_chain): Delete function.
7512 (mips_init_extra_frame_info): Delete function.
7513 (mips_xfer_register): Delete unused variable "reg".
7514 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
7515 (mips_n32n64_return_value): Delete unused variable "reg".
7516 (mips_n32n64_return_value): Delete unused variable "pos".
7517 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
7518 (mips_o32_return_value): Delete unused variable "pos".
7519 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
7520 (mips_print_fp_register): Delete unused variable "namelen"
7521 (mips_print_fp_register): Delete unused variable "flt2"
7522 (get_frame_pointer): Delete function.
7523 (cached_proc_desc): Delete static variable.
7524 (mips_pop_frame): Delete function.
7525 (mips_find_saved_regs): Delete function.
7526 (mips_get_saved_register): Delete function.
7527 (mips_saved_pc_after_call): Delete function.
7528 (SIGFRAME_BASE): Delete macro.
7529 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
7530 (SIGFRAME_PC_OFF): Delete macro.
7531 (SIGFRAME_REGSAVE_OFF): Delete macro.
7532 (mips_dump_tdep): Do not print deleted macro definitions.
7533
b9fb98bd
AC
75342004-02-10 Andrew Cagney <cagney@redhat.com>
7535
7536 * Makefile.in (SFILES): Remove explictly listed tui files.
7537 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
7538
78ced177 75392004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 7540
78ced177
JJ
7541 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
7542 to use paddr functions to format ia64 addresses and long values.
7543 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
7544 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
7545 (get_kernel_table, ia64_find_proc_info_x): Ditto.
7546 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
7547 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
7548
6a83354a
AC
75492004-02-10 Andrew Cagney <cagney@redhat.com>
7550
7551 * defs.h: Do not include "tui.h".
7552 * gdb_curses.h: New file.
7553 * tui/tui-hooks.h: New file.
7554 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
7555 (tui_install_hooks, tui_remove_hooks): Delete declarations.
7556 (tui_initialize_io): Delete declaration.
7557 (tui_initialize_readline: Delete redundant declaration.
7558 (struct tui_point): Delete definition.
7559 * tui/tui-data.h (struct tui_point): Define.
7560 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
7561 * utils.c: Include "tui/tui.h".
7562 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
7563 * printcmd.c [TUI]: Include "tui/tui.h".
7564 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
7565 * tui/tui-command.c: Include "gdb_curses.h".
7566 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
7567 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
7568 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
7569 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
7570 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
7571 * Makefile.in: Update all dependencies.
7572 (tui_hooks_h, gdb_curses_h): Define.
7573 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
7574
997470ef
EZ
75752004-02-10 Elena Zannoni <ezannoni@redhat.com>
7576
7577 * objfiles.h (struct objfile): Remove unused fields auxf1 and
7578 auxf2. Add comments about some other rarely used fields.
7579
4ff2cc4d
AC
75802004-02-10 Andrew Cagney <cagney@redhat.com>
7581
7582 * Makefile.in (init.c): Fix script removing duplicates. Problem
7583 reported by Peter Schauer.
7584
1ab21617
EZ
75852004-02-09 Elena Zannoni <ezannoni@redhat.com>
7586
7587 * bcache.c (bcache_xmalloc): Use obstack_init instead of
7588 obstack_specify_allocation.
7589 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 7590 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
7591 (allocate_rt_common_objfile): Ditto.
7592 * symfile.c (reread_symbols): Ditto.
7593 * gdb_obstack.h: Add comment.
7594
17763fd9
EZ
75952004-02-09 Elena Zannoni <ezannoni@redhat.com>
7596
7597 * linespec.c (decode_line_1, locate_first_half)
7598 (decode_compound, lookup_prefix_sym): Update comments. Delete old
7599 commented out code.
7600
ec5cdd75
DJ
76012004-02-09 Daniel Jacobowitz <drow@mvista.com>
7602
7603 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
7604 obstack_free.
7605
43b54b88
AC
76062004-02-09 Andrew Cagney <cagney@redhat.com>
7607
7608 * blockframe.c (find_pc_partial_function): If find_pc_overlay
7609 fails, try find_pc_section. Fix PR c++/1267.
7610 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
7611 instead of find_pc_mapped_section.
7612 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
7613 not default to the section containing PC. Fix PR symtab/1519.
7614
edfae063
AC
76152004-02-09 Andrew Cagney <cagney@redhat.com>
7616
7617 * Makefile.in (mips-tdep.o): Update dependencies.
7618 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
7619 "trad-frame.h".
7620 (mips_unwind_pc): Return the pseudo PC register.
7621 (mips_unwind_dummy_id): New function.
7622 (mips16_fetch_instruction): New function.
7623 (mips32_fetch_instruction): New function.
7624 (struct mips_frame_cache): Define.
7625 (mips_mdebug_frame_cache): New function.
7626 (mips_mdebug_frame_this_id): New function.
7627 (mips_mdebug_frame_prev_register): New function.
7628 (mips_mdebug_frame_unwind): Define.
7629 (mips_mdebug_frame_sniffer): New function.
7630 (mips_mdebug_frame_base_address): New function.
7631 (mips_mdebug_frame_base): Define.
7632 (mips_mdebug_frame_base_sniffer): New function.
7633 (mips_gdbarch_init): Append unwind and base sniffers. Set
7634 unwind_dummy_id.
7635
defc864c
AC
76362004-02-08 Andrew Cagney <cagney@redhat.com>
7637
6764ddad
AC
7638 * frame.c: Print both the register number and name.
7639
defc864c
AC
7640 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
7641 and a sed into a single sed. Make .c and .o patterns more robust.
7642 (OBS): Delete.
7643 (INIT_FILES): Replace OBS with COMMON_OBS.
7644 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
7645
645d6d10
MK
76462004-02-08 Mark Kettenis <kettenis@gnu.org>
7647
7648 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
7649 the PT_WCOOKIE request.
7650
23e3c3fc
AC
76512004-02-08 Andrew Cagney <cagney@redhat.com>
7652
58dfe9ff
AC
7653 * mips-tdep.c (mips_unwind_pc): New function.
7654 (mips_gdbarch_init): Set mips_unwind_pc.
7655
1152e35e
AC
7656 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
7657 (get_frame_id): Allow the UNKNOWN_FRAME.
7658 (frame_register_unwind, get_frame_type): Ditto.
7659
31b75dbf
AC
7660 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
7661 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
7662 unwind_dummy_id indicates a legacy frame.
7663
3483b318
AC
7664 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
7665 * configure: Re-generate.
7666
23e3c3fc
AC
7667 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
7668 methods.
7669
33f8ca73
AC
76702004-02-08 Andrew Cagney <cagney@redhat.com>
7671
7672 * configure.in (CONFIG_ALL): Set to Makefile target, and not
7673 makefile macro.
7674 * configure: Re-generate.
7675 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
7676 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
7677 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
7678 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
7679 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
7680 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
7681 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
7682 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
7683 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
7684 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
7685
6ba8e26f 76862004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 7687
20d286a5
AC
7688 * Makefile.in: Update all dependencies.
7689
d836ee13
AC
7690 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
7691 * configure: Re-generate.
7692 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
7693 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
7694 (COMMON_OBS): Add "main.o" and "annotate.o".
7695 (ANNOTATE_OBS): Delete.
7696 (OBS): Remove ANNOTATE_OBS.
7697 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
7698 CONFIG_INITS.
7699 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
7700 against CONFIG_OBS and "main.o".
7701 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
7702 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
7703
d02c80cd
AC
7704 * tui/tui-command.c: Include "gdb_string.h", delete register
7705 attribute, use ISO-C function signatures.
7706 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
7707 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
7708 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
7709 * tui/tui.c: Ditto.
6ba8e26f
AC
7710
7711 * tui/tui-command.c: Change variable and function names to lower
7712 case.
7713 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
7714 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
7715 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
7716 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
7717 * tui/tui-winsource.c, tui/tui.c: Ditto.
7718
4a146b47
EZ
77192004-02-07 Elena Zannoni <ezannoni@redhat.com>
7720
7721 * buildsym.c (free_pending_blocks, finish_block)
7722 (record_pending_block, make_blockvector, end_symtab): Replace
7723 symbol_obstack with objfile_obstack.
8a1dac83 7724 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 7725 (coff_read_enum_type): Ditto.
8a1dac83 7726 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 7727 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 7728 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
7729 (dwarf2_symbol_mark_computed): Ditto.
7730 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
7731 * elfread.c (elf_symtab_read): Ditto.
7732 * hpread.c (hpread_symfile_init, hpread_symfile_init)
7733 (hpread_read_enum_type, hpread_read_function_type)
7734 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
7735 Ditto.
8a1dac83 7736 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 7737 (java_link_class_type): Ditto.
8a1dac83 7738 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
7739 (new_symbol): Ditto.
7740 * minsyms.c (install_minimal_symbols): Ditto.
7741 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
7742 (terminate_minimal_symbol_table): Replace symbol_obstack with
7743 objfile_obstack.
7744 (free_objfile): Remove freeing of symbol_obstack.
7745 * objfiles.h: Remove symbol_obstack field.
7746 * pa64solib.c (add_to_solist): Replace symbol_obstack with
7747 objfile_obstack.
7748 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
7749 symbol_obstack.
7750 (solib_add_common_symbols): Replace symbol_obstack with
7751 objfile_obstack.
7752 * somsolib.c (som_solib_add): Ditto.
7753 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7754 (common_block_start, common_block_end): Ditto.
7755 * symfile.c (reread_symbols): Remove freeing and init of
7756 symbol_obstack.
7757 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
7758 * symfile.h: Update comment.
7759 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
7760 stats printing.
7761 * symtab.c (symbol_set_names): Replace symbol_obstack with
7762 objfile_obstack.
7763 * symtab.h (struct general_symbol_info, struct minimal_symbol):
7764 Update comments.
7765 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
7766 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
7767 objfile_obstack.
7768
6d012f14
AC
77692004-02-07 Andrew Cagney <cagney@redhat.com>
7770
7771 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
7772 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
7773 fields and variables.
7774 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
7775 (m_beInvisible): Delete macro.
7776 * tui/tui-data.h: Fix case case fields and variables.
7777 (m_genWinPtrIsNull): Delete macro.
7778 (tui_win_list): Rename winList.
7779 (TUI_SRC_WIN): Rename srcWin.
7780 (TUI_DISASM_WIN): Rename disassemWin.
7781 (TUI_DATA_WIN): Rename dataWin.
7782 (TUI_CMD_WIN): Rename cmdWin.
7783 (m_genWinPtrNotNull): Delete macro.
7784 (m_winPtrIsNull): Delete macro.
7785 (m_winPtrNotNull): Delete macro.
7786 (tui_win_is_source_type): Replace m_winIsSourceType
7787 (tui_win_is_auxillary): Replace m_winIsAuzillary.
7788 (tui_win_has_locator): Replace m_hasLocator.
7789 (tui_set_win_highlight): Replace m_setWinHighlightOn and
7790 m_setWinHighlightOff.
7791 * tui/tui-data.c: Update references.
7792 (tui_win_is_source_type, tui_set_win_highlight): New functions.
7793 (tui_win_has_locator, tui_win_is_auxillary): New functions.
7794 * tui/tui-command.c, tui/tui-disasm.c: Update references.
7795 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
7796 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
7797 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
7798 * tui/tui-winsource.c, tui/tui.c: Ditto.
7799
7d34766b
MK
78002004-02-07 Mark Kettenis <kettenis@gnu.org>
7801
1c800673
MK
7802 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
7803 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
7804 StackGhost.
7805
7d34766b
MK
7806 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
7807 variable `i6' to `i7'.
7808 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
7809
22940a24
AC
78102004-02-07 Andrew Cagney <cagney@redhat.com>
7811
7812 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
7813 (TuiPoint, TuiPointPtr): Ditto.
7814 (TuiStatus, TuiStatusPtr): Ditto.
7815 (TuiWinType, TuiWinTypePtr): Ditto.
7816 (struct tui_point): Rename _TuiPoint.
7817 (tui_get_low_disassembly_address): Rename
7818 tuiGetLowDisassemblyAddress.
7819 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
7820 (tuiFree): Delete declaration.
7821 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
7822 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
7823 * tui/tui.c (tuiFree): Delete function.
7824 * cli/cli-cmds.c (disassemble_command): Update references.
7825 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
7826 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
7827 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
7828 * tui/tui-winsource.c: Ditto.
7829
8b92e4d5
EZ
78302004-02-07 Elena Zannoni <ezannoni@redhat.com>
7831
7832 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
7833 coffstab_build_psymtabs, elfstab_build_psymtabs)
7834 (stabsect_build_psymtabs): Replace psymbol_obstack with
7835 objfile_obstack.
7836 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
7837 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
7838 Ditto.
7839 * dwarfread.c (scan_compilation_units): Ditto.
7840 * elfread.c (elfstab_offset_sections): Ditto.
7841 * hppa-tdep.c (read_unwind_info): Ditto.
7842 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
7843 (hpread_end_psymtab): Ditto.
7844 * mdebugread.c (mdebug_build_psymtabs, add_pending)
7845 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
7846 Ditto.
7847 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 7848 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
7849 (build_objfile_section_table): Ditto.
7850 (allocate_objfile): Remove init of psymbol_obstack.
7851 (free_objfile): Remove freeing of psymbol_obstack.
7852 * objfiles.h (struct objfile): Remove field
7853 psymbol_obstack. Update comments.
7854 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
7855 psymbol_obstack with objfile_obstack.
7856 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
7857 psymbol_obstack.
7858 * somread.c (som_symfile_offsets, init_import_symbols)
7859 (init_export_symbols): Replace psymbol_obstack with
7860 objfile_obstack.
7861 * somsolib.c (som_solib_add_solib_objfile): Ditto.
7862 * symfile.c (default_symfile_offsets, syms_from_objfile)
7863 (reread_symbols): Remove freeing and init of psymbol_obstack.
7864 (cashier_psymtab): Update comment.
7865 * symmisc.c (print_objfile_statistics): Don't report stats for
7866 psymbol obstack.
7867 * symtab.h (struct general_symbol_info, struct partial_symtab):
7868 Update comments.
7869 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
7870 (xcoff_symfile_offsets): Replace psymbol_obstack with
7871 objfile_obstack.
7872
b99607ea
EZ
78732004-02-07 Elena Zannoni <ezannoni@redhat.com>
7874
7875 * objfiles.h (struct objfile): Add objfile_obstack field.
7876 Remove type_obstack field.
7877
7878 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
7879 read_structure_scope read_enumeration, new_symbol): Replace
7880 type_obstack with objfile_obstack.
7881 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 7882 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
7883 (lookup_fundamental_type): Ditto.
7884 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
7885 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
7886 (hpread_read_doc_function_type, hpread_read_struct_type)
7887 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 7888 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 7889 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
7890 (java_link_class_type): Ditto.
7891 * mdebugread.c (parse_type): Ditto.
7892 * objfiles.c (allocate_objfile, free_objfile): Ditto.
7893 * solib-sunos.c (solib_add_common_symbols): Ditto.
7894 * stabsread.c (define_symbol, read_type, read_member_functions,
7895 read_cpp_abbrev, read_one_struct_field): Ditto.
7896 * symfile.c (reread_symbols): Ditto.
7897 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 7898
2a8854a7
AC
78992004-02-07 Andrew Cagney <cagney@redhat.com>
7900
7901 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
7902 (tui_exec_info_content): Rename TuiExecInfoContent.
7903 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
7904 (TuiWinInfo, TuiWinInfoPtr): Ditto.
7905 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
7906 (TuiList, TuiListPtr): Ditto.
7907 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
7908 (TuiDataType, TuiDataTypePtr): Ditto.
7909 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
7910 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
7911 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
7912 (TuiSourceElement, TuiSourceElementPtr): Ditto.
7913 (TuiDataElement, TuiDataElementPtr): Ditto.
7914 (TuiWinElement, TuiWinElementPtr): Ditto.
7915 (TuiDataInfo, TuiDataInfoPtr): Ditto.
7916 (TuiCommandElement, TuiCommandElementPtr): Ditto.
7917 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
7918 (TuiWhichElement, TuiWhichElementPtr): Ditto.
7919 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
7920 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
7921 * tui/tui-command.c, tui/tui-data.c: Update references.
7922 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
7923 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
7924 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
7925 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 7926
05cbe71a
MK
79272004-02-07 Mark Kettenis <kettenis@gnu.org>
7928
7929 * dwarf2-frame.h: Update copyright.
7930 (enum dwarf2_frame_reg_rule): New.
7931 (struct dwarf2_frame_state_reg): New.
7932 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
7933 * dwarf2-frame.c: Update copyright.
7934 (enum dwarf2_reg_rule): Remove.
7935 (struct dwarf2_frame_state): Remove defenition of `struct
7936 dwarf2_frame_state_reg'.
7937 (read_reg): Call get_frame_arch to get the architecture instead of
7938 using CURRENT_GDBARCH.
7939 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
7940 DWARF2_FRAME_.
7941 (dwarf2_frame_init_reg): New function.
7942 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
7943 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
7944 initialize the register state. Prefix old `enum dwarf2_reg_rule'
7945 tags with DWARF2_FRAME_.
7946 (dwarf2_frame_prev_register): Call get_frame_arch to get the
7947 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
7948 dwarf2_reg_rule' tags with DWARF2_FRAME_.
7949
ec7d9e56
AC
79502004-02-06 Andrew Cagney <cagney@redhat.com>
7951
dd1abb8c
AC
7952 * tui/tui-data.h (struct tui_list): Rename _TuiList.
7953 (enum tui_data_type): Rename _TuiDataType.
7954 (struct tui_layout_def): Rename _TuiLayoutDef.
7955 (struct tui_source_element): Rename _TuiSourceElement.
7956 (struct tui_data_element): Rename _TuiDataElement.
7957 (struct tui_command_element): Rename _TuiCommandElement.
7958 (struct tui_locator_element): Rename _TuiLocatorElement.
7959 (union tui_which_element): Define.
7960 (struct tui_win_element): Rename _TuiWinElement.
7961 (struct tui_data_info): Rename _TuiDataInfo.
7962 (struct tui_source_info): Rename _TuiSourceInfo.
7963 (struct tui_command_info): Rename _TuiCommandInfo.
7964 (tui_initialize_static_data): Rename initializeStaticData.
7965 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
7966 (tui_alloc_win_info): Rename allocWinInfo.
7967 (tui_init_generic_part): Rename initGenericPart.
7968 (tui_init_win_info): Rename initWinInfo.
7969 (tui_alloc_content): Rename allocContent.
7970 (tui_add_content_elements): Rename addContentElements.
7971 (tui_init_content_element): Rename initContentElement.
7972 (tui_free_window): Rename freeWindow.
7973 (tui_free_win_content): Rename freeWinContent.
7974 (tui_free_data_content): Rename freeDataContent.
7975 (tui_free_all_source_wins_content): Rename
7976 freeAllSourceWinsContent.
7977 (tui_del_window): Rename tuiDelWindow.
7978 (tui_del_data_windows): Rename tuiDelDataWindows.
7979 (tui_partial_win_by_name): Rename partialWinByName.
7980 (tui_win_name): Rename winName.
7981 (tui_current_layout): Rename currentLayout.
7982 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
7983 (tui_term_height): Rename termHeight.
7984 (tui_set_term_height_to): Rename setTermHeightTo.
7985 (tui_term_width): Rename termWidth.
7986 (tui_set_term_width_to): Rename setTermWidthTo.
7987 (tui_set_gen_win_origin): Rename setGenWinOrigin.
7988 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
7989 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
7990 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
7991 (tui_source_windows): Rename sourceWindows.
7992 (tui_clear_source_windows): Rename clearSourceWindows.
7993 (tui_clear_source_windows_detail): Rename
7994 clearSourceWindowsDetail.
7995 (tui_clear_win_detail): Rename clearWinDetail.
7996 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
7997 (tui_default_tab_len): Rename tuiDefaultTabLen.
7998 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
7999 (tui_win_with_focus): Rename tuiWinWithFocus.
8000 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
8001 (tui_layout_def): Rename tuiLayoutDef.
8002 (tui_win_resized): Rename tuiWinResized.
8003 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
8004 (tui_next_win): Rename tuiNextWin.
8005 (tui_prev_win): Rename tuiPrevWin.
8006 (tui_add_to_source_windows): Rename addToSourceWindows.
8007 * tui/tui-winsource.c, tui/tui-win.c: Update references.
8008 * tui/tui-layout.c, tui/tui-source.c: Ditto.
8009 * tui/tui-stack.c, tui/tui-io.c: Ditto.
8010 * tui/tui.c, tui/tui-data.c: Ditto.
8011 * tui/tui-interp.c, tui/tui-data.c: Ditto.
8012 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
8013
a358af15
AC
8014 * tui/tui-source.h: Update copyright. Include "tui-data.h".
8015 (struct symtab): Declare.
8016 (tui_set_source_content): Rename tuiSetSourceContent.
8017 (tui_show_symtab_source): Rename tuiShowSource.
8018 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
8019 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
8020 * tui/tui-source.c: Update copyright. Update references.
8021 * tui/tui-win.c, tui/tui-winsource.c: Update references.
8022 * tui/tui-stack.c: Update references.
8023
a21fcd8f
AC
8024 * tui/tui-win.h: Update copyright. Include "tui-data.h".
8025 (struct tui_win_info): Declare.
8026 (tui_scroll_forward): Rename tuiScrollForward.
8027 (tui_scroll_backward): Rename tuiScrollBackward.
8028 (tui_scroll_left): Rename tuiScrollLeft.
8029 (tui_scroll_right): Rename tuiScrollRight.
8030 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
8031 (tui_resize_all): Rename tuiResizeAll.
8032 (tui_refresh_all_win): Rename tuiRefreshAll.
8033 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
8034 * tui/tui-layout.c, * tui/tui-io.c: Update references.
8035 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
8036 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
8037
edae1ccf
AC
8038 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
8039 (tui_erase_data_content): Rename tuiEraseDataContent.
8040 (tui_display_all_data): Rename tuiDisplayAllData.
8041 (tui_check_data_values): Rename tuiCheckDataValues.
8042 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
8043 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
8044 (tui_first_data_element_no_in_line): Rename
8045 tuiFirstDataElementNoInLine.
8046 (tui_delete_data_content_windows): Rename
8047 tuiDeleteDataContentWindows.
8048 (tui_refresh_data_win): Rename tuiRefreshDataWin.
8049 (tui_display_data_from): Rename tuiDisplayDataFrom.
8050 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
8051 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
8052 * tui/tui-win.c, tui/tui-regs.c: Update references.
8053 * tui/tui-layout.c, tui/tui.c: Update references.
8054
ec7d9e56
AC
8055 * tui/tui-wingeneral.h: Update copyright.
8056 (m_allBeVisible): Delete macro.
8a1dac83 8057 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
8058 (struct tui_gen_win_info): Declare.
8059 (struct tui_win_info): Declare.
8060 (tui_unhighlight_win): Rename unhighlightWin.
8061 (tui_make_visible, tui_make_invisible): Replace makeVisible.
8062 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
8063 (tui_make_window): Rename makeWindow.
8064 (tui_copy_win): Rename copyWin.
8065 (tui_box_win): Rename boxWin.
8066 (tui_highlight_win): Rename highlightWin.
8067 (tui_check_and_display_highlight_if_needed): Rename
8068 checkAndDisplayHighlightIfNeeded.
8069 (tui_refresh_all): Rename refreshAll.
8070 (tui_delete_win): Rename tuiDelwin.
8071 (tui_refresh_win): Rename tuiRefreshWin.
8072 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
8073 (tui_make_visible, tui_make_invisible): New functions.
8074 (tui_make_all_visible, tui_make_all_invisible): New functions.
8075 (make_all_visible): Rename makeAllVisible.
8076 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
8077 * tui/tui-data.c, tui/tui-winsource.c: Update references.
8078 * tui/tui-windata.c, tui/tui-win.c: Update references.
8079 * tui/tui-regs.c, tui/tui-layout.c: Update references.
8080 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
8081
1e52e2eb
MK
80822004-02-06 Mark Kettenis <kettenis@gnu.org>
8083
8084 * proc-api.c (write_with_trace): Initialize local variable to
8085 silence compiler warning.
8086
f80bda8e
AC
80872004-02-06 Andrew Cagney <cagney@redhat.com>
8088
8089 * tui/tui-source.h: Do not include "defs.h".
8090 (struct tui_win_info): Declare.
8091 (tui_set_source_content_nil): Declare.
8092 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
8093 (union tui_line_or_address): Rename _TuiLineOrAddress.
8094 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
8095 (tui_update_source_window): Rename tuiUpdateSourceWindow.
8096 (tui_update_source_window_as_is): Rename
8097 tuiUpdateSourceWindowAsIs.
8098 (tui_update_source_windows_with_addr): Rename
8099 tuiUpdateSourceWindowsWithAddr.
8100 (tui_update_source_windows_with_line): Rename
8101 tuiUpdateSourceWindowsWithLine.
8102 (tui_clear_source_content): Rename tuiClearSourceContent.
8103 (tui_erase_source_content): Rename tuiEraseSourceContent.
8104 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
8105 (tui_show_source_content): Rename tuiShowSourceContent.
8106 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
8107 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
8108 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
8109 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
8110 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
8111 (tui_update_exec_info): Rename tuiUpdateExecInfo.
8112 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
8113 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
8114 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
8115 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
8116 (struct tui_win_info): Declare.
8117 * tui/tui-stack.c: Update references.
8118 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
8119 * tui/tui-win.c, tui/tui-source.c: Ditto.
8120 * tui/tui.c, tui/tui-disasm.c: Ditto.
8121
9fbfb822
MK
81222004-02-06 Mark Kettenis <kettenis@gnu.org>
8123
8124 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
8125 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
8126
03cebad2
MK
81272004-02-05 Mark Kettenis <kettenis@gnu.org>
8128
8129 * infrun.c (handle_inferior_event): Allow for breakpoint
8130 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
8131 and SIGEMT. Update comments.
8132 * NEWS (Revised SPARC target): Mention support for non-executable
8133 stack.
8134
290281b1
MK
81352004-02-04 Mark Kettenis <kettenis@gnu.org>
8136
8137 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
8138 * inftarg.c: Update copyright year.
8139 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
8140 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
8141 (sparc_xfer_wcookie): New function.
8142 * sparc-tdep.c (sparc_fetch_wcookie): New function.
8143 * Makefile.in (sparc-nat.o): Update dependencies.
8144 * config/sparc/nm-nbsd.h: Include "target.h".
8145 (NATIVE_XFER_WCOOKIE): New define.
8146 (sparc_xfer_wcookie): New prototype.
8147
212161df
AC
81482004-02-04 Andrew Cagney <cagney@redhat.com>
8149
8150 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
8151 SYSCALL_TRAP function.
8152 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
8153
6e4c6c91
DJ
81542004-02-04 Andrew Cagney <cagney@redhat.com>
8155 Daniel Jacobowitz <drow@mvista.com>
8156
8157 * objfiles.h: Delete comments refering to inside_entry_func and
8158 DEPRECATED_FRAME_CHAIN_VALID.
8159 * defs.h (inside_entry_func): Update prototype..
8160 * blockframe.c (inside_entry_func): Rename to
8161 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
8162 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
8163
cae688ec
JJ
81642004-02-03 Jeff Johnston <jjohnstn@redhat.com>
8165
8166 * breakpoint.c (struct captured_parse_breakpoint_args): Move
8167 outside of #ifdef SOLIB_ADD region.
8168 (do_restore_lang_radix_cleanup): Ditto.
8169 (resolve_pending_breakpoint): Ditto.
8170
19217676
AC
81712004-02-03 Andrew Cagney <cagney@redhat.com>
8172
8173 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
8174 (process_note_abi_tag_sections): Delete unused function.
8175 (ia64_read_fp): Delete unused function.
8176 (gdbarch_extract_struct_value_address): Delete declaration.
8177
876753be
AC
81782004-02-02 Andrew Cagney <cagney@redhat.com>
8179
8180 * vax-tdep.c (vax_frame_chain): Delete call to
8181 deprecated_inside_entry_file.
8182 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
8183
d4f10bf2
MK
81842004-02-02 Mark Kettenis <kettenis@gnu.org>
8185
8186 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
8187 column that's "empty" or "same value" when eliminating REG_RA
8188 rules.
8189
cae688ec
JJ
81902004-02-02 Jeff Johnston <jjohnstn@redhat.com>
8191
8192 * NEWS: Add information about new pending breakpoint support.
8193
0101ce28
JJ
81942004-02-02 Jeff Johnston <jjohnstn@redhat.com>
8195
8196 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
8197 and pending fields for pending breakpoint support.
8198 * breakpoint.c (breakpoint_enabled): Add check for not pending.
8199 (condition_command): Only parse condition if not a pending
8200 breakpoint.
8201 (print_one_breakpoint): Add support for pending breakpoints.
8202 (describe_other_breakpoints): Add checks to verify we are not
8203 dealing with pending breakpoints.
8204 (check_duplicates): Don't check pending breakpoints.
8205 (set_raw_breakpoint): Initialize pending flag.
8206 (do_restore_lang_radix_cleanup): New cleanup routine.
8207 (resolve_pending_breakpoint): New function.
8208 (re_enable_breakpoints_in_shlibs): Try and resolve any
8209 pending breakpoints via resolve_pending_breakpoint.
8210 (mention): Add pending breakpoint support.
8211 (parse_breakpoint_sals): Add new parameter to pass to
8212 decode_line_1 to indicate silent errors when files or functions
8213 are not found. Change all callers.
8214 (do_captured_parse_breakpoint): New function.
8215 (break_command_1): Change prototype to return an rc value and to
8216 take an optional pending breakpoint pointer. Support creating
8217 a pending breakpoint if a "not found" form of error occurs when
8218 parsing the breakpoint. Also support resolving an existing pending
8219 breakpoint and be silent if the resolution fails.
8220 (create_breakpoints): Change prototype to take pending breakpoint
8221 pointer. When resolving a pending breakpoint, use the new pointer
8222 to provide a conditional or commands added by the end-user.
8223 (delete_breakpoint): Add appropriate check for pending.
8224 (breakpoint_re_set_one): Ditto.
8225 (do_enable_breakpoint): Ditto.
8226
8d577d32
DC
82272004-02-02 David Carlton <carlton@kealia.com>
8228
8229 * valops.c (enum oload_classification): New.
8230 (find_overload_match): Break implementation into separate
8231 functions; delete #if 0'd code; look for symbols within
8232 namespaces.
8233 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
8234 (find_oload_champ,oload_method_static,classify_oload_match): New.
8235 * cp-support.h: Add declaration for cp_func_name; update
8236 declaration for make_symbol_overload_list.
8237 * cp-support.c (cp_func_name): New.
8238 (overload_list_add_symbol): Fix comment, use
8239 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
8240 (make_symbol_overload_list): Take a function name and a namespace
8241 instead of a symbol; change implementation.
8242 (make_symbol_overload_list_using): New.
8243 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
8244
22e8e3c7
FF
82452004-02-02 Fred Fish <fnf@redhat.com>
8246
8247 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 8248 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
8249 * remote-sim.c (gdb_os_write_stderr): Write output to
8250 gdb_stdtargerr stream instead of gdb_stdtarg stream.
8251 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 8252 gdb_stderr stream and update copyright years.
22e8e3c7 8253
6b753f60
DJ
82542004-02-01 Daniel Jacobowitz <drow@mvista.com>
8255
8256 * Makefile.in (mips-linux-nat.o): Update dependencies.
8257 * mips-linux-nat.c: Include mips-tdep.h.
8258
82592004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
8260
8261 * sol-thread.c (sol_thread_xfer_partial): New function.
8262 (init_sol_thread_ops): Use that for to_xfer_partial hook.
8263 (init_sol_core_ops): Likewise.
8264
8265 * procfs.c (procfs_xfer_partial): New function.
8266 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
8267 * Makefile.in (procfs.o): Add $(auxv_h) dep.
8268
8269 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
8270 procfs_xfer_auxv function.
8271
8272 * procfs.c (procfs_make_note_section): If we can read
8273 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
8274 * linux-proc.c (linux_make_note_section): Likewise.
8275
8276 * auxv.h: New file.
8277 * auxv.c: New file.
8278 * Makefile.in (auxv_h): New variable.
8279 (COMMON_OBS): Add auxv.o here.
8280 (auxv.o): New target.
8281
8282 * corelow.c (core_xfer_partial): New function.
8283 (init_core_ops): Use it for core_ops.to_xfer_partial.
8284
8285 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
8286 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
8287 macro if that is defined.
8288
fa5281d0
DJ
82892004-02-01 Daniel Jacobowitz <drow@mvista.com>
8290
8291 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
8292 and check the specified thread for each breakpoint.
8293 * breakpoint.h (bpstat_stop_status): Update prototype.
8294 * infrun.c (handle_inferior_event): Update calls to
8295 bpstat_stop_status.
8296
26ee262d
DJ
82972004-02-01 Daniel Jacobowitz <drow@mvista.com>
8298
8299 * Makefile.in (cli-cmds.o): Add $(readline_h).
8300
d9b52655
DJ
83012004-02-01 Daniel Jacobowitz <drow@mvista.com>
8302
8303 * cli/cli-cmds.c: Include readline.h.
8304 (complete_command): Pass the start of the last word to
8305 complete_line.
8306
9709f61c
DJ
83072004-01-31 Daniel Jacobowitz <drow@mvista.com>
8308
8309 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
8310 argument, and change first argument to a CORE_ADDR.
8311 * breakpoint.h (bpstat_stop_status): Update prototype.
8312 * infrun.c (adjust_pc_after_break): Add a new comment.
8313 (handle_inferior_event): Update calls to bpstat_stop_status.
8314
4f1280bb
DJ
83152004-01-31 Daniel Jacobowitz <drow@mvista.com>
8316
8317 * breakpoint.h: Update copyright years.
8318
4fa8626c
DJ
83192004-01-31 Daniel Jacobowitz <drow@mvista.com>
8320
8321 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
8322 (bpstat_stop_status): Don't decrement PC.
8323 * breakpoint.h (software_breakpoint_inserted_here_p): Add
8324 prototype.
8325 * infrun.c (adjust_pc_after_break): New function.
8326 (handle_inferior_event): Call it, early. Remove later references
8327 to DECR_PC_AFTER_BREAK.
8328 (normal_stop): Add commentary.
8329
fad0733a
DJ
83302004-01-31 Daniel Jacobowitz <drow@mvista.com>
8331
8332 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
8333 2004-01-27 double-free fix.
8334
42cdca6c
MK
83352004-01-31 Mark Kettenis <kettenis@gnu.org>
8336
8337 * sparc-tdep.c (sparc_fetch_wcookie): New function.
8338 (sparc32_frame_prev_register): Handle StackGhost.
8339 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8340
932d5416
RM
83412004-01-29 Roland McGrath <roland@redhat.com>
8342
8343 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
8344 * configure: Regenerated.
8345
8346 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
8347 * Makefile.in (procfs.o): Add dep.
8348
47d3492a
AC
83492004-01-28 Andrew Cagney <cagney@redhat.com>
8350
8351 * tui/tui-stack.h: Update copyright.
8352 (struct frame_info): Add opaque declaration.
8353 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
8354 (tui_show_locator_content): Rename tuiShowLocatorContent.
8355 (tui_show_frame_info): Rename tuiShowFrameInfo.
8356 * tui/tui-stack.c: Update copyright. Update references.
8357 * tui/tui-winsource.c: Update references.
8358 * tui/tui-win.c: Update references.
8359 * tui/tui-layout.c: Update references.
8360 * tui/tui-hooks.c: Update copyright, update references.
8361 * tui/tui.c: Update copyright, update references.
8362 * tui/tui-disasm.c: Update references.
8363
5d51ca54
DC
83642004-01-28 David Carlton <carlton@kealia.com>
8365
8366 * dwarf2read.c (add_partial_structure): Use demangled name if
8367 namespace equals "".
8368
086ed43d
JB
83692004-01-27 Jim Blandy <jimb@redhat.com>
8370
8371 Clean up misapplied patch:
8372 * dwarf2read.c (determine_prefix): Change one of the two forward
8373 declarations for 'determine_prefix_aux' to a declaration for this.
8374 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
8375 argument to 'die_specification'.
8376
2a35147e
JB
8377 * dwarf2read.c (read_func_scope): Re-indent comment.
8378
a355c7de 83792004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 8380
a355c7de
AC
8381 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
8382 b->exp to NULL after freeing so that error during re-parsing or
8383 evaluation of expressions associated with breakpoint don't
8384 eventually lead to re-freeing of storage.
8385 Committed by Andrew Cagney.
8386
63ff5125
AC
83872004-01-27 Andrew Cagney <cagney@redhat.com>
8388
8389 * source.c (ambiguous_line_spec): Delete undefined declaration.
8390 * m32r-rom.c (m32r_set_board_address): Delete unused function.
8391 (m32r_set_server_address, m32r_set_download_path): Ditto.
8392 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
8393
e142c38c
DJ
83942004-01-27 Daniel Jacobowitz <drow@mvista.com>
8395
8396 * dwarf2read.c: Update calls to changed and renamed functions, and
8397 references to moved variables.
8398
8399 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
8400 language, language_defn, list_in_scope, and ftypes members.
8401 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
8402 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
8403 (baseaddr): Remove globals.
8404
8405 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
8406 (set_cu_language, die_is_declaration, die_specification)
8407 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
8408 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
8409 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
8410 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
8411
8412 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
8413 cu.list_in_scope. Don't initialize cu_header_offset.
8414 (add_partial_symbol): Add local baseaddr.
8415 (psymtab_to_symtab_1): Add local baseaddr. Use
8416 objfile->section_offsets for consistency. Don't initialize
8417 cu_header_offset; do initialize cu.header.offset and
8418 cu.list_in_scope.
8419 (read_file_scope, read_func_scope, read_lexical_block_scope)
8420 (dwarf_decode_lines, new_symbol): Add local baseaddr.
8421
c6e06ede
MC
84222004-01-27 Michael Chastain <mec.gnu@mindspring.com>
8423
fb328ecc 8424 * PROBLEMS: Add gdb/1516.
c6e06ede 8425
48184fd4
AC
84262003-12-29 Robert Millan <robertmh@gnu.org>
8427
8428 Patch committed by Andrw Cagney.
8429 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
8430 * configure.tgt: Match knetbsd*-gnu.
8431
c1321b30
AC
84322004-01-26 Andrew Cagney <cagney@redhat.com>
8433
f3699be3
AC
8434 * breakpoint.c (catch_command_1): Delete #ifdef code.
8435 (catch_fork_command_1): Delete #ifdef wrapper.
8436 (catch_exec_command_1): Ditto.
8437 (catch_load_command_1): Ditto.
8438 (catch_unload_command_1): Ditto.
8439
c1321b30
AC
8440 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
8441 (catch_breakpoint): Delete #if0ed function.
8442 (disable_catch_breakpoint): Ditto.
8443 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
8444 (disable_catch, enable_catch, delete_catch): Ditto.
8445
b4501125
AC
84462004-01-26 Andrew Cagney <cagney@redhat.com>
8447
8448 * remote.c (echo_check, quit_flag): Delete variables.
8449 (cisco_kernel_mode): Delete variable.
8450 (minitelnet_return, tty_input, escape_count): Delete variables.
8451 (remote_cisco_mode): Delete variable.
8452 (remote_cisco_open, remote_cisco_close): Delete function.
8453 (remote_cisco_mourn, remote_cisco_wait): Delete function.
8454 (init_remote_cisco_ops): Delete function.
8455 (_initialize_remote): Do not install "remote cisco" code.
8456 (read_frame): Delete cisco specific code.
8457 (remote_info_process): Delete function.
8458 (remote_wait): Delete cisco specific code.
8459 (remote_cisco_section_offsets): Delete function.
8460 (remote_cisco_objfile_relocate): Delete function.
8461 (remote_async_wait): Delete cisco specific code.
8462 (minitelnet, readtty, readsocket): Delete function.
8463
74055713
AC
84642004-01-26 Andrew Cagney <cagney@redhat.com>
8465
8466 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
8467 comments mentioning extract_returned_value_address.
8468 * infcmd.c (print_return_value): Update. Add comments on
8469 extract_returned_value_address.
8470 * stack.c (return_command): Add comments on
8471 extract_returned_value_address.
8472 * values.c: Update comment.
8473 * m32r-tdep.c: Update comment.
8474 * sparc-tdep.c: Update comment.
8475 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
8476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8477 * sh64-tdep.c (sh64_gdbarch_init): Update.
8478 * sh-tdep.c (sh_gdbarch_init): Update.
8479 * s390-tdep.c (s390_gdbarch_init): Update.
8480 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8481 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8482 * m68k-tdep.c (m68k_gdbarch_init): Update.
8483 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8484 * m32r-tdep.c (m32r_gdbarch_init): Update.
8485 * ia64-tdep.c (ia64_gdbarch_init): Update.
8486 * h8300-tdep.c (h8300_gdbarch_init): Update.
8487 * frv-tdep.c (frv_gdbarch_init): Update.
8488 * arm-tdep.c (arm_gdbarch_init): Update.
8489 * alpha-tdep.c (alpha_gdbarch_init): Update.
8490
a67af2b9
AC
84912004-01-26 Andrew Cagney <cagney@redhat.com>
8492
8493 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
8494 SYMBOL_LOCATION_FUNCS
8495 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
8496 "struct symbol_ops".
8497 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
8498 type to "struct symbol_ops".
8499 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
8500 (struct symbol): Replace ".aux_value.loc.funcs" and
8501 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
8502 (SYMBOL_OBJFILE): Delete macro.
8503 (SYMBOL_LOCATION_FUNCS): Delete macro.
8504 (SYMBOL_LOCATION_BATON): Update.
8505 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
8506 intead of SYMBOL_LOCATION_FUNCS.
8507 * ax-gdb.c (gen_var_ref): Ditto.
8508 * printcmd.c (address_info): Ditto.
8509 * findvar.c (read_var_value): Ditto.
8510 (symbol_read_needs_frame): Ditto.
8511
c034e007
AC
85122004-01-26 Andrew Cagney <cagney@redhat.com>
8513
8514 * dwarf2read.c (read_func_scope): Document frame-base hack.
8515
bb472c1e
MK
85162004-01-25 Mark Kettenis <kettenis@gnu.org>
8517
8518 * infcmd.c (print_return_value): Plug memory leak; delete
8519 ui_stream object. Rename argument `structure_return' to
8520 `struct_return'.
8521
c8e737d5
MK
85222004-01-25 Mark Kettenis <kettenis@gnu.org>
8523
f941662f
MK
8524 * infcmd.c (print_return_value): Wrap long lines.
8525 (finish_command_continuation, finish_command): Remove unused
8526 variable `funcaddr'. Fix some coding-standards problems.
8527
c558d81a 8528 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 8529 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
8530 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
8531 TDEP->fpregset to zero.
8532
bf1e5861 8533 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
8534 floating-point registers for traditional NetBSD core files.
8535 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
8536 TDEP->sizeof_fpregset here.
8537
4c72d57a
MK
85382004-01-25 Mark Kettenis <kettenis@gnu.org>
8539
566626fa
MK
8540 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
8541 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
8542 function with code split out from
8543 sparc32nbsd_sigcontext_frame_cache.
8544 (sparc32nbsd_sigcontext_frame_cache): Use
8545 sparc32nbsd_sigcontext_saved_regs.
8546 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
8547 OpenBSD.
8548 * sparcobsd-tdep.c: New file.
8549 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
8550 (sparcobsd-tdep.o): New dependency.
8551 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
8552 * config/sparc/obsd.mt: New file.
8553
4c72d57a
MK
8554 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
8555 TDEP->fpregset to be initialized to enable core file register
8556 sets.
8557
7e5e9f88
MK
85582004-01-24 Mark Kettenis <kettenis@gnu.org>
8559
f0f207fd 8560 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
8561 Add opaque declarations.
8562 (sparc64nbsd_sigcontext_saved_regs): New prototype.
8563 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
8564 function with code split out from
8565 sparc64nbsd_sigcontext_frame_cache.
8566 (sparc64nbsd_sigcontext_frame_cache): Use
8567 sparc64nbsd_sigcontext_saved_regs.
8568 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
8569 OpenBSD.
8570 * sparc64obsd-tdep.c: New file.
8571 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
8572 (sparc64obsd-tdep.o): New dependency.
8573 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
8574 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
8575 * config/sparc/obsd64.mt: New file.
8576
690668cc
MK
8577 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
8578 read the instruction at PC.
8579
7e5e9f88
MK
8580 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
8581 value of GDB_OSABI_DEFAULT.
8582 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
8583 instead of GDB_OSABI_NETBSD_AOUT.
8584
68b6dce9
NR
85852004-01-24 Nick Roberts <nick@nick.uklinux.net>
8586
8587 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
8588 copyright.
8589
080ce8c0
AC
85902004-01-23 Andrew Cagney <cagney@redhat.com>
8591
8592 * printcmd.c (display_command): Replace tui_set_display call with
8593 tui_set_layout_for_display_command.
8594 * tui/tui.h (enum tui_win_type): Define.
8595 (tui_set_layout): Delete declaration.
8596 (tui_set_layout_for_display_command): Rename set_tui_layout.
8597 * tui/tui-data.h (enum tui_layout_type): Define.
8598 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
8599 "tui.h".
8600 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
8601 (tui_default_win_height): Rename tuiDefaultWinHeight.
8602 (tui_default_win_viewport_height): Rename
8603 tuiDefaultWinViewportHeight.
8604 (tui_set_layout): RenametuiSetLayout.
8605 * tui/tui-layout.c: Update references.
8606 * tui/tui.c: Update references.
8607 * tui/tui-disasm.c: Update references.
8608
b368761e
DC
86092004-01-23 David Carlton <carlton@kealia.com>
8610
8611 Partial workaround for PR c++/1511:
8612 * cp-namespace.c: Include frame.h.
8613 (cp_lookup_transparent_type): New
8614 (cp_lookup_transparent_type_loop): New.
8615 * cp-support.h: Declare cp_lookup_transparent_type.
8616 * symtab.c (basic_lookup_transparent_type): Renamed from
8617 lookup_transparent_type.
8618 (lookup_transparent_type): Replace old body by a call to
8619 current_language->la_lookup_transparent_type.
8620 * symtab.h: Update copyright. Declare
8621 basic_lookup_transparent_type.
8622 * language.h: Update copyright.
8623 (struct language_defn): Add la_lookup_transparent_type.
8624 * language.c: Update copyright.
8625 (unknown_language_defn): Add basic_lookup_transparent_type.
8626 (auto_language_defn): Add basic_lookup_transparent_type.
8627 (local_language_defn): Add basic_lookup_transparent_type.
8628 * ada-lang.c: Update copyright.
8629 (ada_language_defn): Add basic_lookup_transparent_type.
8630 * c-lang.c: Update copyright.
8631 (c_language_defn): Add basic_lookup_transparent_type.
8632 (cplus_language_defn): Add basic_lookup_transparent_type.
8633 (asm_language_defn): Add basic_lookup_transparent_type.
8634 (minimal_language_defn): Add basic_lookup_transparent_type.
8635 * f-lang.c: Update copyright.
8636 (f_language_defn): Add basic_lookup_transparent_type.
8637 * jv-lang.c: Update copyright.
8638 (java_language_defn): Add basic_lookup_transparent_type.
8639 * m2-lang.c: Update copyright.
8640 (m2_language_defn): Add basic_lookup_transparent_type.
8641 * objc-lang.c: Update copyright.
8642 (objc_language_defn): Add basic_lookup_transparent_type.
8643 * p-lang.c: Update copyright.
8644 (p_language_defn): Add basic_lookup_transparent_type.
8645 * scm-lang.c: Update copyright.
8646 (scm_language_defn): Add basic_lookup_transparent_type.
8647 * Makefile.in (cp-namespace.o): Depend on frame.h.
8648
fdde2d81
DC
86492004-01-23 David Carlton <carlton@kealia.com>
8650
8651 Patch for PR c++/1520:
8652 * dwarf2read.c (read_func_scope): Set processing_current_prefix
8653 properly if we have a specification die.
8654 (determine_prefix_aux): Rename from determine_prefix.
8655 (determine_prefix): Like the old determine_prefix, but never
8656 returns NULL.
8657
5b828b6b
TR
86582004-01-23 Theodore A. Roth <troth@openavr.org>
8659
8660 * avr-tdep.c: Update copyright.
8661 (avr_iaddr_p): Delete unused function.
8662 (avr_saddr_p): Delete unused function.
8663
a1b8c067
DC
86642004-01-23 David Carlton <carlton@kealia.com>
8665
8666 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
8667 Fix for PR symtab/1534.
8668
f2cab569
MK
86692004-01-23 Mark Kettenis <kettenis@gnu.org>
8670
8671 * NEWS (New native configurations): Mention OpenBSD/sparc and
8672 OpenBSD/sparc64.
8673 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
8674 * configure.host: Likewise.
8675 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
8676 handler for OpenBSD.
8677 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
8678
642d8300
MK
86792004-01-22 Mark Kettenis <kettenis@gnu.org>
8680
89aac506
MK
8681 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
8682 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
8683
36662fde
MK
8684 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
8685 * cli/cli-cmds.c (shell_escape): Likewise.
8686
642d8300
MK
8687 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
8688 OpenBSD .note.openbsd.ident sections.
8689
fae299cd
DC
86902004-01-22 David Carlton <carlton@kealia.com>
8691
8692 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
8693 get_scope_pc_bounds.
8694 (read_file_scope): Ditto.
8695 (get_scope_pc_bounds): New function, produced by extracting code
8696 from the above two functions, consolidating it, and adding support
8697 for DW_TAG_namespace.
8698
a49d618c
MK
86992004-01-22 Mark Kettenis <kettenis@gnu.org>
8700
8701 * osabi.c (MAX_NOTESZ): New define.
8702 (check_note): New function.
8703 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
8704 check_note.
8705
fe61caab
RM
87062004-01-21 Roland McGrath <roland@redhat.com>
8707
8708 * MAINTAINERS (write after approval): Add myself.
8709
ec145965
EZ
87102004-01-21 Eli Zaretskii <eliz@gnu.org>
8711
8712 * utils.c (init_page_info): Move declarations of `rows' and
8713 `cols' before the __GO32__-specific code. Move the closing brace
8714 outside the #ifdef __GO32__..#endif block.
8715 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
8716
877522db
PB
87172004-01-21 Paul Brook <paul@codesourcery.com>
8718
8719 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
8720 BPSTAT_WHAT_CHECK_SHLIBS.
8721
dbf5be1c
PB
87222004-01-21 Paul Brook <paul@codesourcery.com>
8723
8724 * MAINTAINERS: Add myself to write-after-approval.
8725
81f08b92
AC
87262004-01-20 Andrew Cagney <cagney@redhat.com>
8727
5a1efed7
AC
8728 * ax-gdb.c (print_axs_value): Delete unused function.
8729 * jv-lang.c (java_lookup_type): Delete unused function.
8730 * cli/cli-dump.c (dump_filetype): Delete unused function.
8731 * remote-mips.c (remote_mips_insert_hw_breakpoint)
8732 (remote_mips_remove_hw_breakpoint): Delete unused functions.
8733 (mips_getstring): Delete unused function.
8734 (pmon_insert_breakpoint): Delete #if0ed function.
8735 (PMON_MAX_BP): Delete #if0ed MACRO.
8736 (mips_pmon_bp_info): Delete #if0ed variable.
8737 (pmon_remove_breakpoint): Delete #if0ed function.
8738 * monitor.c (monitor_write_even_block): Delete unused function.
8739 (monitor_write_memory_block): Delete #if0ed code.
8740 * dink32-rom.c (dink32_load): Delete unused function.
8741 (_initialize_dink32_rom): Delete #if0ed code.
8742 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
8743
b0a30fce
AC
8744 * tui/tui-command.c: Update references.
8745 * tui/tui-io.c: Update references.
8746 * tui/tui-command.h: Update copyright.
8747 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
8748
81f08b92
AC
8749 * source.c (ambiguous_line_spec): Delete never-defined function.
8750 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
8751 * gdbtypes.c (add_name, add_mangled_type): Ditto.
8752 * cli/cli-cmds.c (validate_comname): Ditto.
8753
65f05602
AC
8754 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
8755 "tui-data.h".
8756 (tui_set_disassem_content): Rename tuiSetDisassemContent.
8757 (tui_show_disassem): Rename tuiShowDisassem.
8758 (tui_show_disassem_and_update_source): Rename
8759 tuiVerticalDisassemScroll.
8760 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
8761 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
8762 * tui/tui.h: Update copyright.
8763 (enum tui_status): Define.
8764 * tui/tui-data.h (enum tui_scroll_direction): Define.
8765 * tui/tui-disasm.c: Update copyright. Update references.
8766 * tui/tui-winsource.c: Update copyright. Update references.
8767 * tui/tui-win.c: Update references.
8768 * tui/tui-layout.c: Update references.
8769
6bb0384f
AC
87702004-01-20 Andrew Cagney <cagney@redhat.com>
8771
8772 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
8773 sym2 to start of block.
8774
9175c9a3
MC
87752004-01-19 Michael Chastain <mec.gnu@mindspring.com>
8776
8777 * MAINTAINERS: Delete mmalloc.
8778 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
8779 * NEWS: Mention removal of --with-malloc.
8780 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
8781 * config.in: Regenerate.
8782 * configure: Regenerate.
6bb0384f
AC
8783 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
8784 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
8785 * gdbinit.in: Remove mmalloc.
8786 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
8787 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
8788 * config/i386/go32.mh: Likewise.
8789 * config/i386/interix.mh: Likewise.
8790 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
8791
4fcef00a
JJ
87922004-01-19 Jeff Johnston <jjohnstn@redhat.com>
8793
8794 * linespec.c (decode_variable, symtab_from_filename): Call
8795 error_silent with error message instead of throwing an exception
8796 directly.
8797 * defs.h (error_silent, error_output_message): Add prototypes.
8798 (catch_exceptions_with_msg): Ditto.
8799 * utils.c (error_silent, error_output_message): New functions.
8800 * top.c (catch_exceptions_with_msg): New function.
8801
8e94b928
NR
88022004-01-20 Nick Roberts <nick@nick.uklinux.net>
8803
8804 * mi/mi-cmds.h (enum print_values): Add definition.
8805
8806 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
8807 type and value for simple data types and just the name and type
8808 for complex ones, if required.
8809
8810 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
8811 children, if required.
8812
a02d6af8
KB
88132004-01-19 Kevin Buettner <kevinb@redhat.com>
8814
8815 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
8816 unused declarations.
8817
78a4a9b9
AC
88182004-01-19 Andrew Cagney <cagney@redhat.com>
8819
8820 * top.h (mapped_symbol_files): Delete declaration.
8821 * main.c (captured_main): Delete option "m" and "mapped".
8822 * objfiles.c (mapped_symbol_files): Delete variable.
8823 * symfile.c (symbol_file_command): Delete mmap code.
8824 (symbol_file_add_with_addrs_or_offsets): Ditto.
8825 (add_symbol_file_command, reread_separate_symbols): Ditto.
8826 * objfiles.h (OBJF_MAPPED): Delete.
8827 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
8828 (free_objfile) [USE_MMALLOC]: Ditto.
8829 (open_existing_mapped_file): Delete function.
8830 (open_mapped_file): Delete function.
8831 (map_to_file): Delete function.
8832
2dbd5e30
KB
88332004-01-19 Kevin Buettner <kevinb@redhat.com>
8834
8835 * infrun.c (step_into_function): Account for possible breakpoint
8836 adjustment when computing ``stop_func_start''.
8837
437b434f
KB
88382004-01-19 Kevin Buettner <kevinb@redhat.com>
8839
8840 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
8841 the region size against the size of a pointer, not the size of
8842 a register as given by DEPRECATED_REGISTER_SIZE.
8843
55fb0713
AC
88442004-01-19 Andrew Cagney <cagney@redhat.com>
8845
8846 * tui/tui-regs.h: Include "tui-data.h".
8847 (tuiFirstRegElementNoInLine): Delete declaration.
8848 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
8849 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
8850 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
8851 (tui_calculate_regs_column_count): Rename
8852 tuiCalculateRegsColumnCount.
8853 (tui_check_register_values): Rename tuiCheckRegisterValues.
8854 (tui_show_registers): Rename tuiShowRegisters.
8855 (tui_display_registers_from_line): Rename
8856 tuiDisplayRegistersFromLine.
8857 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
8858 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
8859 (tui_first_reg_element_no_inline): Rename
8860 tuiFirstRegElementNoInLine.
8861 * tui/tui-data.h: Update copyright.
8862 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
8863 * tui/tui-windata.c: Update copyright, update references.
8864 * tui/tui-regs.c: Update copyright, update references.
8865 * tui/tui-win.c: Update copyright, update references.
8866 * tui/tui-layout.c: Update copyright, update references.
fe61caab 8867
cebe9500
AC
88682004-01-18 Andrew Cagney <cagney@redhat.com>
8869
bcdf1568
AC
8870 * tui/tui-io.c: Update copyright.
8871 (key_is_end_sequence, key_is_backspace): New functions.
8872 (key_is_command_char, key_is_start_sequence): New function.
8873 (tui_getc): Update references.
8874 * tui/tui-io.h: Update copyright.
8875 (m_tuiStartNewLine): Delete macro.
8876 (m_isBackspace, m_isDeleteChar): Delete macros.
8877 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
8878 (m_isNextPage, m_isPrevPage): Delete macros.
8879 (m_isLeftArrow, m_isRightArrow): Delete macros.
8880 (m_isXdbStyleCommandChar): Delete macro.
8881 (key_is_start_sequence): Declare, replace m_isStartSequence.
8882 (key_is_end_sequence): Declare, replace m_isEndSequence.
8883 (key_is_backspace): Declare ,replace m_isBackspace.
8884 (key_is_command_char): Declare, replace m_isCommandChar.
8885 * tui/tui-command.c: Update copyright.
8886 (tuiDispatchCtrlChar): Update references.
8887
130d87e6
AC
8888 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
8889 tuiSourceWin.h.
8890
d7b2e967
AC
8891 * tui/tui-command.c: Rename tui/tuiCommand.c.
8892 * tui/tui-command.h: Rename tui/tuiCommand.h.
8893 * tui/tui-data.c: Rename tui/tuiData.c.
8894 * tui/tui-data.h: Rename tui/tuiData.h.
8895 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
8896 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
8897 * tui/tui-io.c: Rename tui/tuiIO.c.
8898 * tui/tui-io.h: Rename tui/tuiIO.h.
8899 * tui/tui-layout.c: Rename tui/tuiLayout.c.
8900 * tui/tui-layout.h: Rename tui/tuiLayout.h.
8901 * tui/tui-regs.c: Rename tui/tuiRegs.c.
8902 * tui/tui-regs.h: Rename tui/tuiRegs.h.
8903 * tui/tui-source.c: Rename tui/tuiSource.c.
8904 * tui/tui-source.h: Rename tui/tuiSource.h.
8905 * tui/tui-stack.c: Rename tui/tuiStack.c.
8906 * tui/tui-stack.h: Rename tui/tuiStack.h.
8907 * tui/tui-win.c: Rename tui/tuiWin.c.
8908 * tui/tui-win.h: Rename tui/tuiWin.h.
8909 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
8910 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
8911 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
8912 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
8913 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
8914 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
8915 * tui/tui-file.c: Update includes.
8916 * tui/tui-hooks.c: Update includes.
8917 * tui/tui-interp.c: Update includes.
8918 * tui/tui.c: Update includes.
8919 * Makefile.in: Update all tui/ dependencies.
8920 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
8921
b2100910
AC
8922 * Makefile.in: Update copyright. Update dependencies.
8923
cebe9500
AC
8924 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
8925 problem.
8926
c6f0559b
AC
89272004-01-18 Andrew Cagney <cagney@redhat.com>
8928
43e9390b
AC
8929 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
8930 instead of register_gdbarch_init.
8931
c6f0559b
AC
8932 * remote-sds.c (tohex): Delete unused function. Update copyright.
8933 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
8934 * v850-tdep.c (v850_register_virtual_size): Ditto.
8935 * target.c (normal_target_post_startup_inferior): Ditto.
8936 * source.c (ambiguous_line_spec): Ditto.
8937 * remote.c (adapt_remote_get_threadinfo): Ditto.
8938 * mi/mi-out.c (out_field_fmt): Ditto.
8939 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
8940 (output_control_change_notification): Ditto.
8941 * m68k-tdep.c (m68k_register_byte): Ditto.
8942 (m68k_remote_breakpoint_from_pc): Ditto.
8943 * ui-out.c (init_ui_out_state): Delete unused declaration.
8944 * stabsread.c (search_value): Ditto.
8945 * mi/mi-cmd-env.c (env_cli_command): Ditto.
8946 * maint.c (print_section_table): Ditto.
8947 * infrun.c (set_follow_fork_mode_command): Ditto.
8948
a8504492
MK
89492004-01-18 Mark Kettenis <kettenis@gnu.org>
8950
8951 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
8952 DW_CFA_def_cfa_exporession. Add support for
8953 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
8954 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
8955
0bd8997e
AC
89562004-01-18 Andrew Cagney <cagney@redhat.com>
8957
8958 * ocd.c: Update copyright.
8959 (bdm_read_register_command): Delete unused function.
8960 (_initialize_remote_ocd): Delete commented out reference.
8961 (get_quoted_char, reset_packet): Delete #if0ed function.
8962 (output_packet, put_quoted_char): Delete #if0ed function.
8963 (stu_put_packet, stu_get_packet): Delete #if0ed function.
8964 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
8965 (BDM_BREAKPOINT): Delete #if0ed macro.
8966 (remote_timeout): Delete #if0ed variable.
8967
31bb40e4
MK
89682004-01-18 Mark Kettenis <kettenis@gnu.org>
8969
8970 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
8971 (core-sol2.o): Remove dependency.
8972 * core-sol2.c: Remove file.
8973
887432a5
AC
89742004-01-17 Andrew Cagney <cagney@redhat.com>
8975
8976 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
8977 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
8978 enums.
8979
29182b13
DJ
89802004-01-17 Daniel Jacobowitz <drow@mvista.com>
8981
8982 * remote.c: Update copyright years.
8983
2963ee1d
DJ
89842004-01-17 Daniel Jacobowitz <drow@mvista.com>
8985
8986 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
8987
79d45cd4
AC
89882004-01-17 Andrew Cagney <cagney@redhat.com>
8989
ee300cd4
AC
8990 * mdebugread.c: Update copyright.
8991 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
8992 (parse_type, parse_procedure): Ditto.
8993 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
8994
fcacc9c2
AC
8995 * cris-tdep.c (cris_store_struct_return): Put back accidently
8996 deleted function.
8997
79d45cd4
AC
8998 * gdbarch.sh: Update copyright year.
8999 * gdbarch.h, gdbarch.c: Re-generate.
9000
b263358a
DJ
90012004-01-17 Daniel Jacobowitz <drow@mvista.com>
9002
9003 Suggested by George Anzinger.
9004 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
9005 correct stack offset. Include unknown opcode numbers in the error
9006 message.
9007
931aecf5
AC
90082004-01-17 Andrew Cagney <cagney@redhat.com>
9009
9010 * x86-64-tdep.c (x86_64_init_abi): No need to clear
9011 extract_struct_value_address, i386 does not set it.
9012 * sparc64-tdep.c (sparc64_init_abi): Do not set
9013 extract_struct_value_address, never called.
9014 (sparc64_extract_struct_value_address): Delete function.
9015 * m68hc11-tdep.c: Update copyright.
9016 (m68hc11_gdbarch_init): Delete redundant assignment of
9017 extract_struct_value_address.
9018 * i386-tdep.c: Update copyright.
9019 (i386_gdbarch_init): Do not set extract_struct_value_address,
9020 never called.
9021 (i386_extract_struct_value_address): Delete function.
9022 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
9023 extract_struct_value_address, never called.
9024 (sparc32_extract_struct_value_address): #if 0 function. Add
9025 comments explaining its future.
9026
756fe439
DJ
90272004-01-17 Daniel Jacobowitz <drow@mvista.com>
9028
9029 * arm-tdep.c (arm_write_pc): New function.
9030 (arm_gdbarch_init): Call set_gdbarch_write_pc.
9031
e74f0f02
DJ
90322004-01-17 Daniel Jacobowitz <drow@mvista.com>
9033
9034 * breakpoint.c (must_shift_inst_regs): Delete.
9035 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
9036 and SHIFT_INST_REGS.
9037 * infcmd.c (step_1, step_1_continuation): Delete references to
9038 SHIFT_INST_REGS.
9039 * infrun.c (keep_going): Likewise.
9040 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
9041 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
9042
b6cb9035
AC
90432004-01-17 Andrew Cagney <cagney@redhat.com>
9044
444a1e2e
AC
9045 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9046 * gdbarch.h, gdbarch.c: Re-generate.
9047 * infcmd.c (print_return_value): Delete reference to
9048 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
9049
def7e6ed
AC
9050 * cris-tdep.c (cris_gdbarch_init): Do not set
9051 deprecated_extract_struct_value_address.
9052
07be497a
AC
9053 * xstormy16-tdep.c: Update copyright.
9054 (xstormy16_extract_struct_value_address): Update to current
9055 extract struct value address interface.
9056 (xstormy16_gdbarch_init): Set extract_struct_value_address.
9057 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
9058 current extract struct value address interface.
9059 (sh64_gdbarch_init): Set extract_struct_value_address.
9060
6b4d5c91
AC
9061 * cris-tdep.c: Update copyright.
9062 (cris_extract_struct_value_address): Delete function.
9063 (struct_return_address): Delete variable.
9064 (cris_store_struct_return): Do not set struct_return_address.
9065
464e0365
AC
9066 * mcore-tdep.c: Update copyright.
9067 (mcore_extract_struct_value_address): Delete function. Update
9068 comments.
9069 (mcore_gdbarch_init): Update.
9070 * mn10300-tdep.c: Update copyright.
9071 (mn10300_extract_struct_value_address): Delete function.
9072 (mn10300_gdbarch_init): Update.
9073 * v850-tdep.c: Update copyright.
9074 (v850_extract_struct_value_address): Delete.
9075 (v850_gdbarch_init): Update.
9076 * ns32k-tdep.c: Update copyright.
9077 (ns32k_extract_struct_value_address): Delete.
9078 (ns32k_gdbarch_init): Update.
9079 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
9080 (hppa_gdbarch_init): Update.
9081 * vax-tdep.c: Update copyright.
9082 (vax_extract_struct_value_address): Delete.
9083 (vax_gdbarch_init): Update.
9084
afb18d0f
AC
9085 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
9086 * gdbarch.h, gdbarch.c: Re-generate.
9087 * procfs.c (procfs_fetch_registers): Delete reference to
9088 DEPRECATED_NPC_REGNUM.
9089 (procfs_store_registers): Ditto.
9090 * regcache.c (generic_target_write_pc): Simplify.
9091 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
9092
a698f53e
AC
9093 * core-sol2.c (fetch_core_registers): Replace
9094 DEPRECATED_NPC_REGNUM with equivalent tdep value.
9095
adc11376
AC
9096 * hppa-tdep.c: Update copyright year.
9097 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
9098 NPC_REGNUM.
9099 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
9100
b6cb9035
AC
9101 * mips-tdep.c (mips_write_pc): New function.
9102 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
9103 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
9104 (mips_find_saved_regs, mips_software_single_step: Ditto.
9105 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
9106 mips_init_extra_frame_info, mips_pop_frame): Ditto.
9107
6d82d43b
AC
91082004-01-17 Andrew Cagney <cagney@redhat.com>
9109
9110 * mips-tdep.c: Re-indent. Group functions by ABI.
9111
71bd6bd4
AC
91122004-01-17 Andrew Cagney <cagney@redhat.com>
9113
9114 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
9115 * gdbarch.c: Re-generate.
9116 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9117 DECR_PC_AFTER_BREAK to zero.
9118 * vax-tdep.c (vax_gdbarch_init): Ditto.
9119 * v850-tdep.c (v850_gdbarch_init): Ditto.
9120 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
9121 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
9122 * sh-tdep.c (sh_gdbarch_init): Ditto.
9123 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9124 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9125 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9126 * mips-tdep.c (mips_gdbarch_init): Ditto.
9127 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9129 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
9130 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9131 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9132 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9133 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9134 * frv-tdep.c (frv_gdbarch_init): Ditto.
9135 * cris-tdep.c (cris_gdbarch_init): Ditto.
9136 * avr-tdep.c (avr_gdbarch_init): Ditto.
9137 * arm-tdep.c (arm_gdbarch_init): Ditto.
9138 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
9139
a02abb62
JB
91402004-01-17 J. Brobecker <brobecker@gnat.com>
9141
9142 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
9143 Delete, no longer used.
9144 (read_subrange_type): New function, mostly extracted from
9145 read_array_type().
9146 (read_array_type): Replace extracted code by call to
9147 read_subrange_type().
9148 (dwarf2_get_attr_constant_value): New function.
9149 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
9150 (add_partial_symbol): Likewise.
9151 (process_die): Likewise.
9152 (new_symbol): Likewise.
9153 (read_type_die): Likewise.
9154
cf5b2f1b
AC
91552004-01-16 Andrew Cagney <cagney@redhat.com>
9156
9157 * symfile.c: Update copyright year.
9158 (compare_symbols): Delete unused function.
9159 * stabsread.c: Update copyright year.
9160 (lrs_general_complaint): Delete unused function.
9161 (ref_search_value): Ditto.
9162 (get_substring): Delete declaration.
9163 * sh64-tdep.c: Update copyright year.
9164 (sh64_get_gdb_regnum): Delete unused function.
9165 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
9166 Delete unused function.
9167
d33b9831
MK
91682004-01-17 Mark Kettenis <kettenis@gnu.org>
9169
9170 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
9171 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
9172
7aea86e6
AC
91732004-01-16 Andrew Cagney <cagney@redhat.com>
9174
9175 Changes from Peter Schauer.
9176 * rs6000-tdep.c: Update copyright year.
9177 (rs6000_push_dummy_call): Update the stack pointer before
9178 accessing the corresponding stack region.
9179 * rs6000-nat.c: Update copyright year.
9180 (set_host_arch): Set "info.abfd" to "exec_bfd".
9181
26b0da32
MK
91822004-01-15 Mark Kettenis <kettenis@gnu.org>
9183
9184 * blockframe.c: Update copyright year.
9185 (inside_entry_func): Don't treat a zero PC specially.
9186
86fbe6cc
EZ
91872004-01-14 Elena Zannoni <ezannoni@redhat.com>
9188
9189 * gcore.c (gcore_copy_callback): Use paddr_d to print size
9190 variable.
9191 (gcore_create_callback): Ditto. Skip any memory segment that has
9192 no permissions set.
9193
63d06c5c
DC
91942004-01-14 David Carlton <carlton@kealia.com>
9195
9196 Change symbols for C++ nested types to contain the fully qualified
9197 name, if possible. (At least in the DWARF-2 case.) Partial fix
9198 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
9199 c++/895.
9200 * c-exp.y (qualified_type): Handle types nested within classes.
9201 * cp-namespace.c: Update comments.
9202 (cp_set_block_scope): Delete #if 0.
9203 (cp_lookup_nested_type): Handle types nested within classes.
9204 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
9205 when appropriate.
9206 (add_partial_symbol): Add the name of the enclosing namespace to
9207 types.
9208 (pdi_needs_namespace): New.
9209 (add_partial_namespace): Tweak comment.
9210 (add_partial_structure): New.
9211 (psymtab_to_symtab_1): Initialize processing_current_prefix
9212 here...
9213 (process_die): instead of here.
9214 (read_structure_scope): Try to figure out the name of the class or
9215 namespace that the structure might be defined within.
9216 (read_enumeration): Generate fully-qualified names, if possible.
9217 (read_namespace): Don't set name to NULL.
9218 (die_specification): New.
9219 (new_symbol): Generate fully-qualified names for types.
9220 (read_type_die): Determine appropriate prefix.
9221 (determine_prefix): New.
9222 (typename_concat): New.
9223 (class_name): New.
9224 * valops.c (value_aggregate_elt): Pass NOSIDE to
9225 value_struct_elt_for_reference.
9226 (value_struct_elt_for_reference): Make static, add NOSIDE
9227 parameter, call value_maybe_namespace_elt as a last resort.
9228 (value_namespace_elt): Break out code into
9229 value_maybe_namespace_elt.
9230 (value_maybe_namespace_elt): New.
9231
87783b8b
AC
92322004-01-12 Andrew Cagney <cagney@redhat.com>
9233
9234 * mips-tdep.c (mips_convert_register_p): Handle both raw and
9235 cooked floating-point registers.
9236 (mips_gdbarch_init): Set convert_register_p, register_to_value,
9237 and value_to_register.
9238
6503b91e
AC
92392004-01-13 Andrew Cagney <cagney@redhat.com>
9240
9241 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
9242 * gdbarch.c: Re-generate.
9243 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9244 FUNCTION_START_OFFSET.
9245 * v850-tdep.c (v850_gdbarch_init): Ditto.
9246 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
9247 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
9248 * sh-tdep.c (sh_gdbarch_init): Ditto.
9249 * s390-tdep.c (s390_gdbarch_init): Ditto.
9250 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9251 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9252 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9253 * mips-tdep.c (mips_gdbarch_init): Ditto.
9254 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9255 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9256 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9257 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
9258 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9259 * i386-tdep.c (i386_gdbarch_init): Ditto.
9260 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9261 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9262 * frv-tdep.c (frv_gdbarch_init): Ditto.
9263 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9264 * cris-tdep.c (cris_gdbarch_init): Ditto.
9265 * avr-tdep.c (avr_gdbarch_init): Ditto.
9266 * arm-tdep.c (arm_gdbarch_init): Ditto.
9267 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9268
ea1dd7bc
DJ
92692004-01-13 Daniel Jacobowitz <drow@mvista.com>
9270
9271 * infrun.c (follow_fork_mode_ask): Remove.
9272 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
9273 (follow_fork): Simplify and remove internal error for
9274 follow_fork_mode_ask.
9275 (_initialize_infrun): Update "set follow-fork-mode" help text.
9276
0f0cffd2
AC
92772004-01-13 Andrew Cagney <cagney@redhat.com>
9278
9279 * configure.in: Update copyright year.
9280 (build_warnings): Add -Wunused-label.
9281 * configure: Re-generate.
9282
de38af99
AC
92832004-01-12 Andrew Cagney <cagney@redhat.com>
9284
954a7fba
AC
9285 * exec.h (exec_ops): Make "extern".
9286
de38af99
AC
9287 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
9288 the function is void.
9289 (mips_pseudo_register_write): Ditto.
9290
1a111ce3
AC
92912004-01-12 Andrew Cagney <cagney@redhat.com>
9292
9293 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
9294 call. Never defined.
9295 * sparc-tdep.h (struct frame_info): Add opaque declaration.
9296 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
9297 (struct sparc_gregset, struct regcache): Ditto.
9298 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
9299
48efe704
AC
93002004-01-12 Andrew Cagney <cagney@redhat.com>
9301
9302 * mi/ChangeLog: Delete file. Renamed to ...
9303 * mi/ChangeLog-1999-2003: New file.
9304 * tui/ChangeLog: Delete file. Renamed to ...
9305 * tui/ChangeLog-1998-2003: New file.
fe61caab 9306
a54124c5
MK
93072004-01-11 Mark Kettenis <kettenis@gnu.org>
9308
2ca62865
MK
9309 * sparc64nbsd-tdep.c: Include "regset.h".
9310 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
9311 Remove variables.
9312 (fetch_core_registers): Remove function.
9313 (sparc64nbsd_core_fns): Remove variable.
9314 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
9315 functions.
9316 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
9317 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
9318 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
9319
ca9d58e9
MK
9320 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
9321 sparc_extract_struct_value_address.
9322 (sparc32_gdbarch_init): Set extract_struct_value_address.
9323 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
9324 function.
9325 (sparc64_init_abi): Set extract_struct_value_address. Don't set
9326 return_value_on_stack.
9327
3cc87ec0
MK
9328 * NEWS: Mention that %cs and %ss have been added to the AMD64
9329 configurations
9330
5bf00f29
MK
9331 * frame.c: Update copyright year.
9332 (get_prev_frame): Improve comment.
9333
4f7ec84e
MK
9334 * sparc64fbsd-tdep.c: Include "regset.h".
9335 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
9336 Remove variables.
9337 (fetch_core_registers): Remove function.
9338 (sparc64fbsd_core_fns): Remove variable.
9339 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
9340 functions.
9341 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
9342 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 9343 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 9344
4e7b0cd3
MK
9345 * sparcnbsd-tdep.c: Include "regset.h".
9346 (fetch_core_registers): Remove function.
9347 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
9348 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
9349 functions.
9350 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
9351 TDEP->fpregset.
46b58ce9 9352 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 9353
a54124c5
MK
9354 * sparc-tdep.h (struct regset): Provide opaque declaration.
9355 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
9356 fpregset and sizeof_fpregset members.
9357 * sparc-tdep.c (struct regset): Provide opaque declaration.
9358 (sparc_regset_from_core_section): New function.
9359 (sparc32_gdbarch_init): Initialize TDEP->gregset,
9360 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
9361 Set regset_from_core_section when appropriate.
9362
29ff87c5
MK
93632004-01-10 Mark Kettenis <kettenis@gnu.org>
9364
79b1ab3d
MK
9365 * x86-64-tdep.c (amd64_non_pod_p): New function.
9366 (amd64_classify_aggregate): Return class memory for non-POD
9367 C++ structure types.
9368
6470d250
MK
9369 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
9370 argument. Use it to reserve a register if necessary.
9371 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
9372 amd64_push_arguments.
9373
562c50c2
MK
9374 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
9375
af233647
MK
9376 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
9377 register numbers in comments.
9378 * x86-64-tdep.h: Update copyright year.
9379 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
9380 Adjust for addition of %cs and %ss.
9381 * amd64fbsd-nat.c: Update copyright year.
9382 (reg_offset): Add register offsets for %cs and %ss.
9383 * amd64fbsd-tdep.c: Update copyright year.
9384 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
9385 (amd64fbsd_sc_reg_offset): Likewise.
9386 * x86-64-linux-nat.c: Update copyright year.
9387 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
9388 and %ss.
9389 * amd64nbsd-nat.c: Update copyright year.
9390 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
9391 * amd64nbsd-tdep.c: Update copyright year.
9392 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
9393 * x86-64-linux-tdep.c: Update copyright year.
9394 (user_to_gdb_regmap): Add mapping for %cs and %ss.
9395 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
9396 * regformats/reg-x86-64.dat: Add %cs and %ss.
9397
29ff87c5
MK
9398 * blockframe.c (inside_entry_func): Reformat. Introduce new local
9399 variables to prevent long lines. Update comments to reflect
9400 reality.
9401
38d518c9
EZ
94022004-01-09 David Carlton <carlton@kealia.com>
9403
9404 Checked in by Elena Zannoni <ezannoni@redhat.com>.
9405 * dwarf2read.c (read_namespace): Pull out name-generating code
9406 into namespace_name. Rename previous_namespace to previous_prefix
9407 and processing_current_namespace to processing_current_prefix..
9408 (namespace_name): New function.
9409 (add_partial_symbol): Substitute uses of pdi->name with
9410 actual_name.
9411 * cp-support.h: Rename processing_current_namespace to
9412 processing_current_prefix.
9413 Update copyright year.
9414 * cp-namespace.c: Rename processing_current_namespace to
9415 processing_current_prefix.
9416 Update copyright year.
fe61caab 9417
1e4728e7
AC
94182004-01-09 Andrew Cagney <cagney@redhat.com>
9419
9420 * jv-valprint.c, ser-unix.c: Add missing copyright years.
9421
c77c642a
MK
94222004-01-09 Mark Kettenis <kettenis@gnu.org>
9423
9424 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
9425 complaining.
9426 (process_one_symbol): Deal with N_PATCH stabs.
9427
b44e9041
EZ
94282004-01-09 Elena Zannoni <ezannoni@redhat.com>
9429
9430 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
9431 ifdeffed code.
9432 Update copyright year.
38d518c9 9433
eccfb640
MC
94342004-01-08 Michael Chastain <mec.gnu@mindspring.com>
9435
9436 * config/pa/tm-hppa.h: Update extern declarations for
9437 hppa32_hpux_frame_saved_pc_in_sigtramp,
9438 hppa32_hpux_frame_base_before_sigtramp, and
9439 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
9440
848c5feb
MC
94412004-01-08 Michael Chastain <mec.gnu@mindspring.com>
9442
9443 * config/pa/tm-hppah.h: Update copyright years.
9444
3cc5d663
AC
94452004-01-08 Andrew Cagney <cagney@redhat.com>
9446
9447 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
9448 (mips_o32_reg_struct_has_addr): Delete function.
9449 (mips_gdbarch_init): Update.
9450 (mips_extract_struct_value_address): Delete function.
9451
bfec0b41
JJ
94522004-01-08 David Mosberger <davidm@hpl.hp.com>
9453
9454 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
9455 reality.
9456
16e109ca
AC
94572004-01-07 Andrew Cagney <cagney@redhat.com>
9458
6214a8a1
AC
9459 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
9460 architecture's elf flags (when available).
9461
8d5838b5
AC
9462 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
9463 FPU to the start, check the MIPS FPU when looking for an old
9464 architecture.
9465 (set_mipsfpu_single_command): Update the architecture.
9466 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
9467
480d3dd2
AC
9468 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
9469 (mips_mask_address_p): Add "tdep" parameter.
9470 (show_mask_address, mips_addr_bits_remove): Update.
9471 (mips_dump_tdep): Update.
9472 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
9473 (MIPS_STACK_ARGSIZE): Delete macro.
9474 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
9475 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
9476 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
9477 (mips_dump_tdep): Update.
9478 (MIPS_SAVED_REGSIZE): Delete macro.
9479 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
9480 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
9481 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
9482 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
9483 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
9484 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
9485 (mips_pop_frame, return_value_location): Update.
9486 (mips_n32n64_return_value, mips_dump_tdep): Update.
9487
ec03c1ac
AC
9488 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
9489 MIPS ABI.
9490
16e109ca
AC
9491 * mips-tdep.c: Update copyright.
9492 (mips_gdbarch_init): Merge two code blocks handling the register
9493 name and number layout.
9494
15255275
MS
94952004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
9496
9497 * tracepoint.c (validate_actionline): Fix segv at EOF
9498
9f9057da
MC
94992004-01-07 Michael Chastain <mec.gnu@mindspring.com>
9500
9501 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
9502 properly for static fields.
9503
0127c0d3 95042004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 9505 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
9506
9507 * disasm.c: Update copyright to include 2004.
9508 (do_mixed_source_and_assembly): For uiout asm list
9509 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 9510 NULL and do so prior to loop. Only reset when we close off
0127c0d3 9511 the tuple/list. Move check for whether to close off the
fe61caab 9512 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
9513 on each loop iteration.
9514
5269965e
AC
95152004-01-05 Andrew Cagney <cagney@redhat.com>
9516
54f1137d
AC
9517 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
9518 should be a switch case and not a label.
9519 * mips-tdep.c (mips32_next_pc): Delete unused labels
9520 "greater_equal_branch" and "less_zero_branch".
9521 * jv-valprint.c (java_print_value_fields): Delete unused label
9522 "flush_it".
9523
5269965e
AC
9524 * target.c (unpush_target): Only close a target that is in the
9525 target stack.
9526
dbc22fa1
MK
95272004-01-05 Mark Kettenis <kettenis@gnu.org>
9528
9515395e
MK
9529 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
9530 address from [sp + 64] instead of %o2.
9531
dbc22fa1
MK
9532 * frame.c (get_prev_frame): Don't try to unwind the PC. This
9533 fixes PR backtrace/1476.
9534
5439edaa
AC
95352004-01-05 Andrew Cagney <cagney@redhat.com>
9536
9537 * libunwind-frame.h (struct frame_id): Add opaque declaration,
9538 move to start of file.
9539 * i386-tdep.h (struct regcache): Add opaque declaration.
9540 * config/ia64/nm-linux.h (struct target_ops): Add opaque
9541 declaration.
9542 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
9543 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
9544 * win32-nat.c (fake_create_process): Use ISO C style definition.
9545 * stabsread.c (define_symbol): Delete #ifndef
9546 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
9547 stabs_argument_has_addr call, macro never defined.
9548
19061abe
MC
95492004-01-04 Michael Chastain <mec.gnu@mindspring.com>
9550
9551 * op50-rom.c: Delete.
9552 * w89k-rom.c: Delete.
9553 * Makefile.in: Remove references.
9554
e53bef9f
MK
95552004-01-04 Mark Kettenis <kettenis@gnu.org>
9556
9557 * x86-64-tdep.c: Update copyright year.
9558 (struct amd64_register_info): Rename from x86_64_register_info.
9559 (amd64_register_info): Rename from x86_64_register_info.
9560 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
9561 (amd64_register_name): Rename from x86_64_register_name.
9562 (amd64_register_type): Rename from x86_64_register_type.
9563 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
9564 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
9565 (amd64_dwarf_reg_to_regnum): Rename from
9566 x86_64_dwarf_reg_to_regnum.
9567 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
9568 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
9569 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
9570 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
9571 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
9572 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
9573 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
9574 (amd64_frame_cache): Rename from x86_64_frame_cache.
9575 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
9576 (amd64_frame_prev_register): Rename from
9577 x86_64_frame_prev_register.
9578 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
9579 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
9580 (amd64_sigtramp_frame_cache): Rename from
9581 x86_64_sigtramp_frame_cache.
9582 (amd64_sigtramp_frame_prev_register): Rename from
9583 x86_64_sigtramp_frame_prev_register.
9584 (amd64_sigtramp_frame_unwind): Rename from
9585 x86_64_sigtramp_frame_unwind.
9586 (amd64_sigtramp_frame_sniffer): Rename from
9587 x86_64_sigtramp_frame_sniffer.
9588 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
9589 (amd64_frame_base): Rename from x86_64_frame_base.
9590 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
9591 (amd64_frame_align): Rename from x86_64_frame_align.
9592 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
9593 (amd64_regset_from_core_section): Rename from
9594 x86_64_regset_from_core_section.
9595 (x86_64_init_abi): Update comments.
9596
fca6aa58
NR
95972004-01-04 Nick Roberts <nick@nick.uklinux.net>
9598
9599 * MAINTAINERS (write after approval): Add myself.
9600
8ada74e3
MK
96012004-01-04 Mark Kettenis <kettenis@gnu.org>
9602
9603 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9604 `float' arguments.
9605
5154b0cd
MK
96062004-01-04 Mark Kettenis <kettenis@gnu.org>
9607
9608 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
9609 such that it mentions a specific version of GCC that exhibits this
9610 bug.
9611
fb316966
MK
96122004-01-03 Mark Kettenis <kettenis@gnu.org>
9613
200cc553
MK
9614 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
9615 structure that has a single `float' member, store it in %f1 in
9616 addition to %f0.
9617
e226a4a0
MK
9618 * sparc-sol2-nat.c: Add missing '\'.
9619
b9d4c5ed
MK
9620 * sparc-tdep.c (sparc32_return_value): New function.
9621 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
9622 Remove functions.
9623 (sparc32_gdbarch_init): Set return_value, don't set
9624 extract_return_value, store_return_value, use_struct_convention
9625 and return_value_on_stack.
9626
fb316966
MK
9627 * sparc-sol2-nat.c: Add missing ')'.
9628
1af510a8
JB
96292004-01-03 J. Brobecker <brobecker@gnat.com>
9630
9631 * infrun.c (handle_step_into_function): New function.
9632 (handle_inferior_event): Extract out some code into the new
9633 function above.
9634
5cf4d23a
JB
96352004-01-03 J. Brobecker <brobecker@gnat.com>
9636
9637 * infrun.c (handle_inferior_event): Move the declaration of
9638 real_stop_pc inside the if blocks where it is used.
9639
60af1db2
MK
96402004-01-03 Mark Kettenis <kettenis@gnu.org>
9641
9642 * sparc64-tdep.c (sparc64_16_byte_align_p)
9643 (sparc64_store_floating_fields, sparc64_store_floating_fields):
9644 Use check_typedef to get subtypes of structures and unions.
9645 (sparc64_store_return_value): Fix calculation of the appropriate
9646 offset into VALBUF when storing a structure or union.
9647 (sparc64_return_value): New function.
9648 (sparc64_use_struct_convention): Remove function.
9649 (sparc64_init_abi): Set return_value, don't set
9650 extract_return_value, store_return_value and
9651 use_struct_convention.
9652
1a901d3f
EZ
96532004-01-03 Eli Zaretskii <eliz@elta.co.il>
9654
9655 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
9656 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
9657 gdb/config/alpha/xm-alphaosf.h,
9658 gdb/config/powerpc/tm-ppcle-eabi.h,
9659 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
9660 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
9661 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
9662 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
9663 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
9664 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
9665 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
9666 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
9667 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
9668 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
9669 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
9670 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
9671 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
9672 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
9673 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
9674 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
9675 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
9676 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
9677 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
9678 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
9679 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
9680 Remove lines for .cvsignore files.
9681
ef52e463
JB
96822004-01-03 J. Brobecker <brobecker@gnat.com>
9683
9684 * infrun.c: Back out the previous change.
9685
cb1bf9dc
MK
96862004-01-03 Mark Kettenis <kettenis@gnu.org>
9687
f0424ef6
MK
9688 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
9689 sparc-*-sunos4* to the list of REMOVED configurations.
9690
cb1bf9dc
MK
9691 * configure.tgt: Add back sparc-*-vxworks*.
9692 * remote-vxsparc.c: Remove all includes except for "defs.h",
9693 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
9694 Include "sparc-tdep.h".
9695 (SPARC_R_G1): New define.
9696 (vxsparc_gregset): New variable.
9697 (ext_format_sparc): Remove extern declaration.
9698 (vx_read_register): Rewrite to use sparc32_supply_gregset and
9699 sparc32_supply_fpregset.
9700 (vx_write_register): Rewrite to use sparc32_collect_gregset,
9701 sparc_collect_rwindow and sparc32_collect_fpregset.
9702 * config/sparc/tm-vxworks.h: New file, based on recently removed
9703 tm-vxsparc.h.
9704 * config/sparc/vxworks.mt: New file, based on recently removed
9705 vxworks.mt.
fe61caab 9706
5e938f9f
JB
97072004-01-03 J. Brobecker <brobecker@gnat.com>
9708
9709 * infrun.c (handle_step_into_function): New function.
9710 (handle_inferior_event): Extract out some code into the new
9711 function above.
9712
386c036b
MK
97132004-01-02 Mark Kettenis <kettenis@gnu.org>
9714
9715 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
9716 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
9717 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
9718 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
9719 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
9720 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
9721 (sparc_nat_h): New variable.
9722 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
9723 (tm-sun4os4.h): Remove dependency.
9724 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
9725 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
9726 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
9727 sparc-tdep.o): Update dependencies.
9728 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
9729 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
9730 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
9731 dependencies.
9732 * configure.host: Remove existing sparc-*-lynxos*,
9733 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
9734 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
9735 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
9736 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
9737 triplets.
9738 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
9739 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
9740 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
9741 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
9742 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
9743 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
9744 sparc64-*-solaris2* and sparc64-*-* triplets.
9745 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
9746 "symtab.h" and "objfiles.h".
9747 (BIAS): Remove define.
9748 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
9749 (X_DISP19): Remove macros.
9750 (sparc_fetch_instruction): Remove function.
9751 (struct gdbarch_tdep): Remove definition.
9752 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
9753 (sparc_breakpoint_from_pc): Remove function.
9754 (struct sparc64_frame_cache): Remove definition.
9755 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
9756 sparc64_unwind_pc): Remove functions.
9757 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
9758 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
9759 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
9760 (sparc64_frame_cache): Change return type to `struct
9761 sparc_frame_cache *'. Simply call sparc_frame_cache.
9762 (sparc64_frame_this_id, sparc64_frame_prev_register,
9763 sparc64_frame_base_address): Use `struct sparc_frame_cache'
9764 instead of `struct sparc64_frame_cache.
9765 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
9766 sparc_analyze_control_transfer, sparc_software_single_step,
9767 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
9768 _initialize_sparc64_tdep): Remove functions.
9769 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
9770 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
9771 macros.
9772 (sparc64_supply_gregset, sparc64_collect_gregset,
9773 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
9774 (sparc64_init_abi): New function.
9775 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
9776 inclusion guard. Include "sparc-tdep.h".
9777 (BIAS): Define.
9778 (r_tstate_offset, r_fprs_offset): New defines.
9779 (enum sparc_regnum): Remove defenition.
9780 (enum sparc64_regnum): Reformat.
9781 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
9782 (sparc64_init_abi, sparc64_supply_gregset,
9783 sparc64_collect_gregset, sparc64_supply_fpregset,
9784 sparc64_collect_fpregset): New prototypes.
9785 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
9786 Add extern declarations.
9787 (sparc64_sol2_init_abi): New prototype.
9788 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
9789 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
9790 prototypes.
9791 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
9792 "sparnbsd-nat.h".
9793 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
9794 functions.
9795 (_initialize_sparc64fbsd_nat): Remove initialization of
9796 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
9797 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 9798 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
9799 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
9800 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
9801 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
9802 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
9803 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
9804 (sparc64fbsd_r_y_offset): Remove variables.
9805 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
9806 Make static and const.
9807 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
9808 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
9809 functions.
9810 (sparc64fbsd_gregset): New variable.
9811 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
9812 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
9813 and sparc64_supply_fpregset.
9814 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
9815 (sparc64fbsd_sigtramp_frame_this_id)
9816 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
9817 (sparc64fbsd_sigtramp_frame_unwind): New variable.
9818 (sparc64fbsd_sigtramp_frame_sniffer): New function.
9819 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
9820 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
9821 * sparcnbsd-tdep.c: Update copyright year. Include
9822 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
9823 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
9824 "value.h" and "sparcnbsd-tdep.h".
9825 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
9826 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
9827 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
9828 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
9829 defines.
9830 (sparcnbsd_gregset): New variable.
9831 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
9832 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
9833 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
9834 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
9835 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
9836 variables.
9837 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
9838 (sparc32nbsd_sigcontext_frame_this_id)
9839 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
9840 (sparc32nbsd_sigcontext_frame_unwind): New variable.
9841 (sparc32nbsd_sigtramp_frame_sniffer): New function.
9842 (sparcnbsd_get_longjmp_target_32,
9843 sparcnbsd_get_longjmp_target_64): Remove functions.
9844 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
9845 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
9846 sparcnbsd_init_elf): Remove.
9847 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
9848 (sparcnbsd_elf_init_abi): New functions.
9849 (_initialize_sparcnbsd_tdep): New prototype.
9850 (_initialize_sparnbsd_tdep): Update.
9851 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
9852 corelow.o. Add sparc64-nat.o and sparc-nat.o.
9853 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
9854 * config/sparc/linux.mh: Update comment.
9855 (XM_FILE, HOST_IPC): Remove variables.
9856 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
9857 sparc-linux-nat.o.
9858 * config/sparc/linux.mt: Update comment.
9859 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
9860 * config/sparc/nbsd.mt: Reformat.
9861 * config/sparc/nbsd64.mh: Update comment.
9862 (NATDEPFILES): Add sparc-nat.o.
9863 * config/sparc/nbsd64.mt: Update comment.
9864 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
9865 (TM_FILE): Set to tm-nbsd.h.
9866 * config/sparc/nbsdelf.mh: Update comment.
9867 (NATDEPFILES): Add sparc-nat.o.
9868 (XM_FILE): Delete.
9869 * config/sparc/nbsdaout.mh: Update comment.
9870 (NATDEPFILES): Add sparc-nat.o
9871 (XM_FILE): Delete.
9872 * config/sparc/nm-linux.h: Update copyright year. Don't include
9873 "config/nm-svr4.h" and "solib.h". Add protection against multiple
9874 inclusion.
9875 (KERNEL_U_SIZE): Remove define.
9876 (kernel_u_size): Remove prototype.
9877 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
9878 * config/sparc/nm-nbsd.h: Update copyright. Don't include
9879 "regcache.h".
9880 (CHILD_PREPARE_TO_STORE): Remove define.
9881 * config/sparc/nm-nbsdaout.h: Tweak some comments.
9882 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
9883 sparcnbsd-nat.c: Rewrite files.
9884 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
9885 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
9886 sparcnbsd-tdep.h: Remove files.
9887 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
9888 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
9889 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
9890 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
9891 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
9892 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
9893 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
9894 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
9895 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
9896 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
9897 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
9898 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
9899 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
9900 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
9901 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
9902 * config/sparc/linux64.mh, config/sparc/linux64.mt,
9903 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
9904 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
9905 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
9906
ee84457a
AC
99072004-01-02 Andrew Cagney <cagney@redhat.com>
9908
9909 From 2003-12-18 Kazuhiro Inaoka:
9910 * configure.host: Add m32r-linux target.
9911
0bc2134e
MC
99122004-01-02 Michael Chastain <mec.gnu@mindspring.com>
9913
9914 * top.c (print_gdb_version): Update year to 2004.
9915
89a72f9c
MM
99162004-01-02 Mark Mitchell <mark@codesourcery.com>
9917
9918 * MAINTAINERS: Add myself to the write-after-approval category.
9919
86b013ed
DJ
99202004-01-02 Daniel Jacobowitz <drow@mvista.com>
9921
9922 From Bernardo Innocenti <bernie@develer.com>:
9923 * configure.tgt: Add uClinux target.
9924
e42c9534
AC
99252004-01-02 Andrew Cagney <cagney@redhat.com>
9926
9927 * utils.c (do_my_cleanups): Make static, add forward declaration.
9928 * defs.h (do_my_cleanups): Delete declaration.
9929
162467d3
EZ
99302004-01-02 Eli Zaretskii <eliz@elta.co.il>
9931
9932 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
9933 bfd/ChangeLog-0203.
9934
78434e59
MK
99352004-01-02 Mark Kettenis <kettenis@gnu.org>
9936
9937 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
9938 in <machine/reg.h>.
9939 * configure, config.in: Regenerate.
9940
48efe704
AC
9941For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
9942tui/ChangeLog-1998-2003.
c906108c
SS
9943\f
9944Local Variables:
9945mode: change-log
9946left-margin: 8
9947fill-column: 74
9948version-control: never
9949End:
This page took 1.069329 seconds and 4 git commands to generate.