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