2004-08-07 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-08-07 Andrew Cagney <cagney@gnu.org>
2
3 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4 through to builtin_type_uint128.
5
6 * c-exp.y: Use builtin_type function to obtain builtin types.
7
8 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
9 builtin_uint128.
10 * gdbtypes.c (gdbtypes_post_init): Update.
11 (build_gdbtypes): Move initialization of builtin_type_int0
12 through to builtin_type_uint128 from here ...
13 (_initialize_gdbtypes): ... to here.
14 * d10v-tdep.c (d10v_register_type): Update.
15
16 * doublest.c: Update copyright.
17 (floatformat_from_length): Call error when floatformat is NULL.
18 (extract_floating_by_length): Remove NULL fmt check.
19 (store_floating_by_length): Ditto.
20
21 2004-08-07 Andrew Cagney <cagney@gnu.org>
22
23 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
24 that the register is valid.
25
26 2004-08-05 Mark Kettenis <kettenis@chello.nl>
27
28 * i386-linux-tdep.c (i386_linux_sigtramp_start)
29 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
30 struct frame_info *. Use safe_frame_unwind_memory instead of
31 deprecated_read_memory_nobpt.
32 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
33 changed signature of i386_linux_sigtramp_start and
34 i386_linux_rt_sigtramp_start.
35
36 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
37 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
38 instead of deprecated_read_memory_nobpt.
39 (i386nbsd_sigtramp_p): Adjust for changed signature of
40 i386nbsd_sigtramp_offset.
41
42 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
43 safe_frame_unwind_memory instead of target_read_memory.
44
45 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
46 !NO_SYS_FILE.
47 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
48 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
49 (_initialize_kernel_u_addr): Remove prototype and function.
50 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
51 !NO_SYS_FILE.
52 * xcoffread.c: Likewise.
53
54 2004-08-06 Mark Kettenis <kettenis@gnu.org>
55
56 * vax-nat.c: New file.
57 * vaxbsd-nat.c: Tweak comment.
58 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
59 vaxnbsd-tdep.c.
60 (vax-nat.o): New dependency.
61 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
62 (vax-*-ultrix2*): Remove.
63 * config/vax/vax.mh: New file.
64 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
65 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
66 (vax_register_u_addr): New prototype.
67 (REGISTER_U_ADDR): Define using vax_register_u_addr.
68 * config/vax/vaxult2.mh: Remove file.
69 * config/vax/vaxult.mh: Remove file.
70 * config/vax/vaxbsd.mh: Remove file.
71 * config/vax/vax.mt (TM_FILE): Remove.
72 * config/vax/tm-vaxbsd.h: Remove file.
73
74 2004-08-06 Joel Brobecker <brobecker@gnat.com>
75
76 * aix-thread.c (get_signaled_thread): New function.
77 (iter_trap): Delete, no longer used.
78 (iter_tid): New function.
79 (pd_update): Find the thread that received the SIGTRAP signal
80 by first locating the kernel thread, and then finding its
81 associated thread.
82
83 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
84
85 * lin-lwp.c (child_wait): Continue inferior after processing
86 PTRACE_EVENT_CLONE event.
87
88 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
89
90 * MAINTAINERS: Add self to Write-After-Approval.
91
92 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
93
94 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
95 libunwind-xxxx.so" where xxxx is UNW_TARGET.
96
97 2004-08-05 Andrew Cagney <cagney@gnu.org>
98
99 * config/xm-sysv4.h: Delete file.
100 * config/mips/xm-irix5.h: Delete file.
101 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
102 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
103 * config/ia64/xm-aix.h: Delete file.
104 * config/ia64/aix.mh (XM_FILE): Delete.
105 * config/pa/xm-hppah.h: Delete file.
106 * config/pa/hpux11w.mh (XM_FILE): Delete.
107 * config/pa/hpux11.mh (XM_FILE): Delete.
108 * config/pa/hpux1020.mh (XM_FILE): Delete.
109 * config/pa/hppahpux.mh (XM_FILE): Delete.
110
111 * config/alpha/xm-alphalinux.h: Delete file.
112 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
113 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
114 * config/alpha/xm-alphaosf.h: Delete file.
115 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
116 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
117 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
118 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
119
120 * config/i386/xm-i386v.h: Delete file.
121 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
122 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
123 * config/i386/xm-i386sco.h: Delete file.
124 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
125 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
126 * config/i386/xm-i386v4.h: Delete file.
127 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
128 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
129 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
130 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
131
132 * config/vax/xm-vax.h: Delete file.
133 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
134 * config/vax/xm-vaxult2.h: Delete file.
135 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
136 * config/vax/vaxult2.mh (XM_FILE): Delete.
137 * config/vax/xm-vaxult.h: Delete file.
138 * config/vax/vaxult.mh (XM_FILE): Delete.
139 * config/vax/xm-vaxbsd.h: Delete file.
140 * config/vax/vaxbsd.mh (XM_FILE): Delete.
141
142 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
143 * gdbarch.h, gdbarch.c: Re-generate.
144 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
145 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
146 * frame.h: Delete deprecated_read_fp from comments.
147 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
148 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
149
150 2004-08-04 Mark Kettenis <kettenis@gnu.org>
151
152 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
153 trampoline in OpenBSD 3.5-current.
154
155 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
156 SSE registers.
157
158 * Makefile.in: Remove embedded page breaks.
159
160 2004-08-04 Jim Blandy <jimb@redhat.com>
161
162 * regcache.c (regcache_raw_read): Assert that, after calling
163 target_fetch_registers, the register we're reading is cached.
164
165 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
166 a call to 'internal_error', with a more helpful error message.
167 * rs6000-tdep.c (e500_pseudo_register_read,
168 e500_pseudo_register_write, rs6000_store_return_value): Same.
169
170 2004-08-04 Andrew Cagney <cagney@gnu.org>
171
172 * Makefile.in: Update dependencies.
173
174 2004-08-04 Jim Blandy <jimb@redhat.com>
175
176 Change the layout of the PowerPC E500 raw register cache to allow
177 the lower 32-bit halves of the GPRS to be their own raw registers,
178 not pseudoregisters.
179 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
180 add ppc_ev0_upper_regnum flag.
181 * rs6000-tdep.c: #include "reggroups.h".
182 (spe_register_p): Recognize the ev upper half registers as SPE
183 registers.
184 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
185 registers.
186 (e500_move_ev_register): New function.
187 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
188 vector registers are the pseudo-registers now, formed by splicing
189 together the gprs and the upper-half registers.
190 (e500_register_reggroup_p): New function.
191 (P): Macro deleted.
192 (P8, A4): New macro.
193 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
194 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
195 macros.
196 (registers_e500): Rearrange register set so that the raw register
197 set contains 32-bit GPRs and upper-half registers, and the SPE
198 vector registers become pseudo-registers.
199 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
200 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
201 register numbers are now the same for the E500 as they are for
202 other PowerPC variants. Register e500_register_reggroup_p as the
203 register group function for the E500.
204 * Makefile.in (rs6000-tdep.o): Update dependencies.
205
206 Adapt PPC E500 native support to the new raw regcache layout.
207 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
208 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
209 (fetch_spe_register, store_spe_register): Handle fetching/storing
210 all the SPE registers at once, if regno == -1. These now take
211 over the job of fetch_spe_registers and store_spe_registers.
212 (fetch_spe_registers, store_spe_registers): Deleted.
213 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
214 unconditionally; they're always raw. Fetch/store SPE upper half
215 registers, if present, instead of ev registers.
216 (fetch_register, store_register): Remove sanity checks: gprs are
217 never pseudo-registers now, so we never need to even mention any
218 registers that are ever pseudoregisters.
219
220 Use a fixed register numbering when communicating with the PowerPC
221 simulator.
222 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
223 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
224 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
225 New functions.
226 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
227 init_sim_regno_table.
228 * Makefile.in (gdb_sim_ppc_h): New variable.
229 (rs6000-tdep.o): Update dependencies.
230
231 2004-08-02 Andrew Cagney <cagney@gnu.org>
232
233 * cris-tdep.c (cris_register_size): Restore function, still used
234 locally.
235
236 * gdbarch.sh (deprecated_target_read_fp)
237 (deprecated_frame_locals_address, deprecated_frame_args_address)
238 (deprecated_frame_chain_valid, deprecated_frame_chain)
239 (deprecated_init_extra_frame_info, deprecated_pop_frame)
240 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
241 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
242 * gdbarch.h, gdbarch.c: Re-generate.
243 * regcache.c (deprecated_read_fp): Do not call
244 DEPRECATED_TARGET_READ_FP_P.
245 * infcmd.c (default_print_registers_info): Do not call
246 DEPRECATED_DO_REGISTERS_INFO.
247 * frame-base.c (default_frame_locals_address): Do not call
248 DEPRECATED_FRAME_LOCALS_ADDRESS.
249 (default_frame_args_address): Do not call
250 DEPRECATED_FRAME_ARGS_ADDRESS.
251
252 * gdbarch.sh (deprecated_register_raw_size)
253 (deprecated_register_virtual_size:int): Delete.
254 * gdbarch.h, gdbarch.c: Re-generate.
255 * cris-tdep.c (cris_register_size): Delete.
256 (cris_gdbarch_init): Update.
257 * alpha-tdep.c (alpha_register_raw_size)
258 (alpha_register_virtual_size): Delete.
259 (alpha_gdbarch_init): Update.
260
261 * gdbarch.sh (deprecated_register_virtual_type)
262 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
263 (deprecated_dummy_write_sp): Delete.
264 * gdbarch.h, gdbarch.c: Re-generate.
265
266 * gdbarch.sh (deprecated_register_bytes): Delete.
267 * gdbarch.h, gdbarch.c: Re-generate.
268 * regcache.c (deprecated_register_bytes): New function.
269 * regcache.h (deprecated_register_bytes): Declare.
270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
271 * v850-tdep.c (v850_gdbarch_init): Update.
272 * sh64-tdep.c (sh64_gdbarch_init): Update.
273 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
275 * mcore-tdep.c (mcore_gdbarch_init): Update.
276 * cris-tdep.c (cris_gdbarch_init): Update.
277 * arm-tdep.c (arm_gdbarch_init): Update.
278 * remote.c (init_remote_state): Update.
279 * remote-vx.c (vx_prepare_to_store): Update.
280 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
281 * irix5-nat.c (fetch_core_registers): Update.
282 * cris-tdep.c (cris_register_bytes_ok): Update.
283 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
284
285 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
286 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
287 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
288 (mips_insn16_frame_base_address, mips_insn16_frame_base)
289 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
290 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
291 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
292 (mips_insn32_frame_base_address, mips_insn32_frame_base)
293 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
294 with mips_insn16 and mips_insn32.
295
296 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
297 * rs6000-tdep.c (rs6000_push_dummy_call)
298 (rs6000_extract_return_value): Use register_size.
299 * xstormy16-tdep.c (xstormy16_get_saved_register)
300 (xstormy16_extract_return_value): Ditto.
301 * valops.c (value_assign): Ditto.
302 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
303 * v850-tdep.c (v850_extract_return_value): Ditto.
304 * tracepoint.c (collect_symbol): Ditto.
305 * target.c (debug_print_register): Ditto.
306 * stack.c (frame_info): Ditto.
307 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
308 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
309 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
310 (store_register_using_P): Ditto.
311 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
312 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
313 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
314 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
315 * regcache.c (deprecated_read_register_bytes)
316 (deprecated_write_register_bytes, read_register)
317 (write_register): Ditto.
318 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
319 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
320 * monitor.c (monitor_supply_register, monitor_fetch_register)
321 (monitor_store_register): Ditto.
322 * mn10300-tdep.c (mn10300_pop_frame_regular)
323 (mn10300_print_register): Ditto.
324 * mipsv4-nat.c (fill_fpregset): Ditto.
325 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
326 (mips64_fill_fpregset): Ditto.
327 * mi/mi-main.c (register_changed_p, get_register)
328 (mi_cmd_data_write_register_values): Ditto.
329 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
330 * irix5-nat.c (fill_gregset, fetch_core_registers):
331 * infrun.c (write_inferior_status_register): Ditto.
332 * infptrace.c (fetch_register, store_register): Ditto.
333 * infcmd.c (default_print_registers_info): Ditto.
334 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
335 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
336 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
337 * hpux-thread.c (hpux_thread_fetch_registers)
338 (hpux_thread_store_registers): Ditto.
339 * hppah-nat.c (store_inferior_registers, fetch_register):
340 * findvar.c (value_from_register): Ditto.
341 * dve3900-rom.c (fetch_bitmapped_register):
342 * cris-tdep.c (cris_gdbarch_init): Ditto.
343 * alpha-tdep.h: Ditto.
344 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
345
346 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
347 DEPRECATED_REGISTER_RAW_SIZE from comments.
348 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
349 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
350 DEPRECATED_REGISTER_RAW_SIZE.
351 * findvar.c (value_of_register): Simplify by assuming that the
352 registers raw and virtual sizes are identical.
353 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
354 comment.
355 * arch-utils.c (generic_register_size): Simplify by assuming
356 register_type.
357
358 * regcache.c (legacy_read_register_gen, real_register)
359 (legacy_write_register_gen): Delete, not used.
360
361 * regcache.c (struct regcache_descr): Delete legacy_p.
362 (init_legacy_regcache_descr): Delete function.
363 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
364 Do not use deprecated register functions.
365 (regcache_raw_read, deprecated_write_register_gen):
366 (deprecated_read_register_gen, regcache_raw_write): Delete code
367 predicated on legacy_p.
368 (register_size): Delete check against register raw size.
369
370 * cris-tdep.c (cris_register_type): Replace
371 cris_register_virtual_type.
372 (cris_gdbarch_init): Update, set register_type.
373
374 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
375 * gdbarch.h, gdbarch.c: Re-generate.
376 * arm-tdep.c (arm_frameless_function_invocation): Delete.
377 (arm_gdbarch_init) Do not set frameless function invocation.
378 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
379 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
380 * frv-tdep.c (frv_frameless_function_invocation): Delete.
381 (frv_gdbarch_init): Do not set frameless function invocation.
382 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
383 * sh-tdep.c (sh_gdbarch_init): Ditto.
384 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
385 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
386 * avr-tdep.c (avr_gdbarch_init): Ditto.
387
388 * blockframe.c (legacy_frame_chain_valid): Delete function.
389
390 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
391 and pc. Update comments.
392 (pc_in_dummy_frame): Delete function.
393 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
394 use the "id".
395 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
396 call_hi, top and pc, use the id.
397 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
398
399 * dummy-frame.c: Include "gdb_string.h".
400 (generic_save_call_dummy_addr, generic_push_dummy_frame)
401 (generic_save_dummy_frame_tos): Delete.
402 (dummy_frame_push): New function, replaces above.
403 * dummy-frame.h: Update copyright.
404 (dummy_frame_push): Declare.
405 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
406 (generic_save_call_dummy_addr): Delete declarations.
407 * infcall.c: Include "dummy-frame.h".
408 (call_function_by_hand): Add locals caller_regcache,
409 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
410 with call to frame_save_as_regcache plus cleanup. Delete calls to
411 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
412 Move clear_proceed_status to just before the resume, add call to
413 dummy_frame_push (discard cleanup).
414 * Makefile.in (infcall.o): Add $(dummy_frame_h).
415 (dummy-frame.o): Add $(gdb_string_h).
416
417 2004-08-01 Andrew Cagney <cagney@gnu.org>
418
419 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
420 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
421 * dummy-frame.c (find_dummy_frame): Delete.
422 (struct dummy_frame_cache, dummy_frame_sniffer)
423 (dummy_frame_prev_register, dummy_frame_this_id)
424 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
425 frame unwinder using a dummy_frame_cache.
426
427 2004-08-01 Andrew Cagney <cagney@gnu.org>
428
429 * frame.h (frame_save_as_regcache): Declare.
430 * frame.c (frame_save_as_regcache): New function.
431 (do_frame_read_register): Replace do_frame_unwind_register.
432 (frame_pop): Use frame_save_as_regcache.
433 * dummy-frame.c (generic_push_dummy_frame): Use
434 frame_save_as_regcache.
435
436 2004-08-01 Joel Brobecker <brobecker@gnat.com>
437
438 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
439 file as included until we record the first line in the linetable.
440
441 2004-08-01 Andrew Cagney <cagney@gnu.org>
442
443 * frame.h (deprecated_pop_dummy_frame)
444 (deprecated_read_register_dummy)
445 (deprecated_generic_find_dummy_frame): Delete.
446 * dummy-frame.c (deprecated_generic_find_dummy_frame)
447 (deprecated_read_register_dummy)
448 (deprecated_find_dummy_frame_regcache)
449 (discard_innermost_dummy)
450 (deprecated_pop_dummy_frame): Delete.
451 (dummy_frame_this_id): Simplify.
452 (struct dummy_frame): Delete "fp" and "sp".
453 (find_dummy_frame): Simplify.
454 (generic_push_dummy_frame): Do not set "fp" or "sp".
455 (fprint_dummy_frames): Do not print "fp" and "sp"
456
457 2004-08-01 Mark Kettenis <kettenis@gnu.org>
458
459 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
460 (struct i386_insn): New structure.
461 (i386_match_insn): New function.
462 (i386_frame_setup_skip_insns): New variable.
463 (i386_analyze_frame_setup): Change to use i386_match_insn and the
464 array i386_frame_setup_insns of instructions that should be
465 skipped inside the frame setup sequence.
466
467 2004-08-01 Andrew Cagney <cagney@gnu.org>
468
469 * frame.h (deprecated_frame_xmalloc_with_cleanup)
470 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
471 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
472 * stack.c (frame_info): Delete references to
473 DEPRECATED_FRAME_INIT_SAVED_REGS and
474 deprecated_get_frame_saved_regs.
475 * frame.c (struct frame_info): Delete saved_regs and extra_info.
476 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
477 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
478 (frame_unwind_register_signed)
479 (frame_unwind_register_unsigned)
480 (frame_unwind_unsigned_register): Use register_size.
481 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
482 (deprecated_frame_xmalloc_with_cleanup)
483 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
484 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
485
486 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
487 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
488 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
489 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
490
491 * infcall.c (call_function_by_hand): Do not use
492 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
493 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
494 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
495 DEPRECATED_STACK_ALIGN.
496
497 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
498
499 Committed by Andrew Cagney.
500 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
501
502 2004-08-01 Andrew Cagney <cagney@gnu.org>
503
504 * mips-tdep.c (mips16_frame_cache)
505 (mips16_frame_this_id, mips16_frame_prev_register)
506 (mips16_frame_unwind, mips16_frame_sniffer)
507 (mips16_frame_base_address, mips16_frame_base)
508 (mips16_frame_base_sniffer, mips32_frame_cache)
509 (mips32_frame_this_id, mips32_frame_prev_register)
510 (mips32_frame_unwind, mips32_frame_sniffer)
511 (mips32_frame_base_address, mips32_frame_base)
512 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
513 separate heuristic mips16 and mips32 unwinders.
514 (mips_stub_frame_cache, mips_stub_frame_this_id)
515 (mips_stub_frame_prev_register)
516 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
517 (mips_stub_frame_base_address, mips_stub_frame_base)
518 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
519 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
520 match true mdebug frames.
521 (non_heuristic_proc_desc): Add forward declaration.
522
523 2004-08-01 Andrew Cagney <cagney@gnu.org>
524
525 * config/mips/tm-irix6.h: Delete file.
526 * config/mips/tm-irix5.h: Delete file.
527 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
528 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
529
530 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
531 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
532 * config/nm-gnu.h (NO_CORE_OPS): Delete.
533 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
534 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
535 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
536 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
537 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
538 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
539 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
540 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
541 (TARGET_SIGNAL_RAW_VALUES): Delete.
542 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
543 Delete.
544 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
545 (TARGET_HW_WATCH_LIMIT): Delete.
546 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
547 * minimon.h: Delete file.
548
549 * trad-frame.c (trad_frame_get_this_base)
550 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
551 functions.
552 * trad-frame.h (trad_frame_set_this_base)
553 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
554
555 2004-07-31 Andrew Cagney <cagney@gnu.org>
556
557 * trad-frame.c (trad_frame_get_prev_register): Rename
558 trad_frame_get_prev_register.
559 * vax-tdep.c (vax_frame_prev_register): Update.
560 * trad-frame.h: Update.
561 * trad-frame.c (trad_frame_get_register): Update.
562 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
563 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
564 Update.
565 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
566 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
567 Update.
568 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
569 Update.
570 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
571 Update.
572 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
573 Update.
574 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
575 Update.
576 * s390-tdep.c (s390_frame_prev_register)
577 (s390_stub_frame_prev_register)
578 (s390_sigtramp_frame_prev_register): Update.
579 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
580 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
581 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
582 * m88k-tdep.c (m88k_frame_prev_register)
583 * m68hc11-tdep.c (m68hc11_frame_prev_register)
584 * m32r-tdep.c (m32r_frame_prev_register): Update.
585 * hppa-tdep.c (hppa_frame_prev_register_helper)
586 * frv-tdep.c (frv_frame_prev_register): Update.
587 * d10v-tdep.c (d10v_frame_prev_register): Update.
588 * cris-tdep.c (cris_frame_prev_register): Update.
589 * avr-tdep.c (avr_frame_prev_register): Update.
590 * arm-tdep.c (arm_prologue_prev_register)
591 (arm_sigtramp_prev_register): Update.
592
593 2004-07-31 Andrew Cagney <cagney@gnu.org>
594
595 * frame.h (legacy_saved_regs_unwind)
596 (legacy_frame_chain_valid, legacy_frame_p)
597 (enum frame_type): Delete UNKNOWN_FRAME.
598 * dummy-frame.c (dummy_frame_this_id): Simplify.
599 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
600 * frame.c (struct frame_info): Delete the field "type".
601 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
602 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
603 (legacy_saved_regs_unwind, legacy_frame_p)
604 (frame_type_from_pc): Delete.
605 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
606 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
607
608 2004-07-31 Mark Kettenis <kettenis@gnu.org>
609
610 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
611 indentation.
612
613 * mips-nat.c: Remove file.
614 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
615 (mips-nat.o): Remove dependency.
616
617 * infptrace.c: Update copyright year.
618 (fetch_register): Pass NULL in regcache_raw_supply call instead of
619 explicitly setting the buffer to all zeroes.
620
621 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
622 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
623
624 2004-07-30 Andrew Cagney <cagney@gnu.org>
625
626 * GDB 6.2 released from gdb_6_2-branch.
627
628 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
629
630 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
631
632 * exec.c (exec_file_attach):
633 * nto-tdep.c (nto_find_and_open_solib):
634 * pa64solib.c (pa64_solib_sizeof_symbol_table):
635 * solib.c (solib_open):
636 * somsolib.c (som_solib_sizeof_symbol_table):
637 * source.c (is_regular_file, openp, open_source_file):
638 * symfile.c (symfile_bfd_open):
639 * wince.c (upload_to_device): Differentiate between the search for
640 binary and source files.
641
642 2004-07-30 Andrew Cagney <cagney@gnu.org>
643
644 * complaints.c (_initialize_complaints): Pass NULL to
645 add_setshow_zinteger_cmd for help_doc.
646 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
647
648 2004-07-30 Andrew Cagney <cagney@gnu.org>
649
650 Fix PR i18n/761.
651 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
652 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
653 $(PACKAGE).pot and update-po.
654 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
655 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
656 (update-po): New rules.
657 (localedir): Define using autoconf.
658 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
659 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
660 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
661 * configure.in: Generate CATALOGS and LINGUAS from contents of
662 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
663 * configure: Re-generate.
664 * po/gdbtext: New file
665
666 2004-07-30 Jerome Guitton <guitton@gnat.com>
667
668 * MAINTAINERS: Reorder Write After Approval list in alphabetical
669 order.
670
671 2004-07-30 David Lecomber <dsl@sources.redhat.com>
672
673 * dwarf2read.c (read_file_scope): Set producer if attribute
674 present.
675 (struct dwarf2_cu): Added new member producer.
676
677 2004-07-30 Jerome Guitton <guitton@gnat.com>
678
679 * inflow.c (kill_command): release file handles in BFD.
680 * exec.c (exec_file_attach): Ditto.
681 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
682
683 2004-07-29 Andrew Cagney <cagney@gnu.org>
684
685 * PROBLEMS (mips-irix): Note that it is broken.
686
687 2004-07-29 Andrew Cagney <cagney@gnu.org>
688
689 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
690 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
691
692 * config/xm-nbsd.h: Delete file.
693 * config/arm/xm-nbsd.h: Delete file.
694 * config/i386/xm-nbsd.h: Delete file.
695 * config/ns32k/xm-nbsd.h: Delete file.
696 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
697 * config/i386/nbsdelf.mh (XM_FILE): Delete.
698 * config/i386/nbsdaout.mh (XM_FILE): Delete.
699 * config/arm/nbsdelf.mh (XM_FILE): Delete.
700 * config/arm/nbsdaout.mh (XM_FILE): Delete.
701
702 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
703 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
704 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
705 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
706 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
707 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
708
709 * config/powerpc/xm-linux.h: Delete empty file.
710 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
711 * config/powerpc/linux.mh (XM_FILE): Delete.
712 * config/m68k/xm-linux.h: Delete empty file.
713 * config/m68k/linux.mh (XM_FILE): Delete.
714 * config/ia64/xm-linux.h: Delete empty file.
715 * config/ia64/linux.mh (XM_FILE): Delete.
716 * config/arm/xm-linux.h: Delete empty file.
717 * config/arm/linux.mh (XM_FILE): Delete.
718
719 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
720 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
721 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
722 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
723 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
724 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
725 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
726 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
727
728 * config/m68k/xm-m68k.h: Delete file.
729 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
730 copyright.
731 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
732 * config/pa/xm-linux.h: Delete empty file.
733 * config/pa/linux.mh (XM_FILE): Delete.
734 * config/i386/xm-i386.h: Delete empty file.
735 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
736 "i386/xm-i386.h".
737 * config/i386/obsdaout.mh (XM_FILE): Delete.
738 * config/i386/obsd64.mh (XM_FILE): Delete.
739 * config/i386/fbsd64.mh (XM_FILE): Delete.
740 * config/i386/nto.mh (XM_FILE): Delete.
741 * config/i386/obsd.mh (XM_FILE): Delete.
742 * config/i386/linux64.mh (XM_FILE): Delete.
743 * config/i386/linux.mh (XM_FILE): Delete.
744 * config/i386/i386sol2.mh (XM_FILE): Delete.
745 * config/i386/i386gnu.mh (XM_FILE): Delete.
746 * config/i386/fbsd.mh (XM_FILE): Delete.
747 * config/i386/nbsd64.mh (XM_FILE): Delete.
748
749 2004-07-29 Andrew Cagney <cagney@gnu.org>
750
751 * config/pa/xm-linux.h: Do not include "floatformat.h".
752 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
753 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
754 * config/i386/xm-i386.h: Do not include "floatformat.h".
755 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
756 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
757 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
758 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
759 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
760 GDB_HOST_LONG_DOUBLE_FORMAT instead.
761 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
762 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
763 * configure, config.in: Regenerate.
764 * configure.host (gdb_host_float_format, gdb_host_double_format)
765 (gdb_host_long_double_format): Set according to the host.
766
767 2004-07-29 Andrew Cagney <cagney@gnu.org>
768
769 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
770
771 2004-07-28 Andrew Cagney <cagney@gnu.org>
772
773 * PROBLEMS: Mention threads/1650.
774 * NEWS: Mention the NPTL fix.
775
776 2004-07-28 Andrew Cagney <cagney@gnu.org>
777
778 * cli/cli-decode.c (add_setshow_cmd): Delete function.
779 (add_setshow_cmd_full): Make static.
780 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
781 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
782 * cli/cli-decode.c (add_setshow_filename_cmd)
783 (add_setshow_string_cmd): New functions.
784 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
785 * mips-tdep.c (_initialize_mips_tdep): Update.
786 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
787 * cli/cli-logging.c (_initialize_cli_logging): Update.
788 * complaints.c (_initialize_complaints): Update.
789 * remote.c (_initialize_remote): Update.
790
791 2004-07-28 Andrew Cagney <cagney@gnu.org>
792
793 * cli/cli-decode.c (add_setshow_zinteger_cmd)
794 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
795 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
796 print parameters. Make string parameters constant.
797 * command.h: Update. Update copyright.
798 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
799 * observer.c (_initialize_observer): Ditto.
800 * frame.c (_initialize_frame): Ditto.
801 * complaints.c (_initialize_complaints): Ditto.
802 * maint.c (_initialize_maint_cmds): Ditto.
803 * target.c (initialize_targets): Ditto.
804 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
805 * infcall.c (_initialize_infcall): Ditto.
806 * arm-tdep.c (_initialize_arm_tdep): Ditto.
807 * m32r-rom.c (_initialize_m32r_rom): Ditto.
808 * remote-rdi.c (_initialize_remote_rdi): Ditto.
809 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
810 * mips-tdep.c (_initialize_mips_tdep): Ditto.
811
812 2004-07-28 Andrew Cagney <cagney@gnu.org>
813
814 * gdbtypes.c (lookup_primitive_typename): Delete function.
815 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
816 * ada-lex.l: Use language_lookup_primitive_type_by_name.
817 * gdbtypes.c (lookup_typename): Ditto.
818 * f-exp.y (yylex): Ditto.
819 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
820
821 * scm-lang.c (c_builtin_types): Delete extern declaration.
822 (scm_language_defn): Replace
823 string_char_type and primitive_type_vector with
824 la_language_arch_info.
825 * jv-lang.c (java_language_defn): Replace
826 string_char_type and primitive_type_vector with
827 la_language_arch_info.
828 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
829 c_builtin_types in comment.
830 * c-lang.h (struct language_arch_info): Declare opaque.
831 (c_language_arch_info): Declare.
832 (c_builtin_types): Delete declaration.
833 * c-lang.c (c_language_arch_info): Set string_char_type to
834 builtin_char, not builtin_true_char. Make global.
835 (c_builtin_types): Delete array.
836 (asm_language_defn, minimal_language_defn): Replace
837 string_char_type and primitive_type_vector with
838 la_language_arch_info.
839
840 2004-07-28 Andrew Cagney <cagney@gnu.org>
841
842 * gdbtypes.h (struct builtin_type): Rename true_char to
843 builtin_true_char.
844 * gdbtypes.c (gdbtypes_post_init): Update.
845 * c-lang.c (arch_info): New function.
846 (enum c_primitive_types): New enum.
847 (c_language_defn): Instead of string_char_type and
848 primitive_type_vector set la_language_arch_info.
849
850 2004-07-28 Andrew Cagney <cagney@gnu.org>
851
852 * language.h (struct language_arch_info): Fix typo
853 s/primative/primitive/.
854 * gdbtypes.c (lookup_primitive_typename): Ditto.
855 * language.c (language_lookup_primitive_type_by_name)
856 (unknown_language_arch_info): Ditto.
857
858 2004-07-27 Andrew Cagney <cagney@gnu.org>
859
860 * defs.h (enum language): Add nr_languages.
861 * language.h (struct language_arch_info): Define.
862 (struct language_defn): Add la_language_arch_info.
863 (language_lookup_primative_type_by_name): Declare.
864 (language_string_char_type): Declare.
865 * language.c (_initialize_language, language_gdbarch_post_init)
866 (struct language_gdbarch, language_gdbarch_data): Implement
867 per-architecture language information.
868 (unknown_language_arch_info, language_string_char_type)
869 (language_lookup_primative_type_by_name): New functions.
870 (unknown_language_defn, auto_language_defn)
871 (local_language_defn): Set la_language_arch_info to
872 unknown_language_arch_info.
873 (unknown_builtin_types): Delete.
874 * gdbtypes.c (lookup_primitive_typename): Use
875 language_lookup_primative_type_by_name.
876 (create_string_type): Use language_string_char_type.
877 * values.c (value_from_string): Use language_string_char_type.
878 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
879 * p-lang.c (pascal_language_defn): Ditto.
880 * m2-lang.c (m2_language_defn): Ditto.
881 * jv-lang.c (java_language_defn): Ditto.
882 * objc-lang.c (objc_language_defn): Ditto.
883 * f-lang.c (f_language_defn): Ditto.
884 * c-lang.c (c_language_defn, cplus_language_defn)
885 (asm_language_defn, minimal_language_defn): Ditto.
886
887 2004-07-27 Andrew Cagney <cagney@gnu.org>
888
889 * gdbtypes.h (struct builtin_type): Declare.
890 (builtin_type): Declare.
891 * d10v-tdep.c (d10v_register_type): Use builtin_type.
892 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
893 (gdbtypes_post_init): New function.
894 (builtin_type): New function.
895
896 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
897
898 * remote-m32r-sdi.c: Fix breakpoint bug.
899 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
900 recv_char_data, recv_long_data): New functions to replace communication
901 sequences.
902
903 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
904
905 Document PR threads/1650.
906 * PROBLEMS (Threads): Document problem with many threads
907
908 2004-07-26 Andrew Cagney <cagney@gnu.org>
909
910 * gdb-mi.el: Move from here ...
911 * mi/gdb-mi.el: ... to here.
912
913 2004-07-26 Andrew Cagney <cagney@gnu.org>
914
915 Problem reported by Ashley Pittman <ashley@quadrics.com>.
916 * main.c (captured_main): When in batch mode always detach.
917
918 2004-07-26 Andrew Cagney <cagney@gnu.org>
919
920 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
921 and h8300 as broken.
922 * NEWS: END-OF-LIFE frame compatibility module.
923 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
924 specific comments.
925
926 2004-07-26 Andrew Cagney <cagney@gnu.org>
927
928 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
929 * xcoffsolib.c (_initialize_xcoffsolib): Update.
930 * wince.c (_initialize_wince): Update.
931 * win32-nat.c (_initialize_win32_nat): Update.
932 * varobj.c (_initialize_varobj): Update.
933 * valops.c (_initialize_valops): Update.
934 * utils.c (initialize_utils, initialize_utils): Update.
935 * tui/tui-win.c (_initialize_tui_win): Update.
936 * top.c (init_main): Update.
937 * symfile.c (_initialize_symfile): Update.
938 * source.c (_initialize_source): Update.
939 * somsolib.c (_initialize_som_solib): Update.
940 * solib.c (_initialize_solib): Update.
941 * solib-frv.c (_initialize_frv_solib): Update.
942 * serial.c (_initialize_serial): Update.
943 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
944 * remote.c (_initialize_remote, _initialize_remote): Update.
945 * remote-vx.c (_initialize_vx): Update.
946 * remote-utils.c (_initialize_sr_support): Update.
947 * remote-sds.c (_initialize_remote_sds): Update.
948 * remote-mips.c (_initialize_remote_mips): Update.
949 * remote-e7000.c (_initialize_remote_e7000): Update.
950 * proc-api.c (_initialize_proc_api): Update.
951 * printcmd.c: Update.
952 * parse.c (_initialize_parse): Update.
953 * pa64solib.c (_initialize_pa64_solib): Update.
954 * p-valprint.c (_initialize_pascal_valprint): Update.
955 * monitor.c (_initialize_remote_monitors): Update.
956 * mips-tdep.c (_initialize_mips_tdep): Update.
957 * mcore-tdep.c (_initialize_mcore_tdep): Update.
958 * maint.c (_initialize_maint_cmds): Update.
959 * lin-lwp.c (_initialize_lin_lwp): Update.
960 * language.c (_initialize_language): Update.
961 * kod.c (_initialize_kod): Update.
962 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
963 * i386-tdep.c (_initialize_i386_tdep): Update.
964 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
965 * gdbarch.sh: Update.
966 * gdbarch.c: Re-generate.
967 * gdb-events.sh: Update.
968 * gdb-events.c: Re-generate.
969 * frame.c (_initialize_frame): Update.
970 * exec.c: Update.
971 * demangle.c (_initialize_demangler): Update.
972 * dcache.c (_initialize_dcache): Update.
973 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
974 * cp-valprint.c (_initialize_cp_valprint): Update.
975 * corefile.c (_initialize_core): Update.
976 * command.h: Update.
977 * cli/cli-decode.h: Update.
978 * cli/cli-cmds.c (init_cli_cmds): Update.
979 * charset.c (_initialize_charset): Update.
980 * breakpoint.c (_initialize_breakpoint): Update.
981 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
982 * alpha-tdep.c (_initialize_alpha_tdep): Update.
983 * aix-thread.c (_initialize_aix_thread): Update.
984
985 2004-07-24 Mark Kettenis <kettenis@gnu.org>
986
987 Partial fix for PR backtrace/1718.
988 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
989 that GCC migrates into the prolugue. Don't handle any
990 instructions that clobber %ebx.
991
992 2004-07-23 Andrew Cagney <cagney@gnu.org>
993
994 Use regcache_raw_collect instead of regcache_collect.
995 * regcache.h (regcache_collect): Delete declaration.
996 * regcache.c (regcache_colect): Delete function.
997 * win32-nat.c (do_child_store_inferior_registers): Update.
998 * sol-thread.c (sol_thread_store_registers): Update.
999 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1000 * rs6000-nat.c (store_register): Update.
1001 * remote.c (store_register_using_P, remote_store_registers): Update.
1002 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1003 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1004 (fill_vrregset, store_spe_registers, fill_gregset)
1005 (fill_gregset): Update.
1006 * nto-procfs.c (procfs_store_registers): Update.
1007 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1008 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1009 * m68klinux-nat.c (store_register, fill_gregset): Update.
1010 * m68k-tdep.c (fill_gregset): Update.
1011 * infptrace.c (store_register): Update.
1012 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1013 * i386-linux-nat.c (store_register, fill_gregset): Update.
1014 * hppa-linux-nat.c (fill_gregset): Update.
1015 * go32-nat.c (store_register): Update.
1016 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1017 (store_fp_regs): Update.
1018 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1019 (store_nwfpe_extended, store_fpregister, store_fpregs)
1020 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1021 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1022 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1023 (store_regs_user_thread, store_regs_kernel_thread): Update.
1024
1025 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1026
1027 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1028 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1029 encoding.
1030 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1031 member of `struct comp_unit'.
1032
1033 2004-07-23 Andrew Cagney <cagney@gnu.org>
1034
1035 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1036 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1037
1038 2004-07-23 Martin Hunt <hunt@redhat.com>
1039 Kevin Buettner <kevinb@redhat.com>
1040
1041 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1042 alignment was being added to the offset instead of multiplied.
1043
1044 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1045
1046 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1047 changed signal trampoline in OpenBSD 3.5-current.
1048
1049 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1050 <machine/pcb.h> and "bsd-kvm.h".
1051 (sparc64nbsd_supply_pcb): New function.
1052 (_initialize_sparc64nbsd_nat): Renamed from
1053 _initialize_sparcnbsd_nat. Enable libkvm interface.
1054 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1055 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1056 (LOADLIBES): New variable.
1057
1058 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1059
1060 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1061
1062 2004-07-21 Andrew Cagney <cagney@gnu.org>
1063
1064 Use regcache_raw_supply instead of supply_register.
1065 * regcache.h (supply_register): Delete declaration.
1066 * regcache.c (supply_register): Delete function.
1067 * wince.c (do_child_fetch_inferior_registers): Update.
1068 * win32-nat.c (do_child_fetch_inferior_registers)
1069 (fetch_elf_core_registers): Update.
1070 * v850ice.c (v850ice_fetch_registers): Update.
1071 * thread-db.c (thread_db_store_registers): Update.
1072 * sol-thread.c (sol_thread_store_registers): Update.
1073 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1074 * rs6000-nat.c (fetch_register): Update.
1075 * rom68k-rom.c (rom68k_supply_one_register): Update.
1076 * remote.c (remote_wait, remote_async_wait): Update.
1077 * remote-st.c (get_hex_regs): Update.
1078 * remote-sim.c (gdbsim_fetch_register): Update.
1079 * remote-sds.c (sds_fetch_registers): Update.
1080 * remote-rdp.c (remote_rdp_fetch_register): Update.
1081 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1082 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1083 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1084 * remote-hms.c (init_hms_cmds): Update.
1085 * remote-est.c (init_est_cmds): Update.
1086 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1087 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1088 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1089 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1090 (fetch_register, supply_vrregset, supply_vrregset)
1091 (fetch_spe_registers): Update.
1092 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1093 * monitor.c (monitor_supply_register): Update.
1094 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1095 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1096 (mipsnbsd_supply_fpreg): Update.
1097 * mips-nat.c (fetch_inferior_registers)
1098 (fetch_core_registers): Update.
1099 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1100 (supply_fpregset, mips64_supply_gregset)
1101 (mips64_supply_fpregset): Update.
1102 * m68klinux-nat.c (fetch_register, supply_gregset)
1103 (supply_fpregset): Update.
1104 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1105 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1106 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1107 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1108 * infptrace.c (fetch_register): Update.
1109 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1110 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1111 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1112 (gnu_fetch_registers, gnu_store_registers): Update.
1113 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1114 * i386-linux-nat.c (fetch_register, supply_gregset)
1115 (dummy_sse_values): Update.
1116 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1117 * hppah-nat.c (fetch_register): Update.
1118 * hppa-linux-nat.c (fetch_register, supply_gregset)
1119 (supply_fpregset): Update.
1120 * go32-nat.c (fetch_register): Update.
1121 * dve3900-rom.c (fetch_bitmapped_register)
1122 (_initialize_r3900_rom): Update.
1123 * cris-tdep.c (supply_gregset): Update.
1124 * abug-rom.c (init_abug_cmds): Update.
1125 * core-aout.c (fetch_core_registers): Update.
1126 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1127 (fetch_register, fetch_fp_register): Update.
1128 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1129 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1130 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1131 * alphanbsd-tdep.c (fetch_core_registers): Update.
1132 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1133 * alpha-nat.c (fetch_osf_core_registers)
1134 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1135 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1136 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1137
1138 2004-07-21 Andrew Cagney <cagney@gnu.org>
1139
1140 * PROBLEMS: Mention breakpoints/1702.
1141 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1142 that is known to work.
1143
1144 2004-07-21 Andrew Cagney <cagney@gnu.org>
1145
1146 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1147 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1148 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1149 (handle_inferior_event): Wrap call to deprecated
1150 IGNORE_HELPER_CALL in #ifdef.
1151 * config/mips/tm-nbsd.h: Update.
1152
1153 2004-07-20 Jim Blandy <jimb@redhat.com>
1154
1155 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1156 bfd_mach_ppc has no segment registers.
1157
1158 Include PowerPC SPR numbers for special-purpose registers.
1159 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1160 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1161 new member in initializer.
1162 (S, S4, SN4, S64): New macros for defining special-purpose
1163 registers.
1164 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1165 registers_403, registers_403GC, registers_505, registers_860,
1166 registers_601, registers_602, registers_603, registers_604,
1167 registers_750, registers_e500): Use them.
1168
1169 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1170 replace references with expression used to initialize variable.
1171
1172 2004-07-20 Andrew Cagney <cagney@gnu.org>
1173
1174 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1175 read_memory_nobpt.
1176 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1177 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1178 (s390_sigtramp_frame_sniffer): Update.
1179 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1180 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1181 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1182 (mips32_fetch_instruction): Update.
1183 * mcore-tdep.c (get_insn): Update.
1184 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1185 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1186 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1187 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1188 (i386_linux_rt_sigtramp_start): Update.
1189 * i386-linux-nat.c (child_resume): Update.
1190 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1191 * hppa-linux-tdep.c (insns_match_pattern): Update.
1192 * gdbcore.h: Update.
1193 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1194 * frame.c (safe_frame_unwind_memory): Update.
1195 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1196 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1197 * alpha-tdep.c (alpha_read_insn): Update.
1198
1199 2004-07-20 Andrew Cagney <cagney@gnu.org>
1200
1201 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1202 containing both bytes and mask. Add "frame_type".
1203 * tramp-frame.c (tramp_frame_start): Update.
1204 (tramp_frame_prepend_unwinder): Update.
1205 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1206 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1207 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1208 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1209
1210 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1211
1212 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1213 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1214 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1215 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1216
1217 2004-07-17 Andrew Cagney <cagney@gnu.org>
1218
1219 * NEWS, PROBLEMS: Update for 6.2.
1220
1221 * README: Update to 6.2.
1222
1223 * utils.c (xvasprintf): Call xstrvprintf.
1224
1225 * parse.c: Update copyright.
1226 (null_post_parser): Eliminate ARGSUSED.
1227
1228 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1229 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1230 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1231
1232 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1233 * ppc-linux-nat.c: Use "Linux kernel".
1234 * hppa-linux-tdep.c: Use GNU/Linux.
1235 * hppa-linux-nat.c: Use GNU/Linux.
1236 * dwarfread.c: Add [sic] to use of Linux.
1237
1238 * hppa-linux-nat.c: Do not include <string.h>.
1239 (supply_fpregset): Remove "register" attribute.
1240
1241 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1242
1243 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1244
1245 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1246 * configure, config.in: Regenerated.
1247
1248 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1249 "bsd-kvm.h".
1250 (vaxbsd_supply_pcb): New function.
1251 (_initialize_vaxbsd_nat): New prototype and function.
1252 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1253 solib-sunos.o.
1254 (LOADLIBES): New variable.
1255 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1256 (LOADLIBES): New variable.
1257 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1258 (LOADLIBES): New variable.
1259 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1260
1261 2004-07-16 Andrew Cagney <cagney@gnu.org>
1262
1263 * defs.h (event_loop_p): Replace variable declaration with macro,
1264 always 1.
1265 * main.c (captured_main): Delete options "-async" and "-noasync".
1266 (event_loop_p): Delete variable.
1267 * NEWS: Mention that "-async" and "-noasync" were removed.
1268
1269 2004-07-16 Andrew Cagney <cagney@gnu.org>
1270
1271 * remote-m32r-sdi.c: Re-indent.
1272
1273 2004-07-16 Jim Blandy <jimb@redhat.com>
1274
1275 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1276 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1277 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1278 missing MPC823 SPRs.
1279 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1280 incorrect. (This was corrected in GDB's register name tables on
1281 2004-07-14.)
1282
1283 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1284 should be "esasrr" ("ESA Save and Restore Register").
1285
1286 2004-07-16 Andrew Cagney <cagney@gnu.org>
1287
1288 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1289 calls, no longer applicable. Update comments and rename parameter
1290 "step_frame" to "return_frame".
1291
1292 2004-07-16 Andrew Cagney <cagney@gnu.org>
1293
1294 * frame.c (fprint_field): New function.
1295 (fprint_frame_id): Use fprint_field.
1296
1297 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1298
1299 * ada-lang.c (ada_language_defn): Remove commented out code.
1300
1301 2004-07-15 Jim Blandy <jimb@redhat.com>
1302
1303 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1304 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1305
1306 2004-07-14 Jim Blandy <jimb@redhat.com>
1307
1308 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1309
1310 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1311
1312 * ppc-tdep.h (ppc_num_srs): New enum constant.
1313
1314 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1315 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1316 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1317 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1318 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1319 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1320 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1321 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1322 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1323 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1324 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1325 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1326 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1327 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1328 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1329 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1330 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1331 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1332 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1333 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1334 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1335 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1336 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1337 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1338 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1339 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1340 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1341 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1342 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1343 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1344 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1345 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1346 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1347 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1348 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1349 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1350 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1351 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1352 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1353 special-purpose register numbers.
1354
1355 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1356 manual mentions 'md_twb', but many mention 'm_twb', and at that
1357 point in the register list.)
1358
1359 2004-07-14 Andrew Cagney <cagney@gnu.org>
1360
1361 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1362 instead of "internal-error".
1363
1364 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1365
1366 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1367 that was inserted inside a comment.
1368
1369 2004-07-10 Randolph Chung <tausq@debian.org>
1370
1371 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1372 function.
1373 (hppa_hpux_push_dummy_code): New function.
1374 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1375 Set find_global_pointer method.
1376
1377 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1378
1379 * NEWS: Mention BSD libkvm interface.
1380
1381 2004-07-10 Michael Snyder <msnyder@redhat.com>
1382
1383 * symfile.c (generic_load): Comment typo.
1384 * stack.c (get_selected_block): Ditto.
1385 * regcache.c (regcache_cooked_read): Ditto.
1386 * monitor.c (monitor_debug): Ditto.
1387 * mips-tdep.c (mips_read_pc): Ditto.
1388 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1389 * gdb_mbuild.sh: Ditto.
1390 * gdbarch.sh: Ditto.
1391 * gdbarch.h: Ditto.
1392
1393 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1394
1395 * ada-tasks.c: Remove file.
1396
1397 Remove ARI problems:
1398
1399 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1400 beginning of line.
1401
1402 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1403 Add comment.
1404 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1405 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1406 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1407 (UMIN_OF_SIZE): Remove.
1408 (max_of_type): New function to replace orphan macro in gdbtypes.h
1409 (min_of_type): Ditto.
1410 (discrete_type_high_bound): Use max_of_type.
1411 (discrete_type_low_bound): Use min_of_type.
1412 (possible_user_operator_p): Move operator to beginning of line.
1413 (ada_is_variant_part): Ditto.
1414 (ensure_lval): Rewrite to avoid deprecated operations.
1415 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1416 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1417 (ada_enum_name): Remove assignments in 'if' statements.
1418 (build_ada_types): Add gdbarch parameter.
1419 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1420 with gdbarch_data_register_post_init.
1421 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1422 add_show_from_set.
1423
1424 * ada-valprint.c (inspect_it): Remove declaration.
1425 (repeat_count_threshold): Remove declaration.
1426 (ada_print_floating): Remove assignments in 'if' statements.
1427 (print_str): Move operator to beginning of line.
1428
1429 2004-07-08 Jim Blandy <jimb@redhat.com>
1430
1431 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1432
1433 2004-07-08 Bob Rossi <bob@brasko.net>
1434
1435 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1436
1437 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1438
1439 * language.h (struct_language_defn): Add new function pointer:
1440 la_class_name_from_physname. Also add new prototype for
1441 language_class_name_from_physname.
1442 * language.c (language_class_name_from_physname): New function.
1443 (unk_lang_class_name): Ditto.
1444 (unknown_language_defn, auto_language_defn): Change
1445 to add unk_lang_class_name function pointer for
1446 la_class_name_from_physname.
1447 (local_language_defn): Ditto.
1448 * dwarf2read.c (guess_structure_name): Change to call
1449 language_class_name_from_physname.
1450 (determine_class_name): Ditto.
1451 * cp-support.c (class_name_from_physname): Renamed.
1452 (cp_class_name_from_physname): New name of function.
1453 * cp-support.h: Ditto.
1454 * c-lang.c (c_language_defn): Change to add NULL
1455 for class_name_from_physname function pointer.
1456 (cplus_language_defn): Change to add cp_class_name_from_physname.
1457 * jv-lang.c (java_class_name_physname): New function.
1458 (java_find_last_component): New static routine.
1459 (java_language_defn): Add java_class_name_from_physname pointer.
1460 * ada-lang.c (ada_language_defn): Change to add NULL
1461 for class_name_from_physname function pointer.
1462 * f-lang.c (f_language_defn): Ditto.
1463 * m2-lang.c (m2_language_defn): Ditto.
1464 * objc-lang.c (objc_language_defn): Ditto.
1465 * p-lang.c (pascal_language_defn): Ditto.
1466 * scm-lang.c (scm_language_defn): Ditto.
1467
1468 2004-07-06 Andrew Cagney <cagney@gnu.org>
1469
1470 Patch from Bart Robinson.
1471 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1472 (O_LARGEFILE): Define to 0, if not defined.
1473
1474 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1475
1476 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1477 <machine/pcb.h> and "bsd-kvm.h".
1478 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1479 (m68kbsd_supply_pcb): New function.
1480 (_initialize_m68kbsd_nat): New prototype and function.
1481 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1482 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1483 (LOADLIBES): New variable.
1484 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1485 (LOADLIBES): New variable.
1486
1487 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
1488
1489 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1490
1491 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
1492 <sys/proc.h>.
1493 (bsd_kvm_cmdlist): New variable.
1494 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
1495 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
1496 command and "kvm proc" command.
1497 * Makefile.in (bsd-kvm.o): Update dependencies.
1498
1499 2004-07-02 Mark Kettenis <kettenis@gnu.org>
1500
1501 * osabi.c: Update copyright year.
1502 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
1503 notes if EI_OSABI is set to ELFOSABI_HPUX.
1504
1505 2004-07-01 Michael Snyder <msnyder@redhat.com>
1506
1507 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
1508 that seems to have gotten whacked out of line.
1509
1510 2004-07-01 Mark Kettenis <kettenis@gnu.org>
1511
1512 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
1513 code.
1514
1515 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1516
1517 * ada-lang.c (decode_packed_array): Minor change to comment.
1518 (ada_value_slice_ptr): New function.
1519 (ada_value_slice): New function.
1520 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
1521 test. Don't know why it is there.
1522 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
1523 to avoid dereferencing huge arrays from which one is slicing.
1524 (empty_array): Correct to return an array rather than
1525 a subrange value.
1526 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
1527 on empty arrays (let'em use 'FIRST instead).
1528
1529 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1530
1531 Address complaints from gdb_ari.sh:
1532
1533 * ada-exp.y: Include gdb_string.h rather than string.h.
1534 (convert_char_literal): Reformat declaration.
1535 * ada-lang.h: Include opaque struct declaration for struct frame_info.
1536 * ada-lex.l: Change use of free to xfree (the macro would do so
1537 anyway, but this is harmless).
1538 Include gdb_string.h rather than string.h.
1539 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
1540
1541 * ada-lang.c (parse): Remove K&Rism in parameter list.
1542 (is_name_suffix): Correct Linux => GNU/Linux in comment.
1543
1544 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1545
1546 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
1547 dead code.
1548
1549 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1550
1551 * alphabsd-nat.c: Update copyright year.
1552 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
1553
1554 2004-06-29 Joel Brobecker <brobecker@gnat.com>
1555
1556 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
1557 (i386_cygwin_in_solib_call_trampoline): New function.
1558 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
1559 and skip_trampoline_code gdbarch methods.
1560
1561 2004-06-29 Jim Blandy <jimb@redhat.com>
1562
1563 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
1564 name actually used in the dependency lists.
1565
1566 2004-06-29 Randolph Chung <tausq@debian.org>
1567
1568 * NEWS (New native configurations): Mention GNU/Linux/hppa.
1569
1570 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1571
1572 * win32-nat.c (child_pid_to_exec_file): New function.
1573 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
1574 functionality.
1575
1576 2004-06-28 Andrew Cagney <cagney@gnu.org>
1577
1578 * defs.h (xstrvprintf): Declare.
1579 * utils.c (xstrvprintf): New function.
1580 (internal_vproblem, xstrprintf, xasprintf)
1581 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
1582 * serial.c (serial_printf): Ditto.
1583 * complaints.c (vcomplaint): Ditto.
1584
1585 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1586
1587 * infcmd.c (attach_command): Move call to target_terminal_inferior
1588 behind loading symbol table.
1589
1590 2004-06-28 Andrew Cagney <cagney@gnu.org>
1591
1592 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
1593 change - add back extern deprecated_ui_loop_hook declaration.
1594
1595 2004-06-28 Andrew Cagney <cagney@gnu.org>
1596
1597 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
1598 xstrprintf.
1599 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
1600 (c_value_of_variable): Ditto.
1601 * utils.c (internal_vproblem): Ditto.
1602 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
1603 * remote.c (add_packet_config_cmd): Ditto.
1604 * remote-rdp.c (rdp_set_command_line): Ditto.
1605 * regcache.c (regcache_dump): Ditto.
1606 * frv-tdep.c (new_variant, new_variant): Ditto.
1607 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
1608 (fbsd_find_memory_regions): Ditto.
1609 * breakpoint.c (create_thread_event_breakpoint)
1610 (create_breakpoints): Ditto.
1611 * aix-thread.c (aix_thread_pid_to_str): Ditto.
1612 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
1613
1614 2004-06-28 Joel Brobecker <brobecker@gnat.com>
1615
1616 * ada-lang.c: Re-indent file, with some massaging to help indent
1617 a bit when the result is otherwise really too ugly.
1618
1619 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1620
1621 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
1622 code_addr_p and special_addr_p to 'unsigned int'.
1623
1624 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1625
1626 * i386v4-nat.c: Update copyright year and tweak comment.
1627 (regmap): Remove trailing comma.
1628 (supply_gregset): Rename local variable i to regnum. Call
1629 regcache_raw_supply instead of supply_register.
1630 (fill_gregset): Rename argument regno to regnum. Call
1631 regcache_raw_collect instead of regcache_collect.
1632
1633 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1634
1635 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
1636 and special_addr_p.
1637 (frame_id_build, frame_id_build_special): Update comments.
1638 (frame_id_build_wild): New prototype.
1639 * frame.c (frame_id_build, frame_id_build_special): Fill in new
1640 struct frame_id fields.
1641 (frame_id_build_wild): New function.
1642 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
1643
1644 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1645
1646 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
1647 hppabsd-tdep.c.
1648
1649 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1650
1651 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
1652
1653 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1654
1655 * ada-lang.c: Re-indent file.
1656
1657 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1658
1659 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
1660 (no_symtab_msg): Likewise.
1661
1662 2004-06-27 Andreas Schwab <schwab@suse.de>
1663
1664 * source.c: Fix whitespace.
1665
1666 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1667
1668 * configure.in: Include <sys/param.h> for td_pcb test.
1669 * configure: Regenerated.
1670
1671 * i386nbsd-nat.c: New file.
1672 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
1673 i386obsd-nat.c and i386obsd-tdep.c.
1674 (i386nbsd-nat.o): New dependency.
1675 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
1676 bsd-kvm.o.
1677 (LOADLIBES): New variable.
1678 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
1679 bsd-kvm.o.
1680 (LOADLIBES): New variable.
1681
1682 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
1683 (LOADLIBES): New variable.
1684
1685 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
1686 fetching from BSD_KVM_PADDR. Correctly lookup address for
1687 "_thread0".
1688
1689 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
1690 "bsd-kvm.h".
1691 (amd64fbsd_supply_pcb): New funcion.
1692 (_initialize_amd64fbsd_nat): Enable libkvm interface.
1693
1694 2004-06-27 <david@streamline-computing.com>
1695
1696 Partial fix for PR cli/1056.
1697 * valarith.c: Check for zero in division and remainder
1698 evaluation.
1699
1700 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1701
1702 * i387-tdep.c: Remove excessive whitespace.
1703
1704 2004-06-26 Andrew Cagney <cagney@gnu.org>
1705
1706 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
1707 * gdb-events.h, gdb-events.c: Re-generate.
1708 * tui/tui-hooks.c (tui_install_hooks): Update.
1709 (tui_remove_hooks): Update.
1710 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
1711
1712 2004-06-26 Mark Kettenis <kettenis@gnu.org>
1713
1714 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
1715 (gregset_t, fpregset_t): Remove typedefs.
1716 (REG_OFFSET): Rename argument.
1717 (amd64bsd_r_reg_offset): Rename from reg_offset.
1718 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1719 Remove functions.
1720 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
1721 of reg_offset.
1722 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
1723
1724 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
1725
1726 * vax-tdep.c: Tweak comment.
1727
1728 Add OpenBSD/hppa support.
1729 * NEWS (New native configurations): Mention OpenBSD/hppa.
1730 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
1731 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
1732 files.
1733 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1734 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
1735 * configure.host: Add hppa*-*-openbsd*.
1736 * configure.tgt: Add hppa*-*-openbsd*.
1737
1738 2004-06-25 Andrew Cagney <cagney@gnu.org>
1739
1740 * defs.h (deprecated_ui_loop_hook): Deprecated.
1741 * wince.c (child_wait): Update.
1742 * win32-nat.c (child_wait): Update.
1743 * v850ice.c (v850ice_wait): Update.
1744 * top.c (deprecated_ui_loop_hook): Update.
1745 * serial.h: Update.
1746 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
1747 (do_unix_readchar): Update.
1748 * ser-tcp.c (net_open): Update.
1749 * remote-sim.c (gdb_os_poll_quit): Update.
1750 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
1751
1752 2004-06-24 Andrew Cagney <cagney@gnu.org>
1753
1754 * defs.h (deprecated_pre_add_symbol_hook)
1755 (deprecated_post_add_symbol_hook): Deprecated.
1756 * symfile.c (symbol_file_add_with_addrs_or_offsets)
1757 (symbol_file_add_with_addrs_or_offsets): Update references.
1758
1759 2004-06-24 Andrew Cagney <cagney@gnu.org>
1760
1761 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
1762 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
1763 * wince.c (ui_loop_hook): Delete extern declaration.
1764 * win32-nat.c (ui_loop_hook): Delete extern declaration..
1765 * v850ice.c (ui_loop_hook): Delete extern declaration..
1766 * ser-unix.c (ui_loop_hook): Delete extern declaration..
1767 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
1768 * remote-sim.c (ui_loop_hook): Delete extern declaration..
1769 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
1770 ui_loop_hook declaration.
1771
1772 2004-06-24 Andrew Cagney <cagney@gnu.org>
1773
1774 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
1775 entry_func_highpc fields.
1776 * objfiles.c (init_entry_point_info): Do not clear
1777 entry_func_lowpc and entry_func_highpc.
1778 (objfile_relocate): Do not relocate entry_func_lowpc and
1779 entry_func_highpc.
1780 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
1781 entry_func_highpc.
1782 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
1783 entry_func_highpc.
1784 * blockframe.c (legacy_frame_chain_valid): Replace tests against
1785 entry_func_lowpc and entry_func_highpc with call to
1786 inside_entry_func.
1787
1788 2004-06-24 Mark Kettenis <kettenis@gnu.org>
1789
1790 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
1791 quad-precision floating point arguments in registers.
1792
1793 2004-06-24 Mark Kettenis <kettenis@gnu.org>
1794
1795 From Michael Mueller <m.mueller99@kay-mueller.de>:
1796 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
1797 account.
1798
1799 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
1800
1801 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
1802 to -1.
1803 * breakpoint.c (bpstat_stop_status): Move check for ignoring
1804 untriggered watchpoints to a separate if clause. Update function
1805 comment regarding STOPPED_BY_WATCHPOINT argument.
1806
1807 2004-06-22 Jim Blandy <jimb@redhat.com>
1808
1809 * gdbarch.sh: Doc fix.
1810
1811 2004-06-21 Martin Hunt <hunt@redhat.com>
1812 Kevin Buettner <kevinb@redhat.com>
1813
1814 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
1815 * mips-tdep.h (MIPS_SP_REGNUM): Define.
1816 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
1817 to set_gdbarch_sp_regnum(). Use cooked register number.
1818 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
1819
1820 2004-06-21 Andrew Cagney <cagney@gnu.org>
1821
1822 * gdbarch.sh: When the macro field is empty, do not generate a
1823 macro definition. When the macro field is "=", generate the macro
1824 name from the upper-case function name.
1825 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
1826 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
1827 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
1828 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
1829 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
1830 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
1831 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
1832 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
1833 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
1834 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
1835 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
1836 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
1837 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
1838 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
1839 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
1840 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
1841 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
1842 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
1843 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
1844 (DEPRECATED_USE_STRUCT_CONVENTION)
1845 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1846 (DEPRECATED_FRAME_INIT_SAVED_REGS)
1847 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
1848 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
1849 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
1850 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
1851 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
1852 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
1853 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
1854 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
1855 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
1856 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
1857 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
1858 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
1859 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
1860 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
1861 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
1862 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
1863
1864 2004-06-21 Andrew Cagney <cagney@gnu.org>
1865
1866 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
1867 macro name, and the function rather than macro value. Only wrap
1868 macro print statements in #ifdef. Move format logic to where it
1869 is needed.
1870 * gdbarch.c: Re-generate.
1871
1872 * gdbarch.sh (read): Delete "print_p" and "description", add
1873 "garbage_at_eol". Check for non-empty garbage at end-of-line.
1874 Delete references to print_p.
1875 (TARGET_ARCHITECTURE): Delete print predicate.
1876 * gdbarch.c: Re-generate.
1877
1878 * gdbarch.sh: Check that multi-arch methods do not provide a
1879 macro.
1880 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
1881 (print_registers_info, print_float_info, print_vector_info)
1882 (adjust_breakpoint_address, remote_translate_xfer_address)
1883 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
1884 (address_class_type_flags_to_name, unwind_sp): Remove the macro
1885 name from the multi-arch definition.
1886
1887 2004-06-20 Andrew Cagney <cagney@gnu.org>
1888
1889 * gdbarch.sh: Sort by the function, instead of macro name.
1890 * gdbarch.c: Re-generate.
1891
1892 2004-06-20 Andrew Cagney <cagney@gnu.org>
1893
1894 * gdbarch.sh: Use the function, instead of macro name in
1895 errors and the log file.
1896 (return_value): Remove stray ":" in spec.
1897
1898 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
1899 * gdbarch.h, gdbarch.c: Re-generate.
1900 * Makefile.in (arch-utils.o): Update dependencies.
1901 * values.c (using_struct_return): Move code calling
1902 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
1903 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
1904 to legacy_return_value, simplify.
1905 * infcmd.c (print_return_value): Move code calling
1906 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
1907 to legacy_return_value, simplify.
1908 * infcall.c (call_function_by_hand): Move code calling
1909 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
1910 * arch-utils.c: Update copyright. Include "gdbcore.h".
1911 (legacy_return_value): New function.
1912 * arch-utils.h: Update copyright.
1913 (legacy_return_value): Declare.
1914
1915 2004-06-20 Andrew Cagney <cagney@gnu.org>
1916
1917 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
1918 * gdbarch.h, gdbarch.c: Re-generate.
1919 * values.c (using_struct_return): Update call.
1920 * mcore-tdep.c: Update comment.
1921 * infcall.c (call_function_by_hand): Update comment.
1922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1923 * arch-utils.h (always_use_struct_convention): Update.
1924 * v850-tdep.c (v850_gdbarch_init): Update.
1925 * sh64-tdep.c (sh64_gdbarch_init): Update.
1926 * sh-tdep.c (sh_gdbarch_init): Update.
1927 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1928 * mips-tdep.c (mips_gdbarch_init): Update.
1929 * mcore-tdep.c (mcore_gdbarch_init): Update.
1930 * m32r-tdep.c (m32r_gdbarch_init): Update.
1931 * ia64-tdep.c (ia64_gdbarch_init): Update.
1932 * h8300-tdep.c (h8300_gdbarch_init): Update.
1933 * frv-tdep.c (frv_gdbarch_init): Update.
1934 * cris-tdep.c (cris_gdbarch_init): Update.
1935 * arm-tdep.c (arm_gdbarch_init): Update.
1936 * alpha-tdep.c (alpha_gdbarch_init): Update.
1937
1938 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
1939
1940 * PROBLEMS: Add more specific information, and a work-around,
1941 for PR gdb/1458.
1942
1943 2004-06-18 Andrew Cagney <cagney@gnu.org>
1944
1945 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
1946 * gdbarch.h, gdbarch.c: Re-generate.
1947 * ada-lang.c (ada_finish_decode_line_1): Update.
1948 * infrun.c (handle_inferior_event): Update.
1949 * infcall.c (find_function_addr): Update.
1950 * linespec.c (minsym_found): Update.
1951 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
1952 Update.
1953 * blockframe.c (legacy_frameless_look_for_prologue): Update.
1954 * cli/cli-cmds.c (disassemble_command): Update.
1955 * vax-tdep.c (vax_gdbarch_init): Update.
1956
1957 2004-06-18 Mark Kettenis <kettenis@gnu.org>
1958
1959 * i386-tdep.c (i386_collect_fpregset): Fix comment.
1960
1961 2004-06-17 Andrew Cagney <cagney@gnu.org>
1962
1963 GDB 6.1.1 released from the GDB 6.1 branch.
1964 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
1965 * PROBLEMS: Ditto.
1966
1967 2004-06-16 Daniel Jacobowitz <dan@debian.org>
1968
1969 PR gdb/1658
1970 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
1971 operation as a uleb128. Found by Michael Coulter.
1972
1973 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
1974
1975 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
1976 make it non-static.
1977 * ada-lang.h (task_control_block): declaration moved from ada-task.c
1978 to ada-lang.h; this is needed to be able to implement the kill command
1979 in multi-task mode.
1980 (task_ptid): Ditto.
1981 (task_entry): Ditto.
1982 (task_list): Ditto.
1983 (ada_build_task_list): Ditto.
1984
1985 * ada-lang.c: Conditionalize routines and data structures related
1986 to breakpoints, exceptions, completion, and symbol caching on
1987 GNAT_GDB, since these are not yet used in the submitted public sources.
1988 (ada_main_name): Editorial: Move definition out of exception-related
1989 code.
1990
1991 2004-06-15 Andrew Cagney <cagney@gnu.org>
1992
1993 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
1994 deprecated_pc_in_call_dummy.
1995
1996 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1997
1998 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
1999 bfd_get_section_size_before_reloc or _raw_size.
2000 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2001 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2002 (dwarf2_read_section): Likewise.
2003 * elfread.c (elf_locate_sections): Likewise.
2004 * gcore.c (derive_heap_segment): Likewise.
2005 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2006 * remote-e7000.c (e7000_load): Likewise.
2007 * remote-m32r-sdi.c (m32r_load): Likewise.
2008 * remote-mips.c (mips_load_srec): Likewise.
2009 (pmon_load_fast): Likewise.
2010 * remote.c (compare_sections_command): Likewise.
2011 * symfile.c (add_section_size_callback): Likewise.
2012 (load_section_callback): Likewise.
2013 (pc_in_unmapped_range): Likewise.
2014 (pc_in_mapped_range): Likewise.
2015 (sections_overlap): Likewise.
2016 (list_overlays_command): Likewise.
2017 (simple_overlay_update_1): Likewise.
2018 (simple_overlay_update): Likewise.
2019 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2020 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2021
2022 2004-06-14 Randolph Chung <tausq@debian.org>
2023
2024 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2025 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2026 static.
2027 (hppa_hpux_inferior_created): New function.
2028 (hppa_hpux_init_abi): Register observer.
2029 * symfile.c (hp_cxx_exception_support_initialized)
2030 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2031 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2032
2033 2004-06-14 Randolph Chung <tausq@debian.org>
2034
2035 * MAINTAINERS (Write After Approval): Alphabetize my entry
2036 correctly.
2037
2038 2004-06-14 Andrew Cagney <cagney@gnu.org>
2039
2040 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2041 testsuite maintainer.
2042
2043 2004-06-13 Andrew Cagney <cagney@gnu.org>
2044
2045 * infcmd.c (print_return_value): Fix logic, allow
2046 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2047
2048 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2049 defining any macros.
2050 * gdbarch.h: Re-generate.
2051
2052 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2053 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2054 * gdbarch.h: Re-generate.
2055
2056 * values.c (generic_use_struct_convention): Don't check gcc_p.
2057
2058 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2059 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2060 * gdbarch.h, gdbarch.c: Regenerate.
2061 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2062 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2064 deprecated_max_register_raw_size and
2065 deprecated_max_register_virtual_size.
2066 * v850-tdep.c (v850_gdbarch_init): Ditto.
2067 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2068 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2069 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2070 * cris-tdep.c (cris_gdbarch_init): Ditto.
2071
2072 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2073 * gdbarch.h, gdbarch.c: Re-generate.
2074 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2075 (m68hc11_use_struct_convention): Delete function.
2076 (m68hc11_extract_struct_value_address): Delete function.
2077 (m68hc11_return_value): New function.
2078 (m68hc11_gdbarch_init): Instead of store_return_value,
2079 extract_return_value, return_value_on_stack,
2080 deprecated_extract_struct_value_address and use_struct_convention,
2081 set return_value.
2082 * values.c (using_struct_return): Do not call
2083 RETURN_VALUE_ON_STACK.
2084 * arch-utils.h (generic_return_value_on_stack_not): Delete
2085 declaration.
2086 * arch-utils.c (generic_return_value_on_stack_not): Delete
2087 function.
2088
2089 2004-06-12 Andrew Cagney <cagney@gnu.org>
2090
2091 * values.c (register_value_being_returned): Delete function.
2092 * infcmd.c (legacy_return_value): Delete function.
2093 * infcall.c (call_function_by_hand): Inline
2094 "register_value_being_returned", simplify.
2095 * values.c (using_struct_return): Update comment, refer to
2096 print_return_value instead of register_value_being_returned.
2097 * infcmd.c (print_return_value): Inline calls to
2098 register_value_being_returned and legacy_return_value. Simplify.
2099
2100 2004-06-11 Randolph Chung <tausq@debian.org>
2101
2102 * somread.c (som_symtab_read): Exclude gcc local symbols.
2103
2104 2004-06-11 Randolph Chung <tausq@debian.org>
2105
2106 * infrun.c (handle_inferior_event): Handle the case when a
2107 trampoline ends up in the runtime resolver, and if the trampoline
2108 has no name. Rearrange the code so that all the trampoline
2109 processing happens before other step-out-of-range handling.
2110
2111 2004-06-11 Martin Hunt <hunt@redhat.com>
2112
2113 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2114 has no fpu.
2115
2116 2004-06-10 Andrew Cagney <cagney@gnu.org>
2117
2118 * blockframe.c (legacy_inside_entry_func): Delete.
2119 (legacy_frame_chain_valid): Inline call to
2120 legacy_inside_entry_func, simplify.
2121
2122 2004-06-10 Bob Rossi <bob@brasko.net>
2123
2124 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2125 * dwarf2read.c (partial_die_info): Add dirname field.
2126 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2127 (read_partial_die): Save away DW_AT_comp_dir.
2128 * defs.h (symtab_to_filename): Removed.
2129 * source.c (find_and_open_source): Added.
2130 (open_source_file): Just calls find_and_open_source.
2131 (symtab_to_filename): Removed.
2132 (symtab_to_fullname, psymtab_to_fullname): Added.
2133 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2134 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2135 symtab_to_filename.
2136 * symtab.h (partial_symtab): Add dirname field.
2137 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2138 (mi_cmd_file_list_exec_source_file): Call new function
2139 symtab_to_fullname to find fullname.
2140 (mi_cmd_file_list_exec_source_files): Added.
2141 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2142 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2143
2144 2004-06-10 Andrew Cagney <cagney@gnu.org>
2145
2146 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2147 to generic_use_struct_convention, the default value.
2148
2149 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2150 of abort.
2151
2152 * ns32k-tdep.c (ns32k_push_arguments): New function.
2153 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2154 * infcall.c (call_function_by_hand): Call error instead of
2155 legacy_push_arguments.
2156 * value.h (legacy_push_arguments): Delete declaration.
2157 * valops.c (legacy_push_arguments): Delete function.
2158 (value_push): Delete function.
2159
2160 2004-06-10 Brian Ford <ford@vss.fsi.com>
2161
2162 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2163 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2164 info.
2165 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2166
2167 2004-06-10 Andrew Cagney <cagney@gnu.org>
2168
2169 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2170 * gdbarch.h, gdbarch.c: Re-generate.
2171 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2172 parameters.
2173 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2174 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2175 deprecated_pc_in_call_dummy instead of
2176 DEPRECATED_PC_IN_CALL_DUMMY.
2177 (arm_skip_prologue): Ditto.
2178 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2179 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2180 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2181 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2182 Ditto.
2183 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2184 (sh64_init_extra_frame_info, sh64_get_saved_register)
2185 (sh64_pop_frame): Ditto.
2186 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2187 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2188 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2189 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2190 (h8300_pop_frame): Ditto.
2191 * blockframe.c (legacy_inside_entry_func)
2192 (legacy_frame_chain_valid): Ditto.
2193 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2194 to deprecated_pc_in_call_dummy.
2195
2196 2004-06-09 Andrew Cagney <cagney@gnu.org>
2197
2198 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2199 provide a default value.
2200 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2201 * gdbarch.h, gdbarch.c: Re-generate.
2202 * arch-utils.c (generic_convert_register_p): Rename
2203 legacy_convert_register_p
2204 (legacy_register_to_value, legacy_value_to_register): Delete
2205 functions.
2206 * arch-utils.h (generic_convert_register_p): Rename
2207 legacy_convert_register_p.
2208 (legacy_register_to_value, legacy_value_to_register): Delete
2209 declarations.
2210
2211 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2212 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2213 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2214 * gdbarch.h, gdbarch.c: Re-generate.
2215 * infcmd.c (default_print_registers_info): Simplify.
2216 * findvar.c (value_of_register): Simplify.
2217 * mi/mi-main.c (get_register): Simplify.
2218 * arch-utils.c (legacy_convert_register_p): Always return 0.
2219 (legacy_register_to_value, legacy_value_to_register): Always call
2220 internal_error.
2221
2222 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2223 #ifdef CLEAR_INSN_CACHE code.
2224 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2225 Delete #ifdef CLEAR_DEFERRED_STORES code.
2226
2227 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2228
2229 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2230 copyright.
2231 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2232
2233 * config/mips/mipsv4.mh: Delete file.
2234
2235 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2236 unreferenced macro.
2237 (hpread_adjust_stack_address): Delete declaration.
2238
2239 2004-06-08 Andrew Cagney <cagney@gnu.org>
2240
2241 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2242 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2243 PTRACE_ATTACH / PTRACE_DETACH available call error.
2244 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2245 * infttrace.c (update_thread_state_after_attach, attach, detach):
2246 Remove #ifdef wrappers.
2247 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2248 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2249 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2250 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2251 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2252 * config/nm-linux.h (ATTACH_DETACH): Delete.
2253 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2254 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2255 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2256 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2257 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2258
2259 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2260
2261 * configure.in: Set $configdir to the right OS specific value.
2262 Use value when setting $tcldir and $tkdir.
2263 * configure: Regenerate.
2264
2265 2004-06-06 Paul Brook <paul@codesourcery.com>
2266
2267 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2268 records.
2269
2270 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2271
2272 * ada-lang.c (lookup_symbol_in_language): New function to allow
2273 re-use of another language's symbol lookup code. (Placed here
2274 temporarily while Ada support is being integrated into the public
2275 tree).
2276 (restore_language): New auxiliary function for
2277 lookup_symbol_in_language.
2278 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2279 temporarily while Ada support is being integrated into the public
2280 tree).
2281
2282 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2283
2284 * Makefile.in (check//%): New.
2285
2286 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2287 (mn10300_store_return_value): Rewrite.
2288 (mn10300_type_align): New.
2289 (mn10300_use_struct_convention): Rewrite.
2290 (mn10300_return_value): New, using all of the above.
2291 (mn10300_pop_frame_regular): Add saved_regs_size.
2292 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2293
2294 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2295 regs if PC is on movm.
2296
2297 2004-06-07 Jim Blandy <jimb@redhat.com>
2298
2299 Add native Linux support for the PowerPC E500.
2300 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2301 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2302 all architectures except the E500.
2303 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2304 #definitions.
2305 (struct gdb_evrregset_t): New type.
2306 (have_ptrace_getsetevrregs): New variable.
2307 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2308 fetch_spe_registers): New functions.
2309 (fetch_register): Call fetch_spe_register as appropriate.
2310 Assert that we're only passed raw register numbers.
2311 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2312 Don't fetch gprs if they're pseudoregisters.
2313 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2314 store_spe_registers): New functions.
2315 (store_register): Call store_spe_register as appropriate.
2316 Assert that we're only passed raw register numbers.
2317 (store_ppc_registers): Call store_spe_registers as appropriate.
2318 Don't store gprs if they're pseudoregisters.
2319
2320 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2321
2322 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2323 struct if one exists, even if we are dealing with a zombie thread.
2324
2325 2004-06-07 Andrew Cagney <cagney@gnu.org>
2326
2327 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2328 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2329 Rename PC_REQUIRES_RUN_BEFORE_USE.
2330 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2331 #ifdef.
2332
2333 2004-06-07 Randolph Chung <tausq@debian.org>
2334
2335 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2336 unwinding after sp has been saved to the stack but before the end
2337 of the prologue, and after the fp has been modified but before it has
2338 been saved to the stack.
2339 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2340 Remove superfluous definitions.
2341 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2342
2343 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2344
2345 Committed by Randolph Chung.
2346 * hppa-linux-nat.c: Include the correct version of the header file
2347 depending on the kernel version.
2348
2349 2004-06-06 Randolph Chung <tausq@debian.org>
2350
2351 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2352 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2353
2354 2004-06-06 Randolph Chung <tausq@debian.org>
2355
2356 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2357 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2358 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2359 * hppa-tdep.c (hppa_symbol_address): New function definition.
2360 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2361
2362 2004-06-06 Randolph Chung <tausq@debian.org>
2363
2364 * hppa-tdep.h (struct value): Forward declaration.
2365 (gdbarch_tdep): Define tdep find_global_pointer method.
2366 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2367 associated with the function we are trying to call, and write it
2368 to the gp register.
2369 (hppa32_convert_from_funct_ptr_addr): New function.
2370 (hppa_find_global_pointer): New function.
2371 (hppa_gdbarch_init): Set default find_global_pointer method; set
2372 convert_from_func_ptr_addr method.
2373 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2374 (hppa_linux_init_abi): Set find_global_pointer method.
2375 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2376
2377 2004-06-06 Randolph Chung <tausq@debian.org>
2378
2379 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2380 to struct value *function.
2381 * gdbarch.c: Regenerate.
2382 * gdbarch.h: Likewise.
2383 * infcall.c (call_function_by_hand): Pass entire function value
2384 to push_dummy_call.
2385
2386 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2387 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2388 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2389 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2390 * arm-tdep.c (arm_push_dummy_call): Likewise.
2391 * avr-tdep.c (avr_push_dummy_call): Likewise.
2392 * cris-tdep.c (cris_push_dummy_call): Likewise.
2393 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2394 * frv-tdep.c (frv_push_dummy_call): Likewise.
2395 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2396 * hppa-tdep.c (hppa32_push_dummy_call)
2397 (hppa64_push_dummy_call): Likewise.
2398 * i386-tdep.c (i386_push_dummy_call): Likewise.
2399 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2400 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2401 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2402 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2403 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2404 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2405 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2406 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2407 (ppc64_sysv_abi_push_dummy_call): Likewise.
2408 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2409 (ppc64_sysv_abi_push_dummy_call): Likewise.
2410 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2411 * s390-tdep.c (s390_push_dummy_call): Likewise.
2412 * sh-tdep.c (sh_push_dummy_call_fpu)
2413 (sh_push_dummy_call_nofpu): Likewise.
2414 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2415 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2416 * vax-tdep.c (vax_push_dummy_call): Likewise.
2417
2418 2004-06-04 Jim Blandy <jimb@redhat.com>
2419
2420 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2421 gdbarch argument to register_size.
2422
2423 * rs6000-tdep.c (rs6000_store_return_value): Use
2424 regcache_cooked_write_part instead of
2425 deprecated_write_register_bytes.
2426 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2427 not gdbarch_deprecated_store_return_value.
2428
2429 * ppc-linux-nat.c (store_register, fetch_register): Remove
2430 incorrect assertions. Simplify and generalize handling of
2431 transfers whose sizes are not multiples of, or less than, sizeof
2432 (PTRACE_XFER_TYPE).
2433
2434 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2435
2436 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2437 as a new thread event.
2438 * thread-db.c (thread_get_info_callback): If the thread is a
2439 zombie, return TD_THR_ZOMBIE.
2440 (thread_from_lwp): If thread_get_info_callback returns
2441 TD_THR_ZOMBIE, check if the thread is still on the thread list
2442 and return a -1 ptid if not found.
2443 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2444 change the status to TARGET_WAITKIND_SPURIOUS.
2445
2446 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
2447
2448 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2449 double values in little endian mode.
2450
2451 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2452
2453 Committed by Andrew Cagney.
2454 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2455 after last enum constant to avoid error from IBM C
2456 compiler.
2457
2458 2004-06-02 Jim Blandy <jimb@redhat.com>
2459
2460 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2461 to 'message', and make it local to the lone block that uses it.
2462
2463 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2464
2465 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2466
2467 * ada-exp.y: Update copyright notice.
2468 Include block.h.
2469
2470 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2471 SPECIAL_VARIABLE and unify the treatment of these cases.
2472
2473 (write_attribute_call0): Remove.
2474 (write_attribute_call1): Remove.
2475 (write_attribute_calln): Remove.
2476 (save_qualifier): Add missing semicolon.
2477
2478 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2479 temporarily disabled to allow compilation with FSF head version.
2480
2481 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
2482 use individual operators (OP_*) for all attributes.
2483 (exp syntax): Use write_int.
2484 Handle STRING literals with OP_STRING.
2485 (variable syntax): Add limit parameter to calls to
2486 write_object_renaming.
2487
2488 (temp_parse_space): New definition to hold entities that need
2489 only live until the next call to ada_parse.
2490 (string_to_operator): Rename fields of ada_opname_table entries.
2491
2492 (write_var_from_sym): Record block.
2493 (write_var_from_name): Minor reformatting.
2494 Make sure saved name is properly encoded in the case of multiple
2495 matches, and set its language to Ada.
2496 Update comment.
2497 Modify to indicate unresolved name as symbol in the UNRESOLVED
2498 namespace, allocated in temp_parse_space.
2499 (write_int): New function.
2500
2501 (write_object_renaming): Add max_depth parameter to limit
2502 chains of object renamings.
2503 Handle case where root of renaming expression is itself a renaming.
2504 Use temp_parse_space for temporary name buffer.
2505 Handle renamings to dereferenced pointers (___XEXA suffices).
2506
2507 (ada_parse, yyerror, string_to_operator,
2508 write_var_from_sym, write_var_from_name, write_attribute_call0,
2509 write_attribute_call1, write_attribute_calln,
2510 write_object_renaming): Protoize.
2511
2512 (_initialize_ada_exp): New function.
2513
2514 * ada-lang.c: Update copyright notice.
2515 General terminology change to conform to GNAT compiler usage:
2516 mangle => encode, demangle => decode
2517 Include gdb_obstack.h.
2518 Include gdb_regex.h
2519 Include frame.h
2520 Include hashtab.h
2521 Include completer.h
2522 Include gdb_stat.h
2523 Include block.h
2524 Include infcall.h
2525
2526 (ADA_RETAIN_DOTS): Make sure this is defined.
2527 (TRUNCATION_TOWARDS_ZERO): Define.
2528 (struct string_vector): Define.
2529 (unresolved_names): Remove definition.
2530 (xnew_string_vector): New function.
2531 (string_vector_append): New function.
2532 (extract_string): Make static.
2533 (ada_unqualified_name): New function.
2534 (add_angle_brackets): New function.
2535 (function_name_from_pc): New function.
2536 (place_on_stack): Rename to ensure_lval.
2537
2538 (ensure_lval): Renamed from place_on_stack.
2539 Make identity on lvals.
2540 Update comment.
2541 (is_nonfunction): New interface.
2542 Only symbols in LOC_CONST class can be enumerals.
2543 (fill_in_ada_prototype): Remove; now independent of language.
2544 (add_defn_to_vec): Add obstack and symtab arguments.
2545 Use obstack to hold collected definitions.
2546 (num_defns_collected): New function.
2547 (defns_collected): New function.
2548 (ada_resolve_subexp): Rename to resolve_subexp.
2549 (resolve_subexp): Renamed from ada_resolve_subexp.
2550 (ada_op_name): Return non-const result.
2551 (ada_decoded_op_name): Renamed from ada_op_name, now used for
2552 other purposes.
2553
2554 (to_fixed_array_type): Add declaration.
2555 (coerce_unspec_val_to_type): Remove offset parameter.
2556 (find_sal_from_funcs_and_line): New interface.
2557 (find_line_in_linetable): Ditto.
2558
2559 (all_sals_for_line): Rename to ada_sals_for_line and make
2560 global.
2561 Add new parameter. When set, do not ask the user to choose the
2562 instance, but use the first one found instead.
2563 Use given line number in returned sals.
2564 Fix comment.
2565 Skip the prologue if funfirstline is set.
2566 Correct for memory leak when 0 lines found.
2567
2568 (value_pos_atr): Use pos_atr.
2569 (pos_atr): New function.
2570 (standard_lookup): Add block parameter.
2571
2572 (makeTimeStart): Remove declaration and uses.
2573 (makeTimeStop): Remove declaration and uses.
2574
2575 (ada_completer_word_break_characters): Allow for VMS.
2576 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
2577 (raise_sym_name): New constant.
2578 (raise_unhandled_sym_name): New constant.
2579 (raise_assert_sym_name): New constant.
2580 (process_raise_exception_name): New constant.
2581 (longest_exception_template): New constant.
2582 (warning_limit): New variable to limit warnings during expression
2583 evaluation.
2584 (warnings_issued): New variable to keep track of warnings issued.
2585 (known_runtime_file_name_patterns): New constant.
2586 (known_auxiliary_function_name_patterns): New constant.
2587 (symbol_list_obstack): New variable.
2588
2589 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
2590 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
2591 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
2592 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
2593 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
2594 ada_variant_discrim_name, field_alignment, dynamic_template_type,
2595 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
2596 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
2597 and strcmp.
2598
2599 (ada_get_field_index): New function.
2600 (lim_warning): New function.
2601 (ada_translate_error_message): New function.
2602 (MAX_OF_SIZE): New function.
2603 (MIN_OF_SIZE): New function.
2604 (UMAX_OF_SIZE): New function.
2605 (UMIN_OF_SIZE): New function.
2606 (discrete_type_high_bound): New function.
2607 (discrete_type_low_bound): New function.
2608 (base_type): New function.
2609 (do_command): Remove.
2610
2611 (ada_update_initial_language): Use language_ada, not language_unknown.
2612 (ada_encode): Renamed from ada_mangle.
2613 Obey ADA_RETAIN_DOTS.
2614 (ada_decode): Renamed from ada_demangle.
2615 Update coding conventions.
2616 (decoded_names_store): New hash table.
2617 (ada_decode_symbol): New function.
2618 (ada_la_decode): New function.
2619
2620 (modify_general_field): Correct computations of offset and bit
2621 position.
2622 (desc_base_type): Handle ref types, too.
2623 (ada_is_direct_array_type): New function.
2624
2625 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2626 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2627 (ada_is_bogus_array_descriptor,ada_type_of_array,
2628 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
2629 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
2630 ada_is_array_descriptor_type.
2631
2632 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
2633 (ada_is_packed_array_type): Handle pointers or
2634 references to packed arrays as well.
2635 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
2636 (decode_packed_array_type): Search for the packed array type
2637 symbol in the currently selected block and associated
2638 superblocks too.
2639 Use lookup_symbol again.
2640
2641 (decode_packed_array): Handle pointers and references.
2642 Update call to coerce_unspec_val_to_type.
2643 (decode_packed_array_type,value_subscript_packed): Limit warnings.
2644 (ada_value_primitive_packed_val): Improve comment.
2645
2646 (ada_index_type): Substitute int type for "undefined".
2647 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
2648 ada_array_langth, ada_is_string_type): Use renamed
2649 ada_is_simple_array_type.
2650 (empty_array): New function.
2651
2652 (ada_resolve): Rename to resolve.
2653 (resolve): Make static.
2654 Call renamed resolve_subexp.
2655 Update comment.
2656 (ada_resolve_subexp): Rename to resolve_subexp.
2657 (resolve_subexp): Update comment.
2658 Decomment disabled code.
2659 Add LOC_COMPUTED* cases.
2660 Modify to use temporary struct symbols (marked as being in
2661 UNDEF_NAMESPACE) to indicate unresolved names, instead of
2662 OP_UNRESOLVED_VALUE.
2663 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
2664 Add OP_STRING case.
2665 Remove OP_ARRAY.
2666 Use SYMBOL_PRINT_NAME instead of ada_demangle.
2667 Use new ada_lookup_symbol_list interface.
2668 Use new ada_resolve_function interface.
2669 Remove OP_TYPE case.
2670
2671 (ada_args_match): Idiot proof against null actuals.
2672 Use intermediate variables to clarify.
2673 (ada_resolve_function): Update comment and interface.
2674 (mangled_ordered_before): Rename to encoded_ordered_before and
2675 update comment.
2676 (sort_choices): Update comment and interface.
2677 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
2678 (user_select_syms): New interface.
2679 Use new sort_choices interface.
2680 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
2681 (possible_user_operator_p): Idiot-proof against null values.
2682 (ada_simple_renamed_entity): Don't make cleanup; rely on
2683 caller to free result string.
2684 Remove const from return type.
2685 (make_array_descriptor): Rename uses of place_on_stack to
2686 ensure_lval.
2687 Make sure that arrays are on stack.
2688
2689 (HASH_SIZE): Define.
2690 (struct cache_entry): Define.
2691 (cache_space): Define.
2692 (cache): Define.
2693 (clear_ada_sym_cache): New function.
2694 (find_entry): New function.
2695 (lookup_cached_symbol): New function.
2696 (defn_vector_size): Define.
2697 (cache_symbol): New function.
2698 (defn_symbols): Remove.
2699
2700 (standard_lookup): Use lookup_symbol_in_language to get effect of
2701 C lookup.
2702 Cache results.
2703
2704 (symbol_completion_match): New function.
2705 (symbol_completion_add): New function.
2706 (ada_make_symbol_completion_list): New function.
2707
2708 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
2709 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
2710 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2711 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
2712
2713 (ada_lookup_simple_minsym): New function.
2714 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
2715
2716 (add_symbols_from_enclosing_procs): New interface.
2717 Conditionalize more helpfully.
2718 Don't bother if program isn't running.
2719 Use new interface to get_frame_block.
2720 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
2721
2722 (remove_extra_symbols): New interface.
2723 (xget_renaming_scope): New function.
2724 (is_package_name): New function.
2725 (renaming_is_visible): New function.
2726 (remove_out_of_scope_renamings): New function.
2727
2728 (ada_lookup_symbol_list): New interface.
2729 Properly reinitialize the symbol list obstack.
2730 Don't call add_symbols_from_enclosing_procs if we start from a
2731 static or global block.
2732 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
2733 add_symbols_from_enclosing_procs.
2734 Add symtab data to cached entries.
2735 Handle symbols prefixed with
2736 "standard__" specially; strip prefix and don't look in local symbols.
2737 Do not include out of scope renaming symbols in list of
2738 symbols returned.
2739 Add const to block parameter.
2740 Move check for non-local, non-global symbols earlier.
2741 Remove timing stuff.
2742 (ada_lookup_symbol): New interface.
2743 Find symtab as well.
2744 (ada_lookup_symbol_nonlocal): New function.
2745
2746 (is_name_suffix): Enhance suffix detection to recognize
2747 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
2748 (is_dot_digits_suffix): New function.
2749 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
2750
2751 (ada_add_block_symbols): New interface. Use obstack to return results
2752 in a vector of struct ada_symbol_infos. Add symtab argument.
2753 Use new interface to add_defn_to_vec.
2754 Remove calls to fill_in_ada_prototype.
2755 Use BLOCK_BUCKETS, BLOCK_BUCKET.
2756
2757 (ada_finish_decode_line_1): Add const qualification to local to fix
2758 warning.
2759 Start looking in static block for functions to avoid attempts
2760 to search frame chain for up-level variables.
2761 Adapt to new ada_sals_for_line interface.
2762 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
2763 Handle quoting of the function name inside the spec string.
2764 Skip prologue when funfirstline is set and update the
2765 function documentation to that effect.
2766
2767 (debug_print_lines, debug_print_block, debug_print_blocks,
2768 debug_print_symtab): Remove.
2769
2770 (ada_main_name): New function.
2771 (ada_exception_breakpoint_type): New function.
2772 (is_known_support_routine): New function.
2773 (ada_find_printable_frame): Renamed from find_printable_frame and made
2774 global.
2775 Remove level parameter.
2776 Use new interface to select_frame.
2777
2778 (begin_command): Remove.
2779 (ada_adjust_exception_stop): New function.
2780 (ada_print_exception_stop): New function.
2781 (exception_name_from_cond): New function.
2782 (ada_report_exception_break): Replace disabled code with
2783 conditionalization on GNAT_GDB.
2784 Get the exception name from the condition string.
2785 Remove and move functionality into new functions
2786 ada_print_exception_breakpoint_task and
2787 ada_print_exception_breakpoint_nontask.
2788 (error_breakpoint_runtime_sym_not_found): New function.
2789 (is_runtime_sym_defined): New function.
2790 (ada_breakpoint_rewrite): Uncomment suppressed code.
2791 Use symbolic error-message and runtime-symbol names.
2792 Surround runtime symbol names in quotes.
2793 Allow non-specific breakpoints on exceptions and assertions before
2794 program starts.
2795
2796 (ada_is_tagged_type): Add parameter.
2797 (ada_is_tag_type): New function.
2798 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
2799 (ada_variant_discrim_type): Ditto.
2800 (value_tag_from_contents_and_address): New function.
2801 (type_from_tag): New function.
2802 (struct tag_args): New structure used to communicate with
2803 ada_tag_name_1.
2804 (ada_tag_name_1): New function.
2805 (ada_tag_name): New function.
2806
2807 (ada_scan_number): Update comment.
2808 (find_struct_field): New function.
2809 (ada_search_struct_field): Make static.
2810 (ada_value_struct_elt): New version that returns references when
2811 given pointers or references to structs.
2812 (ada_lookup_struct_elt_type): Add 'refok' parameter.
2813 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
2814 interface.
2815 (ada_value_ind): Use new ada_to_fixed_value interface.
2816 (ada_coerce_ref): Ditto.
2817 (field_offset): Remove.
2818
2819 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
2820 (ada_find_renaming_symbol): New function.
2821 (ada_prefer_type): Prefer named types over unnamed ones.
2822 (variant_field_index): New function.
2823 (contains_variant_part): Removed: subsumed by variant_field_index.
2824 (ada_template_to_fixed_record_type): New function, mostly from
2825 template_to_fixed_record_type.
2826 (template_to_fixed_record_type):
2827 Do not scan the type fields beyond the last one; prevents a
2828 potential SEGV.
2829 Handle case where variant field is listed BEFORE discriminant it
2830 depends on.
2831 Fix calculation of record length when bit length is
2832 not evenly divisible by char length.
2833 Move code to ada_template_to_fixed_record_type and call it.
2834
2835 (template_to_static_fixed_type): Revise comment.
2836 Modify to work on ordinary record types as well as templates,
2837 so as to handle fields that use ___XVE or ___XVU encodings.
2838 (to_record_with_fixed_variant_part): Fill out comment.
2839 Initialize C++ stuff in right type.
2840 Allow case where DVAL is null.
2841 Handle case where variant field is not last.
2842 Fix typo concerning record length.
2843 (to_fixed_record_type): Decomment disabled code.
2844 (to_fixed_record_type): Use variant_field_index instead of
2845 contains_variant_part.
2846 (to_fixed_variant_branch_type): Ditto.
2847 (to_fixed_array_type): Decomment disabled code.
2848 (ada_to_fixed_type): Convert tagged types to the specific type.
2849 Deactivate the size-check for array types in order to avoid
2850 some false size alarms.
2851 (to_static_fixed_type): Decomment disabled code.
2852 Modify to call template_to_static_fixed_type
2853 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
2854 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
2855 Remove valaddr argument, as it is never really used.
2856 (ada_to_fixed_value): Change interface to act on single struct value*
2857 operand.
2858 (adjust_pc_past_prologue): New function.
2859 (ada_attribute_name): Modify to take enum exp_opcode argument.
2860
2861 (ada_enum_name): Recognize new homonym-distinguishing convention.
2862 Adjust local variable's type to remove compiler warning.
2863 Fix a small problem in the part that unqualifies the enumeration name.
2864 (ada_value_binop): New function.
2865 (ada_value_equal): New function.
2866
2867 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
2868 Don't give error message when not doing normal evaluation
2869 and a tagged type doesn't seem to contain a structure member.
2870 Give error message for packed arrays.
2871 For indexing arrays, handle pointers to packed arrays correctly.
2872 Handle case of 'first and 'last attributes of bare integral type
2873 without encoded subtype info.
2874 Remove some unnecessary casts.
2875 Fix uninitialized value of type in computing 'first, 'last, or 'length
2876 of array object.
2877 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
2878 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
2879 calls.
2880 Attributes are now exp_opcode values.
2881 Correct treatment of 'modulus.
2882 Better error message for taking 'length of wrong kind of type;
2883 improve comment.
2884 Change EVAL_NORMAL to noside for consistency.
2885 Use ada_value_binop for DIV, MOD, REM.
2886 Make special case out of array of length 0, since an argument
2887 of 0 upsets some platforms' malloc.
2888 Use OP_STRING instead of OP_ARRAY.
2889 For slice, add check that we have an array type before extracting
2890 a slice out of it. Avoids a SEGV.
2891 When evaluating an array slice, if the array type is a reference to
2892 an aligner type, then replace the aligner type by the actual type.
2893 Decomment disabled code.
2894 Remove some dead code.
2895 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
2896 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
2897 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
2898 and UNOP_MBR to UNOP_IN_RANGE.
2899 If an array type has a parallel ___XVE type, then use it.
2900 Turn arrays into pointers for lvalue arrays.
2901 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
2902 bounds error and handle 0-length slices.
2903 Use lim_warning.
2904 When selecting fields, apply ada_to_fixed_value (because the fields
2905 might have ___XVU or ___XVE encodings even if not dynamic.)
2906 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
2907 (ada_is_system_address_type): New function.
2908
2909 (get_var_value): Use new interface to ada_lookup_symbol_list.
2910 (get_int_var_value): New interface.
2911 (to_fixed_range_type): Allow unknown bound, with warning.
2912 (ada_is_modular_type): Decomment disabled code.
2913 (ADA_OPERATORS): New definition.
2914 (ada_operator_length): New function.
2915 (ada_expr_op_name): New function.
2916 (ada_forward_operator_length): New function.
2917 (ada_dump_subexp_body): New function.
2918 (ada_print_subexp): New function.
2919 (ada_exp_descriptor): New constant.
2920 (ada_op_print_tab): Add 'size. Remove FIXMEs.
2921 (ada_language_defn): Add ada_exp_descriptor entry.
2922 Change ada_parse => parse.
2923 Add post-parser entry.
2924 Use ada-specific non-local symbol lookup.
2925 Don't use C-style arrays.
2926 String lower-bound is 1.
2927 Decomment disabled code.
2928 (parse): New function.
2929 New fields ada_translate_error_message, ada_lookup_symbol,
2930 ada_lookup_minimal_symbol.
2931
2932 * ada-lang.h: Update copyright dates.
2933 Replace the mangle/demangle terminology throughout by the
2934 more appropriate encode/decode one.
2935 Include breakpoint.h.
2936 Forward declare struct partial_symbol, struct block.
2937 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
2938 (EXTRACT_ADDRESS): Remove.
2939 (EXTRACT_INT): Remove.
2940 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
2941 (MAX_ENCLOSING_FRAME_LEVELS): Define.
2942 (MAX_RENAMING_CHAIN_LENGTH): Define.
2943 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
2944
2945 (enum task_states): Remove.
2946 ada_task_states: Remove.
2947 (fat_string): Remove.
2948 (struct entry_call): Remove.
2949 (struct task_fields): Remove.
2950 (struct task_entry): Remove.
2951
2952 (struct ada_symbol_info): Define.
2953 (enum ada_attribute): Remove.
2954 (enum ada_operator): Define.
2955
2956 (ada_get_field_index): Declare.
2957 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
2958 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2959 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2960 (ada_lookup_symbol_list): New interface.
2961 (ada_decode_symbol): Declare.
2962 (ada_decode): Declare.
2963 (ada_lookup_symbol): New interface.
2964 (ada_update_initial_language): Declare.
2965 (ada_lookup_simple_minsym): Declare.
2966 (user_select_syms): New interface.
2967 (ada_sals_for_line): Declare.
2968 (ada_is_tagged_type): New interface.
2969 (ada_tag_name): Declare.
2970 (ada_lookup_struct_elt_type): Remove declaration.
2971 (ada_search_struct_field): Remove declaration.
2972 (ada_attribute_name): New interface.
2973 (ada_is_system_address_type): Declare.
2974 (ada_to_fixed_value): Remove declaration.
2975 (ada_template_to_fixed_record_type_1): Declare.
2976 (get_int_var_value): New interface.
2977 (ada_find_any_symbol): Declare.
2978 (ada_find_renaming_symbol): Declare.
2979 (ada_mangle): Rename to ada_encode.
2980 (ada_simple_renamed_entity): Remove const.
2981 (ada_main_name): Declare.
2982 (get_current_task): Rename to ada_get_current_task.
2983 (get_entry_number): Remove declaration.
2984 (ada_report_exception_break): Remove declaration.
2985 (ada_print_exception_breakpoint_nontask): Declare.
2986 (ada_print_exception_breakpoint_task): Declare.
2987 (ada_find_printable_frame): Declare.
2988
2989 * ada-lex.l: Update copyright notices.
2990 Use xmalloc and xfree instead of malloc and free.
2991 Use new interface to name_lookup.
2992 Use new interface to
2993 ada_mangle=>ada_encode.
2994 Redo handling of '$...' variable to parallel current treatment
2995 in c-exp.y.
2996 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
2997 digit_to_int, strtoulst, processInt, processReal, processId,
2998 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
2999 yywrap): Protoize.
3000
3001 (processInt): Use cast to remove harmless warning.
3002 (processReal): Modify to get rid of compiler warning on scan formats.
3003
3004 (processId): Replace xmalloc with obstack_alloc for name and remove
3005 call to ada_name_string_cleanup.
3006 Remove obsolete disabled code.
3007 (name_lookup): Ditto.
3008 New interface.
3009 Use obsavestring on temp_parse_space instead of savestring
3010 on name, and remove call to ada_name_string_cleanup.
3011 Free string returned from ada_simple_renamed_entity.
3012 Use new interface to ada_lookup_symbol_list.
3013 Decomment disabled code.
3014 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3015 not types.
3016 When a type name lookup succeeds as a result of
3017 lookup_primitive_typename, check for regular type entry that has not
3018 yet been read in.
3019 Limit length of chain of renamed symbols we are willing to follow.
3020 Do not break names beginning with "standard__" into segments.
3021 (block_lookup): Use new interface to ada_lookup_symbol_list.
3022
3023 * ada-typeprint.c: Update copyright notice.
3024 (demangled_type_name): Rename to decoded_type_name.
3025 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3026 (print_range_bound): Correct handling of negative
3027 bounds that make the index type looked unsigned under STABS.
3028 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3029 (print_range_type_named): Use the builtin int type if no type
3030 corresponding to the given type name could be found.
3031 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3032 Add some bullet-proofing.
3033 (print_variant_clauses): Allow for variant branches with ___XVU
3034 encodings that are not dynamic fields.
3035 Use new interface to ada_is_tagged_type.
3036 (print_record_type): Allow for fields with ___XVE encodings that
3037 are not dynamic fields.
3038 Use new interface to ada_is_tagged_type.
3039 (ada_print_type): ada_is_array_descriptor =>
3040 ada_is_array_descriptor_type.
3041
3042 * ada-valprint.c: Update copyright notice.
3043 Include gdb_string.h
3044 Include infcall.h
3045 (ui_memcpy): New function.
3046 (ada_print_floating): New function.
3047 (ada_print_str): Order arguments correctly.
3048 Correct handling of empty arrays and arrays of 0-length items.
3049 ada_is_array_descriptor => ada_is_array_descriptor_type
3050 Print values of type System.Address in hexadecimal format.
3051 Use ada_print_floating to print floating-point numbers in Ada format.
3052 Print class tag values with type names.
3053 No longer print the address of reference values. Avoids
3054 a potential confusion.
3055 (ada_value_print): Stop printing the object type for reference
3056 values, but preserve that behavior for access types. Avoids
3057 a potential confusion.
3058 Simplify one conditional expression, as the first part is now
3059 necessarily true.
3060 ada_is_array_descriptor => ada_is_array_descriptor_type
3061 Add check for arrays for null records, and print them by hand.
3062
3063 2004-06-01 Jim Blandy <jimb@redhat.com>
3064
3065 * ppc-tdep.h: Delete unused 'regoff' member.
3066 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3067
3068 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3069
3070 Fix PR symtab/1661.
3071 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3072 (hpread_read_struct_type): Likewise.
3073
3074 2004-06-01 Andrew Cagney <cagney@gnu.org>
3075
3076 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3077 instead of xasprintf.
3078 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3079 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3080 (mi_cmd_data_list_register_names)
3081 (mi_cmd_data_list_changed_registers)
3082 (mi_cmd_data_list_register_values)
3083 (get_register, mi_cmd_data_write_register_values)
3084 (mi_cmd_data_write_register_values)
3085 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3086 (mi_cmd_target_download, mi_cmd_target_select)
3087 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3088 (mi_execute_cli_command, mi_execute_async_cli_command)
3089 (mi_execute_async_cli_command): Ditto.
3090 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3091 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3092
3093 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3094 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3095 error_last_message instead of mi_error_last_message.
3096 * mi/mi-main.c (mi_error_last_message): Delete function.
3097
3098 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3099 "invalid number of columns" error. Delete redundant "out of
3100 memory" check.
3101
3102 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3103
3104 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3105 (gregset_t, fpregset_t): Remove typedefs.
3106 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3107 (REG_OFFSET): Rename argument.
3108 (i386bsd_r_reg_offset): Rename from reg_offset.
3109 (REG_ADDR): Remove macro.
3110 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3111 functions.
3112 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3113 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3114 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3115 instead of supply_gregset.
3116 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3117 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3118 instead of fill_gregset.
3119 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3120
3121 * i386bsd-nat.c: Don't include "gregset.h".
3122 (supply_gregset, fill_gregset): Make static.
3123 (supply_fpregset, fill_fpregset): Remove.
3124 * Makefile.in (i386bsd-nat.o): Update dependencies.
3125
3126 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3127
3128 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3129 "gdb_assert.h". Con't include "gregset.h".
3130 (fbsd_make_corefile_notes): Use regset-based core file support
3131 instead off fill_gregset and fill_fpregset.
3132 * Makefile.in (fbsd-proc.o): Update dependencies.
3133
3134 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3135 instructions.
3136 (m88k_frame_prev_register): Simplify code a bit.
3137
3138 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3139 (amd64_collect_fpregset): New function.
3140 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3141
3142 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3143
3144 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3145 (i386_collect_gregset): New function.
3146 (i386_supply_fpregset): Adjust comment.
3147 (i386_collect_fpregset): New function.
3148 (i386_regset_from_core_section): Use i386_collect_gregset and
3149 i386_collect_fpregset.
3150
3151 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3152 handle VALUEP being null.
3153
3154 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3155
3156 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3157
3158 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3159
3160 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3161 assembler in OpenBSD 3.5-current.
3162 (amd64obsd_sigcontext_addr): Likewise.
3163
3164 2004-05-28 Jim Blandy <jimb@redhat.com>
3165
3166 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3167 register set, so our regcache isn't declared "legacy" and our E500
3168 pseudoregister read and write functions aren't ignored.
3169 (rs6000_register_byte, rs6000_register_raw_size,
3170 rs6000_register_virtual_type, rs6000_register_convertible,
3171 rs6000_register_convert_to_virtual,
3172 rs6000_register_convert_to_raw): Deleted.
3173 (rs6000_register_type, rs6000_convert_register_p,
3174 rs6000_register_to_value, rs6000_value_to_register): New
3175 functions.
3176 (rs6000_gdbarch_init): Don't register
3177 gdbarch_deprecated_register_size,
3178 gdbarch_deprecated_register_bytes,
3179 gdbarch_deprecated_register_byte,
3180 gdbarch_deprecated_register_raw_size,
3181 gdbarch_deprecated_register_virtual_type,
3182 gdbarch_deprecated_register_convertible,
3183 gdbarch_deprecated_register_convert_to_virtual, or
3184 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3185 register gdbarch_register_type, gdbarch_convert_register_p,
3186 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3187
3188 2004-05-26 Jim Blandy <jimb@redhat.com>
3189
3190 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3191 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3192 functions, updated to match the register numberings used in GCC.
3193 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3194 rs6000_dwarf2_reg_to_regnum as register number conversions
3195 functions for STABS and Dwarf2.
3196
3197 2004-05-26 Randolph Chung <tausq@debian.org>
3198
3199 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3200 in header file.
3201
3202 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3203
3204 * NEWS: Document new "start" command.
3205
3206 2004-05-25 Randolph Chung <tausq@debian.org>
3207
3208 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3209 hppa-linux.
3210
3211 2004-05-25 Randolph Chung <tausq@debian.org>
3212
3213 * hppa-hpux-tdep.c (offsetof): Define.
3214 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3215 (hppa32_hpux_frame_base_before_sigtramp)
3216 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3217 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3218 (hppa64_hpux_frame_base_before_sigtramp)
3219 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3220 functions.
3221 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3222 (hppa_hpux_sigtramp_frame_unwind_cache)
3223 (hppa_hpux_sigtramp_frame_this_id)
3224 (hppa_hpux_sigtramp_frame_prev_register)
3225 (hppa_hpux_sigtramp_frame_unwind)
3226 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3227 (hppa_hpux_init_abi): Register sigtramp unwinder.
3228 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3229
3230 2004-05-25 Randolph Chung <tausq@debian.org>
3231
3232 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3233 and multiple stack unwinds.
3234 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3235
3236 2004-05-25 Andrew Cagney <cagney@gnu.org>
3237
3238 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3239 * symfile-mem.h: Delete file.
3240 * symfile-mem.c: Do not include "symfile-mem.h".
3241 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3242 "struct bfd_section". When an error do not bother returning NULL.
3243 (add_symbol_file_from_memory_command): Use "struct bfd" and
3244 "struct bfd_section".
3245 * Makefile.in (symfile_mem_h): Delete.
3246 (symfile-mem.o): Update dependencies.
3247
3248 2004-05-25 Nick Roberts <nickrob@gnu.org>
3249
3250 * gdb-mi.el: New file.
3251
3252 2004-05-25 Andrew Cagney <cagney@gnu.org>
3253
3254 * inftarg.c: Include "observer.h".
3255 (child_attach, child_create_inferior): Notify inferior_created.
3256 * corelow.c: Include "observer.h".
3257 (core_open): Notify inferior_created.
3258 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3259
3260 2004-05-25 Andrew Cagney <cagney@gnu.org>
3261
3262 * target.h (struct target_ops): Add from_tty to
3263 to_create_inferior.
3264 (target_create_inferior, find_default_create_inferior): Update.
3265 * infcmd.c (run_command): Update.
3266 * wince.c (child_create_inferior): Update.
3267 * win32-nat.c (child_create_inferior): Update.
3268 * uw-thread.c (uw_thread_create_inferior): Update.
3269 * thread-db.c (thread_db_create_inferior): Update.
3270 * target.c (debug_to_create_inferior)
3271 (find_default_create_inferior): Update.
3272 (maybe_kill_then_create_inferior): Update.
3273 * sol-thread.c (sol_thread_create_inferior): Update.
3274 * remote.c (extended_remote_async_create_inferior)
3275 (extended_remote_create_inferior): Update.
3276 * remote-vx.c (vx_create_inferior): Update.
3277 * remote-st.c (st2000_create_inferior): Update.
3278 * remote-sim.c (gdbsim_create_inferior): Update.
3279 * remote-sds.c (sds_create_inferior): Update.
3280 * remote-rdp.c (remote_rdp_create_inferior): Update.
3281 * remote-rdi.c (arm_rdi_create_inferior): Update.
3282 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3283 * remote-e7000.c (e7000_create_inferior): Update.
3284 * procfs.c (procfs_create_inferior): Update.
3285 * ocd.c (ocd_create_inferior): Update.
3286 * ocd.h (ocd_create_inferior): Update.
3287 * nto-procfs.c (procfs_create_inferior): Update.
3288 * monitor.c (monitor_create_inferior): Update.
3289 * lin-lwp.c (lin_lwp_create_inferior): Update.
3290 * inftarg.c (child_create_inferior): Update.
3291 * hpux-thread.c (hpux_thread_create_inferior): Update.
3292 * gnu-nat.c (gnu_create_inferior): Update.
3293
3294 2004-05-25 Andrew Cagney <cagney@gnu.com>
3295
3296 * MAINTAINERS: Update e-mail address.
3297
3298 2004-05-24 Randolph Chung <tausq@debian.org>
3299
3300 * thread.c (info_threads_command, thread_apply_all_command)
3301 (thread_apply_command, thread_command, do_captured_thread_select):
3302 Remove HPUXHPPA-specific code.
3303
3304 2004-05-24 Randolph Chung <tausq@debian.org>
3305
3306 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3307 unused symbols.
3308 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3309 references.
3310
3311 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3312
3313 * infcmd.c (kill_if_already_running): New function, extracted
3314 from run_command().
3315 (run_command): Replace extracted code by call to
3316 kill_if_already_running().
3317 (start_command): New function.
3318 (_initialize_infcmd): Add "start" command.
3319
3320 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3321
3322 Add OpenBSD/m88k support.
3323 * NEWS (New native configurations): Mention OpenBSD/m88k.
3324 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3325 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3326 * Makefile.in (m88k_tdep_h): New variable.
3327 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3328 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3329 * configure.host: Add m88*-*-openbsd*.
3330 * configure.tgt: Add m88*-*-openbsd*.
3331
3332 2004-05-24 Jim Blandy <jimb@redhat.com>
3333
3334 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3335 to approve changes.
3336
3337 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3338
3339 * symtab.c (fixup_section): Search section table when lookup by
3340 name fails.
3341
3342 2004-05-24 Randolph Chung <tausq@debian.org>
3343
3344 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3345 be "small_struct".
3346
3347 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3348
3349 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3350 register number in regcache_raw_collect call.
3351 (m68kbsd_collect_fpregset): Likewise.
3352 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3353
3354 * regset.h (struct regset): Add back `regset' member.
3355
3356 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3357
3358 * configure.in: Check for td_pcb in `struct thread'.
3359 * configure, config.in: Regenerated.
3360
3361 * dpx2-nat.c: Remove file.
3362 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3363 (dpx2-nat.o): Remove dependencies.
3364
3365 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3366 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3367 (amd64obsd_supply_pcb): New function.
3368 (_initialize_amd64obsd_nat): Enable libkvm interface.
3369 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3370 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3371 (LOADLIBES): New variable.
3372
3373 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3374 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3375 (sparc32nbsd_supply_pcb): New function.
3376 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3377 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3378 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3379 (LOADLIBES): New variable.
3380
3381 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3382
3383 * bsd-kvm.c, bsd-kvm.h: New files.
3384 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3385 "bsd-kvm.h".
3386 (i386fbsd_supply_pcb): New function.
3387 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3388 (i386fbsd-nat.o): Update dependencies.
3389 (bsd_kvm_h): New variable.
3390 (bsd-kvm.o): New dependency.
3391 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3392 (LOADLIBES): New variable.
3393
3394 * regset.c: Tweak comment.
3395 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3396 macro.
3397 * regset.h: Update copyright year.
3398 (struct regset): Remove `descr' member, add `gdbarch' member.
3399 (regset_alloc): Adjust prototype and comment.
3400 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3401 (i386_supply_fpregset): Likewise.
3402 (i386_regset_from_core_section): Update call to regset_alloc.
3403 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3404 REGSET->arch.
3405 (i386obsd_aout_regset_from_core_section): Update call to
3406 regset_alloc.
3407 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3408 REGSET->arch.
3409 (i386nbsd_aout_regset_from_core_section): Update call to
3410 regset_alloc.
3411 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3412 REGSET->arch.
3413 (amd64_regset_from_core_section): Update call to regset_alloc.
3414 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3415 REGSET->arch.
3416 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3417 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3418 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3419 (sparc32nbsd_init_abi): Update call to regset_alloc.
3420 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3421 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3422 (sparc64obsd_init_abi): Update call to regset_alloc.
3423 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3424 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3425 (sparc64nbsd_init_abi): Update call to regset_alloc.
3426 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3427 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3428 (sparc64fbsd_init_abi): Update call to regset_alloc.
3429
3430 2004-05-22 Jim Blandy <jimb@redhat.com>
3431
3432 * ppc-tdep.h (spe_register_p): New declaration.
3433 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3434 ppc_spefscr_regnum.
3435 * rs6000-tdep.c (spe_register_p): New function.
3436 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3437 spefscr.
3438 (rs6000_gdbarch_init): Initialize the new members of the tdep
3439 structure.
3440
3441 2004-05-21 Jim Blandy <jimb@redhat.com>
3442
3443 * ppc-linux-nat.c (fetch_register): Move code back to be next
3444 to the comment that describes it. (Moved code, instead of
3445 comment, for symmetry with store_register.)
3446
3447 Allocate regset structures in the gdbarch's obstack, not using
3448 xmalloc.
3449 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3450 Add 'arch' argument. Allocate the regset on arch's obstack, not
3451 using xmalloc.
3452 * regset.h (regset_alloc): Update declaration.
3453 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3454 gdbarch argument.
3455 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3456 * i386-tdep.c (i386_regset_from_core_section): Same.
3457 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3458 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3459 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3460 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3461 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3462 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3463
3464 2004-05-21 Joel Brobecker <brobecker@gnat.com>
3465
3466 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3467
3468 2004-05-21 Jim Blandy <jimb@redhat.com>
3469
3470 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3471 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3472
3473 2004-05-20 Jim Blandy <jimb@redhat.com>
3474
3475 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3476
3477 2004-05-20 Mark Kettenis <kettenis@gnu.org>
3478
3479 * regset.h: Make prototype const-correct.
3480 * regset.c (regset_xmalloc): Make const-correct.
3481
3482 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
3483
3484 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
3485 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
3486 (symbol_search_name): Declare.
3487
3488 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
3489 (iter_name_next_hashed): Ditto.
3490 (iter_name_next_linear): Ditto.
3491 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
3492
3493 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
3494 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
3495 (symbol_search_name): New function.
3496
3497 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
3498
3499 * minsyms.c (build_minimal_symbol_hash_tables): Change
3500 test for adding to demangled hash table to check for difference
3501 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
3502
3503 2004-05-19 Jim Blandy <jimb@redhat.com>
3504
3505 Use a constructor function to create regset structures.
3506 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
3507 (struct regset): Use supply_regset_ftype. Add new
3508 'collect_regset' member.
3509 (regset_xmalloc): New declaration.
3510 * regset.c: New file.
3511 * am64-tdep.c (amd64_regset_from_core_section): Use
3512 regset_xmalloc to construct regset structures.
3513 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3514 * i386-tdep.c (i386_regset_from_core_section): Same.
3515 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3516 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3517 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3518 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3519 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3520 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3521 * Makefile.in (COMMON_OBS): Add regset.o.
3522 (regset.o): New rule.
3523
3524 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3525
3526 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
3527 and pthread_cond_wait.c.
3528
3529 2004-05-18 Jim Blandy <jimb@redhat.com>
3530
3531 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
3532 before the mach-specific switch, and then let the individual cases
3533 override the defaults, rather than leaving them uninitialized
3534 until the switch and then setting them in each case.
3535
3536 2004-05-18 Randolph Chung <tausq@debian.org>
3537
3538 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
3539 millicode functions.
3540
3541 2004-05-18 Randolph Chung <tausq@debian.org>
3542
3543 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
3544 references to dld_flags_buffer consistent.
3545
3546 2004-05-18 Randolph Chung <tausq@debian.org>
3547
3548 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
3549 it for unwinding the stack.
3550
3551 2004-05-18 Randolph Chung <tausq@debian.org>
3552
3553 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
3554 Undefine these so we can overide them using gdbarch.
3555
3556 2004-05-18 Randolph Chung <tausq@debian.org>
3557
3558 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
3559 handling for 64-bit HPUX (elf).
3560
3561 2004-05-18 Daniel Jacobowitz <dan@debian.org>
3562
3563 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
3564 constants.
3565 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3566 * ia64-tdep.c (examine_prologue): Likewise.
3567 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
3568 * v850-tdep.c (v850_fix_call_dummy): Likewise.
3569
3570 2004-05-18 Mark Kettenis <kettenis@gnu.org>
3571
3572 * vax-tdep.c (vax_return_value): Implement
3573 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3574
3575 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3576
3577 * vax-tdep.c (vax_return_value): Fix typo.
3578
3579 2004-05-17 Andrew Cagney <cagney@redhat.com>
3580
3581 * MAINTAINERS: Mark Salter was also responsible for
3582 testsuite/config/
3583
3584 * NEWS: Mention signal fixes.
3585
3586 2004-05-17 Randolph Chung <tausq@debian.org>
3587
3588 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
3589 check to see if we are unwinding an export stub. Export stubs clobber
3590 the %rp in the call path and stores the original rp in a stack slot.
3591
3592 2004-05-17 Jim Blandy <jimb@redhat.com>
3593
3594 * MAINTAINERS: Update address for J.T. Conklin.
3595
3596 2004-05-17 Randolph Chung <tausq@debian.org>
3597
3598 * hppa-tdep.c: Remove superfluous #include's.
3599 * Makefile.in (hppa-tdep.o): Update dependencies.
3600
3601 2004-05-17 Randolph Chung <tausq@debian.org>
3602
3603 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
3604 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
3605 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
3606 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
3607 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
3608 Remove static function declarations.
3609
3610 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3611
3612 * alphabsd-nat.c: Update copyright year.
3613 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
3614
3615 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
3616 and M68K_A2_REGNUM.
3617
3618 * m68k-tdep.c (m68k_svr4_return_value): Implement
3619 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3620
3621 2004-05-16 Mark Kettenis <kettenis@gnu.org>
3622
3623 * sol-thread.c Update copyright year. Fix various coding
3624 standards violations. Tweak a few comments.
3625 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
3626 Delete prototypes.
3627
3628 2004-05-15 Randolph Chung <tausq@debian.org>
3629
3630 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
3631 as pointer instead of array reference since HPUX compiler does
3632 not accept unsized array arguments.
3633 * somsolib.c (dld_flags_buffer): Use constant array size.
3634
3635 2004-05-15 Mark Kettenis <kettenis@gnu.org>
3636
3637 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
3638 offset with decimal offset.
3639 (amd64obsd_sigcontext_addr): Return correct address for entire
3640 signal trampoline.
3641
3642 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
3643 instead of get_frame_base.
3644
3645 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
3646 (fill_gregset): Use regcache_raw_collect.
3647
3648 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
3649 ppcobsd-tdep.c.
3650
3651 * config/sparc/tm-nbsd64.h: Remove file.
3652 * config/tm-sunos.h: Remove file.
3653
3654 2004-05-15 Joel Brobecker <brobecker@gnat.com>
3655
3656 * rs6000-tdep.c (store_param_on_stack_p): New function,
3657 an improved version of some code extracted from skip_prologue().
3658 (skip_prologue): Use store_param_on_stack_p() to detect
3659 instructions saving a parameter on the stack. Detect when r0
3660 is used to save a parameter.
3661 Do not mark "li rx, SIMM" instructions as part of the prologue,
3662 unless the following instruction is also part of the prologue.
3663
3664 2004-05-14 Andrew Cagney <cagney@redhat.com>
3665
3666 * infrun.c (handle_inferior_event): Simplify
3667 STEP_OVER_UNDEBUGGABLE.
3668
3669 * infrun.c (handle_step_into_function): Delete function.
3670 (handle_inferior_event): Inline calls to
3671 handle_step_into_function.
3672
3673 2004-05-14 Jerome Guitton <guitton@gnat.com>
3674
3675 * rs6000-nat.c: Fix a comment.
3676
3677 2004-05-12 David Anderson <davea@sgi.com>
3678
3679 Committed by Jim Blandy <jimb@redhat.com>:
3680 * regcache.c (struct regcache_descr): fix comment spelling.
3681
3682 2004-05-13 J. Brobecker <brobecker@gnat.com>
3683
3684 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
3685 Fixes a link link failure.
3686
3687 2004-05-13 J. Brobecker <brobecker@gnat.com>
3688
3689 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
3690 error that was causing the build to fail.
3691
3692 2004-05-13 J. Brobecker <brobecker@gnat.com>
3693
3694 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
3695 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
3696
3697 2004-05-13 Andrew Cagney <cagney@redhat.com>
3698
3699 * infrun.c (handle_inferior_event): Check for
3700 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
3701 calls. Update comments.
3702
3703 2004-05-13 Jim Blandy <jimb@redhat.com>
3704
3705 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
3706 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3707 (store_regs_user_thread, store_regs_kernel_thread): Use
3708 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
3709 * ppc-linux-nat.c (fill_gregset): Same.
3710 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3711 (ppc_linux_sigtramp_cache): Same.
3712 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
3713 (ppcnbsd_sigtramp_cache_init): Same.
3714 * rs6000-nat.c (fetch_core_registers): Same.
3715 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3716 (rs6000_frame_cache): Same.
3717
3718 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
3719 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
3720 of assuming that the gprs are numbered starting with zero.
3721 * ppc-linux-nat.c (fill_gregset): Same.
3722 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
3723 * ppcnbsd-nat.c (getregs_supplies): Same.
3724 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
3725 * rs6000-nat.c (fetch_core_registers): Same.
3726 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
3727
3728 2004-05-07 Michael Snyder <msnyder@redhat.com>
3729
3730 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
3731 LOC_COMPUTED_ARG, and LOC_INDIRECT.
3732
3733 2004-05-13 Andrew Cagney <cagney@redhat.com>
3734
3735 * infrun.c (handle_inferior_event): Use frame_unwind_id.
3736
3737 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
3738
3739 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
3740 base_address for shared libraries.
3741
3742 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
3743
3744 * MAINTAINERS (write after approval): Add myself.
3745
3746 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3747
3748 * breakpoint.c (bpstat_stop_status): Add new argument
3749 STOPPED_BY_WATCHPOINT. Use it instead of testing
3750 target_stopped_data_address agaist 0 to check whether
3751 or not we stopped due to a hardware watchpoint.
3752 * breakpoint.h (bpstat_stop_status): Adapt prototype.
3753 * infrun.c (handle_inferior_event): Call bpstat_stop_status
3754 with new argument.
3755
3756 2004-05-12 Jim Blandy <jimb@redhat.com>
3757
3758 * configure.in: When checking whether we should use the -bbigtoc
3759 option, don't forget to restore the original value of LDFLAGS.
3760 * configure: Regenerated.
3761
3762 2004-05-12 Andrew Cagney <cagney@redhat.com>
3763
3764 * thread.c (load_infrun_state): Delete step_sp.
3765 * infrun.c (context_switch): Ditto.
3766 * inferior.h (step_sp): Ditto.
3767 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
3768 * gdbthread.h (struct thread_info, save_infrun_state)
3769 (restore_infrun_state): Ditto.
3770
3771 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
3772
3773 * MAINTAINERS (write after approval): Add myself.
3774
3775 2004-05-12 Andrew Cagney <cagney@redhat.com>
3776
3777 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
3778 eliminate reference to step_sp.
3779 (struct execution_control_state, init_execution_control_state)
3780 (handle_inferior_event, keep_going): Delete update_step_sp and
3781 step_sp.
3782 * infcmd.c (step_sp): Note that variable is unused.
3783
3784 2004-05-11 Andrew Cagney <cagney@redhat.com>
3785
3786 * infrun.c (step_over_function): Delete function.
3787 (handle_step_into_function): Use insert_step_resume_breakpoint.
3788 (insert_step_resume_breakpoint): Fix assertion.
3789
3790 2004-05-11 Nick Roberts <nickrob@gnu.org>
3791
3792 * utils.c (defaulted_query): Just use the normal query input type
3793 when printing the annotations.
3794
3795 2004-05-11 Andrew Cagney <cagney@redhat.com>
3796
3797 * infrun.c (handle_inferior_event): Simplify code handling
3798 step-into or return-from a signal trampoline.
3799
3800 2004-05-11 Andrew Cagney <cagney@redhat.com>
3801
3802 * ppcnbsd-tdep.c: Include "gdb_assert.h".
3803 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
3804
3805 2004-05-10 Jim Blandy <jimb@redhat.com>
3806
3807 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
3808 with a call to internal_error.
3809
3810 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
3811 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
3812 processor variant lacks those registers.
3813 (ppc_floating_point_unit_p): Change description to make it clear
3814 that this returns info about the ISA, not the ABI.
3815 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
3816 return true or false by checking tdep->ppc_fp0_regnum and
3817 tdep->ppc_fpscr_regnum. The original code replicated the BFD
3818 arch/mach switching done in rs6000_gdbarch_init; it's better to
3819 keep that logic there, and just check the results here.
3820 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
3821 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
3822 floating-point registers.
3823 (ppc_supply_fpregset, ppc_collect_fpregset)
3824 (rs6000_push_dummy_call, rs6000_extract_return_value)
3825 (rs6000_store_return_value): Assert that we have floating-point
3826 registers.
3827 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
3828 (rs6000_frame_cache): Don't note the locations at which
3829 floating-point registers were saved if we have no fprs.
3830 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
3831 registers.
3832 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3833 (store_regs_user_thread, store_regs_kernel_thread): Only call
3834 supply_fprs / fill_fprs if we actually have floating-point
3835 registers.
3836 (special_register_p): Check ppc_fpscr_regnum before matching
3837 against it.
3838 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
3839 supply / collect fpscr if we don't have it.
3840 * ppc-bdm.c: #include "gdb_assert.h".
3841 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
3842 have floating-point registers, since I can't test this code on
3843 FP-free systems to adapt it.
3844 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
3845 fpscr and floating point register numbers if they don't exist.
3846 (fetch_register): Assert that we have floating-point registers
3847 before we reach the code that handles them.
3848 (store_register): Same. And use tdep instead of calling
3849 gdbarch_tdep again.
3850 (fill_fpregset): Don't try to collect FP registers and fpscr if we
3851 don't have them.
3852 (ppc_linux_sigtramp_cache): Don't record the saved locations of
3853 fprs and fpscr if we don't have them.
3854 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
3855 don't have them.
3856 * ppcnbsd-nat.c: #include "gdb_assert.h".
3857 (getfpregs_supplies): Assert that we have floating-point registers.
3858 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
3859 * ppcobsd-tdep.c: #include "gdb_assert.h".
3860 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
3861 have floating-point registers.
3862 * rs6000-nat.c (regmap): Don't match against the fpscr and
3863 floating point register numbers if they don't exist.
3864 (fetch_inferior_registers, store_inferior_registers,
3865 fetch_core_registers): Only fetch / store / supply the
3866 floating-point registers and the fpscr if we have them.
3867 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
3868 (ppcobsd-tdep.o): Update dependencies.
3869
3870 2004-05-10 Andrew Cagney <cagney@redhat.com>
3871
3872 * infrun.c (through_sigtramp_breakpoint): Delete variable.
3873 (context_switch): Do not switch through_sigtramp_breakpoint.
3874 * gdbthread.h (save_infrun_state, load_infrun_state)
3875 (struct thread_info): Delete through_sigtramp_breakpoint parameter
3876 and structure member.
3877 * thread.c (load_infrun_state, save_infrun_state): Update.
3878
3879 2004-05-10 Mark Kettenis <kettenis@gnu.org>
3880
3881 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
3882
3883 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3884
3885 * acinclude.m4: Quote macro names being defined by AC_DEFUN
3886 throughout.
3887 * aclocal.m4: Regenerate.
3888
3889 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
3890
3891 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
3892
3893 2004-05-10 Andrew Cagney <cagney@redhat.com>
3894
3895 * infrun.c (check_sigtramp2): Delete function.
3896 (handle_inferior_event): When single stepping, and taking a
3897 signal, set a breakpoint at the signal return address. Delete
3898 redundant calls to check_sigtramp2.
3899 (insert_step_resume_breakpoint): New function.
3900 (through_sigtramp_breakpoint, handle_inferior_event)
3901 (follow_exec, wait_for_inferior, fetch_inferior_event)
3902 (currently_stepping, keep_going): Delete most uses of
3903 through_sigtramp_breakpoint, not that it should be deleted.
3904 (delete_breakpoint_current_contents): Delete function.
3905
3906 2004-05-10 Randolph Chung <tausq@debian.org>
3907
3908 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
3909 target.
3910 * config/pa/tm-linux.h: New file.
3911
3912 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
3913
3914 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
3915 of prefixes. Don't print the prefix twice in the CLI.
3916
3917 2004-05-10 Jim Blandy <jimb@redhat.com>
3918
3919 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
3920 collect all the gprs.
3921
3922 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
3923 loop collecting gprs.
3924
3925 2004-05-09 Andrew Cagney <cagney@redhat.com>
3926
3927 * remote-vx.c (net_step): Delete step-range code.
3928 * remote.c (remote_resume, init_all_packet_configs)
3929 (set_remote_protocol_E_packet_cmd)
3930 (show_remote_protocol_E_packet_cmd)
3931 (remote_protocol_E, show_remote_cmd, _initialize_remote)
3932 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
3933 (show_remote_protocol_e_packet_cmd): Ditto.
3934
3935 2004-05-09 Mark Kettenis <kettenis@gnu.org>
3936
3937 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
3938
3939 * hppa-tdep.h: Update copyright year.
3940 (struct trad_frame_saved_reg): Add opaque declaration.
3941
3942 * amd64-tdep.c (amd64_return_value): Implement
3943 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3944
3945 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
3946 (m68k_value_to_register): New functions.
3947 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
3948 value_to_register.
3949
3950 * defs.h (enum return_value_convention): Add
3951 RETURN_VALUE_ABI_RETURNS_ADDRESS and
3952 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3953 * infcmd.c (legacy_return_value): New function.
3954 (print_return_value): Rwerite to implement
3955 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3956 * values.c (using_struct_return): Check for inequality to
3957 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
3958 RETURN_VALUE_STRUCT_CONVENTION.
3959 * i386-tdep.c (i386_return_value): Implement
3960 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3961
3962 * vax-tdep.c: Tweak comments. Reorder include files. Don't
3963 include "symtab.h", "opcode/vax.h" and "inferior.h".
3964 (vax_skip_prologue): Replace calls to read_memory_integer by calls
3965 to read_memory_unsigned_integer.
3966 (vax_gdbarch_init): Reorder.
3967 (_initialize_vax_tdep): Spell out prototype.
3968 * Makefile.in (vax-tdep.o): Update dependencies.
3969
3970 2004-05-08 Andrew Cagney <cagney@redhat.com>
3971
3972 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
3973 * target.c (target_detach, target_disconnect): Ditto.
3974
3975 * infcall.c (call_function_by_hand): When no
3976 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
3977 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
3978 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
3979 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3980 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3981
3982 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
3983 * gdbarch.h, gdbarch.c: Re-generate.
3984 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3985 deprecated_fix_call_dummy.
3986 * v850-tdep.c (v850_gdbarch_init): Ditto.
3987 * infcall.c (call_function_by_hand): Do not call
3988 DEPRECATED_FIX_CALL_DUMMY.
3989
3990 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
3991 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
3992 * gdbarch.h, gdbarch.c: Re-generate.
3993 * arm-linux-tdep.c (arm_linux_call_dummy_words)
3994 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
3995 deprecated_sizeof_call_dummy_words.
3996 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
3997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3998 * v850-tdep.c (v850_gdbarch_init): Ditto.
3999 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4000 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4001 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4002 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4003 * arch-utils.h (legacy_call_dummy_words)
4004 (legacy_sizeof_call_dummy_words): Delete declarations.
4005 * arch-utils.c (legacy_call_dummy_words)
4006 (legacy_sizeof_call_dummy_words): Delete variables.
4007
4008 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4009 * gdbarch.h, gdbarch.c: Re-generate.
4010 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4011 * infcall.c (call_function_by_hand): Eliminate call to
4012 DEPRECATED_PUSH_DUMMY_FRAME.
4013 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4014 push_dummy_frame.
4015 (ns32k_push_dummy_frame): Delete function.
4016
4017 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4018 deprecated_call_dummy_breakpoint_offset or
4019 deprecated_call_dummy_start_offset.
4020 * dummy-frame.c, arm-tdep.c: Update comments.
4021 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4022 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4023 * gdbarch.h, gdbarch.c: Re-generate.
4024
4025 * infcall.c (legacy_push_dummy_code): Delete function.
4026 (push_dummy_code): Delete call.
4027
4028 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4029 * gdbarch.h, gdbarch.c: Re-generate.
4030 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4031 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4032 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4033 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4034
4035 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4036 (struct frame_info): Delete opaque declaration.
4037 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4038 * frame.c (get_frame_type): Delete call.
4039
4040 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4041 pc_in_call_dummy.
4042 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4043 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4044
4045 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4046
4047 * alphanbsd-tdep.c: Include "gdb_string.h".
4048 * armnbsd-tdep.c: Update copyright year.
4049 Include "gdb_string.h".
4050 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4051 dependencies.
4052
4053 * delta68-nat.c: Remove file.
4054 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4055 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4056 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4057 (delta68-nat.o): Remove dependency.
4058
4059 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4060 function.
4061 (m68k_gdbarch_init): Don't set
4062 deprecated_frameless_function_invocation.
4063
4064 2004-05-07 Randolph Chung <tausq@debian.org>
4065
4066 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4067 read_memory_nobpt for code reading when doing frame unwinding.
4068 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4069
4070 2004-05-07 Randolph Chung <tausq@debian.org>
4071
4072 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4073 instead of sp, handle sigaltstack case.
4074 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4075 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4076 signal handler and not that of the caller.
4077 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4078 hppa_linux_sigtramp_find_sigcontext.
4079
4080 2004-05-07 Randolph Chung <tausq@debian.org>
4081
4082 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4083 hppa-linux-nat.c.
4084 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4085 * hppa-linux-nat.c (fetch_register, store_register): Define.
4086 (fetch_inferior_registers, store_inferior_registers): Define.
4087 (supply_gregset): Add comment and clean up some unneeded code.
4088 (fill_gregset): Add comment and fix so that it saves registers in
4089 the right place in the gregset.
4090 (fill_fpregset): Fix buffer overrun problem.
4091 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4092
4093 2004-05-07 Randolph Chung <tausq@debian.org>
4094
4095 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4096 do common handling of the pcoqt register.
4097 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4098 to use helper function.
4099 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4100 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4101 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4102 generic fallback unwinder when all else fails.
4103 (hppa_gdbarch_init): Add fallback sniffer.
4104 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4105 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4106 to use helper function.
4107
4108 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4109
4110 * config/djgpp/fnchange.lst: Add translation rules for
4111 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4112
4113 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4114
4115 * frame.c (get_prev_frame_1): Work around GCC bug.
4116 * frame.h: Add comment about GCC bug.
4117
4118 2004-05-07 Andrew Cagney <cagney@redhat.com>
4119
4120 * observer.c: Include "commands.h" and "gdbcmd.h".
4121 (observer_debug, _initialize_observer): Add the
4122 command "set/show debug observer".
4123 * observer.sh: When observer debugging, log notify calls.
4124 * Makefile.in (observer.o): Update dependencies.
4125
4126 2004-05-07 Jason Molenda (jmolenda@apple.com)
4127
4128 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4129
4130 2004-05-07 Jim Blandy <jimb@redhat.com>
4131
4132 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4133 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4134 to recognize gpr regnums, instead of assuming that
4135 tdep->ppc_fp0_regnum marks the end of the general-purpose
4136 registers.
4137
4138 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4139 the given architecture has floating-point registers.
4140
4141 2004-05-07 Andrew Cagney <cagney@redhat.com>
4142
4143 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4144 macro defined to 1.
4145 * gdbarch.h, gdbarch.c: Re-generate.
4146 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4147 deprecated_use_generic_dummy_frames.
4148
4149 2004-05-07 Brian Ford <ford@vss.fsi.com>
4150
4151 * NEWS: Mention Cygwin DWARF 2 support.
4152
4153 2004-05-07 Andrew Cagney <cagney@redhat.com>
4154
4155 * objfiles.h (struct entry_info): Delete unused fields
4156 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4157 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4158 * mipsread.c (mipscoff_symfile_read): Update.
4159 * mdebugread.c (parse_partial_symbols): Update.
4160 * dwarfread.c (read_file_scope): Update.
4161 * dwarf2read.c (read_file_scope): Update.
4162 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4163 * coffread.c (complete_symtab): Update.
4164
4165 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4166
4167 * infcall.c (_initialize_infcall): Fix typo.
4168
4169 2004-05-07 Andrew Cagney <cagney@redhat.com>
4170
4171 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4172 * command.h (add_setshow_zinteger_cmd): Declare.
4173
4174 2004-05-06 Randolph Chung <tausq@debian.org>
4175
4176 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4177 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4178 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4179 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4180 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4181 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4182 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4183 definitions ...
4184 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4185 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4186 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4187 (hppa64_hpux_frame_find_saved_regs_in_sig)
4188 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4189 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4190 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4191 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4192 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4193 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4194 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4195 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4196 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4197 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4198 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4199 (hppa32_register_type, hppa_cannot_store_register)
4200 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4201 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4202 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4203 * pa64solib.c (pa64_solib_have_load_event)
4204 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4205 (pa64_solib_unloaded_library_pathname): Likewise.
4206 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4207 (som_solib_library_pathname): Likewise.
4208
4209 2004-05-05 Jim Ingham <jingham@apple.com>
4210
4211 * breakpoint.c (create_breakpoints): Copy the ignore count and
4212 thread id over from the pended breakpoint to the actual
4213 breakpoint.
4214
4215 2004-05-05 Andrew Cagney <cagney@redhat.com>
4216
4217 * gdbarch.sh (PARM_BOUNDARY): Delete.
4218 gdbarch.h, gdbarch.c: Re-generate.
4219 * valops.c (PARM_BOUNDARY): Delete macro.
4220 (value_push): Delete PARM_BOUNDARY code.
4221 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4222
4223 2004-05-04 Jim Blandy <jimb@redhat.com>
4224
4225 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4226 Don't assume that the gprs, fprs, and UISA sprs are
4227 contiguous, start at register number zero, and end with fpscr.
4228 Instead, use the numbers from the tdep structure.
4229
4230 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4231 should no longer be used in code specific to the RS6000 and its
4232 derivatives.
4233 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4234 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4235 tdep->ppc_fp0_regnum.
4236 (ppc_supply_fpregset, ppc_collect_fpregset)
4237 (rs6000_push_dummy_call, rs6000_extract_return_value)
4238 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4239 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4240 FP0_REGNUM.
4241 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4242 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4243 Same.
4244 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4245 bdm_ppc_store_registers): Same.
4246 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4247 (store_register, fill_fpregset): Same.
4248 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4249 (ppc_linux_supply_fpregset): Same.
4250 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4251 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4252 Same.
4253 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4254 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4255 ppc64_sysv_abi_return_value): Same.
4256 * rs6000-nat.c (regmap, fetch_inferior_registers)
4257 (store_inferior_registers, fetch_core_registers): Same.
4258
4259 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4260
4261 * m68knbsd-nat.c: Remove file.
4262 * m68knbsd-tdep.c: Remove file.
4263 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4264 dependencies.
4265 * configure.host: Add m68k-*-netbsdelf*.
4266 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4267 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4268 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4269 (XM_FILE): Remove.
4270 * config/m68k/nbsdelf.mh: New file.
4271 * config/m68k/nbsd.mt: New file.
4272 * config/m68k/nbsdaout.mt: Remove file.
4273 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4274 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4275 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4276 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4277 (use_struct_convention): Remove prototype.
4278 (USE_STRUCT_CONVENTION): Remove define.
4279 * config/m68k/xm-nbsd.h: Remove file.
4280
4281 2004-05-04 Michael Snyder <msnyder@redhat.com>
4282
4283 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4284 reg_struct_return method (as gcc usually does for cross targets).
4285
4286 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4287
4288 Committed by Andrew Cagney.
4289 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4290 alignment padding when accessing ucontext struct members.
4291
4292 2004-05-04 Jim Blandy <jimb@redhat.com>
4293
4294 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4295 'ppc_gplast_regnum' member.
4296 (ppc_num_gprs): New enum constant.
4297 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4298 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4299 * rs6000-nat.c (regmap, fetch_inferior_registers,
4300 store_inferior_registers): Same.
4301 * rs6000-tdep.c (e500_pseudo_register_read)
4302 (e500_pseudo_register_write): Same.
4303 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4304
4305 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4306 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4307 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4308 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4309 FPLAST_REGNUM.
4310 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4311 Same.
4312 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4313 * rs6000-nat.c (regmap, fetch_inferior_registers)
4314 (store_inferior_registers): Same.
4315
4316 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4317 with FPLAST_REGNUM.
4318
4319 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4320
4321 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4322 failure detected by recent versions of GCC.
4323 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4324 to be consistent with the usage in dwarf2_create_include_psymtab.
4325
4326 2004-05-03 Michael Snyder <msnyder@redhat.com>
4327
4328 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4329 (heuristic_proc_start): Whitespace cleanup.
4330
4331 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4332
4333 * sun3-nat.c: Remove file.
4334 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4335 dependencies.
4336 (ALLDEPFILES): Remove sun3-nat.c.
4337 (sun3-nat.o): Remove dependencies.
4338
4339 * i386-interix-nat.c, i386-interix-tdep.c,
4340 config/i386/nm-interix.h, config/i386/interix.mh,
4341 config/i386/interix.mt: Remove files.
4342 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4343 dependencies.
4344
4345 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4346
4347 * m68k-tdep.h (struct gdbarch_tdep): Add member
4348 struct_value_regnum.
4349 (m68k_svr4_init_abi): New prototype.
4350 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4351 different calling conventions.
4352 (m68k_extract_return_value): Remove code dealing with single-field
4353 structs.
4354 (m68k_store_return_value): Remove code dealing with single-field
4355 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4356 (m68k_extract_struct_value_address): Remove function.
4357 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4358 (m68k_reg_struct_return_p, m68k_return_value)
4359 (m68k_svr4_return_value): New functions.
4360 (m68k_use_struct_convention): Remove function.
4361 (m68k_push_dummy_call): Use new struct_value_regnum member of
4362 `struct gdbarch_tdep' instead of hardcoded register number to
4363 store STRUCT_ADDR.
4364 (m68k_svr4_init_abi): New function.
4365 (m68k_gdbarch_init): Don't set extract_return_value,
4366 store_return_values, deprecated_extract_struct_value_address and
4367 use_struct_convention. Set return_value instead. Initialize new
4368 struct_value_regnum member of `struct gdbarch_tdep'.
4369 * m68klinux-tdep.c: Update copyright year.
4370 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4371 (m68k_linux_extract_struct_value_address): Remove function.
4372 (m68k_linux_init_abi): Don't set extract_return_value,
4373 store_return_values, deprecated_extract_struct_value_address and
4374 use_struct_convention. Call m68k_svr4_init_abi but override the
4375 new struct_value_regnum member of `struct gdbarch_tdep'.
4376 * Makefile.in (m68k-tdep.o): Update dependencies.
4377
4378 2004-05-03 J. Brobecker <brobecker@gnat.com>
4379
4380 * dwarf2read.c (line_header): Add new included_p field in
4381 field file_names.
4382 (partial_die_info): New field has_stmt_list. New field line_offset.
4383 (dwarf2_create_include_psymtab): New function.
4384 (dwarf2_build_include_psymtabs): New function.
4385 (add_file_name): Add forward declaration. Initialize new field.
4386 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4387 to be able to determine the list of files included by the
4388 given unit, and build their associated psymtabs.
4389 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4390 files as well.
4391 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4392 (read_file_scope): Update call to dwarf_decode_lines.
4393 (read_partial_die): Handle DW_AT_stmt_list attributes.
4394
4395 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4396
4397 Unfix PR gdb/1626.
4398 * configure.in: Revert special case for osf5.*.
4399 * configure: Regenerate.
4400
4401 2004-05-02 Jim Blandy <jimb@redhat.com>
4402
4403 Move the symbol-file-from-memory functions into their own file.
4404 * symfile-mem.c, symfile-mem.h: New files.
4405 * symfile.c (symbol_file_add_from_bfd): New function.
4406 (symbol_file_add): Call symbol_file_add_from_bfd.
4407 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4408 Moved to symfile-mem.c.
4409 (_initialize_symfile): Move definition of
4410 add-symbol-file-from-memory command to symfile-mem.c.
4411 * symfile.h (symbol_file_add_from_bfd): New declaration.
4412 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4413 * config/powerpc/linux.mt (TDEPFILES): Same.
4414 * Makefile.in (SFILES): Add symfile-mem.c.
4415 (symfile_mem_h): New variable.
4416 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4417 (symfile-mem.o): New rule.
4418
4419 2004-05-01 Andrew Cagney <cagney@redhat.com>
4420
4421 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4422 frame_find_by_id instead of frame_relative_level.
4423 (do_enable_breakpoint): Ditto.
4424 * thread.c: Update copyright.
4425 (info_threads_command): Ditto, simplify.
4426
4427 * frame.c (deprecated_generic_get_saved_register): Delete
4428 function, moved to "xstormy16-tdep.c".
4429 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4430 deprecated_generic_get_saved_register from "frame.c".
4431 (xstormy16_frame_saved_register): Call
4432 xstormy16_get_saved_register.
4433 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4434 static.
4435 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4436 * frame.h (deprecated_generic_get_saved_register): Delete.
4437
4438 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4439
4440 * dwarfread.c: Update documentation on the state of dwarf-1.
4441
4442 2004-05-01 Andrew Cagney <cagney@redhat.com>
4443
4444 * stack.c (select_frame_command): Delete call to
4445 frame_relative_level.
4446 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4447 Delete #if0 code.
4448 (frame_info): Do not print FRAMELESS.
4449 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4450 (catch_info): Delete #if0 code.
4451
4452 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4453 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4454 of frame_relative_level.
4455 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4456 to SENTINEL_FRAME.
4457 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4458 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4459 frame_relative_level.
4460
4461 * frame.h (deprecated_set_frame_type): Delete declaration.
4462 * frame.c (deprecated_set_frame_type): Delete function, update
4463 comments.
4464
4465 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4466 * gdbarch.h, gdbarch.c: Re-generate.
4467 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4468 (shnbsd_pc_in_sigtramp): Delete.
4469 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4470 pc_in_sigtramp.
4471 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4472 pc_in_sigtramp.
4473 * frame.h: Update comments.
4474 * ppc-linux-tdep.c: Update comments.
4475 * breakpoint.c (bpstat_what): Update comments.
4476
4477 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4478 m68klinux-tdep.o's dependencies, were previously added to
4479 m68klinux-nat.o.
4480
4481 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
4482 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
4483 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4484 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4485 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4486
4487 * Makefile.in (m68klinux-nat.o): Update dependencies.
4488 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4489 (m68k_linux_sigtramp_frame_cache)
4490 (m68k_linux_sigtramp_frame_this_id)
4491 (m68k_linux_sigtramp_frame_prev_register)
4492 (m68k_linux_sigtramp_frame_unwind)
4493 (m68k_linux_sigtramp_frame_sniffer)
4494 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
4495 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
4496 names, use trad-frame.h.
4497 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
4498 (struct m68k_sigtramp_info): Delete.
4499 * m68k-tdep.c (m68k_sigtramp_frame_cache)
4500 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
4501 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
4502 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
4503 "m68klinux-tdep.c".
4504
4505 * infrun.c (check_sigtramp2): Delete check for
4506 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
4507
4508 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4509
4510 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
4511
4512 2004-05-01 Andrew Cagney <cagney@redhat.com>
4513
4514 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4515 (frv_linux_sigtramp_frame_cache)
4516 (frv_linux_sigtramp_frame_this_id)
4517 (frv_linux_sigtramp_frame_prev_register)
4518 (frv_linux_sigtramp_frame_unwind)
4519 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
4520 include "linux" in function and variable names, directly call
4521 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
4522 the latest trad-frame code.
4523 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
4524 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
4525 * Makefile.in (frv-linux-tdep.o): Update dependencies.
4526 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
4527 * frv-tdep.c (frv_sigtramp_frame_cache)
4528 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4529 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
4530 frv-linux-tdep.c.
4531 (frv_gdbarch_init): Do not append a sigtramp sniffer.
4532 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
4533 (frv_set_sigcontext_reg_addr): Delete function.
4534
4535 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
4536 (DEPRECATED_SIGTRAMP_END): Delete.
4537 * gdbarch.h, gdbarch.c: Re-generate.
4538 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
4539 * config/vax/tm-vaxbsd.h: Update copyright.
4540 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4541 (DEPRECATED_IN_SIGTRAMP): Define.
4542 * config/m68k/tm-nbsd.h: Update copyright.
4543 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4544 (DEPRECATED_IN_SIGTRAMP): Define.
4545
4546 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4547
4548 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
4549 encondings. Fixes PR gdb/1628.
4550
4551 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
4552 DW_CFA_restore state without a matching DW_CFA_remember_state
4553 instead of aborting. Fixes PR backtrace/1589.
4554
4555 2004-04-30 Joel Brobecker <brobecker@gnat.com>
4556
4557 * MAINTAINERS: Add self as AIX maintainer.
4558 Update my e-mail address in write-after-approval section.
4559
4560 2004-04-30 Andrew Cagney <cagney@redhat.com>
4561
4562 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
4563 (legacy_get_prev_frame): Ditto.
4564
4565 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
4566 (mips_gdbarch_init): Do not set pc_in_sigtramp.
4567 * mipsread.c (sigtramp_address): Delete extern variable.
4568 (mipscoff_new_init): Delete reference.
4569 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
4570 (fixup_sigtramp): Delete function.
4571 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
4572 (fixup_sigtramp): Delete declarations.
4573
4574 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
4575 deprecated_pc_in_sigtramp.
4576 (ppcnbsd_pc_in_sigtramp): Delete function.
4577
4578 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4579
4580 * config/m68k/nm-nbsd.h: Tweak comments.
4581 * config/m68k/nm-nbsdaout.h: Likewise.
4582
4583 2004-04-30 Andrew Cagney <cagney@redhat.com>
4584
4585 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
4586 legacy_pc_in_sigtramp.
4587 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
4588
4589 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4590
4591 Add OpenBSD/m68k support.
4592 * NEWS (New native configurations): Mention OpenBSD/m68k.
4593 * m68kbsd-tdep.c: New file.
4594 * m68kbsd-nat.c: New file.
4595 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
4596 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
4597 * configure.host: Add m68k-*-openbsd.
4598 * configure.tgt: Add m68k-*-openbsd.
4599 * config/m68k/tm-obsd.h: New file.
4600 * config/m68k/obsd.mt: New file.
4601 * config/m68k/obsd.mh: New file.
4602 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
4603 m68kbsd-tdep.c.
4604
4605 2004-04-30 Andrew Cagney <cagney@redhat.com>
4606
4607 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
4608 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
4609
4610 2004-04-30 Mark Kettenis <kettenis@gnu.org>
4611
4612 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
4613 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
4614
4615 2004-04-30 Brian Ford <ford@vss.fsi.com>
4616
4617 Revert 2004-04-16 change.
4618 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
4619 (i386_coff_init_abi): Remove.
4620 * i386-tdep.h (i386_coff_init_abi): Remove.
4621 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
4622
4623 2004-04-30 Andrew Cagney <cagney@redhat.com>
4624
4625 * blockframe.c (find_pc_partial_function): Delete use of
4626 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
4627 DEPRECATED_SIGTRAMP_END.
4628
4629 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
4630 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
4631 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
4632 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
4633 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
4634
4635 * defs.h (deprecated_inside_entry_file): Delete declaration.
4636 * blockframe.c (deprecated_inside_entry_file): Delete function.
4637 (legacy_frame_chain_valid): Delete call.
4638 * sh64-tdep.c (sh64_frame_chain): Delete call.
4639 * objfiles.h: Update comments.
4640 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
4641 call.
4642 * frame.c (get_prev_frame): Delete call, update comments.
4643
4644 2004-04-30 Brian Ford <ford@vss.fsi.com>
4645
4646 * MAINTAINERS (Write After Approval): Add myself.
4647
4648 2004-04-30 Andrew Cagney <cagney@redhat.com>
4649
4650 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
4651 * gdbarch.h, gdbarch.c: Re-generate.
4652 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
4653 code.
4654
4655 2004-04-30 Andrew Cagney <cagney@redhat.com>
4656
4657 * gdb-events.sh (selected_thread_changed)
4658 (selected_frame_level_changed, target_changed): Delete.
4659 * gdb-events.h, gdb-events.c: Re-generate.
4660 * valops.c (value_assign): Update.
4661 * stack.c (select_frame_command, up_silently_base)
4662 (down_silently_base): Update.
4663
4664 2004-04-29 Andrew Cagney <cagney@redhat.com>
4665
4666 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
4667 registers correctly.
4668 (print_gp_register_row, mips32_heuristic_proc_desc)
4669 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
4670 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
4671 references to mips_isa_regsize.
4672
4673 2004-04-29 Andrew Cagney <cagney@redhat.com>
4674
4675 * mips-tdep.c (struct gdbarch_tdep): Delete
4676 mips_fp_register_double.
4677 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
4678 mips_abi_regsize.
4679 (mips_gdbarch_init): Do not set mips_fp_register_double.
4680 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
4681
4682 2004-04-29 Joel Brobecker <brobecker@gnat.com>
4683
4684 Committed by Andrew Cagney.
4685 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
4686 function calls.
4687
4688 2004-04-29 Andrew Cagney <cagney@redhat.com>
4689
4690 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
4691 gdbarch, use mips_abi, update callers.
4692 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
4693 mips_abi_regsize, update callers.
4694 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
4695 mips_default_abi_regsize.
4696 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
4697 mips_default_abi_regsize.
4698
4699 2004-04-29 Andrew Cagney <cagney@redhat.com>
4700
4701 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
4702 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
4703 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
4704 mips_default_abi_regsize.
4705 (mips_isa_regsize): Rename mips_regisze.
4706 * mipsnbsd-tdep.c: Update.
4707 * mips-linux-tdep.c: Update.
4708 * irix5-nat.c: Update.
4709 * mips-tdep.h (mips_isa_regsize): Update.
4710
4711 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
4712 Delete all disabled code.
4713 * gdb-events.h, gdb-events.c: Re-generate.
4714
4715 2004-04-19 Jerome Guitton <guitton@gnat.com>
4716 Mark Kettenis <kettenis@gnu.org>
4717
4718 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
4719 the function begins with a branch instruction.
4720
4721 2004-04-29 Mark Kettenis <kettenis@gnu.org>
4722
4723 * i386-tdep.c: Fix spelling mistakes.
4724
4725 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4726 Andrew Cagney <cagney@redhat.com>
4727
4728 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
4729 <sys/proc.h>.
4730 * acconfig.h: Provide default _KMEMUSER value.
4731 * config.in, configure: Re-generate.
4732 * NEWS: Mention fix.
4733
4734 2004-04-24 Randolph Chung <tausq@debian.org>
4735
4736 * configure.host (hppa*-*-linux*): New target.
4737 * configure.tgt (hppa*-*-linux*): Likewise.
4738 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
4739 gdbarch_init_osabi() call earlier so that osabi-specific frame
4740 unwinders can be registered first.
4741 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
4742 hppa-linux-nat.c.
4743 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
4744 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
4745 * config/pa/linux.mh: New file.
4746 * config/pa/linux.mt: New file.
4747 * config/pa/nm-linux.h: New file.
4748 * config/pa/xm-linux.h: New file.
4749 * hppa-linux-nat.c: New file.
4750 * hppa-linux-tdep.c: New file.
4751
4752 2004-04-28 Randolph Chung <tausq@debian.org>
4753
4754 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
4755 return values.
4756 (hppa32_push_dummy_call): Fix small struct and floating point argument
4757 passing, and make sure the stack frame is properly aligned.
4758
4759 2004-04-28 Andrew Cagney <cagney@redhat.com>
4760
4761 * stack.c (print_stack_frame): Fix description.
4762
4763 * NEWS: Mention gdb/gdbserver/configure execute permission
4764 changed. PR server/519.
4765
4766 2004-04-28 Andrew Cagney <cagney@redhat.com>
4767
4768 * stack.c (print_stack_frame_stub): Delete declaration.
4769 (struct print_stack_frame_args, print_stack_frame)
4770 (print_frame_info, print_frame): Replace "source" with print what.
4771 Replace "print" with "print_level". Replace "args" with
4772 "print_args".
4773 * frame.h (show_and_print_stack_frame, print_stack_frame)
4774 (print_frame_info): Update declarations.
4775 * stack.c (select_and_print_frame, frame_command)
4776 (current_frame_command, up_command, down_command): Update calls -
4777 use get_selected_frame, pass "enum print_what" for source, do not
4778 call frame_relative_level.
4779 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
4780 * remote-rdp.c (remote_rdp_open): Ditto.
4781 * remote-mips.c (common_open): Ditto.
4782 * remote-e7000.c (e7000_start_remote): Ditto.
4783 * ocd.c (ocd_start_remote): Ditto.
4784 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
4785 * infrun.c (normal_stop): Ditto.
4786 * inflow.c (kill_command): Ditto.
4787 * infcmd.c (finish_command): Ditto.
4788 * corelow.c (core_open): Ditto.
4789 * tracepoint.c (finish_tfind_command): Ditto.
4790 * thread.c (info_threads_command, info_threads_command)
4791 (restore_current_thread, do_captured_thread_select): Ditto.
4792 * ada-tasks.c (task_command): Ditto.
4793
4794 2004-04-26 Orjan Friberg <orjanf@axis.com>
4795
4796 * frame.c: Include "observer.h".
4797 (frame_observer_target_changed): New function.
4798 (_initialize_frame): Attach target_changed observer.
4799 * regcache.c: Include "observer.h".
4800 (regcache_observer_target_changed): New function.
4801 (_initialize_regcache): Attach target_changed observer.
4802 * valops.c: Include "observer.h".
4803 (value_assign): Notify target_changed event when modifying register.
4804 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
4805
4806 2004-04-26 Orjan Friberg <orjanf@axis.com>
4807
4808 From Paul Koning <pkoning@equallogic.com>:
4809 * breakpoint.c (free_valchain): New function.
4810 (insert_bp_location, delete_breakpoint): Use free_valchain.
4811 (remove_breakpoint): Do not remove the valchain.
4812 (bpstat_stop_status): If not stopped by watchpoint, skip
4813 watchpoints when generating stop status list.
4814 * infrun.c (handle_inferior_event): Make
4815 stepped_after_stopped_by_watchpoint a global variable.
4816 * remote.c (remote_stopped_data_address): Return watch data
4817 address rather than zero if stepped_after_stopped_by_watchpoint is
4818 set.
4819
4820 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
4821
4822 Fix PR gdb/1626.
4823 * configure.in: Check for curses after termcap.
4824 On osf5.*, do not check for ncurses.
4825 * configure: Regenerate.
4826
4827 2004-04-25 Mark Kettenis <kettenis@gnu.org>
4828
4829 * ppcobsd-nat.c: Include "ppc-tdep.h".
4830 * Makefile.in (ppcobsd-nat.o): Update dependencies.
4831
4832 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
4833 Fixes PR tdep/1623 and PR tdep/1624.
4834
4835 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
4836
4837 * xmodem.h, xmodem.c: Remove files.
4838 * Makefile.in: Remove references to xmodem.h, xmodem.c.
4839
4840 2004-04-23 Randolph Chung <tausq@debian.org>
4841
4842 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
4843 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
4844 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
4845 for handling stackless frames.
4846 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
4847
4848 2004-04-23 Randolph Chung <tausq@debian.org>
4849
4850 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
4851 starts at a pc before the frame is created.
4852
4853 2004-04-23 Joel Brobecker <brobecker@gnat.com>
4854
4855 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
4856
4857 2004-04-23 Jerome Guitton <guitton@gnat.com>
4858
4859 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
4860 use convert_typed_floating to get the appropriate format.
4861
4862 2004-04-22 Randolph Chung <tausq@debian.org>
4863
4864 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
4865 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
4866 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
4867 (hppa_sign_extend): Add prototype.
4868 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
4869 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
4870 (sign_extend): Rename with hppa_ prefix and make non-static. Other
4871 hppa targets will also use these functions.
4872 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
4873 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
4874 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
4875 (hppa_gdbarch_init): Remove gdbarch setting of
4876 skip_trampoline_code, in_solib_call_trampoline and
4877 in_solib_return_trampoline.
4878 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4879 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
4880 hppa_in_solib_call_trampoline.
4881 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
4882 Moved from hppa-tdep.c.
4883 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
4884 in_solib_call_trampoline and in_solib_return_trampoline.
4885
4886 2004-04-22 Randolph Chung <tausq@debian.org>
4887
4888 * hppa-tdep.c (hppa_debug): New variable.
4889 (find_unwind_entry, hppa_frame_cache): Add debug output.
4890 (_initialize_hppa_tdep): Add command to set debug flag.
4891
4892 2004-04-22 Andrew Cagney <cagney@redhat.com>
4893
4894 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
4895 "trad-frame.h".
4896 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
4897 signal trampoline unwinder.
4898 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
4899
4900 2004-04-22 Mark Kettenis <kettenis@gnu.org>
4901
4902 Add OpenBSD/powerpc support.
4903 * NEWS (New native configurations): Mention OpenBSD/powerpc.
4904 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
4905 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
4906 (ppc_collect_fpregset): New prototypes.
4907 * ppcobsd-nat.c: New file.
4908 * ppcobsd-tdep.c: New file.
4909 * ppcobsd-tdep.h: New file.
4910 * rs6000-tdep.c: Include "regset.h".
4911 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
4912 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
4913 New functions.
4914 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
4915 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
4916 (rs6000-tdep.o): Update dependencies.
4917 * configure.host: Add powerpc-*-openbsd.
4918 * configure.tgt: Add powerpc-*-openbsd.
4919 * config/powerpc/obsd.mh: New file.
4920 * config/powerpc/nm-obsd.h: New file.
4921 * config/powerpc/obsd.mt: New file.
4922
4923 2004-04-22 Andrew Cagney <cagney@redhat.com>
4924
4925 * frame.h (show_frame_info): Delete declaration.
4926
4927 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
4928 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
4929 * m32r-tdep.c (m32r_frame_this_id): Ditto.
4930 * frv-tdep.c (frv_frame_this_id): Ditto.
4931 * avr-tdep.c (avr_frame_this_id): Ditto.
4932
4933 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
4934
4935 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
4936
4937 2004-04-22 Jim Blandy <jimb@redhat.com>
4938
4939 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
4940 register number zero.
4941
4942 2004-04-21 Michael Snyder <msnyder@redhat.com>
4943
4944 * mips-tdep.c (heuristic_proc_start):
4945 Warning() already prefixes "Warning: ".
4946
4947 2004-04-21 Andrew Cagney <cagney@redhat.com>
4948
4949 * annotate.h (deprecated_annotate_starting_hook)
4950 (deprecated_annotate_stopped_hook)
4951 (deprecated_annotate_exited_hook)
4952 (deprecated_annotate_signal_hook)
4953 (deprecated_annotate_signalled_hook): Deprecate.
4954 * tracepoint.h (deprecated_create_tracepoint_hook)
4955 (deprecated_delete_tracepoint_hook)
4956 (deprecated_modify_tracepoint_hook)
4957 (deprecated_trace_find_hook)
4958 (deprecated_trace_start_stop_hook): Deprecate.
4959 * target.h (deprecated_target_new_objfile_hook): Deprecate.
4960 * remote.h (deprecated_target_resume_hook)
4961 (deprecated_target_wait_loop_hook): Deprecate.
4962 * gdbcore.h (deprecated_exec_file_display_hook)
4963 (deprecated_file_changed_hook): Deprecate.
4964 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
4965 * defs.h (deprecated_modify_breakpoint_hook)
4966 (deprecated_command_loop_hook, deprecated_show_load_progress)
4967 (deprecated_print_frame_info_listing_hook)
4968 (deprecated_query_hook, deprecated_warning_hook)
4969 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
4970 (deprecated_delete_breakpoint_hook)
4971 (deprecated_interactive_hook, deprecated_registers_changed_hook)
4972 (deprecated_readline_begin_hook, deprecated_readline_hook)
4973 (deprecated_readline_end_hook, deprecated_register_changed_hook)
4974 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
4975 (deprecated_context_hook, deprecated_target_wait_hook)
4976 (deprecated_attach_hook, deprecated_detach_hook)
4977 (deprecated_call_command_hook, deprecated_set_hook)
4978 (deprecated_error_hook, deprecated_error_begin_hook)
4979 (deprecated_ui_load_progress_hook): Deprecate.
4980 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
4981 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
4982 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
4983 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
4984 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
4985 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
4986 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
4987 * annotate.c, aix-thread.c: Update.
4988
4989 2004-04-21 Andrew Cagney <cagney@redhat.com>
4990
4991 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
4992 * vaxnbsd-tdep.c: Include "gdb_string.h".
4993
4994 * symfile.c (symbol_file_add_from_memory): #if 0 function.
4995 (add_symbol_file_from_memory_command): #if 0 function body, call
4996 error instead.
4997
4998 2004-04-21 Andrew Cagney <cagney@redhat.com>
4999
5000 * gdbcore.h: Update copyright.
5001 (deprecated_add_core_fns): Rename add_core_fns.
5002 * win32-nat.c (_initialize_core_win32): Update.
5003 * sun3-nat.c (_initialize_core_sun3): Update.
5004 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5005 * rs6000-nat.c (_initialize_core_rs6000): Update.
5006 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5007 * nto-tdep.c (_initialize_nto_tdep): Update.
5008 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5009 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5010 * mips-nat.c (_initialize_core_mips): Update.
5011 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5012 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5013 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5014 * lynx-nat.c (_initialize_core_lynx): Update.
5015 * irix5-nat.c (_initialize_core_irix5): Update.
5016 * i386-interix-nat.c (_initialize_core_interix): Update.
5017 * cris-tdep.c (_initialize_cris_tdep): Update.
5018 * corelow.c (deprecated_add_core_fns): Update.
5019 * core-regset.c (_initialize_core_regset): Update.
5020 * core-aout.c (_initialize_core_aout): Update.
5021 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5022 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5023 * alpha-nat.c (_initialize_core_alpha): Update.
5024
5025 2004-04-21 Jim Blandy <jimb@redhat.com>
5026
5027 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5028
5029 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5030
5031 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5032 Delete.
5033 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5034 (read_attribute_value): Update calls to dwarf_alloc_block.
5035 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5036 dwarf2_tmp_obstack.
5037 (psymtab_to_symtab_1): Likewise. Clean up using
5038 free_stack_comp_unit.
5039 (add_to_cu_func_list): Use the comp_unit_obstack.
5040
5041 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5042
5043 * dwarf2read.c (dwarf2_flag_true_p): New function.
5044 (die_is_declaration): Use the function above. Add some comments.
5045
5046 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5047
5048 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5049 architecture when registering sparcnbsd_core_osabi_sniffer.
5050 Adjust comment.
5051
5052 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5053
5054 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5055 return value.
5056
5057 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5058 * i386-tdep.c: Correct register numbering scheme comments
5059 throughout.
5060 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5061 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5062 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5063 (i386_gdb_arch_init): Likewise.
5064
5065 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5066 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5067 ppcnbsd-tdep.o.
5068
5069 * m68k-tdep.h: Tweak comments.
5070 * m68k-tdep.c: Tweak comment.
5071
5072 2004-04-17 Randolph Chung <tausq@debian.org>
5073
5074 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5075 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5076 (hppa_hpux_som_init_abi): Set is_elf to 0.
5077 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5078 * hppa-tdep.c (low_text_segment_address): Remove global.
5079 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5080 section offset to calculate segment address.
5081 (internalize_unwinds): Define low_text_segment_address as local and
5082 pass to record_text_segment_lowaddr for ELF targets.
5083 (hppa_gdbarch_init): Zero fill tdep structure.
5084 (hppa_dump_tdep): Print tdep structure.
5085 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5086
5087 2004-04-17 Randolph Chung <tausq@debian.org>
5088
5089 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5090 (hppa_gdbarch_init): Set pseudo_register_read.
5091 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5092 * regcache.c (supply_register): Remove check for
5093 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5094
5095 2004-04-17 Randolph Chung <tausq@debian.org>
5096
5097 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5098 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5099 (hpread_adjust_stack_address): Move to hpread.c.
5100 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5101 obj_private_struct): Move from tm-hppa.h.
5102 * hpread.c (hppa-tdep.h): Include.
5103 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5104 (hpread_read_function_type, hpread_read_doc_function_type)
5105 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5106 directly.
5107 * pa64solib.c (hppa-tdep.h): Include.
5108 * somsolib.c (hppa-tdep.h): Include.
5109 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5110 inferior_status): Remove unused forward declarations.
5111 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5112 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5113 obj_private_struct): Move to hppa-tdep.h.
5114 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5115
5116 2004-04-17 Randolph Chung <tausq@debian.org>
5117
5118 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5119 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5120 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5121 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5122 Remove forward declaration and make static.
5123 (hppa_reg_struct_has_addr): Remove.
5124
5125 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5126
5127 * observer.sh: Move comments in sed command to first column.
5128
5129 2004-04-16 Jason Molenda (jmolenda@apple.com)
5130
5131 * frame.c: Minor typeo corrections in comments.
5132
5133 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5134
5135 * observer.c (observer_test_first_notification_function): Update
5136 function profile.
5137 (observer_test_second_notification_function): Likewise.
5138 (observer_test_third_notification_function): Likewise.
5139
5140 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5141
5142 From Brian Ford <ford@vss.fsi.com>:
5143 * i386-tdep.c (i386_coff_init_abi): New function.
5144 * i386-tdep.h (i386_coff_init_abi): New prototype.
5145 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5146 register number translation functions for DWARF and DWARF 2.
5147
5148 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5149
5150 * dwarf2read.c: Back out my previous change, it was incorrect.
5151
5152 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5153
5154 * dwarf2read.c: Include "hashtab.h".
5155 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5156 has_namespace_info.
5157 (struct partial_die_info): Add comments. Use bitfields to reduce
5158 memory footprint. Add scope, scope_set, has_specification,
5159 spec_offset, die_parent, die_child, and die_sibling.
5160 (peek_die_abbrev): Add prototype.
5161 (partial_read_comp_unit_head): New function, broken out from
5162 dwarf2_build_psymtabs_hard.
5163 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5164 Use partial_read_comp_unit_head. Initialize the CU and
5165 comp_unit_obstack. Update calls to read_partial_die and
5166 scan_partial_symbols. Use free_stack_comp_unit and
5167 load_partial_dies.
5168 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5169 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5170 Update calls to helper functions. Remove NAMESPACE argument.
5171 Update comments.
5172 (partial_die_parent_scope, partial_die_full_name): New functions.
5173 (add_partial_symbol): Remove namespace argument. Update call to
5174 pdi_needs_namespace. Use partial_die_full_name. Handle
5175 DW_TAG_namespace. Check has_namespace_info flag.
5176 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5177 tag. Handle namespaces.
5178 (add_partial_namespace, add_partial_enumeration): Simplify.
5179 (guess_structure_name): New function, derived from
5180 add_partial_structure.
5181 (add_partial_structure): Remove.
5182 (determine_class_name): Update comment.
5183 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5184 (is_type_tag_for_partial, load_partial_dies): New functions.
5185 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5186 Record specifications instead of following them immediately.
5187 (find_partial_die_in_comp_unit, find_partial_die)
5188 (fixup_partial_die, free_stack_comp_unit)
5189 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5190 (partial_die_hash, partial_die_eq): New functions.
5191 * Makefile.in (hashtab_h): Define.
5192 (dwarf2read.o): Update dependencies.
5193 (observer_inc, observer_h): Move to the correct section.
5194
5195 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5196
5197 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5198 (die_is_declaration): Use the function above. Add comment.
5199
5200 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5201
5202 * dwarf2read.c (read_structure_scope): Identify stub types
5203 using die_is_declaration() only.
5204
5205 2004-04-15 Roland McGrath <roland@redhat.com>
5206
5207 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5208 argument instead of NAME.
5209 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5210 in call to symbol_file_add_with_addrs_or_offsets.
5211 (build_addr_info): New function, helper for ...
5212 (symbol_file_add_from_memory): New function.
5213 (add_symbol_file_from_memory_command): New function using that.
5214 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5215 (pre_add_symbol_hook): Add const to argument type.
5216 * symfile.h (symbol_file_add_from_memory): Declare it.
5217
5218 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5219
5220 * NEWS (New native configurations): Mention OpenBSD/vax.
5221 * configure.host: Add vax-*-openbsd*.
5222 * config/vax/obsd.mh: New file.
5223 * config/vax/nm-obsd.h: New file.
5224
5225 * vax-tdep.c: Include "regset.h".
5226 (vax_supply_gregset): New function.
5227 (vax_gregset): New variable.
5228 (vax_regset_from_core_section): New function.
5229 (vax_gdbarch_init): Set regset_from_core_section.
5230 * Makefile.in (vax-tdep.o): Update dependencies.
5231
5232 2004-04-15 Andrew Cagney <cagney@redhat.com>
5233
5234 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5235 (observer_normal_stop_notification_stub)
5236 (observer_attach_normal_stop, observer_detach_normal_stop):
5237 Delete, replaced by #include "observer.inc".
5238 * infrun.c (normal_stop): Pass "stop_bpstat" to
5239 observer_notify_normal_stop.
5240 * Makefile.in (observer_inc): Define.
5241 (observer.o): Update dependencies.
5242 (observer.h, observer.inc): New rules.
5243 * observer.h: Delete file.
5244 * observer.sh: New file.
5245
5246 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5247
5248 * vax-tdep.c (vax_frame_cache): Fix typo.
5249
5250 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5251
5252 * NEWS (New native configurations): Mention NetBSD/vax.
5253 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5254 * config/vax/nbsdelf.mh: New file.
5255 * config/vax/nbsdaout.mh: New file.
5256 * config/vax/nm-nbsd.h: New file.
5257 * config/vax/nm-nbsdaout.h: New file.
5258
5259 * vaxnbsd-tdep.c: New file.
5260 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5261 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5262 * config/vax/nbsd.mt: New file.
5263 * config/vax/tm-nbsd.h: New file.
5264
5265 * Makefile.in (vaxbsd-nat.o): New dependency.
5266
5267 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5268 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5269 struct_addr arguments. Don't push return value address.
5270 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5271 arguments to vax_store_arguments. Store return value address in
5272 R1.
5273 (vax_store_struct_return, vax_extract_return_value)
5274 (vax_store_return_value): Remove functions.
5275 (vax_return_value): New function.
5276 (vax_gdbarch_init): Set return value. Don't set
5277 deprecated_store_struct_return, deprecated_extract_struct_return
5278 and deprecated_store_return_value.
5279
5280 2004-04-14 Andreas Schwab <schwab@suse.de>
5281
5282 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5283 value buffer.
5284 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5285
5286 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5287
5288 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5289 (vax_unwind_dummy_id): New functions.
5290 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5291 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5292 variables.
5293 (vax_fix_call_dummy): Remove function.
5294 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5295 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5296 call_dummy_location, deprecated_call_dummy_words,
5297 deprecated_sizeof_call_dummy_words,
5298 deprecated_call_dummy_breakpoint_offset,
5299 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5300 and deprecated_dummy_write_sp.
5301
5302 2004-04-13 David Carlton <carlton@kealia.com>
5303
5304 * MAINTAINERS: Move myself to "paper trail" section.
5305
5306 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5307
5308 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5309 "trad-frame.h".
5310 (vax_frame_init_saved_regs): Remove function.
5311 (vax_sigtramp_saved_pc): Remove function.
5312 (vax_frame_saved_pc): Remove function.
5313 (vax_frame_args_address): Remove function.
5314 (vax_frame_num_args): Rewrite.
5315 (vax_frame_chain): Remove function.
5316 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5317 VAX_FP_REGNUM.
5318 (vax_pop_frame): Likewise.
5319 (vax_saved_pc_after_call): Remove function.
5320 (struct vax_frame_cache): New structure.
5321 (vax_frame_cache): New function.
5322 (vax_frame_this_id): New function.
5323 (vax_frame_prev_register): New function.
5324 (vax_frame_unwind): New variable.
5325 (vax_frame_sniffer): New function.
5326 (vax_frame_base_address): New function.
5327 (vax_frame_args_address): New function.
5328 (vax_frame_base): New variable.
5329 (vax_unwind_pc): New function.
5330 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5331 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5332 deprecated_frame_chain, deprecated_frame_saved_pc,
5333 deprecated_frame_args_address and
5334 deprecated_frame_init_saved_regs.
5335 * Makefile.in (vax-tdep.o): Update dependencies.
5336
5337 * vaxbsd-nat.c: New file.
5338
5339 * vax-tdep.h: Update copyright year. Adjust comments.
5340 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5341 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5342 (vax_regnum): New enum. Replacing...
5343 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5344 (VAX_PS_REGNUM): ... these removed macros.
5345 * vax-tdep.c (vax_register_name): Remove prototype.
5346 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5347 (vax_register_byte, vax_register_raw_size,
5348 vax_register_virtual_size, vax_register_virtual_type): Remove
5349 functions.
5350 (vax_register_type): New function.
5351 (vax_breakpoint_from_pc): Reorganize.
5352 (vax_gdbarch_init): Set register_type. Don't set
5353 deprecated_register_size, deprecated_register_bytes,
5354 deprecated_register_byte, deprecated_register_raw_size,
5355 deprecated_max_register_raw_size,
5356 deprecated_register_virtual_size,
5357 deprecated_max_register_virtual_size and
5358 deprecated_register_virtual_type. Add comment on stack direction.
5359
5360 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5361
5362 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5363 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5364 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5365
5366 2004-04-10 Randolph Chung <tausq@debian.org>
5367
5368 * MAINTAINERS (write after approval): Add myself.
5369
5370 2004-04-07 Randolph Chung <tausq@debian.org>
5371
5372 * hppa-tdep.c (hppa_inner_than): Remove.
5373 (is_pa_2): Remove unused static variable.
5374 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5375
5376 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5377
5378 * language.h (language_defn): Add new la_post_parser field.
5379 * parser-defs.h (null_post_parser): New declaration (default for
5380 la_post_parser).
5381
5382 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5383 insert call to that function.
5384 (parse_exp_in_context): New function, including code formerly in
5385 parse_exp_1. Calls language-dependent post-parser after
5386 prefixification.
5387 (parse_expression_in_context): New exported function.
5388 (null_post_parser): New definition.
5389 * expression.h (parse_expression_in_context): Add declaration.
5390
5391 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5392 * c-lang.c (c_language_defn): Ditto.
5393 (cplus_language_defn): Ditto.
5394 (asm_language_defn): Ditto.
5395 (minimal_language_defn): Ditto.
5396 * f-lang.c (f_language_defn): Ditto.
5397 * jv-lang.c (java_language_defn): Ditto.
5398 * language.c (unknown_language_defn): Ditto.
5399 (auto_language_defn): Ditto.
5400 (local_language_defn): Ditto.
5401 * m2-lang.c (m2_language_defn): Ditto.
5402 * scm-lang.c (scm_language_defn): Ditto.
5403 * obj-lang.c (objc_language_defn): Ditto.
5404
5405 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5406
5407 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5408 (amd64nbsd_mcontext_addr): New function.
5409 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5410 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5411 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5412
5413 * corelow.c (core_xfer_partial): Fix coding standards violation.
5414 Add support for TARGET_OBJECT_WCOOKIE.
5415
5416 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5417 deprecated_pc_in_sigtramp.
5418 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5419 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5420 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5421 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5422 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5423 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5424 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5425
5426 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5427 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5428 Fix typo.
5429
5430 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5431 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5432 (amd64_collect_fxsave): Likewise.
5433
5434 * i386-sol2-tdep.c: Include "gdb_string.h".
5435 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5436 name.
5437 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5438
5439 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5440
5441 * i386-sol2-tdep.c: Include "solib-svr4.h".
5442 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5443 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5444 * config/i386/tm-i386sol2.h: Include :solib.h".
5445 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5446 solib-svr4.o and solib-legacy.o.
5447 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5448 solib-svr4.o.
5449
5450 2004-04-09 Mark Kettenis <kettenis@gnu.org>
5451
5452 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5453 whether a register is supplied by PTRACE_GETFPREGS.
5454 (store_inferior_registers): Likewise.
5455 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5456 whether a register is supplied by PT_GETFPREGS.
5457 (store_inferior_registers): Likewise.
5458
5459 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5460 * config/i386/linux64.mt (TDEPFILES): Likewise.
5461
5462 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5463
5464 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5465 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5466 the program counter is in the range specified by `struct
5467 gdbarch_tdep'.
5468 * amd64-linux-tdep.c: Include "symtab.h".
5469 (amd64_linux_pc_in_sigtramp): Remove function.
5470 (amd64_linux_sigtramp_p): New function.
5471 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5472 deprecated_pc_in_sigtramp.
5473 * amd64nbsd-tdep.c: Include "symtab.h".
5474 (amd64nbsd_sigtramp_p): New function.
5475 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5476 deprecated_pc_in_sigtramp.
5477 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5478 few comments.
5479 (amd64obsd_pc_in_sigtramp): Remove function.
5480 (amd64obsd_sigtramp_p): New function.
5481 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5482 deprecated_pc_in_sigtramp.
5483 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
5484 (i386bsd_pc_ins_sigtramp): Remove prototype.
5485 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
5486 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
5487 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5488 the program counter is in the range specified by `struct
5489 gdbarch_tdep'.
5490 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
5491 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
5492 (i386_go32_pc_in_sigtramp): Remove function.
5493 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
5494 Initialize TDEP->sigtramp_p.
5495 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
5496 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
5497 deprecated_pc_in_sigtramp.
5498 * i386-linux-tdep.c: Adjust comments.
5499 (i386_linux_pc_in_sigtramp): Remove function.
5500 (i386_linux_sigtramp_p): New function.
5501 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5502 deprecated_pc_in_sigtramp.
5503 * i386-nto-tdep.c: Update copyright year.
5504 (i386nto_pc_in_sigtramp): Remove function.
5505 (i386nto_sigtramp_p): New function.
5506 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
5507 SP_REGNUM.
5508 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
5509 deprecated_pc_in_sigtramp.
5510 * i386-sol2-tdep.c: Update copyright year.
5511 (i386_sol2_pc_in_sigtramp): Remove function.
5512 (i386_sol2_sigtramp_p): New function.
5513 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
5514 deprecated_pc_in_sigtramp.
5515 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
5516 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
5517 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5518 deprecated_sigtramp_start and deprecated_sigtramp_end.
5519 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
5520 (i386nbsd_pc_in_sigtramp): Remove function.
5521 (i386nbsd_sigtramp_p): New function.
5522 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5523 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5524 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
5525 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
5526 (i386obsd_pc_in_sigtramp): Remove function.
5527 (i386obsd_sigtramp_p): New function.
5528 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
5529 functions.
5530 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5531 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5532 TDEP->sigtramp_p.
5533 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
5534 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
5535 dependencies.
5536
5537 * config/i386/i386aout.mt: Remove file.
5538
5539 * configure.tgt: Remove i[34567]86-*-go32*,
5540 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
5541 and i[34567]86-*-isc*. Set gdb_target to i386 for
5542 i[34567]86-*-netware* and i[34567]86-*-*.
5543 * config/i386/i386.mt: New file.
5544 * config/i386/embed.mt: Remove file.
5545 * config/i386/go32.mt: Remove file.
5546 * config/i386/i386nw.mt: Remove file.
5547 * config/i386/i386v.mt: Remove file.
5548 * config/i386/tm-go32.h: Remove file.
5549
5550 * tui/tui-hooks.c: Include "readline/readline.h" after
5551 "gdb_curses.h" instead of before.
5552 * tui/tui-io.c: Likewise.
5553
5554 * tui/tui.c: Fix typo in comment.
5555
5556 * sparc64-tdep.c (sparc_address_from_register): Remove function.
5557
5558 2004-04-08 Andrew Cagney <cagney@redhat.com>
5559
5560 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
5561 (deprecated_exception_support_initialized): Declare.
5562 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
5563 (initialize_hp_cxx_exception_support)
5564 (child_enable_exception_callback): Update.
5565 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
5566 (deprecated_exception_support_initialized): Rename
5567 deprecated_exception_catchpoints_are_fragile and
5568 deprecated_exception_support_initialized.
5569 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
5570
5571 * symtab.c (deprecated_hp_som_som_object_present): Rename
5572 hp_som_som_object_present.
5573 * symtab.h (deprecated_hp_som_som_object_present): Declare.
5574 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
5575 Update. Delete extern declaration.
5576 * valops.c (hp_som_som_object_present): Ditto.
5577 * parse.c (deprecated_hp_som_som_object_present)
5578 (parse_nested_classes_for_hpacc): Ditto.
5579 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
5580 * hppa-hpux-tdep.c (hp_som_som_object_present)
5581 (initialize_hp_cxx_exception_support): Ditto.
5582 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
5583 * cp-valprint.c (hp_som_som_object_present)
5584 (cp_print_class_method): Ditto.
5585 * c-typeprint.c (hp_som_som_object_present):
5586 (c_type_print_base): Ditto.
5587 * c-exp.y (hp_som_som_object_present): Ditto.
5588
5589 2004-04-08 Andrew Cagney <cagney@redhat.com>
5590
5591 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
5592 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
5593 (frame_unwind_find_by_frame): Re-implement the unwind code so
5594 that it can both prepend and append sniffers. Replace
5595 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
5596 * tramp-frame.c (tramp_frame_append): Use
5597 frame_unwind_prepend_unwinder.
5598 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
5599 frame_unwind_register_unwinder.
5600 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
5601 tramp_frame_append.
5602 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
5603 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
5604 (mips_linux_init_abi): Update.
5605
5606 2004-04-08 Kevin Buettner <kevinb@redhat.com>
5607
5608 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
5609 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
5610 file support.
5611
5612 2004-04-07 Kevin Buettner <kevinb@redhat.com>
5613
5614 * ia64-tdep.c (elf.h): Don't include.
5615 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
5616
5617 2004-04-07 Jason Molenda (jmolenda@apple.com)
5618
5619 * frame.h: Typeo corrections in comments.
5620
5621 2004-04-07 Jim Blandy <jimb@redhat.com>
5622
5623 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
5624 %esp and %ebp
5625
5626 2004-04-07 Mark Kettenis <kettenis@gnu.org>
5627
5628 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
5629 * config/sparc/linux64.mt (TDEPFILES): Likewise.
5630 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5631 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
5632 and solib-legacy.o.
5633 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
5634 solib-svr4.o.
5635 * config/sparc/tm-sol2.h: Update copyright year. Include
5636 "solib.h".
5637
5638 * sparc-sol2-tdep.c: Update copyright year. Include
5639 "solib-svr4.h".
5640 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5641 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
5642 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5643 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
5644 dependencies.
5645
5646 2004-04-06 Andrew Cagney <cagney@redhat.com>
5647
5648 * infttrace.c: Include "infttrace.h".
5649 * infttrace.h: Include "target.h".
5650 * Makefile.in (infttrace_h): Update.
5651 (infttrace.o): Update.
5652
5653 2004-04-06 Andrew Cagney <cagney@redhat.com>
5654
5655 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
5656 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
5657 move extern declarations from here ...
5658 * infttrace.h: ... to here.
5659 * Makefile.in (hppah-nat.o): Update dependencies.
5660
5661 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
5662 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
5663 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
5664 (hppa_breakpoint_from_pc): Delete.
5665
5666 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
5667
5668 2004-04-05 Andrew Cagney <cagney@redhat.com>
5669
5670 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
5671 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
5672 <sys/file.h>.
5673
5674 2004-04-06 Randolph Chung <tausq@debian.org>
5675
5676 Committed by Andrew Cagney (mechanical change).
5677 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
5678 exception_catchpoints_are_fragile, find_stub_with_shl_get,
5679 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
5680 child_enable_exception_callback, current_ex_event,
5681 null_symtab_and_line, child_get_current_exception_event,
5682 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
5683 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
5684 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
5685 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
5686 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
5687 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
5688 Move hpux-specific definitions ...
5689 * hppa-hpux-tdep.c: ... to here.
5690
5691 2004-04-05 Andrew Cagney <cagney@redhat.com>
5692
5693 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
5694 skip_prologue_using_sal.
5695
5696 2004-04-05 Andrew Cagney <cagney@redhat.com>
5697
5698 * config/i386/tm-i386.h: Delete file.
5699 * config/i386/tm-vxworks.h: Update copyright, do not include
5700 "tm-i386.h".
5701 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
5702 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
5703 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
5704 * config/i386/ncr3000.mt (TM_FILE): Delete.
5705 * config/i386/interix.mt (TM_FILE): Delete.
5706 * config/i386/i386v.mt (TM_FILE): Delete.
5707 * config/i386/i386nw.mt (TM_FILE): Delete.
5708 * config/i386/i386gnu.mt (TM_FILE): Delete.
5709 * config/i386/i386aout.mt (TM_FILE): Delete.
5710 * config/i386/embed.mt (TM_FILE): Delete.
5711
5712 2004-04-05 Kevin Buettner <kevinb@redhat.com>
5713
5714 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
5715 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
5716 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
5717 (accg7_regnum): New constants.
5718 (last_spr_regnum, last_pseudo_regnum): Update.
5719 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
5720 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
5721 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
5722 for accg registers.
5723 (frv_register_sim_regno): Update spr_map[].
5724
5725 2004-04-04 Andrew Cagney <cagney@redhat.com>
5726
5727 * config/mips/xm-riscos.h: Delete.
5728 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
5729 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
5730 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
5731 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
5732 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
5733 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
5734 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
5735 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
5736 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
5737 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
5738 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
5739 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
5740 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
5741 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
5742 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
5743 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
5744 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
5745 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
5746 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
5747 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
5748 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
5749 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
5750 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
5751 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
5752 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
5753 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
5754
5755 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
5756 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
5757 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
5758 * configure.host: Remove m680[01]0-sun-sunos3*,
5759 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
5760 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
5761 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
5762 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
5763 mips-*-riscos*.
5764 * NEWS: Mention removed systems.
5765
5766 2004-04-04 Andrew Cagney <cagney@redhat.com>
5767
5768 GDB 6.1 release created from 6.1 branch.
5769
5770 2004-04-04 Andrew Cagney <cagney@redhat.com>
5771
5772 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
5773 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
5774 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
5775
5776 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
5777 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
5778 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
5779
5780 2004-04-03 Jim Blandy <jimb@redhat.com>
5781
5782 * MAINTAINERS: Chris Faylor has changed employers; add him to
5783 "paper trail" section, and update his E-mail address.
5784
5785 2004-04-03 Andrew Cagney <cagney@redhat.com>
5786
5787 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
5788 generic dummy frames.
5789 * dummy-frame.c: Update copyright.
5790 (dummy_frame_sniffer): Delete check for generic dummy frames.
5791
5792 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
5793 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
5794 (REG_PARM_STACK_SPACE): Delete.
5795 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
5796 Inline reference to REG_PARM_STACK_SPACE.
5797
5798 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
5799 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
5800 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5801 (FRAME_BASE_BEFORE_SIGTRAMP)
5802 (hppa32_hpux_frame_base_before_sigtramp)
5803 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
5804 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
5805 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
5806 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
5807 (FRAME_BASE_BEFORE_SIGTRAMP)
5808 (hppa64_hpux_frame_base_before_sigtramp)
5809 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
5810
5811 2004-04-03 Andrew Cagney <cagney@redhat.com>
5812
5813 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
5814
5815 2004-04-02 Andrew Cagney <cagney@redhat.com>
5816
5817 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
5818 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
5819 * dummy-frame.h: Delete out-of-date comments.
5820 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
5821 * gdbarch.h, gdbarch.c: Re-generate.
5822
5823 2004-04-02 Joel Brobecker <brobecker@gnat.com>
5824
5825 Committed by Andrew Cagney <cagney@redhat.com>.
5826 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
5827 into account an instruction saving a register if we have already
5828 seen an earlier instruction saving that same register.
5829
5830 2004-04-02 Andrew Cagney <cagney@redhat.com>
5831
5832 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
5833 * gdbarch.h, gdbarch.c: Re-generate.
5834 * frame.c (legacy_get_prev_frame): Delete references to
5835 DEPRECATED_INIT_FRAME_PC_FIRST.
5836
5837 * infrun.c (pc_in_sigtramp): Delete function.
5838 (check_sigtramp2): Inline call to pc_in_sigtramp, use
5839 get_frame_type.
5840
5841 2004-04-02 Andrew Cagney <cagney@redhat.com>
5842
5843 * infrun.c (handle_step_into_function): Delete code conditional on
5844 legacy_frame_p.
5845 (handle_inferior_event, step_over_function): Ditto.
5846
5847 2004-04-02 Andrew Cagney <cagney@redhat.com>
5848
5849 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
5850 "previous frame inner to this frame" test.
5851
5852 2004-04-02 Andrew Cagney <cagney@redhat.com>
5853
5854 * frame.c (safe_frame_unwind_memory): New function.
5855 * frame.h (safe_frame_unwind_memory): Declare. Update description
5856 of /safe_/ methods.
5857 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
5858 "next_frame". Use safe_frame_unwind_memory.
5859 (tramp_frame_sniffer): Update call to tramp_frame_start.
5860
5861 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
5862
5863 * dwarf2read.c (dwarf2_objfile_data_key): New.
5864 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
5865 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
5866 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
5867 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
5868 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
5869 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
5870 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
5871 Remove variables.
5872 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
5873 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
5874 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
5875 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
5876 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
5877 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
5878 Remove macros.
5879 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
5880 data.
5881 (dwarf2_locate_sections, dwarf2_build_psymtabs)
5882 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
5883 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
5884 (read_partial_die, read_full_die, read_indirect_string)
5885 (dwarf_decode_line_header, dwarf_decode_macros)
5886 (dwarf2_symbol_mark_computed): Remove use of removed macros.
5887 Update uses of removed variables.
5888 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
5889 of removed macros.
5890 (_initialize_dwarf2_read): New function.
5891 * symfile.h (dwarf2_has_info): Update prototype.
5892 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
5893 * elfread.c (elf_symfile_read): Likewise.
5894
5895 2004-04-01 Jim Blandy <jimb@redhat.com>
5896
5897 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
5898 function for register numbers on all the rs6000-derived targets.
5899 (rs6000_gdbarch_init): Don't register a separate
5900 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
5901 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
5902 variants.
5903
5904 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
5905 numbering.
5906
5907 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5908
5909 * valarith.c: Update copyright notice.
5910 (value_add): Handle range types.
5911 (value_sub): Ditto.
5912 (value_equal): Ditto.
5913 (value_less): Ditto.
5914 (value_neg): Ditto.
5915 (value_complement): Ditto.
5916 (value_binop): Simplify slightly by using is_integral_type and
5917 eliminiating unnecessary COERCE_ENUMs.
5918
5919 2004-03-31 Andrew Cagney <cagney@redhat.com>
5920
5921 * frame.h (frame_unwind_id): Declare.
5922 * frame.c (frame_unwind_id): New function.
5923 (get_prev_frame_1): New function.
5924 (frame_debug_got_null_frame): New function.
5925 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
5926 code proper to prev_frame, update description.
5927 * infrun.c (step_over_function): Use frame_unwind_id.
5928
5929 2004-04-31 J. Brobecker <brobecker@gnat.com>
5930
5931 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
5932 (hppa64_push_dummy_call): Likewise.
5933
5934 2004-03-30 Jim Blandy <jimb@redhat.com>
5935
5936 From Ulrich Weigand:
5937 * utils.c (query): Do not use a va_list variable multiple times.
5938
5939 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
5940
5941 * Makefile.in (linux_nat_h): Update dependencies.
5942 * configure.in: Check for <gnu/libc-version.h>.
5943 * configure: Regenerate.
5944 * config.in: Regenerate.
5945 * linux-nat.h: Include "target.h". Add waitstatus field to
5946 struct lwp_info.
5947 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
5948 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
5949 to.
5950 (lin_lwp_handle_extended): New function. Handle clone events.
5951 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
5952 thread exit events.
5953 (child_wait): Handle clone events.
5954 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
5955 * linux-nat.c (linux_enable_event_reporting): Turn on
5956 PTRACE_O_TRACECLONE.
5957 (linux_handle_extended_wait): Handle clone events.
5958 * thread-db.c: Include <gnu/libc-version.h>.
5959 (struct private_thread_info): Add dying flag.
5960 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
5961 higher.
5962 (attach_thread): Update comments. Handle dying threads.
5963 (detach_thread): Set the dying flag.
5964 (check_event): Always call attach_thread.
5965
5966 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
5967
5968 * mips-tdep.c (mips_pdr_data): New.
5969 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
5970 (_initialize_mips_tdep): Initialize mips_pdr_data.
5971
5972 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
5973
5974 * minsyms.c (install_minimal_symbols): Move dropping leading
5975 char from linkage name from here...
5976 (prim_record_minimal_symbol_and_info): ...to here. Simplify
5977 test for "__gnu_compiled*" symbols.
5978
5979 2004-03-28 Jim Blandy <jimb@redhat.com>
5980
5981 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
5982 registers to temp register r0 and byte stores as prologue
5983 instructions.
5984
5985 2004-03-28 Andrew Cagney <cagney@redhat.com>
5986
5987 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
5988 arm*-*-*.
5989
5990 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
5991
5992 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
5993 and switch the layout to force a display of register window.
5994
5995 2004-02-26 J. Brobecker <brobecker@gnat.com>
5996
5997 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
5998 of the INTEGER class.
5999
6000 2004-03-26 Jim Blandy <jimb@redhat.com>
6001
6002 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6003 bytes long on PPC GNU/Linux.
6004
6005 2004-03-26 David Carlton <carlton@kealia.com>
6006
6007 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6008
6009 2004-03-25 Andrew Cagney <cagney@redhat.com>
6010
6011 * PROBLEMS: Add general section titles, remove references to
6012 specific releases.
6013
6014 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6015
6016 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6017 INT_REGISTER_SIZE.
6018 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6019 FP_REGISTER_VIRTUAL_SIZE.
6020 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6021 of DEPRECATED_REGISTER_RAW_SIZE.
6022 (arm_register_type): Add gdbarch argument.
6023 (arm_register_raw_size, arm_register_virtual_size): Delete.
6024 (arm_register_byte, arm_extract_return_value)
6025 (arm_store_return_value, arm_get_longjmp_target): Update references
6026 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6027 (arm_gdbarch_init): Likewise. Don't set
6028 deprecated_register_raw_size, deprecated_register_virtual_size,
6029 deprecated_max_register_raw_size,
6030 deprecated_max_register_virtual_size, or
6031 deprecated_max_register_virtual_type. Do set register_type.
6032 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6033 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6034 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6035 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6036 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6037 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6038 INT_REGISTER_SIZE.
6039 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6040 (remote_rdp_store_register): Likewise.
6041
6042 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6043
6044 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6045 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6046 to after osabi initialization.
6047 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6048 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6049 functions.
6050 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6051 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6052 variables.
6053 (mips_linux_init_abi): Append signal trampoline unwinders.
6054
6055 2004-03-24 Andrew Cagney <cagney@redhat.com>
6056
6057 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6058 * tramp-frame.c: Include "gdb_assert.h".
6059 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6060 correct sizeof.
6061 (tramp_frame_append): Validate the tramp frame's instructions.
6062 * Makefile.in (tramp-frame.o): Update dependencies.
6063
6064 2004-03-23 Andrew Cagney <cagney@redhat.com>
6065
6066 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6067
6068 2004-03-23 Andrew Cagney <cagney@redhat.com>
6069
6070 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6071 Nasser as past testsuite/lib/ (and other) maintainers.
6072
6073 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6074
6075 * infcmd.c (attach_command): Reread symbols if we already have
6076 an exec file.
6077
6078 2004-03-23 Andrew Cagney <cagney@redhat.com>
6079
6080 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6081
6082 2004-03-23 Andrew Cagney <cagney@redhat.com>
6083
6084 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6085 * gdbarch.h, gdbarch.c: Re-generate.
6086 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6087 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6088 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6089 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6090 (DEPRECATED_SIGTRAMP_START): Update.
6091 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6092 (DEPRECATED_SIGTRAMP_START): Update.
6093 * blockframe.c (find_pc_sect_partial_function): Update.
6094 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6095
6096 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6097
6098 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6099 if necessary.
6100
6101 2004-03-23 Andrew Cagney <cagney@redhat.com>
6102
6103 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6104 predicate, deprecate.
6105 * gdbarch.h, gdbarch.c: Re-generate.
6106 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6107 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6108 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6109 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6110 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6111 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6112 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6113 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6114 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6115 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6116 * blockframe.c (find_pc_partial_function): Update.
6117 * breakpoint.c (bpstat_what): Update.
6118 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6119 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6120 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6121 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6122 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6123 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6124 * i386-nto-tdep.c (i386nto_init_abi): Update.
6125 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6126 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6127 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6128 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6129 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6130 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6131 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6132 * infrun.c (pc_in_sigtramp): Update.
6133 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6134 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6135 * mips-tdep.c (mips_gdbarch_init): Update.
6136 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6137 * ppc-linux-tdep.c: Update comment.
6138 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6139 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6140 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6141 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6142 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6143 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6144 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6145 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6146 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6147 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6148
6149 2004-03-23 Andrew Cagney <cagney@redhat.com>
6150
6151 * tramp-frame.h, tramp-frame.h: New files.
6152 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6153 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6154
6155 * Makefile.in: Update all dependencies.
6156
6157 2004-03-23 Andrew Cagney <cagney@redhat.com>
6158
6159 * Makefile.in (trad_frame_h): Add $(frame_h).
6160 * trad-frame.h: Update copyright. Include "frame.h".
6161 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6162 (trad_frame_set_id, trad_frame_get_id): Declare.
6163 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6164 * trad-frame.c: Update copyright.
6165 (struct trad_frame_cache): Define.
6166 (trad_frame_cache_zalloc): New function.
6167 (trad_frame_set_id, trad_frame_get_id): New functions.
6168 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6169
6170 2004-03-22 Andrew Cagney <cagney@redhat.com>
6171
6172 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6173 s390_pltstub_unwind_cache.
6174 (s390_stub_frame_unwind_cache): Rename
6175 s390_pltstub_frame_unwind_cache.
6176 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6177 (s390_stub_frame_prev_register): Rename
6178 s390_pltstub_frame_prev_register.
6179 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6180 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6181
6182 From Ulrich Weigand:
6183 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6184 pointer calls like PLT calls.
6185
6186 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6187
6188 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6189 PC rather than the partial function start address. Use the start
6190 address to sanity check the found PDR.
6191
6192 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6193
6194 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6195 linux_handle_extended_wait.
6196
6197 2004-03-22 Andrew Cagney <cagney@redhat.com>
6198
6199 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6200 function.
6201
6202 * frame.h (generic_pop_current_frame): Delete declaration.
6203 (deprecate_pop_dummy_frame): Deprecate
6204 generic_pop_dummy_frame.
6205 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6206 (generic_pop_current_frame): Delete function.
6207 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6208 generic_pop_current_frame.
6209 * v850-tdep.c (v850_pop_frame): Update.
6210 * mcore-tdep.c (mcore_pop_frame): Update.
6211 * sh64-tdep.c (sh64_pop_frame): Update.
6212 * h8300-tdep.c (h8300_pop_frame): Update.
6213
6214 2004-03-22 Andrew Cagney <cagney@redhat.com>
6215
6216 * frame.h (deprecated_pc_in_call_dummy): Rename
6217 generic_pc_in_call_dummy.
6218 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6219 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6220 generic_pc_in_call_dummy.
6221 (pc_in_dummy_frame): Make static.
6222 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6223 * gdbarch.h, gdbarch.c: Re-generate.
6224 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6225 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6226 (legacy_get_prev_frame): Ditto.
6227 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6228 comment.
6229
6230 2004-03-21 Andrew Cagney <cagney@redhat.com>
6231
6232 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6233 declaration and out-of-date comment.
6234 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6235 Delete function.
6236 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6237 deprecated_pc_in_call_dummy.
6238
6239 * infrun.c (handle_inferior_event): For non legacy frames, use the
6240 frame ID and frame type to identify a signal trampoline. Update
6241 comments.
6242
6243 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6244
6245 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6246 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6247
6248 2004-03-21 Andrew Cagney <cagney@redhat.com>
6249
6250 * frame-unwind.h: Update copyright.
6251 (struct frame_data): Add opaque declaration.
6252 (frame_sniffer_ftype): Declare.
6253 (struct frame_unwind): Add "unwind_data" and "sniffer".
6254 (frame_unwind_register_unwinder): Declare.
6255 (frame_unwind_find_by_frame): Add parameter "this_cache".
6256 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6257 (legacy_get_prev_frame, legacy_get_prev_frame)
6258 (get_frame_type): Pass the prologue_cache to
6259 frame_unwind_find_by_frame.
6260 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6261 "unwinder".
6262 (frame_unwind_register_unwinder): New function.
6263 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6264
6265 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6266
6267 * bcache.c (print_percentage): Use floating point to avoid
6268 incorrect results when portion*100 overflows.
6269
6270 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6271
6272 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6273 (ppc_linux_init_extra_frame_info)
6274 (ppc_linux_frameless_function_invocation)
6275 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6276 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6277 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6278 (rs6000_frame_chain): Delete declarations.
6279 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6280 (ppc_linux_init_extra_frame_info)
6281 (ppc_linux_frameless_function_invocation)
6282 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6283 (ppc_linux_init_abi): Remove registration of above deleted functions.
6284 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6285 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6286 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6287 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6288 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6289 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6290 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6291 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6292 frame management for all OSABIs.
6293
6294 2004-03-19 Andrew Cagney <cagney@redhat.com>
6295
6296 Committed by Kevin Buettner <kevinb@redhat.com>.
6297
6298 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6299 Update copyright.
6300 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6301 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6302 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6303 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6304 unwinders. #ifdef legacy frame code.
6305 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6306 "frame-base.h".
6307 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6308 (struct rs6000_frame_cache, rs6000_frame_cache)
6309 (rs6000_frame_this_id, rs6000_frame_prev_register)
6310 (rs6000_frame_sniffer, rs6000_frame_unwind)
6311 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6312 (rs6000_frame_base): Implement a traditional frame unwinder.
6313 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6314 frame unwinder.
6315
6316 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6317
6318 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6319 breakpoint address for watchpoints or the catch eventpoints.
6320 Add new paramter ``bptype''. Adjust all callers.
6321
6322 2004-03-19 Andrew Cagney <cagney@redhat.com>
6323
6324 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6325
6326 * PROBLEMS: Delete note that ARM does not use frame code, problem
6327 fixed.
6328
6329 2004-03-18 Andrew Cagney <cagney@redhat.com>
6330
6331 * stack.c (return_command): Delete code wrapped in #ifdef
6332 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6333
6334 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6335
6336 2004-03-18 Andrew Cagney <cagney@redhat.com>
6337
6338 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6339 DEPRECATED_IN_SIGTRAMP.
6340 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6341 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6342 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6343 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6344 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6345 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6346 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6347 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6348 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6349 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6350
6351 2004-03-18 Andrew Cagney <cagney@redhat.com>
6352
6353 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6354 (struct frame_base_table_entry): Define.
6355 (struct frame_base_table): Re-implement as a linked list.
6356 (frame_base_init): Re-implement.
6357 (frame_base_table): Delete function.
6358 (append_predicate): Delete function.
6359 (frame_base_append_sniffer): Update.
6360 (frame_base_set_default): Update.
6361 (frame_base_find_by_frame): Update.
6362 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6363 * Makefile.in (frame-base.o): Update dependencies.
6364
6365 2004-03-17 Andrew Cagney <cagney@redhat.com>
6366
6367 * frame.c (legacy_get_prev_frame): Pass correct frame to
6368 frame_unwind_find_by_frame.
6369
6370 2004-03-17 David Carlton <carlton@kealia.com>
6371
6372 * NEWS: Mention C++ nested types and namespaces
6373
6374 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6375
6376 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6377 and "Regressions since gdb 5.3.". Add known regressions since
6378 gdb 6.0.
6379
6380 2004-03-16 David Carlton <carlton@kealia.com>
6381
6382 * dwarf2read.c (process_structure_scope): Process children even
6383 when we're a declaration.
6384
6385 2004-03-16 Andrew Cagney <cagney@redhat.com>
6386
6387 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6388 * blockframe.c (find_pc_partial_function)
6389 (find_pc_sect_partial_function): Merge into a single
6390 find_pc_partial_function.
6391
6392 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6393
6394 * i386bsd-nat.c: s/regno/regnum/g.
6395 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6396 FP0_REGNUM.
6397 (store_inferior_registers): Likewise.
6398
6399 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6400
6401 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6402 of i387_fill_fsave.
6403 (store_inferior_registers): Call i387_collect_fsave and
6404 i387_collect_fxsave instead of i387_fill_fsave and
6405 i387_fill_fxsave.
6406
6407 2004-03-15 Andrew Cagney <cagney@redhat.com>
6408
6409 * Makefile.in (frame-unwind.o): Update dependencies.
6410 * frame-unwind.c: Include "gdb_obstack.h".
6411 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6412 parameter.
6413 (append_predicate): Delete function.
6414 (struct frame_unwind_table_entry): New structure.
6415 (struct frame_unwind_table): Replace "sniffer" with "head" and
6416 "tail".
6417 (frame_unwind_append_sniffer): Update.
6418 (frame_unwind_find_by_frame): Update.
6419 (_initialize_frame_unwind): Registe frame_unwind_init using
6420 gdbarch_data_register_pre_init.
6421
6422 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6423
6424 * i386bsd-nat.c: Update copyright year.
6425 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6426 define unconditionally.
6427
6428 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6429
6430 * i387-tdep.h (i387_collect_fsave): New prototype.
6431 * i387-tdep.c (i387_collect_fsave): New function containing most
6432 of the code from i387_fill_fsave.
6433 (i387_fill_fsave): Call i387_collect_fsave.
6434
6435 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6436
6437 * i386-linux-tdep.c: Update copyright year.
6438 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6439 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6440 svr4_ilp32_link_map_offsets instead of
6441 i386_linux_svr4_fetch_link_map_offsets.
6442
6443 2004-03-15 David Carlton <carlton@kealia.com>
6444
6445 Fix for PR c++/1553:
6446 * dwarf2read.c (read_structure_type): Determine type name by
6447 calling determine_class_name.
6448 (determine_class_name): New.
6449 (determine_prefix): Look at TYPE_TAG_NAME and call
6450 determine_class_name when appropriate.
6451 (determine_prefix_aux, class_name): Delete.
6452 (read_namespace): Set die->type.
6453
6454 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6455
6456 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6457 unused macro definition. The definition in target.h (or perhaps
6458 elsewhere) takes precedence.
6459
6460 2004-03-15 Andrew Cagney <cagney@redhat.com>
6461
6462 * ppc-tdep.h: Update copyright.
6463 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6464 function signatures to match "regsets.h".
6465 * ppc-linux-tdep.c: Include "regset.h".
6466 (ELF_GREGSET_SIZE): Delete.
6467 (right_supply_register): New function.
6468 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6469 using right_supply_register.
6470 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6471 functions.
6472 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6473 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6474 (_initialize_ppc_linux_tdep): Do not register
6475 ppc_linux_regset_core_fns.
6476 (ppc_linux_regset_from_core_section): Replace
6477 fetch_core_registers.
6478 (ppc_linux_regset_core_fns): Delete.
6479 * ppc-linux-nat.c: (right_fill_reg): New function.
6480 (supply_gregset): Update call to ppc_linux_supply_gregset.
6481 (fill_gregset): Clear the register set, use right_fill_reg.
6482 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
6483 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
6484
6485 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
6486 unsigned.
6487
6488 2004-03-15 Andrew Cagney <cagney@redhat.com>
6489
6490 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
6491 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
6492 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
6493 and register_gdbarch_data.
6494 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
6495 (struct gdbarch_data): Replace "init" by "pre_init" and
6496 "post_init".
6497 * gdbarch.h, gdbarch.c: Re-generate.
6498 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
6499 with"obstack", use OBSTACK_ZALLOC.
6500 (dwarf2_frame_ops): Delete.
6501 (dwarf2_frame_set_init_reg): Use gdbarch_data.
6502 (dwarf2_frame_init_reg): Use gdbarch_data.
6503 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
6504 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
6505 (_initialize_svr4_solib): Update.
6506 * user-regs.c (_initialize_user_regs): Update.
6507 * reggroups.c (_initialize_reggroup): Update.
6508 * regcache.c (_initialize_regcache): Update.
6509 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6510 * libunwind-frame.c (_initialize_libunwind_frame): Update.
6511 * gnu-v3-abi.c (init_gnuv3_ops): Update.
6512 * frame-unwind.c (_initialize_frame_unwind): Update.
6513 * frame-base.c (_initialize_frame_base): Update.
6514 * user-regs.c (user_reg_add): Update.
6515 * reggroups.c (reggroup_add): Update.
6516 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
6517 * libunwind-frame.c (libunwind_frame_set_descr): Update.
6518 * frame-unwind.c (frame_unwind_append_sniffer): Update.
6519 * frame-base.c (frame_base_table): Update.
6520 * remote.c (_initialize_remote): Update.
6521 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
6522
6523 2004-03-15 Andrew Cagney <cagney@redhat.com>
6524
6525 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
6526
6527 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6528
6529 * Makefile.in (frv-linux-tdep.o): Add dependencies.
6530 * frv-linux-tdep.c: New file.
6531 * frv-tdep.c (struct gdbarch_tdep): Add new field
6532 ``sigcontext_reg_addr''.
6533 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
6534 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6535 (frv_sigramp_frame_sniffer): New functions.
6536 (frv_sigtramp_frame_unwind): New static global.
6537 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
6538 sniffers.
6539 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
6540 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
6541
6542 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6543
6544 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
6545 but not via a call to error(), when unable to read memory.
6546
6547 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6548
6549 * frv-tdep.c (frv_call_dummy_words): Delete.
6550 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
6551
6552 2004-03-15 Andrew Cagney <cagney@redhat.com>
6553
6554 * infrun.c (handle_step_into_function, step_over_function): Only
6555 update and use STEP_FRAME_ID when the system is using legacy
6556 frames. Update comments.
6557
6558 2004-03-14 Mark Kettenis <kettenis@gnu.org>
6559
6560 * amd64-linux-tdep.h: Remove file.
6561 * amd64-linux-tdep.c: Don't include "inferior.h" and
6562 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
6563 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
6564 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
6565 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
6566 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
6567 macros.
6568 (user_to_gdb_regmap): Remove variable.
6569 (amd64_linux_gregset_reg_offset): New variable.
6570 (amd64_core_fns): Remove variable.
6571 (fetch_core_registers): Remove function.
6572 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
6573 functions.
6574 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
6575 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
6576 * Makefile.in (amd64_linux_tdep_h): Remove.
6577 (amd64-linux-nat.o): Update dependencies.
6578 (amd64-linux-tdep.o): Update dependencies.
6579
6580 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
6581 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
6582 functions.
6583 (fetch_inferior_registers, store_inferior_registers): Rewrite.
6584
6585 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
6586 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
6587
6588 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
6589
6590 * dwarf2read.c (read_structure_type): Rename from
6591 read_structure_scope. Don't create a symbol or call process_die.
6592 Return immediately if die->type is set. Call read_type_die before
6593 dwarf2_add_member_fn.
6594 (process_structure_scope): New function.
6595 (read_enumeration_type, process_enumeration_scope): New functions,
6596 broken out from read_enumeration. Don't create the enumeration
6597 type if it has already been created.
6598 (read_enumeration): Removed.
6599 (process_die): Call read_structure_type, process_structure_scope,
6600 read_enumeration_type, and process_enumeration_scope. Just call
6601 new_symbol for base and subrange types. Add a comment about other
6602 type dies.
6603 (read_type_die): Call read_enumeration_type.
6604 (add_partial_structure, new_symbol): Update comments.
6605
6606 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6607
6608 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
6609
6610 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6611
6612 * tui/tui-win.h (tui_get_cmd_list): Declare.
6613 * tui/tui-win.c (tui_command): New function.
6614 (tui_get_cmd_list): New function.
6615 (_initialize_tui_win): Moved initialization of tui command in
6616 tui_get_cmd_list.
6617
6618 * tui/tui-data.c (init_content_element): Setup new data members.
6619 (init_win_info): Likewise.
6620 (free_content_elements): Free it.
6621 * tui/tui-data.h (struct tui_data_element): Store the register
6622 content to print.
6623 (struct tui_data_info): Keep the current register group.
6624
6625 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
6626
6627 * tui/tui-regs.h (tui_show_registers): Update prototype.
6628 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
6629 (tui_resize_all): No need to calculate anything for register window.
6630 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
6631 (tui_set_register_element, tui_set_general_regs_content): Remove.
6632 (tui_set_special_regs_content): Remove.
6633 (tui_set_general_and_special_regs_content): Remove.
6634 (tui_set_float_regs_content): Remove.
6635 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
6636 (tui_set_regs_content): Remove.
6637 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
6638 (tui_v_show_registers_command_support): Remove.
6639 (tui_show_registers): Use a reggroup to specify the registers to show.
6640 (tui_show_register_group): New function.
6641 (tui_display_registers_from): Compute the layout of register window
6642 and refresh with new API; be sure to delete old register windows.
6643 (tui_check_register_values): Update to use tui_get_register and
6644 tui_display_data.
6645 (tui_display_register): Just refresh the register window part.
6646 (tui_register_format): Format registers and save in tui_data_element.
6647 (tui_get_register): New to combine tui_reg_value_has_changed and
6648 tui_get_register_raw_value; fix to use the new gdb API.
6649 (tui_show_float_command): Renamed tui_reg_float_command.
6650 (tui_show_general_command): Renamed tui_reg_general_command.
6651 (tui_show_special_command): Renamed tui_reg_system_command.
6652 (_initialize_tui_regs): Remove unused commands.
6653
6654 2004-03-13 Mark Kettenis <kettenis@gnu.org>
6655
6656 * NEWS (New native configurations): Mention OpenBSD/amd64.
6657
6658 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
6659 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
6660 Remove defines.
6661 * config/i386/nm-fbsd64.h: Likewise.
6662 * config/i386/nm-obsd.h: Likewise.
6663 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
6664 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
6665
6666 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6667
6668 * frv-tdep.c (set_variant_scratch_registers): New function.
6669 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
6670 New constants.
6671
6672 From Richard Sandiford <rsandifo@redhat.com>:
6673 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
6674
6675 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6676
6677 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
6678 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
6679 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
6680 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
6681 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
6682 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
6683 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
6684 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
6685 definitions from frv-tdep.c to frv-tdep.h.
6686
6687 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6688
6689 Add shared library support for FR-V FDPIC ABI:
6690 * Makefile.in (solib-frv.o): Add dependencies.
6691 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
6692 New functions.
6693 (frv_push_dummy_call): Add support for FDPIC ABI.
6694 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
6695 for FDPIC ABI.
6696 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
6697 (frv_fdpic_find_canonical_descriptor): Declare.
6698 * solib-frv.c: New file.
6699 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
6700 * config/frv/tm-frv.h (solib.h): Include.
6701
6702 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6703
6704 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
6705 (frv-tdep.o): Update dependencies.
6706 * frv-tdep.h: New file.
6707 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
6708 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
6709 constants.
6710 (struct gdbarch_tdep): Add new member ``frv_abi''.
6711 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
6712 functions.
6713 (new_variant): Set ``frv_abi'' field.
6714 (gdb_arch_init): Detect FDPIC executables.
6715
6716 2004-03-12 Mark Kettenis <kettenis@gnu.org>
6717
6718 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
6719 wrapper.
6720
6721 2004-03-11 Andrew Cagney <cagney@redhat.com>
6722
6723 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
6724
6725 2004-03-11 Kevin Buettner <kevinb@redhat.com>
6726
6727 * solist.h (master_so_list): New function.
6728 * solib.c (master_so_list): Likewise.
6729 * solib-svr4.c (enable_break): Iterate over so_list entries
6730 obtained from master list instead of entries obtained directly
6731 via svr4_current_sos().
6732
6733 2004-03-10 Ben Elliston <bje@gnu.org>
6734
6735 * MAINTAINERS: Update my mail address.
6736
6737 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
6738
6739 * remote-m32r-sdi.c: Support hardware watchpoint.
6740
6741 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6742
6743 * user-regs.c: Update copyright years.
6744 (struct user_regs): Rename to gdb_user_regs.
6745 (append_user_reg, builtin_user_regs, user_regs_init)
6746 (user_reg_add, user_reg_map_name_to_regnum)
6747 (usernum_to_user_reg): Update.
6748
6749 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6750
6751 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
6752 (skip_children): New functions.
6753 (locate_pdi_sibling): Call skip_children.
6754
6755 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6756
6757 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
6758 * gdbtypes.c (check_typedef): Update comments.
6759
6760 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6761
6762 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
6763 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
6764 pointer. Update comment about comp_unit_head.
6765 (struct abbrev_info): Shorten two int flags.
6766 (dwarf_alloc_abbrev): Take a CU argument.
6767 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
6768 each time through the loop. Update cleanup argument.
6769 (psymtab_to_symtab_1): Update cleanup call.
6770 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
6771 abbrev_obstack.
6772 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
6773 Just call obstack_free and clear the pointer.
6774
6775 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6776
6777 * infrun.c (handle_inferior_event): Remove short-circuit code for
6778 events in a different thread.
6779
6780 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6781
6782 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
6783 print the whole transfer.
6784 (initialize_targets): Update description of "set debug target".
6785
6786 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6787
6788 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
6789
6790 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
6791
6792 * MAINTAINERS (write after approval): Add myself.
6793
6794 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
6795
6796 * sh-tdep.c (sh_print_registers_info): Use for loop.
6797 Don't skip multiple registers when a float register is encountered.
6798
6799 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
6800
6801 Fix PR tdep/1291.
6802 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
6803 to official SH documentation.
6804
6805 2004-03-07 Andrew Cagney <cagney@redhat.com>
6806
6807 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
6808 unused function.
6809
6810 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
6811
6812 * arm-tdep.c (thumb_get_next_pc): Handle BX.
6813 (arm_get_next_pc): Handle BX and BLX.
6814
6815 2004-03-07 Andrew Cagney <cagney@redhat.com>
6816
6817 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
6818 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
6819 HPPA_SP_REGNUM.
6820 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
6821 (hppa_target_read_fp): Delete.
6822 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
6823 register_virtual_size, max_register_raw_size,
6824 max_register_virtual_size, register_byte, register_size,
6825 target_read_fp, fp_regnum, and register_bytes. Set register_type
6826 instead of register_virtual_type.
6827 (hppa32_register_type, hppa64_register_type): Replace
6828 hppa32_register_virtual_type and hppa64_register_virtual_type.
6829 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
6830 (HPPA_FP_REGNUM): Define.
6831
6832 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
6833
6834 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
6835 (pa_do_registers_info): Delete.
6836 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
6837 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
6838 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
6839
6840 * infcall.c (legacy_push_dummy_code): Delete #ifdef
6841 GDB_TARGET_IS_HPPA code.
6842 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
6843 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
6844 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
6845 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
6846 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
6847 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
6848 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
6849 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
6850 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
6851 (hppa_frameless_function_invocation, hppa64_store_return_value)
6852 (hppa_store_struct_return, hppa64_extract_return_value)
6853 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
6854 (hppa32_call_dummy_length, hppa64_call_dummy_length)
6855 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
6856 (find_proc_framesize, deposit_21, restore_pc_queue)
6857 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
6858 (rp_saved, pc_in_linker_stub): Delete.
6859
6860 Unconditionally enable 64-bit frame and ABI code.
6861 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
6862 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
6863 push_dummy_frame, fix_call_dummy, push_arguments,
6864 call_dummy_location, extract_return_value, use_struct_convention,
6865 store_return_value, store_struct_return, saved_pc_after_call,
6866 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
6867 frame_chain, frame_chain_valid, frameless_function_invocation,
6868 frame_saved_pc, and pop_frame.
6869
6870 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
6871 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
6872 (hppa_gdbarch_init): Do not set PC_REGNUM.
6873
6874 2004-03-06 Mark Kettenis <kettenis@gnu.org>
6875
6876 * config/alpha/tm-fbsd.h: Remove file.
6877 * config/alpha/fbsd.mt: Tweak comment.
6878 (TM_FILE): Set to tm-alpha.h.
6879
6880 2004-03-05 Andrew Cagney <cagney@redhat.com>
6881
6882 * infrun.c (step_over_function): When non-legacy code, and no
6883 step_frame_id, use the unwinder to get the caller's frame ID.
6884
6885 2004-03-05 Mark Kettenis <kettenis@gnu.org>
6886
6887 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
6888 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
6889 bfd_arch_unknown. Adjust comment.
6890
6891 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
6892 * i386obsd-tdep.c: Correct spelling in comment.
6893 * i386nbsd-tdep.c: Correct spelling in comment.
6894 * sparc-tdep.c: Correct spelling in comments.
6895
6896 2004-03-05 David Carlton <carlton@kealia.com>
6897
6898 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
6899 bug.
6900
6901 2004-03-05 Mark Kettenis <kettenis@gnu.org>
6902
6903 * sparc-tdep.c: Fix typo in comment.
6904
6905 2004-03-04 J. Brobecker <brobecker@gnat.com>
6906
6907 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
6908
6909 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
6910
6911 * dwarf2read.c: Add comment describing memory lifetimes.
6912 (struct dwarf2_pinfo): Update comment.
6913 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
6914 (read_enumeration, new_symbol): Don't use obsavestring.
6915
6916 2004-03-04 Mark Kettenis <kettenis@gnu.org>
6917
6918 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
6919 instead of amd64_fill_fxsave.
6920 * amd64bsd-nat.c (store_inferior_registers): Likewise.
6921 * amd64fbsd-nat.c (fill_fpregset): Likewise.
6922
6923 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
6924 Reorganize code a bit.
6925
6926 2004-03-04 Orjan Friberg <orjanf@axis.com>
6927
6928 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
6929 when the frame pointer is pushed. Don't set the frame pointer's
6930 address on the stack unless it's actually located there.
6931 Set the SRP's address on the stack correctly when the PC is still in
6932 the prologue.
6933 (cris_return_value): New function.
6934 (cris_gdbarch_init): Clear deprecated store_return_value,
6935 extract_return_value.
6936
6937 2004-03-02 Jim Blandy <jimb@redhat.com>
6938
6939 * stabsread.c (reg_value_complaint): The maximum register number
6940 is one less than the number of registers.
6941
6942 2004-03-02 Andrew Cagney <cagney@redhat.com>
6943
6944 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
6945 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
6946 trailing comma and redundant assignment of I386_ST0_REGNUM.
6947 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
6948 32-bit segment registers.
6949
6950 2004-03-01 Andrew Cagney <cagney@redhat.com>
6951
6952 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
6953 use frame_relative_level and get_next_frame.
6954
6955 2004-02-29 Andrew Cagney <cagney@redhat.com>
6956
6957 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
6958 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
6959 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
6960 Delete macro.
6961
6962 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
6963
6964 * inflow.c (terminal_inferior): Don't give up the terminal if we
6965 previously couldn't get the inferior's terminal state.
6966
6967 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
6968
6969 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
6970 PC_REGNUM.
6971
6972 2004-02-28 Andrew Cagney <cagney@redhat.com>
6973
6974 * NEWS: Refer to GDB 6.1.
6975 * README: Refer to GDB 6.1.
6976 * PROBLEMS: Refer to GDB 6.1.
6977
6978 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
6979
6980 * thread-db.c (disable_thread_signals): Remove unused function.
6981
6982 2004-02-28 Mark Kettenis <kettenis@gnu.org>
6983
6984 * amd64-nat.c: Include "gdb_string.h".
6985 (amd64_collect_native_gregset): Zero-extend the 32-bit
6986 general-purpose registers and %eip.
6987
6988 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
6989 * amd64-tdep.c (amd64_collect_fxsave): New function.
6990 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
6991
6992 * i387-tdep.h: Update copyright year.
6993 (i387_collect_fxsave): New prototype.
6994 * i387-tdep.c: Update copyright year.
6995 (i387_collect_fxsave): New function containing most of the code
6996 from i387_fill_fxsave.
6997 (i387_fill_fxsave): Call i387_collect_fxsave.
6998
6999 2004-02-28 Andrew Cagney <cagney@redhat.com>
7000
7001 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7002 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7003
7004 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7005
7006 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7007
7008 2004-02-28 Andrew Cagney <cagney@redhat.com>
7009
7010 * utils.c: Use "", instead of <>, to include readline.
7011 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7012 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7013 * source.c, solib.c, exec.c, event-top.c: Ditto.
7014 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7015 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7016 * Makefile.in: Update all dependencies.
7017 (readline_tilde_h, readline_history_h): Define.
7018 (readline_headers): Delete.
7019
7020 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7021
7022 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7023 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7024 "config/i386/tm-lx64.h".
7025
7026 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7027 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7028 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7029
7030 2004-02-28 Andrew Cagney <cagney@redhat.com>
7031
7032 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7033
7034 * breakpoint.c (_initialize_breakpoint): Use
7035 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7036 Add help to show command.
7037
7038 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7039
7040 * i386-nat.c: Reformat to be closer to coding standards.
7041 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7042 `retval'. Make variables `align' and `size' local to while-loop.
7043 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7044 (_initialize_i386_nat): New prototype.
7045
7046 * tui/tui.c: Include <readline/readline.h> instead of
7047 "readline/readline.h". Include it after <term.h> and
7048 "gdb_curses.h".
7049
7050 2004-02-27 Andrew Cagney <cagney@redhat.com>
7051
7052 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7053 the new frame unwind code.
7054 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7055 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7056 PCOQ_HEAD_REGNUM.
7057
7058 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7059 "return_value" and "push_dummy_call".
7060 (hppa32_use_struct_convention): Delete unused function.
7061 (hppa32_store_return_value): Delete unused function.
7062 (hppa32_extract_return_value): Delete unused function.
7063 (hppa32_stack_align): Delete function.
7064
7065 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7066
7067 * coffread.c (enter_linenos): Don't let rawptr reference memory
7068 outside linetab[]'s limits.
7069
7070 2004-02-27 Andrew Cagney <cagney@redhat.com>
7071
7072 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7073 inferior stack space - the stack needs to grow upwards.
7074 (hppa32_frame_align): New function.
7075 (hppa64_frame_align): Replace hppa_frame_align.
7076 (hppa_gdbarch_init): Update.
7077
7078 2004-02-26 Orjan Friberg <orjanf@axis.com>
7079
7080 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7081 (dwarf2-frame.h): Include.
7082 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7083 Remove static variables related to ABI setting.
7084 (struct gdbarch_tdep): Remove cris_abi member.
7085 (struct frame_extra_info): Remove.
7086 (cris_unwind_cache, stack_item): New structs.
7087 (cris_frame_unwind, cris_frame_base): New variables.
7088 (push_stack_item, pop_stack_item)
7089 (cris_frame_unwind_cache, cris_frame_this_id)
7090 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7091 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7092 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7093 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7094 (cris_reg_struct_has_addr): New functions.
7095 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7096 (cris_frame_saved_pc, cris_saved_pc_after_call,
7097 (cris_store_struct_return, cris_frameless_function_invocation)
7098 (cris_pop_frame, cris_skip_prologue_main)
7099 (cris_abi_original_store_return_value)
7100 (cris_abi_v2_store_return_value)
7101 (cris_abi_original_extract_return_value)
7102 (cris_abi_v2_extract_return_value)
7103 (cris_abi_original_reg_struct_has_addr)
7104 (cris_abi_v2_reg_struct_has_addr)
7105 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7106 (cris_push_return_address, cris_abi_update): Remove.
7107 (_initialize_cris_tdep): Remove ABI command.
7108 (cris_dump_tdep): Ditto.
7109 (cris_gdbarch_init): Remove ABI command.
7110 Set store_return_value, extract_return_value, push_dummy_code,
7111 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7112 frame_unwind_append_sniffer, frame_base_set_default.
7113 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7114 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7115 sizeof_call_dummy_words, get_saved_register, push_return_address,
7116 pop_frame, store_struct_return, frame_init_saved_regs,
7117 init_extra_frame_info, frameless_function_invocation, frame_chain,
7118 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7119 dummy_write_sp.
7120
7121 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7122
7123 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7124 * valprint.c (print_hex_chars): Change from static to external.
7125 (print_char_chars): New function.
7126 * printcmd.c (print_scalar_formatted): For integer and enum types
7127 that are longer than LONGEST, perform processing via appropriate
7128 print_*_chars routines.
7129
7130 2004-02-26 Andrew Cagney <cagney@redhat.com>
7131
7132 * Makefile.in: Update dependencies.
7133 Changes from Ulrich Weigand,
7134 * s390-tdep.c: Include "dwarf2-frame.h".
7135 (s390_dwarf2_frame_init_reg): New function.
7136 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7137 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7138
7139 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7140
7141 * breakpoint.c (pending_break_support): New setting variable.
7142 (break_command_1): Account for pending_break_support setting
7143 when creating pending breakpoints.
7144 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7145 (_initialize_breakpoint): Add "set breakpoint pending" and
7146 "show breakpoint pending" commands.
7147
7148 2004-02-26 Andrew Cagney <cagney@redhat.com>
7149
7150 Fix PR i18n/1570.
7151 * charset.c (backslashable, backslashed, represented): Remove 'e'
7152 from list of escaped characters, not part of ISO-C.
7153
7154 2004-02-25 J. Brobecker <brobecker@gnat.com>
7155
7156 From Peter Schauer <schauer@pdf.de>:
7157 * tui/tui.c: Move system header includes after local includes.
7158 Fixes a build failure on solaris systems.
7159
7160 2004-02-25 J. Brobecker <brobecker@gnat.com>
7161
7162 * configure.in: Refine the previous change.
7163 * configure: Regenerate.
7164
7165 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7166
7167 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7168 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7169 "amd64-tdep.h" instead of "x86-64-tdep.h".
7170 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7171 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7172 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7173 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7174 and "x86-64-tdep.c".
7175 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7176 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7177 and "x86-64-tdep.c".
7178 * amd64bsd-nat.c: Update copyright year.
7179 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7180 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7181 "x86-64-tdep.h".
7182 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7183 "x86-64-tdep.h".
7184 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7185 "x86-64-tdep.h".
7186 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7187 "x86-64-tdep.h".
7188 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7189 "x86-64-tdep.h".
7190 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7191 "x86-64-tdep.h".
7192 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7193 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7194 * Makefile.in (amd64_linux_tdep_h): Renamed from
7195 x86_64_linux_tdep_h.
7196 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7197 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7198 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7199 (amd64obsd-tdep.o): Update dependencies.
7200 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7201 dependencies.
7202 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7203 dependencies.
7204 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7205 amd64-linux-nat.c amd64-linux-tdep.c.
7206 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7207 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7208 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7209 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7210 amd64-tdep.o and amd64-linux-tdep.o.
7211 (TM_FILE): Set to tm-linux64.h.
7212 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7213 (NAT_FILE): Set to nm-linux64.h.
7214 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7215 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7216 amd64-tdep.o.
7217 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7218 amd64-tdep.o.
7219 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7220 amd64-tdep.o.
7221
7222 2004-02-25 Roland McGrath <roland@redhat.com>
7223
7224 * remote.c (remote_protocol_qPart_auxv): New variable.
7225 (init_all_packet_configs): Initialize it.
7226 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7227 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7228 (show_remote_cmd): Call it.
7229 (_initialize_remote): Initialize commands.
7230 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7231 service TARGET_OBJECT_AUXV requests.
7232
7233 2004-02-25 J. Brobecker <brobecker@gnat.com>
7234
7235 * configure.in: Make sure that the wborder function is available.
7236 Otherwise, search for it in the cur_colr library.
7237 * configure: Regenerate.
7238
7239 2004-02-25 Andrew Cagney <cagney@redhat.com>
7240
7241 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7242
7243 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7244
7245 * config/i386/tm-x86-64linux.h: Tweak comments.
7246
7247 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7248
7249 * MAINTAINERS: Add self to write-after-approval list.
7250
7251 2004-02-25 Andrew Cagney <cagney@redhat.com>
7252
7253 PR cli/1566. Problem found, and fix suggested by David Allan.
7254 * cli/cli-script.c (execute_control_command): Unconditionally
7255 install a cleanup. Default "ret" to "invalid_control". Use
7256 "break" instead of "return" to escape from the switch.
7257
7258 2004-02-24 J. Brobecker <brobecker@gnat.com>
7259
7260 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7261 with the lines macro defined in term.h on AiX.
7262 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7263 a collision with the label_width macro defined in term.h on AiX.
7264
7265 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7266
7267 Committed by Kevin Buettner <kevinb@redhat.com>.
7268
7269 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7270 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7271 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7272 instead of ia64_write_pc().
7273 * ia64-linux-tdep.c (regcache.h): Include.
7274 (ia64_linux_write_pc): New function.
7275
7276 2004-02-23 Roland McGrath <roland@redhat.com>
7277
7278 * auxv.c (info_auxv_command): Fix typos in error messages.
7279
7280 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7281
7282 * x86-64-tdep.h: Tweak comment.
7283 (enum amd64_regnum): New.
7284 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7285 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7286 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7287 (X86_64_XMM1_REGNUM): Removed.
7288 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7289 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7290 prototypes for renamed functions.
7291 * x86-64-tdep.c: Fix typo.
7292 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7293 register numbers.
7294 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7295 Use constants from `enum amd64_regnum' for register numbers.
7296 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7297 (amd64_analyze_prologue, amd64_frame_cache,
7298 amd64_sigtramp_frame_cache): Use constants from `enum
7299 amd64_regnum' for register numbers.
7300 (amd64_supply_fpregset): Adjust for renamed functions.
7301 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7302 `enum amd64_regnum' for register numbers.
7303 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7304 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7305 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7306 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7307 (amd64_linux_fill_gregset): Adjust for renamed macros.
7308 (fetch_core_registers): Adjust for renamed functions.
7309 (amd64_linux_init_abi): Adjust for renamed functions.
7310 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7311 renamed functions.
7312 * amd64-nat.c: Adjust for renamed macros.
7313 * amd64bsd-nat.c (fetch_inferior_registers)
7314 (store_inferior_registers): Use constants from `enum amd64_regnum'
7315 for register numbers. Adjust for renamed variables.
7316 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7317 renamed variables.
7318 (_initialize_amd64fbsd_nat): Use constants from `enum
7319 amd64_regnum' for register numbers.
7320 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7321 `enum amd64_regnum' for register numbers.
7322 (amd64fbsd_init_abi): Adjust for renamed functions.
7323 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7324 `enum amd64_regnum' for register numbers.
7325 (amd64nbsd_init_abi): Adjust for renamed functions.
7326 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7327 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7328 `enum amd64_regnum' for register numbers.
7329 (amd64obsd_init_abi): Adjust for renamed functions.
7330 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7331
7332 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7333
7334 * breakpoint.c (print_one_breakpoint): Do not output spaces
7335 after printing <PENDING> for a pending breakpoint.
7336
7337 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7338
7339 * printcmd.c (print_scalar_formatted): Initialize val_long
7340 to remove compiler warning message.
7341
7342 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7343
7344 * defs.h (nquery, yquery): New prototypes.
7345 * breakpoint.c (break_command_1): Use new nquery interface.
7346 * utils.c (defaulted_query, nquery, yquery): New functions.
7347
7348 2004-02-23 Andrew Cagney <cagney@redhat.com>
7349
7350 * hppa-tdep.c (hppa_frame_align): New function.
7351 (hppa32_push_dummy_call): New function.
7352 (hppa64_push_dummy_call): New function.
7353 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7354 disabled.
7355
7356 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7357 FIX_CALL_DUMMY when push_dummy_call is available.
7358 (call_function_by_hand, push_dummy_code): Ditto.
7359
7360 2004-02-22 Andrew Cagney <cagney@redhat.com>
7361
7362 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7363 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7364 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7365 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7366 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7367 call_dummy_location to ON_STACK.
7368
7369 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7370
7371 * x86-64-linux-tdep.c: Tweak comment.
7372 (amd64_linux_supply_gregset): Renamed from
7373 x86_64_linux_supply_gresget.
7374 (amd64_linux_fill_gregset): Renamed from
7375 x86_64_linux_fill_gregset.
7376 (fetch_core_registers): Adjust for renamed functions.
7377 (amd64_core_fns): Renamed from x86_64_core_fns.
7378 (amd64_linux_sigtramp_start): Renamed from
7379 x86_64_linux_sigtramp_start.
7380 (amd64_linux_pc_in_sigtramp): Renamed from
7381 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7382 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7383 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7384 (amd64_linux_sigcontext_addr): Renamed from
7385 x86_64_linux_sigcontext_addr.
7386 (amd64_linux_sc_reg_offset): Renamed from
7387 x86_64_linux_sc_reg_offset.
7388 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7389 Adjust for renamed functions and variables.
7390 (_initialize_amd64_linux_tdep): Renamed from
7391 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7392 variables.
7393 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7394 Adjust for renamed functions.
7395
7396 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7397 from x86_64_linux_gregset64_reg_offset.
7398 (amd64_linux_gregset32_reg_offset): Rename from
7399 x86_64_linux_gregset64_reg_offset.
7400 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7401 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7402 (amd64_linux_dr_set_control): Renamed from
7403 x86_64_linux_dr_set_control. Adjust for renamed functions.
7404 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7405 Adjust for renamed functions.
7406 (amd64_linux_dr_reset_addr): Renamed from
7407 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7408 (amd64_linux_dr_get_status): Renamed from
7409 x86_64_linux_dr_get_status. Adjust for renamed functions.
7410 (_initialize_amd64_linux_nat): Renamed from
7411 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7412 functions.
7413 * config/i386/nm-x86-64linux.h: Update copyright year.
7414 Adjust for renamed functions.
7415
7416 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7417 amd64fbsd_sigtramp_start.
7418 (amd64fbsd_sigtramp_end_addr): Renamed from
7419 amd64fbsd_sigtramp_end.
7420 (amd64fbsd_init_abi): Adjust for renamed variables.
7421 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7422 variables.
7423 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7424 amd64fbsd_sigtramp_start.
7425 (amd64fbsd_sigtramp_end_addr): Renamed from
7426 amd64fbsd_sigtramp_end.
7427
7428 2004-02-22 Andrew Cagney <cagney@redhat.com>
7429
7430 * hppa-tdep.c (hppa32_return_value): New function.
7431 (hppa64_return_value): New function.
7432 (hppa_gdbarch_init): Set return_value; keep disabled.
7433
7434 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7435 struct-return and inferior function call methods.
7436
7437 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7438 "frame-base.h".
7439 (struct hppa_frame_cache): Define.
7440 (hppa_frame_cache, hppa_frame_this_id): New functions.
7441 (hppa_frame_prev_register): New function.
7442 (hppa_frame_unwind, hppa_frame_base): New variables.
7443 (hppa_frame_unwind_sniffer): New function.
7444 (hppa_frame_base_address, hppa_unwind_pc): New function.
7445 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7446 sniffer, and frame base sniffer; keep disabled.
7447 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7448 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7449
7450 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7451 to predicates for "seriously old code".
7452
7453 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7454 runtime if(0).
7455
7456 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7457 unsigned.
7458 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
7459
7460 * config/pa/tm-hppa.h: Update copyright.
7461 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7462 (deprecated_init_frame_pc_default): Delete declaration.
7463 (hppa_frame_init_saved_regs): Delete declaration.
7464 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7465 * hppa-tdep.c: Include "arch-utils.h".
7466 (hppa_gdbarch_init): Set deprecated init_frame_pc
7467 and deprecated frame_init_saved_regs.
7468 (hppa_frame_init_saved_regs): Make static.
7469
7470 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7471
7472 Remove old 386BSD support.
7473 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
7474 * configure.host: Remove i[34567]86-*-bsd*.
7475 * configure.tgt: Remove i[34567]86-*-bsd*.
7476 * i386b-nat.c: Removed.
7477 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
7478 (i386b-nat.o): Remove dependencies.
7479
7480 * config/i386/i386bsd.mh: Removed.
7481 * config/i386/i386bsd.mt: Removed.
7482 * config/i386/nm-i386bsd.h: Removed.
7483 * config/i386/tm-i386bsd.h: Removed.
7484 * config/i386/xm-i386bsd.h: Removed.
7485
7486 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
7487
7488 * amd64fbsd-tdep.c: Include "solib-svr4.h".
7489 (amd64fbsd_init_abi): Set link map offsets.
7490 * amd64nbsd-tdep.c: Include "slib-svr4.h".
7491 (amd64nbsd_init_abi): Set link map offsets.
7492 * amd64obsd-tdep.c: Include "solib-svr4.h".
7493 (amd64obsd_init_abi): Set link map offsets.
7494 * i386fbsd-tdep.c: Include "solib-svr4.h".
7495 (i386fbsd_init_abi): Set link map offsets.
7496 * i386nbsd-tdep.c: Include "solib-svr4.h".
7497 (i386nbsdelf_init_abi): Set link map offsets.
7498 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
7499 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
7500 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
7501 solib-legacy.o and core-aout.o. Reformat.
7502 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
7503 solib-svr4.o, solib-legacy.o. Reformat.
7504 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
7505 * config/i386/nbsdelf.mh: Reformat.
7506 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
7507 solib-svr4.o, solib-legacy.o and corelow.o.
7508 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
7509 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
7510 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
7511 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7512 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7513 (TM_FILE): Set to tm-fbsd.h.
7514 * config/i386/nbsd.mt (TDEPFILES): Reformat.
7515 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
7516 solib-svr4.o.
7517 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
7518 solib-svr4.o.
7519 (TM_FILE): Set to nm-nbsd.h.
7520 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
7521 Simplify shared library support. Don't include "elf/common.h".
7522 (SVR4_SHARED_LIBS): Don't define.
7523 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
7524 "solib.h".
7525 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
7526 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
7527 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
7528 Don't include "i386/tm-i386.h". Include "solib.h".
7529 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
7530 Don't include "i386/tm-i386.h".
7531 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
7532 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
7533 Include "i386/xm-i386.h".
7534 (HOST_LONG_DOUBLE_FORMAT): Remove.
7535
7536 Fix OpenBSD/i386 sigtramp recognition.
7537 * i386-tdep.h: Update copyright year.
7538 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
7539 (i386bsd_sigtramp_end): New prototypes.
7540 (i386fbsd_sigtramp_start_addr): Renamed from
7541 i386fbsd_sigtramp_start.
7542 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7543 (i386obsd_sigtramp_start_addr): Renamed from
7544 i386obsd_sigtramp_start.
7545 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7546 * i386bsd-tdep.c: Update copyright year.
7547 (i386bsd_pc_in_sigtramp): Make public.
7548 * i386fbsd-nat.c: Update copyright year.
7549 (_initialize_i386fbsd_nat): Adjust for renamed variables.
7550 * i386fbsd-tdep.c: Update copyright year.
7551 (i386fbsd_sigtramp_start_addr): Renamed from
7552 i386fbsd_sigtramp_start.
7553 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7554 (i386fbsdaout_init_abi): Adjust for renamed variables.
7555 * i386obsd-nat.c: Update copyright year.
7556 (_initialize_i386obsd_nat): Adjust for renamed variables.
7557 * i386obsd-tdep.c: Include "target.h".
7558 (i386obsd_page_size): New variable.
7559 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
7560 (i386obsd_sigtramp_end): New functions.
7561 (i386obsd_sigtramp_start_addr): Renamed from
7562 i386obsd_sigtramp_start.
7563 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7564 (i386obsd_init_abi): Adjust for renamed variables. Set
7565 pc_in_sigtramp, sigtramp_start and sigtramp_end.
7566 * Makefile.in (i386obsd-tdep.o): Update dependencies.
7567
7568 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
7569 trampoline change in OpenBSD kernel.
7570
7571 * amd64-nat.c: Update copyright year.
7572 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
7573 architecture from REGCACHE.
7574
7575 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
7576 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
7577
7578 2004-02-21 Mark Kettenis <kettenis@gnu.org>
7579
7580 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
7581 i[34567]86-*-openbsd3.[0-3].
7582 * config/i386/obsdaout.mh: New file.
7583
7584 * config/i386/obsd.mh (MH_FLAGS): Remove.
7585
7586 Fix PR build/1549.
7587 * i386obsd-tdep.c: Update copyright years. Include
7588 "solib-svr4.h".
7589 (i386obsd_init_abi): Don't set regset_from_core_section here.
7590 (i386obsd_aout_init_abi): New function. Set
7591 regset_from_core_section here.
7592 (i386obsd_elf_init_abi): New function.
7593 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
7594 * Makefile.in (i386obsd-tdep.o): Update dependecies.
7595 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7596 (TM_FILE): Set to tm-nbsd.h.
7597
7598 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
7599 solib-sunos.o.
7600
7601 * solib-svr4.h: Update copyright year.
7602 (svr4_ilp32_fetch_link_map_offsets)
7603 (svr4_lp64_fetch_link_map_offsets): New prototype.
7604 * solib-svr4.c: Update copyright year.
7605 (svr4_ilp32_fetch_link_map_offsets)
7606 (svr4_lp64_fetch_link_map_offsets): New function.
7607
7608 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
7609
7610 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
7611 to the partial symbol table.
7612
7613 2004-02-20 J. brobecker <brobecker@gnat.com>
7614
7615 * PROBLEMS: Add description of problem documented under gdb/1560.
7616
7617 2004-02-20 Mark Kettenis <kettenis@gnu.org>
7618
7619 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
7620 comments.
7621 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
7622 functions.
7623 (amd64obsd_init_abi): Reorder initializations. Use
7624 amd64obsd_r_reg_offset to initialize the general-purpose register
7625 set details. Set regset_from_core_section.
7626 (_initialize_amd64obsd_tdep): Rename from
7627 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
7628 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
7629 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
7630
7631 * NEWS (New native configurations): Mention OpenBSD/alpha.
7632 * configure.tgt: Add alpha*-*-openbsd*.
7633 * configure.host: Add alpha*-*-openbsd*.
7634 * alphanbsd-tdep.c: Update copyright year.
7635 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
7636
7637 2004-02-20 Andrew Cagney <cagney@redhat.com>
7638
7639 Fix PR tdep/1372.
7640 * configure.tgt: Delete target "none-*-*".
7641 * configure.host: Delete host "none-*-*".
7642 * config/none/none.mh: Delete file.
7643 * config/none/none.mt: Delete file.
7644 * config/none/xm-none.h: Delete file.
7645 * config/none/tm-none.h: Delete file.
7646 * config/none/nm-none.h: Delete file.
7647
7648 2004-02-19 Fred Fish <fnf@redhat.com>
7649
7650 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
7651 cache->uses_fp prior to setting it.
7652
7653 2004-02-19 Fred Fish <fnf@redhat.com>
7654
7655 Fix for PR breakpoint/1558.
7656 * sh-tdep.c (IS_JSR): New macro.
7657 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
7658
7659 2004-02-19 Jim Blandy <jimb@redhat.com>
7660
7661 * findvar.c (value_from_register): Doc fix.
7662
7663 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
7664
7665 * printcmd.c (print_scalar_formatted): Do not check for sizeof
7666 type being greater than sizeof of host's LONGEST. Always use
7667 unpack_long() unless format 'f' chosen.
7668
7669 2004-02-19 Joel Brobecker <brobecker@gnat.com>
7670
7671 Committed by Elena Zannoni <ezannoni@redhat.com>
7672
7673 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
7674 contains a symbol wich is the best, non-exact match for the given
7675 pc. Update comments.
7676
7677 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
7678
7679 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
7680 macro, which was part of the now removed Mach 3 port.
7681 * utils.c (request_quit): Ditto.
7682
7683 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7684
7685 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
7686 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
7687
7688 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7689
7690 Committed by Mark Kettenis <kettenis@gnu.org>.
7691
7692 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
7693 Define.
7694
7695 2004-02-18 Andrew Cagney <cagney@redhat.com>
7696
7697 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
7698 CONFIG_INSTALL and CONFIG_UNINSTALL.
7699 * configure: Re-generate.
7700 * interps.h (INTERP_TUI): Define.
7701 * Makefile.in: Update dependencies.
7702 (TUI): New macro.
7703 (tui-main.o): Specify dependencies.
7704 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
7705 * tui/tui-main.c: New file.
7706
7707 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7708
7709 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
7710 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
7711 dependencies.
7712 * configure.host: Add x86_64-*-openbsd*.
7713 * configure.tgt: Add x86_64-*-openbsd*.
7714 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
7715
7716 * tui/tui.c: Don't include <malloc.h>.
7717
7718 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
7719 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
7720 amd64nbsd-tdep.c.
7721
7722 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
7723 static. Remove extraneous whitespace.
7724 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
7725 static.
7726
7727 2004-02-17 Jim Blandy <jimb@redhat.com>
7728
7729 * findvar.c (value_from_register): Doc fix.
7730
7731 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7732
7733 Committed by Jim Blandy <jimb@redhat.com>.
7734
7735 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
7736 CORE_ADDR as type for selectors. Correct types for GNU run time
7737 message lookup function to use double indirection.
7738 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
7739 * objc-lang.h (lookup_child_selector): Adapt prototype.
7740
7741 * s390-nat.c (SUBOFF): New macro.
7742 (supply_gregset, fill_gregset): Use it to handle debugging
7743 of 32-bit exectuables running under a 64-bit kernel.
7744 * s390-tdep.c: Include "solib-svr4.h".
7745 (s390_svr4_fetch_link_map_offset): New function.
7746 (s390x_svr_fetch_link_map_offset): Likewise.
7747 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
7748 * Makefile.in (s390-tdep.o): Update dependencies.
7749
7750 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
7751 "frame-unwind.h".
7752 (s390_readinstruction): Reformat. Use read_memory_nobpt.
7753 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
7754 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
7755 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
7756 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
7757 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
7758 S390_SIGNAL_FRAMESIZE,
7759 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
7760 (struct frame_extra_info): Remove.
7761 (s390_memset_extra_info): Remove.
7762 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
7763 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
7764 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
7765 (is_rse): Renamed to ...
7766 (is_rsy): ... this. Support long displacements.
7767 (is_rxe): Renamed to ...
7768 (is_rxy): ... this. Support long displacements.
7769 (compute_x_addr): Support long displacements.
7770 (struct s390_prologue_data): New data type.
7771 (s390_on_stack): Change API to use struct s390_prologue_data.
7772 (s390_store): Reimplement.
7773 (s390_load): New function.
7774 (s390_get_signal_frame_info): Remove.
7775 (s390_get_frame_info): Remove, replace by ...
7776 (s390_analyze_prolog): ... this new function.
7777 (s390_check_function_end): Remove.
7778 (s390_function_start): Remove.
7779 (s390_frameless_function_invokation): Remove.
7780 (s390_is_sigreturn): Remove.
7781 (s390_init_frame_pc_first): Remove.
7782 (s390_init_frame_extra_info): Remove.
7783 (s390_frame_init_saved_regs): Remove.
7784 (s390_frame_saved_pc_nofix): Remove.
7785 (s390_frame_saved_pc): Remove.
7786 (s390_frame_chain): Remove.
7787 (s390_fp_regnum, s390_read_fp): Remove.
7788 (s390_pop_frame_regular, s390_pop_frame): Remove.
7789 (s390_saved_pc_after_call): Remove.
7790 (s390_skip_prologue): Reimplement.
7791 (s390_in_function_epilogue_p): Support long displacements.
7792 (struct s390_unwind_cache): New data structure.
7793 (s390_frame_unwind_cache): New function.
7794 (s390_prologue_frame_unwind_cache): Likewise.
7795 (s390_backchain_frame_unwind_cache): Likewise.
7796 (s390_frame_this_id, s390_frame_prev_register): Likewise.
7797 (s390_frame_unwind): Define.
7798 (s390_frame_sniffer): New function.
7799 (struct s390_pltstub_unwind_cache): New data structure.
7800 (s390_pltstub_frame_unwind_cache): New function.
7801 (s390_pltstub_frame_this_id): Likewise.
7802 (s390_pltstub_frame_prev_register): Likewise.
7803 (s390_pltstub_frame_unwind): Define.
7804 (s390_pltstub_frame_sniffer): New function.
7805 (struct s390_sigtramp_unwind_cache): New data structure.
7806 (s390_sigtramp_frame_unwind_cache): New function.
7807 (s390_sigtramp_frame_this_id): Likewise.
7808 (s390_sigtramp_frame_prev_register): Likewise.
7809 (s390_sigtramp_frame_unwind): Define.
7810 (s390_sigtramp_frame_sniffer): New function.
7811 (s390_frame_base_address, s390_local_base_address): New functions.
7812 (s390_frame_base): Define.
7813 (s390_unwind_pc, s390_unwind_sp): New function.
7814 (s390_push_dummy_call): Use new frame base location.
7815 (s390_unwind_dummy_id): Likewise.
7816 (s390_gdbarch_init): Remove calls to:
7817 set_gdbarch_frameless_function_invocation,
7818 set_gdbarch_deprecated_init_frame_pc,
7819 set_gdbarch_deprecated_frame_chain,
7820 set_gdbarch_deprecated_frame_init_saved_regs,
7821 set_gdbarch_deprecated_pop_frame,
7822 set_gdbarch_deprecated_init_extra_frame_info,
7823 set_gdbarch_deprecated_init_frame_pc_first,
7824 set_gdbarch_deprecated_target_read_fp,
7825 set_gdbarch_deprecated_frame_saved_pc,
7826 set_gdbarch_deprecated_saved_pc_after_call,
7827 set_gdbarch_deprecated_fp_regnum.
7828 Add calls to:
7829 set_gdbarch_in_solib_call_trampoline,
7830 frame_unwind_append_sniffer,
7831 frame_base_set_default,
7832 set_gdbarch_unwind_pc,
7833 set_gdbarch_unwind_sp.
7834 * Makefile.in (s390-tdep.o): Update dependencies.
7835
7836 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
7837 (S390_STACK_FRAME_OVERHEAD): Remove.
7838 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
7839 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
7840 (s390_promote_integer_argument): Remove.
7841 (s390_cannot_extract_struct_value_address): Remove.
7842 (s390_use_struct_convention, s390_store_struct_return): Remove.
7843 (s390_extract_return_value, s390_store_return_value): Remove.
7844 (s390_return_value_convention, s390_return_value): New functions.
7845 (is_float_singleton): Handle typedefs.
7846 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
7847 Remove, replace by ...
7848 (s390_function_arg_pass_by_reference, s390_function_arg_float,
7849 s390_function_arg_integer): ... these new functions.
7850 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
7851 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
7852 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
7853 Fill in tdep->abi.
7854 Remove calls to:
7855 set_gdbarch_deprecated_store_struct_return,
7856 set_gdbarch_deprecated_extract_return_value,
7857 set_gdbarch_deprecated_store_return_value,
7858 set_gdbarch_use_struct_convention,
7859 set_gdbarch_extract_struct_value_address,
7860 set_gdbarch_deprecated_pc_in_call_dummy,
7861 set_gdbarch_deprecated_push_arguments,
7862 set_gdbarch_deprecated_save_dummy_frame_tos,
7863 set_gdbarch_deprecated_push_return_address,
7864 set_gdbarch_deprecated_sizeof_call_dummy_words,
7865 set_gdbarch_deprecated_call_dummy_words,
7866 set_gdbarch_deprecated_dummy_write_sp.
7867 Add calls to:
7868 set_gdbarch_push_dummy_call,
7869 set_gdbarch_unwind_dummy_id,
7870 set_gdbarch_return_value.
7871
7872 * config/s390/nm-linux.h: Update comments.
7873 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
7874 (STOPPED_BY_WATCHPOINT): Redefine.
7875 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
7876 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
7877 (s390_stopped_by_watchpoint): Likewise.
7878 (watch_area_cnt): Remove.
7879 * s390-nat.c: Update comments.
7880 (watch_area): Remove typedef.
7881 Global replace watch_area by struct watch_area.
7882 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
7883 (s390_stopped_by_watchpoint): Remove pid argument,
7884 use s390_inferior_tid. Add short-cut for the no watchpoint case.
7885 (s390_fix_watch_points): Remove pid argument,
7886 use s390_inferior_tid. Recompute area spanned by watchpoints.
7887 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
7888 argument. Reimplement.
7889
7890 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
7891 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
7892 (FETCH_INFERIOR_REGISTERS): Define.
7893 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
7894 core-regset.o.
7895 * config/s390/s390x.mt: Remove.
7896 * config/s390/tm-s390.h: Remove.
7897 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
7898 (TARGET_ELF64): Remove.
7899 (SKIP_TRAMPOLINE_CODE): Do not undefine.
7900 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
7901 s390*-*-* case; always set gdb_target to s390.
7902 * regformats/reg-s390.dat: Remove control registers.
7903 * regformats/reg-s390x.dat: Likewise.
7904 * s390-tdep.h: New file.
7905 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
7906 Include "inferior.h" and "s390-tdep.h".
7907 Remove private definition of offsetof.
7908 (s390_register_u_addr): Remove.
7909 (regmap_gregset, regmap_fpregset): Define.
7910 (supply_gregset, fill_gregset): Reimplement.
7911 (supply_fpregset, fill_fpregset): Likewise.
7912 (s390_inferior_tid): New function.
7913 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
7914 (fetch_inferior_registers, store_inferior_registers): Likewise.
7915 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
7916 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
7917 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
7918 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
7919 (struct gdbarch_tdep): Define.
7920 (struct s390_register_info): Define.
7921 (s390_register_info): New variable.
7922 (s390_register_name): Reimplement.
7923 (s390_register_type): New function.
7924 (s390_register_raw_size, s390x_register_raw_size): Remove.
7925 (s390_cannot_fetch_register): Remove.
7926 (s390_register_byte): Remove.
7927 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
7928 (s390_dwarf_regmap): New variable.
7929 (s390_dwarf_reg_to_regnum): New function.
7930 (s390_stab_reg_to_regnum): Remove.
7931 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
7932 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
7933 (s390_convert_register_p): Likewise.
7934 (s390_register_to_value, s390_value_to_register): Likewise.
7935 (s390_register_reggroup_p): Likewise.
7936 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
7937 s390_gregset, s390x_gregset, s390_fpregset): New variables.
7938 (s390_supply_regset, s390_regset_from_core_section): New functions.
7939 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
7940 (S390_FPR_SIZE): Likewise.
7941 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
7942 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
7943 (S390_NUM_GPRS): Move here from tm-s390.h.
7944 (S390_NUM_FPRS): Likewise.
7945 (s390_in_function_epilogue_p): New function.
7946 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
7947 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
7948 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
7949 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
7950 Replace S390_FP_REGNUM by S390_SP_REGNUM.
7951 Remove calls to:
7952 set_gdbarch_deprecated_max_register_raw_size,
7953 set_gdbarch_deprecated_max_register_virtual_size,
7954 set_gdbarch_deprecated_register_byte,
7955 set_gdbarch_cannot_fetch_register,
7956 set_gdbarch_cannot_store_register,
7957 set_gdbarch_deprecated_register_size,
7958 set_gdbarch_deprecated_register_raw_size,
7959 set_gdbarch_deprecated_register_virtual_size,
7960 set_gdbarch_deprecated_register_virtual_type,
7961 set_gdbarch_deprecated_register_bytes.
7962 Add calls to:
7963 set_gdbarch_num_pseudo_regs,
7964 set_gdbarch_register_type,
7965 set_gdbarch_convert_register_p,
7966 set_gdbarch_register_to_value,
7967 set_gdbarch_value_to_register,
7968 set_gdbarch_register_reggroup_p,
7969 set_gdbarch_regset_from_core_section,
7970 set_gdbarch_pseudo_register_read,
7971 set_gdbarch_pseudo_register_write,
7972 set_gdbarch_in_function_epilogue_p.
7973 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
7974 (s390_tdep_h): New variable.
7975
7976 2004-02-17 Jim Blandy <jimb@redhat.com>
7977
7978 * findvar.c (value_from_register): If the type has no length, just
7979 return an acceptable value --- don't report an internal error.
7980
7981 * stabsread.c (read_type): If we find any type numbers that are
7982 forward references, complain if the references aren't resolved by
7983 the time we're finished reading.
7984 (cleanup_undefined_types): Make error message more appropriate for
7985 a complaint.
7986
7987 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
7988
7989 * Makefile.in (defs_h): Remove dependency on progress_h.
7990 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
7991 progress.h.
7992 * main.c (captured_main): Delete use of START_PROGRESS and
7993 END_PROGRESS.
7994
7995 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
7996
7997 * objfiles.c (terminate_minimal_symbol_table): Add back
7998 initialization of MSYMBOL_TYPE.
7999
8000 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8001
8002 Committed by Andrew Cagney.
8003 * Makefile.in (ia64_tdep_h): New macro.
8004 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8005 (ia64-tdep.o): Likewise.
8006 * ia64-tdep.h: New file.
8007 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8008 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8009 (ia64_aix_sigcontext_register_address): Likewise.
8010 (ia64_linux_getunwind_table): Delete declaration.
8011 * ia64-linux-tdep.c: Likewise.
8012
8013 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8014
8015 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8016 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8017 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8018
8019 2004-02-17 Andrew Cagney <cagney@redhat.com>
8020
8021 * symtab.c (skip_prologue_using_sal): New function.
8022 * symtab.h (skip_prologue_using_sal): Declare.
8023 * frv-tdep.c: Include "symtab.h".
8024 (skip_prologue_using_sal): Delete function.
8025 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8026 * rs6000-tdep.c (refine_prologue_limit): Mention
8027 skip_prologue_using_sal.
8028 * ia64-tdep.c (refine_prologue_limit): Ditto.
8029 * Makefile.in: Update dependencies.
8030
8031 2004-02-16 Andrew Cagney <cagney@redhat.com>
8032
8033 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8034 START_INFERIOR_TRAPS_EXPECTED.
8035 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8036 START_INFERIOR_TRAPS_EXPECTED.
8037 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8038 Delete macro.
8039 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8040 macro, moved to "nm-osf.h". Update copyright.
8041 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8042 update copyright.
8043
8044 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8045 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8046 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8047 frameless_look_for_prologue.
8048 * frame.h (legacy_frameless_look_for_prologue): Rename
8049 frameless_look_for_prologue.
8050 * gdbarch.h, gdbarch.c: Re-generate.
8051 * sh64-tdep.c (sh64_gdbarch_init): Update.
8052 * sh-tdep.c (sh_gdbarch_init): Update.
8053 * s390-tdep.c (s390_gdbarch_init): Update.
8054 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8055 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8056 * m68k-tdep.c (m68k_gdbarch_init): Update.
8057 (delta68_frame_args_address): Update.
8058 * m32r-tdep.c (m32r_gdbarch_init): Update.
8059 * hppa-tdep.c (hppa_gdbarch_init): Update.
8060 * h8300-tdep.c (h8300_gdbarch_init): Update.
8061 * frv-tdep.c (frv_gdbarch_init): Update.
8062 (frv_frameless_function_invocation): Update.
8063 * cris-tdep.c (cris_gdbarch_init): Update.
8064 (cris_frameless_function_invocation): Update.
8065 * avr-tdep.c (avr_gdbarch_init): Update.
8066 * arm-tdep.c (arm_gdbarch_init): Update.
8067 * stack.c (frame_info): Update, call predicate.
8068 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8069 * frame.c (legacy_get_prev_frame): Update, call predicate..
8070 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8071 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8072 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8073 invocation.
8074 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8075 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8076 * vax-tdep.c (vax_gdbarch_init): Ditto.
8077
8078 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8079 function.
8080
8081 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8082
8083 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8084 initializations.
8085
8086 2004-02-16 Andrew Cagney <cagney@redhat.com>
8087
8088 * tui/tui-windata.c: Include "gdb_string.h".
8089 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8090 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8091 * Makefile.in: Update dependencies.
8092
8093 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8094
8095 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8096 * infrun.c: Include "gdb_assert.h".
8097 (singlestep_ptid, saved_singlestep_ptid)
8098 (stepping_past_singlestep_breakpoint): New variables.
8099 (resume): Set singlestep_ptid. Check for singlestep thread
8100 hop.
8101 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8102 (handle_inferior_event): Handle singlestep thread hop.
8103
8104 2004-02-16 Andrew Cagney <cagney@redhat.com>
8105
8106 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8107 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8108 (dwarf2_frame_init_reg): Ditto.
8109
8110 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8111 suggested by Joshua Neuheisel
8112
8113 * configure.in: Always check for curses, including pdcurses.
8114 Warn, instead of error, when no curses are found. Enable TUI when
8115 curses is available.
8116 * configure: Re-generate.
8117
8118 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8119
8120 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8121 sh_sh4_register_convert_to_virtual.
8122 (sh_register_convert_to_raw): Rename from
8123 sh_sh4_register_convert_to_raw.
8124 (sh_pseudo_register_read): Accomodate above name change.
8125 (sh_pseudo_register_write): Ditto.
8126
8127 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8128
8129 * sh-tdep.c (sh_generic_register_name): Remove.
8130 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8131
8132 2004-02-15 Andrew Cagney <cagney@redhat.com>
8133
8134 * configure.in (build_warnings): Add -Wunused-function.
8135 * configure: Re-generate.
8136
8137 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8138 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8139
8140 * procfs.c (procfs_init_inferior): Assume that
8141 START_INFERIOR_TRAPS_EXPECTED is defined.
8142 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8143 * config/ns32k/tm-nbsd.h: Delete file,
8144 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8145
8146 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8147 * config/vax/tm-vax.h: Delete file.
8148
8149 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8150 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8151 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8152 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8153 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8154 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8155 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8156
8157 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8158
8159 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8160 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8161 (struct dwarf2_frame_ops): New.
8162 (dwarf2_frame_default_init_reg): New function, based on
8163 dwarf2_frame_init_reg.
8164 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8165 (dwarf2_frame_init_reg): Call architecture-specific function.
8166 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8167 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8168 instead of dwarf2_frame_data.
8169 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8170 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8171
8172 2004-02-15 Andrew Cagney <cagney@redhat.com>
8173
8174 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8175 register_gdbarch_swap.
8176 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8177 * f-lang.c (_initialize_f_language): Update, use
8178 DEPRECATED_REGISTER_GDBARCH_SWAP.
8179 * remote.c (_initialize_remote): Ditto.
8180 * regcache.c (_initialize_regcache): Ditto.
8181 * parse.c (_initialize_parse): Ditto.
8182 * infrun.c (_initialize_infrun): Ditto.
8183 * mi/mi-main.c (_initialize_mi_main): Ditto.
8184 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8185
8186 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8187 poking .cacheable directly.
8188 * symfile.c (symfile_bfd_open): Ditto.
8189
8190 * Makefile.in: Update all dependencies.
8191
8192 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8193 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8194 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8195 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8196 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8197
8198 2004-02-14 Andrew Cagney <cagney@redhat.com>
8199
8200 * arch-utils.c (legacy_convert_register_p): Check
8201 DEPRECATED_REGISTER_CONVERTIBLE_P.
8202 * findvar.c (value_of_register): Ditto.
8203
8204 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8205 * gdbarch.h, gdbarch.c: Re-generate.
8206 * arch-utils.c (deprecated_register_convertible_not): Delete.
8207 * arch-utils.h (deprecated_register_convertible_not): Delete.
8208 * mi/mi-main.c (get_register): Update. Update copyright.
8209 * infcmd.c (default_print_registers_info): Update.
8210
8211 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8212 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8213 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8214 * gdbarch.h, gdbarch.c: Re-generate.
8215 * frame.c (deprecated_get_next_frame_hack): Delete function.
8216 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8217 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8218 Update.
8219 * infcall.c (call_function_by_hand): Update.
8220
8221 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8222
8223 * symfile.c (init_entry_point_info, entry_point_address): Move
8224 from here...
8225 * objfiles.c (init_entry_point_info, entry_point_address):..to
8226 here.
8227 * symfile.h (init_entry_point_info, entry_point_address): Remove
8228 prototypes.
8229 * objfiles.h (init_entry_point_info, entry_point_address):Add
8230 prototypes.
8231 * cris-tdep.c: Remove include of symfile.h. Add include of
8232 objfiles.h.
8233 * infcall.c: Ditto.
8234 * mcore-tdep.c: Ditto.
8235 * mn10300-tdep.c: Ditto.
8236 * sh64-tdep.c: Ditto.
8237 * v850-tdep.c: Ditto.
8238 * arm-tdep.c: Remove include of symfile.h.
8239 * blockframe.c: Ditto.
8240 * coffread.c: Ditto.
8241 * dbxread.c: Ditto.
8242 * dwarf2read.c: Ditto.
8243 * dwarfread.c: Ditto.
8244 * frv-tdep.c: Ditto.
8245 * ia64-tdep.c: Ditto.
8246 * mdebugread.c: Ditto.
8247 * mipsread.c: Ditto.
8248 * rs6000-tdep.c: Ditto.
8249 * s390-tdep.c: Ditto.
8250 * sh-tdep.c: Ditto.
8251 * xstormy16-tdep.c: Ditto.
8252 * gdbarch.sh: Remove include of symfile.h.
8253 * gdbarch.c: Regenerate.
8254 * solib-irix.c (enable_break): Use entry_point_address().
8255 Add comment about include file.
8256 * xcoffread.c: Add comment about include file.
8257 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8258 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8259 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8260 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8261 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8262
8263 2004-02-13 Andrew Cagney <cagney@redhat.com>
8264
8265 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8266 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8267 copyright.
8268 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8269
8270 2004-02-12 Fred Fish <fnf@redhat.com>
8271
8272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8273 set_gdbarch_store_return_value.
8274
8275 2004-02-12 Andrew Cagney <cagney@redhat.com>
8276
8277 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8278 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8279 (interrupt_query): Ditto.
8280 (ofunc): Delete unused variable.
8281 * cris-tdep.c (cris_abi): Delete unused function.
8282 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8283 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8284 (cris_get_asr_quick_shift_steps): Ditto.
8285 (cris_skip_prologue_frameless_p): Ditto.
8286 * arm-tdep.c (arm_push_return_address): Delete unused function.
8287 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8288 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8289 * s390-tdep.c (s390_function_start): Delete unused function.
8290
8291 2004-02-12 Andrew Cagney <cagney@redhat.com>
8292
8293 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8294 gdbarch.h, gdbarch.c: Re-generate.
8295 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8296 to generic_prologue_frameless_p.
8297 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8298 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8299
8300 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8301
8302 * mips-linux-tdep.c: Include "frame.h".
8303 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8304 (mips_linux_skip_resolver): New functions.
8305 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8306 and set_gdbarch_in_solib_call_trampoline.
8307 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8308 to after set_gdbarch_in_solib_return_trampoline. Only set the
8309 solib hooks to mips16 functions if the OS ABI is unknown.
8310 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8311 including "config/tm-linux.h".
8312 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8313 * Makefile.in (mips-linux-tdep.o): Update.
8314
8315 2004-02-11 David Carlton <carlton@kealia.com>
8316
8317 * linespec.c (decode_compound): Only look for a class symbol when
8318 considering all but the rightmost component.
8319
8320 2004-02-11 Andrew Cagney <cagney@redhat.com>
8321
8322 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8323 abi code are are separatly grouped.
8324
8325 2004-02-11 Andrew Cagney <cagney@redhat.com>
8326
8327 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8328 * gdbarch.h, gdbarch.c: Re-generate.
8329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8330 * v850-tdep.c (v850_gdbarch_init): Update.
8331 * sh64-tdep.c (sh64_gdbarch_init): Update.
8332 * sh-tdep.c (sh_gdbarch_init): Update.
8333 * s390-tdep.c (s390_gdbarch_init): Update.
8334 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8335 * mips-tdep.c (mips_gdbarch_init): Update.
8336 * mcore-tdep.c (mcore_gdbarch_init): Update.
8337 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8338 * m32r-tdep.c (m32r_gdbarch_init): Update.
8339 * ia64-tdep.c (ia64_gdbarch_init): Update.
8340 * hppa-tdep.c (hppa_gdbarch_init): Update.
8341 * h8300-tdep.c (h8300_gdbarch_init): Update.
8342 * frv-tdep.c (frv_gdbarch_init): Update.
8343 * d10v-tdep.c (d10v_gdbarch_init): Update.
8344 * cris-tdep.c (cris_gdbarch_init): Update.
8345 * avr-tdep.c (avr_gdbarch_init): Update.
8346 * arm-tdep.c (arm_gdbarch_init): Update.
8347 * alpha-tdep.c (alpha_gdbarch_init): Update.
8348
8349 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8350
8351 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8352 comma.
8353 (sh_sh4al_dsp_register_name): Ditto.
8354
8355 2004-02-10 Andrew Cagney <cagney@redhat.com>
8356
8357 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8358 (mips_init_frame_pc_first): Delete function.
8359 (mips_frame_saved_pc): Delete function.
8360 (mips_frame_chain): Delete function.
8361 (mips_init_extra_frame_info): Delete function.
8362 (mips_xfer_register): Delete unused variable "reg".
8363 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8364 (mips_n32n64_return_value): Delete unused variable "reg".
8365 (mips_n32n64_return_value): Delete unused variable "pos".
8366 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8367 (mips_o32_return_value): Delete unused variable "pos".
8368 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8369 (mips_print_fp_register): Delete unused variable "namelen"
8370 (mips_print_fp_register): Delete unused variable "flt2"
8371 (get_frame_pointer): Delete function.
8372 (cached_proc_desc): Delete static variable.
8373 (mips_pop_frame): Delete function.
8374 (mips_find_saved_regs): Delete function.
8375 (mips_get_saved_register): Delete function.
8376 (mips_saved_pc_after_call): Delete function.
8377 (SIGFRAME_BASE): Delete macro.
8378 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8379 (SIGFRAME_PC_OFF): Delete macro.
8380 (SIGFRAME_REGSAVE_OFF): Delete macro.
8381 (mips_dump_tdep): Do not print deleted macro definitions.
8382
8383 2004-02-10 Andrew Cagney <cagney@redhat.com>
8384
8385 * Makefile.in (SFILES): Remove explictly listed tui files.
8386 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8387
8388 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8389
8390 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8391 to use paddr functions to format ia64 addresses and long values.
8392 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8393 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8394 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8395 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8396 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8397
8398 2004-02-10 Andrew Cagney <cagney@redhat.com>
8399
8400 * defs.h: Do not include "tui.h".
8401 * gdb_curses.h: New file.
8402 * tui/tui-hooks.h: New file.
8403 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8404 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8405 (tui_initialize_io): Delete declaration.
8406 (tui_initialize_readline: Delete redundant declaration.
8407 (struct tui_point): Delete definition.
8408 * tui/tui-data.h (struct tui_point): Define.
8409 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8410 * utils.c: Include "tui/tui.h".
8411 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8412 * printcmd.c [TUI]: Include "tui/tui.h".
8413 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8414 * tui/tui-command.c: Include "gdb_curses.h".
8415 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8416 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8417 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8418 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8419 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8420 * Makefile.in: Update all dependencies.
8421 (tui_hooks_h, gdb_curses_h): Define.
8422 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8423
8424 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
8425
8426 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8427 auxf2. Add comments about some other rarely used fields.
8428
8429 2004-02-10 Andrew Cagney <cagney@redhat.com>
8430
8431 * Makefile.in (init.c): Fix script removing duplicates. Problem
8432 reported by Peter Schauer.
8433
8434 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8435
8436 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8437 obstack_specify_allocation.
8438 * objfiles.c (allocate_objfile): Ditto.
8439 * solib-sunos.c (solib_add_common_symbols)
8440 (allocate_rt_common_objfile): Ditto.
8441 * symfile.c (reread_symbols): Ditto.
8442 * gdb_obstack.h: Add comment.
8443
8444 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8445
8446 * linespec.c (decode_line_1, locate_first_half)
8447 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8448 commented out code.
8449
8450 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
8451
8452 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8453 obstack_free.
8454
8455 2004-02-09 Andrew Cagney <cagney@redhat.com>
8456
8457 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8458 fails, try find_pc_section. Fix PR c++/1267.
8459 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8460 instead of find_pc_mapped_section.
8461 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8462 not default to the section containing PC. Fix PR symtab/1519.
8463
8464 2004-02-09 Andrew Cagney <cagney@redhat.com>
8465
8466 * Makefile.in (mips-tdep.o): Update dependencies.
8467 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8468 "trad-frame.h".
8469 (mips_unwind_pc): Return the pseudo PC register.
8470 (mips_unwind_dummy_id): New function.
8471 (mips16_fetch_instruction): New function.
8472 (mips32_fetch_instruction): New function.
8473 (struct mips_frame_cache): Define.
8474 (mips_mdebug_frame_cache): New function.
8475 (mips_mdebug_frame_this_id): New function.
8476 (mips_mdebug_frame_prev_register): New function.
8477 (mips_mdebug_frame_unwind): Define.
8478 (mips_mdebug_frame_sniffer): New function.
8479 (mips_mdebug_frame_base_address): New function.
8480 (mips_mdebug_frame_base): Define.
8481 (mips_mdebug_frame_base_sniffer): New function.
8482 (mips_gdbarch_init): Append unwind and base sniffers. Set
8483 unwind_dummy_id.
8484
8485 2004-02-08 Andrew Cagney <cagney@redhat.com>
8486
8487 * frame.c: Print both the register number and name.
8488
8489 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
8490 and a sed into a single sed. Make .c and .o patterns more robust.
8491 (OBS): Delete.
8492 (INIT_FILES): Replace OBS with COMMON_OBS.
8493 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
8494
8495 2004-02-08 Mark Kettenis <kettenis@gnu.org>
8496
8497 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
8498 the PT_WCOOKIE request.
8499
8500 2004-02-08 Andrew Cagney <cagney@redhat.com>
8501
8502 * mips-tdep.c (mips_unwind_pc): New function.
8503 (mips_gdbarch_init): Set mips_unwind_pc.
8504
8505 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
8506 (get_frame_id): Allow the UNKNOWN_FRAME.
8507 (frame_register_unwind, get_frame_type): Ditto.
8508
8509 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
8510 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
8511 unwind_dummy_id indicates a legacy frame.
8512
8513 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
8514 * configure: Re-generate.
8515
8516 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
8517 methods.
8518
8519 2004-02-08 Andrew Cagney <cagney@redhat.com>
8520
8521 * configure.in (CONFIG_ALL): Set to Makefile target, and not
8522 makefile macro.
8523 * configure: Re-generate.
8524 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
8525 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
8526 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
8527 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
8528 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
8529 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
8530 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
8531 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
8532 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
8533 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
8534
8535 2004-02-07 Andrew Cagney <cagney@redhat.com>
8536
8537 * Makefile.in: Update all dependencies.
8538
8539 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
8540 * configure: Re-generate.
8541 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
8542 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
8543 (COMMON_OBS): Add "main.o" and "annotate.o".
8544 (ANNOTATE_OBS): Delete.
8545 (OBS): Remove ANNOTATE_OBS.
8546 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
8547 CONFIG_INITS.
8548 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
8549 against CONFIG_OBS and "main.o".
8550 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
8551 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
8552
8553 * tui/tui-command.c: Include "gdb_string.h", delete register
8554 attribute, use ISO-C function signatures.
8555 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
8556 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8557 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
8558 * tui/tui.c: Ditto.
8559
8560 * tui/tui-command.c: Change variable and function names to lower
8561 case.
8562 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
8563 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
8564 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8565 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8566 * tui/tui-winsource.c, tui/tui.c: Ditto.
8567
8568 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8569
8570 * buildsym.c (free_pending_blocks, finish_block)
8571 (record_pending_block, make_blockvector, end_symtab): Replace
8572 symbol_obstack with objfile_obstack.
8573 * coffread.c (process_coff_symbol, coff_read_struct_type)
8574 (coff_read_enum_type): Ditto.
8575 * cp-namespace.c (initialize_namespace_symtab)
8576 (check_one_possible_namespace_symbol): Ditto.
8577 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
8578 (dwarf2_symbol_mark_computed): Ditto.
8579 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
8580 * elfread.c (elf_symtab_read): Ditto.
8581 * hpread.c (hpread_symfile_init, hpread_symfile_init)
8582 (hpread_read_enum_type, hpread_read_function_type)
8583 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
8584 Ditto.
8585 * jv-lang.c (get_java_class_symtab, add_class_symbol)
8586 (java_link_class_type): Ditto.
8587 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
8588 (new_symbol): Ditto.
8589 * minsyms.c (install_minimal_symbols): Ditto.
8590 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
8591 (terminate_minimal_symbol_table): Replace symbol_obstack with
8592 objfile_obstack.
8593 (free_objfile): Remove freeing of symbol_obstack.
8594 * objfiles.h: Remove symbol_obstack field.
8595 * pa64solib.c (add_to_solist): Replace symbol_obstack with
8596 objfile_obstack.
8597 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8598 symbol_obstack.
8599 (solib_add_common_symbols): Replace symbol_obstack with
8600 objfile_obstack.
8601 * somsolib.c (som_solib_add): Ditto.
8602 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8603 (common_block_start, common_block_end): Ditto.
8604 * symfile.c (reread_symbols): Remove freeing and init of
8605 symbol_obstack.
8606 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
8607 * symfile.h: Update comment.
8608 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
8609 stats printing.
8610 * symtab.c (symbol_set_names): Replace symbol_obstack with
8611 objfile_obstack.
8612 * symtab.h (struct general_symbol_info, struct minimal_symbol):
8613 Update comments.
8614 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
8615 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
8616 objfile_obstack.
8617
8618 2004-02-07 Andrew Cagney <cagney@redhat.com>
8619
8620 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
8621 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
8622 fields and variables.
8623 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
8624 (m_beInvisible): Delete macro.
8625 * tui/tui-data.h: Fix case case fields and variables.
8626 (m_genWinPtrIsNull): Delete macro.
8627 (tui_win_list): Rename winList.
8628 (TUI_SRC_WIN): Rename srcWin.
8629 (TUI_DISASM_WIN): Rename disassemWin.
8630 (TUI_DATA_WIN): Rename dataWin.
8631 (TUI_CMD_WIN): Rename cmdWin.
8632 (m_genWinPtrNotNull): Delete macro.
8633 (m_winPtrIsNull): Delete macro.
8634 (m_winPtrNotNull): Delete macro.
8635 (tui_win_is_source_type): Replace m_winIsSourceType
8636 (tui_win_is_auxillary): Replace m_winIsAuzillary.
8637 (tui_win_has_locator): Replace m_hasLocator.
8638 (tui_set_win_highlight): Replace m_setWinHighlightOn and
8639 m_setWinHighlightOff.
8640 * tui/tui-data.c: Update references.
8641 (tui_win_is_source_type, tui_set_win_highlight): New functions.
8642 (tui_win_has_locator, tui_win_is_auxillary): New functions.
8643 * tui/tui-command.c, tui/tui-disasm.c: Update references.
8644 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
8645 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
8646 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8647 * tui/tui-winsource.c, tui/tui.c: Ditto.
8648
8649 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8650
8651 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
8652 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
8653 StackGhost.
8654
8655 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
8656 variable `i6' to `i7'.
8657 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8658
8659 2004-02-07 Andrew Cagney <cagney@redhat.com>
8660
8661 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
8662 (TuiPoint, TuiPointPtr): Ditto.
8663 (TuiStatus, TuiStatusPtr): Ditto.
8664 (TuiWinType, TuiWinTypePtr): Ditto.
8665 (struct tui_point): Rename _TuiPoint.
8666 (tui_get_low_disassembly_address): Rename
8667 tuiGetLowDisassemblyAddress.
8668 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
8669 (tuiFree): Delete declaration.
8670 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
8671 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
8672 * tui/tui.c (tuiFree): Delete function.
8673 * cli/cli-cmds.c (disassemble_command): Update references.
8674 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
8675 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8676 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
8677 * tui/tui-winsource.c: Ditto.
8678
8679 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8680
8681 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
8682 coffstab_build_psymtabs, elfstab_build_psymtabs)
8683 (stabsect_build_psymtabs): Replace psymbol_obstack with
8684 objfile_obstack.
8685 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
8686 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
8687 Ditto.
8688 * dwarfread.c (scan_compilation_units): Ditto.
8689 * elfread.c (elfstab_offset_sections): Ditto.
8690 * hppa-tdep.c (read_unwind_info): Ditto.
8691 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
8692 (hpread_end_psymtab): Ditto.
8693 * mdebugread.c (mdebug_build_psymtabs, add_pending)
8694 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
8695 Ditto.
8696 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8697 * objfiles.c (add_to_objfile_sections)
8698 (build_objfile_section_table): Ditto.
8699 (allocate_objfile): Remove init of psymbol_obstack.
8700 (free_objfile): Remove freeing of psymbol_obstack.
8701 * objfiles.h (struct objfile): Remove field
8702 psymbol_obstack. Update comments.
8703 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
8704 psymbol_obstack with objfile_obstack.
8705 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8706 psymbol_obstack.
8707 * somread.c (som_symfile_offsets, init_import_symbols)
8708 (init_export_symbols): Replace psymbol_obstack with
8709 objfile_obstack.
8710 * somsolib.c (som_solib_add_solib_objfile): Ditto.
8711 * symfile.c (default_symfile_offsets, syms_from_objfile)
8712 (reread_symbols): Remove freeing and init of psymbol_obstack.
8713 (cashier_psymtab): Update comment.
8714 * symmisc.c (print_objfile_statistics): Don't report stats for
8715 psymbol obstack.
8716 * symtab.h (struct general_symbol_info, struct partial_symtab):
8717 Update comments.
8718 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
8719 (xcoff_symfile_offsets): Replace psymbol_obstack with
8720 objfile_obstack.
8721
8722 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8723
8724 * objfiles.h (struct objfile): Add objfile_obstack field.
8725 Remove type_obstack field.
8726
8727 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
8728 read_structure_scope read_enumeration, new_symbol): Replace
8729 type_obstack with objfile_obstack.
8730 * dwarfread.c (struct_type, enum_type): Ditto.
8731 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
8732 (lookup_fundamental_type): Ditto.
8733 * gdbtypes.h (TYPE_ALLOC): Ditto.
8734 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
8735 (hpread_read_doc_function_type, hpread_read_struct_type)
8736 (fix_static_member_physnames, hpread_read_array_type)
8737 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8738 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
8739 (java_link_class_type): Ditto.
8740 * mdebugread.c (parse_type): Ditto.
8741 * objfiles.c (allocate_objfile, free_objfile): Ditto.
8742 * solib-sunos.c (solib_add_common_symbols): Ditto.
8743 * stabsread.c (define_symbol, read_type, read_member_functions,
8744 read_cpp_abbrev, read_one_struct_field): Ditto.
8745 * symfile.c (reread_symbols): Ditto.
8746 * symmisc.c (print_objfile_statistics): Ditto.
8747
8748 2004-02-07 Andrew Cagney <cagney@redhat.com>
8749
8750 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
8751 (tui_exec_info_content): Rename TuiExecInfoContent.
8752 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
8753 (TuiWinInfo, TuiWinInfoPtr): Ditto.
8754 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
8755 (TuiList, TuiListPtr): Ditto.
8756 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
8757 (TuiDataType, TuiDataTypePtr): Ditto.
8758 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
8759 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
8760 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
8761 (TuiSourceElement, TuiSourceElementPtr): Ditto.
8762 (TuiDataElement, TuiDataElementPtr): Ditto.
8763 (TuiWinElement, TuiWinElementPtr): Ditto.
8764 (TuiDataInfo, TuiDataInfoPtr): Ditto.
8765 (TuiCommandElement, TuiCommandElementPtr): Ditto.
8766 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
8767 (TuiWhichElement, TuiWhichElementPtr): Ditto.
8768 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
8769 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
8770 * tui/tui-command.c, tui/tui-data.c: Update references.
8771 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
8772 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8773 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8774 * tui/tui-winsource.c, tui/tui.c: Ditto.
8775
8776 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8777
8778 * dwarf2-frame.h: Update copyright.
8779 (enum dwarf2_frame_reg_rule): New.
8780 (struct dwarf2_frame_state_reg): New.
8781 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
8782 * dwarf2-frame.c: Update copyright.
8783 (enum dwarf2_reg_rule): Remove.
8784 (struct dwarf2_frame_state): Remove defenition of `struct
8785 dwarf2_frame_state_reg'.
8786 (read_reg): Call get_frame_arch to get the architecture instead of
8787 using CURRENT_GDBARCH.
8788 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
8789 DWARF2_FRAME_.
8790 (dwarf2_frame_init_reg): New function.
8791 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
8792 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
8793 initialize the register state. Prefix old `enum dwarf2_reg_rule'
8794 tags with DWARF2_FRAME_.
8795 (dwarf2_frame_prev_register): Call get_frame_arch to get the
8796 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
8797 dwarf2_reg_rule' tags with DWARF2_FRAME_.
8798
8799 2004-02-06 Andrew Cagney <cagney@redhat.com>
8800
8801 * tui/tui-data.h (struct tui_list): Rename _TuiList.
8802 (enum tui_data_type): Rename _TuiDataType.
8803 (struct tui_layout_def): Rename _TuiLayoutDef.
8804 (struct tui_source_element): Rename _TuiSourceElement.
8805 (struct tui_data_element): Rename _TuiDataElement.
8806 (struct tui_command_element): Rename _TuiCommandElement.
8807 (struct tui_locator_element): Rename _TuiLocatorElement.
8808 (union tui_which_element): Define.
8809 (struct tui_win_element): Rename _TuiWinElement.
8810 (struct tui_data_info): Rename _TuiDataInfo.
8811 (struct tui_source_info): Rename _TuiSourceInfo.
8812 (struct tui_command_info): Rename _TuiCommandInfo.
8813 (tui_initialize_static_data): Rename initializeStaticData.
8814 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
8815 (tui_alloc_win_info): Rename allocWinInfo.
8816 (tui_init_generic_part): Rename initGenericPart.
8817 (tui_init_win_info): Rename initWinInfo.
8818 (tui_alloc_content): Rename allocContent.
8819 (tui_add_content_elements): Rename addContentElements.
8820 (tui_init_content_element): Rename initContentElement.
8821 (tui_free_window): Rename freeWindow.
8822 (tui_free_win_content): Rename freeWinContent.
8823 (tui_free_data_content): Rename freeDataContent.
8824 (tui_free_all_source_wins_content): Rename
8825 freeAllSourceWinsContent.
8826 (tui_del_window): Rename tuiDelWindow.
8827 (tui_del_data_windows): Rename tuiDelDataWindows.
8828 (tui_partial_win_by_name): Rename partialWinByName.
8829 (tui_win_name): Rename winName.
8830 (tui_current_layout): Rename currentLayout.
8831 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
8832 (tui_term_height): Rename termHeight.
8833 (tui_set_term_height_to): Rename setTermHeightTo.
8834 (tui_term_width): Rename termWidth.
8835 (tui_set_term_width_to): Rename setTermWidthTo.
8836 (tui_set_gen_win_origin): Rename setGenWinOrigin.
8837 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
8838 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
8839 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
8840 (tui_source_windows): Rename sourceWindows.
8841 (tui_clear_source_windows): Rename clearSourceWindows.
8842 (tui_clear_source_windows_detail): Rename
8843 clearSourceWindowsDetail.
8844 (tui_clear_win_detail): Rename clearWinDetail.
8845 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
8846 (tui_default_tab_len): Rename tuiDefaultTabLen.
8847 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
8848 (tui_win_with_focus): Rename tuiWinWithFocus.
8849 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
8850 (tui_layout_def): Rename tuiLayoutDef.
8851 (tui_win_resized): Rename tuiWinResized.
8852 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
8853 (tui_next_win): Rename tuiNextWin.
8854 (tui_prev_win): Rename tuiPrevWin.
8855 (tui_add_to_source_windows): Rename addToSourceWindows.
8856 * tui/tui-winsource.c, tui/tui-win.c: Update references.
8857 * tui/tui-layout.c, tui/tui-source.c: Ditto.
8858 * tui/tui-stack.c, tui/tui-io.c: Ditto.
8859 * tui/tui.c, tui/tui-data.c: Ditto.
8860 * tui/tui-interp.c, tui/tui-data.c: Ditto.
8861 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
8862
8863 * tui/tui-source.h: Update copyright. Include "tui-data.h".
8864 (struct symtab): Declare.
8865 (tui_set_source_content): Rename tuiSetSourceContent.
8866 (tui_show_symtab_source): Rename tuiShowSource.
8867 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
8868 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
8869 * tui/tui-source.c: Update copyright. Update references.
8870 * tui/tui-win.c, tui/tui-winsource.c: Update references.
8871 * tui/tui-stack.c: Update references.
8872
8873 * tui/tui-win.h: Update copyright. Include "tui-data.h".
8874 (struct tui_win_info): Declare.
8875 (tui_scroll_forward): Rename tuiScrollForward.
8876 (tui_scroll_backward): Rename tuiScrollBackward.
8877 (tui_scroll_left): Rename tuiScrollLeft.
8878 (tui_scroll_right): Rename tuiScrollRight.
8879 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
8880 (tui_resize_all): Rename tuiResizeAll.
8881 (tui_refresh_all_win): Rename tuiRefreshAll.
8882 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
8883 * tui/tui-layout.c, * tui/tui-io.c: Update references.
8884 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
8885 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
8886
8887 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
8888 (tui_erase_data_content): Rename tuiEraseDataContent.
8889 (tui_display_all_data): Rename tuiDisplayAllData.
8890 (tui_check_data_values): Rename tuiCheckDataValues.
8891 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
8892 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
8893 (tui_first_data_element_no_in_line): Rename
8894 tuiFirstDataElementNoInLine.
8895 (tui_delete_data_content_windows): Rename
8896 tuiDeleteDataContentWindows.
8897 (tui_refresh_data_win): Rename tuiRefreshDataWin.
8898 (tui_display_data_from): Rename tuiDisplayDataFrom.
8899 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
8900 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
8901 * tui/tui-win.c, tui/tui-regs.c: Update references.
8902 * tui/tui-layout.c, tui/tui.c: Update references.
8903
8904 * tui/tui-wingeneral.h: Update copyright.
8905 (m_allBeVisible): Delete macro.
8906 (m_allBeInvisible): Delete macro.
8907 (struct tui_gen_win_info): Declare.
8908 (struct tui_win_info): Declare.
8909 (tui_unhighlight_win): Rename unhighlightWin.
8910 (tui_make_visible, tui_make_invisible): Replace makeVisible.
8911 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
8912 (tui_make_window): Rename makeWindow.
8913 (tui_copy_win): Rename copyWin.
8914 (tui_box_win): Rename boxWin.
8915 (tui_highlight_win): Rename highlightWin.
8916 (tui_check_and_display_highlight_if_needed): Rename
8917 checkAndDisplayHighlightIfNeeded.
8918 (tui_refresh_all): Rename refreshAll.
8919 (tui_delete_win): Rename tuiDelwin.
8920 (tui_refresh_win): Rename tuiRefreshWin.
8921 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
8922 (tui_make_visible, tui_make_invisible): New functions.
8923 (tui_make_all_visible, tui_make_all_invisible): New functions.
8924 (make_all_visible): Rename makeAllVisible.
8925 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
8926 * tui/tui-data.c, tui/tui-winsource.c: Update references.
8927 * tui/tui-windata.c, tui/tui-win.c: Update references.
8928 * tui/tui-regs.c, tui/tui-layout.c: Update references.
8929 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
8930
8931 2004-02-06 Mark Kettenis <kettenis@gnu.org>
8932
8933 * proc-api.c (write_with_trace): Initialize local variable to
8934 silence compiler warning.
8935
8936 2004-02-06 Andrew Cagney <cagney@redhat.com>
8937
8938 * tui/tui-source.h: Do not include "defs.h".
8939 (struct tui_win_info): Declare.
8940 (tui_set_source_content_nil): Declare.
8941 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
8942 (union tui_line_or_address): Rename _TuiLineOrAddress.
8943 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
8944 (tui_update_source_window): Rename tuiUpdateSourceWindow.
8945 (tui_update_source_window_as_is): Rename
8946 tuiUpdateSourceWindowAsIs.
8947 (tui_update_source_windows_with_addr): Rename
8948 tuiUpdateSourceWindowsWithAddr.
8949 (tui_update_source_windows_with_line): Rename
8950 tuiUpdateSourceWindowsWithLine.
8951 (tui_clear_source_content): Rename tuiClearSourceContent.
8952 (tui_erase_source_content): Rename tuiEraseSourceContent.
8953 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
8954 (tui_show_source_content): Rename tuiShowSourceContent.
8955 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
8956 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
8957 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
8958 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
8959 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
8960 (tui_update_exec_info): Rename tuiUpdateExecInfo.
8961 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
8962 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
8963 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
8964 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
8965 (struct tui_win_info): Declare.
8966 * tui/tui-stack.c: Update references.
8967 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
8968 * tui/tui-win.c, tui/tui-source.c: Ditto.
8969 * tui/tui.c, tui/tui-disasm.c: Ditto.
8970
8971 2004-02-06 Mark Kettenis <kettenis@gnu.org>
8972
8973 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
8974 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
8975
8976 2004-02-05 Mark Kettenis <kettenis@gnu.org>
8977
8978 * infrun.c (handle_inferior_event): Allow for breakpoint
8979 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
8980 and SIGEMT. Update comments.
8981 * NEWS (Revised SPARC target): Mention support for non-executable
8982 stack.
8983
8984 2004-02-04 Mark Kettenis <kettenis@gnu.org>
8985
8986 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
8987 * inftarg.c: Update copyright year.
8988 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
8989 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
8990 (sparc_xfer_wcookie): New function.
8991 * sparc-tdep.c (sparc_fetch_wcookie): New function.
8992 * Makefile.in (sparc-nat.o): Update dependencies.
8993 * config/sparc/nm-nbsd.h: Include "target.h".
8994 (NATIVE_XFER_WCOOKIE): New define.
8995 (sparc_xfer_wcookie): New prototype.
8996
8997 2004-02-04 Andrew Cagney <cagney@redhat.com>
8998
8999 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9000 SYSCALL_TRAP function.
9001 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9002
9003 2004-02-04 Andrew Cagney <cagney@redhat.com>
9004 Daniel Jacobowitz <drow@mvista.com>
9005
9006 * objfiles.h: Delete comments refering to inside_entry_func and
9007 DEPRECATED_FRAME_CHAIN_VALID.
9008 * defs.h (inside_entry_func): Update prototype..
9009 * blockframe.c (inside_entry_func): Rename to
9010 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9011 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9012
9013 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9014
9015 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9016 outside of #ifdef SOLIB_ADD region.
9017 (do_restore_lang_radix_cleanup): Ditto.
9018 (resolve_pending_breakpoint): Ditto.
9019
9020 2004-02-03 Andrew Cagney <cagney@redhat.com>
9021
9022 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9023 (process_note_abi_tag_sections): Delete unused function.
9024 (ia64_read_fp): Delete unused function.
9025 (gdbarch_extract_struct_value_address): Delete declaration.
9026
9027 2004-02-02 Andrew Cagney <cagney@redhat.com>
9028
9029 * vax-tdep.c (vax_frame_chain): Delete call to
9030 deprecated_inside_entry_file.
9031 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9032
9033 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9034
9035 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9036 column that's "empty" or "same value" when eliminating REG_RA
9037 rules.
9038
9039 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9040
9041 * NEWS: Add information about new pending breakpoint support.
9042
9043 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9044
9045 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9046 and pending fields for pending breakpoint support.
9047 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9048 (condition_command): Only parse condition if not a pending
9049 breakpoint.
9050 (print_one_breakpoint): Add support for pending breakpoints.
9051 (describe_other_breakpoints): Add checks to verify we are not
9052 dealing with pending breakpoints.
9053 (check_duplicates): Don't check pending breakpoints.
9054 (set_raw_breakpoint): Initialize pending flag.
9055 (do_restore_lang_radix_cleanup): New cleanup routine.
9056 (resolve_pending_breakpoint): New function.
9057 (re_enable_breakpoints_in_shlibs): Try and resolve any
9058 pending breakpoints via resolve_pending_breakpoint.
9059 (mention): Add pending breakpoint support.
9060 (parse_breakpoint_sals): Add new parameter to pass to
9061 decode_line_1 to indicate silent errors when files or functions
9062 are not found. Change all callers.
9063 (do_captured_parse_breakpoint): New function.
9064 (break_command_1): Change prototype to return an rc value and to
9065 take an optional pending breakpoint pointer. Support creating
9066 a pending breakpoint if a "not found" form of error occurs when
9067 parsing the breakpoint. Also support resolving an existing pending
9068 breakpoint and be silent if the resolution fails.
9069 (create_breakpoints): Change prototype to take pending breakpoint
9070 pointer. When resolving a pending breakpoint, use the new pointer
9071 to provide a conditional or commands added by the end-user.
9072 (delete_breakpoint): Add appropriate check for pending.
9073 (breakpoint_re_set_one): Ditto.
9074 (do_enable_breakpoint): Ditto.
9075
9076 2004-02-02 David Carlton <carlton@kealia.com>
9077
9078 * valops.c (enum oload_classification): New.
9079 (find_overload_match): Break implementation into separate
9080 functions; delete #if 0'd code; look for symbols within
9081 namespaces.
9082 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9083 (find_oload_champ,oload_method_static,classify_oload_match): New.
9084 * cp-support.h: Add declaration for cp_func_name; update
9085 declaration for make_symbol_overload_list.
9086 * cp-support.c (cp_func_name): New.
9087 (overload_list_add_symbol): Fix comment, use
9088 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9089 (make_symbol_overload_list): Take a function name and a namespace
9090 instead of a symbol; change implementation.
9091 (make_symbol_overload_list_using): New.
9092 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9093
9094 2004-02-02 Fred Fish <fnf@redhat.com>
9095
9096 * main.c (gdb_stdtarg): Move definition to group with other
9097 gdb_stdtarg definitions and update copyright years.
9098 * remote-sim.c (gdb_os_write_stderr): Write output to
9099 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9100 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9101 gdb_stderr stream and update copyright years.
9102
9103 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9104
9105 * Makefile.in (mips-linux-nat.o): Update dependencies.
9106 * mips-linux-nat.c: Include mips-tdep.h.
9107
9108 2004-02-01 Roland McGrath <roland@redhat.com>
9109
9110 * sol-thread.c (sol_thread_xfer_partial): New function.
9111 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9112 (init_sol_core_ops): Likewise.
9113
9114 * procfs.c (procfs_xfer_partial): New function.
9115 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9116 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9117
9118 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9119 procfs_xfer_auxv function.
9120
9121 * procfs.c (procfs_make_note_section): If we can read
9122 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9123 * linux-proc.c (linux_make_note_section): Likewise.
9124
9125 * auxv.h: New file.
9126 * auxv.c: New file.
9127 * Makefile.in (auxv_h): New variable.
9128 (COMMON_OBS): Add auxv.o here.
9129 (auxv.o): New target.
9130
9131 * corelow.c (core_xfer_partial): New function.
9132 (init_core_ops): Use it for core_ops.to_xfer_partial.
9133
9134 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9135 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9136 macro if that is defined.
9137
9138 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9139
9140 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9141 and check the specified thread for each breakpoint.
9142 * breakpoint.h (bpstat_stop_status): Update prototype.
9143 * infrun.c (handle_inferior_event): Update calls to
9144 bpstat_stop_status.
9145
9146 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9147
9148 * Makefile.in (cli-cmds.o): Add $(readline_h).
9149
9150 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9151
9152 * cli/cli-cmds.c: Include readline.h.
9153 (complete_command): Pass the start of the last word to
9154 complete_line.
9155
9156 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9157
9158 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9159 argument, and change first argument to a CORE_ADDR.
9160 * breakpoint.h (bpstat_stop_status): Update prototype.
9161 * infrun.c (adjust_pc_after_break): Add a new comment.
9162 (handle_inferior_event): Update calls to bpstat_stop_status.
9163
9164 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9165
9166 * breakpoint.h: Update copyright years.
9167
9168 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9169
9170 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9171 (bpstat_stop_status): Don't decrement PC.
9172 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9173 prototype.
9174 * infrun.c (adjust_pc_after_break): New function.
9175 (handle_inferior_event): Call it, early. Remove later references
9176 to DECR_PC_AFTER_BREAK.
9177 (normal_stop): Add commentary.
9178
9179 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9180
9181 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9182 2004-01-27 double-free fix.
9183
9184 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9185
9186 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9187 (sparc32_frame_prev_register): Handle StackGhost.
9188 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9189
9190 2004-01-29 Roland McGrath <roland@redhat.com>
9191
9192 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9193 * configure: Regenerated.
9194
9195 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9196 * Makefile.in (procfs.o): Add dep.
9197
9198 2004-01-28 Andrew Cagney <cagney@redhat.com>
9199
9200 * tui/tui-stack.h: Update copyright.
9201 (struct frame_info): Add opaque declaration.
9202 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9203 (tui_show_locator_content): Rename tuiShowLocatorContent.
9204 (tui_show_frame_info): Rename tuiShowFrameInfo.
9205 * tui/tui-stack.c: Update copyright. Update references.
9206 * tui/tui-winsource.c: Update references.
9207 * tui/tui-win.c: Update references.
9208 * tui/tui-layout.c: Update references.
9209 * tui/tui-hooks.c: Update copyright, update references.
9210 * tui/tui.c: Update copyright, update references.
9211 * tui/tui-disasm.c: Update references.
9212
9213 2004-01-28 David Carlton <carlton@kealia.com>
9214
9215 * dwarf2read.c (add_partial_structure): Use demangled name if
9216 namespace equals "".
9217
9218 2004-01-27 Jim Blandy <jimb@redhat.com>
9219
9220 Clean up misapplied patch:
9221 * dwarf2read.c (determine_prefix): Change one of the two forward
9222 declarations for 'determine_prefix_aux' to a declaration for this.
9223 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9224 argument to 'die_specification'.
9225
9226 * dwarf2read.c (read_func_scope): Re-indent comment.
9227
9228 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9229
9230 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9231 b->exp to NULL after freeing so that error during re-parsing or
9232 evaluation of expressions associated with breakpoint don't
9233 eventually lead to re-freeing of storage.
9234 Committed by Andrew Cagney.
9235
9236 2004-01-27 Andrew Cagney <cagney@redhat.com>
9237
9238 * source.c (ambiguous_line_spec): Delete undefined declaration.
9239 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9240 (m32r_set_server_address, m32r_set_download_path): Ditto.
9241 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9242
9243 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9244
9245 * dwarf2read.c: Update calls to changed and renamed functions, and
9246 references to moved variables.
9247
9248 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9249 language, language_defn, list_in_scope, and ftypes members.
9250 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9251 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9252 (baseaddr): Remove globals.
9253
9254 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9255 (set_cu_language, die_is_declaration, die_specification)
9256 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9257 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9258 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9259 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9260
9261 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9262 cu.list_in_scope. Don't initialize cu_header_offset.
9263 (add_partial_symbol): Add local baseaddr.
9264 (psymtab_to_symtab_1): Add local baseaddr. Use
9265 objfile->section_offsets for consistency. Don't initialize
9266 cu_header_offset; do initialize cu.header.offset and
9267 cu.list_in_scope.
9268 (read_file_scope, read_func_scope, read_lexical_block_scope)
9269 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9270
9271 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9272
9273 * PROBLEMS: Add gdb/1516.
9274
9275 2003-12-29 Robert Millan <robertmh@gnu.org>
9276
9277 Patch committed by Andrw Cagney.
9278 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9279 * configure.tgt: Match knetbsd*-gnu.
9280
9281 2004-01-26 Andrew Cagney <cagney@redhat.com>
9282
9283 * breakpoint.c (catch_command_1): Delete #ifdef code.
9284 (catch_fork_command_1): Delete #ifdef wrapper.
9285 (catch_exec_command_1): Ditto.
9286 (catch_load_command_1): Ditto.
9287 (catch_unload_command_1): Ditto.
9288
9289 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9290 (catch_breakpoint): Delete #if0ed function.
9291 (disable_catch_breakpoint): Ditto.
9292 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9293 (disable_catch, enable_catch, delete_catch): Ditto.
9294
9295 2004-01-26 Andrew Cagney <cagney@redhat.com>
9296
9297 * remote.c (echo_check, quit_flag): Delete variables.
9298 (cisco_kernel_mode): Delete variable.
9299 (minitelnet_return, tty_input, escape_count): Delete variables.
9300 (remote_cisco_mode): Delete variable.
9301 (remote_cisco_open, remote_cisco_close): Delete function.
9302 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9303 (init_remote_cisco_ops): Delete function.
9304 (_initialize_remote): Do not install "remote cisco" code.
9305 (read_frame): Delete cisco specific code.
9306 (remote_info_process): Delete function.
9307 (remote_wait): Delete cisco specific code.
9308 (remote_cisco_section_offsets): Delete function.
9309 (remote_cisco_objfile_relocate): Delete function.
9310 (remote_async_wait): Delete cisco specific code.
9311 (minitelnet, readtty, readsocket): Delete function.
9312
9313 2004-01-26 Andrew Cagney <cagney@redhat.com>
9314
9315 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9316 comments mentioning extract_returned_value_address.
9317 * infcmd.c (print_return_value): Update. Add comments on
9318 extract_returned_value_address.
9319 * stack.c (return_command): Add comments on
9320 extract_returned_value_address.
9321 * values.c: Update comment.
9322 * m32r-tdep.c: Update comment.
9323 * sparc-tdep.c: Update comment.
9324 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9325 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9326 * sh64-tdep.c (sh64_gdbarch_init): Update.
9327 * sh-tdep.c (sh_gdbarch_init): Update.
9328 * s390-tdep.c (s390_gdbarch_init): Update.
9329 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9330 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9331 * m68k-tdep.c (m68k_gdbarch_init): Update.
9332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9333 * m32r-tdep.c (m32r_gdbarch_init): Update.
9334 * ia64-tdep.c (ia64_gdbarch_init): Update.
9335 * h8300-tdep.c (h8300_gdbarch_init): Update.
9336 * frv-tdep.c (frv_gdbarch_init): Update.
9337 * arm-tdep.c (arm_gdbarch_init): Update.
9338 * alpha-tdep.c (alpha_gdbarch_init): Update.
9339
9340 2004-01-26 Andrew Cagney <cagney@redhat.com>
9341
9342 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9343 SYMBOL_LOCATION_FUNCS
9344 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9345 "struct symbol_ops".
9346 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9347 type to "struct symbol_ops".
9348 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9349 (struct symbol): Replace ".aux_value.loc.funcs" and
9350 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9351 (SYMBOL_OBJFILE): Delete macro.
9352 (SYMBOL_LOCATION_FUNCS): Delete macro.
9353 (SYMBOL_LOCATION_BATON): Update.
9354 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9355 intead of SYMBOL_LOCATION_FUNCS.
9356 * ax-gdb.c (gen_var_ref): Ditto.
9357 * printcmd.c (address_info): Ditto.
9358 * findvar.c (read_var_value): Ditto.
9359 (symbol_read_needs_frame): Ditto.
9360
9361 2004-01-26 Andrew Cagney <cagney@redhat.com>
9362
9363 * dwarf2read.c (read_func_scope): Document frame-base hack.
9364
9365 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9366
9367 * infcmd.c (print_return_value): Plug memory leak; delete
9368 ui_stream object. Rename argument `structure_return' to
9369 `struct_return'.
9370
9371 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9372
9373 * infcmd.c (print_return_value): Wrap long lines.
9374 (finish_command_continuation, finish_command): Remove unused
9375 variable `funcaddr'. Fix some coding-standards problems.
9376
9377 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9378 SECT_SIZE is large enough, not whether it's exactly the right size.
9379 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9380 TDEP->fpregset to zero.
9381
9382 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9383 floating-point registers for traditional NetBSD core files.
9384 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9385 TDEP->sizeof_fpregset here.
9386
9387 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9388
9389 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9390 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9391 function with code split out from
9392 sparc32nbsd_sigcontext_frame_cache.
9393 (sparc32nbsd_sigcontext_frame_cache): Use
9394 sparc32nbsd_sigcontext_saved_regs.
9395 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9396 OpenBSD.
9397 * sparcobsd-tdep.c: New file.
9398 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9399 (sparcobsd-tdep.o): New dependency.
9400 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9401 * config/sparc/obsd.mt: New file.
9402
9403 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9404 TDEP->fpregset to be initialized to enable core file register
9405 sets.
9406
9407 2004-01-24 Mark Kettenis <kettenis@gnu.org>
9408
9409 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
9410 Add opaque declarations.
9411 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9412 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9413 function with code split out from
9414 sparc64nbsd_sigcontext_frame_cache.
9415 (sparc64nbsd_sigcontext_frame_cache): Use
9416 sparc64nbsd_sigcontext_saved_regs.
9417 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9418 OpenBSD.
9419 * sparc64obsd-tdep.c: New file.
9420 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9421 (sparc64obsd-tdep.o): New dependency.
9422 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9423 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9424 * config/sparc/obsd64.mt: New file.
9425
9426 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9427 read the instruction at PC.
9428
9429 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9430 value of GDB_OSABI_DEFAULT.
9431 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9432 instead of GDB_OSABI_NETBSD_AOUT.
9433
9434 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
9435
9436 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9437 copyright.
9438
9439 2004-01-23 Andrew Cagney <cagney@redhat.com>
9440
9441 * printcmd.c (display_command): Replace tui_set_display call with
9442 tui_set_layout_for_display_command.
9443 * tui/tui.h (enum tui_win_type): Define.
9444 (tui_set_layout): Delete declaration.
9445 (tui_set_layout_for_display_command): Rename set_tui_layout.
9446 * tui/tui-data.h (enum tui_layout_type): Define.
9447 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9448 "tui.h".
9449 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9450 (tui_default_win_height): Rename tuiDefaultWinHeight.
9451 (tui_default_win_viewport_height): Rename
9452 tuiDefaultWinViewportHeight.
9453 (tui_set_layout): RenametuiSetLayout.
9454 * tui/tui-layout.c: Update references.
9455 * tui/tui.c: Update references.
9456 * tui/tui-disasm.c: Update references.
9457
9458 2004-01-23 David Carlton <carlton@kealia.com>
9459
9460 Partial workaround for PR c++/1511:
9461 * cp-namespace.c: Include frame.h.
9462 (cp_lookup_transparent_type): New
9463 (cp_lookup_transparent_type_loop): New.
9464 * cp-support.h: Declare cp_lookup_transparent_type.
9465 * symtab.c (basic_lookup_transparent_type): Renamed from
9466 lookup_transparent_type.
9467 (lookup_transparent_type): Replace old body by a call to
9468 current_language->la_lookup_transparent_type.
9469 * symtab.h: Update copyright. Declare
9470 basic_lookup_transparent_type.
9471 * language.h: Update copyright.
9472 (struct language_defn): Add la_lookup_transparent_type.
9473 * language.c: Update copyright.
9474 (unknown_language_defn): Add basic_lookup_transparent_type.
9475 (auto_language_defn): Add basic_lookup_transparent_type.
9476 (local_language_defn): Add basic_lookup_transparent_type.
9477 * ada-lang.c: Update copyright.
9478 (ada_language_defn): Add basic_lookup_transparent_type.
9479 * c-lang.c: Update copyright.
9480 (c_language_defn): Add basic_lookup_transparent_type.
9481 (cplus_language_defn): Add basic_lookup_transparent_type.
9482 (asm_language_defn): Add basic_lookup_transparent_type.
9483 (minimal_language_defn): Add basic_lookup_transparent_type.
9484 * f-lang.c: Update copyright.
9485 (f_language_defn): Add basic_lookup_transparent_type.
9486 * jv-lang.c: Update copyright.
9487 (java_language_defn): Add basic_lookup_transparent_type.
9488 * m2-lang.c: Update copyright.
9489 (m2_language_defn): Add basic_lookup_transparent_type.
9490 * objc-lang.c: Update copyright.
9491 (objc_language_defn): Add basic_lookup_transparent_type.
9492 * p-lang.c: Update copyright.
9493 (p_language_defn): Add basic_lookup_transparent_type.
9494 * scm-lang.c: Update copyright.
9495 (scm_language_defn): Add basic_lookup_transparent_type.
9496 * Makefile.in (cp-namespace.o): Depend on frame.h.
9497
9498 2004-01-23 David Carlton <carlton@kealia.com>
9499
9500 Patch for PR c++/1520:
9501 * dwarf2read.c (read_func_scope): Set processing_current_prefix
9502 properly if we have a specification die.
9503 (determine_prefix_aux): Rename from determine_prefix.
9504 (determine_prefix): Like the old determine_prefix, but never
9505 returns NULL.
9506
9507 2004-01-23 Theodore A. Roth <troth@openavr.org>
9508
9509 * avr-tdep.c: Update copyright.
9510 (avr_iaddr_p): Delete unused function.
9511 (avr_saddr_p): Delete unused function.
9512
9513 2004-01-23 David Carlton <carlton@kealia.com>
9514
9515 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
9516 Fix for PR symtab/1534.
9517
9518 2004-01-23 Mark Kettenis <kettenis@gnu.org>
9519
9520 * NEWS (New native configurations): Mention OpenBSD/sparc and
9521 OpenBSD/sparc64.
9522 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
9523 * configure.host: Likewise.
9524 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
9525 handler for OpenBSD.
9526 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
9527
9528 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9529
9530 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
9531 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
9532
9533 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
9534 * cli/cli-cmds.c (shell_escape): Likewise.
9535
9536 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
9537 OpenBSD .note.openbsd.ident sections.
9538
9539 2004-01-22 David Carlton <carlton@kealia.com>
9540
9541 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
9542 get_scope_pc_bounds.
9543 (read_file_scope): Ditto.
9544 (get_scope_pc_bounds): New function, produced by extracting code
9545 from the above two functions, consolidating it, and adding support
9546 for DW_TAG_namespace.
9547
9548 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9549
9550 * osabi.c (MAX_NOTESZ): New define.
9551 (check_note): New function.
9552 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
9553 check_note.
9554
9555 2004-01-21 Roland McGrath <roland@redhat.com>
9556
9557 * MAINTAINERS (write after approval): Add myself.
9558
9559 2004-01-21 Eli Zaretskii <eliz@gnu.org>
9560
9561 * utils.c (init_page_info): Move declarations of `rows' and
9562 `cols' before the __GO32__-specific code. Move the closing brace
9563 outside the #ifdef __GO32__..#endif block.
9564 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
9565
9566 2004-01-21 Paul Brook <paul@codesourcery.com>
9567
9568 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
9569 BPSTAT_WHAT_CHECK_SHLIBS.
9570
9571 2004-01-21 Paul Brook <paul@codesourcery.com>
9572
9573 * MAINTAINERS: Add myself to write-after-approval.
9574
9575 2004-01-20 Andrew Cagney <cagney@redhat.com>
9576
9577 * ax-gdb.c (print_axs_value): Delete unused function.
9578 * jv-lang.c (java_lookup_type): Delete unused function.
9579 * cli/cli-dump.c (dump_filetype): Delete unused function.
9580 * remote-mips.c (remote_mips_insert_hw_breakpoint)
9581 (remote_mips_remove_hw_breakpoint): Delete unused functions.
9582 (mips_getstring): Delete unused function.
9583 (pmon_insert_breakpoint): Delete #if0ed function.
9584 (PMON_MAX_BP): Delete #if0ed MACRO.
9585 (mips_pmon_bp_info): Delete #if0ed variable.
9586 (pmon_remove_breakpoint): Delete #if0ed function.
9587 * monitor.c (monitor_write_even_block): Delete unused function.
9588 (monitor_write_memory_block): Delete #if0ed code.
9589 * dink32-rom.c (dink32_load): Delete unused function.
9590 (_initialize_dink32_rom): Delete #if0ed code.
9591 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
9592
9593 * tui/tui-command.c: Update references.
9594 * tui/tui-io.c: Update references.
9595 * tui/tui-command.h: Update copyright.
9596 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
9597
9598 * source.c (ambiguous_line_spec): Delete never-defined function.
9599 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
9600 * gdbtypes.c (add_name, add_mangled_type): Ditto.
9601 * cli/cli-cmds.c (validate_comname): Ditto.
9602
9603 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
9604 "tui-data.h".
9605 (tui_set_disassem_content): Rename tuiSetDisassemContent.
9606 (tui_show_disassem): Rename tuiShowDisassem.
9607 (tui_show_disassem_and_update_source): Rename
9608 tuiVerticalDisassemScroll.
9609 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
9610 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
9611 * tui/tui.h: Update copyright.
9612 (enum tui_status): Define.
9613 * tui/tui-data.h (enum tui_scroll_direction): Define.
9614 * tui/tui-disasm.c: Update copyright. Update references.
9615 * tui/tui-winsource.c: Update copyright. Update references.
9616 * tui/tui-win.c: Update references.
9617 * tui/tui-layout.c: Update references.
9618
9619 2004-01-20 Andrew Cagney <cagney@redhat.com>
9620
9621 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
9622 sym2 to start of block.
9623
9624 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
9625
9626 * MAINTAINERS: Delete mmalloc.
9627 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
9628 * NEWS: Mention removal of --with-malloc.
9629 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
9630 * config.in: Regenerate.
9631 * configure: Regenerate.
9632 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
9633 USE_MMALLOC, MMCHECK_FORCE.
9634 * gdbinit.in: Remove mmalloc.
9635 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
9636 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
9637 * config/i386/go32.mh: Likewise.
9638 * config/i386/interix.mh: Likewise.
9639 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
9640
9641 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
9642
9643 * linespec.c (decode_variable, symtab_from_filename): Call
9644 error_silent with error message instead of throwing an exception
9645 directly.
9646 * defs.h (error_silent, error_output_message): Add prototypes.
9647 (catch_exceptions_with_msg): Ditto.
9648 * utils.c (error_silent, error_output_message): New functions.
9649 * top.c (catch_exceptions_with_msg): New function.
9650
9651 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
9652
9653 * mi/mi-cmds.h (enum print_values): Add definition.
9654
9655 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
9656 type and value for simple data types and just the name and type
9657 for complex ones, if required.
9658
9659 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
9660 children, if required.
9661
9662 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9663
9664 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
9665 unused declarations.
9666
9667 2004-01-19 Andrew Cagney <cagney@redhat.com>
9668
9669 * top.h (mapped_symbol_files): Delete declaration.
9670 * main.c (captured_main): Delete option "m" and "mapped".
9671 * objfiles.c (mapped_symbol_files): Delete variable.
9672 * symfile.c (symbol_file_command): Delete mmap code.
9673 (symbol_file_add_with_addrs_or_offsets): Ditto.
9674 (add_symbol_file_command, reread_separate_symbols): Ditto.
9675 * objfiles.h (OBJF_MAPPED): Delete.
9676 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
9677 (free_objfile) [USE_MMALLOC]: Ditto.
9678 (open_existing_mapped_file): Delete function.
9679 (open_mapped_file): Delete function.
9680 (map_to_file): Delete function.
9681
9682 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9683
9684 * infrun.c (step_into_function): Account for possible breakpoint
9685 adjustment when computing ``stop_func_start''.
9686
9687 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9688
9689 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
9690 the region size against the size of a pointer, not the size of
9691 a register as given by DEPRECATED_REGISTER_SIZE.
9692
9693 2004-01-19 Andrew Cagney <cagney@redhat.com>
9694
9695 * tui/tui-regs.h: Include "tui-data.h".
9696 (tuiFirstRegElementNoInLine): Delete declaration.
9697 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
9698 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
9699 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
9700 (tui_calculate_regs_column_count): Rename
9701 tuiCalculateRegsColumnCount.
9702 (tui_check_register_values): Rename tuiCheckRegisterValues.
9703 (tui_show_registers): Rename tuiShowRegisters.
9704 (tui_display_registers_from_line): Rename
9705 tuiDisplayRegistersFromLine.
9706 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
9707 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
9708 (tui_first_reg_element_no_inline): Rename
9709 tuiFirstRegElementNoInLine.
9710 * tui/tui-data.h: Update copyright.
9711 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
9712 * tui/tui-windata.c: Update copyright, update references.
9713 * tui/tui-regs.c: Update copyright, update references.
9714 * tui/tui-win.c: Update copyright, update references.
9715 * tui/tui-layout.c: Update copyright, update references.
9716
9717 2004-01-18 Andrew Cagney <cagney@redhat.com>
9718
9719 * tui/tui-io.c: Update copyright.
9720 (key_is_end_sequence, key_is_backspace): New functions.
9721 (key_is_command_char, key_is_start_sequence): New function.
9722 (tui_getc): Update references.
9723 * tui/tui-io.h: Update copyright.
9724 (m_tuiStartNewLine): Delete macro.
9725 (m_isBackspace, m_isDeleteChar): Delete macros.
9726 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
9727 (m_isNextPage, m_isPrevPage): Delete macros.
9728 (m_isLeftArrow, m_isRightArrow): Delete macros.
9729 (m_isXdbStyleCommandChar): Delete macro.
9730 (key_is_start_sequence): Declare, replace m_isStartSequence.
9731 (key_is_end_sequence): Declare, replace m_isEndSequence.
9732 (key_is_backspace): Declare ,replace m_isBackspace.
9733 (key_is_command_char): Declare, replace m_isCommandChar.
9734 * tui/tui-command.c: Update copyright.
9735 (tuiDispatchCtrlChar): Update references.
9736
9737 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
9738 tuiSourceWin.h.
9739
9740 * tui/tui-command.c: Rename tui/tuiCommand.c.
9741 * tui/tui-command.h: Rename tui/tuiCommand.h.
9742 * tui/tui-data.c: Rename tui/tuiData.c.
9743 * tui/tui-data.h: Rename tui/tuiData.h.
9744 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
9745 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
9746 * tui/tui-io.c: Rename tui/tuiIO.c.
9747 * tui/tui-io.h: Rename tui/tuiIO.h.
9748 * tui/tui-layout.c: Rename tui/tuiLayout.c.
9749 * tui/tui-layout.h: Rename tui/tuiLayout.h.
9750 * tui/tui-regs.c: Rename tui/tuiRegs.c.
9751 * tui/tui-regs.h: Rename tui/tuiRegs.h.
9752 * tui/tui-source.c: Rename tui/tuiSource.c.
9753 * tui/tui-source.h: Rename tui/tuiSource.h.
9754 * tui/tui-stack.c: Rename tui/tuiStack.c.
9755 * tui/tui-stack.h: Rename tui/tuiStack.h.
9756 * tui/tui-win.c: Rename tui/tuiWin.c.
9757 * tui/tui-win.h: Rename tui/tuiWin.h.
9758 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
9759 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
9760 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
9761 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
9762 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
9763 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
9764 * tui/tui-file.c: Update includes.
9765 * tui/tui-hooks.c: Update includes.
9766 * tui/tui-interp.c: Update includes.
9767 * tui/tui.c: Update includes.
9768 * Makefile.in: Update all tui/ dependencies.
9769 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
9770
9771 * Makefile.in: Update copyright. Update dependencies.
9772
9773 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
9774 problem.
9775
9776 2004-01-18 Andrew Cagney <cagney@redhat.com>
9777
9778 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
9779 instead of register_gdbarch_init.
9780
9781 * remote-sds.c (tohex): Delete unused function. Update copyright.
9782 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
9783 * v850-tdep.c (v850_register_virtual_size): Ditto.
9784 * target.c (normal_target_post_startup_inferior): Ditto.
9785 * source.c (ambiguous_line_spec): Ditto.
9786 * remote.c (adapt_remote_get_threadinfo): Ditto.
9787 * mi/mi-out.c (out_field_fmt): Ditto.
9788 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
9789 (output_control_change_notification): Ditto.
9790 * m68k-tdep.c (m68k_register_byte): Ditto.
9791 (m68k_remote_breakpoint_from_pc): Ditto.
9792 * ui-out.c (init_ui_out_state): Delete unused declaration.
9793 * stabsread.c (search_value): Ditto.
9794 * mi/mi-cmd-env.c (env_cli_command): Ditto.
9795 * maint.c (print_section_table): Ditto.
9796 * infrun.c (set_follow_fork_mode_command): Ditto.
9797
9798 2004-01-18 Mark Kettenis <kettenis@gnu.org>
9799
9800 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
9801 DW_CFA_def_cfa_exporession. Add support for
9802 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
9803 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
9804
9805 2004-01-18 Andrew Cagney <cagney@redhat.com>
9806
9807 * ocd.c: Update copyright.
9808 (bdm_read_register_command): Delete unused function.
9809 (_initialize_remote_ocd): Delete commented out reference.
9810 (get_quoted_char, reset_packet): Delete #if0ed function.
9811 (output_packet, put_quoted_char): Delete #if0ed function.
9812 (stu_put_packet, stu_get_packet): Delete #if0ed function.
9813 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
9814 (BDM_BREAKPOINT): Delete #if0ed macro.
9815 (remote_timeout): Delete #if0ed variable.
9816
9817 2004-01-18 Mark Kettenis <kettenis@gnu.org>
9818
9819 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
9820 (core-sol2.o): Remove dependency.
9821 * core-sol2.c: Remove file.
9822
9823 2004-01-17 Andrew Cagney <cagney@redhat.com>
9824
9825 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
9826 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
9827 enums.
9828
9829 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9830
9831 * remote.c: Update copyright years.
9832
9833 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9834
9835 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
9836
9837 2004-01-17 Andrew Cagney <cagney@redhat.com>
9838
9839 * mdebugread.c: Update copyright.
9840 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
9841 (parse_type, parse_procedure): Ditto.
9842 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
9843
9844 * cris-tdep.c (cris_store_struct_return): Put back accidently
9845 deleted function.
9846
9847 * gdbarch.sh: Update copyright year.
9848 * gdbarch.h, gdbarch.c: Re-generate.
9849
9850 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9851
9852 Suggested by George Anzinger.
9853 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
9854 correct stack offset. Include unknown opcode numbers in the error
9855 message.
9856
9857 2004-01-17 Andrew Cagney <cagney@redhat.com>
9858
9859 * x86-64-tdep.c (x86_64_init_abi): No need to clear
9860 extract_struct_value_address, i386 does not set it.
9861 * sparc64-tdep.c (sparc64_init_abi): Do not set
9862 extract_struct_value_address, never called.
9863 (sparc64_extract_struct_value_address): Delete function.
9864 * m68hc11-tdep.c: Update copyright.
9865 (m68hc11_gdbarch_init): Delete redundant assignment of
9866 extract_struct_value_address.
9867 * i386-tdep.c: Update copyright.
9868 (i386_gdbarch_init): Do not set extract_struct_value_address,
9869 never called.
9870 (i386_extract_struct_value_address): Delete function.
9871 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
9872 extract_struct_value_address, never called.
9873 (sparc32_extract_struct_value_address): #if 0 function. Add
9874 comments explaining its future.
9875
9876 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9877
9878 * arm-tdep.c (arm_write_pc): New function.
9879 (arm_gdbarch_init): Call set_gdbarch_write_pc.
9880
9881 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9882
9883 * breakpoint.c (must_shift_inst_regs): Delete.
9884 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
9885 and SHIFT_INST_REGS.
9886 * infcmd.c (step_1, step_1_continuation): Delete references to
9887 SHIFT_INST_REGS.
9888 * infrun.c (keep_going): Likewise.
9889 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
9890 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
9891
9892 2004-01-17 Andrew Cagney <cagney@redhat.com>
9893
9894 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9895 * gdbarch.h, gdbarch.c: Re-generate.
9896 * infcmd.c (print_return_value): Delete reference to
9897 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
9898
9899 * cris-tdep.c (cris_gdbarch_init): Do not set
9900 deprecated_extract_struct_value_address.
9901
9902 * xstormy16-tdep.c: Update copyright.
9903 (xstormy16_extract_struct_value_address): Update to current
9904 extract struct value address interface.
9905 (xstormy16_gdbarch_init): Set extract_struct_value_address.
9906 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
9907 current extract struct value address interface.
9908 (sh64_gdbarch_init): Set extract_struct_value_address.
9909
9910 * cris-tdep.c: Update copyright.
9911 (cris_extract_struct_value_address): Delete function.
9912 (struct_return_address): Delete variable.
9913 (cris_store_struct_return): Do not set struct_return_address.
9914
9915 * mcore-tdep.c: Update copyright.
9916 (mcore_extract_struct_value_address): Delete function. Update
9917 comments.
9918 (mcore_gdbarch_init): Update.
9919 * mn10300-tdep.c: Update copyright.
9920 (mn10300_extract_struct_value_address): Delete function.
9921 (mn10300_gdbarch_init): Update.
9922 * v850-tdep.c: Update copyright.
9923 (v850_extract_struct_value_address): Delete.
9924 (v850_gdbarch_init): Update.
9925 * ns32k-tdep.c: Update copyright.
9926 (ns32k_extract_struct_value_address): Delete.
9927 (ns32k_gdbarch_init): Update.
9928 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
9929 (hppa_gdbarch_init): Update.
9930 * vax-tdep.c: Update copyright.
9931 (vax_extract_struct_value_address): Delete.
9932 (vax_gdbarch_init): Update.
9933
9934 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
9935 * gdbarch.h, gdbarch.c: Re-generate.
9936 * procfs.c (procfs_fetch_registers): Delete reference to
9937 DEPRECATED_NPC_REGNUM.
9938 (procfs_store_registers): Ditto.
9939 * regcache.c (generic_target_write_pc): Simplify.
9940 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
9941
9942 * core-sol2.c (fetch_core_registers): Replace
9943 DEPRECATED_NPC_REGNUM with equivalent tdep value.
9944
9945 * hppa-tdep.c: Update copyright year.
9946 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
9947 NPC_REGNUM.
9948 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
9949
9950 * mips-tdep.c (mips_write_pc): New function.
9951 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
9952 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
9953 (mips_find_saved_regs, mips_software_single_step: Ditto.
9954 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
9955 mips_init_extra_frame_info, mips_pop_frame): Ditto.
9956
9957 2004-01-17 Andrew Cagney <cagney@redhat.com>
9958
9959 * mips-tdep.c: Re-indent. Group functions by ABI.
9960
9961 2004-01-17 Andrew Cagney <cagney@redhat.com>
9962
9963 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
9964 * gdbarch.c: Re-generate.
9965 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9966 DECR_PC_AFTER_BREAK to zero.
9967 * vax-tdep.c (vax_gdbarch_init): Ditto.
9968 * v850-tdep.c (v850_gdbarch_init): Ditto.
9969 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
9970 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
9971 * sh-tdep.c (sh_gdbarch_init): Ditto.
9972 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9973 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9974 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9975 * mips-tdep.c (mips_gdbarch_init): Ditto.
9976 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9978 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
9979 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9980 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9981 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9982 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9983 * frv-tdep.c (frv_gdbarch_init): Ditto.
9984 * cris-tdep.c (cris_gdbarch_init): Ditto.
9985 * avr-tdep.c (avr_gdbarch_init): Ditto.
9986 * arm-tdep.c (arm_gdbarch_init): Ditto.
9987 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
9988
9989 2004-01-17 J. Brobecker <brobecker@gnat.com>
9990
9991 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
9992 Delete, no longer used.
9993 (read_subrange_type): New function, mostly extracted from
9994 read_array_type().
9995 (read_array_type): Replace extracted code by call to
9996 read_subrange_type().
9997 (dwarf2_get_attr_constant_value): New function.
9998 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
9999 (add_partial_symbol): Likewise.
10000 (process_die): Likewise.
10001 (new_symbol): Likewise.
10002 (read_type_die): Likewise.
10003
10004 2004-01-16 Andrew Cagney <cagney@redhat.com>
10005
10006 * symfile.c: Update copyright year.
10007 (compare_symbols): Delete unused function.
10008 * stabsread.c: Update copyright year.
10009 (lrs_general_complaint): Delete unused function.
10010 (ref_search_value): Ditto.
10011 (get_substring): Delete declaration.
10012 * sh64-tdep.c: Update copyright year.
10013 (sh64_get_gdb_regnum): Delete unused function.
10014 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10015 Delete unused function.
10016
10017 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10018
10019 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10020 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10021
10022 2004-01-16 Andrew Cagney <cagney@redhat.com>
10023
10024 Changes from Peter Schauer.
10025 * rs6000-tdep.c: Update copyright year.
10026 (rs6000_push_dummy_call): Update the stack pointer before
10027 accessing the corresponding stack region.
10028 * rs6000-nat.c: Update copyright year.
10029 (set_host_arch): Set "info.abfd" to "exec_bfd".
10030
10031 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10032
10033 * blockframe.c: Update copyright year.
10034 (inside_entry_func): Don't treat a zero PC specially.
10035
10036 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10037
10038 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10039 variable.
10040 (gcore_create_callback): Ditto. Skip any memory segment that has
10041 no permissions set.
10042
10043 2004-01-14 David Carlton <carlton@kealia.com>
10044
10045 Change symbols for C++ nested types to contain the fully qualified
10046 name, if possible. (At least in the DWARF-2 case.) Partial fix
10047 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10048 c++/895.
10049 * c-exp.y (qualified_type): Handle types nested within classes.
10050 * cp-namespace.c: Update comments.
10051 (cp_set_block_scope): Delete #if 0.
10052 (cp_lookup_nested_type): Handle types nested within classes.
10053 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10054 when appropriate.
10055 (add_partial_symbol): Add the name of the enclosing namespace to
10056 types.
10057 (pdi_needs_namespace): New.
10058 (add_partial_namespace): Tweak comment.
10059 (add_partial_structure): New.
10060 (psymtab_to_symtab_1): Initialize processing_current_prefix
10061 here...
10062 (process_die): instead of here.
10063 (read_structure_scope): Try to figure out the name of the class or
10064 namespace that the structure might be defined within.
10065 (read_enumeration): Generate fully-qualified names, if possible.
10066 (read_namespace): Don't set name to NULL.
10067 (die_specification): New.
10068 (new_symbol): Generate fully-qualified names for types.
10069 (read_type_die): Determine appropriate prefix.
10070 (determine_prefix): New.
10071 (typename_concat): New.
10072 (class_name): New.
10073 * valops.c (value_aggregate_elt): Pass NOSIDE to
10074 value_struct_elt_for_reference.
10075 (value_struct_elt_for_reference): Make static, add NOSIDE
10076 parameter, call value_maybe_namespace_elt as a last resort.
10077 (value_namespace_elt): Break out code into
10078 value_maybe_namespace_elt.
10079 (value_maybe_namespace_elt): New.
10080
10081 2004-01-12 Andrew Cagney <cagney@redhat.com>
10082
10083 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10084 cooked floating-point registers.
10085 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10086 and value_to_register.
10087
10088 2004-01-13 Andrew Cagney <cagney@redhat.com>
10089
10090 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10091 * gdbarch.c: Re-generate.
10092 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10093 FUNCTION_START_OFFSET.
10094 * v850-tdep.c (v850_gdbarch_init): Ditto.
10095 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10096 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10097 * sh-tdep.c (sh_gdbarch_init): Ditto.
10098 * s390-tdep.c (s390_gdbarch_init): Ditto.
10099 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10100 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10101 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10102 * mips-tdep.c (mips_gdbarch_init): Ditto.
10103 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10104 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10106 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10107 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10108 * i386-tdep.c (i386_gdbarch_init): Ditto.
10109 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10110 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10111 * frv-tdep.c (frv_gdbarch_init): Ditto.
10112 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10113 * cris-tdep.c (cris_gdbarch_init): Ditto.
10114 * avr-tdep.c (avr_gdbarch_init): Ditto.
10115 * arm-tdep.c (arm_gdbarch_init): Ditto.
10116 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10117
10118 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10119
10120 * infrun.c (follow_fork_mode_ask): Remove.
10121 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10122 (follow_fork): Simplify and remove internal error for
10123 follow_fork_mode_ask.
10124 (_initialize_infrun): Update "set follow-fork-mode" help text.
10125
10126 2004-01-13 Andrew Cagney <cagney@redhat.com>
10127
10128 * configure.in: Update copyright year.
10129 (build_warnings): Add -Wunused-label.
10130 * configure: Re-generate.
10131
10132 2004-01-12 Andrew Cagney <cagney@redhat.com>
10133
10134 * exec.h (exec_ops): Make "extern".
10135
10136 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10137 the function is void.
10138 (mips_pseudo_register_write): Ditto.
10139
10140 2004-01-12 Andrew Cagney <cagney@redhat.com>
10141
10142 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10143 call. Never defined.
10144 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10145 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10146 (struct sparc_gregset, struct regcache): Ditto.
10147 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10148
10149 2004-01-12 Andrew Cagney <cagney@redhat.com>
10150
10151 * mi/ChangeLog: Delete file. Renamed to ...
10152 * mi/ChangeLog-1999-2003: New file.
10153 * tui/ChangeLog: Delete file. Renamed to ...
10154 * tui/ChangeLog-1998-2003: New file.
10155
10156 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10157
10158 * sparc64nbsd-tdep.c: Include "regset.h".
10159 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10160 Remove variables.
10161 (fetch_core_registers): Remove function.
10162 (sparc64nbsd_core_fns): Remove variable.
10163 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10164 functions.
10165 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10166 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10167 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10168
10169 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10170 sparc_extract_struct_value_address.
10171 (sparc32_gdbarch_init): Set extract_struct_value_address.
10172 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10173 function.
10174 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10175 return_value_on_stack.
10176
10177 * NEWS: Mention that %cs and %ss have been added to the AMD64
10178 configurations
10179
10180 * frame.c: Update copyright year.
10181 (get_prev_frame): Improve comment.
10182
10183 * sparc64fbsd-tdep.c: Include "regset.h".
10184 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10185 Remove variables.
10186 (fetch_core_registers): Remove function.
10187 (sparc64fbsd_core_fns): Remove variable.
10188 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10189 functions.
10190 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10191 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10192 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10193
10194 * sparcnbsd-tdep.c: Include "regset.h".
10195 (fetch_core_registers): Remove function.
10196 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10197 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10198 functions.
10199 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10200 TDEP->fpregset.
10201 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10202
10203 * sparc-tdep.h (struct regset): Provide opaque declaration.
10204 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10205 fpregset and sizeof_fpregset members.
10206 * sparc-tdep.c (struct regset): Provide opaque declaration.
10207 (sparc_regset_from_core_section): New function.
10208 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10209 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10210 Set regset_from_core_section when appropriate.
10211
10212 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10213
10214 * x86-64-tdep.c (amd64_non_pod_p): New function.
10215 (amd64_classify_aggregate): Return class memory for non-POD
10216 C++ structure types.
10217
10218 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10219 argument. Use it to reserve a register if necessary.
10220 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10221 amd64_push_arguments.
10222
10223 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10224
10225 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10226 register numbers in comments.
10227 * x86-64-tdep.h: Update copyright year.
10228 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10229 Adjust for addition of %cs and %ss.
10230 * amd64fbsd-nat.c: Update copyright year.
10231 (reg_offset): Add register offsets for %cs and %ss.
10232 * amd64fbsd-tdep.c: Update copyright year.
10233 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10234 (amd64fbsd_sc_reg_offset): Likewise.
10235 * x86-64-linux-nat.c: Update copyright year.
10236 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10237 and %ss.
10238 * amd64nbsd-nat.c: Update copyright year.
10239 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10240 * amd64nbsd-tdep.c: Update copyright year.
10241 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10242 * x86-64-linux-tdep.c: Update copyright year.
10243 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10244 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10245 * regformats/reg-x86-64.dat: Add %cs and %ss.
10246
10247 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10248 variables to prevent long lines. Update comments to reflect
10249 reality.
10250
10251 2004-01-09 David Carlton <carlton@kealia.com>
10252
10253 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10254 * dwarf2read.c (read_namespace): Pull out name-generating code
10255 into namespace_name. Rename previous_namespace to previous_prefix
10256 and processing_current_namespace to processing_current_prefix..
10257 (namespace_name): New function.
10258 (add_partial_symbol): Substitute uses of pdi->name with
10259 actual_name.
10260 * cp-support.h: Rename processing_current_namespace to
10261 processing_current_prefix.
10262 Update copyright year.
10263 * cp-namespace.c: Rename processing_current_namespace to
10264 processing_current_prefix.
10265 Update copyright year.
10266
10267 2004-01-09 Andrew Cagney <cagney@redhat.com>
10268
10269 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10270
10271 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10272
10273 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10274 complaining.
10275 (process_one_symbol): Deal with N_PATCH stabs.
10276
10277 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10278
10279 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10280 ifdeffed code.
10281 Update copyright year.
10282
10283 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10284
10285 * config/pa/tm-hppa.h: Update extern declarations for
10286 hppa32_hpux_frame_saved_pc_in_sigtramp,
10287 hppa32_hpux_frame_base_before_sigtramp, and
10288 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10289
10290 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10291
10292 * config/pa/tm-hppah.h: Update copyright years.
10293
10294 2004-01-08 Andrew Cagney <cagney@redhat.com>
10295
10296 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10297 (mips_o32_reg_struct_has_addr): Delete function.
10298 (mips_gdbarch_init): Update.
10299 (mips_extract_struct_value_address): Delete function.
10300
10301 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10302
10303 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10304 reality.
10305
10306 2004-01-07 Andrew Cagney <cagney@redhat.com>
10307
10308 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10309 architecture's elf flags (when available).
10310
10311 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10312 FPU to the start, check the MIPS FPU when looking for an old
10313 architecture.
10314 (set_mipsfpu_single_command): Update the architecture.
10315 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10316
10317 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10318 (mips_mask_address_p): Add "tdep" parameter.
10319 (show_mask_address, mips_addr_bits_remove): Update.
10320 (mips_dump_tdep): Update.
10321 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10322 (MIPS_STACK_ARGSIZE): Delete macro.
10323 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10324 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10325 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10326 (mips_dump_tdep): Update.
10327 (MIPS_SAVED_REGSIZE): Delete macro.
10328 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10329 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10330 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10331 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10332 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10333 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10334 (mips_pop_frame, return_value_location): Update.
10335 (mips_n32n64_return_value, mips_dump_tdep): Update.
10336
10337 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10338 MIPS ABI.
10339
10340 * mips-tdep.c: Update copyright.
10341 (mips_gdbarch_init): Merge two code blocks handling the register
10342 name and number layout.
10343
10344 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10345
10346 * tracepoint.c (validate_actionline): Fix segv at EOF
10347
10348 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10349
10350 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10351 properly for static fields.
10352
10353 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10354 Jason Molenda <jmolenda@apple.com>
10355
10356 * disasm.c: Update copyright to include 2004.
10357 (do_mixed_source_and_assembly): For uiout asm list
10358 and tuple cleanups, initialize to null_cleanup instead of
10359 NULL and do so prior to loop. Only reset when we close off
10360 the tuple/list. Move check for whether to close off the
10361 asm tuple/list to after dump_insns call where it will be run
10362 on each loop iteration.
10363
10364 2004-01-05 Andrew Cagney <cagney@redhat.com>
10365
10366 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10367 should be a switch case and not a label.
10368 * mips-tdep.c (mips32_next_pc): Delete unused labels
10369 "greater_equal_branch" and "less_zero_branch".
10370 * jv-valprint.c (java_print_value_fields): Delete unused label
10371 "flush_it".
10372
10373 * target.c (unpush_target): Only close a target that is in the
10374 target stack.
10375
10376 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10377
10378 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10379 address from [sp + 64] instead of %o2.
10380
10381 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10382 fixes PR backtrace/1476.
10383
10384 2004-01-05 Andrew Cagney <cagney@redhat.com>
10385
10386 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10387 move to start of file.
10388 * i386-tdep.h (struct regcache): Add opaque declaration.
10389 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10390 declaration.
10391 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10392 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10393 * win32-nat.c (fake_create_process): Use ISO C style definition.
10394 * stabsread.c (define_symbol): Delete #ifndef
10395 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10396 stabs_argument_has_addr call, macro never defined.
10397
10398 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10399
10400 * op50-rom.c: Delete.
10401 * w89k-rom.c: Delete.
10402 * Makefile.in: Remove references.
10403
10404 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10405
10406 * x86-64-tdep.c: Update copyright year.
10407 (struct amd64_register_info): Rename from x86_64_register_info.
10408 (amd64_register_info): Rename from x86_64_register_info.
10409 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10410 (amd64_register_name): Rename from x86_64_register_name.
10411 (amd64_register_type): Rename from x86_64_register_type.
10412 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10413 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10414 (amd64_dwarf_reg_to_regnum): Rename from
10415 x86_64_dwarf_reg_to_regnum.
10416 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10417 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10418 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10419 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10420 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10421 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10422 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10423 (amd64_frame_cache): Rename from x86_64_frame_cache.
10424 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10425 (amd64_frame_prev_register): Rename from
10426 x86_64_frame_prev_register.
10427 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10428 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10429 (amd64_sigtramp_frame_cache): Rename from
10430 x86_64_sigtramp_frame_cache.
10431 (amd64_sigtramp_frame_prev_register): Rename from
10432 x86_64_sigtramp_frame_prev_register.
10433 (amd64_sigtramp_frame_unwind): Rename from
10434 x86_64_sigtramp_frame_unwind.
10435 (amd64_sigtramp_frame_sniffer): Rename from
10436 x86_64_sigtramp_frame_sniffer.
10437 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10438 (amd64_frame_base): Rename from x86_64_frame_base.
10439 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10440 (amd64_frame_align): Rename from x86_64_frame_align.
10441 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10442 (amd64_regset_from_core_section): Rename from
10443 x86_64_regset_from_core_section.
10444 (x86_64_init_abi): Update comments.
10445
10446 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
10447
10448 * MAINTAINERS (write after approval): Add myself.
10449
10450 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10451
10452 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10453 `float' arguments.
10454
10455 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10456
10457 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10458 such that it mentions a specific version of GCC that exhibits this
10459 bug.
10460
10461 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10462
10463 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10464 structure that has a single `float' member, store it in %f1 in
10465 addition to %f0.
10466
10467 * sparc-sol2-nat.c: Add missing '\'.
10468
10469 * sparc-tdep.c (sparc32_return_value): New function.
10470 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10471 Remove functions.
10472 (sparc32_gdbarch_init): Set return_value, don't set
10473 extract_return_value, store_return_value, use_struct_convention
10474 and return_value_on_stack.
10475
10476 * sparc-sol2-nat.c: Add missing ')'.
10477
10478 2004-01-03 J. Brobecker <brobecker@gnat.com>
10479
10480 * infrun.c (handle_step_into_function): New function.
10481 (handle_inferior_event): Extract out some code into the new
10482 function above.
10483
10484 2004-01-03 J. Brobecker <brobecker@gnat.com>
10485
10486 * infrun.c (handle_inferior_event): Move the declaration of
10487 real_stop_pc inside the if blocks where it is used.
10488
10489 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10490
10491 * sparc64-tdep.c (sparc64_16_byte_align_p)
10492 (sparc64_store_floating_fields, sparc64_store_floating_fields):
10493 Use check_typedef to get subtypes of structures and unions.
10494 (sparc64_store_return_value): Fix calculation of the appropriate
10495 offset into VALBUF when storing a structure or union.
10496 (sparc64_return_value): New function.
10497 (sparc64_use_struct_convention): Remove function.
10498 (sparc64_init_abi): Set return_value, don't set
10499 extract_return_value, store_return_value and
10500 use_struct_convention.
10501
10502 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
10503
10504 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
10505 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
10506 gdb/config/alpha/xm-alphaosf.h,
10507 gdb/config/powerpc/tm-ppcle-eabi.h,
10508 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
10509 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
10510 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
10511 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
10512 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
10513 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
10514 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
10515 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
10516 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
10517 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
10518 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
10519 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
10520 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
10521 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
10522 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
10523 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
10524 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
10525 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
10526 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
10527 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
10528 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
10529 Remove lines for .cvsignore files.
10530
10531 2004-01-03 J. Brobecker <brobecker@gnat.com>
10532
10533 * infrun.c: Back out the previous change.
10534
10535 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10536
10537 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
10538 sparc-*-sunos4* to the list of REMOVED configurations.
10539
10540 * configure.tgt: Add back sparc-*-vxworks*.
10541 * remote-vxsparc.c: Remove all includes except for "defs.h",
10542 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
10543 Include "sparc-tdep.h".
10544 (SPARC_R_G1): New define.
10545 (vxsparc_gregset): New variable.
10546 (ext_format_sparc): Remove extern declaration.
10547 (vx_read_register): Rewrite to use sparc32_supply_gregset and
10548 sparc32_supply_fpregset.
10549 (vx_write_register): Rewrite to use sparc32_collect_gregset,
10550 sparc_collect_rwindow and sparc32_collect_fpregset.
10551 * config/sparc/tm-vxworks.h: New file, based on recently removed
10552 tm-vxsparc.h.
10553 * config/sparc/vxworks.mt: New file, based on recently removed
10554 vxworks.mt.
10555
10556 2004-01-03 J. Brobecker <brobecker@gnat.com>
10557
10558 * infrun.c (handle_step_into_function): New function.
10559 (handle_inferior_event): Extract out some code into the new
10560 function above.
10561
10562 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10563
10564 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
10565 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
10566 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
10567 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
10568 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
10569 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
10570 (sparc_nat_h): New variable.
10571 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
10572 (tm-sun4os4.h): Remove dependency.
10573 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
10574 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
10575 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
10576 sparc-tdep.o): Update dependencies.
10577 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
10578 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
10579 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
10580 dependencies.
10581 * configure.host: Remove existing sparc-*-lynxos*,
10582 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
10583 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
10584 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
10585 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
10586 triplets.
10587 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
10588 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
10589 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
10590 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
10591 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
10592 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
10593 sparc64-*-solaris2* and sparc64-*-* triplets.
10594 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
10595 "symtab.h" and "objfiles.h".
10596 (BIAS): Remove define.
10597 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
10598 (X_DISP19): Remove macros.
10599 (sparc_fetch_instruction): Remove function.
10600 (struct gdbarch_tdep): Remove definition.
10601 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
10602 (sparc_breakpoint_from_pc): Remove function.
10603 (struct sparc64_frame_cache): Remove definition.
10604 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
10605 sparc64_unwind_pc): Remove functions.
10606 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
10607 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
10608 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
10609 (sparc64_frame_cache): Change return type to `struct
10610 sparc_frame_cache *'. Simply call sparc_frame_cache.
10611 (sparc64_frame_this_id, sparc64_frame_prev_register,
10612 sparc64_frame_base_address): Use `struct sparc_frame_cache'
10613 instead of `struct sparc64_frame_cache.
10614 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
10615 sparc_analyze_control_transfer, sparc_software_single_step,
10616 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
10617 _initialize_sparc64_tdep): Remove functions.
10618 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
10619 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
10620 macros.
10621 (sparc64_supply_gregset, sparc64_collect_gregset,
10622 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
10623 (sparc64_init_abi): New function.
10624 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
10625 inclusion guard. Include "sparc-tdep.h".
10626 (BIAS): Define.
10627 (r_tstate_offset, r_fprs_offset): New defines.
10628 (enum sparc_regnum): Remove defenition.
10629 (enum sparc64_regnum): Reformat.
10630 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
10631 (sparc64_init_abi, sparc64_supply_gregset,
10632 sparc64_collect_gregset, sparc64_supply_fpregset,
10633 sparc64_collect_fpregset): New prototypes.
10634 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
10635 Add extern declarations.
10636 (sparc64_sol2_init_abi): New prototype.
10637 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10638 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10639 prototypes.
10640 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
10641 "sparnbsd-nat.h".
10642 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
10643 functions.
10644 (_initialize_sparc64fbsd_nat): Remove initialization of
10645 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
10646 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
10647 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
10648 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
10649 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
10650 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
10651 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
10652 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
10653 (sparc64fbsd_r_y_offset): Remove variables.
10654 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10655 Make static and const.
10656 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10657 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10658 functions.
10659 (sparc64fbsd_gregset): New variable.
10660 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
10661 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
10662 and sparc64_supply_fpregset.
10663 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
10664 (sparc64fbsd_sigtramp_frame_this_id)
10665 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
10666 (sparc64fbsd_sigtramp_frame_unwind): New variable.
10667 (sparc64fbsd_sigtramp_frame_sniffer): New function.
10668 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
10669 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
10670 * sparcnbsd-tdep.c: Update copyright year. Include
10671 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
10672 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
10673 "value.h" and "sparcnbsd-tdep.h".
10674 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
10675 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
10676 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
10677 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
10678 defines.
10679 (sparcnbsd_gregset): New variable.
10680 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
10681 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
10682 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
10683 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
10684 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
10685 variables.
10686 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
10687 (sparc32nbsd_sigcontext_frame_this_id)
10688 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
10689 (sparc32nbsd_sigcontext_frame_unwind): New variable.
10690 (sparc32nbsd_sigtramp_frame_sniffer): New function.
10691 (sparcnbsd_get_longjmp_target_32,
10692 sparcnbsd_get_longjmp_target_64): Remove functions.
10693 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
10694 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
10695 sparcnbsd_init_elf): Remove.
10696 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
10697 (sparcnbsd_elf_init_abi): New functions.
10698 (_initialize_sparcnbsd_tdep): New prototype.
10699 (_initialize_sparnbsd_tdep): Update.
10700 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
10701 corelow.o. Add sparc64-nat.o and sparc-nat.o.
10702 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
10703 * config/sparc/linux.mh: Update comment.
10704 (XM_FILE, HOST_IPC): Remove variables.
10705 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
10706 sparc-linux-nat.o.
10707 * config/sparc/linux.mt: Update comment.
10708 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
10709 * config/sparc/nbsd.mt: Reformat.
10710 * config/sparc/nbsd64.mh: Update comment.
10711 (NATDEPFILES): Add sparc-nat.o.
10712 * config/sparc/nbsd64.mt: Update comment.
10713 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
10714 (TM_FILE): Set to tm-nbsd.h.
10715 * config/sparc/nbsdelf.mh: Update comment.
10716 (NATDEPFILES): Add sparc-nat.o.
10717 (XM_FILE): Delete.
10718 * config/sparc/nbsdaout.mh: Update comment.
10719 (NATDEPFILES): Add sparc-nat.o
10720 (XM_FILE): Delete.
10721 * config/sparc/nm-linux.h: Update copyright year. Don't include
10722 "config/nm-svr4.h" and "solib.h". Add protection against multiple
10723 inclusion.
10724 (KERNEL_U_SIZE): Remove define.
10725 (kernel_u_size): Remove prototype.
10726 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
10727 * config/sparc/nm-nbsd.h: Update copyright. Don't include
10728 "regcache.h".
10729 (CHILD_PREPARE_TO_STORE): Remove define.
10730 * config/sparc/nm-nbsdaout.h: Tweak some comments.
10731 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
10732 sparcnbsd-nat.c: Rewrite files.
10733 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
10734 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
10735 sparcnbsd-tdep.h: Remove files.
10736 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
10737 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
10738 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
10739 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
10740 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
10741 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
10742 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
10743 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
10744 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
10745 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
10746 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
10747 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
10748 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
10749 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
10750 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
10751 * config/sparc/linux64.mh, config/sparc/linux64.mt,
10752 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
10753 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
10754 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
10755
10756 2004-01-02 Andrew Cagney <cagney@redhat.com>
10757
10758 From 2003-12-18 Kazuhiro Inaoka:
10759 * configure.host: Add m32r-linux target.
10760
10761 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
10762
10763 * top.c (print_gdb_version): Update year to 2004.
10764
10765 2004-01-02 Mark Mitchell <mark@codesourcery.com>
10766
10767 * MAINTAINERS: Add myself to the write-after-approval category.
10768
10769 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
10770
10771 From Bernardo Innocenti <bernie@develer.com>:
10772 * configure.tgt: Add uClinux target.
10773
10774 2004-01-02 Andrew Cagney <cagney@redhat.com>
10775
10776 * utils.c (do_my_cleanups): Make static, add forward declaration.
10777 * defs.h (do_my_cleanups): Delete declaration.
10778
10779 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
10780
10781 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
10782 bfd/ChangeLog-0203.
10783
10784 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10785
10786 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
10787 in <machine/reg.h>.
10788 * configure, config.in: Regenerate.
10789
10790 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
10791 tui/ChangeLog-1998-2003.
10792 \f
10793 Local Variables:
10794 mode: change-log
10795 left-margin: 8
10796 fill-column: 74
10797 version-control: never
10798 End:
This page took 0.264829 seconds and 5 git commands to generate.