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