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