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