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