b547b04307955a464a8668b6848107438b3d9c6a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2
3 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4 variables. Incapitalized "process".
5
6 * configure.in: Add cursesX to the list of possible curses libs.
7 Add cursesX.h to the list of possible curses headers.
8 * configure, config.in: Regenerate.
9
10 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
11
12 * configure.in: Test for struct lwp in <sys/lwp.h>.
13 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
14 the offset of l_addr in struct lwp.
15
16 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
17
18 * bsd-kvm.c: Include "gdbcore.h"
19 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
20
21 2004-08-07 Andrew Cagney <cagney@gnu.org>
22
23 * gdbtypes.c (build_flt, build_complex): New functions.
24 (gdbtypes_post_init): Use.
25
26 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
27
28 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
29 through to builtin_type_uint128.
30
31 * c-exp.y: Use builtin_type function to obtain builtin types.
32
33 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
34 builtin_uint128.
35 * gdbtypes.c (gdbtypes_post_init): Update.
36 (build_gdbtypes): Move initialization of builtin_type_int0
37 through to builtin_type_uint128 from here ...
38 (_initialize_gdbtypes): ... to here.
39 * d10v-tdep.c (d10v_register_type): Update.
40
41 * doublest.c: Update copyright.
42 (floatformat_from_length): Call error when floatformat is NULL.
43 (extract_floating_by_length): Remove NULL fmt check.
44 (store_floating_by_length): Ditto.
45
46 2004-08-07 Andrew Cagney <cagney@gnu.org>
47
48 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
49 that the register is valid.
50
51 2004-08-05 Mark Kettenis <kettenis@chello.nl>
52
53 * i386-linux-tdep.c (i386_linux_sigtramp_start)
54 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
55 struct frame_info *. Use safe_frame_unwind_memory instead of
56 deprecated_read_memory_nobpt.
57 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
58 changed signature of i386_linux_sigtramp_start and
59 i386_linux_rt_sigtramp_start.
60
61 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
62 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
63 instead of deprecated_read_memory_nobpt.
64 (i386nbsd_sigtramp_p): Adjust for changed signature of
65 i386nbsd_sigtramp_offset.
66
67 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
68 safe_frame_unwind_memory instead of target_read_memory.
69
70 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
71 !NO_SYS_FILE.
72 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
73 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
74 (_initialize_kernel_u_addr): Remove prototype and function.
75 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
76 !NO_SYS_FILE.
77 * xcoffread.c: Likewise.
78
79 2004-08-06 Mark Kettenis <kettenis@gnu.org>
80
81 * vax-nat.c: New file.
82 * vaxbsd-nat.c: Tweak comment.
83 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
84 vaxnbsd-tdep.c.
85 (vax-nat.o): New dependency.
86 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
87 (vax-*-ultrix2*): Remove.
88 * config/vax/vax.mh: New file.
89 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
90 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
91 (vax_register_u_addr): New prototype.
92 (REGISTER_U_ADDR): Define using vax_register_u_addr.
93 * config/vax/vaxult2.mh: Remove file.
94 * config/vax/vaxult.mh: Remove file.
95 * config/vax/vaxbsd.mh: Remove file.
96 * config/vax/vax.mt (TM_FILE): Remove.
97 * config/vax/tm-vaxbsd.h: Remove file.
98
99 2004-08-06 Joel Brobecker <brobecker@gnat.com>
100
101 * aix-thread.c (get_signaled_thread): New function.
102 (iter_trap): Delete, no longer used.
103 (iter_tid): New function.
104 (pd_update): Find the thread that received the SIGTRAP signal
105 by first locating the kernel thread, and then finding its
106 associated thread.
107
108 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
109
110 * lin-lwp.c (child_wait): Continue inferior after processing
111 PTRACE_EVENT_CLONE event.
112
113 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
114
115 * MAINTAINERS: Add self to Write-After-Approval.
116
117 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
118
119 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
120 libunwind-xxxx.so" where xxxx is UNW_TARGET.
121
122 2004-08-05 Andrew Cagney <cagney@gnu.org>
123
124 * config/xm-sysv4.h: Delete file.
125 * config/mips/xm-irix5.h: Delete file.
126 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
127 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
128 * config/ia64/xm-aix.h: Delete file.
129 * config/ia64/aix.mh (XM_FILE): Delete.
130 * config/pa/xm-hppah.h: Delete file.
131 * config/pa/hpux11w.mh (XM_FILE): Delete.
132 * config/pa/hpux11.mh (XM_FILE): Delete.
133 * config/pa/hpux1020.mh (XM_FILE): Delete.
134 * config/pa/hppahpux.mh (XM_FILE): Delete.
135
136 * config/alpha/xm-alphalinux.h: Delete file.
137 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
138 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
139 * config/alpha/xm-alphaosf.h: Delete file.
140 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
141 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
142 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
143 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
144
145 * config/i386/xm-i386v.h: Delete file.
146 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
147 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
148 * config/i386/xm-i386sco.h: Delete file.
149 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
150 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
151 * config/i386/xm-i386v4.h: Delete file.
152 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
153 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
154 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
155 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
156
157 * config/vax/xm-vax.h: Delete file.
158 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
159 * config/vax/xm-vaxult2.h: Delete file.
160 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
161 * config/vax/vaxult2.mh (XM_FILE): Delete.
162 * config/vax/xm-vaxult.h: Delete file.
163 * config/vax/vaxult.mh (XM_FILE): Delete.
164 * config/vax/xm-vaxbsd.h: Delete file.
165 * config/vax/vaxbsd.mh (XM_FILE): Delete.
166
167 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
168 * gdbarch.h, gdbarch.c: Re-generate.
169 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
170 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
171 * frame.h: Delete deprecated_read_fp from comments.
172 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
173 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
174
175 2004-08-04 Mark Kettenis <kettenis@gnu.org>
176
177 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
178 trampoline in OpenBSD 3.5-current.
179
180 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
181 SSE registers.
182
183 * Makefile.in: Remove embedded page breaks.
184
185 2004-08-04 Jim Blandy <jimb@redhat.com>
186
187 * regcache.c (regcache_raw_read): Assert that, after calling
188 target_fetch_registers, the register we're reading is cached.
189
190 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
191 a call to 'internal_error', with a more helpful error message.
192 * rs6000-tdep.c (e500_pseudo_register_read,
193 e500_pseudo_register_write, rs6000_store_return_value): Same.
194
195 2004-08-04 Andrew Cagney <cagney@gnu.org>
196
197 * Makefile.in: Update dependencies.
198
199 2004-08-04 Jim Blandy <jimb@redhat.com>
200
201 Change the layout of the PowerPC E500 raw register cache to allow
202 the lower 32-bit halves of the GPRS to be their own raw registers,
203 not pseudoregisters.
204 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
205 add ppc_ev0_upper_regnum flag.
206 * rs6000-tdep.c: #include "reggroups.h".
207 (spe_register_p): Recognize the ev upper half registers as SPE
208 registers.
209 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
210 registers.
211 (e500_move_ev_register): New function.
212 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
213 vector registers are the pseudo-registers now, formed by splicing
214 together the gprs and the upper-half registers.
215 (e500_register_reggroup_p): New function.
216 (P): Macro deleted.
217 (P8, A4): New macro.
218 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
219 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
220 macros.
221 (registers_e500): Rearrange register set so that the raw register
222 set contains 32-bit GPRs and upper-half registers, and the SPE
223 vector registers become pseudo-registers.
224 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
225 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
226 register numbers are now the same for the E500 as they are for
227 other PowerPC variants. Register e500_register_reggroup_p as the
228 register group function for the E500.
229 * Makefile.in (rs6000-tdep.o): Update dependencies.
230
231 Adapt PPC E500 native support to the new raw regcache layout.
232 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
233 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
234 (fetch_spe_register, store_spe_register): Handle fetching/storing
235 all the SPE registers at once, if regno == -1. These now take
236 over the job of fetch_spe_registers and store_spe_registers.
237 (fetch_spe_registers, store_spe_registers): Deleted.
238 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
239 unconditionally; they're always raw. Fetch/store SPE upper half
240 registers, if present, instead of ev registers.
241 (fetch_register, store_register): Remove sanity checks: gprs are
242 never pseudo-registers now, so we never need to even mention any
243 registers that are ever pseudoregisters.
244
245 Use a fixed register numbering when communicating with the PowerPC
246 simulator.
247 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
248 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
249 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
250 New functions.
251 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
252 init_sim_regno_table.
253 * Makefile.in (gdb_sim_ppc_h): New variable.
254 (rs6000-tdep.o): Update dependencies.
255
256 2004-08-02 Andrew Cagney <cagney@gnu.org>
257
258 * cris-tdep.c (cris_register_size): Restore function, still used
259 locally.
260
261 * gdbarch.sh (deprecated_target_read_fp)
262 (deprecated_frame_locals_address, deprecated_frame_args_address)
263 (deprecated_frame_chain_valid, deprecated_frame_chain)
264 (deprecated_init_extra_frame_info, deprecated_pop_frame)
265 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
266 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
267 * gdbarch.h, gdbarch.c: Re-generate.
268 * regcache.c (deprecated_read_fp): Do not call
269 DEPRECATED_TARGET_READ_FP_P.
270 * infcmd.c (default_print_registers_info): Do not call
271 DEPRECATED_DO_REGISTERS_INFO.
272 * frame-base.c (default_frame_locals_address): Do not call
273 DEPRECATED_FRAME_LOCALS_ADDRESS.
274 (default_frame_args_address): Do not call
275 DEPRECATED_FRAME_ARGS_ADDRESS.
276
277 * gdbarch.sh (deprecated_register_raw_size)
278 (deprecated_register_virtual_size:int): Delete.
279 * gdbarch.h, gdbarch.c: Re-generate.
280 * cris-tdep.c (cris_register_size): Delete.
281 (cris_gdbarch_init): Update.
282 * alpha-tdep.c (alpha_register_raw_size)
283 (alpha_register_virtual_size): Delete.
284 (alpha_gdbarch_init): Update.
285
286 * gdbarch.sh (deprecated_register_virtual_type)
287 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
288 (deprecated_dummy_write_sp): Delete.
289 * gdbarch.h, gdbarch.c: Re-generate.
290
291 * gdbarch.sh (deprecated_register_bytes): Delete.
292 * gdbarch.h, gdbarch.c: Re-generate.
293 * regcache.c (deprecated_register_bytes): New function.
294 * regcache.h (deprecated_register_bytes): Declare.
295 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
296 * v850-tdep.c (v850_gdbarch_init): Update.
297 * sh64-tdep.c (sh64_gdbarch_init): Update.
298 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
299 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
300 * mcore-tdep.c (mcore_gdbarch_init): Update.
301 * cris-tdep.c (cris_gdbarch_init): Update.
302 * arm-tdep.c (arm_gdbarch_init): Update.
303 * remote.c (init_remote_state): Update.
304 * remote-vx.c (vx_prepare_to_store): Update.
305 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
306 * irix5-nat.c (fetch_core_registers): Update.
307 * cris-tdep.c (cris_register_bytes_ok): Update.
308 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
309
310 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
311 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
312 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
313 (mips_insn16_frame_base_address, mips_insn16_frame_base)
314 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
315 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
316 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
317 (mips_insn32_frame_base_address, mips_insn32_frame_base)
318 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
319 with mips_insn16 and mips_insn32.
320
321 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
322 * rs6000-tdep.c (rs6000_push_dummy_call)
323 (rs6000_extract_return_value): Use register_size.
324 * xstormy16-tdep.c (xstormy16_get_saved_register)
325 (xstormy16_extract_return_value): Ditto.
326 * valops.c (value_assign): Ditto.
327 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
328 * v850-tdep.c (v850_extract_return_value): Ditto.
329 * tracepoint.c (collect_symbol): Ditto.
330 * target.c (debug_print_register): Ditto.
331 * stack.c (frame_info): Ditto.
332 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
333 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
334 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
335 (store_register_using_P): Ditto.
336 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
337 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
338 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
339 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
340 * regcache.c (deprecated_read_register_bytes)
341 (deprecated_write_register_bytes, read_register)
342 (write_register): Ditto.
343 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
344 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
345 * monitor.c (monitor_supply_register, monitor_fetch_register)
346 (monitor_store_register): Ditto.
347 * mn10300-tdep.c (mn10300_pop_frame_regular)
348 (mn10300_print_register): Ditto.
349 * mipsv4-nat.c (fill_fpregset): Ditto.
350 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
351 (mips64_fill_fpregset): Ditto.
352 * mi/mi-main.c (register_changed_p, get_register)
353 (mi_cmd_data_write_register_values): Ditto.
354 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
355 * irix5-nat.c (fill_gregset, fetch_core_registers):
356 * infrun.c (write_inferior_status_register): Ditto.
357 * infptrace.c (fetch_register, store_register): Ditto.
358 * infcmd.c (default_print_registers_info): Ditto.
359 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
360 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
361 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
362 * hpux-thread.c (hpux_thread_fetch_registers)
363 (hpux_thread_store_registers): Ditto.
364 * hppah-nat.c (store_inferior_registers, fetch_register):
365 * findvar.c (value_from_register): Ditto.
366 * dve3900-rom.c (fetch_bitmapped_register):
367 * cris-tdep.c (cris_gdbarch_init): Ditto.
368 * alpha-tdep.h: Ditto.
369 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
370
371 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
372 DEPRECATED_REGISTER_RAW_SIZE from comments.
373 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
374 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
375 DEPRECATED_REGISTER_RAW_SIZE.
376 * findvar.c (value_of_register): Simplify by assuming that the
377 registers raw and virtual sizes are identical.
378 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
379 comment.
380 * arch-utils.c (generic_register_size): Simplify by assuming
381 register_type.
382
383 * regcache.c (legacy_read_register_gen, real_register)
384 (legacy_write_register_gen): Delete, not used.
385
386 * regcache.c (struct regcache_descr): Delete legacy_p.
387 (init_legacy_regcache_descr): Delete function.
388 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
389 Do not use deprecated register functions.
390 (regcache_raw_read, deprecated_write_register_gen):
391 (deprecated_read_register_gen, regcache_raw_write): Delete code
392 predicated on legacy_p.
393 (register_size): Delete check against register raw size.
394
395 * cris-tdep.c (cris_register_type): Replace
396 cris_register_virtual_type.
397 (cris_gdbarch_init): Update, set register_type.
398
399 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
400 * gdbarch.h, gdbarch.c: Re-generate.
401 * arm-tdep.c (arm_frameless_function_invocation): Delete.
402 (arm_gdbarch_init) Do not set frameless function invocation.
403 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
404 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
405 * frv-tdep.c (frv_frameless_function_invocation): Delete.
406 (frv_gdbarch_init): Do not set frameless function invocation.
407 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
408 * sh-tdep.c (sh_gdbarch_init): Ditto.
409 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
410 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
411 * avr-tdep.c (avr_gdbarch_init): Ditto.
412
413 * blockframe.c (legacy_frame_chain_valid): Delete function.
414
415 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
416 and pc. Update comments.
417 (pc_in_dummy_frame): Delete function.
418 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
419 use the "id".
420 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
421 call_hi, top and pc, use the id.
422 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
423
424 * dummy-frame.c: Include "gdb_string.h".
425 (generic_save_call_dummy_addr, generic_push_dummy_frame)
426 (generic_save_dummy_frame_tos): Delete.
427 (dummy_frame_push): New function, replaces above.
428 * dummy-frame.h: Update copyright.
429 (dummy_frame_push): Declare.
430 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
431 (generic_save_call_dummy_addr): Delete declarations.
432 * infcall.c: Include "dummy-frame.h".
433 (call_function_by_hand): Add locals caller_regcache,
434 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
435 with call to frame_save_as_regcache plus cleanup. Delete calls to
436 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
437 Move clear_proceed_status to just before the resume, add call to
438 dummy_frame_push (discard cleanup).
439 * Makefile.in (infcall.o): Add $(dummy_frame_h).
440 (dummy-frame.o): Add $(gdb_string_h).
441
442 2004-08-01 Andrew Cagney <cagney@gnu.org>
443
444 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
445 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
446 * dummy-frame.c (find_dummy_frame): Delete.
447 (struct dummy_frame_cache, dummy_frame_sniffer)
448 (dummy_frame_prev_register, dummy_frame_this_id)
449 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
450 frame unwinder using a dummy_frame_cache.
451
452 2004-08-01 Andrew Cagney <cagney@gnu.org>
453
454 * frame.h (frame_save_as_regcache): Declare.
455 * frame.c (frame_save_as_regcache): New function.
456 (do_frame_read_register): Replace do_frame_unwind_register.
457 (frame_pop): Use frame_save_as_regcache.
458 * dummy-frame.c (generic_push_dummy_frame): Use
459 frame_save_as_regcache.
460
461 2004-08-01 Joel Brobecker <brobecker@gnat.com>
462
463 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
464 file as included until we record the first line in the linetable.
465
466 2004-08-01 Andrew Cagney <cagney@gnu.org>
467
468 * frame.h (deprecated_pop_dummy_frame)
469 (deprecated_read_register_dummy)
470 (deprecated_generic_find_dummy_frame): Delete.
471 * dummy-frame.c (deprecated_generic_find_dummy_frame)
472 (deprecated_read_register_dummy)
473 (deprecated_find_dummy_frame_regcache)
474 (discard_innermost_dummy)
475 (deprecated_pop_dummy_frame): Delete.
476 (dummy_frame_this_id): Simplify.
477 (struct dummy_frame): Delete "fp" and "sp".
478 (find_dummy_frame): Simplify.
479 (generic_push_dummy_frame): Do not set "fp" or "sp".
480 (fprint_dummy_frames): Do not print "fp" and "sp"
481
482 2004-08-01 Mark Kettenis <kettenis@gnu.org>
483
484 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
485 (struct i386_insn): New structure.
486 (i386_match_insn): New function.
487 (i386_frame_setup_skip_insns): New variable.
488 (i386_analyze_frame_setup): Change to use i386_match_insn and the
489 array i386_frame_setup_insns of instructions that should be
490 skipped inside the frame setup sequence.
491
492 2004-08-01 Andrew Cagney <cagney@gnu.org>
493
494 * frame.h (deprecated_frame_xmalloc_with_cleanup)
495 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
496 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
497 * stack.c (frame_info): Delete references to
498 DEPRECATED_FRAME_INIT_SAVED_REGS and
499 deprecated_get_frame_saved_regs.
500 * frame.c (struct frame_info): Delete saved_regs and extra_info.
501 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
502 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
503 (frame_unwind_register_signed)
504 (frame_unwind_register_unsigned)
505 (frame_unwind_unsigned_register): Use register_size.
506 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
507 (deprecated_frame_xmalloc_with_cleanup)
508 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
509 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
510
511 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
512 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
513 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
514 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
515
516 * infcall.c (call_function_by_hand): Do not use
517 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
518 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
519 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
520 DEPRECATED_STACK_ALIGN.
521
522 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
523
524 Committed by Andrew Cagney.
525 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
526
527 2004-08-01 Andrew Cagney <cagney@gnu.org>
528
529 * mips-tdep.c (mips16_frame_cache)
530 (mips16_frame_this_id, mips16_frame_prev_register)
531 (mips16_frame_unwind, mips16_frame_sniffer)
532 (mips16_frame_base_address, mips16_frame_base)
533 (mips16_frame_base_sniffer, mips32_frame_cache)
534 (mips32_frame_this_id, mips32_frame_prev_register)
535 (mips32_frame_unwind, mips32_frame_sniffer)
536 (mips32_frame_base_address, mips32_frame_base)
537 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
538 separate heuristic mips16 and mips32 unwinders.
539 (mips_stub_frame_cache, mips_stub_frame_this_id)
540 (mips_stub_frame_prev_register)
541 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
542 (mips_stub_frame_base_address, mips_stub_frame_base)
543 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
544 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
545 match true mdebug frames.
546 (non_heuristic_proc_desc): Add forward declaration.
547
548 2004-08-01 Andrew Cagney <cagney@gnu.org>
549
550 * config/mips/tm-irix6.h: Delete file.
551 * config/mips/tm-irix5.h: Delete file.
552 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
553 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
554
555 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
556 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
557 * config/nm-gnu.h (NO_CORE_OPS): Delete.
558 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
559 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
560 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
561 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
562 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
563 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
564 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
565 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
566 (TARGET_SIGNAL_RAW_VALUES): Delete.
567 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
568 Delete.
569 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
570 (TARGET_HW_WATCH_LIMIT): Delete.
571 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
572 * minimon.h: Delete file.
573
574 * trad-frame.c (trad_frame_get_this_base)
575 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
576 functions.
577 * trad-frame.h (trad_frame_set_this_base)
578 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
579
580 2004-07-31 Andrew Cagney <cagney@gnu.org>
581
582 * trad-frame.c (trad_frame_get_prev_register): Rename
583 trad_frame_get_prev_register.
584 * vax-tdep.c (vax_frame_prev_register): Update.
585 * trad-frame.h: Update.
586 * trad-frame.c (trad_frame_get_register): Update.
587 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
588 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
589 Update.
590 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
591 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
592 Update.
593 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
594 Update.
595 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
596 Update.
597 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
598 Update.
599 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
600 Update.
601 * s390-tdep.c (s390_frame_prev_register)
602 (s390_stub_frame_prev_register)
603 (s390_sigtramp_frame_prev_register): Update.
604 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
605 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
606 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
607 * m88k-tdep.c (m88k_frame_prev_register)
608 * m68hc11-tdep.c (m68hc11_frame_prev_register)
609 * m32r-tdep.c (m32r_frame_prev_register): Update.
610 * hppa-tdep.c (hppa_frame_prev_register_helper)
611 * frv-tdep.c (frv_frame_prev_register): Update.
612 * d10v-tdep.c (d10v_frame_prev_register): Update.
613 * cris-tdep.c (cris_frame_prev_register): Update.
614 * avr-tdep.c (avr_frame_prev_register): Update.
615 * arm-tdep.c (arm_prologue_prev_register)
616 (arm_sigtramp_prev_register): Update.
617
618 2004-07-31 Andrew Cagney <cagney@gnu.org>
619
620 * frame.h (legacy_saved_regs_unwind)
621 (legacy_frame_chain_valid, legacy_frame_p)
622 (enum frame_type): Delete UNKNOWN_FRAME.
623 * dummy-frame.c (dummy_frame_this_id): Simplify.
624 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
625 * frame.c (struct frame_info): Delete the field "type".
626 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
627 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
628 (legacy_saved_regs_unwind, legacy_frame_p)
629 (frame_type_from_pc): Delete.
630 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
631 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
632
633 2004-07-31 Mark Kettenis <kettenis@gnu.org>
634
635 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
636 indentation.
637
638 * mips-nat.c: Remove file.
639 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
640 (mips-nat.o): Remove dependency.
641
642 * infptrace.c: Update copyright year.
643 (fetch_register): Pass NULL in regcache_raw_supply call instead of
644 explicitly setting the buffer to all zeroes.
645
646 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
647 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
648
649 2004-07-30 Andrew Cagney <cagney@gnu.org>
650
651 * GDB 6.2 released from gdb_6_2-branch.
652
653 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
654
655 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
656
657 * exec.c (exec_file_attach):
658 * nto-tdep.c (nto_find_and_open_solib):
659 * pa64solib.c (pa64_solib_sizeof_symbol_table):
660 * solib.c (solib_open):
661 * somsolib.c (som_solib_sizeof_symbol_table):
662 * source.c (is_regular_file, openp, open_source_file):
663 * symfile.c (symfile_bfd_open):
664 * wince.c (upload_to_device): Differentiate between the search for
665 binary and source files.
666
667 2004-07-30 Andrew Cagney <cagney@gnu.org>
668
669 * complaints.c (_initialize_complaints): Pass NULL to
670 add_setshow_zinteger_cmd for help_doc.
671 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
672
673 2004-07-30 Andrew Cagney <cagney@gnu.org>
674
675 Fix PR i18n/761.
676 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
677 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
678 $(PACKAGE).pot and update-po.
679 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
680 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
681 (update-po): New rules.
682 (localedir): Define using autoconf.
683 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
684 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
685 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
686 * configure.in: Generate CATALOGS and LINGUAS from contents of
687 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
688 * configure: Re-generate.
689 * po/gdbtext: New file
690
691 2004-07-30 Jerome Guitton <guitton@gnat.com>
692
693 * MAINTAINERS: Reorder Write After Approval list in alphabetical
694 order.
695
696 2004-07-30 David Lecomber <dsl@sources.redhat.com>
697
698 * dwarf2read.c (read_file_scope): Set producer if attribute
699 present.
700 (struct dwarf2_cu): Added new member producer.
701
702 2004-07-30 Jerome Guitton <guitton@gnat.com>
703
704 * inflow.c (kill_command): release file handles in BFD.
705 * exec.c (exec_file_attach): Ditto.
706 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
707
708 2004-07-29 Andrew Cagney <cagney@gnu.org>
709
710 * PROBLEMS (mips-irix): Note that it is broken.
711
712 2004-07-29 Andrew Cagney <cagney@gnu.org>
713
714 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
715 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
716
717 * config/xm-nbsd.h: Delete file.
718 * config/arm/xm-nbsd.h: Delete file.
719 * config/i386/xm-nbsd.h: Delete file.
720 * config/ns32k/xm-nbsd.h: Delete file.
721 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
722 * config/i386/nbsdelf.mh (XM_FILE): Delete.
723 * config/i386/nbsdaout.mh (XM_FILE): Delete.
724 * config/arm/nbsdelf.mh (XM_FILE): Delete.
725 * config/arm/nbsdaout.mh (XM_FILE): Delete.
726
727 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
728 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
729 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
730 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
731 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
732 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
733
734 * config/powerpc/xm-linux.h: Delete empty file.
735 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
736 * config/powerpc/linux.mh (XM_FILE): Delete.
737 * config/m68k/xm-linux.h: Delete empty file.
738 * config/m68k/linux.mh (XM_FILE): Delete.
739 * config/ia64/xm-linux.h: Delete empty file.
740 * config/ia64/linux.mh (XM_FILE): Delete.
741 * config/arm/xm-linux.h: Delete empty file.
742 * config/arm/linux.mh (XM_FILE): Delete.
743
744 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
745 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
746 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
747 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
748 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
749 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
750 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
751 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
752
753 * config/m68k/xm-m68k.h: Delete file.
754 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
755 copyright.
756 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
757 * config/pa/xm-linux.h: Delete empty file.
758 * config/pa/linux.mh (XM_FILE): Delete.
759 * config/i386/xm-i386.h: Delete empty file.
760 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
761 "i386/xm-i386.h".
762 * config/i386/obsdaout.mh (XM_FILE): Delete.
763 * config/i386/obsd64.mh (XM_FILE): Delete.
764 * config/i386/fbsd64.mh (XM_FILE): Delete.
765 * config/i386/nto.mh (XM_FILE): Delete.
766 * config/i386/obsd.mh (XM_FILE): Delete.
767 * config/i386/linux64.mh (XM_FILE): Delete.
768 * config/i386/linux.mh (XM_FILE): Delete.
769 * config/i386/i386sol2.mh (XM_FILE): Delete.
770 * config/i386/i386gnu.mh (XM_FILE): Delete.
771 * config/i386/fbsd.mh (XM_FILE): Delete.
772 * config/i386/nbsd64.mh (XM_FILE): Delete.
773
774 2004-07-29 Andrew Cagney <cagney@gnu.org>
775
776 * config/pa/xm-linux.h: Do not include "floatformat.h".
777 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
778 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
779 * config/i386/xm-i386.h: Do not include "floatformat.h".
780 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
781 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
782 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
783 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
784 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
785 GDB_HOST_LONG_DOUBLE_FORMAT instead.
786 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
787 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
788 * configure, config.in: Regenerate.
789 * configure.host (gdb_host_float_format, gdb_host_double_format)
790 (gdb_host_long_double_format): Set according to the host.
791
792 2004-07-29 Andrew Cagney <cagney@gnu.org>
793
794 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
795
796 2004-07-28 Andrew Cagney <cagney@gnu.org>
797
798 * PROBLEMS: Mention threads/1650.
799 * NEWS: Mention the NPTL fix.
800
801 2004-07-28 Andrew Cagney <cagney@gnu.org>
802
803 * cli/cli-decode.c (add_setshow_cmd): Delete function.
804 (add_setshow_cmd_full): Make static.
805 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
806 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
807 * cli/cli-decode.c (add_setshow_filename_cmd)
808 (add_setshow_string_cmd): New functions.
809 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
810 * mips-tdep.c (_initialize_mips_tdep): Update.
811 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
812 * cli/cli-logging.c (_initialize_cli_logging): Update.
813 * complaints.c (_initialize_complaints): Update.
814 * remote.c (_initialize_remote): Update.
815
816 2004-07-28 Andrew Cagney <cagney@gnu.org>
817
818 * cli/cli-decode.c (add_setshow_zinteger_cmd)
819 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
820 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
821 print parameters. Make string parameters constant.
822 * command.h: Update. Update copyright.
823 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
824 * observer.c (_initialize_observer): Ditto.
825 * frame.c (_initialize_frame): Ditto.
826 * complaints.c (_initialize_complaints): Ditto.
827 * maint.c (_initialize_maint_cmds): Ditto.
828 * target.c (initialize_targets): Ditto.
829 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
830 * infcall.c (_initialize_infcall): Ditto.
831 * arm-tdep.c (_initialize_arm_tdep): Ditto.
832 * m32r-rom.c (_initialize_m32r_rom): Ditto.
833 * remote-rdi.c (_initialize_remote_rdi): Ditto.
834 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
835 * mips-tdep.c (_initialize_mips_tdep): Ditto.
836
837 2004-07-28 Andrew Cagney <cagney@gnu.org>
838
839 * gdbtypes.c (lookup_primitive_typename): Delete function.
840 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
841 * ada-lex.l: Use language_lookup_primitive_type_by_name.
842 * gdbtypes.c (lookup_typename): Ditto.
843 * f-exp.y (yylex): Ditto.
844 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
845
846 * scm-lang.c (c_builtin_types): Delete extern declaration.
847 (scm_language_defn): Replace
848 string_char_type and primitive_type_vector with
849 la_language_arch_info.
850 * jv-lang.c (java_language_defn): Replace
851 string_char_type and primitive_type_vector with
852 la_language_arch_info.
853 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
854 c_builtin_types in comment.
855 * c-lang.h (struct language_arch_info): Declare opaque.
856 (c_language_arch_info): Declare.
857 (c_builtin_types): Delete declaration.
858 * c-lang.c (c_language_arch_info): Set string_char_type to
859 builtin_char, not builtin_true_char. Make global.
860 (c_builtin_types): Delete array.
861 (asm_language_defn, minimal_language_defn): Replace
862 string_char_type and primitive_type_vector with
863 la_language_arch_info.
864
865 2004-07-28 Andrew Cagney <cagney@gnu.org>
866
867 * gdbtypes.h (struct builtin_type): Rename true_char to
868 builtin_true_char.
869 * gdbtypes.c (gdbtypes_post_init): Update.
870 * c-lang.c (arch_info): New function.
871 (enum c_primitive_types): New enum.
872 (c_language_defn): Instead of string_char_type and
873 primitive_type_vector set la_language_arch_info.
874
875 2004-07-28 Andrew Cagney <cagney@gnu.org>
876
877 * language.h (struct language_arch_info): Fix typo
878 s/primative/primitive/.
879 * gdbtypes.c (lookup_primitive_typename): Ditto.
880 * language.c (language_lookup_primitive_type_by_name)
881 (unknown_language_arch_info): Ditto.
882
883 2004-07-27 Andrew Cagney <cagney@gnu.org>
884
885 * defs.h (enum language): Add nr_languages.
886 * language.h (struct language_arch_info): Define.
887 (struct language_defn): Add la_language_arch_info.
888 (language_lookup_primative_type_by_name): Declare.
889 (language_string_char_type): Declare.
890 * language.c (_initialize_language, language_gdbarch_post_init)
891 (struct language_gdbarch, language_gdbarch_data): Implement
892 per-architecture language information.
893 (unknown_language_arch_info, language_string_char_type)
894 (language_lookup_primative_type_by_name): New functions.
895 (unknown_language_defn, auto_language_defn)
896 (local_language_defn): Set la_language_arch_info to
897 unknown_language_arch_info.
898 (unknown_builtin_types): Delete.
899 * gdbtypes.c (lookup_primitive_typename): Use
900 language_lookup_primative_type_by_name.
901 (create_string_type): Use language_string_char_type.
902 * values.c (value_from_string): Use language_string_char_type.
903 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
904 * p-lang.c (pascal_language_defn): Ditto.
905 * m2-lang.c (m2_language_defn): Ditto.
906 * jv-lang.c (java_language_defn): Ditto.
907 * objc-lang.c (objc_language_defn): Ditto.
908 * f-lang.c (f_language_defn): Ditto.
909 * c-lang.c (c_language_defn, cplus_language_defn)
910 (asm_language_defn, minimal_language_defn): Ditto.
911
912 2004-07-27 Andrew Cagney <cagney@gnu.org>
913
914 * gdbtypes.h (struct builtin_type): Declare.
915 (builtin_type): Declare.
916 * d10v-tdep.c (d10v_register_type): Use builtin_type.
917 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
918 (gdbtypes_post_init): New function.
919 (builtin_type): New function.
920
921 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
922
923 * remote-m32r-sdi.c: Fix breakpoint bug.
924 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
925 recv_char_data, recv_long_data): New functions to replace communication
926 sequences.
927
928 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
929
930 Document PR threads/1650.
931 * PROBLEMS (Threads): Document problem with many threads
932
933 2004-07-26 Andrew Cagney <cagney@gnu.org>
934
935 * gdb-mi.el: Move from here ...
936 * mi/gdb-mi.el: ... to here.
937
938 2004-07-26 Andrew Cagney <cagney@gnu.org>
939
940 Problem reported by Ashley Pittman <ashley@quadrics.com>.
941 * main.c (captured_main): When in batch mode always detach.
942
943 2004-07-26 Andrew Cagney <cagney@gnu.org>
944
945 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
946 and h8300 as broken.
947 * NEWS: END-OF-LIFE frame compatibility module.
948 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
949 specific comments.
950
951 2004-07-26 Andrew Cagney <cagney@gnu.org>
952
953 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
954 * xcoffsolib.c (_initialize_xcoffsolib): Update.
955 * wince.c (_initialize_wince): Update.
956 * win32-nat.c (_initialize_win32_nat): Update.
957 * varobj.c (_initialize_varobj): Update.
958 * valops.c (_initialize_valops): Update.
959 * utils.c (initialize_utils, initialize_utils): Update.
960 * tui/tui-win.c (_initialize_tui_win): Update.
961 * top.c (init_main): Update.
962 * symfile.c (_initialize_symfile): Update.
963 * source.c (_initialize_source): Update.
964 * somsolib.c (_initialize_som_solib): Update.
965 * solib.c (_initialize_solib): Update.
966 * solib-frv.c (_initialize_frv_solib): Update.
967 * serial.c (_initialize_serial): Update.
968 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
969 * remote.c (_initialize_remote, _initialize_remote): Update.
970 * remote-vx.c (_initialize_vx): Update.
971 * remote-utils.c (_initialize_sr_support): Update.
972 * remote-sds.c (_initialize_remote_sds): Update.
973 * remote-mips.c (_initialize_remote_mips): Update.
974 * remote-e7000.c (_initialize_remote_e7000): Update.
975 * proc-api.c (_initialize_proc_api): Update.
976 * printcmd.c: Update.
977 * parse.c (_initialize_parse): Update.
978 * pa64solib.c (_initialize_pa64_solib): Update.
979 * p-valprint.c (_initialize_pascal_valprint): Update.
980 * monitor.c (_initialize_remote_monitors): Update.
981 * mips-tdep.c (_initialize_mips_tdep): Update.
982 * mcore-tdep.c (_initialize_mcore_tdep): Update.
983 * maint.c (_initialize_maint_cmds): Update.
984 * lin-lwp.c (_initialize_lin_lwp): Update.
985 * language.c (_initialize_language): Update.
986 * kod.c (_initialize_kod): Update.
987 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
988 * i386-tdep.c (_initialize_i386_tdep): Update.
989 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
990 * gdbarch.sh: Update.
991 * gdbarch.c: Re-generate.
992 * gdb-events.sh: Update.
993 * gdb-events.c: Re-generate.
994 * frame.c (_initialize_frame): Update.
995 * exec.c: Update.
996 * demangle.c (_initialize_demangler): Update.
997 * dcache.c (_initialize_dcache): Update.
998 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
999 * cp-valprint.c (_initialize_cp_valprint): Update.
1000 * corefile.c (_initialize_core): Update.
1001 * command.h: Update.
1002 * cli/cli-decode.h: Update.
1003 * cli/cli-cmds.c (init_cli_cmds): Update.
1004 * charset.c (_initialize_charset): Update.
1005 * breakpoint.c (_initialize_breakpoint): Update.
1006 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1007 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1008 * aix-thread.c (_initialize_aix_thread): Update.
1009
1010 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1011
1012 Partial fix for PR backtrace/1718.
1013 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1014 that GCC migrates into the prolugue. Don't handle any
1015 instructions that clobber %ebx.
1016
1017 2004-07-23 Andrew Cagney <cagney@gnu.org>
1018
1019 Use regcache_raw_collect instead of regcache_collect.
1020 * regcache.h (regcache_collect): Delete declaration.
1021 * regcache.c (regcache_colect): Delete function.
1022 * win32-nat.c (do_child_store_inferior_registers): Update.
1023 * sol-thread.c (sol_thread_store_registers): Update.
1024 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1025 * rs6000-nat.c (store_register): Update.
1026 * remote.c (store_register_using_P, remote_store_registers): Update.
1027 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1028 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1029 (fill_vrregset, store_spe_registers, fill_gregset)
1030 (fill_gregset): Update.
1031 * nto-procfs.c (procfs_store_registers): Update.
1032 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1033 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1034 * m68klinux-nat.c (store_register, fill_gregset): Update.
1035 * m68k-tdep.c (fill_gregset): Update.
1036 * infptrace.c (store_register): Update.
1037 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1038 * i386-linux-nat.c (store_register, fill_gregset): Update.
1039 * hppa-linux-nat.c (fill_gregset): Update.
1040 * go32-nat.c (store_register): Update.
1041 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1042 (store_fp_regs): Update.
1043 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1044 (store_nwfpe_extended, store_fpregister, store_fpregs)
1045 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1046 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1047 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1048 (store_regs_user_thread, store_regs_kernel_thread): Update.
1049
1050 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1051
1052 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1053 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1054 encoding.
1055 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1056 member of `struct comp_unit'.
1057
1058 2004-07-23 Andrew Cagney <cagney@gnu.org>
1059
1060 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1061 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1062
1063 2004-07-23 Martin Hunt <hunt@redhat.com>
1064 Kevin Buettner <kevinb@redhat.com>
1065
1066 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1067 alignment was being added to the offset instead of multiplied.
1068
1069 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1070
1071 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1072 changed signal trampoline in OpenBSD 3.5-current.
1073
1074 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1075 <machine/pcb.h> and "bsd-kvm.h".
1076 (sparc64nbsd_supply_pcb): New function.
1077 (_initialize_sparc64nbsd_nat): Renamed from
1078 _initialize_sparcnbsd_nat. Enable libkvm interface.
1079 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1080 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1081 (LOADLIBES): New variable.
1082
1083 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1084
1085 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1086
1087 2004-07-21 Andrew Cagney <cagney@gnu.org>
1088
1089 Use regcache_raw_supply instead of supply_register.
1090 * regcache.h (supply_register): Delete declaration.
1091 * regcache.c (supply_register): Delete function.
1092 * wince.c (do_child_fetch_inferior_registers): Update.
1093 * win32-nat.c (do_child_fetch_inferior_registers)
1094 (fetch_elf_core_registers): Update.
1095 * v850ice.c (v850ice_fetch_registers): Update.
1096 * thread-db.c (thread_db_store_registers): Update.
1097 * sol-thread.c (sol_thread_store_registers): Update.
1098 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1099 * rs6000-nat.c (fetch_register): Update.
1100 * rom68k-rom.c (rom68k_supply_one_register): Update.
1101 * remote.c (remote_wait, remote_async_wait): Update.
1102 * remote-st.c (get_hex_regs): Update.
1103 * remote-sim.c (gdbsim_fetch_register): Update.
1104 * remote-sds.c (sds_fetch_registers): Update.
1105 * remote-rdp.c (remote_rdp_fetch_register): Update.
1106 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1107 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1108 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1109 * remote-hms.c (init_hms_cmds): Update.
1110 * remote-est.c (init_est_cmds): Update.
1111 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1112 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1113 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1114 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1115 (fetch_register, supply_vrregset, supply_vrregset)
1116 (fetch_spe_registers): Update.
1117 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1118 * monitor.c (monitor_supply_register): Update.
1119 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1120 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1121 (mipsnbsd_supply_fpreg): Update.
1122 * mips-nat.c (fetch_inferior_registers)
1123 (fetch_core_registers): Update.
1124 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1125 (supply_fpregset, mips64_supply_gregset)
1126 (mips64_supply_fpregset): Update.
1127 * m68klinux-nat.c (fetch_register, supply_gregset)
1128 (supply_fpregset): Update.
1129 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1130 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1131 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1132 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1133 * infptrace.c (fetch_register): Update.
1134 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1135 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1136 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1137 (gnu_fetch_registers, gnu_store_registers): Update.
1138 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1139 * i386-linux-nat.c (fetch_register, supply_gregset)
1140 (dummy_sse_values): Update.
1141 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1142 * hppah-nat.c (fetch_register): Update.
1143 * hppa-linux-nat.c (fetch_register, supply_gregset)
1144 (supply_fpregset): Update.
1145 * go32-nat.c (fetch_register): Update.
1146 * dve3900-rom.c (fetch_bitmapped_register)
1147 (_initialize_r3900_rom): Update.
1148 * cris-tdep.c (supply_gregset): Update.
1149 * abug-rom.c (init_abug_cmds): Update.
1150 * core-aout.c (fetch_core_registers): Update.
1151 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1152 (fetch_register, fetch_fp_register): Update.
1153 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1154 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1155 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1156 * alphanbsd-tdep.c (fetch_core_registers): Update.
1157 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1158 * alpha-nat.c (fetch_osf_core_registers)
1159 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1160 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1161 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1162
1163 2004-07-21 Andrew Cagney <cagney@gnu.org>
1164
1165 * PROBLEMS: Mention breakpoints/1702.
1166 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1167 that is known to work.
1168
1169 2004-07-21 Andrew Cagney <cagney@gnu.org>
1170
1171 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1172 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1173 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1174 (handle_inferior_event): Wrap call to deprecated
1175 IGNORE_HELPER_CALL in #ifdef.
1176 * config/mips/tm-nbsd.h: Update.
1177
1178 2004-07-20 Jim Blandy <jimb@redhat.com>
1179
1180 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1181 bfd_mach_ppc has no segment registers.
1182
1183 Include PowerPC SPR numbers for special-purpose registers.
1184 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1185 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1186 new member in initializer.
1187 (S, S4, SN4, S64): New macros for defining special-purpose
1188 registers.
1189 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1190 registers_403, registers_403GC, registers_505, registers_860,
1191 registers_601, registers_602, registers_603, registers_604,
1192 registers_750, registers_e500): Use them.
1193
1194 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1195 replace references with expression used to initialize variable.
1196
1197 2004-07-20 Andrew Cagney <cagney@gnu.org>
1198
1199 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1200 read_memory_nobpt.
1201 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1202 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1203 (s390_sigtramp_frame_sniffer): Update.
1204 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1205 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1206 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1207 (mips32_fetch_instruction): Update.
1208 * mcore-tdep.c (get_insn): Update.
1209 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1210 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1211 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1212 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1213 (i386_linux_rt_sigtramp_start): Update.
1214 * i386-linux-nat.c (child_resume): Update.
1215 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1216 * hppa-linux-tdep.c (insns_match_pattern): Update.
1217 * gdbcore.h: Update.
1218 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1219 * frame.c (safe_frame_unwind_memory): Update.
1220 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1221 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1222 * alpha-tdep.c (alpha_read_insn): Update.
1223
1224 2004-07-20 Andrew Cagney <cagney@gnu.org>
1225
1226 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1227 containing both bytes and mask. Add "frame_type".
1228 * tramp-frame.c (tramp_frame_start): Update.
1229 (tramp_frame_prepend_unwinder): Update.
1230 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1231 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1232 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1233 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1234
1235 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1236
1237 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1238 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1239 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1240 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1241
1242 2004-07-17 Andrew Cagney <cagney@gnu.org>
1243
1244 * NEWS, PROBLEMS: Update for 6.2.
1245
1246 * README: Update to 6.2.
1247
1248 * utils.c (xvasprintf): Call xstrvprintf.
1249
1250 * parse.c: Update copyright.
1251 (null_post_parser): Eliminate ARGSUSED.
1252
1253 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1254 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1255 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1256
1257 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1258 * ppc-linux-nat.c: Use "Linux kernel".
1259 * hppa-linux-tdep.c: Use GNU/Linux.
1260 * hppa-linux-nat.c: Use GNU/Linux.
1261 * dwarfread.c: Add [sic] to use of Linux.
1262
1263 * hppa-linux-nat.c: Do not include <string.h>.
1264 (supply_fpregset): Remove "register" attribute.
1265
1266 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1267
1268 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1269
1270 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1271 * configure, config.in: Regenerated.
1272
1273 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1274 "bsd-kvm.h".
1275 (vaxbsd_supply_pcb): New function.
1276 (_initialize_vaxbsd_nat): New prototype and function.
1277 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1278 solib-sunos.o.
1279 (LOADLIBES): New variable.
1280 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1281 (LOADLIBES): New variable.
1282 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1283 (LOADLIBES): New variable.
1284 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1285
1286 2004-07-16 Andrew Cagney <cagney@gnu.org>
1287
1288 * defs.h (event_loop_p): Replace variable declaration with macro,
1289 always 1.
1290 * main.c (captured_main): Delete options "-async" and "-noasync".
1291 (event_loop_p): Delete variable.
1292 * NEWS: Mention that "-async" and "-noasync" were removed.
1293
1294 2004-07-16 Andrew Cagney <cagney@gnu.org>
1295
1296 * remote-m32r-sdi.c: Re-indent.
1297
1298 2004-07-16 Jim Blandy <jimb@redhat.com>
1299
1300 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1301 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1302 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1303 missing MPC823 SPRs.
1304 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1305 incorrect. (This was corrected in GDB's register name tables on
1306 2004-07-14.)
1307
1308 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1309 should be "esasrr" ("ESA Save and Restore Register").
1310
1311 2004-07-16 Andrew Cagney <cagney@gnu.org>
1312
1313 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1314 calls, no longer applicable. Update comments and rename parameter
1315 "step_frame" to "return_frame".
1316
1317 2004-07-16 Andrew Cagney <cagney@gnu.org>
1318
1319 * frame.c (fprint_field): New function.
1320 (fprint_frame_id): Use fprint_field.
1321
1322 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1323
1324 * ada-lang.c (ada_language_defn): Remove commented out code.
1325
1326 2004-07-15 Jim Blandy <jimb@redhat.com>
1327
1328 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1329 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1330
1331 2004-07-14 Jim Blandy <jimb@redhat.com>
1332
1333 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1334
1335 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1336
1337 * ppc-tdep.h (ppc_num_srs): New enum constant.
1338
1339 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1340 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1341 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1342 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1343 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1344 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1345 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1346 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1347 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1348 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1349 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1350 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1351 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1352 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1353 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1354 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1355 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1356 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1357 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1358 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1359 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1360 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1361 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1362 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1363 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1364 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1365 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1366 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1367 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1368 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1369 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1370 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1371 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1372 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1373 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1374 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1375 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1376 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1377 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1378 special-purpose register numbers.
1379
1380 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1381 manual mentions 'md_twb', but many mention 'm_twb', and at that
1382 point in the register list.)
1383
1384 2004-07-14 Andrew Cagney <cagney@gnu.org>
1385
1386 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1387 instead of "internal-error".
1388
1389 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1390
1391 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1392 that was inserted inside a comment.
1393
1394 2004-07-10 Randolph Chung <tausq@debian.org>
1395
1396 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1397 function.
1398 (hppa_hpux_push_dummy_code): New function.
1399 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1400 Set find_global_pointer method.
1401
1402 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1403
1404 * NEWS: Mention BSD libkvm interface.
1405
1406 2004-07-10 Michael Snyder <msnyder@redhat.com>
1407
1408 * symfile.c (generic_load): Comment typo.
1409 * stack.c (get_selected_block): Ditto.
1410 * regcache.c (regcache_cooked_read): Ditto.
1411 * monitor.c (monitor_debug): Ditto.
1412 * mips-tdep.c (mips_read_pc): Ditto.
1413 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1414 * gdb_mbuild.sh: Ditto.
1415 * gdbarch.sh: Ditto.
1416 * gdbarch.h: Ditto.
1417
1418 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1419
1420 * ada-tasks.c: Remove file.
1421
1422 Remove ARI problems:
1423
1424 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1425 beginning of line.
1426
1427 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1428 Add comment.
1429 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1430 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1431 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1432 (UMIN_OF_SIZE): Remove.
1433 (max_of_type): New function to replace orphan macro in gdbtypes.h
1434 (min_of_type): Ditto.
1435 (discrete_type_high_bound): Use max_of_type.
1436 (discrete_type_low_bound): Use min_of_type.
1437 (possible_user_operator_p): Move operator to beginning of line.
1438 (ada_is_variant_part): Ditto.
1439 (ensure_lval): Rewrite to avoid deprecated operations.
1440 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1441 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1442 (ada_enum_name): Remove assignments in 'if' statements.
1443 (build_ada_types): Add gdbarch parameter.
1444 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1445 with gdbarch_data_register_post_init.
1446 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1447 add_show_from_set.
1448
1449 * ada-valprint.c (inspect_it): Remove declaration.
1450 (repeat_count_threshold): Remove declaration.
1451 (ada_print_floating): Remove assignments in 'if' statements.
1452 (print_str): Move operator to beginning of line.
1453
1454 2004-07-08 Jim Blandy <jimb@redhat.com>
1455
1456 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1457
1458 2004-07-08 Bob Rossi <bob@brasko.net>
1459
1460 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1461
1462 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1463
1464 * language.h (struct_language_defn): Add new function pointer:
1465 la_class_name_from_physname. Also add new prototype for
1466 language_class_name_from_physname.
1467 * language.c (language_class_name_from_physname): New function.
1468 (unk_lang_class_name): Ditto.
1469 (unknown_language_defn, auto_language_defn): Change
1470 to add unk_lang_class_name function pointer for
1471 la_class_name_from_physname.
1472 (local_language_defn): Ditto.
1473 * dwarf2read.c (guess_structure_name): Change to call
1474 language_class_name_from_physname.
1475 (determine_class_name): Ditto.
1476 * cp-support.c (class_name_from_physname): Renamed.
1477 (cp_class_name_from_physname): New name of function.
1478 * cp-support.h: Ditto.
1479 * c-lang.c (c_language_defn): Change to add NULL
1480 for class_name_from_physname function pointer.
1481 (cplus_language_defn): Change to add cp_class_name_from_physname.
1482 * jv-lang.c (java_class_name_physname): New function.
1483 (java_find_last_component): New static routine.
1484 (java_language_defn): Add java_class_name_from_physname pointer.
1485 * ada-lang.c (ada_language_defn): Change to add NULL
1486 for class_name_from_physname function pointer.
1487 * f-lang.c (f_language_defn): Ditto.
1488 * m2-lang.c (m2_language_defn): Ditto.
1489 * objc-lang.c (objc_language_defn): Ditto.
1490 * p-lang.c (pascal_language_defn): Ditto.
1491 * scm-lang.c (scm_language_defn): Ditto.
1492
1493 2004-07-06 Andrew Cagney <cagney@gnu.org>
1494
1495 Patch from Bart Robinson.
1496 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1497 (O_LARGEFILE): Define to 0, if not defined.
1498
1499 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1500
1501 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1502 <machine/pcb.h> and "bsd-kvm.h".
1503 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1504 (m68kbsd_supply_pcb): New function.
1505 (_initialize_m68kbsd_nat): New prototype and function.
1506 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1507 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1508 (LOADLIBES): New variable.
1509 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1510 (LOADLIBES): New variable.
1511
1512 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
1513
1514 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1515
1516 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
1517 <sys/proc.h>.
1518 (bsd_kvm_cmdlist): New variable.
1519 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
1520 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
1521 command and "kvm proc" command.
1522 * Makefile.in (bsd-kvm.o): Update dependencies.
1523
1524 2004-07-02 Mark Kettenis <kettenis@gnu.org>
1525
1526 * osabi.c: Update copyright year.
1527 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
1528 notes if EI_OSABI is set to ELFOSABI_HPUX.
1529
1530 2004-07-01 Michael Snyder <msnyder@redhat.com>
1531
1532 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
1533 that seems to have gotten whacked out of line.
1534
1535 2004-07-01 Mark Kettenis <kettenis@gnu.org>
1536
1537 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
1538 code.
1539
1540 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1541
1542 * ada-lang.c (decode_packed_array): Minor change to comment.
1543 (ada_value_slice_ptr): New function.
1544 (ada_value_slice): New function.
1545 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
1546 test. Don't know why it is there.
1547 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
1548 to avoid dereferencing huge arrays from which one is slicing.
1549 (empty_array): Correct to return an array rather than
1550 a subrange value.
1551 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
1552 on empty arrays (let'em use 'FIRST instead).
1553
1554 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1555
1556 Address complaints from gdb_ari.sh:
1557
1558 * ada-exp.y: Include gdb_string.h rather than string.h.
1559 (convert_char_literal): Reformat declaration.
1560 * ada-lang.h: Include opaque struct declaration for struct frame_info.
1561 * ada-lex.l: Change use of free to xfree (the macro would do so
1562 anyway, but this is harmless).
1563 Include gdb_string.h rather than string.h.
1564 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
1565
1566 * ada-lang.c (parse): Remove K&Rism in parameter list.
1567 (is_name_suffix): Correct Linux => GNU/Linux in comment.
1568
1569 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1570
1571 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
1572 dead code.
1573
1574 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1575
1576 * alphabsd-nat.c: Update copyright year.
1577 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
1578
1579 2004-06-29 Joel Brobecker <brobecker@gnat.com>
1580
1581 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
1582 (i386_cygwin_in_solib_call_trampoline): New function.
1583 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
1584 and skip_trampoline_code gdbarch methods.
1585
1586 2004-06-29 Jim Blandy <jimb@redhat.com>
1587
1588 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
1589 name actually used in the dependency lists.
1590
1591 2004-06-29 Randolph Chung <tausq@debian.org>
1592
1593 * NEWS (New native configurations): Mention GNU/Linux/hppa.
1594
1595 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1596
1597 * win32-nat.c (child_pid_to_exec_file): New function.
1598 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
1599 functionality.
1600
1601 2004-06-28 Andrew Cagney <cagney@gnu.org>
1602
1603 * defs.h (xstrvprintf): Declare.
1604 * utils.c (xstrvprintf): New function.
1605 (internal_vproblem, xstrprintf, xasprintf)
1606 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
1607 * serial.c (serial_printf): Ditto.
1608 * complaints.c (vcomplaint): Ditto.
1609
1610 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1611
1612 * infcmd.c (attach_command): Move call to target_terminal_inferior
1613 behind loading symbol table.
1614
1615 2004-06-28 Andrew Cagney <cagney@gnu.org>
1616
1617 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
1618 change - add back extern deprecated_ui_loop_hook declaration.
1619
1620 2004-06-28 Andrew Cagney <cagney@gnu.org>
1621
1622 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
1623 xstrprintf.
1624 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
1625 (c_value_of_variable): Ditto.
1626 * utils.c (internal_vproblem): Ditto.
1627 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
1628 * remote.c (add_packet_config_cmd): Ditto.
1629 * remote-rdp.c (rdp_set_command_line): Ditto.
1630 * regcache.c (regcache_dump): Ditto.
1631 * frv-tdep.c (new_variant, new_variant): Ditto.
1632 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
1633 (fbsd_find_memory_regions): Ditto.
1634 * breakpoint.c (create_thread_event_breakpoint)
1635 (create_breakpoints): Ditto.
1636 * aix-thread.c (aix_thread_pid_to_str): Ditto.
1637 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
1638
1639 2004-06-28 Joel Brobecker <brobecker@gnat.com>
1640
1641 * ada-lang.c: Re-indent file, with some massaging to help indent
1642 a bit when the result is otherwise really too ugly.
1643
1644 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1645
1646 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
1647 code_addr_p and special_addr_p to 'unsigned int'.
1648
1649 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1650
1651 * i386v4-nat.c: Update copyright year and tweak comment.
1652 (regmap): Remove trailing comma.
1653 (supply_gregset): Rename local variable i to regnum. Call
1654 regcache_raw_supply instead of supply_register.
1655 (fill_gregset): Rename argument regno to regnum. Call
1656 regcache_raw_collect instead of regcache_collect.
1657
1658 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1659
1660 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
1661 and special_addr_p.
1662 (frame_id_build, frame_id_build_special): Update comments.
1663 (frame_id_build_wild): New prototype.
1664 * frame.c (frame_id_build, frame_id_build_special): Fill in new
1665 struct frame_id fields.
1666 (frame_id_build_wild): New function.
1667 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
1668
1669 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1670
1671 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
1672 hppabsd-tdep.c.
1673
1674 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1675
1676 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
1677
1678 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1679
1680 * ada-lang.c: Re-indent file.
1681
1682 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1683
1684 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
1685 (no_symtab_msg): Likewise.
1686
1687 2004-06-27 Andreas Schwab <schwab@suse.de>
1688
1689 * source.c: Fix whitespace.
1690
1691 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1692
1693 * configure.in: Include <sys/param.h> for td_pcb test.
1694 * configure: Regenerated.
1695
1696 * i386nbsd-nat.c: New file.
1697 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
1698 i386obsd-nat.c and i386obsd-tdep.c.
1699 (i386nbsd-nat.o): New dependency.
1700 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
1701 bsd-kvm.o.
1702 (LOADLIBES): New variable.
1703 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
1704 bsd-kvm.o.
1705 (LOADLIBES): New variable.
1706
1707 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
1708 (LOADLIBES): New variable.
1709
1710 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
1711 fetching from BSD_KVM_PADDR. Correctly lookup address for
1712 "_thread0".
1713
1714 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
1715 "bsd-kvm.h".
1716 (amd64fbsd_supply_pcb): New funcion.
1717 (_initialize_amd64fbsd_nat): Enable libkvm interface.
1718
1719 2004-06-27 <david@streamline-computing.com>
1720
1721 Partial fix for PR cli/1056.
1722 * valarith.c: Check for zero in division and remainder
1723 evaluation.
1724
1725 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1726
1727 * i387-tdep.c: Remove excessive whitespace.
1728
1729 2004-06-26 Andrew Cagney <cagney@gnu.org>
1730
1731 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
1732 * gdb-events.h, gdb-events.c: Re-generate.
1733 * tui/tui-hooks.c (tui_install_hooks): Update.
1734 (tui_remove_hooks): Update.
1735 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
1736
1737 2004-06-26 Mark Kettenis <kettenis@gnu.org>
1738
1739 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
1740 (gregset_t, fpregset_t): Remove typedefs.
1741 (REG_OFFSET): Rename argument.
1742 (amd64bsd_r_reg_offset): Rename from reg_offset.
1743 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1744 Remove functions.
1745 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
1746 of reg_offset.
1747 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
1748
1749 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
1750
1751 * vax-tdep.c: Tweak comment.
1752
1753 Add OpenBSD/hppa support.
1754 * NEWS (New native configurations): Mention OpenBSD/hppa.
1755 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
1756 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
1757 files.
1758 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1759 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
1760 * configure.host: Add hppa*-*-openbsd*.
1761 * configure.tgt: Add hppa*-*-openbsd*.
1762
1763 2004-06-25 Andrew Cagney <cagney@gnu.org>
1764
1765 * defs.h (deprecated_ui_loop_hook): Deprecated.
1766 * wince.c (child_wait): Update.
1767 * win32-nat.c (child_wait): Update.
1768 * v850ice.c (v850ice_wait): Update.
1769 * top.c (deprecated_ui_loop_hook): Update.
1770 * serial.h: Update.
1771 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
1772 (do_unix_readchar): Update.
1773 * ser-tcp.c (net_open): Update.
1774 * remote-sim.c (gdb_os_poll_quit): Update.
1775 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
1776
1777 2004-06-24 Andrew Cagney <cagney@gnu.org>
1778
1779 * defs.h (deprecated_pre_add_symbol_hook)
1780 (deprecated_post_add_symbol_hook): Deprecated.
1781 * symfile.c (symbol_file_add_with_addrs_or_offsets)
1782 (symbol_file_add_with_addrs_or_offsets): Update references.
1783
1784 2004-06-24 Andrew Cagney <cagney@gnu.org>
1785
1786 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
1787 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
1788 * wince.c (ui_loop_hook): Delete extern declaration.
1789 * win32-nat.c (ui_loop_hook): Delete extern declaration..
1790 * v850ice.c (ui_loop_hook): Delete extern declaration..
1791 * ser-unix.c (ui_loop_hook): Delete extern declaration..
1792 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
1793 * remote-sim.c (ui_loop_hook): Delete extern declaration..
1794 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
1795 ui_loop_hook declaration.
1796
1797 2004-06-24 Andrew Cagney <cagney@gnu.org>
1798
1799 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
1800 entry_func_highpc fields.
1801 * objfiles.c (init_entry_point_info): Do not clear
1802 entry_func_lowpc and entry_func_highpc.
1803 (objfile_relocate): Do not relocate entry_func_lowpc and
1804 entry_func_highpc.
1805 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
1806 entry_func_highpc.
1807 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
1808 entry_func_highpc.
1809 * blockframe.c (legacy_frame_chain_valid): Replace tests against
1810 entry_func_lowpc and entry_func_highpc with call to
1811 inside_entry_func.
1812
1813 2004-06-24 Mark Kettenis <kettenis@gnu.org>
1814
1815 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
1816 quad-precision floating point arguments in registers.
1817
1818 2004-06-24 Mark Kettenis <kettenis@gnu.org>
1819
1820 From Michael Mueller <m.mueller99@kay-mueller.de>:
1821 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
1822 account.
1823
1824 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
1825
1826 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
1827 to -1.
1828 * breakpoint.c (bpstat_stop_status): Move check for ignoring
1829 untriggered watchpoints to a separate if clause. Update function
1830 comment regarding STOPPED_BY_WATCHPOINT argument.
1831
1832 2004-06-22 Jim Blandy <jimb@redhat.com>
1833
1834 * gdbarch.sh: Doc fix.
1835
1836 2004-06-21 Martin Hunt <hunt@redhat.com>
1837 Kevin Buettner <kevinb@redhat.com>
1838
1839 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
1840 * mips-tdep.h (MIPS_SP_REGNUM): Define.
1841 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
1842 to set_gdbarch_sp_regnum(). Use cooked register number.
1843 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
1844
1845 2004-06-21 Andrew Cagney <cagney@gnu.org>
1846
1847 * gdbarch.sh: When the macro field is empty, do not generate a
1848 macro definition. When the macro field is "=", generate the macro
1849 name from the upper-case function name.
1850 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
1851 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
1852 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
1853 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
1854 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
1855 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
1856 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
1857 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
1858 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
1859 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
1860 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
1861 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
1862 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
1863 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
1864 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
1865 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
1866 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
1867 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
1868 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
1869 (DEPRECATED_USE_STRUCT_CONVENTION)
1870 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1871 (DEPRECATED_FRAME_INIT_SAVED_REGS)
1872 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
1873 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
1874 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
1875 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
1876 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
1877 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
1878 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
1879 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
1880 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
1881 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
1882 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
1883 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
1884 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
1885 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
1886 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
1887 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
1888
1889 2004-06-21 Andrew Cagney <cagney@gnu.org>
1890
1891 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
1892 macro name, and the function rather than macro value. Only wrap
1893 macro print statements in #ifdef. Move format logic to where it
1894 is needed.
1895 * gdbarch.c: Re-generate.
1896
1897 * gdbarch.sh (read): Delete "print_p" and "description", add
1898 "garbage_at_eol". Check for non-empty garbage at end-of-line.
1899 Delete references to print_p.
1900 (TARGET_ARCHITECTURE): Delete print predicate.
1901 * gdbarch.c: Re-generate.
1902
1903 * gdbarch.sh: Check that multi-arch methods do not provide a
1904 macro.
1905 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
1906 (print_registers_info, print_float_info, print_vector_info)
1907 (adjust_breakpoint_address, remote_translate_xfer_address)
1908 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
1909 (address_class_type_flags_to_name, unwind_sp): Remove the macro
1910 name from the multi-arch definition.
1911
1912 2004-06-20 Andrew Cagney <cagney@gnu.org>
1913
1914 * gdbarch.sh: Sort by the function, instead of macro name.
1915 * gdbarch.c: Re-generate.
1916
1917 2004-06-20 Andrew Cagney <cagney@gnu.org>
1918
1919 * gdbarch.sh: Use the function, instead of macro name in
1920 errors and the log file.
1921 (return_value): Remove stray ":" in spec.
1922
1923 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
1924 * gdbarch.h, gdbarch.c: Re-generate.
1925 * Makefile.in (arch-utils.o): Update dependencies.
1926 * values.c (using_struct_return): Move code calling
1927 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
1928 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
1929 to legacy_return_value, simplify.
1930 * infcmd.c (print_return_value): Move code calling
1931 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
1932 to legacy_return_value, simplify.
1933 * infcall.c (call_function_by_hand): Move code calling
1934 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
1935 * arch-utils.c: Update copyright. Include "gdbcore.h".
1936 (legacy_return_value): New function.
1937 * arch-utils.h: Update copyright.
1938 (legacy_return_value): Declare.
1939
1940 2004-06-20 Andrew Cagney <cagney@gnu.org>
1941
1942 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
1943 * gdbarch.h, gdbarch.c: Re-generate.
1944 * values.c (using_struct_return): Update call.
1945 * mcore-tdep.c: Update comment.
1946 * infcall.c (call_function_by_hand): Update comment.
1947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1948 * arch-utils.h (always_use_struct_convention): Update.
1949 * v850-tdep.c (v850_gdbarch_init): Update.
1950 * sh64-tdep.c (sh64_gdbarch_init): Update.
1951 * sh-tdep.c (sh_gdbarch_init): Update.
1952 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1953 * mips-tdep.c (mips_gdbarch_init): Update.
1954 * mcore-tdep.c (mcore_gdbarch_init): Update.
1955 * m32r-tdep.c (m32r_gdbarch_init): Update.
1956 * ia64-tdep.c (ia64_gdbarch_init): Update.
1957 * h8300-tdep.c (h8300_gdbarch_init): Update.
1958 * frv-tdep.c (frv_gdbarch_init): Update.
1959 * cris-tdep.c (cris_gdbarch_init): Update.
1960 * arm-tdep.c (arm_gdbarch_init): Update.
1961 * alpha-tdep.c (alpha_gdbarch_init): Update.
1962
1963 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
1964
1965 * PROBLEMS: Add more specific information, and a work-around,
1966 for PR gdb/1458.
1967
1968 2004-06-18 Andrew Cagney <cagney@gnu.org>
1969
1970 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
1971 * gdbarch.h, gdbarch.c: Re-generate.
1972 * ada-lang.c (ada_finish_decode_line_1): Update.
1973 * infrun.c (handle_inferior_event): Update.
1974 * infcall.c (find_function_addr): Update.
1975 * linespec.c (minsym_found): Update.
1976 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
1977 Update.
1978 * blockframe.c (legacy_frameless_look_for_prologue): Update.
1979 * cli/cli-cmds.c (disassemble_command): Update.
1980 * vax-tdep.c (vax_gdbarch_init): Update.
1981
1982 2004-06-18 Mark Kettenis <kettenis@gnu.org>
1983
1984 * i386-tdep.c (i386_collect_fpregset): Fix comment.
1985
1986 2004-06-17 Andrew Cagney <cagney@gnu.org>
1987
1988 GDB 6.1.1 released from the GDB 6.1 branch.
1989 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
1990 * PROBLEMS: Ditto.
1991
1992 2004-06-16 Daniel Jacobowitz <dan@debian.org>
1993
1994 PR gdb/1658
1995 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
1996 operation as a uleb128. Found by Michael Coulter.
1997
1998 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
1999
2000 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2001 make it non-static.
2002 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2003 to ada-lang.h; this is needed to be able to implement the kill command
2004 in multi-task mode.
2005 (task_ptid): Ditto.
2006 (task_entry): Ditto.
2007 (task_list): Ditto.
2008 (ada_build_task_list): Ditto.
2009
2010 * ada-lang.c: Conditionalize routines and data structures related
2011 to breakpoints, exceptions, completion, and symbol caching on
2012 GNAT_GDB, since these are not yet used in the submitted public sources.
2013 (ada_main_name): Editorial: Move definition out of exception-related
2014 code.
2015
2016 2004-06-15 Andrew Cagney <cagney@gnu.org>
2017
2018 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2019 deprecated_pc_in_call_dummy.
2020
2021 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2022
2023 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2024 bfd_get_section_size_before_reloc or _raw_size.
2025 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2026 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2027 (dwarf2_read_section): Likewise.
2028 * elfread.c (elf_locate_sections): Likewise.
2029 * gcore.c (derive_heap_segment): Likewise.
2030 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2031 * remote-e7000.c (e7000_load): Likewise.
2032 * remote-m32r-sdi.c (m32r_load): Likewise.
2033 * remote-mips.c (mips_load_srec): Likewise.
2034 (pmon_load_fast): Likewise.
2035 * remote.c (compare_sections_command): Likewise.
2036 * symfile.c (add_section_size_callback): Likewise.
2037 (load_section_callback): Likewise.
2038 (pc_in_unmapped_range): Likewise.
2039 (pc_in_mapped_range): Likewise.
2040 (sections_overlap): Likewise.
2041 (list_overlays_command): Likewise.
2042 (simple_overlay_update_1): Likewise.
2043 (simple_overlay_update): Likewise.
2044 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2045 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2046
2047 2004-06-14 Randolph Chung <tausq@debian.org>
2048
2049 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2050 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2051 static.
2052 (hppa_hpux_inferior_created): New function.
2053 (hppa_hpux_init_abi): Register observer.
2054 * symfile.c (hp_cxx_exception_support_initialized)
2055 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2056 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2057
2058 2004-06-14 Randolph Chung <tausq@debian.org>
2059
2060 * MAINTAINERS (Write After Approval): Alphabetize my entry
2061 correctly.
2062
2063 2004-06-14 Andrew Cagney <cagney@gnu.org>
2064
2065 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2066 testsuite maintainer.
2067
2068 2004-06-13 Andrew Cagney <cagney@gnu.org>
2069
2070 * infcmd.c (print_return_value): Fix logic, allow
2071 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2072
2073 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2074 defining any macros.
2075 * gdbarch.h: Re-generate.
2076
2077 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2078 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2079 * gdbarch.h: Re-generate.
2080
2081 * values.c (generic_use_struct_convention): Don't check gcc_p.
2082
2083 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2084 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2085 * gdbarch.h, gdbarch.c: Regenerate.
2086 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2087 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2088 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2089 deprecated_max_register_raw_size and
2090 deprecated_max_register_virtual_size.
2091 * v850-tdep.c (v850_gdbarch_init): Ditto.
2092 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2093 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2094 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2095 * cris-tdep.c (cris_gdbarch_init): Ditto.
2096
2097 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2098 * gdbarch.h, gdbarch.c: Re-generate.
2099 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2100 (m68hc11_use_struct_convention): Delete function.
2101 (m68hc11_extract_struct_value_address): Delete function.
2102 (m68hc11_return_value): New function.
2103 (m68hc11_gdbarch_init): Instead of store_return_value,
2104 extract_return_value, return_value_on_stack,
2105 deprecated_extract_struct_value_address and use_struct_convention,
2106 set return_value.
2107 * values.c (using_struct_return): Do not call
2108 RETURN_VALUE_ON_STACK.
2109 * arch-utils.h (generic_return_value_on_stack_not): Delete
2110 declaration.
2111 * arch-utils.c (generic_return_value_on_stack_not): Delete
2112 function.
2113
2114 2004-06-12 Andrew Cagney <cagney@gnu.org>
2115
2116 * values.c (register_value_being_returned): Delete function.
2117 * infcmd.c (legacy_return_value): Delete function.
2118 * infcall.c (call_function_by_hand): Inline
2119 "register_value_being_returned", simplify.
2120 * values.c (using_struct_return): Update comment, refer to
2121 print_return_value instead of register_value_being_returned.
2122 * infcmd.c (print_return_value): Inline calls to
2123 register_value_being_returned and legacy_return_value. Simplify.
2124
2125 2004-06-11 Randolph Chung <tausq@debian.org>
2126
2127 * somread.c (som_symtab_read): Exclude gcc local symbols.
2128
2129 2004-06-11 Randolph Chung <tausq@debian.org>
2130
2131 * infrun.c (handle_inferior_event): Handle the case when a
2132 trampoline ends up in the runtime resolver, and if the trampoline
2133 has no name. Rearrange the code so that all the trampoline
2134 processing happens before other step-out-of-range handling.
2135
2136 2004-06-11 Martin Hunt <hunt@redhat.com>
2137
2138 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2139 has no fpu.
2140
2141 2004-06-10 Andrew Cagney <cagney@gnu.org>
2142
2143 * blockframe.c (legacy_inside_entry_func): Delete.
2144 (legacy_frame_chain_valid): Inline call to
2145 legacy_inside_entry_func, simplify.
2146
2147 2004-06-10 Bob Rossi <bob@brasko.net>
2148
2149 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2150 * dwarf2read.c (partial_die_info): Add dirname field.
2151 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2152 (read_partial_die): Save away DW_AT_comp_dir.
2153 * defs.h (symtab_to_filename): Removed.
2154 * source.c (find_and_open_source): Added.
2155 (open_source_file): Just calls find_and_open_source.
2156 (symtab_to_filename): Removed.
2157 (symtab_to_fullname, psymtab_to_fullname): Added.
2158 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2159 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2160 symtab_to_filename.
2161 * symtab.h (partial_symtab): Add dirname field.
2162 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2163 (mi_cmd_file_list_exec_source_file): Call new function
2164 symtab_to_fullname to find fullname.
2165 (mi_cmd_file_list_exec_source_files): Added.
2166 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2167 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2168
2169 2004-06-10 Andrew Cagney <cagney@gnu.org>
2170
2171 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2172 to generic_use_struct_convention, the default value.
2173
2174 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2175 of abort.
2176
2177 * ns32k-tdep.c (ns32k_push_arguments): New function.
2178 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2179 * infcall.c (call_function_by_hand): Call error instead of
2180 legacy_push_arguments.
2181 * value.h (legacy_push_arguments): Delete declaration.
2182 * valops.c (legacy_push_arguments): Delete function.
2183 (value_push): Delete function.
2184
2185 2004-06-10 Brian Ford <ford@vss.fsi.com>
2186
2187 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2188 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2189 info.
2190 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2191
2192 2004-06-10 Andrew Cagney <cagney@gnu.org>
2193
2194 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2195 * gdbarch.h, gdbarch.c: Re-generate.
2196 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2197 parameters.
2198 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2199 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2200 deprecated_pc_in_call_dummy instead of
2201 DEPRECATED_PC_IN_CALL_DUMMY.
2202 (arm_skip_prologue): Ditto.
2203 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2204 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2205 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2206 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2207 Ditto.
2208 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2209 (sh64_init_extra_frame_info, sh64_get_saved_register)
2210 (sh64_pop_frame): Ditto.
2211 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2212 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2213 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2214 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2215 (h8300_pop_frame): Ditto.
2216 * blockframe.c (legacy_inside_entry_func)
2217 (legacy_frame_chain_valid): Ditto.
2218 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2219 to deprecated_pc_in_call_dummy.
2220
2221 2004-06-09 Andrew Cagney <cagney@gnu.org>
2222
2223 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2224 provide a default value.
2225 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2226 * gdbarch.h, gdbarch.c: Re-generate.
2227 * arch-utils.c (generic_convert_register_p): Rename
2228 legacy_convert_register_p
2229 (legacy_register_to_value, legacy_value_to_register): Delete
2230 functions.
2231 * arch-utils.h (generic_convert_register_p): Rename
2232 legacy_convert_register_p.
2233 (legacy_register_to_value, legacy_value_to_register): Delete
2234 declarations.
2235
2236 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2237 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2238 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2239 * gdbarch.h, gdbarch.c: Re-generate.
2240 * infcmd.c (default_print_registers_info): Simplify.
2241 * findvar.c (value_of_register): Simplify.
2242 * mi/mi-main.c (get_register): Simplify.
2243 * arch-utils.c (legacy_convert_register_p): Always return 0.
2244 (legacy_register_to_value, legacy_value_to_register): Always call
2245 internal_error.
2246
2247 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2248 #ifdef CLEAR_INSN_CACHE code.
2249 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2250 Delete #ifdef CLEAR_DEFERRED_STORES code.
2251
2252 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2253
2254 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2255 copyright.
2256 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2257
2258 * config/mips/mipsv4.mh: Delete file.
2259
2260 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2261 unreferenced macro.
2262 (hpread_adjust_stack_address): Delete declaration.
2263
2264 2004-06-08 Andrew Cagney <cagney@gnu.org>
2265
2266 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2267 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2268 PTRACE_ATTACH / PTRACE_DETACH available call error.
2269 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2270 * infttrace.c (update_thread_state_after_attach, attach, detach):
2271 Remove #ifdef wrappers.
2272 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2273 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2274 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2275 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2276 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2277 * config/nm-linux.h (ATTACH_DETACH): Delete.
2278 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2279 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2280 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2281 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2282 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2283
2284 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2285
2286 * configure.in: Set $configdir to the right OS specific value.
2287 Use value when setting $tcldir and $tkdir.
2288 * configure: Regenerate.
2289
2290 2004-06-06 Paul Brook <paul@codesourcery.com>
2291
2292 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2293 records.
2294
2295 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2296
2297 * ada-lang.c (lookup_symbol_in_language): New function to allow
2298 re-use of another language's symbol lookup code. (Placed here
2299 temporarily while Ada support is being integrated into the public
2300 tree).
2301 (restore_language): New auxiliary function for
2302 lookup_symbol_in_language.
2303 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2304 temporarily while Ada support is being integrated into the public
2305 tree).
2306
2307 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2308
2309 * Makefile.in (check//%): New.
2310
2311 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2312 (mn10300_store_return_value): Rewrite.
2313 (mn10300_type_align): New.
2314 (mn10300_use_struct_convention): Rewrite.
2315 (mn10300_return_value): New, using all of the above.
2316 (mn10300_pop_frame_regular): Add saved_regs_size.
2317 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2318
2319 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2320 regs if PC is on movm.
2321
2322 2004-06-07 Jim Blandy <jimb@redhat.com>
2323
2324 Add native Linux support for the PowerPC E500.
2325 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2326 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2327 all architectures except the E500.
2328 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2329 #definitions.
2330 (struct gdb_evrregset_t): New type.
2331 (have_ptrace_getsetevrregs): New variable.
2332 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2333 fetch_spe_registers): New functions.
2334 (fetch_register): Call fetch_spe_register as appropriate.
2335 Assert that we're only passed raw register numbers.
2336 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2337 Don't fetch gprs if they're pseudoregisters.
2338 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2339 store_spe_registers): New functions.
2340 (store_register): Call store_spe_register as appropriate.
2341 Assert that we're only passed raw register numbers.
2342 (store_ppc_registers): Call store_spe_registers as appropriate.
2343 Don't store gprs if they're pseudoregisters.
2344
2345 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2346
2347 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2348 struct if one exists, even if we are dealing with a zombie thread.
2349
2350 2004-06-07 Andrew Cagney <cagney@gnu.org>
2351
2352 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2353 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2354 Rename PC_REQUIRES_RUN_BEFORE_USE.
2355 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2356 #ifdef.
2357
2358 2004-06-07 Randolph Chung <tausq@debian.org>
2359
2360 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2361 unwinding after sp has been saved to the stack but before the end
2362 of the prologue, and after the fp has been modified but before it has
2363 been saved to the stack.
2364 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2365 Remove superfluous definitions.
2366 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2367
2368 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2369
2370 Committed by Randolph Chung.
2371 * hppa-linux-nat.c: Include the correct version of the header file
2372 depending on the kernel version.
2373
2374 2004-06-06 Randolph Chung <tausq@debian.org>
2375
2376 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2377 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2378
2379 2004-06-06 Randolph Chung <tausq@debian.org>
2380
2381 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2382 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2383 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2384 * hppa-tdep.c (hppa_symbol_address): New function definition.
2385 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2386
2387 2004-06-06 Randolph Chung <tausq@debian.org>
2388
2389 * hppa-tdep.h (struct value): Forward declaration.
2390 (gdbarch_tdep): Define tdep find_global_pointer method.
2391 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2392 associated with the function we are trying to call, and write it
2393 to the gp register.
2394 (hppa32_convert_from_funct_ptr_addr): New function.
2395 (hppa_find_global_pointer): New function.
2396 (hppa_gdbarch_init): Set default find_global_pointer method; set
2397 convert_from_func_ptr_addr method.
2398 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2399 (hppa_linux_init_abi): Set find_global_pointer method.
2400 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2401
2402 2004-06-06 Randolph Chung <tausq@debian.org>
2403
2404 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2405 to struct value *function.
2406 * gdbarch.c: Regenerate.
2407 * gdbarch.h: Likewise.
2408 * infcall.c (call_function_by_hand): Pass entire function value
2409 to push_dummy_call.
2410
2411 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2412 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2413 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2414 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2415 * arm-tdep.c (arm_push_dummy_call): Likewise.
2416 * avr-tdep.c (avr_push_dummy_call): Likewise.
2417 * cris-tdep.c (cris_push_dummy_call): Likewise.
2418 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2419 * frv-tdep.c (frv_push_dummy_call): Likewise.
2420 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2421 * hppa-tdep.c (hppa32_push_dummy_call)
2422 (hppa64_push_dummy_call): Likewise.
2423 * i386-tdep.c (i386_push_dummy_call): Likewise.
2424 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2425 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2426 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2427 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2428 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2429 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2430 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2431 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2432 (ppc64_sysv_abi_push_dummy_call): Likewise.
2433 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2434 (ppc64_sysv_abi_push_dummy_call): Likewise.
2435 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2436 * s390-tdep.c (s390_push_dummy_call): Likewise.
2437 * sh-tdep.c (sh_push_dummy_call_fpu)
2438 (sh_push_dummy_call_nofpu): Likewise.
2439 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2440 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2441 * vax-tdep.c (vax_push_dummy_call): Likewise.
2442
2443 2004-06-04 Jim Blandy <jimb@redhat.com>
2444
2445 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2446 gdbarch argument to register_size.
2447
2448 * rs6000-tdep.c (rs6000_store_return_value): Use
2449 regcache_cooked_write_part instead of
2450 deprecated_write_register_bytes.
2451 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2452 not gdbarch_deprecated_store_return_value.
2453
2454 * ppc-linux-nat.c (store_register, fetch_register): Remove
2455 incorrect assertions. Simplify and generalize handling of
2456 transfers whose sizes are not multiples of, or less than, sizeof
2457 (PTRACE_XFER_TYPE).
2458
2459 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2460
2461 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2462 as a new thread event.
2463 * thread-db.c (thread_get_info_callback): If the thread is a
2464 zombie, return TD_THR_ZOMBIE.
2465 (thread_from_lwp): If thread_get_info_callback returns
2466 TD_THR_ZOMBIE, check if the thread is still on the thread list
2467 and return a -1 ptid if not found.
2468 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2469 change the status to TARGET_WAITKIND_SPURIOUS.
2470
2471 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
2472
2473 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2474 double values in little endian mode.
2475
2476 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2477
2478 Committed by Andrew Cagney.
2479 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2480 after last enum constant to avoid error from IBM C
2481 compiler.
2482
2483 2004-06-02 Jim Blandy <jimb@redhat.com>
2484
2485 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2486 to 'message', and make it local to the lone block that uses it.
2487
2488 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2489
2490 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2491
2492 * ada-exp.y: Update copyright notice.
2493 Include block.h.
2494
2495 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2496 SPECIAL_VARIABLE and unify the treatment of these cases.
2497
2498 (write_attribute_call0): Remove.
2499 (write_attribute_call1): Remove.
2500 (write_attribute_calln): Remove.
2501 (save_qualifier): Add missing semicolon.
2502
2503 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2504 temporarily disabled to allow compilation with FSF head version.
2505
2506 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
2507 use individual operators (OP_*) for all attributes.
2508 (exp syntax): Use write_int.
2509 Handle STRING literals with OP_STRING.
2510 (variable syntax): Add limit parameter to calls to
2511 write_object_renaming.
2512
2513 (temp_parse_space): New definition to hold entities that need
2514 only live until the next call to ada_parse.
2515 (string_to_operator): Rename fields of ada_opname_table entries.
2516
2517 (write_var_from_sym): Record block.
2518 (write_var_from_name): Minor reformatting.
2519 Make sure saved name is properly encoded in the case of multiple
2520 matches, and set its language to Ada.
2521 Update comment.
2522 Modify to indicate unresolved name as symbol in the UNRESOLVED
2523 namespace, allocated in temp_parse_space.
2524 (write_int): New function.
2525
2526 (write_object_renaming): Add max_depth parameter to limit
2527 chains of object renamings.
2528 Handle case where root of renaming expression is itself a renaming.
2529 Use temp_parse_space for temporary name buffer.
2530 Handle renamings to dereferenced pointers (___XEXA suffices).
2531
2532 (ada_parse, yyerror, string_to_operator,
2533 write_var_from_sym, write_var_from_name, write_attribute_call0,
2534 write_attribute_call1, write_attribute_calln,
2535 write_object_renaming): Protoize.
2536
2537 (_initialize_ada_exp): New function.
2538
2539 * ada-lang.c: Update copyright notice.
2540 General terminology change to conform to GNAT compiler usage:
2541 mangle => encode, demangle => decode
2542 Include gdb_obstack.h.
2543 Include gdb_regex.h
2544 Include frame.h
2545 Include hashtab.h
2546 Include completer.h
2547 Include gdb_stat.h
2548 Include block.h
2549 Include infcall.h
2550
2551 (ADA_RETAIN_DOTS): Make sure this is defined.
2552 (TRUNCATION_TOWARDS_ZERO): Define.
2553 (struct string_vector): Define.
2554 (unresolved_names): Remove definition.
2555 (xnew_string_vector): New function.
2556 (string_vector_append): New function.
2557 (extract_string): Make static.
2558 (ada_unqualified_name): New function.
2559 (add_angle_brackets): New function.
2560 (function_name_from_pc): New function.
2561 (place_on_stack): Rename to ensure_lval.
2562
2563 (ensure_lval): Renamed from place_on_stack.
2564 Make identity on lvals.
2565 Update comment.
2566 (is_nonfunction): New interface.
2567 Only symbols in LOC_CONST class can be enumerals.
2568 (fill_in_ada_prototype): Remove; now independent of language.
2569 (add_defn_to_vec): Add obstack and symtab arguments.
2570 Use obstack to hold collected definitions.
2571 (num_defns_collected): New function.
2572 (defns_collected): New function.
2573 (ada_resolve_subexp): Rename to resolve_subexp.
2574 (resolve_subexp): Renamed from ada_resolve_subexp.
2575 (ada_op_name): Return non-const result.
2576 (ada_decoded_op_name): Renamed from ada_op_name, now used for
2577 other purposes.
2578
2579 (to_fixed_array_type): Add declaration.
2580 (coerce_unspec_val_to_type): Remove offset parameter.
2581 (find_sal_from_funcs_and_line): New interface.
2582 (find_line_in_linetable): Ditto.
2583
2584 (all_sals_for_line): Rename to ada_sals_for_line and make
2585 global.
2586 Add new parameter. When set, do not ask the user to choose the
2587 instance, but use the first one found instead.
2588 Use given line number in returned sals.
2589 Fix comment.
2590 Skip the prologue if funfirstline is set.
2591 Correct for memory leak when 0 lines found.
2592
2593 (value_pos_atr): Use pos_atr.
2594 (pos_atr): New function.
2595 (standard_lookup): Add block parameter.
2596
2597 (makeTimeStart): Remove declaration and uses.
2598 (makeTimeStop): Remove declaration and uses.
2599
2600 (ada_completer_word_break_characters): Allow for VMS.
2601 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
2602 (raise_sym_name): New constant.
2603 (raise_unhandled_sym_name): New constant.
2604 (raise_assert_sym_name): New constant.
2605 (process_raise_exception_name): New constant.
2606 (longest_exception_template): New constant.
2607 (warning_limit): New variable to limit warnings during expression
2608 evaluation.
2609 (warnings_issued): New variable to keep track of warnings issued.
2610 (known_runtime_file_name_patterns): New constant.
2611 (known_auxiliary_function_name_patterns): New constant.
2612 (symbol_list_obstack): New variable.
2613
2614 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
2615 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
2616 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
2617 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
2618 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
2619 ada_variant_discrim_name, field_alignment, dynamic_template_type,
2620 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
2621 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
2622 and strcmp.
2623
2624 (ada_get_field_index): New function.
2625 (lim_warning): New function.
2626 (ada_translate_error_message): New function.
2627 (MAX_OF_SIZE): New function.
2628 (MIN_OF_SIZE): New function.
2629 (UMAX_OF_SIZE): New function.
2630 (UMIN_OF_SIZE): New function.
2631 (discrete_type_high_bound): New function.
2632 (discrete_type_low_bound): New function.
2633 (base_type): New function.
2634 (do_command): Remove.
2635
2636 (ada_update_initial_language): Use language_ada, not language_unknown.
2637 (ada_encode): Renamed from ada_mangle.
2638 Obey ADA_RETAIN_DOTS.
2639 (ada_decode): Renamed from ada_demangle.
2640 Update coding conventions.
2641 (decoded_names_store): New hash table.
2642 (ada_decode_symbol): New function.
2643 (ada_la_decode): New function.
2644
2645 (modify_general_field): Correct computations of offset and bit
2646 position.
2647 (desc_base_type): Handle ref types, too.
2648 (ada_is_direct_array_type): New function.
2649
2650 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2651 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2652 (ada_is_bogus_array_descriptor,ada_type_of_array,
2653 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
2654 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
2655 ada_is_array_descriptor_type.
2656
2657 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
2658 (ada_is_packed_array_type): Handle pointers or
2659 references to packed arrays as well.
2660 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
2661 (decode_packed_array_type): Search for the packed array type
2662 symbol in the currently selected block and associated
2663 superblocks too.
2664 Use lookup_symbol again.
2665
2666 (decode_packed_array): Handle pointers and references.
2667 Update call to coerce_unspec_val_to_type.
2668 (decode_packed_array_type,value_subscript_packed): Limit warnings.
2669 (ada_value_primitive_packed_val): Improve comment.
2670
2671 (ada_index_type): Substitute int type for "undefined".
2672 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
2673 ada_array_langth, ada_is_string_type): Use renamed
2674 ada_is_simple_array_type.
2675 (empty_array): New function.
2676
2677 (ada_resolve): Rename to resolve.
2678 (resolve): Make static.
2679 Call renamed resolve_subexp.
2680 Update comment.
2681 (ada_resolve_subexp): Rename to resolve_subexp.
2682 (resolve_subexp): Update comment.
2683 Decomment disabled code.
2684 Add LOC_COMPUTED* cases.
2685 Modify to use temporary struct symbols (marked as being in
2686 UNDEF_NAMESPACE) to indicate unresolved names, instead of
2687 OP_UNRESOLVED_VALUE.
2688 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
2689 Add OP_STRING case.
2690 Remove OP_ARRAY.
2691 Use SYMBOL_PRINT_NAME instead of ada_demangle.
2692 Use new ada_lookup_symbol_list interface.
2693 Use new ada_resolve_function interface.
2694 Remove OP_TYPE case.
2695
2696 (ada_args_match): Idiot proof against null actuals.
2697 Use intermediate variables to clarify.
2698 (ada_resolve_function): Update comment and interface.
2699 (mangled_ordered_before): Rename to encoded_ordered_before and
2700 update comment.
2701 (sort_choices): Update comment and interface.
2702 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
2703 (user_select_syms): New interface.
2704 Use new sort_choices interface.
2705 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
2706 (possible_user_operator_p): Idiot-proof against null values.
2707 (ada_simple_renamed_entity): Don't make cleanup; rely on
2708 caller to free result string.
2709 Remove const from return type.
2710 (make_array_descriptor): Rename uses of place_on_stack to
2711 ensure_lval.
2712 Make sure that arrays are on stack.
2713
2714 (HASH_SIZE): Define.
2715 (struct cache_entry): Define.
2716 (cache_space): Define.
2717 (cache): Define.
2718 (clear_ada_sym_cache): New function.
2719 (find_entry): New function.
2720 (lookup_cached_symbol): New function.
2721 (defn_vector_size): Define.
2722 (cache_symbol): New function.
2723 (defn_symbols): Remove.
2724
2725 (standard_lookup): Use lookup_symbol_in_language to get effect of
2726 C lookup.
2727 Cache results.
2728
2729 (symbol_completion_match): New function.
2730 (symbol_completion_add): New function.
2731 (ada_make_symbol_completion_list): New function.
2732
2733 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
2734 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
2735 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2736 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
2737
2738 (ada_lookup_simple_minsym): New function.
2739 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
2740
2741 (add_symbols_from_enclosing_procs): New interface.
2742 Conditionalize more helpfully.
2743 Don't bother if program isn't running.
2744 Use new interface to get_frame_block.
2745 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
2746
2747 (remove_extra_symbols): New interface.
2748 (xget_renaming_scope): New function.
2749 (is_package_name): New function.
2750 (renaming_is_visible): New function.
2751 (remove_out_of_scope_renamings): New function.
2752
2753 (ada_lookup_symbol_list): New interface.
2754 Properly reinitialize the symbol list obstack.
2755 Don't call add_symbols_from_enclosing_procs if we start from a
2756 static or global block.
2757 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
2758 add_symbols_from_enclosing_procs.
2759 Add symtab data to cached entries.
2760 Handle symbols prefixed with
2761 "standard__" specially; strip prefix and don't look in local symbols.
2762 Do not include out of scope renaming symbols in list of
2763 symbols returned.
2764 Add const to block parameter.
2765 Move check for non-local, non-global symbols earlier.
2766 Remove timing stuff.
2767 (ada_lookup_symbol): New interface.
2768 Find symtab as well.
2769 (ada_lookup_symbol_nonlocal): New function.
2770
2771 (is_name_suffix): Enhance suffix detection to recognize
2772 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
2773 (is_dot_digits_suffix): New function.
2774 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
2775
2776 (ada_add_block_symbols): New interface. Use obstack to return results
2777 in a vector of struct ada_symbol_infos. Add symtab argument.
2778 Use new interface to add_defn_to_vec.
2779 Remove calls to fill_in_ada_prototype.
2780 Use BLOCK_BUCKETS, BLOCK_BUCKET.
2781
2782 (ada_finish_decode_line_1): Add const qualification to local to fix
2783 warning.
2784 Start looking in static block for functions to avoid attempts
2785 to search frame chain for up-level variables.
2786 Adapt to new ada_sals_for_line interface.
2787 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
2788 Handle quoting of the function name inside the spec string.
2789 Skip prologue when funfirstline is set and update the
2790 function documentation to that effect.
2791
2792 (debug_print_lines, debug_print_block, debug_print_blocks,
2793 debug_print_symtab): Remove.
2794
2795 (ada_main_name): New function.
2796 (ada_exception_breakpoint_type): New function.
2797 (is_known_support_routine): New function.
2798 (ada_find_printable_frame): Renamed from find_printable_frame and made
2799 global.
2800 Remove level parameter.
2801 Use new interface to select_frame.
2802
2803 (begin_command): Remove.
2804 (ada_adjust_exception_stop): New function.
2805 (ada_print_exception_stop): New function.
2806 (exception_name_from_cond): New function.
2807 (ada_report_exception_break): Replace disabled code with
2808 conditionalization on GNAT_GDB.
2809 Get the exception name from the condition string.
2810 Remove and move functionality into new functions
2811 ada_print_exception_breakpoint_task and
2812 ada_print_exception_breakpoint_nontask.
2813 (error_breakpoint_runtime_sym_not_found): New function.
2814 (is_runtime_sym_defined): New function.
2815 (ada_breakpoint_rewrite): Uncomment suppressed code.
2816 Use symbolic error-message and runtime-symbol names.
2817 Surround runtime symbol names in quotes.
2818 Allow non-specific breakpoints on exceptions and assertions before
2819 program starts.
2820
2821 (ada_is_tagged_type): Add parameter.
2822 (ada_is_tag_type): New function.
2823 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
2824 (ada_variant_discrim_type): Ditto.
2825 (value_tag_from_contents_and_address): New function.
2826 (type_from_tag): New function.
2827 (struct tag_args): New structure used to communicate with
2828 ada_tag_name_1.
2829 (ada_tag_name_1): New function.
2830 (ada_tag_name): New function.
2831
2832 (ada_scan_number): Update comment.
2833 (find_struct_field): New function.
2834 (ada_search_struct_field): Make static.
2835 (ada_value_struct_elt): New version that returns references when
2836 given pointers or references to structs.
2837 (ada_lookup_struct_elt_type): Add 'refok' parameter.
2838 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
2839 interface.
2840 (ada_value_ind): Use new ada_to_fixed_value interface.
2841 (ada_coerce_ref): Ditto.
2842 (field_offset): Remove.
2843
2844 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
2845 (ada_find_renaming_symbol): New function.
2846 (ada_prefer_type): Prefer named types over unnamed ones.
2847 (variant_field_index): New function.
2848 (contains_variant_part): Removed: subsumed by variant_field_index.
2849 (ada_template_to_fixed_record_type): New function, mostly from
2850 template_to_fixed_record_type.
2851 (template_to_fixed_record_type):
2852 Do not scan the type fields beyond the last one; prevents a
2853 potential SEGV.
2854 Handle case where variant field is listed BEFORE discriminant it
2855 depends on.
2856 Fix calculation of record length when bit length is
2857 not evenly divisible by char length.
2858 Move code to ada_template_to_fixed_record_type and call it.
2859
2860 (template_to_static_fixed_type): Revise comment.
2861 Modify to work on ordinary record types as well as templates,
2862 so as to handle fields that use ___XVE or ___XVU encodings.
2863 (to_record_with_fixed_variant_part): Fill out comment.
2864 Initialize C++ stuff in right type.
2865 Allow case where DVAL is null.
2866 Handle case where variant field is not last.
2867 Fix typo concerning record length.
2868 (to_fixed_record_type): Decomment disabled code.
2869 (to_fixed_record_type): Use variant_field_index instead of
2870 contains_variant_part.
2871 (to_fixed_variant_branch_type): Ditto.
2872 (to_fixed_array_type): Decomment disabled code.
2873 (ada_to_fixed_type): Convert tagged types to the specific type.
2874 Deactivate the size-check for array types in order to avoid
2875 some false size alarms.
2876 (to_static_fixed_type): Decomment disabled code.
2877 Modify to call template_to_static_fixed_type
2878 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
2879 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
2880 Remove valaddr argument, as it is never really used.
2881 (ada_to_fixed_value): Change interface to act on single struct value*
2882 operand.
2883 (adjust_pc_past_prologue): New function.
2884 (ada_attribute_name): Modify to take enum exp_opcode argument.
2885
2886 (ada_enum_name): Recognize new homonym-distinguishing convention.
2887 Adjust local variable's type to remove compiler warning.
2888 Fix a small problem in the part that unqualifies the enumeration name.
2889 (ada_value_binop): New function.
2890 (ada_value_equal): New function.
2891
2892 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
2893 Don't give error message when not doing normal evaluation
2894 and a tagged type doesn't seem to contain a structure member.
2895 Give error message for packed arrays.
2896 For indexing arrays, handle pointers to packed arrays correctly.
2897 Handle case of 'first and 'last attributes of bare integral type
2898 without encoded subtype info.
2899 Remove some unnecessary casts.
2900 Fix uninitialized value of type in computing 'first, 'last, or 'length
2901 of array object.
2902 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
2903 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
2904 calls.
2905 Attributes are now exp_opcode values.
2906 Correct treatment of 'modulus.
2907 Better error message for taking 'length of wrong kind of type;
2908 improve comment.
2909 Change EVAL_NORMAL to noside for consistency.
2910 Use ada_value_binop for DIV, MOD, REM.
2911 Make special case out of array of length 0, since an argument
2912 of 0 upsets some platforms' malloc.
2913 Use OP_STRING instead of OP_ARRAY.
2914 For slice, add check that we have an array type before extracting
2915 a slice out of it. Avoids a SEGV.
2916 When evaluating an array slice, if the array type is a reference to
2917 an aligner type, then replace the aligner type by the actual type.
2918 Decomment disabled code.
2919 Remove some dead code.
2920 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
2921 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
2922 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
2923 and UNOP_MBR to UNOP_IN_RANGE.
2924 If an array type has a parallel ___XVE type, then use it.
2925 Turn arrays into pointers for lvalue arrays.
2926 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
2927 bounds error and handle 0-length slices.
2928 Use lim_warning.
2929 When selecting fields, apply ada_to_fixed_value (because the fields
2930 might have ___XVU or ___XVE encodings even if not dynamic.)
2931 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
2932 (ada_is_system_address_type): New function.
2933
2934 (get_var_value): Use new interface to ada_lookup_symbol_list.
2935 (get_int_var_value): New interface.
2936 (to_fixed_range_type): Allow unknown bound, with warning.
2937 (ada_is_modular_type): Decomment disabled code.
2938 (ADA_OPERATORS): New definition.
2939 (ada_operator_length): New function.
2940 (ada_expr_op_name): New function.
2941 (ada_forward_operator_length): New function.
2942 (ada_dump_subexp_body): New function.
2943 (ada_print_subexp): New function.
2944 (ada_exp_descriptor): New constant.
2945 (ada_op_print_tab): Add 'size. Remove FIXMEs.
2946 (ada_language_defn): Add ada_exp_descriptor entry.
2947 Change ada_parse => parse.
2948 Add post-parser entry.
2949 Use ada-specific non-local symbol lookup.
2950 Don't use C-style arrays.
2951 String lower-bound is 1.
2952 Decomment disabled code.
2953 (parse): New function.
2954 New fields ada_translate_error_message, ada_lookup_symbol,
2955 ada_lookup_minimal_symbol.
2956
2957 * ada-lang.h: Update copyright dates.
2958 Replace the mangle/demangle terminology throughout by the
2959 more appropriate encode/decode one.
2960 Include breakpoint.h.
2961 Forward declare struct partial_symbol, struct block.
2962 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
2963 (EXTRACT_ADDRESS): Remove.
2964 (EXTRACT_INT): Remove.
2965 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
2966 (MAX_ENCLOSING_FRAME_LEVELS): Define.
2967 (MAX_RENAMING_CHAIN_LENGTH): Define.
2968 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
2969
2970 (enum task_states): Remove.
2971 ada_task_states: Remove.
2972 (fat_string): Remove.
2973 (struct entry_call): Remove.
2974 (struct task_fields): Remove.
2975 (struct task_entry): Remove.
2976
2977 (struct ada_symbol_info): Define.
2978 (enum ada_attribute): Remove.
2979 (enum ada_operator): Define.
2980
2981 (ada_get_field_index): Declare.
2982 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
2983 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2984 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2985 (ada_lookup_symbol_list): New interface.
2986 (ada_decode_symbol): Declare.
2987 (ada_decode): Declare.
2988 (ada_lookup_symbol): New interface.
2989 (ada_update_initial_language): Declare.
2990 (ada_lookup_simple_minsym): Declare.
2991 (user_select_syms): New interface.
2992 (ada_sals_for_line): Declare.
2993 (ada_is_tagged_type): New interface.
2994 (ada_tag_name): Declare.
2995 (ada_lookup_struct_elt_type): Remove declaration.
2996 (ada_search_struct_field): Remove declaration.
2997 (ada_attribute_name): New interface.
2998 (ada_is_system_address_type): Declare.
2999 (ada_to_fixed_value): Remove declaration.
3000 (ada_template_to_fixed_record_type_1): Declare.
3001 (get_int_var_value): New interface.
3002 (ada_find_any_symbol): Declare.
3003 (ada_find_renaming_symbol): Declare.
3004 (ada_mangle): Rename to ada_encode.
3005 (ada_simple_renamed_entity): Remove const.
3006 (ada_main_name): Declare.
3007 (get_current_task): Rename to ada_get_current_task.
3008 (get_entry_number): Remove declaration.
3009 (ada_report_exception_break): Remove declaration.
3010 (ada_print_exception_breakpoint_nontask): Declare.
3011 (ada_print_exception_breakpoint_task): Declare.
3012 (ada_find_printable_frame): Declare.
3013
3014 * ada-lex.l: Update copyright notices.
3015 Use xmalloc and xfree instead of malloc and free.
3016 Use new interface to name_lookup.
3017 Use new interface to
3018 ada_mangle=>ada_encode.
3019 Redo handling of '$...' variable to parallel current treatment
3020 in c-exp.y.
3021 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3022 digit_to_int, strtoulst, processInt, processReal, processId,
3023 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3024 yywrap): Protoize.
3025
3026 (processInt): Use cast to remove harmless warning.
3027 (processReal): Modify to get rid of compiler warning on scan formats.
3028
3029 (processId): Replace xmalloc with obstack_alloc for name and remove
3030 call to ada_name_string_cleanup.
3031 Remove obsolete disabled code.
3032 (name_lookup): Ditto.
3033 New interface.
3034 Use obsavestring on temp_parse_space instead of savestring
3035 on name, and remove call to ada_name_string_cleanup.
3036 Free string returned from ada_simple_renamed_entity.
3037 Use new interface to ada_lookup_symbol_list.
3038 Decomment disabled code.
3039 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3040 not types.
3041 When a type name lookup succeeds as a result of
3042 lookup_primitive_typename, check for regular type entry that has not
3043 yet been read in.
3044 Limit length of chain of renamed symbols we are willing to follow.
3045 Do not break names beginning with "standard__" into segments.
3046 (block_lookup): Use new interface to ada_lookup_symbol_list.
3047
3048 * ada-typeprint.c: Update copyright notice.
3049 (demangled_type_name): Rename to decoded_type_name.
3050 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3051 (print_range_bound): Correct handling of negative
3052 bounds that make the index type looked unsigned under STABS.
3053 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3054 (print_range_type_named): Use the builtin int type if no type
3055 corresponding to the given type name could be found.
3056 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3057 Add some bullet-proofing.
3058 (print_variant_clauses): Allow for variant branches with ___XVU
3059 encodings that are not dynamic fields.
3060 Use new interface to ada_is_tagged_type.
3061 (print_record_type): Allow for fields with ___XVE encodings that
3062 are not dynamic fields.
3063 Use new interface to ada_is_tagged_type.
3064 (ada_print_type): ada_is_array_descriptor =>
3065 ada_is_array_descriptor_type.
3066
3067 * ada-valprint.c: Update copyright notice.
3068 Include gdb_string.h
3069 Include infcall.h
3070 (ui_memcpy): New function.
3071 (ada_print_floating): New function.
3072 (ada_print_str): Order arguments correctly.
3073 Correct handling of empty arrays and arrays of 0-length items.
3074 ada_is_array_descriptor => ada_is_array_descriptor_type
3075 Print values of type System.Address in hexadecimal format.
3076 Use ada_print_floating to print floating-point numbers in Ada format.
3077 Print class tag values with type names.
3078 No longer print the address of reference values. Avoids
3079 a potential confusion.
3080 (ada_value_print): Stop printing the object type for reference
3081 values, but preserve that behavior for access types. Avoids
3082 a potential confusion.
3083 Simplify one conditional expression, as the first part is now
3084 necessarily true.
3085 ada_is_array_descriptor => ada_is_array_descriptor_type
3086 Add check for arrays for null records, and print them by hand.
3087
3088 2004-06-01 Jim Blandy <jimb@redhat.com>
3089
3090 * ppc-tdep.h: Delete unused 'regoff' member.
3091 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3092
3093 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3094
3095 Fix PR symtab/1661.
3096 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3097 (hpread_read_struct_type): Likewise.
3098
3099 2004-06-01 Andrew Cagney <cagney@gnu.org>
3100
3101 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3102 instead of xasprintf.
3103 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3104 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3105 (mi_cmd_data_list_register_names)
3106 (mi_cmd_data_list_changed_registers)
3107 (mi_cmd_data_list_register_values)
3108 (get_register, mi_cmd_data_write_register_values)
3109 (mi_cmd_data_write_register_values)
3110 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3111 (mi_cmd_target_download, mi_cmd_target_select)
3112 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3113 (mi_execute_cli_command, mi_execute_async_cli_command)
3114 (mi_execute_async_cli_command): Ditto.
3115 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3116 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3117
3118 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3119 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3120 error_last_message instead of mi_error_last_message.
3121 * mi/mi-main.c (mi_error_last_message): Delete function.
3122
3123 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3124 "invalid number of columns" error. Delete redundant "out of
3125 memory" check.
3126
3127 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3128
3129 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3130 (gregset_t, fpregset_t): Remove typedefs.
3131 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3132 (REG_OFFSET): Rename argument.
3133 (i386bsd_r_reg_offset): Rename from reg_offset.
3134 (REG_ADDR): Remove macro.
3135 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3136 functions.
3137 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3138 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3139 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3140 instead of supply_gregset.
3141 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3142 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3143 instead of fill_gregset.
3144 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3145
3146 * i386bsd-nat.c: Don't include "gregset.h".
3147 (supply_gregset, fill_gregset): Make static.
3148 (supply_fpregset, fill_fpregset): Remove.
3149 * Makefile.in (i386bsd-nat.o): Update dependencies.
3150
3151 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3152
3153 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3154 "gdb_assert.h". Con't include "gregset.h".
3155 (fbsd_make_corefile_notes): Use regset-based core file support
3156 instead off fill_gregset and fill_fpregset.
3157 * Makefile.in (fbsd-proc.o): Update dependencies.
3158
3159 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3160 instructions.
3161 (m88k_frame_prev_register): Simplify code a bit.
3162
3163 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3164 (amd64_collect_fpregset): New function.
3165 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3166
3167 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3168
3169 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3170 (i386_collect_gregset): New function.
3171 (i386_supply_fpregset): Adjust comment.
3172 (i386_collect_fpregset): New function.
3173 (i386_regset_from_core_section): Use i386_collect_gregset and
3174 i386_collect_fpregset.
3175
3176 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3177 handle VALUEP being null.
3178
3179 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3180
3181 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3182
3183 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3184
3185 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3186 assembler in OpenBSD 3.5-current.
3187 (amd64obsd_sigcontext_addr): Likewise.
3188
3189 2004-05-28 Jim Blandy <jimb@redhat.com>
3190
3191 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3192 register set, so our regcache isn't declared "legacy" and our E500
3193 pseudoregister read and write functions aren't ignored.
3194 (rs6000_register_byte, rs6000_register_raw_size,
3195 rs6000_register_virtual_type, rs6000_register_convertible,
3196 rs6000_register_convert_to_virtual,
3197 rs6000_register_convert_to_raw): Deleted.
3198 (rs6000_register_type, rs6000_convert_register_p,
3199 rs6000_register_to_value, rs6000_value_to_register): New
3200 functions.
3201 (rs6000_gdbarch_init): Don't register
3202 gdbarch_deprecated_register_size,
3203 gdbarch_deprecated_register_bytes,
3204 gdbarch_deprecated_register_byte,
3205 gdbarch_deprecated_register_raw_size,
3206 gdbarch_deprecated_register_virtual_type,
3207 gdbarch_deprecated_register_convertible,
3208 gdbarch_deprecated_register_convert_to_virtual, or
3209 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3210 register gdbarch_register_type, gdbarch_convert_register_p,
3211 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3212
3213 2004-05-26 Jim Blandy <jimb@redhat.com>
3214
3215 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3216 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3217 functions, updated to match the register numberings used in GCC.
3218 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3219 rs6000_dwarf2_reg_to_regnum as register number conversions
3220 functions for STABS and Dwarf2.
3221
3222 2004-05-26 Randolph Chung <tausq@debian.org>
3223
3224 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3225 in header file.
3226
3227 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3228
3229 * NEWS: Document new "start" command.
3230
3231 2004-05-25 Randolph Chung <tausq@debian.org>
3232
3233 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3234 hppa-linux.
3235
3236 2004-05-25 Randolph Chung <tausq@debian.org>
3237
3238 * hppa-hpux-tdep.c (offsetof): Define.
3239 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3240 (hppa32_hpux_frame_base_before_sigtramp)
3241 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3242 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3243 (hppa64_hpux_frame_base_before_sigtramp)
3244 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3245 functions.
3246 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3247 (hppa_hpux_sigtramp_frame_unwind_cache)
3248 (hppa_hpux_sigtramp_frame_this_id)
3249 (hppa_hpux_sigtramp_frame_prev_register)
3250 (hppa_hpux_sigtramp_frame_unwind)
3251 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3252 (hppa_hpux_init_abi): Register sigtramp unwinder.
3253 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3254
3255 2004-05-25 Randolph Chung <tausq@debian.org>
3256
3257 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3258 and multiple stack unwinds.
3259 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3260
3261 2004-05-25 Andrew Cagney <cagney@gnu.org>
3262
3263 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3264 * symfile-mem.h: Delete file.
3265 * symfile-mem.c: Do not include "symfile-mem.h".
3266 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3267 "struct bfd_section". When an error do not bother returning NULL.
3268 (add_symbol_file_from_memory_command): Use "struct bfd" and
3269 "struct bfd_section".
3270 * Makefile.in (symfile_mem_h): Delete.
3271 (symfile-mem.o): Update dependencies.
3272
3273 2004-05-25 Nick Roberts <nickrob@gnu.org>
3274
3275 * gdb-mi.el: New file.
3276
3277 2004-05-25 Andrew Cagney <cagney@gnu.org>
3278
3279 * inftarg.c: Include "observer.h".
3280 (child_attach, child_create_inferior): Notify inferior_created.
3281 * corelow.c: Include "observer.h".
3282 (core_open): Notify inferior_created.
3283 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3284
3285 2004-05-25 Andrew Cagney <cagney@gnu.org>
3286
3287 * target.h (struct target_ops): Add from_tty to
3288 to_create_inferior.
3289 (target_create_inferior, find_default_create_inferior): Update.
3290 * infcmd.c (run_command): Update.
3291 * wince.c (child_create_inferior): Update.
3292 * win32-nat.c (child_create_inferior): Update.
3293 * uw-thread.c (uw_thread_create_inferior): Update.
3294 * thread-db.c (thread_db_create_inferior): Update.
3295 * target.c (debug_to_create_inferior)
3296 (find_default_create_inferior): Update.
3297 (maybe_kill_then_create_inferior): Update.
3298 * sol-thread.c (sol_thread_create_inferior): Update.
3299 * remote.c (extended_remote_async_create_inferior)
3300 (extended_remote_create_inferior): Update.
3301 * remote-vx.c (vx_create_inferior): Update.
3302 * remote-st.c (st2000_create_inferior): Update.
3303 * remote-sim.c (gdbsim_create_inferior): Update.
3304 * remote-sds.c (sds_create_inferior): Update.
3305 * remote-rdp.c (remote_rdp_create_inferior): Update.
3306 * remote-rdi.c (arm_rdi_create_inferior): Update.
3307 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3308 * remote-e7000.c (e7000_create_inferior): Update.
3309 * procfs.c (procfs_create_inferior): Update.
3310 * ocd.c (ocd_create_inferior): Update.
3311 * ocd.h (ocd_create_inferior): Update.
3312 * nto-procfs.c (procfs_create_inferior): Update.
3313 * monitor.c (monitor_create_inferior): Update.
3314 * lin-lwp.c (lin_lwp_create_inferior): Update.
3315 * inftarg.c (child_create_inferior): Update.
3316 * hpux-thread.c (hpux_thread_create_inferior): Update.
3317 * gnu-nat.c (gnu_create_inferior): Update.
3318
3319 2004-05-25 Andrew Cagney <cagney@gnu.com>
3320
3321 * MAINTAINERS: Update e-mail address.
3322
3323 2004-05-24 Randolph Chung <tausq@debian.org>
3324
3325 * thread.c (info_threads_command, thread_apply_all_command)
3326 (thread_apply_command, thread_command, do_captured_thread_select):
3327 Remove HPUXHPPA-specific code.
3328
3329 2004-05-24 Randolph Chung <tausq@debian.org>
3330
3331 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3332 unused symbols.
3333 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3334 references.
3335
3336 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3337
3338 * infcmd.c (kill_if_already_running): New function, extracted
3339 from run_command().
3340 (run_command): Replace extracted code by call to
3341 kill_if_already_running().
3342 (start_command): New function.
3343 (_initialize_infcmd): Add "start" command.
3344
3345 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3346
3347 Add OpenBSD/m88k support.
3348 * NEWS (New native configurations): Mention OpenBSD/m88k.
3349 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3350 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3351 * Makefile.in (m88k_tdep_h): New variable.
3352 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3353 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3354 * configure.host: Add m88*-*-openbsd*.
3355 * configure.tgt: Add m88*-*-openbsd*.
3356
3357 2004-05-24 Jim Blandy <jimb@redhat.com>
3358
3359 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3360 to approve changes.
3361
3362 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3363
3364 * symtab.c (fixup_section): Search section table when lookup by
3365 name fails.
3366
3367 2004-05-24 Randolph Chung <tausq@debian.org>
3368
3369 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3370 be "small_struct".
3371
3372 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3373
3374 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3375 register number in regcache_raw_collect call.
3376 (m68kbsd_collect_fpregset): Likewise.
3377 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3378
3379 * regset.h (struct regset): Add back `regset' member.
3380
3381 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3382
3383 * configure.in: Check for td_pcb in `struct thread'.
3384 * configure, config.in: Regenerated.
3385
3386 * dpx2-nat.c: Remove file.
3387 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3388 (dpx2-nat.o): Remove dependencies.
3389
3390 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3391 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3392 (amd64obsd_supply_pcb): New function.
3393 (_initialize_amd64obsd_nat): Enable libkvm interface.
3394 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3395 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3396 (LOADLIBES): New variable.
3397
3398 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3399 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3400 (sparc32nbsd_supply_pcb): New function.
3401 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3402 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3403 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3404 (LOADLIBES): New variable.
3405
3406 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3407
3408 * bsd-kvm.c, bsd-kvm.h: New files.
3409 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3410 "bsd-kvm.h".
3411 (i386fbsd_supply_pcb): New function.
3412 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3413 (i386fbsd-nat.o): Update dependencies.
3414 (bsd_kvm_h): New variable.
3415 (bsd-kvm.o): New dependency.
3416 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3417 (LOADLIBES): New variable.
3418
3419 * regset.c: Tweak comment.
3420 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3421 macro.
3422 * regset.h: Update copyright year.
3423 (struct regset): Remove `descr' member, add `gdbarch' member.
3424 (regset_alloc): Adjust prototype and comment.
3425 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3426 (i386_supply_fpregset): Likewise.
3427 (i386_regset_from_core_section): Update call to regset_alloc.
3428 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3429 REGSET->arch.
3430 (i386obsd_aout_regset_from_core_section): Update call to
3431 regset_alloc.
3432 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3433 REGSET->arch.
3434 (i386nbsd_aout_regset_from_core_section): Update call to
3435 regset_alloc.
3436 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3437 REGSET->arch.
3438 (amd64_regset_from_core_section): Update call to regset_alloc.
3439 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3440 REGSET->arch.
3441 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3442 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3443 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3444 (sparc32nbsd_init_abi): Update call to regset_alloc.
3445 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3446 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3447 (sparc64obsd_init_abi): Update call to regset_alloc.
3448 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3449 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3450 (sparc64nbsd_init_abi): Update call to regset_alloc.
3451 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3452 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3453 (sparc64fbsd_init_abi): Update call to regset_alloc.
3454
3455 2004-05-22 Jim Blandy <jimb@redhat.com>
3456
3457 * ppc-tdep.h (spe_register_p): New declaration.
3458 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3459 ppc_spefscr_regnum.
3460 * rs6000-tdep.c (spe_register_p): New function.
3461 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3462 spefscr.
3463 (rs6000_gdbarch_init): Initialize the new members of the tdep
3464 structure.
3465
3466 2004-05-21 Jim Blandy <jimb@redhat.com>
3467
3468 * ppc-linux-nat.c (fetch_register): Move code back to be next
3469 to the comment that describes it. (Moved code, instead of
3470 comment, for symmetry with store_register.)
3471
3472 Allocate regset structures in the gdbarch's obstack, not using
3473 xmalloc.
3474 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3475 Add 'arch' argument. Allocate the regset on arch's obstack, not
3476 using xmalloc.
3477 * regset.h (regset_alloc): Update declaration.
3478 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3479 gdbarch argument.
3480 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3481 * i386-tdep.c (i386_regset_from_core_section): Same.
3482 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3483 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3484 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3485 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3486 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3487 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3488
3489 2004-05-21 Joel Brobecker <brobecker@gnat.com>
3490
3491 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3492
3493 2004-05-21 Jim Blandy <jimb@redhat.com>
3494
3495 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3496 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3497
3498 2004-05-20 Jim Blandy <jimb@redhat.com>
3499
3500 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3501
3502 2004-05-20 Mark Kettenis <kettenis@gnu.org>
3503
3504 * regset.h: Make prototype const-correct.
3505 * regset.c (regset_xmalloc): Make const-correct.
3506
3507 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
3508
3509 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
3510 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
3511 (symbol_search_name): Declare.
3512
3513 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
3514 (iter_name_next_hashed): Ditto.
3515 (iter_name_next_linear): Ditto.
3516 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
3517
3518 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
3519 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
3520 (symbol_search_name): New function.
3521
3522 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
3523
3524 * minsyms.c (build_minimal_symbol_hash_tables): Change
3525 test for adding to demangled hash table to check for difference
3526 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
3527
3528 2004-05-19 Jim Blandy <jimb@redhat.com>
3529
3530 Use a constructor function to create regset structures.
3531 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
3532 (struct regset): Use supply_regset_ftype. Add new
3533 'collect_regset' member.
3534 (regset_xmalloc): New declaration.
3535 * regset.c: New file.
3536 * am64-tdep.c (amd64_regset_from_core_section): Use
3537 regset_xmalloc to construct regset structures.
3538 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3539 * i386-tdep.c (i386_regset_from_core_section): Same.
3540 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3541 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3542 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3543 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3544 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3545 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3546 * Makefile.in (COMMON_OBS): Add regset.o.
3547 (regset.o): New rule.
3548
3549 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3550
3551 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
3552 and pthread_cond_wait.c.
3553
3554 2004-05-18 Jim Blandy <jimb@redhat.com>
3555
3556 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
3557 before the mach-specific switch, and then let the individual cases
3558 override the defaults, rather than leaving them uninitialized
3559 until the switch and then setting them in each case.
3560
3561 2004-05-18 Randolph Chung <tausq@debian.org>
3562
3563 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
3564 millicode functions.
3565
3566 2004-05-18 Randolph Chung <tausq@debian.org>
3567
3568 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
3569 references to dld_flags_buffer consistent.
3570
3571 2004-05-18 Randolph Chung <tausq@debian.org>
3572
3573 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
3574 it for unwinding the stack.
3575
3576 2004-05-18 Randolph Chung <tausq@debian.org>
3577
3578 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
3579 Undefine these so we can overide them using gdbarch.
3580
3581 2004-05-18 Randolph Chung <tausq@debian.org>
3582
3583 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
3584 handling for 64-bit HPUX (elf).
3585
3586 2004-05-18 Daniel Jacobowitz <dan@debian.org>
3587
3588 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
3589 constants.
3590 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3591 * ia64-tdep.c (examine_prologue): Likewise.
3592 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
3593 * v850-tdep.c (v850_fix_call_dummy): Likewise.
3594
3595 2004-05-18 Mark Kettenis <kettenis@gnu.org>
3596
3597 * vax-tdep.c (vax_return_value): Implement
3598 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3599
3600 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3601
3602 * vax-tdep.c (vax_return_value): Fix typo.
3603
3604 2004-05-17 Andrew Cagney <cagney@redhat.com>
3605
3606 * MAINTAINERS: Mark Salter was also responsible for
3607 testsuite/config/
3608
3609 * NEWS: Mention signal fixes.
3610
3611 2004-05-17 Randolph Chung <tausq@debian.org>
3612
3613 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
3614 check to see if we are unwinding an export stub. Export stubs clobber
3615 the %rp in the call path and stores the original rp in a stack slot.
3616
3617 2004-05-17 Jim Blandy <jimb@redhat.com>
3618
3619 * MAINTAINERS: Update address for J.T. Conklin.
3620
3621 2004-05-17 Randolph Chung <tausq@debian.org>
3622
3623 * hppa-tdep.c: Remove superfluous #include's.
3624 * Makefile.in (hppa-tdep.o): Update dependencies.
3625
3626 2004-05-17 Randolph Chung <tausq@debian.org>
3627
3628 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
3629 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
3630 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
3631 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
3632 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
3633 Remove static function declarations.
3634
3635 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3636
3637 * alphabsd-nat.c: Update copyright year.
3638 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
3639
3640 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
3641 and M68K_A2_REGNUM.
3642
3643 * m68k-tdep.c (m68k_svr4_return_value): Implement
3644 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3645
3646 2004-05-16 Mark Kettenis <kettenis@gnu.org>
3647
3648 * sol-thread.c Update copyright year. Fix various coding
3649 standards violations. Tweak a few comments.
3650 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
3651 Delete prototypes.
3652
3653 2004-05-15 Randolph Chung <tausq@debian.org>
3654
3655 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
3656 as pointer instead of array reference since HPUX compiler does
3657 not accept unsized array arguments.
3658 * somsolib.c (dld_flags_buffer): Use constant array size.
3659
3660 2004-05-15 Mark Kettenis <kettenis@gnu.org>
3661
3662 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
3663 offset with decimal offset.
3664 (amd64obsd_sigcontext_addr): Return correct address for entire
3665 signal trampoline.
3666
3667 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
3668 instead of get_frame_base.
3669
3670 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
3671 (fill_gregset): Use regcache_raw_collect.
3672
3673 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
3674 ppcobsd-tdep.c.
3675
3676 * config/sparc/tm-nbsd64.h: Remove file.
3677 * config/tm-sunos.h: Remove file.
3678
3679 2004-05-15 Joel Brobecker <brobecker@gnat.com>
3680
3681 * rs6000-tdep.c (store_param_on_stack_p): New function,
3682 an improved version of some code extracted from skip_prologue().
3683 (skip_prologue): Use store_param_on_stack_p() to detect
3684 instructions saving a parameter on the stack. Detect when r0
3685 is used to save a parameter.
3686 Do not mark "li rx, SIMM" instructions as part of the prologue,
3687 unless the following instruction is also part of the prologue.
3688
3689 2004-05-14 Andrew Cagney <cagney@redhat.com>
3690
3691 * infrun.c (handle_inferior_event): Simplify
3692 STEP_OVER_UNDEBUGGABLE.
3693
3694 * infrun.c (handle_step_into_function): Delete function.
3695 (handle_inferior_event): Inline calls to
3696 handle_step_into_function.
3697
3698 2004-05-14 Jerome Guitton <guitton@gnat.com>
3699
3700 * rs6000-nat.c: Fix a comment.
3701
3702 2004-05-12 David Anderson <davea@sgi.com>
3703
3704 Committed by Jim Blandy <jimb@redhat.com>:
3705 * regcache.c (struct regcache_descr): fix comment spelling.
3706
3707 2004-05-13 J. Brobecker <brobecker@gnat.com>
3708
3709 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
3710 Fixes a link link failure.
3711
3712 2004-05-13 J. Brobecker <brobecker@gnat.com>
3713
3714 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
3715 error that was causing the build to fail.
3716
3717 2004-05-13 J. Brobecker <brobecker@gnat.com>
3718
3719 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
3720 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
3721
3722 2004-05-13 Andrew Cagney <cagney@redhat.com>
3723
3724 * infrun.c (handle_inferior_event): Check for
3725 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
3726 calls. Update comments.
3727
3728 2004-05-13 Jim Blandy <jimb@redhat.com>
3729
3730 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
3731 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3732 (store_regs_user_thread, store_regs_kernel_thread): Use
3733 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
3734 * ppc-linux-nat.c (fill_gregset): Same.
3735 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3736 (ppc_linux_sigtramp_cache): Same.
3737 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
3738 (ppcnbsd_sigtramp_cache_init): Same.
3739 * rs6000-nat.c (fetch_core_registers): Same.
3740 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3741 (rs6000_frame_cache): Same.
3742
3743 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
3744 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
3745 of assuming that the gprs are numbered starting with zero.
3746 * ppc-linux-nat.c (fill_gregset): Same.
3747 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
3748 * ppcnbsd-nat.c (getregs_supplies): Same.
3749 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
3750 * rs6000-nat.c (fetch_core_registers): Same.
3751 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
3752
3753 2004-05-07 Michael Snyder <msnyder@redhat.com>
3754
3755 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
3756 LOC_COMPUTED_ARG, and LOC_INDIRECT.
3757
3758 2004-05-13 Andrew Cagney <cagney@redhat.com>
3759
3760 * infrun.c (handle_inferior_event): Use frame_unwind_id.
3761
3762 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
3763
3764 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
3765 base_address for shared libraries.
3766
3767 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
3768
3769 * MAINTAINERS (write after approval): Add myself.
3770
3771 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3772
3773 * breakpoint.c (bpstat_stop_status): Add new argument
3774 STOPPED_BY_WATCHPOINT. Use it instead of testing
3775 target_stopped_data_address agaist 0 to check whether
3776 or not we stopped due to a hardware watchpoint.
3777 * breakpoint.h (bpstat_stop_status): Adapt prototype.
3778 * infrun.c (handle_inferior_event): Call bpstat_stop_status
3779 with new argument.
3780
3781 2004-05-12 Jim Blandy <jimb@redhat.com>
3782
3783 * configure.in: When checking whether we should use the -bbigtoc
3784 option, don't forget to restore the original value of LDFLAGS.
3785 * configure: Regenerated.
3786
3787 2004-05-12 Andrew Cagney <cagney@redhat.com>
3788
3789 * thread.c (load_infrun_state): Delete step_sp.
3790 * infrun.c (context_switch): Ditto.
3791 * inferior.h (step_sp): Ditto.
3792 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
3793 * gdbthread.h (struct thread_info, save_infrun_state)
3794 (restore_infrun_state): Ditto.
3795
3796 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
3797
3798 * MAINTAINERS (write after approval): Add myself.
3799
3800 2004-05-12 Andrew Cagney <cagney@redhat.com>
3801
3802 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
3803 eliminate reference to step_sp.
3804 (struct execution_control_state, init_execution_control_state)
3805 (handle_inferior_event, keep_going): Delete update_step_sp and
3806 step_sp.
3807 * infcmd.c (step_sp): Note that variable is unused.
3808
3809 2004-05-11 Andrew Cagney <cagney@redhat.com>
3810
3811 * infrun.c (step_over_function): Delete function.
3812 (handle_step_into_function): Use insert_step_resume_breakpoint.
3813 (insert_step_resume_breakpoint): Fix assertion.
3814
3815 2004-05-11 Nick Roberts <nickrob@gnu.org>
3816
3817 * utils.c (defaulted_query): Just use the normal query input type
3818 when printing the annotations.
3819
3820 2004-05-11 Andrew Cagney <cagney@redhat.com>
3821
3822 * infrun.c (handle_inferior_event): Simplify code handling
3823 step-into or return-from a signal trampoline.
3824
3825 2004-05-11 Andrew Cagney <cagney@redhat.com>
3826
3827 * ppcnbsd-tdep.c: Include "gdb_assert.h".
3828 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
3829
3830 2004-05-10 Jim Blandy <jimb@redhat.com>
3831
3832 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
3833 with a call to internal_error.
3834
3835 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
3836 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
3837 processor variant lacks those registers.
3838 (ppc_floating_point_unit_p): Change description to make it clear
3839 that this returns info about the ISA, not the ABI.
3840 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
3841 return true or false by checking tdep->ppc_fp0_regnum and
3842 tdep->ppc_fpscr_regnum. The original code replicated the BFD
3843 arch/mach switching done in rs6000_gdbarch_init; it's better to
3844 keep that logic there, and just check the results here.
3845 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
3846 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
3847 floating-point registers.
3848 (ppc_supply_fpregset, ppc_collect_fpregset)
3849 (rs6000_push_dummy_call, rs6000_extract_return_value)
3850 (rs6000_store_return_value): Assert that we have floating-point
3851 registers.
3852 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
3853 (rs6000_frame_cache): Don't note the locations at which
3854 floating-point registers were saved if we have no fprs.
3855 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
3856 registers.
3857 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3858 (store_regs_user_thread, store_regs_kernel_thread): Only call
3859 supply_fprs / fill_fprs if we actually have floating-point
3860 registers.
3861 (special_register_p): Check ppc_fpscr_regnum before matching
3862 against it.
3863 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
3864 supply / collect fpscr if we don't have it.
3865 * ppc-bdm.c: #include "gdb_assert.h".
3866 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
3867 have floating-point registers, since I can't test this code on
3868 FP-free systems to adapt it.
3869 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
3870 fpscr and floating point register numbers if they don't exist.
3871 (fetch_register): Assert that we have floating-point registers
3872 before we reach the code that handles them.
3873 (store_register): Same. And use tdep instead of calling
3874 gdbarch_tdep again.
3875 (fill_fpregset): Don't try to collect FP registers and fpscr if we
3876 don't have them.
3877 (ppc_linux_sigtramp_cache): Don't record the saved locations of
3878 fprs and fpscr if we don't have them.
3879 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
3880 don't have them.
3881 * ppcnbsd-nat.c: #include "gdb_assert.h".
3882 (getfpregs_supplies): Assert that we have floating-point registers.
3883 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
3884 * ppcobsd-tdep.c: #include "gdb_assert.h".
3885 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
3886 have floating-point registers.
3887 * rs6000-nat.c (regmap): Don't match against the fpscr and
3888 floating point register numbers if they don't exist.
3889 (fetch_inferior_registers, store_inferior_registers,
3890 fetch_core_registers): Only fetch / store / supply the
3891 floating-point registers and the fpscr if we have them.
3892 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
3893 (ppcobsd-tdep.o): Update dependencies.
3894
3895 2004-05-10 Andrew Cagney <cagney@redhat.com>
3896
3897 * infrun.c (through_sigtramp_breakpoint): Delete variable.
3898 (context_switch): Do not switch through_sigtramp_breakpoint.
3899 * gdbthread.h (save_infrun_state, load_infrun_state)
3900 (struct thread_info): Delete through_sigtramp_breakpoint parameter
3901 and structure member.
3902 * thread.c (load_infrun_state, save_infrun_state): Update.
3903
3904 2004-05-10 Mark Kettenis <kettenis@gnu.org>
3905
3906 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
3907
3908 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3909
3910 * acinclude.m4: Quote macro names being defined by AC_DEFUN
3911 throughout.
3912 * aclocal.m4: Regenerate.
3913
3914 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
3915
3916 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
3917
3918 2004-05-10 Andrew Cagney <cagney@redhat.com>
3919
3920 * infrun.c (check_sigtramp2): Delete function.
3921 (handle_inferior_event): When single stepping, and taking a
3922 signal, set a breakpoint at the signal return address. Delete
3923 redundant calls to check_sigtramp2.
3924 (insert_step_resume_breakpoint): New function.
3925 (through_sigtramp_breakpoint, handle_inferior_event)
3926 (follow_exec, wait_for_inferior, fetch_inferior_event)
3927 (currently_stepping, keep_going): Delete most uses of
3928 through_sigtramp_breakpoint, not that it should be deleted.
3929 (delete_breakpoint_current_contents): Delete function.
3930
3931 2004-05-10 Randolph Chung <tausq@debian.org>
3932
3933 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
3934 target.
3935 * config/pa/tm-linux.h: New file.
3936
3937 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
3938
3939 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
3940 of prefixes. Don't print the prefix twice in the CLI.
3941
3942 2004-05-10 Jim Blandy <jimb@redhat.com>
3943
3944 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
3945 collect all the gprs.
3946
3947 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
3948 loop collecting gprs.
3949
3950 2004-05-09 Andrew Cagney <cagney@redhat.com>
3951
3952 * remote-vx.c (net_step): Delete step-range code.
3953 * remote.c (remote_resume, init_all_packet_configs)
3954 (set_remote_protocol_E_packet_cmd)
3955 (show_remote_protocol_E_packet_cmd)
3956 (remote_protocol_E, show_remote_cmd, _initialize_remote)
3957 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
3958 (show_remote_protocol_e_packet_cmd): Ditto.
3959
3960 2004-05-09 Mark Kettenis <kettenis@gnu.org>
3961
3962 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
3963
3964 * hppa-tdep.h: Update copyright year.
3965 (struct trad_frame_saved_reg): Add opaque declaration.
3966
3967 * amd64-tdep.c (amd64_return_value): Implement
3968 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3969
3970 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
3971 (m68k_value_to_register): New functions.
3972 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
3973 value_to_register.
3974
3975 * defs.h (enum return_value_convention): Add
3976 RETURN_VALUE_ABI_RETURNS_ADDRESS and
3977 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3978 * infcmd.c (legacy_return_value): New function.
3979 (print_return_value): Rwerite to implement
3980 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3981 * values.c (using_struct_return): Check for inequality to
3982 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
3983 RETURN_VALUE_STRUCT_CONVENTION.
3984 * i386-tdep.c (i386_return_value): Implement
3985 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3986
3987 * vax-tdep.c: Tweak comments. Reorder include files. Don't
3988 include "symtab.h", "opcode/vax.h" and "inferior.h".
3989 (vax_skip_prologue): Replace calls to read_memory_integer by calls
3990 to read_memory_unsigned_integer.
3991 (vax_gdbarch_init): Reorder.
3992 (_initialize_vax_tdep): Spell out prototype.
3993 * Makefile.in (vax-tdep.o): Update dependencies.
3994
3995 2004-05-08 Andrew Cagney <cagney@redhat.com>
3996
3997 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
3998 * target.c (target_detach, target_disconnect): Ditto.
3999
4000 * infcall.c (call_function_by_hand): When no
4001 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4002 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4003 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4004 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4005 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4006
4007 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4008 * gdbarch.h, gdbarch.c: Re-generate.
4009 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4010 deprecated_fix_call_dummy.
4011 * v850-tdep.c (v850_gdbarch_init): Ditto.
4012 * infcall.c (call_function_by_hand): Do not call
4013 DEPRECATED_FIX_CALL_DUMMY.
4014
4015 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4016 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4017 * gdbarch.h, gdbarch.c: Re-generate.
4018 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4019 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4020 deprecated_sizeof_call_dummy_words.
4021 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4022 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4023 * v850-tdep.c (v850_gdbarch_init): Ditto.
4024 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4025 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4026 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4027 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4028 * arch-utils.h (legacy_call_dummy_words)
4029 (legacy_sizeof_call_dummy_words): Delete declarations.
4030 * arch-utils.c (legacy_call_dummy_words)
4031 (legacy_sizeof_call_dummy_words): Delete variables.
4032
4033 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4034 * gdbarch.h, gdbarch.c: Re-generate.
4035 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4036 * infcall.c (call_function_by_hand): Eliminate call to
4037 DEPRECATED_PUSH_DUMMY_FRAME.
4038 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4039 push_dummy_frame.
4040 (ns32k_push_dummy_frame): Delete function.
4041
4042 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4043 deprecated_call_dummy_breakpoint_offset or
4044 deprecated_call_dummy_start_offset.
4045 * dummy-frame.c, arm-tdep.c: Update comments.
4046 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4047 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4048 * gdbarch.h, gdbarch.c: Re-generate.
4049
4050 * infcall.c (legacy_push_dummy_code): Delete function.
4051 (push_dummy_code): Delete call.
4052
4053 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4054 * gdbarch.h, gdbarch.c: Re-generate.
4055 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4056 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4057 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4058 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4059
4060 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4061 (struct frame_info): Delete opaque declaration.
4062 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4063 * frame.c (get_frame_type): Delete call.
4064
4065 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4066 pc_in_call_dummy.
4067 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4068 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4069
4070 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4071
4072 * alphanbsd-tdep.c: Include "gdb_string.h".
4073 * armnbsd-tdep.c: Update copyright year.
4074 Include "gdb_string.h".
4075 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4076 dependencies.
4077
4078 * delta68-nat.c: Remove file.
4079 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4080 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4081 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4082 (delta68-nat.o): Remove dependency.
4083
4084 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4085 function.
4086 (m68k_gdbarch_init): Don't set
4087 deprecated_frameless_function_invocation.
4088
4089 2004-05-07 Randolph Chung <tausq@debian.org>
4090
4091 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4092 read_memory_nobpt for code reading when doing frame unwinding.
4093 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4094
4095 2004-05-07 Randolph Chung <tausq@debian.org>
4096
4097 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4098 instead of sp, handle sigaltstack case.
4099 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4100 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4101 signal handler and not that of the caller.
4102 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4103 hppa_linux_sigtramp_find_sigcontext.
4104
4105 2004-05-07 Randolph Chung <tausq@debian.org>
4106
4107 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4108 hppa-linux-nat.c.
4109 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4110 * hppa-linux-nat.c (fetch_register, store_register): Define.
4111 (fetch_inferior_registers, store_inferior_registers): Define.
4112 (supply_gregset): Add comment and clean up some unneeded code.
4113 (fill_gregset): Add comment and fix so that it saves registers in
4114 the right place in the gregset.
4115 (fill_fpregset): Fix buffer overrun problem.
4116 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4117
4118 2004-05-07 Randolph Chung <tausq@debian.org>
4119
4120 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4121 do common handling of the pcoqt register.
4122 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4123 to use helper function.
4124 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4125 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4126 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4127 generic fallback unwinder when all else fails.
4128 (hppa_gdbarch_init): Add fallback sniffer.
4129 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4130 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4131 to use helper function.
4132
4133 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4134
4135 * config/djgpp/fnchange.lst: Add translation rules for
4136 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4137
4138 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4139
4140 * frame.c (get_prev_frame_1): Work around GCC bug.
4141 * frame.h: Add comment about GCC bug.
4142
4143 2004-05-07 Andrew Cagney <cagney@redhat.com>
4144
4145 * observer.c: Include "commands.h" and "gdbcmd.h".
4146 (observer_debug, _initialize_observer): Add the
4147 command "set/show debug observer".
4148 * observer.sh: When observer debugging, log notify calls.
4149 * Makefile.in (observer.o): Update dependencies.
4150
4151 2004-05-07 Jason Molenda (jmolenda@apple.com)
4152
4153 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4154
4155 2004-05-07 Jim Blandy <jimb@redhat.com>
4156
4157 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4158 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4159 to recognize gpr regnums, instead of assuming that
4160 tdep->ppc_fp0_regnum marks the end of the general-purpose
4161 registers.
4162
4163 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4164 the given architecture has floating-point registers.
4165
4166 2004-05-07 Andrew Cagney <cagney@redhat.com>
4167
4168 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4169 macro defined to 1.
4170 * gdbarch.h, gdbarch.c: Re-generate.
4171 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4172 deprecated_use_generic_dummy_frames.
4173
4174 2004-05-07 Brian Ford <ford@vss.fsi.com>
4175
4176 * NEWS: Mention Cygwin DWARF 2 support.
4177
4178 2004-05-07 Andrew Cagney <cagney@redhat.com>
4179
4180 * objfiles.h (struct entry_info): Delete unused fields
4181 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4182 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4183 * mipsread.c (mipscoff_symfile_read): Update.
4184 * mdebugread.c (parse_partial_symbols): Update.
4185 * dwarfread.c (read_file_scope): Update.
4186 * dwarf2read.c (read_file_scope): Update.
4187 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4188 * coffread.c (complete_symtab): Update.
4189
4190 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4191
4192 * infcall.c (_initialize_infcall): Fix typo.
4193
4194 2004-05-07 Andrew Cagney <cagney@redhat.com>
4195
4196 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4197 * command.h (add_setshow_zinteger_cmd): Declare.
4198
4199 2004-05-06 Randolph Chung <tausq@debian.org>
4200
4201 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4202 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4203 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4204 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4205 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4206 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4207 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4208 definitions ...
4209 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4210 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4211 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4212 (hppa64_hpux_frame_find_saved_regs_in_sig)
4213 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4214 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4215 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4216 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4217 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4218 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4219 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4220 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4221 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4222 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4223 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4224 (hppa32_register_type, hppa_cannot_store_register)
4225 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4226 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4227 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4228 * pa64solib.c (pa64_solib_have_load_event)
4229 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4230 (pa64_solib_unloaded_library_pathname): Likewise.
4231 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4232 (som_solib_library_pathname): Likewise.
4233
4234 2004-05-05 Jim Ingham <jingham@apple.com>
4235
4236 * breakpoint.c (create_breakpoints): Copy the ignore count and
4237 thread id over from the pended breakpoint to the actual
4238 breakpoint.
4239
4240 2004-05-05 Andrew Cagney <cagney@redhat.com>
4241
4242 * gdbarch.sh (PARM_BOUNDARY): Delete.
4243 gdbarch.h, gdbarch.c: Re-generate.
4244 * valops.c (PARM_BOUNDARY): Delete macro.
4245 (value_push): Delete PARM_BOUNDARY code.
4246 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4247
4248 2004-05-04 Jim Blandy <jimb@redhat.com>
4249
4250 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4251 Don't assume that the gprs, fprs, and UISA sprs are
4252 contiguous, start at register number zero, and end with fpscr.
4253 Instead, use the numbers from the tdep structure.
4254
4255 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4256 should no longer be used in code specific to the RS6000 and its
4257 derivatives.
4258 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4259 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4260 tdep->ppc_fp0_regnum.
4261 (ppc_supply_fpregset, ppc_collect_fpregset)
4262 (rs6000_push_dummy_call, rs6000_extract_return_value)
4263 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4264 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4265 FP0_REGNUM.
4266 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4267 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4268 Same.
4269 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4270 bdm_ppc_store_registers): Same.
4271 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4272 (store_register, fill_fpregset): Same.
4273 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4274 (ppc_linux_supply_fpregset): Same.
4275 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4276 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4277 Same.
4278 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4279 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4280 ppc64_sysv_abi_return_value): Same.
4281 * rs6000-nat.c (regmap, fetch_inferior_registers)
4282 (store_inferior_registers, fetch_core_registers): Same.
4283
4284 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4285
4286 * m68knbsd-nat.c: Remove file.
4287 * m68knbsd-tdep.c: Remove file.
4288 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4289 dependencies.
4290 * configure.host: Add m68k-*-netbsdelf*.
4291 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4292 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4293 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4294 (XM_FILE): Remove.
4295 * config/m68k/nbsdelf.mh: New file.
4296 * config/m68k/nbsd.mt: New file.
4297 * config/m68k/nbsdaout.mt: Remove file.
4298 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4299 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4300 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4301 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4302 (use_struct_convention): Remove prototype.
4303 (USE_STRUCT_CONVENTION): Remove define.
4304 * config/m68k/xm-nbsd.h: Remove file.
4305
4306 2004-05-04 Michael Snyder <msnyder@redhat.com>
4307
4308 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4309 reg_struct_return method (as gcc usually does for cross targets).
4310
4311 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4312
4313 Committed by Andrew Cagney.
4314 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4315 alignment padding when accessing ucontext struct members.
4316
4317 2004-05-04 Jim Blandy <jimb@redhat.com>
4318
4319 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4320 'ppc_gplast_regnum' member.
4321 (ppc_num_gprs): New enum constant.
4322 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4323 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4324 * rs6000-nat.c (regmap, fetch_inferior_registers,
4325 store_inferior_registers): Same.
4326 * rs6000-tdep.c (e500_pseudo_register_read)
4327 (e500_pseudo_register_write): Same.
4328 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4329
4330 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4331 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4332 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4333 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4334 FPLAST_REGNUM.
4335 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4336 Same.
4337 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4338 * rs6000-nat.c (regmap, fetch_inferior_registers)
4339 (store_inferior_registers): Same.
4340
4341 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4342 with FPLAST_REGNUM.
4343
4344 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4345
4346 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4347 failure detected by recent versions of GCC.
4348 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4349 to be consistent with the usage in dwarf2_create_include_psymtab.
4350
4351 2004-05-03 Michael Snyder <msnyder@redhat.com>
4352
4353 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4354 (heuristic_proc_start): Whitespace cleanup.
4355
4356 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4357
4358 * sun3-nat.c: Remove file.
4359 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4360 dependencies.
4361 (ALLDEPFILES): Remove sun3-nat.c.
4362 (sun3-nat.o): Remove dependencies.
4363
4364 * i386-interix-nat.c, i386-interix-tdep.c,
4365 config/i386/nm-interix.h, config/i386/interix.mh,
4366 config/i386/interix.mt: Remove files.
4367 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4368 dependencies.
4369
4370 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4371
4372 * m68k-tdep.h (struct gdbarch_tdep): Add member
4373 struct_value_regnum.
4374 (m68k_svr4_init_abi): New prototype.
4375 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4376 different calling conventions.
4377 (m68k_extract_return_value): Remove code dealing with single-field
4378 structs.
4379 (m68k_store_return_value): Remove code dealing with single-field
4380 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4381 (m68k_extract_struct_value_address): Remove function.
4382 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4383 (m68k_reg_struct_return_p, m68k_return_value)
4384 (m68k_svr4_return_value): New functions.
4385 (m68k_use_struct_convention): Remove function.
4386 (m68k_push_dummy_call): Use new struct_value_regnum member of
4387 `struct gdbarch_tdep' instead of hardcoded register number to
4388 store STRUCT_ADDR.
4389 (m68k_svr4_init_abi): New function.
4390 (m68k_gdbarch_init): Don't set extract_return_value,
4391 store_return_values, deprecated_extract_struct_value_address and
4392 use_struct_convention. Set return_value instead. Initialize new
4393 struct_value_regnum member of `struct gdbarch_tdep'.
4394 * m68klinux-tdep.c: Update copyright year.
4395 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4396 (m68k_linux_extract_struct_value_address): Remove function.
4397 (m68k_linux_init_abi): Don't set extract_return_value,
4398 store_return_values, deprecated_extract_struct_value_address and
4399 use_struct_convention. Call m68k_svr4_init_abi but override the
4400 new struct_value_regnum member of `struct gdbarch_tdep'.
4401 * Makefile.in (m68k-tdep.o): Update dependencies.
4402
4403 2004-05-03 J. Brobecker <brobecker@gnat.com>
4404
4405 * dwarf2read.c (line_header): Add new included_p field in
4406 field file_names.
4407 (partial_die_info): New field has_stmt_list. New field line_offset.
4408 (dwarf2_create_include_psymtab): New function.
4409 (dwarf2_build_include_psymtabs): New function.
4410 (add_file_name): Add forward declaration. Initialize new field.
4411 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4412 to be able to determine the list of files included by the
4413 given unit, and build their associated psymtabs.
4414 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4415 files as well.
4416 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4417 (read_file_scope): Update call to dwarf_decode_lines.
4418 (read_partial_die): Handle DW_AT_stmt_list attributes.
4419
4420 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4421
4422 Unfix PR gdb/1626.
4423 * configure.in: Revert special case for osf5.*.
4424 * configure: Regenerate.
4425
4426 2004-05-02 Jim Blandy <jimb@redhat.com>
4427
4428 Move the symbol-file-from-memory functions into their own file.
4429 * symfile-mem.c, symfile-mem.h: New files.
4430 * symfile.c (symbol_file_add_from_bfd): New function.
4431 (symbol_file_add): Call symbol_file_add_from_bfd.
4432 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4433 Moved to symfile-mem.c.
4434 (_initialize_symfile): Move definition of
4435 add-symbol-file-from-memory command to symfile-mem.c.
4436 * symfile.h (symbol_file_add_from_bfd): New declaration.
4437 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4438 * config/powerpc/linux.mt (TDEPFILES): Same.
4439 * Makefile.in (SFILES): Add symfile-mem.c.
4440 (symfile_mem_h): New variable.
4441 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4442 (symfile-mem.o): New rule.
4443
4444 2004-05-01 Andrew Cagney <cagney@redhat.com>
4445
4446 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4447 frame_find_by_id instead of frame_relative_level.
4448 (do_enable_breakpoint): Ditto.
4449 * thread.c: Update copyright.
4450 (info_threads_command): Ditto, simplify.
4451
4452 * frame.c (deprecated_generic_get_saved_register): Delete
4453 function, moved to "xstormy16-tdep.c".
4454 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4455 deprecated_generic_get_saved_register from "frame.c".
4456 (xstormy16_frame_saved_register): Call
4457 xstormy16_get_saved_register.
4458 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4459 static.
4460 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4461 * frame.h (deprecated_generic_get_saved_register): Delete.
4462
4463 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4464
4465 * dwarfread.c: Update documentation on the state of dwarf-1.
4466
4467 2004-05-01 Andrew Cagney <cagney@redhat.com>
4468
4469 * stack.c (select_frame_command): Delete call to
4470 frame_relative_level.
4471 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4472 Delete #if0 code.
4473 (frame_info): Do not print FRAMELESS.
4474 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4475 (catch_info): Delete #if0 code.
4476
4477 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4478 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4479 of frame_relative_level.
4480 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4481 to SENTINEL_FRAME.
4482 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4483 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4484 frame_relative_level.
4485
4486 * frame.h (deprecated_set_frame_type): Delete declaration.
4487 * frame.c (deprecated_set_frame_type): Delete function, update
4488 comments.
4489
4490 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4491 * gdbarch.h, gdbarch.c: Re-generate.
4492 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4493 (shnbsd_pc_in_sigtramp): Delete.
4494 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4495 pc_in_sigtramp.
4496 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4497 pc_in_sigtramp.
4498 * frame.h: Update comments.
4499 * ppc-linux-tdep.c: Update comments.
4500 * breakpoint.c (bpstat_what): Update comments.
4501
4502 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4503 m68klinux-tdep.o's dependencies, were previously added to
4504 m68klinux-nat.o.
4505
4506 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
4507 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
4508 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4509 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4510 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4511
4512 * Makefile.in (m68klinux-nat.o): Update dependencies.
4513 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4514 (m68k_linux_sigtramp_frame_cache)
4515 (m68k_linux_sigtramp_frame_this_id)
4516 (m68k_linux_sigtramp_frame_prev_register)
4517 (m68k_linux_sigtramp_frame_unwind)
4518 (m68k_linux_sigtramp_frame_sniffer)
4519 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
4520 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
4521 names, use trad-frame.h.
4522 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
4523 (struct m68k_sigtramp_info): Delete.
4524 * m68k-tdep.c (m68k_sigtramp_frame_cache)
4525 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
4526 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
4527 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
4528 "m68klinux-tdep.c".
4529
4530 * infrun.c (check_sigtramp2): Delete check for
4531 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
4532
4533 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4534
4535 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
4536
4537 2004-05-01 Andrew Cagney <cagney@redhat.com>
4538
4539 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4540 (frv_linux_sigtramp_frame_cache)
4541 (frv_linux_sigtramp_frame_this_id)
4542 (frv_linux_sigtramp_frame_prev_register)
4543 (frv_linux_sigtramp_frame_unwind)
4544 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
4545 include "linux" in function and variable names, directly call
4546 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
4547 the latest trad-frame code.
4548 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
4549 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
4550 * Makefile.in (frv-linux-tdep.o): Update dependencies.
4551 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
4552 * frv-tdep.c (frv_sigtramp_frame_cache)
4553 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4554 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
4555 frv-linux-tdep.c.
4556 (frv_gdbarch_init): Do not append a sigtramp sniffer.
4557 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
4558 (frv_set_sigcontext_reg_addr): Delete function.
4559
4560 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
4561 (DEPRECATED_SIGTRAMP_END): Delete.
4562 * gdbarch.h, gdbarch.c: Re-generate.
4563 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
4564 * config/vax/tm-vaxbsd.h: Update copyright.
4565 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4566 (DEPRECATED_IN_SIGTRAMP): Define.
4567 * config/m68k/tm-nbsd.h: Update copyright.
4568 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4569 (DEPRECATED_IN_SIGTRAMP): Define.
4570
4571 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4572
4573 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
4574 encondings. Fixes PR gdb/1628.
4575
4576 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
4577 DW_CFA_restore state without a matching DW_CFA_remember_state
4578 instead of aborting. Fixes PR backtrace/1589.
4579
4580 2004-04-30 Joel Brobecker <brobecker@gnat.com>
4581
4582 * MAINTAINERS: Add self as AIX maintainer.
4583 Update my e-mail address in write-after-approval section.
4584
4585 2004-04-30 Andrew Cagney <cagney@redhat.com>
4586
4587 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
4588 (legacy_get_prev_frame): Ditto.
4589
4590 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
4591 (mips_gdbarch_init): Do not set pc_in_sigtramp.
4592 * mipsread.c (sigtramp_address): Delete extern variable.
4593 (mipscoff_new_init): Delete reference.
4594 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
4595 (fixup_sigtramp): Delete function.
4596 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
4597 (fixup_sigtramp): Delete declarations.
4598
4599 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
4600 deprecated_pc_in_sigtramp.
4601 (ppcnbsd_pc_in_sigtramp): Delete function.
4602
4603 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4604
4605 * config/m68k/nm-nbsd.h: Tweak comments.
4606 * config/m68k/nm-nbsdaout.h: Likewise.
4607
4608 2004-04-30 Andrew Cagney <cagney@redhat.com>
4609
4610 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
4611 legacy_pc_in_sigtramp.
4612 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
4613
4614 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4615
4616 Add OpenBSD/m68k support.
4617 * NEWS (New native configurations): Mention OpenBSD/m68k.
4618 * m68kbsd-tdep.c: New file.
4619 * m68kbsd-nat.c: New file.
4620 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
4621 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
4622 * configure.host: Add m68k-*-openbsd.
4623 * configure.tgt: Add m68k-*-openbsd.
4624 * config/m68k/tm-obsd.h: New file.
4625 * config/m68k/obsd.mt: New file.
4626 * config/m68k/obsd.mh: New file.
4627 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
4628 m68kbsd-tdep.c.
4629
4630 2004-04-30 Andrew Cagney <cagney@redhat.com>
4631
4632 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
4633 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
4634
4635 2004-04-30 Mark Kettenis <kettenis@gnu.org>
4636
4637 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
4638 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
4639
4640 2004-04-30 Brian Ford <ford@vss.fsi.com>
4641
4642 Revert 2004-04-16 change.
4643 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
4644 (i386_coff_init_abi): Remove.
4645 * i386-tdep.h (i386_coff_init_abi): Remove.
4646 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
4647
4648 2004-04-30 Andrew Cagney <cagney@redhat.com>
4649
4650 * blockframe.c (find_pc_partial_function): Delete use of
4651 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
4652 DEPRECATED_SIGTRAMP_END.
4653
4654 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
4655 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
4656 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
4657 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
4658 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
4659
4660 * defs.h (deprecated_inside_entry_file): Delete declaration.
4661 * blockframe.c (deprecated_inside_entry_file): Delete function.
4662 (legacy_frame_chain_valid): Delete call.
4663 * sh64-tdep.c (sh64_frame_chain): Delete call.
4664 * objfiles.h: Update comments.
4665 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
4666 call.
4667 * frame.c (get_prev_frame): Delete call, update comments.
4668
4669 2004-04-30 Brian Ford <ford@vss.fsi.com>
4670
4671 * MAINTAINERS (Write After Approval): Add myself.
4672
4673 2004-04-30 Andrew Cagney <cagney@redhat.com>
4674
4675 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
4676 * gdbarch.h, gdbarch.c: Re-generate.
4677 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
4678 code.
4679
4680 2004-04-30 Andrew Cagney <cagney@redhat.com>
4681
4682 * gdb-events.sh (selected_thread_changed)
4683 (selected_frame_level_changed, target_changed): Delete.
4684 * gdb-events.h, gdb-events.c: Re-generate.
4685 * valops.c (value_assign): Update.
4686 * stack.c (select_frame_command, up_silently_base)
4687 (down_silently_base): Update.
4688
4689 2004-04-29 Andrew Cagney <cagney@redhat.com>
4690
4691 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
4692 registers correctly.
4693 (print_gp_register_row, mips32_heuristic_proc_desc)
4694 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
4695 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
4696 references to mips_isa_regsize.
4697
4698 2004-04-29 Andrew Cagney <cagney@redhat.com>
4699
4700 * mips-tdep.c (struct gdbarch_tdep): Delete
4701 mips_fp_register_double.
4702 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
4703 mips_abi_regsize.
4704 (mips_gdbarch_init): Do not set mips_fp_register_double.
4705 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
4706
4707 2004-04-29 Joel Brobecker <brobecker@gnat.com>
4708
4709 Committed by Andrew Cagney.
4710 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
4711 function calls.
4712
4713 2004-04-29 Andrew Cagney <cagney@redhat.com>
4714
4715 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
4716 gdbarch, use mips_abi, update callers.
4717 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
4718 mips_abi_regsize, update callers.
4719 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
4720 mips_default_abi_regsize.
4721 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
4722 mips_default_abi_regsize.
4723
4724 2004-04-29 Andrew Cagney <cagney@redhat.com>
4725
4726 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
4727 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
4728 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
4729 mips_default_abi_regsize.
4730 (mips_isa_regsize): Rename mips_regisze.
4731 * mipsnbsd-tdep.c: Update.
4732 * mips-linux-tdep.c: Update.
4733 * irix5-nat.c: Update.
4734 * mips-tdep.h (mips_isa_regsize): Update.
4735
4736 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
4737 Delete all disabled code.
4738 * gdb-events.h, gdb-events.c: Re-generate.
4739
4740 2004-04-19 Jerome Guitton <guitton@gnat.com>
4741 Mark Kettenis <kettenis@gnu.org>
4742
4743 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
4744 the function begins with a branch instruction.
4745
4746 2004-04-29 Mark Kettenis <kettenis@gnu.org>
4747
4748 * i386-tdep.c: Fix spelling mistakes.
4749
4750 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4751 Andrew Cagney <cagney@redhat.com>
4752
4753 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
4754 <sys/proc.h>.
4755 * acconfig.h: Provide default _KMEMUSER value.
4756 * config.in, configure: Re-generate.
4757 * NEWS: Mention fix.
4758
4759 2004-04-24 Randolph Chung <tausq@debian.org>
4760
4761 * configure.host (hppa*-*-linux*): New target.
4762 * configure.tgt (hppa*-*-linux*): Likewise.
4763 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
4764 gdbarch_init_osabi() call earlier so that osabi-specific frame
4765 unwinders can be registered first.
4766 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
4767 hppa-linux-nat.c.
4768 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
4769 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
4770 * config/pa/linux.mh: New file.
4771 * config/pa/linux.mt: New file.
4772 * config/pa/nm-linux.h: New file.
4773 * config/pa/xm-linux.h: New file.
4774 * hppa-linux-nat.c: New file.
4775 * hppa-linux-tdep.c: New file.
4776
4777 2004-04-28 Randolph Chung <tausq@debian.org>
4778
4779 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
4780 return values.
4781 (hppa32_push_dummy_call): Fix small struct and floating point argument
4782 passing, and make sure the stack frame is properly aligned.
4783
4784 2004-04-28 Andrew Cagney <cagney@redhat.com>
4785
4786 * stack.c (print_stack_frame): Fix description.
4787
4788 * NEWS: Mention gdb/gdbserver/configure execute permission
4789 changed. PR server/519.
4790
4791 2004-04-28 Andrew Cagney <cagney@redhat.com>
4792
4793 * stack.c (print_stack_frame_stub): Delete declaration.
4794 (struct print_stack_frame_args, print_stack_frame)
4795 (print_frame_info, print_frame): Replace "source" with print what.
4796 Replace "print" with "print_level". Replace "args" with
4797 "print_args".
4798 * frame.h (show_and_print_stack_frame, print_stack_frame)
4799 (print_frame_info): Update declarations.
4800 * stack.c (select_and_print_frame, frame_command)
4801 (current_frame_command, up_command, down_command): Update calls -
4802 use get_selected_frame, pass "enum print_what" for source, do not
4803 call frame_relative_level.
4804 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
4805 * remote-rdp.c (remote_rdp_open): Ditto.
4806 * remote-mips.c (common_open): Ditto.
4807 * remote-e7000.c (e7000_start_remote): Ditto.
4808 * ocd.c (ocd_start_remote): Ditto.
4809 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
4810 * infrun.c (normal_stop): Ditto.
4811 * inflow.c (kill_command): Ditto.
4812 * infcmd.c (finish_command): Ditto.
4813 * corelow.c (core_open): Ditto.
4814 * tracepoint.c (finish_tfind_command): Ditto.
4815 * thread.c (info_threads_command, info_threads_command)
4816 (restore_current_thread, do_captured_thread_select): Ditto.
4817 * ada-tasks.c (task_command): Ditto.
4818
4819 2004-04-26 Orjan Friberg <orjanf@axis.com>
4820
4821 * frame.c: Include "observer.h".
4822 (frame_observer_target_changed): New function.
4823 (_initialize_frame): Attach target_changed observer.
4824 * regcache.c: Include "observer.h".
4825 (regcache_observer_target_changed): New function.
4826 (_initialize_regcache): Attach target_changed observer.
4827 * valops.c: Include "observer.h".
4828 (value_assign): Notify target_changed event when modifying register.
4829 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
4830
4831 2004-04-26 Orjan Friberg <orjanf@axis.com>
4832
4833 From Paul Koning <pkoning@equallogic.com>:
4834 * breakpoint.c (free_valchain): New function.
4835 (insert_bp_location, delete_breakpoint): Use free_valchain.
4836 (remove_breakpoint): Do not remove the valchain.
4837 (bpstat_stop_status): If not stopped by watchpoint, skip
4838 watchpoints when generating stop status list.
4839 * infrun.c (handle_inferior_event): Make
4840 stepped_after_stopped_by_watchpoint a global variable.
4841 * remote.c (remote_stopped_data_address): Return watch data
4842 address rather than zero if stepped_after_stopped_by_watchpoint is
4843 set.
4844
4845 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
4846
4847 Fix PR gdb/1626.
4848 * configure.in: Check for curses after termcap.
4849 On osf5.*, do not check for ncurses.
4850 * configure: Regenerate.
4851
4852 2004-04-25 Mark Kettenis <kettenis@gnu.org>
4853
4854 * ppcobsd-nat.c: Include "ppc-tdep.h".
4855 * Makefile.in (ppcobsd-nat.o): Update dependencies.
4856
4857 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
4858 Fixes PR tdep/1623 and PR tdep/1624.
4859
4860 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
4861
4862 * xmodem.h, xmodem.c: Remove files.
4863 * Makefile.in: Remove references to xmodem.h, xmodem.c.
4864
4865 2004-04-23 Randolph Chung <tausq@debian.org>
4866
4867 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
4868 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
4869 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
4870 for handling stackless frames.
4871 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
4872
4873 2004-04-23 Randolph Chung <tausq@debian.org>
4874
4875 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
4876 starts at a pc before the frame is created.
4877
4878 2004-04-23 Joel Brobecker <brobecker@gnat.com>
4879
4880 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
4881
4882 2004-04-23 Jerome Guitton <guitton@gnat.com>
4883
4884 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
4885 use convert_typed_floating to get the appropriate format.
4886
4887 2004-04-22 Randolph Chung <tausq@debian.org>
4888
4889 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
4890 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
4891 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
4892 (hppa_sign_extend): Add prototype.
4893 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
4894 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
4895 (sign_extend): Rename with hppa_ prefix and make non-static. Other
4896 hppa targets will also use these functions.
4897 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
4898 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
4899 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
4900 (hppa_gdbarch_init): Remove gdbarch setting of
4901 skip_trampoline_code, in_solib_call_trampoline and
4902 in_solib_return_trampoline.
4903 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4904 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
4905 hppa_in_solib_call_trampoline.
4906 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
4907 Moved from hppa-tdep.c.
4908 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
4909 in_solib_call_trampoline and in_solib_return_trampoline.
4910
4911 2004-04-22 Randolph Chung <tausq@debian.org>
4912
4913 * hppa-tdep.c (hppa_debug): New variable.
4914 (find_unwind_entry, hppa_frame_cache): Add debug output.
4915 (_initialize_hppa_tdep): Add command to set debug flag.
4916
4917 2004-04-22 Andrew Cagney <cagney@redhat.com>
4918
4919 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
4920 "trad-frame.h".
4921 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
4922 signal trampoline unwinder.
4923 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
4924
4925 2004-04-22 Mark Kettenis <kettenis@gnu.org>
4926
4927 Add OpenBSD/powerpc support.
4928 * NEWS (New native configurations): Mention OpenBSD/powerpc.
4929 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
4930 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
4931 (ppc_collect_fpregset): New prototypes.
4932 * ppcobsd-nat.c: New file.
4933 * ppcobsd-tdep.c: New file.
4934 * ppcobsd-tdep.h: New file.
4935 * rs6000-tdep.c: Include "regset.h".
4936 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
4937 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
4938 New functions.
4939 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
4940 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
4941 (rs6000-tdep.o): Update dependencies.
4942 * configure.host: Add powerpc-*-openbsd.
4943 * configure.tgt: Add powerpc-*-openbsd.
4944 * config/powerpc/obsd.mh: New file.
4945 * config/powerpc/nm-obsd.h: New file.
4946 * config/powerpc/obsd.mt: New file.
4947
4948 2004-04-22 Andrew Cagney <cagney@redhat.com>
4949
4950 * frame.h (show_frame_info): Delete declaration.
4951
4952 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
4953 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
4954 * m32r-tdep.c (m32r_frame_this_id): Ditto.
4955 * frv-tdep.c (frv_frame_this_id): Ditto.
4956 * avr-tdep.c (avr_frame_this_id): Ditto.
4957
4958 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
4959
4960 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
4961
4962 2004-04-22 Jim Blandy <jimb@redhat.com>
4963
4964 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
4965 register number zero.
4966
4967 2004-04-21 Michael Snyder <msnyder@redhat.com>
4968
4969 * mips-tdep.c (heuristic_proc_start):
4970 Warning() already prefixes "Warning: ".
4971
4972 2004-04-21 Andrew Cagney <cagney@redhat.com>
4973
4974 * annotate.h (deprecated_annotate_starting_hook)
4975 (deprecated_annotate_stopped_hook)
4976 (deprecated_annotate_exited_hook)
4977 (deprecated_annotate_signal_hook)
4978 (deprecated_annotate_signalled_hook): Deprecate.
4979 * tracepoint.h (deprecated_create_tracepoint_hook)
4980 (deprecated_delete_tracepoint_hook)
4981 (deprecated_modify_tracepoint_hook)
4982 (deprecated_trace_find_hook)
4983 (deprecated_trace_start_stop_hook): Deprecate.
4984 * target.h (deprecated_target_new_objfile_hook): Deprecate.
4985 * remote.h (deprecated_target_resume_hook)
4986 (deprecated_target_wait_loop_hook): Deprecate.
4987 * gdbcore.h (deprecated_exec_file_display_hook)
4988 (deprecated_file_changed_hook): Deprecate.
4989 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
4990 * defs.h (deprecated_modify_breakpoint_hook)
4991 (deprecated_command_loop_hook, deprecated_show_load_progress)
4992 (deprecated_print_frame_info_listing_hook)
4993 (deprecated_query_hook, deprecated_warning_hook)
4994 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
4995 (deprecated_delete_breakpoint_hook)
4996 (deprecated_interactive_hook, deprecated_registers_changed_hook)
4997 (deprecated_readline_begin_hook, deprecated_readline_hook)
4998 (deprecated_readline_end_hook, deprecated_register_changed_hook)
4999 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5000 (deprecated_context_hook, deprecated_target_wait_hook)
5001 (deprecated_attach_hook, deprecated_detach_hook)
5002 (deprecated_call_command_hook, deprecated_set_hook)
5003 (deprecated_error_hook, deprecated_error_begin_hook)
5004 (deprecated_ui_load_progress_hook): Deprecate.
5005 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5006 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5007 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5008 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5009 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5010 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5011 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5012 * annotate.c, aix-thread.c: Update.
5013
5014 2004-04-21 Andrew Cagney <cagney@redhat.com>
5015
5016 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5017 * vaxnbsd-tdep.c: Include "gdb_string.h".
5018
5019 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5020 (add_symbol_file_from_memory_command): #if 0 function body, call
5021 error instead.
5022
5023 2004-04-21 Andrew Cagney <cagney@redhat.com>
5024
5025 * gdbcore.h: Update copyright.
5026 (deprecated_add_core_fns): Rename add_core_fns.
5027 * win32-nat.c (_initialize_core_win32): Update.
5028 * sun3-nat.c (_initialize_core_sun3): Update.
5029 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5030 * rs6000-nat.c (_initialize_core_rs6000): Update.
5031 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5032 * nto-tdep.c (_initialize_nto_tdep): Update.
5033 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5034 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5035 * mips-nat.c (_initialize_core_mips): Update.
5036 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5037 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5038 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5039 * lynx-nat.c (_initialize_core_lynx): Update.
5040 * irix5-nat.c (_initialize_core_irix5): Update.
5041 * i386-interix-nat.c (_initialize_core_interix): Update.
5042 * cris-tdep.c (_initialize_cris_tdep): Update.
5043 * corelow.c (deprecated_add_core_fns): Update.
5044 * core-regset.c (_initialize_core_regset): Update.
5045 * core-aout.c (_initialize_core_aout): Update.
5046 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5047 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5048 * alpha-nat.c (_initialize_core_alpha): Update.
5049
5050 2004-04-21 Jim Blandy <jimb@redhat.com>
5051
5052 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5053
5054 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5055
5056 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5057 Delete.
5058 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5059 (read_attribute_value): Update calls to dwarf_alloc_block.
5060 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5061 dwarf2_tmp_obstack.
5062 (psymtab_to_symtab_1): Likewise. Clean up using
5063 free_stack_comp_unit.
5064 (add_to_cu_func_list): Use the comp_unit_obstack.
5065
5066 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5067
5068 * dwarf2read.c (dwarf2_flag_true_p): New function.
5069 (die_is_declaration): Use the function above. Add some comments.
5070
5071 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5072
5073 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5074 architecture when registering sparcnbsd_core_osabi_sniffer.
5075 Adjust comment.
5076
5077 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5078
5079 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5080 return value.
5081
5082 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5083 * i386-tdep.c: Correct register numbering scheme comments
5084 throughout.
5085 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5086 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5087 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5088 (i386_gdb_arch_init): Likewise.
5089
5090 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5091 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5092 ppcnbsd-tdep.o.
5093
5094 * m68k-tdep.h: Tweak comments.
5095 * m68k-tdep.c: Tweak comment.
5096
5097 2004-04-17 Randolph Chung <tausq@debian.org>
5098
5099 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5100 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5101 (hppa_hpux_som_init_abi): Set is_elf to 0.
5102 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5103 * hppa-tdep.c (low_text_segment_address): Remove global.
5104 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5105 section offset to calculate segment address.
5106 (internalize_unwinds): Define low_text_segment_address as local and
5107 pass to record_text_segment_lowaddr for ELF targets.
5108 (hppa_gdbarch_init): Zero fill tdep structure.
5109 (hppa_dump_tdep): Print tdep structure.
5110 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5111
5112 2004-04-17 Randolph Chung <tausq@debian.org>
5113
5114 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5115 (hppa_gdbarch_init): Set pseudo_register_read.
5116 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5117 * regcache.c (supply_register): Remove check for
5118 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5119
5120 2004-04-17 Randolph Chung <tausq@debian.org>
5121
5122 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5123 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5124 (hpread_adjust_stack_address): Move to hpread.c.
5125 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5126 obj_private_struct): Move from tm-hppa.h.
5127 * hpread.c (hppa-tdep.h): Include.
5128 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5129 (hpread_read_function_type, hpread_read_doc_function_type)
5130 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5131 directly.
5132 * pa64solib.c (hppa-tdep.h): Include.
5133 * somsolib.c (hppa-tdep.h): Include.
5134 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5135 inferior_status): Remove unused forward declarations.
5136 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5137 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5138 obj_private_struct): Move to hppa-tdep.h.
5139 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5140
5141 2004-04-17 Randolph Chung <tausq@debian.org>
5142
5143 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5144 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5145 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5146 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5147 Remove forward declaration and make static.
5148 (hppa_reg_struct_has_addr): Remove.
5149
5150 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5151
5152 * observer.sh: Move comments in sed command to first column.
5153
5154 2004-04-16 Jason Molenda (jmolenda@apple.com)
5155
5156 * frame.c: Minor typeo corrections in comments.
5157
5158 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5159
5160 * observer.c (observer_test_first_notification_function): Update
5161 function profile.
5162 (observer_test_second_notification_function): Likewise.
5163 (observer_test_third_notification_function): Likewise.
5164
5165 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5166
5167 From Brian Ford <ford@vss.fsi.com>:
5168 * i386-tdep.c (i386_coff_init_abi): New function.
5169 * i386-tdep.h (i386_coff_init_abi): New prototype.
5170 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5171 register number translation functions for DWARF and DWARF 2.
5172
5173 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5174
5175 * dwarf2read.c: Back out my previous change, it was incorrect.
5176
5177 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5178
5179 * dwarf2read.c: Include "hashtab.h".
5180 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5181 has_namespace_info.
5182 (struct partial_die_info): Add comments. Use bitfields to reduce
5183 memory footprint. Add scope, scope_set, has_specification,
5184 spec_offset, die_parent, die_child, and die_sibling.
5185 (peek_die_abbrev): Add prototype.
5186 (partial_read_comp_unit_head): New function, broken out from
5187 dwarf2_build_psymtabs_hard.
5188 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5189 Use partial_read_comp_unit_head. Initialize the CU and
5190 comp_unit_obstack. Update calls to read_partial_die and
5191 scan_partial_symbols. Use free_stack_comp_unit and
5192 load_partial_dies.
5193 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5194 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5195 Update calls to helper functions. Remove NAMESPACE argument.
5196 Update comments.
5197 (partial_die_parent_scope, partial_die_full_name): New functions.
5198 (add_partial_symbol): Remove namespace argument. Update call to
5199 pdi_needs_namespace. Use partial_die_full_name. Handle
5200 DW_TAG_namespace. Check has_namespace_info flag.
5201 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5202 tag. Handle namespaces.
5203 (add_partial_namespace, add_partial_enumeration): Simplify.
5204 (guess_structure_name): New function, derived from
5205 add_partial_structure.
5206 (add_partial_structure): Remove.
5207 (determine_class_name): Update comment.
5208 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5209 (is_type_tag_for_partial, load_partial_dies): New functions.
5210 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5211 Record specifications instead of following them immediately.
5212 (find_partial_die_in_comp_unit, find_partial_die)
5213 (fixup_partial_die, free_stack_comp_unit)
5214 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5215 (partial_die_hash, partial_die_eq): New functions.
5216 * Makefile.in (hashtab_h): Define.
5217 (dwarf2read.o): Update dependencies.
5218 (observer_inc, observer_h): Move to the correct section.
5219
5220 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5221
5222 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5223 (die_is_declaration): Use the function above. Add comment.
5224
5225 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5226
5227 * dwarf2read.c (read_structure_scope): Identify stub types
5228 using die_is_declaration() only.
5229
5230 2004-04-15 Roland McGrath <roland@redhat.com>
5231
5232 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5233 argument instead of NAME.
5234 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5235 in call to symbol_file_add_with_addrs_or_offsets.
5236 (build_addr_info): New function, helper for ...
5237 (symbol_file_add_from_memory): New function.
5238 (add_symbol_file_from_memory_command): New function using that.
5239 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5240 (pre_add_symbol_hook): Add const to argument type.
5241 * symfile.h (symbol_file_add_from_memory): Declare it.
5242
5243 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5244
5245 * NEWS (New native configurations): Mention OpenBSD/vax.
5246 * configure.host: Add vax-*-openbsd*.
5247 * config/vax/obsd.mh: New file.
5248 * config/vax/nm-obsd.h: New file.
5249
5250 * vax-tdep.c: Include "regset.h".
5251 (vax_supply_gregset): New function.
5252 (vax_gregset): New variable.
5253 (vax_regset_from_core_section): New function.
5254 (vax_gdbarch_init): Set regset_from_core_section.
5255 * Makefile.in (vax-tdep.o): Update dependencies.
5256
5257 2004-04-15 Andrew Cagney <cagney@redhat.com>
5258
5259 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5260 (observer_normal_stop_notification_stub)
5261 (observer_attach_normal_stop, observer_detach_normal_stop):
5262 Delete, replaced by #include "observer.inc".
5263 * infrun.c (normal_stop): Pass "stop_bpstat" to
5264 observer_notify_normal_stop.
5265 * Makefile.in (observer_inc): Define.
5266 (observer.o): Update dependencies.
5267 (observer.h, observer.inc): New rules.
5268 * observer.h: Delete file.
5269 * observer.sh: New file.
5270
5271 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5272
5273 * vax-tdep.c (vax_frame_cache): Fix typo.
5274
5275 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5276
5277 * NEWS (New native configurations): Mention NetBSD/vax.
5278 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5279 * config/vax/nbsdelf.mh: New file.
5280 * config/vax/nbsdaout.mh: New file.
5281 * config/vax/nm-nbsd.h: New file.
5282 * config/vax/nm-nbsdaout.h: New file.
5283
5284 * vaxnbsd-tdep.c: New file.
5285 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5286 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5287 * config/vax/nbsd.mt: New file.
5288 * config/vax/tm-nbsd.h: New file.
5289
5290 * Makefile.in (vaxbsd-nat.o): New dependency.
5291
5292 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5293 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5294 struct_addr arguments. Don't push return value address.
5295 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5296 arguments to vax_store_arguments. Store return value address in
5297 R1.
5298 (vax_store_struct_return, vax_extract_return_value)
5299 (vax_store_return_value): Remove functions.
5300 (vax_return_value): New function.
5301 (vax_gdbarch_init): Set return value. Don't set
5302 deprecated_store_struct_return, deprecated_extract_struct_return
5303 and deprecated_store_return_value.
5304
5305 2004-04-14 Andreas Schwab <schwab@suse.de>
5306
5307 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5308 value buffer.
5309 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5310
5311 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5312
5313 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5314 (vax_unwind_dummy_id): New functions.
5315 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5316 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5317 variables.
5318 (vax_fix_call_dummy): Remove function.
5319 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5320 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5321 call_dummy_location, deprecated_call_dummy_words,
5322 deprecated_sizeof_call_dummy_words,
5323 deprecated_call_dummy_breakpoint_offset,
5324 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5325 and deprecated_dummy_write_sp.
5326
5327 2004-04-13 David Carlton <carlton@kealia.com>
5328
5329 * MAINTAINERS: Move myself to "paper trail" section.
5330
5331 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5332
5333 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5334 "trad-frame.h".
5335 (vax_frame_init_saved_regs): Remove function.
5336 (vax_sigtramp_saved_pc): Remove function.
5337 (vax_frame_saved_pc): Remove function.
5338 (vax_frame_args_address): Remove function.
5339 (vax_frame_num_args): Rewrite.
5340 (vax_frame_chain): Remove function.
5341 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5342 VAX_FP_REGNUM.
5343 (vax_pop_frame): Likewise.
5344 (vax_saved_pc_after_call): Remove function.
5345 (struct vax_frame_cache): New structure.
5346 (vax_frame_cache): New function.
5347 (vax_frame_this_id): New function.
5348 (vax_frame_prev_register): New function.
5349 (vax_frame_unwind): New variable.
5350 (vax_frame_sniffer): New function.
5351 (vax_frame_base_address): New function.
5352 (vax_frame_args_address): New function.
5353 (vax_frame_base): New variable.
5354 (vax_unwind_pc): New function.
5355 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5356 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5357 deprecated_frame_chain, deprecated_frame_saved_pc,
5358 deprecated_frame_args_address and
5359 deprecated_frame_init_saved_regs.
5360 * Makefile.in (vax-tdep.o): Update dependencies.
5361
5362 * vaxbsd-nat.c: New file.
5363
5364 * vax-tdep.h: Update copyright year. Adjust comments.
5365 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5366 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5367 (vax_regnum): New enum. Replacing...
5368 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5369 (VAX_PS_REGNUM): ... these removed macros.
5370 * vax-tdep.c (vax_register_name): Remove prototype.
5371 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5372 (vax_register_byte, vax_register_raw_size,
5373 vax_register_virtual_size, vax_register_virtual_type): Remove
5374 functions.
5375 (vax_register_type): New function.
5376 (vax_breakpoint_from_pc): Reorganize.
5377 (vax_gdbarch_init): Set register_type. Don't set
5378 deprecated_register_size, deprecated_register_bytes,
5379 deprecated_register_byte, deprecated_register_raw_size,
5380 deprecated_max_register_raw_size,
5381 deprecated_register_virtual_size,
5382 deprecated_max_register_virtual_size and
5383 deprecated_register_virtual_type. Add comment on stack direction.
5384
5385 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5386
5387 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5388 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5389 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5390
5391 2004-04-10 Randolph Chung <tausq@debian.org>
5392
5393 * MAINTAINERS (write after approval): Add myself.
5394
5395 2004-04-07 Randolph Chung <tausq@debian.org>
5396
5397 * hppa-tdep.c (hppa_inner_than): Remove.
5398 (is_pa_2): Remove unused static variable.
5399 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5400
5401 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5402
5403 * language.h (language_defn): Add new la_post_parser field.
5404 * parser-defs.h (null_post_parser): New declaration (default for
5405 la_post_parser).
5406
5407 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5408 insert call to that function.
5409 (parse_exp_in_context): New function, including code formerly in
5410 parse_exp_1. Calls language-dependent post-parser after
5411 prefixification.
5412 (parse_expression_in_context): New exported function.
5413 (null_post_parser): New definition.
5414 * expression.h (parse_expression_in_context): Add declaration.
5415
5416 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5417 * c-lang.c (c_language_defn): Ditto.
5418 (cplus_language_defn): Ditto.
5419 (asm_language_defn): Ditto.
5420 (minimal_language_defn): Ditto.
5421 * f-lang.c (f_language_defn): Ditto.
5422 * jv-lang.c (java_language_defn): Ditto.
5423 * language.c (unknown_language_defn): Ditto.
5424 (auto_language_defn): Ditto.
5425 (local_language_defn): Ditto.
5426 * m2-lang.c (m2_language_defn): Ditto.
5427 * scm-lang.c (scm_language_defn): Ditto.
5428 * obj-lang.c (objc_language_defn): Ditto.
5429
5430 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5431
5432 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5433 (amd64nbsd_mcontext_addr): New function.
5434 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5435 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5436 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5437
5438 * corelow.c (core_xfer_partial): Fix coding standards violation.
5439 Add support for TARGET_OBJECT_WCOOKIE.
5440
5441 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5442 deprecated_pc_in_sigtramp.
5443 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5444 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5445 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5446 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5447 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5448 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5449 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5450
5451 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5452 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5453 Fix typo.
5454
5455 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5456 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5457 (amd64_collect_fxsave): Likewise.
5458
5459 * i386-sol2-tdep.c: Include "gdb_string.h".
5460 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5461 name.
5462 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5463
5464 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5465
5466 * i386-sol2-tdep.c: Include "solib-svr4.h".
5467 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5468 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5469 * config/i386/tm-i386sol2.h: Include :solib.h".
5470 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5471 solib-svr4.o and solib-legacy.o.
5472 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5473 solib-svr4.o.
5474
5475 2004-04-09 Mark Kettenis <kettenis@gnu.org>
5476
5477 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5478 whether a register is supplied by PTRACE_GETFPREGS.
5479 (store_inferior_registers): Likewise.
5480 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5481 whether a register is supplied by PT_GETFPREGS.
5482 (store_inferior_registers): Likewise.
5483
5484 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5485 * config/i386/linux64.mt (TDEPFILES): Likewise.
5486
5487 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5488
5489 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5490 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5491 the program counter is in the range specified by `struct
5492 gdbarch_tdep'.
5493 * amd64-linux-tdep.c: Include "symtab.h".
5494 (amd64_linux_pc_in_sigtramp): Remove function.
5495 (amd64_linux_sigtramp_p): New function.
5496 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5497 deprecated_pc_in_sigtramp.
5498 * amd64nbsd-tdep.c: Include "symtab.h".
5499 (amd64nbsd_sigtramp_p): New function.
5500 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5501 deprecated_pc_in_sigtramp.
5502 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5503 few comments.
5504 (amd64obsd_pc_in_sigtramp): Remove function.
5505 (amd64obsd_sigtramp_p): New function.
5506 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5507 deprecated_pc_in_sigtramp.
5508 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
5509 (i386bsd_pc_ins_sigtramp): Remove prototype.
5510 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
5511 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
5512 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5513 the program counter is in the range specified by `struct
5514 gdbarch_tdep'.
5515 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
5516 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
5517 (i386_go32_pc_in_sigtramp): Remove function.
5518 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
5519 Initialize TDEP->sigtramp_p.
5520 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
5521 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
5522 deprecated_pc_in_sigtramp.
5523 * i386-linux-tdep.c: Adjust comments.
5524 (i386_linux_pc_in_sigtramp): Remove function.
5525 (i386_linux_sigtramp_p): New function.
5526 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5527 deprecated_pc_in_sigtramp.
5528 * i386-nto-tdep.c: Update copyright year.
5529 (i386nto_pc_in_sigtramp): Remove function.
5530 (i386nto_sigtramp_p): New function.
5531 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
5532 SP_REGNUM.
5533 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
5534 deprecated_pc_in_sigtramp.
5535 * i386-sol2-tdep.c: Update copyright year.
5536 (i386_sol2_pc_in_sigtramp): Remove function.
5537 (i386_sol2_sigtramp_p): New function.
5538 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
5539 deprecated_pc_in_sigtramp.
5540 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
5541 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
5542 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5543 deprecated_sigtramp_start and deprecated_sigtramp_end.
5544 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
5545 (i386nbsd_pc_in_sigtramp): Remove function.
5546 (i386nbsd_sigtramp_p): New function.
5547 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5548 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5549 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
5550 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
5551 (i386obsd_pc_in_sigtramp): Remove function.
5552 (i386obsd_sigtramp_p): New function.
5553 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
5554 functions.
5555 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5556 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5557 TDEP->sigtramp_p.
5558 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
5559 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
5560 dependencies.
5561
5562 * config/i386/i386aout.mt: Remove file.
5563
5564 * configure.tgt: Remove i[34567]86-*-go32*,
5565 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
5566 and i[34567]86-*-isc*. Set gdb_target to i386 for
5567 i[34567]86-*-netware* and i[34567]86-*-*.
5568 * config/i386/i386.mt: New file.
5569 * config/i386/embed.mt: Remove file.
5570 * config/i386/go32.mt: Remove file.
5571 * config/i386/i386nw.mt: Remove file.
5572 * config/i386/i386v.mt: Remove file.
5573 * config/i386/tm-go32.h: Remove file.
5574
5575 * tui/tui-hooks.c: Include "readline/readline.h" after
5576 "gdb_curses.h" instead of before.
5577 * tui/tui-io.c: Likewise.
5578
5579 * tui/tui.c: Fix typo in comment.
5580
5581 * sparc64-tdep.c (sparc_address_from_register): Remove function.
5582
5583 2004-04-08 Andrew Cagney <cagney@redhat.com>
5584
5585 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
5586 (deprecated_exception_support_initialized): Declare.
5587 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
5588 (initialize_hp_cxx_exception_support)
5589 (child_enable_exception_callback): Update.
5590 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
5591 (deprecated_exception_support_initialized): Rename
5592 deprecated_exception_catchpoints_are_fragile and
5593 deprecated_exception_support_initialized.
5594 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
5595
5596 * symtab.c (deprecated_hp_som_som_object_present): Rename
5597 hp_som_som_object_present.
5598 * symtab.h (deprecated_hp_som_som_object_present): Declare.
5599 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
5600 Update. Delete extern declaration.
5601 * valops.c (hp_som_som_object_present): Ditto.
5602 * parse.c (deprecated_hp_som_som_object_present)
5603 (parse_nested_classes_for_hpacc): Ditto.
5604 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
5605 * hppa-hpux-tdep.c (hp_som_som_object_present)
5606 (initialize_hp_cxx_exception_support): Ditto.
5607 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
5608 * cp-valprint.c (hp_som_som_object_present)
5609 (cp_print_class_method): Ditto.
5610 * c-typeprint.c (hp_som_som_object_present):
5611 (c_type_print_base): Ditto.
5612 * c-exp.y (hp_som_som_object_present): Ditto.
5613
5614 2004-04-08 Andrew Cagney <cagney@redhat.com>
5615
5616 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
5617 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
5618 (frame_unwind_find_by_frame): Re-implement the unwind code so
5619 that it can both prepend and append sniffers. Replace
5620 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
5621 * tramp-frame.c (tramp_frame_append): Use
5622 frame_unwind_prepend_unwinder.
5623 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
5624 frame_unwind_register_unwinder.
5625 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
5626 tramp_frame_append.
5627 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
5628 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
5629 (mips_linux_init_abi): Update.
5630
5631 2004-04-08 Kevin Buettner <kevinb@redhat.com>
5632
5633 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
5634 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
5635 file support.
5636
5637 2004-04-07 Kevin Buettner <kevinb@redhat.com>
5638
5639 * ia64-tdep.c (elf.h): Don't include.
5640 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
5641
5642 2004-04-07 Jason Molenda (jmolenda@apple.com)
5643
5644 * frame.h: Typeo corrections in comments.
5645
5646 2004-04-07 Jim Blandy <jimb@redhat.com>
5647
5648 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
5649 %esp and %ebp
5650
5651 2004-04-07 Mark Kettenis <kettenis@gnu.org>
5652
5653 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
5654 * config/sparc/linux64.mt (TDEPFILES): Likewise.
5655 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5656 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
5657 and solib-legacy.o.
5658 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
5659 solib-svr4.o.
5660 * config/sparc/tm-sol2.h: Update copyright year. Include
5661 "solib.h".
5662
5663 * sparc-sol2-tdep.c: Update copyright year. Include
5664 "solib-svr4.h".
5665 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5666 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
5667 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5668 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
5669 dependencies.
5670
5671 2004-04-06 Andrew Cagney <cagney@redhat.com>
5672
5673 * infttrace.c: Include "infttrace.h".
5674 * infttrace.h: Include "target.h".
5675 * Makefile.in (infttrace_h): Update.
5676 (infttrace.o): Update.
5677
5678 2004-04-06 Andrew Cagney <cagney@redhat.com>
5679
5680 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
5681 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
5682 move extern declarations from here ...
5683 * infttrace.h: ... to here.
5684 * Makefile.in (hppah-nat.o): Update dependencies.
5685
5686 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
5687 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
5688 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
5689 (hppa_breakpoint_from_pc): Delete.
5690
5691 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
5692
5693 2004-04-05 Andrew Cagney <cagney@redhat.com>
5694
5695 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
5696 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
5697 <sys/file.h>.
5698
5699 2004-04-06 Randolph Chung <tausq@debian.org>
5700
5701 Committed by Andrew Cagney (mechanical change).
5702 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
5703 exception_catchpoints_are_fragile, find_stub_with_shl_get,
5704 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
5705 child_enable_exception_callback, current_ex_event,
5706 null_symtab_and_line, child_get_current_exception_event,
5707 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
5708 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
5709 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
5710 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
5711 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
5712 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
5713 Move hpux-specific definitions ...
5714 * hppa-hpux-tdep.c: ... to here.
5715
5716 2004-04-05 Andrew Cagney <cagney@redhat.com>
5717
5718 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
5719 skip_prologue_using_sal.
5720
5721 2004-04-05 Andrew Cagney <cagney@redhat.com>
5722
5723 * config/i386/tm-i386.h: Delete file.
5724 * config/i386/tm-vxworks.h: Update copyright, do not include
5725 "tm-i386.h".
5726 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
5727 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
5728 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
5729 * config/i386/ncr3000.mt (TM_FILE): Delete.
5730 * config/i386/interix.mt (TM_FILE): Delete.
5731 * config/i386/i386v.mt (TM_FILE): Delete.
5732 * config/i386/i386nw.mt (TM_FILE): Delete.
5733 * config/i386/i386gnu.mt (TM_FILE): Delete.
5734 * config/i386/i386aout.mt (TM_FILE): Delete.
5735 * config/i386/embed.mt (TM_FILE): Delete.
5736
5737 2004-04-05 Kevin Buettner <kevinb@redhat.com>
5738
5739 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
5740 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
5741 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
5742 (accg7_regnum): New constants.
5743 (last_spr_regnum, last_pseudo_regnum): Update.
5744 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
5745 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
5746 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
5747 for accg registers.
5748 (frv_register_sim_regno): Update spr_map[].
5749
5750 2004-04-04 Andrew Cagney <cagney@redhat.com>
5751
5752 * config/mips/xm-riscos.h: Delete.
5753 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
5754 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
5755 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
5756 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
5757 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
5758 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
5759 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
5760 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
5761 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
5762 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
5763 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
5764 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
5765 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
5766 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
5767 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
5768 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
5769 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
5770 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
5771 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
5772 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
5773 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
5774 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
5775 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
5776 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
5777 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
5778 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
5779
5780 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
5781 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
5782 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
5783 * configure.host: Remove m680[01]0-sun-sunos3*,
5784 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
5785 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
5786 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
5787 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
5788 mips-*-riscos*.
5789 * NEWS: Mention removed systems.
5790
5791 2004-04-04 Andrew Cagney <cagney@redhat.com>
5792
5793 GDB 6.1 release created from 6.1 branch.
5794
5795 2004-04-04 Andrew Cagney <cagney@redhat.com>
5796
5797 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
5798 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
5799 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
5800
5801 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
5802 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
5803 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
5804
5805 2004-04-03 Jim Blandy <jimb@redhat.com>
5806
5807 * MAINTAINERS: Chris Faylor has changed employers; add him to
5808 "paper trail" section, and update his E-mail address.
5809
5810 2004-04-03 Andrew Cagney <cagney@redhat.com>
5811
5812 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
5813 generic dummy frames.
5814 * dummy-frame.c: Update copyright.
5815 (dummy_frame_sniffer): Delete check for generic dummy frames.
5816
5817 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
5818 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
5819 (REG_PARM_STACK_SPACE): Delete.
5820 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
5821 Inline reference to REG_PARM_STACK_SPACE.
5822
5823 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
5824 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
5825 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5826 (FRAME_BASE_BEFORE_SIGTRAMP)
5827 (hppa32_hpux_frame_base_before_sigtramp)
5828 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
5829 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
5830 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
5831 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
5832 (FRAME_BASE_BEFORE_SIGTRAMP)
5833 (hppa64_hpux_frame_base_before_sigtramp)
5834 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
5835
5836 2004-04-03 Andrew Cagney <cagney@redhat.com>
5837
5838 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
5839
5840 2004-04-02 Andrew Cagney <cagney@redhat.com>
5841
5842 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
5843 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
5844 * dummy-frame.h: Delete out-of-date comments.
5845 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
5846 * gdbarch.h, gdbarch.c: Re-generate.
5847
5848 2004-04-02 Joel Brobecker <brobecker@gnat.com>
5849
5850 Committed by Andrew Cagney <cagney@redhat.com>.
5851 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
5852 into account an instruction saving a register if we have already
5853 seen an earlier instruction saving that same register.
5854
5855 2004-04-02 Andrew Cagney <cagney@redhat.com>
5856
5857 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
5858 * gdbarch.h, gdbarch.c: Re-generate.
5859 * frame.c (legacy_get_prev_frame): Delete references to
5860 DEPRECATED_INIT_FRAME_PC_FIRST.
5861
5862 * infrun.c (pc_in_sigtramp): Delete function.
5863 (check_sigtramp2): Inline call to pc_in_sigtramp, use
5864 get_frame_type.
5865
5866 2004-04-02 Andrew Cagney <cagney@redhat.com>
5867
5868 * infrun.c (handle_step_into_function): Delete code conditional on
5869 legacy_frame_p.
5870 (handle_inferior_event, step_over_function): Ditto.
5871
5872 2004-04-02 Andrew Cagney <cagney@redhat.com>
5873
5874 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
5875 "previous frame inner to this frame" test.
5876
5877 2004-04-02 Andrew Cagney <cagney@redhat.com>
5878
5879 * frame.c (safe_frame_unwind_memory): New function.
5880 * frame.h (safe_frame_unwind_memory): Declare. Update description
5881 of /safe_/ methods.
5882 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
5883 "next_frame". Use safe_frame_unwind_memory.
5884 (tramp_frame_sniffer): Update call to tramp_frame_start.
5885
5886 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
5887
5888 * dwarf2read.c (dwarf2_objfile_data_key): New.
5889 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
5890 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
5891 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
5892 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
5893 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
5894 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
5895 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
5896 Remove variables.
5897 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
5898 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
5899 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
5900 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
5901 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
5902 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
5903 Remove macros.
5904 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
5905 data.
5906 (dwarf2_locate_sections, dwarf2_build_psymtabs)
5907 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
5908 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
5909 (read_partial_die, read_full_die, read_indirect_string)
5910 (dwarf_decode_line_header, dwarf_decode_macros)
5911 (dwarf2_symbol_mark_computed): Remove use of removed macros.
5912 Update uses of removed variables.
5913 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
5914 of removed macros.
5915 (_initialize_dwarf2_read): New function.
5916 * symfile.h (dwarf2_has_info): Update prototype.
5917 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
5918 * elfread.c (elf_symfile_read): Likewise.
5919
5920 2004-04-01 Jim Blandy <jimb@redhat.com>
5921
5922 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
5923 function for register numbers on all the rs6000-derived targets.
5924 (rs6000_gdbarch_init): Don't register a separate
5925 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
5926 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
5927 variants.
5928
5929 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
5930 numbering.
5931
5932 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5933
5934 * valarith.c: Update copyright notice.
5935 (value_add): Handle range types.
5936 (value_sub): Ditto.
5937 (value_equal): Ditto.
5938 (value_less): Ditto.
5939 (value_neg): Ditto.
5940 (value_complement): Ditto.
5941 (value_binop): Simplify slightly by using is_integral_type and
5942 eliminiating unnecessary COERCE_ENUMs.
5943
5944 2004-03-31 Andrew Cagney <cagney@redhat.com>
5945
5946 * frame.h (frame_unwind_id): Declare.
5947 * frame.c (frame_unwind_id): New function.
5948 (get_prev_frame_1): New function.
5949 (frame_debug_got_null_frame): New function.
5950 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
5951 code proper to prev_frame, update description.
5952 * infrun.c (step_over_function): Use frame_unwind_id.
5953
5954 2004-04-31 J. Brobecker <brobecker@gnat.com>
5955
5956 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
5957 (hppa64_push_dummy_call): Likewise.
5958
5959 2004-03-30 Jim Blandy <jimb@redhat.com>
5960
5961 From Ulrich Weigand:
5962 * utils.c (query): Do not use a va_list variable multiple times.
5963
5964 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
5965
5966 * Makefile.in (linux_nat_h): Update dependencies.
5967 * configure.in: Check for <gnu/libc-version.h>.
5968 * configure: Regenerate.
5969 * config.in: Regenerate.
5970 * linux-nat.h: Include "target.h". Add waitstatus field to
5971 struct lwp_info.
5972 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
5973 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
5974 to.
5975 (lin_lwp_handle_extended): New function. Handle clone events.
5976 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
5977 thread exit events.
5978 (child_wait): Handle clone events.
5979 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
5980 * linux-nat.c (linux_enable_event_reporting): Turn on
5981 PTRACE_O_TRACECLONE.
5982 (linux_handle_extended_wait): Handle clone events.
5983 * thread-db.c: Include <gnu/libc-version.h>.
5984 (struct private_thread_info): Add dying flag.
5985 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
5986 higher.
5987 (attach_thread): Update comments. Handle dying threads.
5988 (detach_thread): Set the dying flag.
5989 (check_event): Always call attach_thread.
5990
5991 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
5992
5993 * mips-tdep.c (mips_pdr_data): New.
5994 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
5995 (_initialize_mips_tdep): Initialize mips_pdr_data.
5996
5997 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
5998
5999 * minsyms.c (install_minimal_symbols): Move dropping leading
6000 char from linkage name from here...
6001 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6002 test for "__gnu_compiled*" symbols.
6003
6004 2004-03-28 Jim Blandy <jimb@redhat.com>
6005
6006 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6007 registers to temp register r0 and byte stores as prologue
6008 instructions.
6009
6010 2004-03-28 Andrew Cagney <cagney@redhat.com>
6011
6012 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6013 arm*-*-*.
6014
6015 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6016
6017 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6018 and switch the layout to force a display of register window.
6019
6020 2004-02-26 J. Brobecker <brobecker@gnat.com>
6021
6022 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6023 of the INTEGER class.
6024
6025 2004-03-26 Jim Blandy <jimb@redhat.com>
6026
6027 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6028 bytes long on PPC GNU/Linux.
6029
6030 2004-03-26 David Carlton <carlton@kealia.com>
6031
6032 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6033
6034 2004-03-25 Andrew Cagney <cagney@redhat.com>
6035
6036 * PROBLEMS: Add general section titles, remove references to
6037 specific releases.
6038
6039 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6040
6041 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6042 INT_REGISTER_SIZE.
6043 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6044 FP_REGISTER_VIRTUAL_SIZE.
6045 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6046 of DEPRECATED_REGISTER_RAW_SIZE.
6047 (arm_register_type): Add gdbarch argument.
6048 (arm_register_raw_size, arm_register_virtual_size): Delete.
6049 (arm_register_byte, arm_extract_return_value)
6050 (arm_store_return_value, arm_get_longjmp_target): Update references
6051 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6052 (arm_gdbarch_init): Likewise. Don't set
6053 deprecated_register_raw_size, deprecated_register_virtual_size,
6054 deprecated_max_register_raw_size,
6055 deprecated_max_register_virtual_size, or
6056 deprecated_max_register_virtual_type. Do set register_type.
6057 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6058 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6059 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6060 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6061 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6062 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6063 INT_REGISTER_SIZE.
6064 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6065 (remote_rdp_store_register): Likewise.
6066
6067 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6068
6069 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6070 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6071 to after osabi initialization.
6072 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6073 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6074 functions.
6075 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6076 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6077 variables.
6078 (mips_linux_init_abi): Append signal trampoline unwinders.
6079
6080 2004-03-24 Andrew Cagney <cagney@redhat.com>
6081
6082 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6083 * tramp-frame.c: Include "gdb_assert.h".
6084 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6085 correct sizeof.
6086 (tramp_frame_append): Validate the tramp frame's instructions.
6087 * Makefile.in (tramp-frame.o): Update dependencies.
6088
6089 2004-03-23 Andrew Cagney <cagney@redhat.com>
6090
6091 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6092
6093 2004-03-23 Andrew Cagney <cagney@redhat.com>
6094
6095 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6096 Nasser as past testsuite/lib/ (and other) maintainers.
6097
6098 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6099
6100 * infcmd.c (attach_command): Reread symbols if we already have
6101 an exec file.
6102
6103 2004-03-23 Andrew Cagney <cagney@redhat.com>
6104
6105 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6106
6107 2004-03-23 Andrew Cagney <cagney@redhat.com>
6108
6109 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6110 * gdbarch.h, gdbarch.c: Re-generate.
6111 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6112 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6113 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6114 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6115 (DEPRECATED_SIGTRAMP_START): Update.
6116 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6117 (DEPRECATED_SIGTRAMP_START): Update.
6118 * blockframe.c (find_pc_sect_partial_function): Update.
6119 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6120
6121 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6122
6123 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6124 if necessary.
6125
6126 2004-03-23 Andrew Cagney <cagney@redhat.com>
6127
6128 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6129 predicate, deprecate.
6130 * gdbarch.h, gdbarch.c: Re-generate.
6131 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6132 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6133 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6134 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6135 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6136 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6137 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6138 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6139 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6140 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6141 * blockframe.c (find_pc_partial_function): Update.
6142 * breakpoint.c (bpstat_what): Update.
6143 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6144 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6145 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6146 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6147 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6148 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6149 * i386-nto-tdep.c (i386nto_init_abi): Update.
6150 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6151 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6152 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6153 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6154 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6155 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6156 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6157 * infrun.c (pc_in_sigtramp): Update.
6158 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6159 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6160 * mips-tdep.c (mips_gdbarch_init): Update.
6161 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6162 * ppc-linux-tdep.c: Update comment.
6163 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6164 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6165 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6166 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6167 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6168 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6169 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6170 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6171 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6172 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6173
6174 2004-03-23 Andrew Cagney <cagney@redhat.com>
6175
6176 * tramp-frame.h, tramp-frame.h: New files.
6177 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6178 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6179
6180 * Makefile.in: Update all dependencies.
6181
6182 2004-03-23 Andrew Cagney <cagney@redhat.com>
6183
6184 * Makefile.in (trad_frame_h): Add $(frame_h).
6185 * trad-frame.h: Update copyright. Include "frame.h".
6186 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6187 (trad_frame_set_id, trad_frame_get_id): Declare.
6188 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6189 * trad-frame.c: Update copyright.
6190 (struct trad_frame_cache): Define.
6191 (trad_frame_cache_zalloc): New function.
6192 (trad_frame_set_id, trad_frame_get_id): New functions.
6193 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6194
6195 2004-03-22 Andrew Cagney <cagney@redhat.com>
6196
6197 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6198 s390_pltstub_unwind_cache.
6199 (s390_stub_frame_unwind_cache): Rename
6200 s390_pltstub_frame_unwind_cache.
6201 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6202 (s390_stub_frame_prev_register): Rename
6203 s390_pltstub_frame_prev_register.
6204 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6205 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6206
6207 From Ulrich Weigand:
6208 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6209 pointer calls like PLT calls.
6210
6211 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6212
6213 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6214 PC rather than the partial function start address. Use the start
6215 address to sanity check the found PDR.
6216
6217 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6218
6219 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6220 linux_handle_extended_wait.
6221
6222 2004-03-22 Andrew Cagney <cagney@redhat.com>
6223
6224 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6225 function.
6226
6227 * frame.h (generic_pop_current_frame): Delete declaration.
6228 (deprecate_pop_dummy_frame): Deprecate
6229 generic_pop_dummy_frame.
6230 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6231 (generic_pop_current_frame): Delete function.
6232 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6233 generic_pop_current_frame.
6234 * v850-tdep.c (v850_pop_frame): Update.
6235 * mcore-tdep.c (mcore_pop_frame): Update.
6236 * sh64-tdep.c (sh64_pop_frame): Update.
6237 * h8300-tdep.c (h8300_pop_frame): Update.
6238
6239 2004-03-22 Andrew Cagney <cagney@redhat.com>
6240
6241 * frame.h (deprecated_pc_in_call_dummy): Rename
6242 generic_pc_in_call_dummy.
6243 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6244 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6245 generic_pc_in_call_dummy.
6246 (pc_in_dummy_frame): Make static.
6247 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6248 * gdbarch.h, gdbarch.c: Re-generate.
6249 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6250 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6251 (legacy_get_prev_frame): Ditto.
6252 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6253 comment.
6254
6255 2004-03-21 Andrew Cagney <cagney@redhat.com>
6256
6257 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6258 declaration and out-of-date comment.
6259 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6260 Delete function.
6261 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6262 deprecated_pc_in_call_dummy.
6263
6264 * infrun.c (handle_inferior_event): For non legacy frames, use the
6265 frame ID and frame type to identify a signal trampoline. Update
6266 comments.
6267
6268 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6269
6270 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6271 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6272
6273 2004-03-21 Andrew Cagney <cagney@redhat.com>
6274
6275 * frame-unwind.h: Update copyright.
6276 (struct frame_data): Add opaque declaration.
6277 (frame_sniffer_ftype): Declare.
6278 (struct frame_unwind): Add "unwind_data" and "sniffer".
6279 (frame_unwind_register_unwinder): Declare.
6280 (frame_unwind_find_by_frame): Add parameter "this_cache".
6281 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6282 (legacy_get_prev_frame, legacy_get_prev_frame)
6283 (get_frame_type): Pass the prologue_cache to
6284 frame_unwind_find_by_frame.
6285 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6286 "unwinder".
6287 (frame_unwind_register_unwinder): New function.
6288 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6289
6290 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6291
6292 * bcache.c (print_percentage): Use floating point to avoid
6293 incorrect results when portion*100 overflows.
6294
6295 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6296
6297 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6298 (ppc_linux_init_extra_frame_info)
6299 (ppc_linux_frameless_function_invocation)
6300 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6301 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6302 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6303 (rs6000_frame_chain): Delete declarations.
6304 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6305 (ppc_linux_init_extra_frame_info)
6306 (ppc_linux_frameless_function_invocation)
6307 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6308 (ppc_linux_init_abi): Remove registration of above deleted functions.
6309 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6310 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6311 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6312 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6313 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6314 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6315 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6316 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6317 frame management for all OSABIs.
6318
6319 2004-03-19 Andrew Cagney <cagney@redhat.com>
6320
6321 Committed by Kevin Buettner <kevinb@redhat.com>.
6322
6323 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6324 Update copyright.
6325 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6326 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6327 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6328 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6329 unwinders. #ifdef legacy frame code.
6330 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6331 "frame-base.h".
6332 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6333 (struct rs6000_frame_cache, rs6000_frame_cache)
6334 (rs6000_frame_this_id, rs6000_frame_prev_register)
6335 (rs6000_frame_sniffer, rs6000_frame_unwind)
6336 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6337 (rs6000_frame_base): Implement a traditional frame unwinder.
6338 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6339 frame unwinder.
6340
6341 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6342
6343 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6344 breakpoint address for watchpoints or the catch eventpoints.
6345 Add new paramter ``bptype''. Adjust all callers.
6346
6347 2004-03-19 Andrew Cagney <cagney@redhat.com>
6348
6349 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6350
6351 * PROBLEMS: Delete note that ARM does not use frame code, problem
6352 fixed.
6353
6354 2004-03-18 Andrew Cagney <cagney@redhat.com>
6355
6356 * stack.c (return_command): Delete code wrapped in #ifdef
6357 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6358
6359 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6360
6361 2004-03-18 Andrew Cagney <cagney@redhat.com>
6362
6363 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6364 DEPRECATED_IN_SIGTRAMP.
6365 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6366 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6367 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6368 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6369 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6370 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6371 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6372 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6373 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6374 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6375
6376 2004-03-18 Andrew Cagney <cagney@redhat.com>
6377
6378 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6379 (struct frame_base_table_entry): Define.
6380 (struct frame_base_table): Re-implement as a linked list.
6381 (frame_base_init): Re-implement.
6382 (frame_base_table): Delete function.
6383 (append_predicate): Delete function.
6384 (frame_base_append_sniffer): Update.
6385 (frame_base_set_default): Update.
6386 (frame_base_find_by_frame): Update.
6387 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6388 * Makefile.in (frame-base.o): Update dependencies.
6389
6390 2004-03-17 Andrew Cagney <cagney@redhat.com>
6391
6392 * frame.c (legacy_get_prev_frame): Pass correct frame to
6393 frame_unwind_find_by_frame.
6394
6395 2004-03-17 David Carlton <carlton@kealia.com>
6396
6397 * NEWS: Mention C++ nested types and namespaces
6398
6399 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6400
6401 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6402 and "Regressions since gdb 5.3.". Add known regressions since
6403 gdb 6.0.
6404
6405 2004-03-16 David Carlton <carlton@kealia.com>
6406
6407 * dwarf2read.c (process_structure_scope): Process children even
6408 when we're a declaration.
6409
6410 2004-03-16 Andrew Cagney <cagney@redhat.com>
6411
6412 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6413 * blockframe.c (find_pc_partial_function)
6414 (find_pc_sect_partial_function): Merge into a single
6415 find_pc_partial_function.
6416
6417 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6418
6419 * i386bsd-nat.c: s/regno/regnum/g.
6420 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6421 FP0_REGNUM.
6422 (store_inferior_registers): Likewise.
6423
6424 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6425
6426 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6427 of i387_fill_fsave.
6428 (store_inferior_registers): Call i387_collect_fsave and
6429 i387_collect_fxsave instead of i387_fill_fsave and
6430 i387_fill_fxsave.
6431
6432 2004-03-15 Andrew Cagney <cagney@redhat.com>
6433
6434 * Makefile.in (frame-unwind.o): Update dependencies.
6435 * frame-unwind.c: Include "gdb_obstack.h".
6436 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6437 parameter.
6438 (append_predicate): Delete function.
6439 (struct frame_unwind_table_entry): New structure.
6440 (struct frame_unwind_table): Replace "sniffer" with "head" and
6441 "tail".
6442 (frame_unwind_append_sniffer): Update.
6443 (frame_unwind_find_by_frame): Update.
6444 (_initialize_frame_unwind): Registe frame_unwind_init using
6445 gdbarch_data_register_pre_init.
6446
6447 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6448
6449 * i386bsd-nat.c: Update copyright year.
6450 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6451 define unconditionally.
6452
6453 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6454
6455 * i387-tdep.h (i387_collect_fsave): New prototype.
6456 * i387-tdep.c (i387_collect_fsave): New function containing most
6457 of the code from i387_fill_fsave.
6458 (i387_fill_fsave): Call i387_collect_fsave.
6459
6460 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6461
6462 * i386-linux-tdep.c: Update copyright year.
6463 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6464 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6465 svr4_ilp32_link_map_offsets instead of
6466 i386_linux_svr4_fetch_link_map_offsets.
6467
6468 2004-03-15 David Carlton <carlton@kealia.com>
6469
6470 Fix for PR c++/1553:
6471 * dwarf2read.c (read_structure_type): Determine type name by
6472 calling determine_class_name.
6473 (determine_class_name): New.
6474 (determine_prefix): Look at TYPE_TAG_NAME and call
6475 determine_class_name when appropriate.
6476 (determine_prefix_aux, class_name): Delete.
6477 (read_namespace): Set die->type.
6478
6479 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6480
6481 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6482 unused macro definition. The definition in target.h (or perhaps
6483 elsewhere) takes precedence.
6484
6485 2004-03-15 Andrew Cagney <cagney@redhat.com>
6486
6487 * ppc-tdep.h: Update copyright.
6488 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6489 function signatures to match "regsets.h".
6490 * ppc-linux-tdep.c: Include "regset.h".
6491 (ELF_GREGSET_SIZE): Delete.
6492 (right_supply_register): New function.
6493 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6494 using right_supply_register.
6495 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6496 functions.
6497 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6498 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6499 (_initialize_ppc_linux_tdep): Do not register
6500 ppc_linux_regset_core_fns.
6501 (ppc_linux_regset_from_core_section): Replace
6502 fetch_core_registers.
6503 (ppc_linux_regset_core_fns): Delete.
6504 * ppc-linux-nat.c: (right_fill_reg): New function.
6505 (supply_gregset): Update call to ppc_linux_supply_gregset.
6506 (fill_gregset): Clear the register set, use right_fill_reg.
6507 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
6508 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
6509
6510 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
6511 unsigned.
6512
6513 2004-03-15 Andrew Cagney <cagney@redhat.com>
6514
6515 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
6516 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
6517 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
6518 and register_gdbarch_data.
6519 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
6520 (struct gdbarch_data): Replace "init" by "pre_init" and
6521 "post_init".
6522 * gdbarch.h, gdbarch.c: Re-generate.
6523 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
6524 with"obstack", use OBSTACK_ZALLOC.
6525 (dwarf2_frame_ops): Delete.
6526 (dwarf2_frame_set_init_reg): Use gdbarch_data.
6527 (dwarf2_frame_init_reg): Use gdbarch_data.
6528 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
6529 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
6530 (_initialize_svr4_solib): Update.
6531 * user-regs.c (_initialize_user_regs): Update.
6532 * reggroups.c (_initialize_reggroup): Update.
6533 * regcache.c (_initialize_regcache): Update.
6534 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6535 * libunwind-frame.c (_initialize_libunwind_frame): Update.
6536 * gnu-v3-abi.c (init_gnuv3_ops): Update.
6537 * frame-unwind.c (_initialize_frame_unwind): Update.
6538 * frame-base.c (_initialize_frame_base): Update.
6539 * user-regs.c (user_reg_add): Update.
6540 * reggroups.c (reggroup_add): Update.
6541 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
6542 * libunwind-frame.c (libunwind_frame_set_descr): Update.
6543 * frame-unwind.c (frame_unwind_append_sniffer): Update.
6544 * frame-base.c (frame_base_table): Update.
6545 * remote.c (_initialize_remote): Update.
6546 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
6547
6548 2004-03-15 Andrew Cagney <cagney@redhat.com>
6549
6550 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
6551
6552 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6553
6554 * Makefile.in (frv-linux-tdep.o): Add dependencies.
6555 * frv-linux-tdep.c: New file.
6556 * frv-tdep.c (struct gdbarch_tdep): Add new field
6557 ``sigcontext_reg_addr''.
6558 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
6559 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6560 (frv_sigramp_frame_sniffer): New functions.
6561 (frv_sigtramp_frame_unwind): New static global.
6562 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
6563 sniffers.
6564 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
6565 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
6566
6567 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6568
6569 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
6570 but not via a call to error(), when unable to read memory.
6571
6572 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6573
6574 * frv-tdep.c (frv_call_dummy_words): Delete.
6575 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
6576
6577 2004-03-15 Andrew Cagney <cagney@redhat.com>
6578
6579 * infrun.c (handle_step_into_function, step_over_function): Only
6580 update and use STEP_FRAME_ID when the system is using legacy
6581 frames. Update comments.
6582
6583 2004-03-14 Mark Kettenis <kettenis@gnu.org>
6584
6585 * amd64-linux-tdep.h: Remove file.
6586 * amd64-linux-tdep.c: Don't include "inferior.h" and
6587 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
6588 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
6589 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
6590 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
6591 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
6592 macros.
6593 (user_to_gdb_regmap): Remove variable.
6594 (amd64_linux_gregset_reg_offset): New variable.
6595 (amd64_core_fns): Remove variable.
6596 (fetch_core_registers): Remove function.
6597 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
6598 functions.
6599 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
6600 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
6601 * Makefile.in (amd64_linux_tdep_h): Remove.
6602 (amd64-linux-nat.o): Update dependencies.
6603 (amd64-linux-tdep.o): Update dependencies.
6604
6605 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
6606 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
6607 functions.
6608 (fetch_inferior_registers, store_inferior_registers): Rewrite.
6609
6610 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
6611 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
6612
6613 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
6614
6615 * dwarf2read.c (read_structure_type): Rename from
6616 read_structure_scope. Don't create a symbol or call process_die.
6617 Return immediately if die->type is set. Call read_type_die before
6618 dwarf2_add_member_fn.
6619 (process_structure_scope): New function.
6620 (read_enumeration_type, process_enumeration_scope): New functions,
6621 broken out from read_enumeration. Don't create the enumeration
6622 type if it has already been created.
6623 (read_enumeration): Removed.
6624 (process_die): Call read_structure_type, process_structure_scope,
6625 read_enumeration_type, and process_enumeration_scope. Just call
6626 new_symbol for base and subrange types. Add a comment about other
6627 type dies.
6628 (read_type_die): Call read_enumeration_type.
6629 (add_partial_structure, new_symbol): Update comments.
6630
6631 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6632
6633 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
6634
6635 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6636
6637 * tui/tui-win.h (tui_get_cmd_list): Declare.
6638 * tui/tui-win.c (tui_command): New function.
6639 (tui_get_cmd_list): New function.
6640 (_initialize_tui_win): Moved initialization of tui command in
6641 tui_get_cmd_list.
6642
6643 * tui/tui-data.c (init_content_element): Setup new data members.
6644 (init_win_info): Likewise.
6645 (free_content_elements): Free it.
6646 * tui/tui-data.h (struct tui_data_element): Store the register
6647 content to print.
6648 (struct tui_data_info): Keep the current register group.
6649
6650 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
6651
6652 * tui/tui-regs.h (tui_show_registers): Update prototype.
6653 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
6654 (tui_resize_all): No need to calculate anything for register window.
6655 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
6656 (tui_set_register_element, tui_set_general_regs_content): Remove.
6657 (tui_set_special_regs_content): Remove.
6658 (tui_set_general_and_special_regs_content): Remove.
6659 (tui_set_float_regs_content): Remove.
6660 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
6661 (tui_set_regs_content): Remove.
6662 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
6663 (tui_v_show_registers_command_support): Remove.
6664 (tui_show_registers): Use a reggroup to specify the registers to show.
6665 (tui_show_register_group): New function.
6666 (tui_display_registers_from): Compute the layout of register window
6667 and refresh with new API; be sure to delete old register windows.
6668 (tui_check_register_values): Update to use tui_get_register and
6669 tui_display_data.
6670 (tui_display_register): Just refresh the register window part.
6671 (tui_register_format): Format registers and save in tui_data_element.
6672 (tui_get_register): New to combine tui_reg_value_has_changed and
6673 tui_get_register_raw_value; fix to use the new gdb API.
6674 (tui_show_float_command): Renamed tui_reg_float_command.
6675 (tui_show_general_command): Renamed tui_reg_general_command.
6676 (tui_show_special_command): Renamed tui_reg_system_command.
6677 (_initialize_tui_regs): Remove unused commands.
6678
6679 2004-03-13 Mark Kettenis <kettenis@gnu.org>
6680
6681 * NEWS (New native configurations): Mention OpenBSD/amd64.
6682
6683 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
6684 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
6685 Remove defines.
6686 * config/i386/nm-fbsd64.h: Likewise.
6687 * config/i386/nm-obsd.h: Likewise.
6688 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
6689 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
6690
6691 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6692
6693 * frv-tdep.c (set_variant_scratch_registers): New function.
6694 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
6695 New constants.
6696
6697 From Richard Sandiford <rsandifo@redhat.com>:
6698 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
6699
6700 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6701
6702 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
6703 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
6704 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
6705 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
6706 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
6707 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
6708 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
6709 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
6710 definitions from frv-tdep.c to frv-tdep.h.
6711
6712 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6713
6714 Add shared library support for FR-V FDPIC ABI:
6715 * Makefile.in (solib-frv.o): Add dependencies.
6716 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
6717 New functions.
6718 (frv_push_dummy_call): Add support for FDPIC ABI.
6719 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
6720 for FDPIC ABI.
6721 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
6722 (frv_fdpic_find_canonical_descriptor): Declare.
6723 * solib-frv.c: New file.
6724 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
6725 * config/frv/tm-frv.h (solib.h): Include.
6726
6727 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6728
6729 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
6730 (frv-tdep.o): Update dependencies.
6731 * frv-tdep.h: New file.
6732 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
6733 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
6734 constants.
6735 (struct gdbarch_tdep): Add new member ``frv_abi''.
6736 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
6737 functions.
6738 (new_variant): Set ``frv_abi'' field.
6739 (gdb_arch_init): Detect FDPIC executables.
6740
6741 2004-03-12 Mark Kettenis <kettenis@gnu.org>
6742
6743 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
6744 wrapper.
6745
6746 2004-03-11 Andrew Cagney <cagney@redhat.com>
6747
6748 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
6749
6750 2004-03-11 Kevin Buettner <kevinb@redhat.com>
6751
6752 * solist.h (master_so_list): New function.
6753 * solib.c (master_so_list): Likewise.
6754 * solib-svr4.c (enable_break): Iterate over so_list entries
6755 obtained from master list instead of entries obtained directly
6756 via svr4_current_sos().
6757
6758 2004-03-10 Ben Elliston <bje@gnu.org>
6759
6760 * MAINTAINERS: Update my mail address.
6761
6762 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
6763
6764 * remote-m32r-sdi.c: Support hardware watchpoint.
6765
6766 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6767
6768 * user-regs.c: Update copyright years.
6769 (struct user_regs): Rename to gdb_user_regs.
6770 (append_user_reg, builtin_user_regs, user_regs_init)
6771 (user_reg_add, user_reg_map_name_to_regnum)
6772 (usernum_to_user_reg): Update.
6773
6774 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6775
6776 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
6777 (skip_children): New functions.
6778 (locate_pdi_sibling): Call skip_children.
6779
6780 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6781
6782 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
6783 * gdbtypes.c (check_typedef): Update comments.
6784
6785 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6786
6787 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
6788 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
6789 pointer. Update comment about comp_unit_head.
6790 (struct abbrev_info): Shorten two int flags.
6791 (dwarf_alloc_abbrev): Take a CU argument.
6792 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
6793 each time through the loop. Update cleanup argument.
6794 (psymtab_to_symtab_1): Update cleanup call.
6795 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
6796 abbrev_obstack.
6797 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
6798 Just call obstack_free and clear the pointer.
6799
6800 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6801
6802 * infrun.c (handle_inferior_event): Remove short-circuit code for
6803 events in a different thread.
6804
6805 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6806
6807 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
6808 print the whole transfer.
6809 (initialize_targets): Update description of "set debug target".
6810
6811 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6812
6813 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
6814
6815 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
6816
6817 * MAINTAINERS (write after approval): Add myself.
6818
6819 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
6820
6821 * sh-tdep.c (sh_print_registers_info): Use for loop.
6822 Don't skip multiple registers when a float register is encountered.
6823
6824 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
6825
6826 Fix PR tdep/1291.
6827 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
6828 to official SH documentation.
6829
6830 2004-03-07 Andrew Cagney <cagney@redhat.com>
6831
6832 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
6833 unused function.
6834
6835 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
6836
6837 * arm-tdep.c (thumb_get_next_pc): Handle BX.
6838 (arm_get_next_pc): Handle BX and BLX.
6839
6840 2004-03-07 Andrew Cagney <cagney@redhat.com>
6841
6842 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
6843 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
6844 HPPA_SP_REGNUM.
6845 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
6846 (hppa_target_read_fp): Delete.
6847 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
6848 register_virtual_size, max_register_raw_size,
6849 max_register_virtual_size, register_byte, register_size,
6850 target_read_fp, fp_regnum, and register_bytes. Set register_type
6851 instead of register_virtual_type.
6852 (hppa32_register_type, hppa64_register_type): Replace
6853 hppa32_register_virtual_type and hppa64_register_virtual_type.
6854 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
6855 (HPPA_FP_REGNUM): Define.
6856
6857 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
6858
6859 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
6860 (pa_do_registers_info): Delete.
6861 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
6862 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
6863 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
6864
6865 * infcall.c (legacy_push_dummy_code): Delete #ifdef
6866 GDB_TARGET_IS_HPPA code.
6867 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
6868 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
6869 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
6870 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
6871 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
6872 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
6873 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
6874 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
6875 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
6876 (hppa_frameless_function_invocation, hppa64_store_return_value)
6877 (hppa_store_struct_return, hppa64_extract_return_value)
6878 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
6879 (hppa32_call_dummy_length, hppa64_call_dummy_length)
6880 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
6881 (find_proc_framesize, deposit_21, restore_pc_queue)
6882 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
6883 (rp_saved, pc_in_linker_stub): Delete.
6884
6885 Unconditionally enable 64-bit frame and ABI code.
6886 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
6887 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
6888 push_dummy_frame, fix_call_dummy, push_arguments,
6889 call_dummy_location, extract_return_value, use_struct_convention,
6890 store_return_value, store_struct_return, saved_pc_after_call,
6891 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
6892 frame_chain, frame_chain_valid, frameless_function_invocation,
6893 frame_saved_pc, and pop_frame.
6894
6895 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
6896 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
6897 (hppa_gdbarch_init): Do not set PC_REGNUM.
6898
6899 2004-03-06 Mark Kettenis <kettenis@gnu.org>
6900
6901 * config/alpha/tm-fbsd.h: Remove file.
6902 * config/alpha/fbsd.mt: Tweak comment.
6903 (TM_FILE): Set to tm-alpha.h.
6904
6905 2004-03-05 Andrew Cagney <cagney@redhat.com>
6906
6907 * infrun.c (step_over_function): When non-legacy code, and no
6908 step_frame_id, use the unwinder to get the caller's frame ID.
6909
6910 2004-03-05 Mark Kettenis <kettenis@gnu.org>
6911
6912 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
6913 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
6914 bfd_arch_unknown. Adjust comment.
6915
6916 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
6917 * i386obsd-tdep.c: Correct spelling in comment.
6918 * i386nbsd-tdep.c: Correct spelling in comment.
6919 * sparc-tdep.c: Correct spelling in comments.
6920
6921 2004-03-05 David Carlton <carlton@kealia.com>
6922
6923 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
6924 bug.
6925
6926 2004-03-05 Mark Kettenis <kettenis@gnu.org>
6927
6928 * sparc-tdep.c: Fix typo in comment.
6929
6930 2004-03-04 J. Brobecker <brobecker@gnat.com>
6931
6932 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
6933
6934 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
6935
6936 * dwarf2read.c: Add comment describing memory lifetimes.
6937 (struct dwarf2_pinfo): Update comment.
6938 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
6939 (read_enumeration, new_symbol): Don't use obsavestring.
6940
6941 2004-03-04 Mark Kettenis <kettenis@gnu.org>
6942
6943 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
6944 instead of amd64_fill_fxsave.
6945 * amd64bsd-nat.c (store_inferior_registers): Likewise.
6946 * amd64fbsd-nat.c (fill_fpregset): Likewise.
6947
6948 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
6949 Reorganize code a bit.
6950
6951 2004-03-04 Orjan Friberg <orjanf@axis.com>
6952
6953 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
6954 when the frame pointer is pushed. Don't set the frame pointer's
6955 address on the stack unless it's actually located there.
6956 Set the SRP's address on the stack correctly when the PC is still in
6957 the prologue.
6958 (cris_return_value): New function.
6959 (cris_gdbarch_init): Clear deprecated store_return_value,
6960 extract_return_value.
6961
6962 2004-03-02 Jim Blandy <jimb@redhat.com>
6963
6964 * stabsread.c (reg_value_complaint): The maximum register number
6965 is one less than the number of registers.
6966
6967 2004-03-02 Andrew Cagney <cagney@redhat.com>
6968
6969 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
6970 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
6971 trailing comma and redundant assignment of I386_ST0_REGNUM.
6972 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
6973 32-bit segment registers.
6974
6975 2004-03-01 Andrew Cagney <cagney@redhat.com>
6976
6977 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
6978 use frame_relative_level and get_next_frame.
6979
6980 2004-02-29 Andrew Cagney <cagney@redhat.com>
6981
6982 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
6983 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
6984 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
6985 Delete macro.
6986
6987 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
6988
6989 * inflow.c (terminal_inferior): Don't give up the terminal if we
6990 previously couldn't get the inferior's terminal state.
6991
6992 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
6993
6994 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
6995 PC_REGNUM.
6996
6997 2004-02-28 Andrew Cagney <cagney@redhat.com>
6998
6999 * NEWS: Refer to GDB 6.1.
7000 * README: Refer to GDB 6.1.
7001 * PROBLEMS: Refer to GDB 6.1.
7002
7003 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7004
7005 * thread-db.c (disable_thread_signals): Remove unused function.
7006
7007 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7008
7009 * amd64-nat.c: Include "gdb_string.h".
7010 (amd64_collect_native_gregset): Zero-extend the 32-bit
7011 general-purpose registers and %eip.
7012
7013 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7014 * amd64-tdep.c (amd64_collect_fxsave): New function.
7015 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7016
7017 * i387-tdep.h: Update copyright year.
7018 (i387_collect_fxsave): New prototype.
7019 * i387-tdep.c: Update copyright year.
7020 (i387_collect_fxsave): New function containing most of the code
7021 from i387_fill_fxsave.
7022 (i387_fill_fxsave): Call i387_collect_fxsave.
7023
7024 2004-02-28 Andrew Cagney <cagney@redhat.com>
7025
7026 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7027 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7028
7029 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7030
7031 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7032
7033 2004-02-28 Andrew Cagney <cagney@redhat.com>
7034
7035 * utils.c: Use "", instead of <>, to include readline.
7036 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7037 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7038 * source.c, solib.c, exec.c, event-top.c: Ditto.
7039 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7040 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7041 * Makefile.in: Update all dependencies.
7042 (readline_tilde_h, readline_history_h): Define.
7043 (readline_headers): Delete.
7044
7045 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7046
7047 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7048 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7049 "config/i386/tm-lx64.h".
7050
7051 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7052 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7053 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7054
7055 2004-02-28 Andrew Cagney <cagney@redhat.com>
7056
7057 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7058
7059 * breakpoint.c (_initialize_breakpoint): Use
7060 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7061 Add help to show command.
7062
7063 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7064
7065 * i386-nat.c: Reformat to be closer to coding standards.
7066 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7067 `retval'. Make variables `align' and `size' local to while-loop.
7068 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7069 (_initialize_i386_nat): New prototype.
7070
7071 * tui/tui.c: Include <readline/readline.h> instead of
7072 "readline/readline.h". Include it after <term.h> and
7073 "gdb_curses.h".
7074
7075 2004-02-27 Andrew Cagney <cagney@redhat.com>
7076
7077 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7078 the new frame unwind code.
7079 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7080 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7081 PCOQ_HEAD_REGNUM.
7082
7083 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7084 "return_value" and "push_dummy_call".
7085 (hppa32_use_struct_convention): Delete unused function.
7086 (hppa32_store_return_value): Delete unused function.
7087 (hppa32_extract_return_value): Delete unused function.
7088 (hppa32_stack_align): Delete function.
7089
7090 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7091
7092 * coffread.c (enter_linenos): Don't let rawptr reference memory
7093 outside linetab[]'s limits.
7094
7095 2004-02-27 Andrew Cagney <cagney@redhat.com>
7096
7097 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7098 inferior stack space - the stack needs to grow upwards.
7099 (hppa32_frame_align): New function.
7100 (hppa64_frame_align): Replace hppa_frame_align.
7101 (hppa_gdbarch_init): Update.
7102
7103 2004-02-26 Orjan Friberg <orjanf@axis.com>
7104
7105 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7106 (dwarf2-frame.h): Include.
7107 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7108 Remove static variables related to ABI setting.
7109 (struct gdbarch_tdep): Remove cris_abi member.
7110 (struct frame_extra_info): Remove.
7111 (cris_unwind_cache, stack_item): New structs.
7112 (cris_frame_unwind, cris_frame_base): New variables.
7113 (push_stack_item, pop_stack_item)
7114 (cris_frame_unwind_cache, cris_frame_this_id)
7115 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7116 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7117 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7118 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7119 (cris_reg_struct_has_addr): New functions.
7120 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7121 (cris_frame_saved_pc, cris_saved_pc_after_call,
7122 (cris_store_struct_return, cris_frameless_function_invocation)
7123 (cris_pop_frame, cris_skip_prologue_main)
7124 (cris_abi_original_store_return_value)
7125 (cris_abi_v2_store_return_value)
7126 (cris_abi_original_extract_return_value)
7127 (cris_abi_v2_extract_return_value)
7128 (cris_abi_original_reg_struct_has_addr)
7129 (cris_abi_v2_reg_struct_has_addr)
7130 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7131 (cris_push_return_address, cris_abi_update): Remove.
7132 (_initialize_cris_tdep): Remove ABI command.
7133 (cris_dump_tdep): Ditto.
7134 (cris_gdbarch_init): Remove ABI command.
7135 Set store_return_value, extract_return_value, push_dummy_code,
7136 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7137 frame_unwind_append_sniffer, frame_base_set_default.
7138 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7139 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7140 sizeof_call_dummy_words, get_saved_register, push_return_address,
7141 pop_frame, store_struct_return, frame_init_saved_regs,
7142 init_extra_frame_info, frameless_function_invocation, frame_chain,
7143 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7144 dummy_write_sp.
7145
7146 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7147
7148 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7149 * valprint.c (print_hex_chars): Change from static to external.
7150 (print_char_chars): New function.
7151 * printcmd.c (print_scalar_formatted): For integer and enum types
7152 that are longer than LONGEST, perform processing via appropriate
7153 print_*_chars routines.
7154
7155 2004-02-26 Andrew Cagney <cagney@redhat.com>
7156
7157 * Makefile.in: Update dependencies.
7158 Changes from Ulrich Weigand,
7159 * s390-tdep.c: Include "dwarf2-frame.h".
7160 (s390_dwarf2_frame_init_reg): New function.
7161 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7162 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7163
7164 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7165
7166 * breakpoint.c (pending_break_support): New setting variable.
7167 (break_command_1): Account for pending_break_support setting
7168 when creating pending breakpoints.
7169 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7170 (_initialize_breakpoint): Add "set breakpoint pending" and
7171 "show breakpoint pending" commands.
7172
7173 2004-02-26 Andrew Cagney <cagney@redhat.com>
7174
7175 Fix PR i18n/1570.
7176 * charset.c (backslashable, backslashed, represented): Remove 'e'
7177 from list of escaped characters, not part of ISO-C.
7178
7179 2004-02-25 J. Brobecker <brobecker@gnat.com>
7180
7181 From Peter Schauer <schauer@pdf.de>:
7182 * tui/tui.c: Move system header includes after local includes.
7183 Fixes a build failure on solaris systems.
7184
7185 2004-02-25 J. Brobecker <brobecker@gnat.com>
7186
7187 * configure.in: Refine the previous change.
7188 * configure: Regenerate.
7189
7190 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7191
7192 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7193 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7194 "amd64-tdep.h" instead of "x86-64-tdep.h".
7195 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7196 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7197 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7198 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7199 and "x86-64-tdep.c".
7200 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7201 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7202 and "x86-64-tdep.c".
7203 * amd64bsd-nat.c: Update copyright year.
7204 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7205 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7206 "x86-64-tdep.h".
7207 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7208 "x86-64-tdep.h".
7209 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7210 "x86-64-tdep.h".
7211 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7212 "x86-64-tdep.h".
7213 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7214 "x86-64-tdep.h".
7215 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7216 "x86-64-tdep.h".
7217 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7218 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7219 * Makefile.in (amd64_linux_tdep_h): Renamed from
7220 x86_64_linux_tdep_h.
7221 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7222 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7223 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7224 (amd64obsd-tdep.o): Update dependencies.
7225 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7226 dependencies.
7227 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7228 dependencies.
7229 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7230 amd64-linux-nat.c amd64-linux-tdep.c.
7231 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7232 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7233 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7234 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7235 amd64-tdep.o and amd64-linux-tdep.o.
7236 (TM_FILE): Set to tm-linux64.h.
7237 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7238 (NAT_FILE): Set to nm-linux64.h.
7239 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7240 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7241 amd64-tdep.o.
7242 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7243 amd64-tdep.o.
7244 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7245 amd64-tdep.o.
7246
7247 2004-02-25 Roland McGrath <roland@redhat.com>
7248
7249 * remote.c (remote_protocol_qPart_auxv): New variable.
7250 (init_all_packet_configs): Initialize it.
7251 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7252 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7253 (show_remote_cmd): Call it.
7254 (_initialize_remote): Initialize commands.
7255 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7256 service TARGET_OBJECT_AUXV requests.
7257
7258 2004-02-25 J. Brobecker <brobecker@gnat.com>
7259
7260 * configure.in: Make sure that the wborder function is available.
7261 Otherwise, search for it in the cur_colr library.
7262 * configure: Regenerate.
7263
7264 2004-02-25 Andrew Cagney <cagney@redhat.com>
7265
7266 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7267
7268 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7269
7270 * config/i386/tm-x86-64linux.h: Tweak comments.
7271
7272 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7273
7274 * MAINTAINERS: Add self to write-after-approval list.
7275
7276 2004-02-25 Andrew Cagney <cagney@redhat.com>
7277
7278 PR cli/1566. Problem found, and fix suggested by David Allan.
7279 * cli/cli-script.c (execute_control_command): Unconditionally
7280 install a cleanup. Default "ret" to "invalid_control". Use
7281 "break" instead of "return" to escape from the switch.
7282
7283 2004-02-24 J. Brobecker <brobecker@gnat.com>
7284
7285 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7286 with the lines macro defined in term.h on AiX.
7287 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7288 a collision with the label_width macro defined in term.h on AiX.
7289
7290 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7291
7292 Committed by Kevin Buettner <kevinb@redhat.com>.
7293
7294 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7295 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7296 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7297 instead of ia64_write_pc().
7298 * ia64-linux-tdep.c (regcache.h): Include.
7299 (ia64_linux_write_pc): New function.
7300
7301 2004-02-23 Roland McGrath <roland@redhat.com>
7302
7303 * auxv.c (info_auxv_command): Fix typos in error messages.
7304
7305 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7306
7307 * x86-64-tdep.h: Tweak comment.
7308 (enum amd64_regnum): New.
7309 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7310 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7311 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7312 (X86_64_XMM1_REGNUM): Removed.
7313 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7314 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7315 prototypes for renamed functions.
7316 * x86-64-tdep.c: Fix typo.
7317 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7318 register numbers.
7319 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7320 Use constants from `enum amd64_regnum' for register numbers.
7321 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7322 (amd64_analyze_prologue, amd64_frame_cache,
7323 amd64_sigtramp_frame_cache): Use constants from `enum
7324 amd64_regnum' for register numbers.
7325 (amd64_supply_fpregset): Adjust for renamed functions.
7326 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7327 `enum amd64_regnum' for register numbers.
7328 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7329 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7330 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7331 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7332 (amd64_linux_fill_gregset): Adjust for renamed macros.
7333 (fetch_core_registers): Adjust for renamed functions.
7334 (amd64_linux_init_abi): Adjust for renamed functions.
7335 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7336 renamed functions.
7337 * amd64-nat.c: Adjust for renamed macros.
7338 * amd64bsd-nat.c (fetch_inferior_registers)
7339 (store_inferior_registers): Use constants from `enum amd64_regnum'
7340 for register numbers. Adjust for renamed variables.
7341 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7342 renamed variables.
7343 (_initialize_amd64fbsd_nat): Use constants from `enum
7344 amd64_regnum' for register numbers.
7345 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7346 `enum amd64_regnum' for register numbers.
7347 (amd64fbsd_init_abi): Adjust for renamed functions.
7348 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7349 `enum amd64_regnum' for register numbers.
7350 (amd64nbsd_init_abi): Adjust for renamed functions.
7351 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7352 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7353 `enum amd64_regnum' for register numbers.
7354 (amd64obsd_init_abi): Adjust for renamed functions.
7355 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7356
7357 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7358
7359 * breakpoint.c (print_one_breakpoint): Do not output spaces
7360 after printing <PENDING> for a pending breakpoint.
7361
7362 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7363
7364 * printcmd.c (print_scalar_formatted): Initialize val_long
7365 to remove compiler warning message.
7366
7367 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7368
7369 * defs.h (nquery, yquery): New prototypes.
7370 * breakpoint.c (break_command_1): Use new nquery interface.
7371 * utils.c (defaulted_query, nquery, yquery): New functions.
7372
7373 2004-02-23 Andrew Cagney <cagney@redhat.com>
7374
7375 * hppa-tdep.c (hppa_frame_align): New function.
7376 (hppa32_push_dummy_call): New function.
7377 (hppa64_push_dummy_call): New function.
7378 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7379 disabled.
7380
7381 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7382 FIX_CALL_DUMMY when push_dummy_call is available.
7383 (call_function_by_hand, push_dummy_code): Ditto.
7384
7385 2004-02-22 Andrew Cagney <cagney@redhat.com>
7386
7387 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7388 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7389 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7390 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7391 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7392 call_dummy_location to ON_STACK.
7393
7394 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7395
7396 * x86-64-linux-tdep.c: Tweak comment.
7397 (amd64_linux_supply_gregset): Renamed from
7398 x86_64_linux_supply_gresget.
7399 (amd64_linux_fill_gregset): Renamed from
7400 x86_64_linux_fill_gregset.
7401 (fetch_core_registers): Adjust for renamed functions.
7402 (amd64_core_fns): Renamed from x86_64_core_fns.
7403 (amd64_linux_sigtramp_start): Renamed from
7404 x86_64_linux_sigtramp_start.
7405 (amd64_linux_pc_in_sigtramp): Renamed from
7406 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7407 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7408 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7409 (amd64_linux_sigcontext_addr): Renamed from
7410 x86_64_linux_sigcontext_addr.
7411 (amd64_linux_sc_reg_offset): Renamed from
7412 x86_64_linux_sc_reg_offset.
7413 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7414 Adjust for renamed functions and variables.
7415 (_initialize_amd64_linux_tdep): Renamed from
7416 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7417 variables.
7418 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7419 Adjust for renamed functions.
7420
7421 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7422 from x86_64_linux_gregset64_reg_offset.
7423 (amd64_linux_gregset32_reg_offset): Rename from
7424 x86_64_linux_gregset64_reg_offset.
7425 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7426 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7427 (amd64_linux_dr_set_control): Renamed from
7428 x86_64_linux_dr_set_control. Adjust for renamed functions.
7429 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7430 Adjust for renamed functions.
7431 (amd64_linux_dr_reset_addr): Renamed from
7432 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7433 (amd64_linux_dr_get_status): Renamed from
7434 x86_64_linux_dr_get_status. Adjust for renamed functions.
7435 (_initialize_amd64_linux_nat): Renamed from
7436 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7437 functions.
7438 * config/i386/nm-x86-64linux.h: Update copyright year.
7439 Adjust for renamed functions.
7440
7441 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7442 amd64fbsd_sigtramp_start.
7443 (amd64fbsd_sigtramp_end_addr): Renamed from
7444 amd64fbsd_sigtramp_end.
7445 (amd64fbsd_init_abi): Adjust for renamed variables.
7446 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7447 variables.
7448 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7449 amd64fbsd_sigtramp_start.
7450 (amd64fbsd_sigtramp_end_addr): Renamed from
7451 amd64fbsd_sigtramp_end.
7452
7453 2004-02-22 Andrew Cagney <cagney@redhat.com>
7454
7455 * hppa-tdep.c (hppa32_return_value): New function.
7456 (hppa64_return_value): New function.
7457 (hppa_gdbarch_init): Set return_value; keep disabled.
7458
7459 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7460 struct-return and inferior function call methods.
7461
7462 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7463 "frame-base.h".
7464 (struct hppa_frame_cache): Define.
7465 (hppa_frame_cache, hppa_frame_this_id): New functions.
7466 (hppa_frame_prev_register): New function.
7467 (hppa_frame_unwind, hppa_frame_base): New variables.
7468 (hppa_frame_unwind_sniffer): New function.
7469 (hppa_frame_base_address, hppa_unwind_pc): New function.
7470 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7471 sniffer, and frame base sniffer; keep disabled.
7472 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7473 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7474
7475 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7476 to predicates for "seriously old code".
7477
7478 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7479 runtime if(0).
7480
7481 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7482 unsigned.
7483 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
7484
7485 * config/pa/tm-hppa.h: Update copyright.
7486 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7487 (deprecated_init_frame_pc_default): Delete declaration.
7488 (hppa_frame_init_saved_regs): Delete declaration.
7489 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7490 * hppa-tdep.c: Include "arch-utils.h".
7491 (hppa_gdbarch_init): Set deprecated init_frame_pc
7492 and deprecated frame_init_saved_regs.
7493 (hppa_frame_init_saved_regs): Make static.
7494
7495 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7496
7497 Remove old 386BSD support.
7498 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
7499 * configure.host: Remove i[34567]86-*-bsd*.
7500 * configure.tgt: Remove i[34567]86-*-bsd*.
7501 * i386b-nat.c: Removed.
7502 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
7503 (i386b-nat.o): Remove dependencies.
7504
7505 * config/i386/i386bsd.mh: Removed.
7506 * config/i386/i386bsd.mt: Removed.
7507 * config/i386/nm-i386bsd.h: Removed.
7508 * config/i386/tm-i386bsd.h: Removed.
7509 * config/i386/xm-i386bsd.h: Removed.
7510
7511 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
7512
7513 * amd64fbsd-tdep.c: Include "solib-svr4.h".
7514 (amd64fbsd_init_abi): Set link map offsets.
7515 * amd64nbsd-tdep.c: Include "slib-svr4.h".
7516 (amd64nbsd_init_abi): Set link map offsets.
7517 * amd64obsd-tdep.c: Include "solib-svr4.h".
7518 (amd64obsd_init_abi): Set link map offsets.
7519 * i386fbsd-tdep.c: Include "solib-svr4.h".
7520 (i386fbsd_init_abi): Set link map offsets.
7521 * i386nbsd-tdep.c: Include "solib-svr4.h".
7522 (i386nbsdelf_init_abi): Set link map offsets.
7523 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
7524 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
7525 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
7526 solib-legacy.o and core-aout.o. Reformat.
7527 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
7528 solib-svr4.o, solib-legacy.o. Reformat.
7529 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
7530 * config/i386/nbsdelf.mh: Reformat.
7531 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
7532 solib-svr4.o, solib-legacy.o and corelow.o.
7533 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
7534 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
7535 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
7536 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7537 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7538 (TM_FILE): Set to tm-fbsd.h.
7539 * config/i386/nbsd.mt (TDEPFILES): Reformat.
7540 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
7541 solib-svr4.o.
7542 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
7543 solib-svr4.o.
7544 (TM_FILE): Set to nm-nbsd.h.
7545 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
7546 Simplify shared library support. Don't include "elf/common.h".
7547 (SVR4_SHARED_LIBS): Don't define.
7548 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
7549 "solib.h".
7550 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
7551 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
7552 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
7553 Don't include "i386/tm-i386.h". Include "solib.h".
7554 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
7555 Don't include "i386/tm-i386.h".
7556 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
7557 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
7558 Include "i386/xm-i386.h".
7559 (HOST_LONG_DOUBLE_FORMAT): Remove.
7560
7561 Fix OpenBSD/i386 sigtramp recognition.
7562 * i386-tdep.h: Update copyright year.
7563 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
7564 (i386bsd_sigtramp_end): New prototypes.
7565 (i386fbsd_sigtramp_start_addr): Renamed from
7566 i386fbsd_sigtramp_start.
7567 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7568 (i386obsd_sigtramp_start_addr): Renamed from
7569 i386obsd_sigtramp_start.
7570 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7571 * i386bsd-tdep.c: Update copyright year.
7572 (i386bsd_pc_in_sigtramp): Make public.
7573 * i386fbsd-nat.c: Update copyright year.
7574 (_initialize_i386fbsd_nat): Adjust for renamed variables.
7575 * i386fbsd-tdep.c: Update copyright year.
7576 (i386fbsd_sigtramp_start_addr): Renamed from
7577 i386fbsd_sigtramp_start.
7578 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7579 (i386fbsdaout_init_abi): Adjust for renamed variables.
7580 * i386obsd-nat.c: Update copyright year.
7581 (_initialize_i386obsd_nat): Adjust for renamed variables.
7582 * i386obsd-tdep.c: Include "target.h".
7583 (i386obsd_page_size): New variable.
7584 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
7585 (i386obsd_sigtramp_end): New functions.
7586 (i386obsd_sigtramp_start_addr): Renamed from
7587 i386obsd_sigtramp_start.
7588 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7589 (i386obsd_init_abi): Adjust for renamed variables. Set
7590 pc_in_sigtramp, sigtramp_start and sigtramp_end.
7591 * Makefile.in (i386obsd-tdep.o): Update dependencies.
7592
7593 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
7594 trampoline change in OpenBSD kernel.
7595
7596 * amd64-nat.c: Update copyright year.
7597 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
7598 architecture from REGCACHE.
7599
7600 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
7601 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
7602
7603 2004-02-21 Mark Kettenis <kettenis@gnu.org>
7604
7605 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
7606 i[34567]86-*-openbsd3.[0-3].
7607 * config/i386/obsdaout.mh: New file.
7608
7609 * config/i386/obsd.mh (MH_FLAGS): Remove.
7610
7611 Fix PR build/1549.
7612 * i386obsd-tdep.c: Update copyright years. Include
7613 "solib-svr4.h".
7614 (i386obsd_init_abi): Don't set regset_from_core_section here.
7615 (i386obsd_aout_init_abi): New function. Set
7616 regset_from_core_section here.
7617 (i386obsd_elf_init_abi): New function.
7618 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
7619 * Makefile.in (i386obsd-tdep.o): Update dependecies.
7620 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7621 (TM_FILE): Set to tm-nbsd.h.
7622
7623 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
7624 solib-sunos.o.
7625
7626 * solib-svr4.h: Update copyright year.
7627 (svr4_ilp32_fetch_link_map_offsets)
7628 (svr4_lp64_fetch_link_map_offsets): New prototype.
7629 * solib-svr4.c: Update copyright year.
7630 (svr4_ilp32_fetch_link_map_offsets)
7631 (svr4_lp64_fetch_link_map_offsets): New function.
7632
7633 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
7634
7635 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
7636 to the partial symbol table.
7637
7638 2004-02-20 J. brobecker <brobecker@gnat.com>
7639
7640 * PROBLEMS: Add description of problem documented under gdb/1560.
7641
7642 2004-02-20 Mark Kettenis <kettenis@gnu.org>
7643
7644 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
7645 comments.
7646 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
7647 functions.
7648 (amd64obsd_init_abi): Reorder initializations. Use
7649 amd64obsd_r_reg_offset to initialize the general-purpose register
7650 set details. Set regset_from_core_section.
7651 (_initialize_amd64obsd_tdep): Rename from
7652 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
7653 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
7654 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
7655
7656 * NEWS (New native configurations): Mention OpenBSD/alpha.
7657 * configure.tgt: Add alpha*-*-openbsd*.
7658 * configure.host: Add alpha*-*-openbsd*.
7659 * alphanbsd-tdep.c: Update copyright year.
7660 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
7661
7662 2004-02-20 Andrew Cagney <cagney@redhat.com>
7663
7664 Fix PR tdep/1372.
7665 * configure.tgt: Delete target "none-*-*".
7666 * configure.host: Delete host "none-*-*".
7667 * config/none/none.mh: Delete file.
7668 * config/none/none.mt: Delete file.
7669 * config/none/xm-none.h: Delete file.
7670 * config/none/tm-none.h: Delete file.
7671 * config/none/nm-none.h: Delete file.
7672
7673 2004-02-19 Fred Fish <fnf@redhat.com>
7674
7675 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
7676 cache->uses_fp prior to setting it.
7677
7678 2004-02-19 Fred Fish <fnf@redhat.com>
7679
7680 Fix for PR breakpoint/1558.
7681 * sh-tdep.c (IS_JSR): New macro.
7682 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
7683
7684 2004-02-19 Jim Blandy <jimb@redhat.com>
7685
7686 * findvar.c (value_from_register): Doc fix.
7687
7688 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
7689
7690 * printcmd.c (print_scalar_formatted): Do not check for sizeof
7691 type being greater than sizeof of host's LONGEST. Always use
7692 unpack_long() unless format 'f' chosen.
7693
7694 2004-02-19 Joel Brobecker <brobecker@gnat.com>
7695
7696 Committed by Elena Zannoni <ezannoni@redhat.com>
7697
7698 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
7699 contains a symbol wich is the best, non-exact match for the given
7700 pc. Update comments.
7701
7702 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
7703
7704 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
7705 macro, which was part of the now removed Mach 3 port.
7706 * utils.c (request_quit): Ditto.
7707
7708 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7709
7710 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
7711 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
7712
7713 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7714
7715 Committed by Mark Kettenis <kettenis@gnu.org>.
7716
7717 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
7718 Define.
7719
7720 2004-02-18 Andrew Cagney <cagney@redhat.com>
7721
7722 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
7723 CONFIG_INSTALL and CONFIG_UNINSTALL.
7724 * configure: Re-generate.
7725 * interps.h (INTERP_TUI): Define.
7726 * Makefile.in: Update dependencies.
7727 (TUI): New macro.
7728 (tui-main.o): Specify dependencies.
7729 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
7730 * tui/tui-main.c: New file.
7731
7732 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7733
7734 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
7735 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
7736 dependencies.
7737 * configure.host: Add x86_64-*-openbsd*.
7738 * configure.tgt: Add x86_64-*-openbsd*.
7739 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
7740
7741 * tui/tui.c: Don't include <malloc.h>.
7742
7743 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
7744 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
7745 amd64nbsd-tdep.c.
7746
7747 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
7748 static. Remove extraneous whitespace.
7749 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
7750 static.
7751
7752 2004-02-17 Jim Blandy <jimb@redhat.com>
7753
7754 * findvar.c (value_from_register): Doc fix.
7755
7756 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7757
7758 Committed by Jim Blandy <jimb@redhat.com>.
7759
7760 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
7761 CORE_ADDR as type for selectors. Correct types for GNU run time
7762 message lookup function to use double indirection.
7763 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
7764 * objc-lang.h (lookup_child_selector): Adapt prototype.
7765
7766 * s390-nat.c (SUBOFF): New macro.
7767 (supply_gregset, fill_gregset): Use it to handle debugging
7768 of 32-bit exectuables running under a 64-bit kernel.
7769 * s390-tdep.c: Include "solib-svr4.h".
7770 (s390_svr4_fetch_link_map_offset): New function.
7771 (s390x_svr_fetch_link_map_offset): Likewise.
7772 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
7773 * Makefile.in (s390-tdep.o): Update dependencies.
7774
7775 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
7776 "frame-unwind.h".
7777 (s390_readinstruction): Reformat. Use read_memory_nobpt.
7778 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
7779 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
7780 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
7781 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
7782 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
7783 S390_SIGNAL_FRAMESIZE,
7784 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
7785 (struct frame_extra_info): Remove.
7786 (s390_memset_extra_info): Remove.
7787 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
7788 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
7789 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
7790 (is_rse): Renamed to ...
7791 (is_rsy): ... this. Support long displacements.
7792 (is_rxe): Renamed to ...
7793 (is_rxy): ... this. Support long displacements.
7794 (compute_x_addr): Support long displacements.
7795 (struct s390_prologue_data): New data type.
7796 (s390_on_stack): Change API to use struct s390_prologue_data.
7797 (s390_store): Reimplement.
7798 (s390_load): New function.
7799 (s390_get_signal_frame_info): Remove.
7800 (s390_get_frame_info): Remove, replace by ...
7801 (s390_analyze_prolog): ... this new function.
7802 (s390_check_function_end): Remove.
7803 (s390_function_start): Remove.
7804 (s390_frameless_function_invokation): Remove.
7805 (s390_is_sigreturn): Remove.
7806 (s390_init_frame_pc_first): Remove.
7807 (s390_init_frame_extra_info): Remove.
7808 (s390_frame_init_saved_regs): Remove.
7809 (s390_frame_saved_pc_nofix): Remove.
7810 (s390_frame_saved_pc): Remove.
7811 (s390_frame_chain): Remove.
7812 (s390_fp_regnum, s390_read_fp): Remove.
7813 (s390_pop_frame_regular, s390_pop_frame): Remove.
7814 (s390_saved_pc_after_call): Remove.
7815 (s390_skip_prologue): Reimplement.
7816 (s390_in_function_epilogue_p): Support long displacements.
7817 (struct s390_unwind_cache): New data structure.
7818 (s390_frame_unwind_cache): New function.
7819 (s390_prologue_frame_unwind_cache): Likewise.
7820 (s390_backchain_frame_unwind_cache): Likewise.
7821 (s390_frame_this_id, s390_frame_prev_register): Likewise.
7822 (s390_frame_unwind): Define.
7823 (s390_frame_sniffer): New function.
7824 (struct s390_pltstub_unwind_cache): New data structure.
7825 (s390_pltstub_frame_unwind_cache): New function.
7826 (s390_pltstub_frame_this_id): Likewise.
7827 (s390_pltstub_frame_prev_register): Likewise.
7828 (s390_pltstub_frame_unwind): Define.
7829 (s390_pltstub_frame_sniffer): New function.
7830 (struct s390_sigtramp_unwind_cache): New data structure.
7831 (s390_sigtramp_frame_unwind_cache): New function.
7832 (s390_sigtramp_frame_this_id): Likewise.
7833 (s390_sigtramp_frame_prev_register): Likewise.
7834 (s390_sigtramp_frame_unwind): Define.
7835 (s390_sigtramp_frame_sniffer): New function.
7836 (s390_frame_base_address, s390_local_base_address): New functions.
7837 (s390_frame_base): Define.
7838 (s390_unwind_pc, s390_unwind_sp): New function.
7839 (s390_push_dummy_call): Use new frame base location.
7840 (s390_unwind_dummy_id): Likewise.
7841 (s390_gdbarch_init): Remove calls to:
7842 set_gdbarch_frameless_function_invocation,
7843 set_gdbarch_deprecated_init_frame_pc,
7844 set_gdbarch_deprecated_frame_chain,
7845 set_gdbarch_deprecated_frame_init_saved_regs,
7846 set_gdbarch_deprecated_pop_frame,
7847 set_gdbarch_deprecated_init_extra_frame_info,
7848 set_gdbarch_deprecated_init_frame_pc_first,
7849 set_gdbarch_deprecated_target_read_fp,
7850 set_gdbarch_deprecated_frame_saved_pc,
7851 set_gdbarch_deprecated_saved_pc_after_call,
7852 set_gdbarch_deprecated_fp_regnum.
7853 Add calls to:
7854 set_gdbarch_in_solib_call_trampoline,
7855 frame_unwind_append_sniffer,
7856 frame_base_set_default,
7857 set_gdbarch_unwind_pc,
7858 set_gdbarch_unwind_sp.
7859 * Makefile.in (s390-tdep.o): Update dependencies.
7860
7861 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
7862 (S390_STACK_FRAME_OVERHEAD): Remove.
7863 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
7864 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
7865 (s390_promote_integer_argument): Remove.
7866 (s390_cannot_extract_struct_value_address): Remove.
7867 (s390_use_struct_convention, s390_store_struct_return): Remove.
7868 (s390_extract_return_value, s390_store_return_value): Remove.
7869 (s390_return_value_convention, s390_return_value): New functions.
7870 (is_float_singleton): Handle typedefs.
7871 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
7872 Remove, replace by ...
7873 (s390_function_arg_pass_by_reference, s390_function_arg_float,
7874 s390_function_arg_integer): ... these new functions.
7875 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
7876 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
7877 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
7878 Fill in tdep->abi.
7879 Remove calls to:
7880 set_gdbarch_deprecated_store_struct_return,
7881 set_gdbarch_deprecated_extract_return_value,
7882 set_gdbarch_deprecated_store_return_value,
7883 set_gdbarch_use_struct_convention,
7884 set_gdbarch_extract_struct_value_address,
7885 set_gdbarch_deprecated_pc_in_call_dummy,
7886 set_gdbarch_deprecated_push_arguments,
7887 set_gdbarch_deprecated_save_dummy_frame_tos,
7888 set_gdbarch_deprecated_push_return_address,
7889 set_gdbarch_deprecated_sizeof_call_dummy_words,
7890 set_gdbarch_deprecated_call_dummy_words,
7891 set_gdbarch_deprecated_dummy_write_sp.
7892 Add calls to:
7893 set_gdbarch_push_dummy_call,
7894 set_gdbarch_unwind_dummy_id,
7895 set_gdbarch_return_value.
7896
7897 * config/s390/nm-linux.h: Update comments.
7898 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
7899 (STOPPED_BY_WATCHPOINT): Redefine.
7900 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
7901 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
7902 (s390_stopped_by_watchpoint): Likewise.
7903 (watch_area_cnt): Remove.
7904 * s390-nat.c: Update comments.
7905 (watch_area): Remove typedef.
7906 Global replace watch_area by struct watch_area.
7907 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
7908 (s390_stopped_by_watchpoint): Remove pid argument,
7909 use s390_inferior_tid. Add short-cut for the no watchpoint case.
7910 (s390_fix_watch_points): Remove pid argument,
7911 use s390_inferior_tid. Recompute area spanned by watchpoints.
7912 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
7913 argument. Reimplement.
7914
7915 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
7916 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
7917 (FETCH_INFERIOR_REGISTERS): Define.
7918 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
7919 core-regset.o.
7920 * config/s390/s390x.mt: Remove.
7921 * config/s390/tm-s390.h: Remove.
7922 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
7923 (TARGET_ELF64): Remove.
7924 (SKIP_TRAMPOLINE_CODE): Do not undefine.
7925 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
7926 s390*-*-* case; always set gdb_target to s390.
7927 * regformats/reg-s390.dat: Remove control registers.
7928 * regformats/reg-s390x.dat: Likewise.
7929 * s390-tdep.h: New file.
7930 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
7931 Include "inferior.h" and "s390-tdep.h".
7932 Remove private definition of offsetof.
7933 (s390_register_u_addr): Remove.
7934 (regmap_gregset, regmap_fpregset): Define.
7935 (supply_gregset, fill_gregset): Reimplement.
7936 (supply_fpregset, fill_fpregset): Likewise.
7937 (s390_inferior_tid): New function.
7938 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
7939 (fetch_inferior_registers, store_inferior_registers): Likewise.
7940 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
7941 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
7942 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
7943 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
7944 (struct gdbarch_tdep): Define.
7945 (struct s390_register_info): Define.
7946 (s390_register_info): New variable.
7947 (s390_register_name): Reimplement.
7948 (s390_register_type): New function.
7949 (s390_register_raw_size, s390x_register_raw_size): Remove.
7950 (s390_cannot_fetch_register): Remove.
7951 (s390_register_byte): Remove.
7952 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
7953 (s390_dwarf_regmap): New variable.
7954 (s390_dwarf_reg_to_regnum): New function.
7955 (s390_stab_reg_to_regnum): Remove.
7956 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
7957 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
7958 (s390_convert_register_p): Likewise.
7959 (s390_register_to_value, s390_value_to_register): Likewise.
7960 (s390_register_reggroup_p): Likewise.
7961 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
7962 s390_gregset, s390x_gregset, s390_fpregset): New variables.
7963 (s390_supply_regset, s390_regset_from_core_section): New functions.
7964 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
7965 (S390_FPR_SIZE): Likewise.
7966 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
7967 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
7968 (S390_NUM_GPRS): Move here from tm-s390.h.
7969 (S390_NUM_FPRS): Likewise.
7970 (s390_in_function_epilogue_p): New function.
7971 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
7972 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
7973 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
7974 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
7975 Replace S390_FP_REGNUM by S390_SP_REGNUM.
7976 Remove calls to:
7977 set_gdbarch_deprecated_max_register_raw_size,
7978 set_gdbarch_deprecated_max_register_virtual_size,
7979 set_gdbarch_deprecated_register_byte,
7980 set_gdbarch_cannot_fetch_register,
7981 set_gdbarch_cannot_store_register,
7982 set_gdbarch_deprecated_register_size,
7983 set_gdbarch_deprecated_register_raw_size,
7984 set_gdbarch_deprecated_register_virtual_size,
7985 set_gdbarch_deprecated_register_virtual_type,
7986 set_gdbarch_deprecated_register_bytes.
7987 Add calls to:
7988 set_gdbarch_num_pseudo_regs,
7989 set_gdbarch_register_type,
7990 set_gdbarch_convert_register_p,
7991 set_gdbarch_register_to_value,
7992 set_gdbarch_value_to_register,
7993 set_gdbarch_register_reggroup_p,
7994 set_gdbarch_regset_from_core_section,
7995 set_gdbarch_pseudo_register_read,
7996 set_gdbarch_pseudo_register_write,
7997 set_gdbarch_in_function_epilogue_p.
7998 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
7999 (s390_tdep_h): New variable.
8000
8001 2004-02-17 Jim Blandy <jimb@redhat.com>
8002
8003 * findvar.c (value_from_register): If the type has no length, just
8004 return an acceptable value --- don't report an internal error.
8005
8006 * stabsread.c (read_type): If we find any type numbers that are
8007 forward references, complain if the references aren't resolved by
8008 the time we're finished reading.
8009 (cleanup_undefined_types): Make error message more appropriate for
8010 a complaint.
8011
8012 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8013
8014 * Makefile.in (defs_h): Remove dependency on progress_h.
8015 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8016 progress.h.
8017 * main.c (captured_main): Delete use of START_PROGRESS and
8018 END_PROGRESS.
8019
8020 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8021
8022 * objfiles.c (terminate_minimal_symbol_table): Add back
8023 initialization of MSYMBOL_TYPE.
8024
8025 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8026
8027 Committed by Andrew Cagney.
8028 * Makefile.in (ia64_tdep_h): New macro.
8029 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8030 (ia64-tdep.o): Likewise.
8031 * ia64-tdep.h: New file.
8032 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8033 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8034 (ia64_aix_sigcontext_register_address): Likewise.
8035 (ia64_linux_getunwind_table): Delete declaration.
8036 * ia64-linux-tdep.c: Likewise.
8037
8038 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8039
8040 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8041 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8042 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8043
8044 2004-02-17 Andrew Cagney <cagney@redhat.com>
8045
8046 * symtab.c (skip_prologue_using_sal): New function.
8047 * symtab.h (skip_prologue_using_sal): Declare.
8048 * frv-tdep.c: Include "symtab.h".
8049 (skip_prologue_using_sal): Delete function.
8050 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8051 * rs6000-tdep.c (refine_prologue_limit): Mention
8052 skip_prologue_using_sal.
8053 * ia64-tdep.c (refine_prologue_limit): Ditto.
8054 * Makefile.in: Update dependencies.
8055
8056 2004-02-16 Andrew Cagney <cagney@redhat.com>
8057
8058 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8059 START_INFERIOR_TRAPS_EXPECTED.
8060 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8061 START_INFERIOR_TRAPS_EXPECTED.
8062 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8063 Delete macro.
8064 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8065 macro, moved to "nm-osf.h". Update copyright.
8066 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8067 update copyright.
8068
8069 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8070 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8071 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8072 frameless_look_for_prologue.
8073 * frame.h (legacy_frameless_look_for_prologue): Rename
8074 frameless_look_for_prologue.
8075 * gdbarch.h, gdbarch.c: Re-generate.
8076 * sh64-tdep.c (sh64_gdbarch_init): Update.
8077 * sh-tdep.c (sh_gdbarch_init): Update.
8078 * s390-tdep.c (s390_gdbarch_init): Update.
8079 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8080 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8081 * m68k-tdep.c (m68k_gdbarch_init): Update.
8082 (delta68_frame_args_address): Update.
8083 * m32r-tdep.c (m32r_gdbarch_init): Update.
8084 * hppa-tdep.c (hppa_gdbarch_init): Update.
8085 * h8300-tdep.c (h8300_gdbarch_init): Update.
8086 * frv-tdep.c (frv_gdbarch_init): Update.
8087 (frv_frameless_function_invocation): Update.
8088 * cris-tdep.c (cris_gdbarch_init): Update.
8089 (cris_frameless_function_invocation): Update.
8090 * avr-tdep.c (avr_gdbarch_init): Update.
8091 * arm-tdep.c (arm_gdbarch_init): Update.
8092 * stack.c (frame_info): Update, call predicate.
8093 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8094 * frame.c (legacy_get_prev_frame): Update, call predicate..
8095 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8096 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8097 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8098 invocation.
8099 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8100 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8101 * vax-tdep.c (vax_gdbarch_init): Ditto.
8102
8103 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8104 function.
8105
8106 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8107
8108 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8109 initializations.
8110
8111 2004-02-16 Andrew Cagney <cagney@redhat.com>
8112
8113 * tui/tui-windata.c: Include "gdb_string.h".
8114 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8115 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8116 * Makefile.in: Update dependencies.
8117
8118 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8119
8120 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8121 * infrun.c: Include "gdb_assert.h".
8122 (singlestep_ptid, saved_singlestep_ptid)
8123 (stepping_past_singlestep_breakpoint): New variables.
8124 (resume): Set singlestep_ptid. Check for singlestep thread
8125 hop.
8126 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8127 (handle_inferior_event): Handle singlestep thread hop.
8128
8129 2004-02-16 Andrew Cagney <cagney@redhat.com>
8130
8131 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8132 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8133 (dwarf2_frame_init_reg): Ditto.
8134
8135 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8136 suggested by Joshua Neuheisel
8137
8138 * configure.in: Always check for curses, including pdcurses.
8139 Warn, instead of error, when no curses are found. Enable TUI when
8140 curses is available.
8141 * configure: Re-generate.
8142
8143 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8144
8145 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8146 sh_sh4_register_convert_to_virtual.
8147 (sh_register_convert_to_raw): Rename from
8148 sh_sh4_register_convert_to_raw.
8149 (sh_pseudo_register_read): Accomodate above name change.
8150 (sh_pseudo_register_write): Ditto.
8151
8152 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8153
8154 * sh-tdep.c (sh_generic_register_name): Remove.
8155 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8156
8157 2004-02-15 Andrew Cagney <cagney@redhat.com>
8158
8159 * configure.in (build_warnings): Add -Wunused-function.
8160 * configure: Re-generate.
8161
8162 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8163 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8164
8165 * procfs.c (procfs_init_inferior): Assume that
8166 START_INFERIOR_TRAPS_EXPECTED is defined.
8167 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8168 * config/ns32k/tm-nbsd.h: Delete file,
8169 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8170
8171 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8172 * config/vax/tm-vax.h: Delete file.
8173
8174 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8175 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8176 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8177 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8178 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8179 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8180 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8181
8182 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8183
8184 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8185 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8186 (struct dwarf2_frame_ops): New.
8187 (dwarf2_frame_default_init_reg): New function, based on
8188 dwarf2_frame_init_reg.
8189 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8190 (dwarf2_frame_init_reg): Call architecture-specific function.
8191 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8192 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8193 instead of dwarf2_frame_data.
8194 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8195 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8196
8197 2004-02-15 Andrew Cagney <cagney@redhat.com>
8198
8199 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8200 register_gdbarch_swap.
8201 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8202 * f-lang.c (_initialize_f_language): Update, use
8203 DEPRECATED_REGISTER_GDBARCH_SWAP.
8204 * remote.c (_initialize_remote): Ditto.
8205 * regcache.c (_initialize_regcache): Ditto.
8206 * parse.c (_initialize_parse): Ditto.
8207 * infrun.c (_initialize_infrun): Ditto.
8208 * mi/mi-main.c (_initialize_mi_main): Ditto.
8209 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8210
8211 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8212 poking .cacheable directly.
8213 * symfile.c (symfile_bfd_open): Ditto.
8214
8215 * Makefile.in: Update all dependencies.
8216
8217 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8218 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8219 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8220 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8221 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8222
8223 2004-02-14 Andrew Cagney <cagney@redhat.com>
8224
8225 * arch-utils.c (legacy_convert_register_p): Check
8226 DEPRECATED_REGISTER_CONVERTIBLE_P.
8227 * findvar.c (value_of_register): Ditto.
8228
8229 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8230 * gdbarch.h, gdbarch.c: Re-generate.
8231 * arch-utils.c (deprecated_register_convertible_not): Delete.
8232 * arch-utils.h (deprecated_register_convertible_not): Delete.
8233 * mi/mi-main.c (get_register): Update. Update copyright.
8234 * infcmd.c (default_print_registers_info): Update.
8235
8236 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8237 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8238 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8239 * gdbarch.h, gdbarch.c: Re-generate.
8240 * frame.c (deprecated_get_next_frame_hack): Delete function.
8241 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8242 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8243 Update.
8244 * infcall.c (call_function_by_hand): Update.
8245
8246 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8247
8248 * symfile.c (init_entry_point_info, entry_point_address): Move
8249 from here...
8250 * objfiles.c (init_entry_point_info, entry_point_address):..to
8251 here.
8252 * symfile.h (init_entry_point_info, entry_point_address): Remove
8253 prototypes.
8254 * objfiles.h (init_entry_point_info, entry_point_address):Add
8255 prototypes.
8256 * cris-tdep.c: Remove include of symfile.h. Add include of
8257 objfiles.h.
8258 * infcall.c: Ditto.
8259 * mcore-tdep.c: Ditto.
8260 * mn10300-tdep.c: Ditto.
8261 * sh64-tdep.c: Ditto.
8262 * v850-tdep.c: Ditto.
8263 * arm-tdep.c: Remove include of symfile.h.
8264 * blockframe.c: Ditto.
8265 * coffread.c: Ditto.
8266 * dbxread.c: Ditto.
8267 * dwarf2read.c: Ditto.
8268 * dwarfread.c: Ditto.
8269 * frv-tdep.c: Ditto.
8270 * ia64-tdep.c: Ditto.
8271 * mdebugread.c: Ditto.
8272 * mipsread.c: Ditto.
8273 * rs6000-tdep.c: Ditto.
8274 * s390-tdep.c: Ditto.
8275 * sh-tdep.c: Ditto.
8276 * xstormy16-tdep.c: Ditto.
8277 * gdbarch.sh: Remove include of symfile.h.
8278 * gdbarch.c: Regenerate.
8279 * solib-irix.c (enable_break): Use entry_point_address().
8280 Add comment about include file.
8281 * xcoffread.c: Add comment about include file.
8282 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8283 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8284 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8285 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8286 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8287
8288 2004-02-13 Andrew Cagney <cagney@redhat.com>
8289
8290 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8291 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8292 copyright.
8293 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8294
8295 2004-02-12 Fred Fish <fnf@redhat.com>
8296
8297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8298 set_gdbarch_store_return_value.
8299
8300 2004-02-12 Andrew Cagney <cagney@redhat.com>
8301
8302 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8303 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8304 (interrupt_query): Ditto.
8305 (ofunc): Delete unused variable.
8306 * cris-tdep.c (cris_abi): Delete unused function.
8307 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8308 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8309 (cris_get_asr_quick_shift_steps): Ditto.
8310 (cris_skip_prologue_frameless_p): Ditto.
8311 * arm-tdep.c (arm_push_return_address): Delete unused function.
8312 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8313 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8314 * s390-tdep.c (s390_function_start): Delete unused function.
8315
8316 2004-02-12 Andrew Cagney <cagney@redhat.com>
8317
8318 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8319 gdbarch.h, gdbarch.c: Re-generate.
8320 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8321 to generic_prologue_frameless_p.
8322 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8323 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8324
8325 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8326
8327 * mips-linux-tdep.c: Include "frame.h".
8328 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8329 (mips_linux_skip_resolver): New functions.
8330 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8331 and set_gdbarch_in_solib_call_trampoline.
8332 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8333 to after set_gdbarch_in_solib_return_trampoline. Only set the
8334 solib hooks to mips16 functions if the OS ABI is unknown.
8335 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8336 including "config/tm-linux.h".
8337 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8338 * Makefile.in (mips-linux-tdep.o): Update.
8339
8340 2004-02-11 David Carlton <carlton@kealia.com>
8341
8342 * linespec.c (decode_compound): Only look for a class symbol when
8343 considering all but the rightmost component.
8344
8345 2004-02-11 Andrew Cagney <cagney@redhat.com>
8346
8347 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8348 abi code are are separatly grouped.
8349
8350 2004-02-11 Andrew Cagney <cagney@redhat.com>
8351
8352 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8353 * gdbarch.h, gdbarch.c: Re-generate.
8354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8355 * v850-tdep.c (v850_gdbarch_init): Update.
8356 * sh64-tdep.c (sh64_gdbarch_init): Update.
8357 * sh-tdep.c (sh_gdbarch_init): Update.
8358 * s390-tdep.c (s390_gdbarch_init): Update.
8359 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8360 * mips-tdep.c (mips_gdbarch_init): Update.
8361 * mcore-tdep.c (mcore_gdbarch_init): Update.
8362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8363 * m32r-tdep.c (m32r_gdbarch_init): Update.
8364 * ia64-tdep.c (ia64_gdbarch_init): Update.
8365 * hppa-tdep.c (hppa_gdbarch_init): Update.
8366 * h8300-tdep.c (h8300_gdbarch_init): Update.
8367 * frv-tdep.c (frv_gdbarch_init): Update.
8368 * d10v-tdep.c (d10v_gdbarch_init): Update.
8369 * cris-tdep.c (cris_gdbarch_init): Update.
8370 * avr-tdep.c (avr_gdbarch_init): Update.
8371 * arm-tdep.c (arm_gdbarch_init): Update.
8372 * alpha-tdep.c (alpha_gdbarch_init): Update.
8373
8374 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8375
8376 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8377 comma.
8378 (sh_sh4al_dsp_register_name): Ditto.
8379
8380 2004-02-10 Andrew Cagney <cagney@redhat.com>
8381
8382 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8383 (mips_init_frame_pc_first): Delete function.
8384 (mips_frame_saved_pc): Delete function.
8385 (mips_frame_chain): Delete function.
8386 (mips_init_extra_frame_info): Delete function.
8387 (mips_xfer_register): Delete unused variable "reg".
8388 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8389 (mips_n32n64_return_value): Delete unused variable "reg".
8390 (mips_n32n64_return_value): Delete unused variable "pos".
8391 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8392 (mips_o32_return_value): Delete unused variable "pos".
8393 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8394 (mips_print_fp_register): Delete unused variable "namelen"
8395 (mips_print_fp_register): Delete unused variable "flt2"
8396 (get_frame_pointer): Delete function.
8397 (cached_proc_desc): Delete static variable.
8398 (mips_pop_frame): Delete function.
8399 (mips_find_saved_regs): Delete function.
8400 (mips_get_saved_register): Delete function.
8401 (mips_saved_pc_after_call): Delete function.
8402 (SIGFRAME_BASE): Delete macro.
8403 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8404 (SIGFRAME_PC_OFF): Delete macro.
8405 (SIGFRAME_REGSAVE_OFF): Delete macro.
8406 (mips_dump_tdep): Do not print deleted macro definitions.
8407
8408 2004-02-10 Andrew Cagney <cagney@redhat.com>
8409
8410 * Makefile.in (SFILES): Remove explictly listed tui files.
8411 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8412
8413 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8414
8415 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8416 to use paddr functions to format ia64 addresses and long values.
8417 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8418 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8419 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8420 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8421 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8422
8423 2004-02-10 Andrew Cagney <cagney@redhat.com>
8424
8425 * defs.h: Do not include "tui.h".
8426 * gdb_curses.h: New file.
8427 * tui/tui-hooks.h: New file.
8428 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8429 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8430 (tui_initialize_io): Delete declaration.
8431 (tui_initialize_readline: Delete redundant declaration.
8432 (struct tui_point): Delete definition.
8433 * tui/tui-data.h (struct tui_point): Define.
8434 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8435 * utils.c: Include "tui/tui.h".
8436 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8437 * printcmd.c [TUI]: Include "tui/tui.h".
8438 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8439 * tui/tui-command.c: Include "gdb_curses.h".
8440 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8441 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8442 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8443 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8444 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8445 * Makefile.in: Update all dependencies.
8446 (tui_hooks_h, gdb_curses_h): Define.
8447 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8448
8449 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
8450
8451 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8452 auxf2. Add comments about some other rarely used fields.
8453
8454 2004-02-10 Andrew Cagney <cagney@redhat.com>
8455
8456 * Makefile.in (init.c): Fix script removing duplicates. Problem
8457 reported by Peter Schauer.
8458
8459 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8460
8461 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8462 obstack_specify_allocation.
8463 * objfiles.c (allocate_objfile): Ditto.
8464 * solib-sunos.c (solib_add_common_symbols)
8465 (allocate_rt_common_objfile): Ditto.
8466 * symfile.c (reread_symbols): Ditto.
8467 * gdb_obstack.h: Add comment.
8468
8469 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8470
8471 * linespec.c (decode_line_1, locate_first_half)
8472 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8473 commented out code.
8474
8475 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
8476
8477 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8478 obstack_free.
8479
8480 2004-02-09 Andrew Cagney <cagney@redhat.com>
8481
8482 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8483 fails, try find_pc_section. Fix PR c++/1267.
8484 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8485 instead of find_pc_mapped_section.
8486 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8487 not default to the section containing PC. Fix PR symtab/1519.
8488
8489 2004-02-09 Andrew Cagney <cagney@redhat.com>
8490
8491 * Makefile.in (mips-tdep.o): Update dependencies.
8492 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8493 "trad-frame.h".
8494 (mips_unwind_pc): Return the pseudo PC register.
8495 (mips_unwind_dummy_id): New function.
8496 (mips16_fetch_instruction): New function.
8497 (mips32_fetch_instruction): New function.
8498 (struct mips_frame_cache): Define.
8499 (mips_mdebug_frame_cache): New function.
8500 (mips_mdebug_frame_this_id): New function.
8501 (mips_mdebug_frame_prev_register): New function.
8502 (mips_mdebug_frame_unwind): Define.
8503 (mips_mdebug_frame_sniffer): New function.
8504 (mips_mdebug_frame_base_address): New function.
8505 (mips_mdebug_frame_base): Define.
8506 (mips_mdebug_frame_base_sniffer): New function.
8507 (mips_gdbarch_init): Append unwind and base sniffers. Set
8508 unwind_dummy_id.
8509
8510 2004-02-08 Andrew Cagney <cagney@redhat.com>
8511
8512 * frame.c: Print both the register number and name.
8513
8514 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
8515 and a sed into a single sed. Make .c and .o patterns more robust.
8516 (OBS): Delete.
8517 (INIT_FILES): Replace OBS with COMMON_OBS.
8518 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
8519
8520 2004-02-08 Mark Kettenis <kettenis@gnu.org>
8521
8522 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
8523 the PT_WCOOKIE request.
8524
8525 2004-02-08 Andrew Cagney <cagney@redhat.com>
8526
8527 * mips-tdep.c (mips_unwind_pc): New function.
8528 (mips_gdbarch_init): Set mips_unwind_pc.
8529
8530 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
8531 (get_frame_id): Allow the UNKNOWN_FRAME.
8532 (frame_register_unwind, get_frame_type): Ditto.
8533
8534 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
8535 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
8536 unwind_dummy_id indicates a legacy frame.
8537
8538 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
8539 * configure: Re-generate.
8540
8541 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
8542 methods.
8543
8544 2004-02-08 Andrew Cagney <cagney@redhat.com>
8545
8546 * configure.in (CONFIG_ALL): Set to Makefile target, and not
8547 makefile macro.
8548 * configure: Re-generate.
8549 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
8550 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
8551 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
8552 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
8553 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
8554 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
8555 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
8556 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
8557 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
8558 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
8559
8560 2004-02-07 Andrew Cagney <cagney@redhat.com>
8561
8562 * Makefile.in: Update all dependencies.
8563
8564 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
8565 * configure: Re-generate.
8566 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
8567 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
8568 (COMMON_OBS): Add "main.o" and "annotate.o".
8569 (ANNOTATE_OBS): Delete.
8570 (OBS): Remove ANNOTATE_OBS.
8571 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
8572 CONFIG_INITS.
8573 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
8574 against CONFIG_OBS and "main.o".
8575 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
8576 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
8577
8578 * tui/tui-command.c: Include "gdb_string.h", delete register
8579 attribute, use ISO-C function signatures.
8580 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
8581 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8582 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
8583 * tui/tui.c: Ditto.
8584
8585 * tui/tui-command.c: Change variable and function names to lower
8586 case.
8587 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
8588 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
8589 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8590 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8591 * tui/tui-winsource.c, tui/tui.c: Ditto.
8592
8593 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8594
8595 * buildsym.c (free_pending_blocks, finish_block)
8596 (record_pending_block, make_blockvector, end_symtab): Replace
8597 symbol_obstack with objfile_obstack.
8598 * coffread.c (process_coff_symbol, coff_read_struct_type)
8599 (coff_read_enum_type): Ditto.
8600 * cp-namespace.c (initialize_namespace_symtab)
8601 (check_one_possible_namespace_symbol): Ditto.
8602 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
8603 (dwarf2_symbol_mark_computed): Ditto.
8604 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
8605 * elfread.c (elf_symtab_read): Ditto.
8606 * hpread.c (hpread_symfile_init, hpread_symfile_init)
8607 (hpread_read_enum_type, hpread_read_function_type)
8608 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
8609 Ditto.
8610 * jv-lang.c (get_java_class_symtab, add_class_symbol)
8611 (java_link_class_type): Ditto.
8612 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
8613 (new_symbol): Ditto.
8614 * minsyms.c (install_minimal_symbols): Ditto.
8615 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
8616 (terminate_minimal_symbol_table): Replace symbol_obstack with
8617 objfile_obstack.
8618 (free_objfile): Remove freeing of symbol_obstack.
8619 * objfiles.h: Remove symbol_obstack field.
8620 * pa64solib.c (add_to_solist): Replace symbol_obstack with
8621 objfile_obstack.
8622 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8623 symbol_obstack.
8624 (solib_add_common_symbols): Replace symbol_obstack with
8625 objfile_obstack.
8626 * somsolib.c (som_solib_add): Ditto.
8627 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8628 (common_block_start, common_block_end): Ditto.
8629 * symfile.c (reread_symbols): Remove freeing and init of
8630 symbol_obstack.
8631 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
8632 * symfile.h: Update comment.
8633 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
8634 stats printing.
8635 * symtab.c (symbol_set_names): Replace symbol_obstack with
8636 objfile_obstack.
8637 * symtab.h (struct general_symbol_info, struct minimal_symbol):
8638 Update comments.
8639 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
8640 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
8641 objfile_obstack.
8642
8643 2004-02-07 Andrew Cagney <cagney@redhat.com>
8644
8645 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
8646 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
8647 fields and variables.
8648 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
8649 (m_beInvisible): Delete macro.
8650 * tui/tui-data.h: Fix case case fields and variables.
8651 (m_genWinPtrIsNull): Delete macro.
8652 (tui_win_list): Rename winList.
8653 (TUI_SRC_WIN): Rename srcWin.
8654 (TUI_DISASM_WIN): Rename disassemWin.
8655 (TUI_DATA_WIN): Rename dataWin.
8656 (TUI_CMD_WIN): Rename cmdWin.
8657 (m_genWinPtrNotNull): Delete macro.
8658 (m_winPtrIsNull): Delete macro.
8659 (m_winPtrNotNull): Delete macro.
8660 (tui_win_is_source_type): Replace m_winIsSourceType
8661 (tui_win_is_auxillary): Replace m_winIsAuzillary.
8662 (tui_win_has_locator): Replace m_hasLocator.
8663 (tui_set_win_highlight): Replace m_setWinHighlightOn and
8664 m_setWinHighlightOff.
8665 * tui/tui-data.c: Update references.
8666 (tui_win_is_source_type, tui_set_win_highlight): New functions.
8667 (tui_win_has_locator, tui_win_is_auxillary): New functions.
8668 * tui/tui-command.c, tui/tui-disasm.c: Update references.
8669 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
8670 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
8671 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8672 * tui/tui-winsource.c, tui/tui.c: Ditto.
8673
8674 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8675
8676 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
8677 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
8678 StackGhost.
8679
8680 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
8681 variable `i6' to `i7'.
8682 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8683
8684 2004-02-07 Andrew Cagney <cagney@redhat.com>
8685
8686 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
8687 (TuiPoint, TuiPointPtr): Ditto.
8688 (TuiStatus, TuiStatusPtr): Ditto.
8689 (TuiWinType, TuiWinTypePtr): Ditto.
8690 (struct tui_point): Rename _TuiPoint.
8691 (tui_get_low_disassembly_address): Rename
8692 tuiGetLowDisassemblyAddress.
8693 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
8694 (tuiFree): Delete declaration.
8695 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
8696 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
8697 * tui/tui.c (tuiFree): Delete function.
8698 * cli/cli-cmds.c (disassemble_command): Update references.
8699 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
8700 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8701 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
8702 * tui/tui-winsource.c: Ditto.
8703
8704 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8705
8706 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
8707 coffstab_build_psymtabs, elfstab_build_psymtabs)
8708 (stabsect_build_psymtabs): Replace psymbol_obstack with
8709 objfile_obstack.
8710 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
8711 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
8712 Ditto.
8713 * dwarfread.c (scan_compilation_units): Ditto.
8714 * elfread.c (elfstab_offset_sections): Ditto.
8715 * hppa-tdep.c (read_unwind_info): Ditto.
8716 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
8717 (hpread_end_psymtab): Ditto.
8718 * mdebugread.c (mdebug_build_psymtabs, add_pending)
8719 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
8720 Ditto.
8721 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8722 * objfiles.c (add_to_objfile_sections)
8723 (build_objfile_section_table): Ditto.
8724 (allocate_objfile): Remove init of psymbol_obstack.
8725 (free_objfile): Remove freeing of psymbol_obstack.
8726 * objfiles.h (struct objfile): Remove field
8727 psymbol_obstack. Update comments.
8728 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
8729 psymbol_obstack with objfile_obstack.
8730 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8731 psymbol_obstack.
8732 * somread.c (som_symfile_offsets, init_import_symbols)
8733 (init_export_symbols): Replace psymbol_obstack with
8734 objfile_obstack.
8735 * somsolib.c (som_solib_add_solib_objfile): Ditto.
8736 * symfile.c (default_symfile_offsets, syms_from_objfile)
8737 (reread_symbols): Remove freeing and init of psymbol_obstack.
8738 (cashier_psymtab): Update comment.
8739 * symmisc.c (print_objfile_statistics): Don't report stats for
8740 psymbol obstack.
8741 * symtab.h (struct general_symbol_info, struct partial_symtab):
8742 Update comments.
8743 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
8744 (xcoff_symfile_offsets): Replace psymbol_obstack with
8745 objfile_obstack.
8746
8747 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8748
8749 * objfiles.h (struct objfile): Add objfile_obstack field.
8750 Remove type_obstack field.
8751
8752 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
8753 read_structure_scope read_enumeration, new_symbol): Replace
8754 type_obstack with objfile_obstack.
8755 * dwarfread.c (struct_type, enum_type): Ditto.
8756 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
8757 (lookup_fundamental_type): Ditto.
8758 * gdbtypes.h (TYPE_ALLOC): Ditto.
8759 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
8760 (hpread_read_doc_function_type, hpread_read_struct_type)
8761 (fix_static_member_physnames, hpread_read_array_type)
8762 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8763 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
8764 (java_link_class_type): Ditto.
8765 * mdebugread.c (parse_type): Ditto.
8766 * objfiles.c (allocate_objfile, free_objfile): Ditto.
8767 * solib-sunos.c (solib_add_common_symbols): Ditto.
8768 * stabsread.c (define_symbol, read_type, read_member_functions,
8769 read_cpp_abbrev, read_one_struct_field): Ditto.
8770 * symfile.c (reread_symbols): Ditto.
8771 * symmisc.c (print_objfile_statistics): Ditto.
8772
8773 2004-02-07 Andrew Cagney <cagney@redhat.com>
8774
8775 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
8776 (tui_exec_info_content): Rename TuiExecInfoContent.
8777 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
8778 (TuiWinInfo, TuiWinInfoPtr): Ditto.
8779 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
8780 (TuiList, TuiListPtr): Ditto.
8781 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
8782 (TuiDataType, TuiDataTypePtr): Ditto.
8783 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
8784 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
8785 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
8786 (TuiSourceElement, TuiSourceElementPtr): Ditto.
8787 (TuiDataElement, TuiDataElementPtr): Ditto.
8788 (TuiWinElement, TuiWinElementPtr): Ditto.
8789 (TuiDataInfo, TuiDataInfoPtr): Ditto.
8790 (TuiCommandElement, TuiCommandElementPtr): Ditto.
8791 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
8792 (TuiWhichElement, TuiWhichElementPtr): Ditto.
8793 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
8794 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
8795 * tui/tui-command.c, tui/tui-data.c: Update references.
8796 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
8797 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8798 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8799 * tui/tui-winsource.c, tui/tui.c: Ditto.
8800
8801 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8802
8803 * dwarf2-frame.h: Update copyright.
8804 (enum dwarf2_frame_reg_rule): New.
8805 (struct dwarf2_frame_state_reg): New.
8806 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
8807 * dwarf2-frame.c: Update copyright.
8808 (enum dwarf2_reg_rule): Remove.
8809 (struct dwarf2_frame_state): Remove defenition of `struct
8810 dwarf2_frame_state_reg'.
8811 (read_reg): Call get_frame_arch to get the architecture instead of
8812 using CURRENT_GDBARCH.
8813 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
8814 DWARF2_FRAME_.
8815 (dwarf2_frame_init_reg): New function.
8816 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
8817 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
8818 initialize the register state. Prefix old `enum dwarf2_reg_rule'
8819 tags with DWARF2_FRAME_.
8820 (dwarf2_frame_prev_register): Call get_frame_arch to get the
8821 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
8822 dwarf2_reg_rule' tags with DWARF2_FRAME_.
8823
8824 2004-02-06 Andrew Cagney <cagney@redhat.com>
8825
8826 * tui/tui-data.h (struct tui_list): Rename _TuiList.
8827 (enum tui_data_type): Rename _TuiDataType.
8828 (struct tui_layout_def): Rename _TuiLayoutDef.
8829 (struct tui_source_element): Rename _TuiSourceElement.
8830 (struct tui_data_element): Rename _TuiDataElement.
8831 (struct tui_command_element): Rename _TuiCommandElement.
8832 (struct tui_locator_element): Rename _TuiLocatorElement.
8833 (union tui_which_element): Define.
8834 (struct tui_win_element): Rename _TuiWinElement.
8835 (struct tui_data_info): Rename _TuiDataInfo.
8836 (struct tui_source_info): Rename _TuiSourceInfo.
8837 (struct tui_command_info): Rename _TuiCommandInfo.
8838 (tui_initialize_static_data): Rename initializeStaticData.
8839 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
8840 (tui_alloc_win_info): Rename allocWinInfo.
8841 (tui_init_generic_part): Rename initGenericPart.
8842 (tui_init_win_info): Rename initWinInfo.
8843 (tui_alloc_content): Rename allocContent.
8844 (tui_add_content_elements): Rename addContentElements.
8845 (tui_init_content_element): Rename initContentElement.
8846 (tui_free_window): Rename freeWindow.
8847 (tui_free_win_content): Rename freeWinContent.
8848 (tui_free_data_content): Rename freeDataContent.
8849 (tui_free_all_source_wins_content): Rename
8850 freeAllSourceWinsContent.
8851 (tui_del_window): Rename tuiDelWindow.
8852 (tui_del_data_windows): Rename tuiDelDataWindows.
8853 (tui_partial_win_by_name): Rename partialWinByName.
8854 (tui_win_name): Rename winName.
8855 (tui_current_layout): Rename currentLayout.
8856 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
8857 (tui_term_height): Rename termHeight.
8858 (tui_set_term_height_to): Rename setTermHeightTo.
8859 (tui_term_width): Rename termWidth.
8860 (tui_set_term_width_to): Rename setTermWidthTo.
8861 (tui_set_gen_win_origin): Rename setGenWinOrigin.
8862 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
8863 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
8864 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
8865 (tui_source_windows): Rename sourceWindows.
8866 (tui_clear_source_windows): Rename clearSourceWindows.
8867 (tui_clear_source_windows_detail): Rename
8868 clearSourceWindowsDetail.
8869 (tui_clear_win_detail): Rename clearWinDetail.
8870 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
8871 (tui_default_tab_len): Rename tuiDefaultTabLen.
8872 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
8873 (tui_win_with_focus): Rename tuiWinWithFocus.
8874 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
8875 (tui_layout_def): Rename tuiLayoutDef.
8876 (tui_win_resized): Rename tuiWinResized.
8877 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
8878 (tui_next_win): Rename tuiNextWin.
8879 (tui_prev_win): Rename tuiPrevWin.
8880 (tui_add_to_source_windows): Rename addToSourceWindows.
8881 * tui/tui-winsource.c, tui/tui-win.c: Update references.
8882 * tui/tui-layout.c, tui/tui-source.c: Ditto.
8883 * tui/tui-stack.c, tui/tui-io.c: Ditto.
8884 * tui/tui.c, tui/tui-data.c: Ditto.
8885 * tui/tui-interp.c, tui/tui-data.c: Ditto.
8886 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
8887
8888 * tui/tui-source.h: Update copyright. Include "tui-data.h".
8889 (struct symtab): Declare.
8890 (tui_set_source_content): Rename tuiSetSourceContent.
8891 (tui_show_symtab_source): Rename tuiShowSource.
8892 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
8893 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
8894 * tui/tui-source.c: Update copyright. Update references.
8895 * tui/tui-win.c, tui/tui-winsource.c: Update references.
8896 * tui/tui-stack.c: Update references.
8897
8898 * tui/tui-win.h: Update copyright. Include "tui-data.h".
8899 (struct tui_win_info): Declare.
8900 (tui_scroll_forward): Rename tuiScrollForward.
8901 (tui_scroll_backward): Rename tuiScrollBackward.
8902 (tui_scroll_left): Rename tuiScrollLeft.
8903 (tui_scroll_right): Rename tuiScrollRight.
8904 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
8905 (tui_resize_all): Rename tuiResizeAll.
8906 (tui_refresh_all_win): Rename tuiRefreshAll.
8907 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
8908 * tui/tui-layout.c, * tui/tui-io.c: Update references.
8909 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
8910 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
8911
8912 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
8913 (tui_erase_data_content): Rename tuiEraseDataContent.
8914 (tui_display_all_data): Rename tuiDisplayAllData.
8915 (tui_check_data_values): Rename tuiCheckDataValues.
8916 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
8917 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
8918 (tui_first_data_element_no_in_line): Rename
8919 tuiFirstDataElementNoInLine.
8920 (tui_delete_data_content_windows): Rename
8921 tuiDeleteDataContentWindows.
8922 (tui_refresh_data_win): Rename tuiRefreshDataWin.
8923 (tui_display_data_from): Rename tuiDisplayDataFrom.
8924 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
8925 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
8926 * tui/tui-win.c, tui/tui-regs.c: Update references.
8927 * tui/tui-layout.c, tui/tui.c: Update references.
8928
8929 * tui/tui-wingeneral.h: Update copyright.
8930 (m_allBeVisible): Delete macro.
8931 (m_allBeInvisible): Delete macro.
8932 (struct tui_gen_win_info): Declare.
8933 (struct tui_win_info): Declare.
8934 (tui_unhighlight_win): Rename unhighlightWin.
8935 (tui_make_visible, tui_make_invisible): Replace makeVisible.
8936 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
8937 (tui_make_window): Rename makeWindow.
8938 (tui_copy_win): Rename copyWin.
8939 (tui_box_win): Rename boxWin.
8940 (tui_highlight_win): Rename highlightWin.
8941 (tui_check_and_display_highlight_if_needed): Rename
8942 checkAndDisplayHighlightIfNeeded.
8943 (tui_refresh_all): Rename refreshAll.
8944 (tui_delete_win): Rename tuiDelwin.
8945 (tui_refresh_win): Rename tuiRefreshWin.
8946 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
8947 (tui_make_visible, tui_make_invisible): New functions.
8948 (tui_make_all_visible, tui_make_all_invisible): New functions.
8949 (make_all_visible): Rename makeAllVisible.
8950 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
8951 * tui/tui-data.c, tui/tui-winsource.c: Update references.
8952 * tui/tui-windata.c, tui/tui-win.c: Update references.
8953 * tui/tui-regs.c, tui/tui-layout.c: Update references.
8954 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
8955
8956 2004-02-06 Mark Kettenis <kettenis@gnu.org>
8957
8958 * proc-api.c (write_with_trace): Initialize local variable to
8959 silence compiler warning.
8960
8961 2004-02-06 Andrew Cagney <cagney@redhat.com>
8962
8963 * tui/tui-source.h: Do not include "defs.h".
8964 (struct tui_win_info): Declare.
8965 (tui_set_source_content_nil): Declare.
8966 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
8967 (union tui_line_or_address): Rename _TuiLineOrAddress.
8968 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
8969 (tui_update_source_window): Rename tuiUpdateSourceWindow.
8970 (tui_update_source_window_as_is): Rename
8971 tuiUpdateSourceWindowAsIs.
8972 (tui_update_source_windows_with_addr): Rename
8973 tuiUpdateSourceWindowsWithAddr.
8974 (tui_update_source_windows_with_line): Rename
8975 tuiUpdateSourceWindowsWithLine.
8976 (tui_clear_source_content): Rename tuiClearSourceContent.
8977 (tui_erase_source_content): Rename tuiEraseSourceContent.
8978 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
8979 (tui_show_source_content): Rename tuiShowSourceContent.
8980 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
8981 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
8982 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
8983 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
8984 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
8985 (tui_update_exec_info): Rename tuiUpdateExecInfo.
8986 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
8987 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
8988 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
8989 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
8990 (struct tui_win_info): Declare.
8991 * tui/tui-stack.c: Update references.
8992 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
8993 * tui/tui-win.c, tui/tui-source.c: Ditto.
8994 * tui/tui.c, tui/tui-disasm.c: Ditto.
8995
8996 2004-02-06 Mark Kettenis <kettenis@gnu.org>
8997
8998 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
8999 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9000
9001 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9002
9003 * infrun.c (handle_inferior_event): Allow for breakpoint
9004 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9005 and SIGEMT. Update comments.
9006 * NEWS (Revised SPARC target): Mention support for non-executable
9007 stack.
9008
9009 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9010
9011 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9012 * inftarg.c: Update copyright year.
9013 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9014 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9015 (sparc_xfer_wcookie): New function.
9016 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9017 * Makefile.in (sparc-nat.o): Update dependencies.
9018 * config/sparc/nm-nbsd.h: Include "target.h".
9019 (NATIVE_XFER_WCOOKIE): New define.
9020 (sparc_xfer_wcookie): New prototype.
9021
9022 2004-02-04 Andrew Cagney <cagney@redhat.com>
9023
9024 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9025 SYSCALL_TRAP function.
9026 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9027
9028 2004-02-04 Andrew Cagney <cagney@redhat.com>
9029 Daniel Jacobowitz <drow@mvista.com>
9030
9031 * objfiles.h: Delete comments refering to inside_entry_func and
9032 DEPRECATED_FRAME_CHAIN_VALID.
9033 * defs.h (inside_entry_func): Update prototype..
9034 * blockframe.c (inside_entry_func): Rename to
9035 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9036 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9037
9038 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9039
9040 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9041 outside of #ifdef SOLIB_ADD region.
9042 (do_restore_lang_radix_cleanup): Ditto.
9043 (resolve_pending_breakpoint): Ditto.
9044
9045 2004-02-03 Andrew Cagney <cagney@redhat.com>
9046
9047 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9048 (process_note_abi_tag_sections): Delete unused function.
9049 (ia64_read_fp): Delete unused function.
9050 (gdbarch_extract_struct_value_address): Delete declaration.
9051
9052 2004-02-02 Andrew Cagney <cagney@redhat.com>
9053
9054 * vax-tdep.c (vax_frame_chain): Delete call to
9055 deprecated_inside_entry_file.
9056 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9057
9058 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9059
9060 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9061 column that's "empty" or "same value" when eliminating REG_RA
9062 rules.
9063
9064 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9065
9066 * NEWS: Add information about new pending breakpoint support.
9067
9068 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9069
9070 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9071 and pending fields for pending breakpoint support.
9072 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9073 (condition_command): Only parse condition if not a pending
9074 breakpoint.
9075 (print_one_breakpoint): Add support for pending breakpoints.
9076 (describe_other_breakpoints): Add checks to verify we are not
9077 dealing with pending breakpoints.
9078 (check_duplicates): Don't check pending breakpoints.
9079 (set_raw_breakpoint): Initialize pending flag.
9080 (do_restore_lang_radix_cleanup): New cleanup routine.
9081 (resolve_pending_breakpoint): New function.
9082 (re_enable_breakpoints_in_shlibs): Try and resolve any
9083 pending breakpoints via resolve_pending_breakpoint.
9084 (mention): Add pending breakpoint support.
9085 (parse_breakpoint_sals): Add new parameter to pass to
9086 decode_line_1 to indicate silent errors when files or functions
9087 are not found. Change all callers.
9088 (do_captured_parse_breakpoint): New function.
9089 (break_command_1): Change prototype to return an rc value and to
9090 take an optional pending breakpoint pointer. Support creating
9091 a pending breakpoint if a "not found" form of error occurs when
9092 parsing the breakpoint. Also support resolving an existing pending
9093 breakpoint and be silent if the resolution fails.
9094 (create_breakpoints): Change prototype to take pending breakpoint
9095 pointer. When resolving a pending breakpoint, use the new pointer
9096 to provide a conditional or commands added by the end-user.
9097 (delete_breakpoint): Add appropriate check for pending.
9098 (breakpoint_re_set_one): Ditto.
9099 (do_enable_breakpoint): Ditto.
9100
9101 2004-02-02 David Carlton <carlton@kealia.com>
9102
9103 * valops.c (enum oload_classification): New.
9104 (find_overload_match): Break implementation into separate
9105 functions; delete #if 0'd code; look for symbols within
9106 namespaces.
9107 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9108 (find_oload_champ,oload_method_static,classify_oload_match): New.
9109 * cp-support.h: Add declaration for cp_func_name; update
9110 declaration for make_symbol_overload_list.
9111 * cp-support.c (cp_func_name): New.
9112 (overload_list_add_symbol): Fix comment, use
9113 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9114 (make_symbol_overload_list): Take a function name and a namespace
9115 instead of a symbol; change implementation.
9116 (make_symbol_overload_list_using): New.
9117 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9118
9119 2004-02-02 Fred Fish <fnf@redhat.com>
9120
9121 * main.c (gdb_stdtarg): Move definition to group with other
9122 gdb_stdtarg definitions and update copyright years.
9123 * remote-sim.c (gdb_os_write_stderr): Write output to
9124 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9125 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9126 gdb_stderr stream and update copyright years.
9127
9128 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9129
9130 * Makefile.in (mips-linux-nat.o): Update dependencies.
9131 * mips-linux-nat.c: Include mips-tdep.h.
9132
9133 2004-02-01 Roland McGrath <roland@redhat.com>
9134
9135 * sol-thread.c (sol_thread_xfer_partial): New function.
9136 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9137 (init_sol_core_ops): Likewise.
9138
9139 * procfs.c (procfs_xfer_partial): New function.
9140 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9141 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9142
9143 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9144 procfs_xfer_auxv function.
9145
9146 * procfs.c (procfs_make_note_section): If we can read
9147 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9148 * linux-proc.c (linux_make_note_section): Likewise.
9149
9150 * auxv.h: New file.
9151 * auxv.c: New file.
9152 * Makefile.in (auxv_h): New variable.
9153 (COMMON_OBS): Add auxv.o here.
9154 (auxv.o): New target.
9155
9156 * corelow.c (core_xfer_partial): New function.
9157 (init_core_ops): Use it for core_ops.to_xfer_partial.
9158
9159 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9160 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9161 macro if that is defined.
9162
9163 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9164
9165 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9166 and check the specified thread for each breakpoint.
9167 * breakpoint.h (bpstat_stop_status): Update prototype.
9168 * infrun.c (handle_inferior_event): Update calls to
9169 bpstat_stop_status.
9170
9171 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9172
9173 * Makefile.in (cli-cmds.o): Add $(readline_h).
9174
9175 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9176
9177 * cli/cli-cmds.c: Include readline.h.
9178 (complete_command): Pass the start of the last word to
9179 complete_line.
9180
9181 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9182
9183 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9184 argument, and change first argument to a CORE_ADDR.
9185 * breakpoint.h (bpstat_stop_status): Update prototype.
9186 * infrun.c (adjust_pc_after_break): Add a new comment.
9187 (handle_inferior_event): Update calls to bpstat_stop_status.
9188
9189 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9190
9191 * breakpoint.h: Update copyright years.
9192
9193 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9194
9195 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9196 (bpstat_stop_status): Don't decrement PC.
9197 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9198 prototype.
9199 * infrun.c (adjust_pc_after_break): New function.
9200 (handle_inferior_event): Call it, early. Remove later references
9201 to DECR_PC_AFTER_BREAK.
9202 (normal_stop): Add commentary.
9203
9204 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9205
9206 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9207 2004-01-27 double-free fix.
9208
9209 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9210
9211 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9212 (sparc32_frame_prev_register): Handle StackGhost.
9213 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9214
9215 2004-01-29 Roland McGrath <roland@redhat.com>
9216
9217 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9218 * configure: Regenerated.
9219
9220 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9221 * Makefile.in (procfs.o): Add dep.
9222
9223 2004-01-28 Andrew Cagney <cagney@redhat.com>
9224
9225 * tui/tui-stack.h: Update copyright.
9226 (struct frame_info): Add opaque declaration.
9227 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9228 (tui_show_locator_content): Rename tuiShowLocatorContent.
9229 (tui_show_frame_info): Rename tuiShowFrameInfo.
9230 * tui/tui-stack.c: Update copyright. Update references.
9231 * tui/tui-winsource.c: Update references.
9232 * tui/tui-win.c: Update references.
9233 * tui/tui-layout.c: Update references.
9234 * tui/tui-hooks.c: Update copyright, update references.
9235 * tui/tui.c: Update copyright, update references.
9236 * tui/tui-disasm.c: Update references.
9237
9238 2004-01-28 David Carlton <carlton@kealia.com>
9239
9240 * dwarf2read.c (add_partial_structure): Use demangled name if
9241 namespace equals "".
9242
9243 2004-01-27 Jim Blandy <jimb@redhat.com>
9244
9245 Clean up misapplied patch:
9246 * dwarf2read.c (determine_prefix): Change one of the two forward
9247 declarations for 'determine_prefix_aux' to a declaration for this.
9248 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9249 argument to 'die_specification'.
9250
9251 * dwarf2read.c (read_func_scope): Re-indent comment.
9252
9253 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9254
9255 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9256 b->exp to NULL after freeing so that error during re-parsing or
9257 evaluation of expressions associated with breakpoint don't
9258 eventually lead to re-freeing of storage.
9259 Committed by Andrew Cagney.
9260
9261 2004-01-27 Andrew Cagney <cagney@redhat.com>
9262
9263 * source.c (ambiguous_line_spec): Delete undefined declaration.
9264 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9265 (m32r_set_server_address, m32r_set_download_path): Ditto.
9266 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9267
9268 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9269
9270 * dwarf2read.c: Update calls to changed and renamed functions, and
9271 references to moved variables.
9272
9273 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9274 language, language_defn, list_in_scope, and ftypes members.
9275 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9276 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9277 (baseaddr): Remove globals.
9278
9279 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9280 (set_cu_language, die_is_declaration, die_specification)
9281 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9282 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9283 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9284 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9285
9286 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9287 cu.list_in_scope. Don't initialize cu_header_offset.
9288 (add_partial_symbol): Add local baseaddr.
9289 (psymtab_to_symtab_1): Add local baseaddr. Use
9290 objfile->section_offsets for consistency. Don't initialize
9291 cu_header_offset; do initialize cu.header.offset and
9292 cu.list_in_scope.
9293 (read_file_scope, read_func_scope, read_lexical_block_scope)
9294 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9295
9296 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9297
9298 * PROBLEMS: Add gdb/1516.
9299
9300 2003-12-29 Robert Millan <robertmh@gnu.org>
9301
9302 Patch committed by Andrw Cagney.
9303 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9304 * configure.tgt: Match knetbsd*-gnu.
9305
9306 2004-01-26 Andrew Cagney <cagney@redhat.com>
9307
9308 * breakpoint.c (catch_command_1): Delete #ifdef code.
9309 (catch_fork_command_1): Delete #ifdef wrapper.
9310 (catch_exec_command_1): Ditto.
9311 (catch_load_command_1): Ditto.
9312 (catch_unload_command_1): Ditto.
9313
9314 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9315 (catch_breakpoint): Delete #if0ed function.
9316 (disable_catch_breakpoint): Ditto.
9317 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9318 (disable_catch, enable_catch, delete_catch): Ditto.
9319
9320 2004-01-26 Andrew Cagney <cagney@redhat.com>
9321
9322 * remote.c (echo_check, quit_flag): Delete variables.
9323 (cisco_kernel_mode): Delete variable.
9324 (minitelnet_return, tty_input, escape_count): Delete variables.
9325 (remote_cisco_mode): Delete variable.
9326 (remote_cisco_open, remote_cisco_close): Delete function.
9327 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9328 (init_remote_cisco_ops): Delete function.
9329 (_initialize_remote): Do not install "remote cisco" code.
9330 (read_frame): Delete cisco specific code.
9331 (remote_info_process): Delete function.
9332 (remote_wait): Delete cisco specific code.
9333 (remote_cisco_section_offsets): Delete function.
9334 (remote_cisco_objfile_relocate): Delete function.
9335 (remote_async_wait): Delete cisco specific code.
9336 (minitelnet, readtty, readsocket): Delete function.
9337
9338 2004-01-26 Andrew Cagney <cagney@redhat.com>
9339
9340 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9341 comments mentioning extract_returned_value_address.
9342 * infcmd.c (print_return_value): Update. Add comments on
9343 extract_returned_value_address.
9344 * stack.c (return_command): Add comments on
9345 extract_returned_value_address.
9346 * values.c: Update comment.
9347 * m32r-tdep.c: Update comment.
9348 * sparc-tdep.c: Update comment.
9349 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9351 * sh64-tdep.c (sh64_gdbarch_init): Update.
9352 * sh-tdep.c (sh_gdbarch_init): Update.
9353 * s390-tdep.c (s390_gdbarch_init): Update.
9354 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9355 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9356 * m68k-tdep.c (m68k_gdbarch_init): Update.
9357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9358 * m32r-tdep.c (m32r_gdbarch_init): Update.
9359 * ia64-tdep.c (ia64_gdbarch_init): Update.
9360 * h8300-tdep.c (h8300_gdbarch_init): Update.
9361 * frv-tdep.c (frv_gdbarch_init): Update.
9362 * arm-tdep.c (arm_gdbarch_init): Update.
9363 * alpha-tdep.c (alpha_gdbarch_init): Update.
9364
9365 2004-01-26 Andrew Cagney <cagney@redhat.com>
9366
9367 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9368 SYMBOL_LOCATION_FUNCS
9369 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9370 "struct symbol_ops".
9371 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9372 type to "struct symbol_ops".
9373 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9374 (struct symbol): Replace ".aux_value.loc.funcs" and
9375 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9376 (SYMBOL_OBJFILE): Delete macro.
9377 (SYMBOL_LOCATION_FUNCS): Delete macro.
9378 (SYMBOL_LOCATION_BATON): Update.
9379 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9380 intead of SYMBOL_LOCATION_FUNCS.
9381 * ax-gdb.c (gen_var_ref): Ditto.
9382 * printcmd.c (address_info): Ditto.
9383 * findvar.c (read_var_value): Ditto.
9384 (symbol_read_needs_frame): Ditto.
9385
9386 2004-01-26 Andrew Cagney <cagney@redhat.com>
9387
9388 * dwarf2read.c (read_func_scope): Document frame-base hack.
9389
9390 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9391
9392 * infcmd.c (print_return_value): Plug memory leak; delete
9393 ui_stream object. Rename argument `structure_return' to
9394 `struct_return'.
9395
9396 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9397
9398 * infcmd.c (print_return_value): Wrap long lines.
9399 (finish_command_continuation, finish_command): Remove unused
9400 variable `funcaddr'. Fix some coding-standards problems.
9401
9402 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9403 SECT_SIZE is large enough, not whether it's exactly the right size.
9404 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9405 TDEP->fpregset to zero.
9406
9407 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9408 floating-point registers for traditional NetBSD core files.
9409 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9410 TDEP->sizeof_fpregset here.
9411
9412 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9413
9414 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9415 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9416 function with code split out from
9417 sparc32nbsd_sigcontext_frame_cache.
9418 (sparc32nbsd_sigcontext_frame_cache): Use
9419 sparc32nbsd_sigcontext_saved_regs.
9420 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9421 OpenBSD.
9422 * sparcobsd-tdep.c: New file.
9423 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9424 (sparcobsd-tdep.o): New dependency.
9425 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9426 * config/sparc/obsd.mt: New file.
9427
9428 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9429 TDEP->fpregset to be initialized to enable core file register
9430 sets.
9431
9432 2004-01-24 Mark Kettenis <kettenis@gnu.org>
9433
9434 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
9435 Add opaque declarations.
9436 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9437 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9438 function with code split out from
9439 sparc64nbsd_sigcontext_frame_cache.
9440 (sparc64nbsd_sigcontext_frame_cache): Use
9441 sparc64nbsd_sigcontext_saved_regs.
9442 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9443 OpenBSD.
9444 * sparc64obsd-tdep.c: New file.
9445 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9446 (sparc64obsd-tdep.o): New dependency.
9447 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9448 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9449 * config/sparc/obsd64.mt: New file.
9450
9451 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9452 read the instruction at PC.
9453
9454 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9455 value of GDB_OSABI_DEFAULT.
9456 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9457 instead of GDB_OSABI_NETBSD_AOUT.
9458
9459 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
9460
9461 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9462 copyright.
9463
9464 2004-01-23 Andrew Cagney <cagney@redhat.com>
9465
9466 * printcmd.c (display_command): Replace tui_set_display call with
9467 tui_set_layout_for_display_command.
9468 * tui/tui.h (enum tui_win_type): Define.
9469 (tui_set_layout): Delete declaration.
9470 (tui_set_layout_for_display_command): Rename set_tui_layout.
9471 * tui/tui-data.h (enum tui_layout_type): Define.
9472 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9473 "tui.h".
9474 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9475 (tui_default_win_height): Rename tuiDefaultWinHeight.
9476 (tui_default_win_viewport_height): Rename
9477 tuiDefaultWinViewportHeight.
9478 (tui_set_layout): RenametuiSetLayout.
9479 * tui/tui-layout.c: Update references.
9480 * tui/tui.c: Update references.
9481 * tui/tui-disasm.c: Update references.
9482
9483 2004-01-23 David Carlton <carlton@kealia.com>
9484
9485 Partial workaround for PR c++/1511:
9486 * cp-namespace.c: Include frame.h.
9487 (cp_lookup_transparent_type): New
9488 (cp_lookup_transparent_type_loop): New.
9489 * cp-support.h: Declare cp_lookup_transparent_type.
9490 * symtab.c (basic_lookup_transparent_type): Renamed from
9491 lookup_transparent_type.
9492 (lookup_transparent_type): Replace old body by a call to
9493 current_language->la_lookup_transparent_type.
9494 * symtab.h: Update copyright. Declare
9495 basic_lookup_transparent_type.
9496 * language.h: Update copyright.
9497 (struct language_defn): Add la_lookup_transparent_type.
9498 * language.c: Update copyright.
9499 (unknown_language_defn): Add basic_lookup_transparent_type.
9500 (auto_language_defn): Add basic_lookup_transparent_type.
9501 (local_language_defn): Add basic_lookup_transparent_type.
9502 * ada-lang.c: Update copyright.
9503 (ada_language_defn): Add basic_lookup_transparent_type.
9504 * c-lang.c: Update copyright.
9505 (c_language_defn): Add basic_lookup_transparent_type.
9506 (cplus_language_defn): Add basic_lookup_transparent_type.
9507 (asm_language_defn): Add basic_lookup_transparent_type.
9508 (minimal_language_defn): Add basic_lookup_transparent_type.
9509 * f-lang.c: Update copyright.
9510 (f_language_defn): Add basic_lookup_transparent_type.
9511 * jv-lang.c: Update copyright.
9512 (java_language_defn): Add basic_lookup_transparent_type.
9513 * m2-lang.c: Update copyright.
9514 (m2_language_defn): Add basic_lookup_transparent_type.
9515 * objc-lang.c: Update copyright.
9516 (objc_language_defn): Add basic_lookup_transparent_type.
9517 * p-lang.c: Update copyright.
9518 (p_language_defn): Add basic_lookup_transparent_type.
9519 * scm-lang.c: Update copyright.
9520 (scm_language_defn): Add basic_lookup_transparent_type.
9521 * Makefile.in (cp-namespace.o): Depend on frame.h.
9522
9523 2004-01-23 David Carlton <carlton@kealia.com>
9524
9525 Patch for PR c++/1520:
9526 * dwarf2read.c (read_func_scope): Set processing_current_prefix
9527 properly if we have a specification die.
9528 (determine_prefix_aux): Rename from determine_prefix.
9529 (determine_prefix): Like the old determine_prefix, but never
9530 returns NULL.
9531
9532 2004-01-23 Theodore A. Roth <troth@openavr.org>
9533
9534 * avr-tdep.c: Update copyright.
9535 (avr_iaddr_p): Delete unused function.
9536 (avr_saddr_p): Delete unused function.
9537
9538 2004-01-23 David Carlton <carlton@kealia.com>
9539
9540 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
9541 Fix for PR symtab/1534.
9542
9543 2004-01-23 Mark Kettenis <kettenis@gnu.org>
9544
9545 * NEWS (New native configurations): Mention OpenBSD/sparc and
9546 OpenBSD/sparc64.
9547 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
9548 * configure.host: Likewise.
9549 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
9550 handler for OpenBSD.
9551 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
9552
9553 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9554
9555 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
9556 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
9557
9558 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
9559 * cli/cli-cmds.c (shell_escape): Likewise.
9560
9561 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
9562 OpenBSD .note.openbsd.ident sections.
9563
9564 2004-01-22 David Carlton <carlton@kealia.com>
9565
9566 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
9567 get_scope_pc_bounds.
9568 (read_file_scope): Ditto.
9569 (get_scope_pc_bounds): New function, produced by extracting code
9570 from the above two functions, consolidating it, and adding support
9571 for DW_TAG_namespace.
9572
9573 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9574
9575 * osabi.c (MAX_NOTESZ): New define.
9576 (check_note): New function.
9577 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
9578 check_note.
9579
9580 2004-01-21 Roland McGrath <roland@redhat.com>
9581
9582 * MAINTAINERS (write after approval): Add myself.
9583
9584 2004-01-21 Eli Zaretskii <eliz@gnu.org>
9585
9586 * utils.c (init_page_info): Move declarations of `rows' and
9587 `cols' before the __GO32__-specific code. Move the closing brace
9588 outside the #ifdef __GO32__..#endif block.
9589 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
9590
9591 2004-01-21 Paul Brook <paul@codesourcery.com>
9592
9593 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
9594 BPSTAT_WHAT_CHECK_SHLIBS.
9595
9596 2004-01-21 Paul Brook <paul@codesourcery.com>
9597
9598 * MAINTAINERS: Add myself to write-after-approval.
9599
9600 2004-01-20 Andrew Cagney <cagney@redhat.com>
9601
9602 * ax-gdb.c (print_axs_value): Delete unused function.
9603 * jv-lang.c (java_lookup_type): Delete unused function.
9604 * cli/cli-dump.c (dump_filetype): Delete unused function.
9605 * remote-mips.c (remote_mips_insert_hw_breakpoint)
9606 (remote_mips_remove_hw_breakpoint): Delete unused functions.
9607 (mips_getstring): Delete unused function.
9608 (pmon_insert_breakpoint): Delete #if0ed function.
9609 (PMON_MAX_BP): Delete #if0ed MACRO.
9610 (mips_pmon_bp_info): Delete #if0ed variable.
9611 (pmon_remove_breakpoint): Delete #if0ed function.
9612 * monitor.c (monitor_write_even_block): Delete unused function.
9613 (monitor_write_memory_block): Delete #if0ed code.
9614 * dink32-rom.c (dink32_load): Delete unused function.
9615 (_initialize_dink32_rom): Delete #if0ed code.
9616 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
9617
9618 * tui/tui-command.c: Update references.
9619 * tui/tui-io.c: Update references.
9620 * tui/tui-command.h: Update copyright.
9621 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
9622
9623 * source.c (ambiguous_line_spec): Delete never-defined function.
9624 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
9625 * gdbtypes.c (add_name, add_mangled_type): Ditto.
9626 * cli/cli-cmds.c (validate_comname): Ditto.
9627
9628 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
9629 "tui-data.h".
9630 (tui_set_disassem_content): Rename tuiSetDisassemContent.
9631 (tui_show_disassem): Rename tuiShowDisassem.
9632 (tui_show_disassem_and_update_source): Rename
9633 tuiVerticalDisassemScroll.
9634 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
9635 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
9636 * tui/tui.h: Update copyright.
9637 (enum tui_status): Define.
9638 * tui/tui-data.h (enum tui_scroll_direction): Define.
9639 * tui/tui-disasm.c: Update copyright. Update references.
9640 * tui/tui-winsource.c: Update copyright. Update references.
9641 * tui/tui-win.c: Update references.
9642 * tui/tui-layout.c: Update references.
9643
9644 2004-01-20 Andrew Cagney <cagney@redhat.com>
9645
9646 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
9647 sym2 to start of block.
9648
9649 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
9650
9651 * MAINTAINERS: Delete mmalloc.
9652 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
9653 * NEWS: Mention removal of --with-malloc.
9654 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
9655 * config.in: Regenerate.
9656 * configure: Regenerate.
9657 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
9658 USE_MMALLOC, MMCHECK_FORCE.
9659 * gdbinit.in: Remove mmalloc.
9660 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
9661 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
9662 * config/i386/go32.mh: Likewise.
9663 * config/i386/interix.mh: Likewise.
9664 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
9665
9666 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
9667
9668 * linespec.c (decode_variable, symtab_from_filename): Call
9669 error_silent with error message instead of throwing an exception
9670 directly.
9671 * defs.h (error_silent, error_output_message): Add prototypes.
9672 (catch_exceptions_with_msg): Ditto.
9673 * utils.c (error_silent, error_output_message): New functions.
9674 * top.c (catch_exceptions_with_msg): New function.
9675
9676 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
9677
9678 * mi/mi-cmds.h (enum print_values): Add definition.
9679
9680 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
9681 type and value for simple data types and just the name and type
9682 for complex ones, if required.
9683
9684 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
9685 children, if required.
9686
9687 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9688
9689 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
9690 unused declarations.
9691
9692 2004-01-19 Andrew Cagney <cagney@redhat.com>
9693
9694 * top.h (mapped_symbol_files): Delete declaration.
9695 * main.c (captured_main): Delete option "m" and "mapped".
9696 * objfiles.c (mapped_symbol_files): Delete variable.
9697 * symfile.c (symbol_file_command): Delete mmap code.
9698 (symbol_file_add_with_addrs_or_offsets): Ditto.
9699 (add_symbol_file_command, reread_separate_symbols): Ditto.
9700 * objfiles.h (OBJF_MAPPED): Delete.
9701 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
9702 (free_objfile) [USE_MMALLOC]: Ditto.
9703 (open_existing_mapped_file): Delete function.
9704 (open_mapped_file): Delete function.
9705 (map_to_file): Delete function.
9706
9707 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9708
9709 * infrun.c (step_into_function): Account for possible breakpoint
9710 adjustment when computing ``stop_func_start''.
9711
9712 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9713
9714 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
9715 the region size against the size of a pointer, not the size of
9716 a register as given by DEPRECATED_REGISTER_SIZE.
9717
9718 2004-01-19 Andrew Cagney <cagney@redhat.com>
9719
9720 * tui/tui-regs.h: Include "tui-data.h".
9721 (tuiFirstRegElementNoInLine): Delete declaration.
9722 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
9723 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
9724 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
9725 (tui_calculate_regs_column_count): Rename
9726 tuiCalculateRegsColumnCount.
9727 (tui_check_register_values): Rename tuiCheckRegisterValues.
9728 (tui_show_registers): Rename tuiShowRegisters.
9729 (tui_display_registers_from_line): Rename
9730 tuiDisplayRegistersFromLine.
9731 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
9732 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
9733 (tui_first_reg_element_no_inline): Rename
9734 tuiFirstRegElementNoInLine.
9735 * tui/tui-data.h: Update copyright.
9736 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
9737 * tui/tui-windata.c: Update copyright, update references.
9738 * tui/tui-regs.c: Update copyright, update references.
9739 * tui/tui-win.c: Update copyright, update references.
9740 * tui/tui-layout.c: Update copyright, update references.
9741
9742 2004-01-18 Andrew Cagney <cagney@redhat.com>
9743
9744 * tui/tui-io.c: Update copyright.
9745 (key_is_end_sequence, key_is_backspace): New functions.
9746 (key_is_command_char, key_is_start_sequence): New function.
9747 (tui_getc): Update references.
9748 * tui/tui-io.h: Update copyright.
9749 (m_tuiStartNewLine): Delete macro.
9750 (m_isBackspace, m_isDeleteChar): Delete macros.
9751 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
9752 (m_isNextPage, m_isPrevPage): Delete macros.
9753 (m_isLeftArrow, m_isRightArrow): Delete macros.
9754 (m_isXdbStyleCommandChar): Delete macro.
9755 (key_is_start_sequence): Declare, replace m_isStartSequence.
9756 (key_is_end_sequence): Declare, replace m_isEndSequence.
9757 (key_is_backspace): Declare ,replace m_isBackspace.
9758 (key_is_command_char): Declare, replace m_isCommandChar.
9759 * tui/tui-command.c: Update copyright.
9760 (tuiDispatchCtrlChar): Update references.
9761
9762 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
9763 tuiSourceWin.h.
9764
9765 * tui/tui-command.c: Rename tui/tuiCommand.c.
9766 * tui/tui-command.h: Rename tui/tuiCommand.h.
9767 * tui/tui-data.c: Rename tui/tuiData.c.
9768 * tui/tui-data.h: Rename tui/tuiData.h.
9769 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
9770 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
9771 * tui/tui-io.c: Rename tui/tuiIO.c.
9772 * tui/tui-io.h: Rename tui/tuiIO.h.
9773 * tui/tui-layout.c: Rename tui/tuiLayout.c.
9774 * tui/tui-layout.h: Rename tui/tuiLayout.h.
9775 * tui/tui-regs.c: Rename tui/tuiRegs.c.
9776 * tui/tui-regs.h: Rename tui/tuiRegs.h.
9777 * tui/tui-source.c: Rename tui/tuiSource.c.
9778 * tui/tui-source.h: Rename tui/tuiSource.h.
9779 * tui/tui-stack.c: Rename tui/tuiStack.c.
9780 * tui/tui-stack.h: Rename tui/tuiStack.h.
9781 * tui/tui-win.c: Rename tui/tuiWin.c.
9782 * tui/tui-win.h: Rename tui/tuiWin.h.
9783 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
9784 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
9785 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
9786 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
9787 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
9788 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
9789 * tui/tui-file.c: Update includes.
9790 * tui/tui-hooks.c: Update includes.
9791 * tui/tui-interp.c: Update includes.
9792 * tui/tui.c: Update includes.
9793 * Makefile.in: Update all tui/ dependencies.
9794 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
9795
9796 * Makefile.in: Update copyright. Update dependencies.
9797
9798 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
9799 problem.
9800
9801 2004-01-18 Andrew Cagney <cagney@redhat.com>
9802
9803 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
9804 instead of register_gdbarch_init.
9805
9806 * remote-sds.c (tohex): Delete unused function. Update copyright.
9807 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
9808 * v850-tdep.c (v850_register_virtual_size): Ditto.
9809 * target.c (normal_target_post_startup_inferior): Ditto.
9810 * source.c (ambiguous_line_spec): Ditto.
9811 * remote.c (adapt_remote_get_threadinfo): Ditto.
9812 * mi/mi-out.c (out_field_fmt): Ditto.
9813 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
9814 (output_control_change_notification): Ditto.
9815 * m68k-tdep.c (m68k_register_byte): Ditto.
9816 (m68k_remote_breakpoint_from_pc): Ditto.
9817 * ui-out.c (init_ui_out_state): Delete unused declaration.
9818 * stabsread.c (search_value): Ditto.
9819 * mi/mi-cmd-env.c (env_cli_command): Ditto.
9820 * maint.c (print_section_table): Ditto.
9821 * infrun.c (set_follow_fork_mode_command): Ditto.
9822
9823 2004-01-18 Mark Kettenis <kettenis@gnu.org>
9824
9825 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
9826 DW_CFA_def_cfa_exporession. Add support for
9827 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
9828 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
9829
9830 2004-01-18 Andrew Cagney <cagney@redhat.com>
9831
9832 * ocd.c: Update copyright.
9833 (bdm_read_register_command): Delete unused function.
9834 (_initialize_remote_ocd): Delete commented out reference.
9835 (get_quoted_char, reset_packet): Delete #if0ed function.
9836 (output_packet, put_quoted_char): Delete #if0ed function.
9837 (stu_put_packet, stu_get_packet): Delete #if0ed function.
9838 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
9839 (BDM_BREAKPOINT): Delete #if0ed macro.
9840 (remote_timeout): Delete #if0ed variable.
9841
9842 2004-01-18 Mark Kettenis <kettenis@gnu.org>
9843
9844 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
9845 (core-sol2.o): Remove dependency.
9846 * core-sol2.c: Remove file.
9847
9848 2004-01-17 Andrew Cagney <cagney@redhat.com>
9849
9850 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
9851 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
9852 enums.
9853
9854 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9855
9856 * remote.c: Update copyright years.
9857
9858 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9859
9860 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
9861
9862 2004-01-17 Andrew Cagney <cagney@redhat.com>
9863
9864 * mdebugread.c: Update copyright.
9865 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
9866 (parse_type, parse_procedure): Ditto.
9867 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
9868
9869 * cris-tdep.c (cris_store_struct_return): Put back accidently
9870 deleted function.
9871
9872 * gdbarch.sh: Update copyright year.
9873 * gdbarch.h, gdbarch.c: Re-generate.
9874
9875 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9876
9877 Suggested by George Anzinger.
9878 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
9879 correct stack offset. Include unknown opcode numbers in the error
9880 message.
9881
9882 2004-01-17 Andrew Cagney <cagney@redhat.com>
9883
9884 * x86-64-tdep.c (x86_64_init_abi): No need to clear
9885 extract_struct_value_address, i386 does not set it.
9886 * sparc64-tdep.c (sparc64_init_abi): Do not set
9887 extract_struct_value_address, never called.
9888 (sparc64_extract_struct_value_address): Delete function.
9889 * m68hc11-tdep.c: Update copyright.
9890 (m68hc11_gdbarch_init): Delete redundant assignment of
9891 extract_struct_value_address.
9892 * i386-tdep.c: Update copyright.
9893 (i386_gdbarch_init): Do not set extract_struct_value_address,
9894 never called.
9895 (i386_extract_struct_value_address): Delete function.
9896 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
9897 extract_struct_value_address, never called.
9898 (sparc32_extract_struct_value_address): #if 0 function. Add
9899 comments explaining its future.
9900
9901 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9902
9903 * arm-tdep.c (arm_write_pc): New function.
9904 (arm_gdbarch_init): Call set_gdbarch_write_pc.
9905
9906 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9907
9908 * breakpoint.c (must_shift_inst_regs): Delete.
9909 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
9910 and SHIFT_INST_REGS.
9911 * infcmd.c (step_1, step_1_continuation): Delete references to
9912 SHIFT_INST_REGS.
9913 * infrun.c (keep_going): Likewise.
9914 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
9915 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
9916
9917 2004-01-17 Andrew Cagney <cagney@redhat.com>
9918
9919 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9920 * gdbarch.h, gdbarch.c: Re-generate.
9921 * infcmd.c (print_return_value): Delete reference to
9922 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
9923
9924 * cris-tdep.c (cris_gdbarch_init): Do not set
9925 deprecated_extract_struct_value_address.
9926
9927 * xstormy16-tdep.c: Update copyright.
9928 (xstormy16_extract_struct_value_address): Update to current
9929 extract struct value address interface.
9930 (xstormy16_gdbarch_init): Set extract_struct_value_address.
9931 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
9932 current extract struct value address interface.
9933 (sh64_gdbarch_init): Set extract_struct_value_address.
9934
9935 * cris-tdep.c: Update copyright.
9936 (cris_extract_struct_value_address): Delete function.
9937 (struct_return_address): Delete variable.
9938 (cris_store_struct_return): Do not set struct_return_address.
9939
9940 * mcore-tdep.c: Update copyright.
9941 (mcore_extract_struct_value_address): Delete function. Update
9942 comments.
9943 (mcore_gdbarch_init): Update.
9944 * mn10300-tdep.c: Update copyright.
9945 (mn10300_extract_struct_value_address): Delete function.
9946 (mn10300_gdbarch_init): Update.
9947 * v850-tdep.c: Update copyright.
9948 (v850_extract_struct_value_address): Delete.
9949 (v850_gdbarch_init): Update.
9950 * ns32k-tdep.c: Update copyright.
9951 (ns32k_extract_struct_value_address): Delete.
9952 (ns32k_gdbarch_init): Update.
9953 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
9954 (hppa_gdbarch_init): Update.
9955 * vax-tdep.c: Update copyright.
9956 (vax_extract_struct_value_address): Delete.
9957 (vax_gdbarch_init): Update.
9958
9959 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
9960 * gdbarch.h, gdbarch.c: Re-generate.
9961 * procfs.c (procfs_fetch_registers): Delete reference to
9962 DEPRECATED_NPC_REGNUM.
9963 (procfs_store_registers): Ditto.
9964 * regcache.c (generic_target_write_pc): Simplify.
9965 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
9966
9967 * core-sol2.c (fetch_core_registers): Replace
9968 DEPRECATED_NPC_REGNUM with equivalent tdep value.
9969
9970 * hppa-tdep.c: Update copyright year.
9971 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
9972 NPC_REGNUM.
9973 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
9974
9975 * mips-tdep.c (mips_write_pc): New function.
9976 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
9977 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
9978 (mips_find_saved_regs, mips_software_single_step: Ditto.
9979 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
9980 mips_init_extra_frame_info, mips_pop_frame): Ditto.
9981
9982 2004-01-17 Andrew Cagney <cagney@redhat.com>
9983
9984 * mips-tdep.c: Re-indent. Group functions by ABI.
9985
9986 2004-01-17 Andrew Cagney <cagney@redhat.com>
9987
9988 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
9989 * gdbarch.c: Re-generate.
9990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9991 DECR_PC_AFTER_BREAK to zero.
9992 * vax-tdep.c (vax_gdbarch_init): Ditto.
9993 * v850-tdep.c (v850_gdbarch_init): Ditto.
9994 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
9995 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
9996 * sh-tdep.c (sh_gdbarch_init): Ditto.
9997 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9998 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9999 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10000 * mips-tdep.c (mips_gdbarch_init): Ditto.
10001 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10003 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10004 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10005 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10006 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10007 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10008 * frv-tdep.c (frv_gdbarch_init): Ditto.
10009 * cris-tdep.c (cris_gdbarch_init): Ditto.
10010 * avr-tdep.c (avr_gdbarch_init): Ditto.
10011 * arm-tdep.c (arm_gdbarch_init): Ditto.
10012 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10013
10014 2004-01-17 J. Brobecker <brobecker@gnat.com>
10015
10016 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10017 Delete, no longer used.
10018 (read_subrange_type): New function, mostly extracted from
10019 read_array_type().
10020 (read_array_type): Replace extracted code by call to
10021 read_subrange_type().
10022 (dwarf2_get_attr_constant_value): New function.
10023 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10024 (add_partial_symbol): Likewise.
10025 (process_die): Likewise.
10026 (new_symbol): Likewise.
10027 (read_type_die): Likewise.
10028
10029 2004-01-16 Andrew Cagney <cagney@redhat.com>
10030
10031 * symfile.c: Update copyright year.
10032 (compare_symbols): Delete unused function.
10033 * stabsread.c: Update copyright year.
10034 (lrs_general_complaint): Delete unused function.
10035 (ref_search_value): Ditto.
10036 (get_substring): Delete declaration.
10037 * sh64-tdep.c: Update copyright year.
10038 (sh64_get_gdb_regnum): Delete unused function.
10039 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10040 Delete unused function.
10041
10042 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10043
10044 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10045 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10046
10047 2004-01-16 Andrew Cagney <cagney@redhat.com>
10048
10049 Changes from Peter Schauer.
10050 * rs6000-tdep.c: Update copyright year.
10051 (rs6000_push_dummy_call): Update the stack pointer before
10052 accessing the corresponding stack region.
10053 * rs6000-nat.c: Update copyright year.
10054 (set_host_arch): Set "info.abfd" to "exec_bfd".
10055
10056 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10057
10058 * blockframe.c: Update copyright year.
10059 (inside_entry_func): Don't treat a zero PC specially.
10060
10061 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10062
10063 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10064 variable.
10065 (gcore_create_callback): Ditto. Skip any memory segment that has
10066 no permissions set.
10067
10068 2004-01-14 David Carlton <carlton@kealia.com>
10069
10070 Change symbols for C++ nested types to contain the fully qualified
10071 name, if possible. (At least in the DWARF-2 case.) Partial fix
10072 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10073 c++/895.
10074 * c-exp.y (qualified_type): Handle types nested within classes.
10075 * cp-namespace.c: Update comments.
10076 (cp_set_block_scope): Delete #if 0.
10077 (cp_lookup_nested_type): Handle types nested within classes.
10078 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10079 when appropriate.
10080 (add_partial_symbol): Add the name of the enclosing namespace to
10081 types.
10082 (pdi_needs_namespace): New.
10083 (add_partial_namespace): Tweak comment.
10084 (add_partial_structure): New.
10085 (psymtab_to_symtab_1): Initialize processing_current_prefix
10086 here...
10087 (process_die): instead of here.
10088 (read_structure_scope): Try to figure out the name of the class or
10089 namespace that the structure might be defined within.
10090 (read_enumeration): Generate fully-qualified names, if possible.
10091 (read_namespace): Don't set name to NULL.
10092 (die_specification): New.
10093 (new_symbol): Generate fully-qualified names for types.
10094 (read_type_die): Determine appropriate prefix.
10095 (determine_prefix): New.
10096 (typename_concat): New.
10097 (class_name): New.
10098 * valops.c (value_aggregate_elt): Pass NOSIDE to
10099 value_struct_elt_for_reference.
10100 (value_struct_elt_for_reference): Make static, add NOSIDE
10101 parameter, call value_maybe_namespace_elt as a last resort.
10102 (value_namespace_elt): Break out code into
10103 value_maybe_namespace_elt.
10104 (value_maybe_namespace_elt): New.
10105
10106 2004-01-12 Andrew Cagney <cagney@redhat.com>
10107
10108 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10109 cooked floating-point registers.
10110 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10111 and value_to_register.
10112
10113 2004-01-13 Andrew Cagney <cagney@redhat.com>
10114
10115 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10116 * gdbarch.c: Re-generate.
10117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10118 FUNCTION_START_OFFSET.
10119 * v850-tdep.c (v850_gdbarch_init): Ditto.
10120 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10121 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10122 * sh-tdep.c (sh_gdbarch_init): Ditto.
10123 * s390-tdep.c (s390_gdbarch_init): Ditto.
10124 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10125 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10126 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10127 * mips-tdep.c (mips_gdbarch_init): Ditto.
10128 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10129 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10131 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10132 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10133 * i386-tdep.c (i386_gdbarch_init): Ditto.
10134 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10135 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10136 * frv-tdep.c (frv_gdbarch_init): Ditto.
10137 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10138 * cris-tdep.c (cris_gdbarch_init): Ditto.
10139 * avr-tdep.c (avr_gdbarch_init): Ditto.
10140 * arm-tdep.c (arm_gdbarch_init): Ditto.
10141 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10142
10143 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10144
10145 * infrun.c (follow_fork_mode_ask): Remove.
10146 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10147 (follow_fork): Simplify and remove internal error for
10148 follow_fork_mode_ask.
10149 (_initialize_infrun): Update "set follow-fork-mode" help text.
10150
10151 2004-01-13 Andrew Cagney <cagney@redhat.com>
10152
10153 * configure.in: Update copyright year.
10154 (build_warnings): Add -Wunused-label.
10155 * configure: Re-generate.
10156
10157 2004-01-12 Andrew Cagney <cagney@redhat.com>
10158
10159 * exec.h (exec_ops): Make "extern".
10160
10161 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10162 the function is void.
10163 (mips_pseudo_register_write): Ditto.
10164
10165 2004-01-12 Andrew Cagney <cagney@redhat.com>
10166
10167 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10168 call. Never defined.
10169 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10170 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10171 (struct sparc_gregset, struct regcache): Ditto.
10172 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10173
10174 2004-01-12 Andrew Cagney <cagney@redhat.com>
10175
10176 * mi/ChangeLog: Delete file. Renamed to ...
10177 * mi/ChangeLog-1999-2003: New file.
10178 * tui/ChangeLog: Delete file. Renamed to ...
10179 * tui/ChangeLog-1998-2003: New file.
10180
10181 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10182
10183 * sparc64nbsd-tdep.c: Include "regset.h".
10184 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10185 Remove variables.
10186 (fetch_core_registers): Remove function.
10187 (sparc64nbsd_core_fns): Remove variable.
10188 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10189 functions.
10190 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10191 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10192 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10193
10194 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10195 sparc_extract_struct_value_address.
10196 (sparc32_gdbarch_init): Set extract_struct_value_address.
10197 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10198 function.
10199 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10200 return_value_on_stack.
10201
10202 * NEWS: Mention that %cs and %ss have been added to the AMD64
10203 configurations
10204
10205 * frame.c: Update copyright year.
10206 (get_prev_frame): Improve comment.
10207
10208 * sparc64fbsd-tdep.c: Include "regset.h".
10209 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10210 Remove variables.
10211 (fetch_core_registers): Remove function.
10212 (sparc64fbsd_core_fns): Remove variable.
10213 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10214 functions.
10215 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10216 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10217 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10218
10219 * sparcnbsd-tdep.c: Include "regset.h".
10220 (fetch_core_registers): Remove function.
10221 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10222 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10223 functions.
10224 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10225 TDEP->fpregset.
10226 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10227
10228 * sparc-tdep.h (struct regset): Provide opaque declaration.
10229 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10230 fpregset and sizeof_fpregset members.
10231 * sparc-tdep.c (struct regset): Provide opaque declaration.
10232 (sparc_regset_from_core_section): New function.
10233 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10234 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10235 Set regset_from_core_section when appropriate.
10236
10237 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10238
10239 * x86-64-tdep.c (amd64_non_pod_p): New function.
10240 (amd64_classify_aggregate): Return class memory for non-POD
10241 C++ structure types.
10242
10243 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10244 argument. Use it to reserve a register if necessary.
10245 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10246 amd64_push_arguments.
10247
10248 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10249
10250 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10251 register numbers in comments.
10252 * x86-64-tdep.h: Update copyright year.
10253 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10254 Adjust for addition of %cs and %ss.
10255 * amd64fbsd-nat.c: Update copyright year.
10256 (reg_offset): Add register offsets for %cs and %ss.
10257 * amd64fbsd-tdep.c: Update copyright year.
10258 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10259 (amd64fbsd_sc_reg_offset): Likewise.
10260 * x86-64-linux-nat.c: Update copyright year.
10261 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10262 and %ss.
10263 * amd64nbsd-nat.c: Update copyright year.
10264 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10265 * amd64nbsd-tdep.c: Update copyright year.
10266 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10267 * x86-64-linux-tdep.c: Update copyright year.
10268 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10269 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10270 * regformats/reg-x86-64.dat: Add %cs and %ss.
10271
10272 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10273 variables to prevent long lines. Update comments to reflect
10274 reality.
10275
10276 2004-01-09 David Carlton <carlton@kealia.com>
10277
10278 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10279 * dwarf2read.c (read_namespace): Pull out name-generating code
10280 into namespace_name. Rename previous_namespace to previous_prefix
10281 and processing_current_namespace to processing_current_prefix..
10282 (namespace_name): New function.
10283 (add_partial_symbol): Substitute uses of pdi->name with
10284 actual_name.
10285 * cp-support.h: Rename processing_current_namespace to
10286 processing_current_prefix.
10287 Update copyright year.
10288 * cp-namespace.c: Rename processing_current_namespace to
10289 processing_current_prefix.
10290 Update copyright year.
10291
10292 2004-01-09 Andrew Cagney <cagney@redhat.com>
10293
10294 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10295
10296 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10297
10298 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10299 complaining.
10300 (process_one_symbol): Deal with N_PATCH stabs.
10301
10302 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10303
10304 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10305 ifdeffed code.
10306 Update copyright year.
10307
10308 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10309
10310 * config/pa/tm-hppa.h: Update extern declarations for
10311 hppa32_hpux_frame_saved_pc_in_sigtramp,
10312 hppa32_hpux_frame_base_before_sigtramp, and
10313 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10314
10315 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10316
10317 * config/pa/tm-hppah.h: Update copyright years.
10318
10319 2004-01-08 Andrew Cagney <cagney@redhat.com>
10320
10321 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10322 (mips_o32_reg_struct_has_addr): Delete function.
10323 (mips_gdbarch_init): Update.
10324 (mips_extract_struct_value_address): Delete function.
10325
10326 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10327
10328 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10329 reality.
10330
10331 2004-01-07 Andrew Cagney <cagney@redhat.com>
10332
10333 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10334 architecture's elf flags (when available).
10335
10336 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10337 FPU to the start, check the MIPS FPU when looking for an old
10338 architecture.
10339 (set_mipsfpu_single_command): Update the architecture.
10340 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10341
10342 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10343 (mips_mask_address_p): Add "tdep" parameter.
10344 (show_mask_address, mips_addr_bits_remove): Update.
10345 (mips_dump_tdep): Update.
10346 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10347 (MIPS_STACK_ARGSIZE): Delete macro.
10348 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10349 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10350 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10351 (mips_dump_tdep): Update.
10352 (MIPS_SAVED_REGSIZE): Delete macro.
10353 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10354 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10355 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10356 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10357 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10358 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10359 (mips_pop_frame, return_value_location): Update.
10360 (mips_n32n64_return_value, mips_dump_tdep): Update.
10361
10362 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10363 MIPS ABI.
10364
10365 * mips-tdep.c: Update copyright.
10366 (mips_gdbarch_init): Merge two code blocks handling the register
10367 name and number layout.
10368
10369 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10370
10371 * tracepoint.c (validate_actionline): Fix segv at EOF
10372
10373 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10374
10375 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10376 properly for static fields.
10377
10378 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10379 Jason Molenda <jmolenda@apple.com>
10380
10381 * disasm.c: Update copyright to include 2004.
10382 (do_mixed_source_and_assembly): For uiout asm list
10383 and tuple cleanups, initialize to null_cleanup instead of
10384 NULL and do so prior to loop. Only reset when we close off
10385 the tuple/list. Move check for whether to close off the
10386 asm tuple/list to after dump_insns call where it will be run
10387 on each loop iteration.
10388
10389 2004-01-05 Andrew Cagney <cagney@redhat.com>
10390
10391 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10392 should be a switch case and not a label.
10393 * mips-tdep.c (mips32_next_pc): Delete unused labels
10394 "greater_equal_branch" and "less_zero_branch".
10395 * jv-valprint.c (java_print_value_fields): Delete unused label
10396 "flush_it".
10397
10398 * target.c (unpush_target): Only close a target that is in the
10399 target stack.
10400
10401 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10402
10403 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10404 address from [sp + 64] instead of %o2.
10405
10406 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10407 fixes PR backtrace/1476.
10408
10409 2004-01-05 Andrew Cagney <cagney@redhat.com>
10410
10411 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10412 move to start of file.
10413 * i386-tdep.h (struct regcache): Add opaque declaration.
10414 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10415 declaration.
10416 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10417 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10418 * win32-nat.c (fake_create_process): Use ISO C style definition.
10419 * stabsread.c (define_symbol): Delete #ifndef
10420 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10421 stabs_argument_has_addr call, macro never defined.
10422
10423 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10424
10425 * op50-rom.c: Delete.
10426 * w89k-rom.c: Delete.
10427 * Makefile.in: Remove references.
10428
10429 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10430
10431 * x86-64-tdep.c: Update copyright year.
10432 (struct amd64_register_info): Rename from x86_64_register_info.
10433 (amd64_register_info): Rename from x86_64_register_info.
10434 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10435 (amd64_register_name): Rename from x86_64_register_name.
10436 (amd64_register_type): Rename from x86_64_register_type.
10437 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10438 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10439 (amd64_dwarf_reg_to_regnum): Rename from
10440 x86_64_dwarf_reg_to_regnum.
10441 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10442 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10443 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10444 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10445 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10446 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10447 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10448 (amd64_frame_cache): Rename from x86_64_frame_cache.
10449 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10450 (amd64_frame_prev_register): Rename from
10451 x86_64_frame_prev_register.
10452 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10453 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10454 (amd64_sigtramp_frame_cache): Rename from
10455 x86_64_sigtramp_frame_cache.
10456 (amd64_sigtramp_frame_prev_register): Rename from
10457 x86_64_sigtramp_frame_prev_register.
10458 (amd64_sigtramp_frame_unwind): Rename from
10459 x86_64_sigtramp_frame_unwind.
10460 (amd64_sigtramp_frame_sniffer): Rename from
10461 x86_64_sigtramp_frame_sniffer.
10462 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10463 (amd64_frame_base): Rename from x86_64_frame_base.
10464 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10465 (amd64_frame_align): Rename from x86_64_frame_align.
10466 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10467 (amd64_regset_from_core_section): Rename from
10468 x86_64_regset_from_core_section.
10469 (x86_64_init_abi): Update comments.
10470
10471 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
10472
10473 * MAINTAINERS (write after approval): Add myself.
10474
10475 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10476
10477 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10478 `float' arguments.
10479
10480 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10481
10482 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10483 such that it mentions a specific version of GCC that exhibits this
10484 bug.
10485
10486 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10487
10488 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10489 structure that has a single `float' member, store it in %f1 in
10490 addition to %f0.
10491
10492 * sparc-sol2-nat.c: Add missing '\'.
10493
10494 * sparc-tdep.c (sparc32_return_value): New function.
10495 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10496 Remove functions.
10497 (sparc32_gdbarch_init): Set return_value, don't set
10498 extract_return_value, store_return_value, use_struct_convention
10499 and return_value_on_stack.
10500
10501 * sparc-sol2-nat.c: Add missing ')'.
10502
10503 2004-01-03 J. Brobecker <brobecker@gnat.com>
10504
10505 * infrun.c (handle_step_into_function): New function.
10506 (handle_inferior_event): Extract out some code into the new
10507 function above.
10508
10509 2004-01-03 J. Brobecker <brobecker@gnat.com>
10510
10511 * infrun.c (handle_inferior_event): Move the declaration of
10512 real_stop_pc inside the if blocks where it is used.
10513
10514 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10515
10516 * sparc64-tdep.c (sparc64_16_byte_align_p)
10517 (sparc64_store_floating_fields, sparc64_store_floating_fields):
10518 Use check_typedef to get subtypes of structures and unions.
10519 (sparc64_store_return_value): Fix calculation of the appropriate
10520 offset into VALBUF when storing a structure or union.
10521 (sparc64_return_value): New function.
10522 (sparc64_use_struct_convention): Remove function.
10523 (sparc64_init_abi): Set return_value, don't set
10524 extract_return_value, store_return_value and
10525 use_struct_convention.
10526
10527 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
10528
10529 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
10530 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
10531 gdb/config/alpha/xm-alphaosf.h,
10532 gdb/config/powerpc/tm-ppcle-eabi.h,
10533 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
10534 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
10535 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
10536 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
10537 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
10538 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
10539 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
10540 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
10541 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
10542 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
10543 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
10544 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
10545 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
10546 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
10547 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
10548 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
10549 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
10550 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
10551 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
10552 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
10553 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
10554 Remove lines for .cvsignore files.
10555
10556 2004-01-03 J. Brobecker <brobecker@gnat.com>
10557
10558 * infrun.c: Back out the previous change.
10559
10560 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10561
10562 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
10563 sparc-*-sunos4* to the list of REMOVED configurations.
10564
10565 * configure.tgt: Add back sparc-*-vxworks*.
10566 * remote-vxsparc.c: Remove all includes except for "defs.h",
10567 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
10568 Include "sparc-tdep.h".
10569 (SPARC_R_G1): New define.
10570 (vxsparc_gregset): New variable.
10571 (ext_format_sparc): Remove extern declaration.
10572 (vx_read_register): Rewrite to use sparc32_supply_gregset and
10573 sparc32_supply_fpregset.
10574 (vx_write_register): Rewrite to use sparc32_collect_gregset,
10575 sparc_collect_rwindow and sparc32_collect_fpregset.
10576 * config/sparc/tm-vxworks.h: New file, based on recently removed
10577 tm-vxsparc.h.
10578 * config/sparc/vxworks.mt: New file, based on recently removed
10579 vxworks.mt.
10580
10581 2004-01-03 J. Brobecker <brobecker@gnat.com>
10582
10583 * infrun.c (handle_step_into_function): New function.
10584 (handle_inferior_event): Extract out some code into the new
10585 function above.
10586
10587 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10588
10589 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
10590 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
10591 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
10592 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
10593 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
10594 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
10595 (sparc_nat_h): New variable.
10596 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
10597 (tm-sun4os4.h): Remove dependency.
10598 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
10599 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
10600 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
10601 sparc-tdep.o): Update dependencies.
10602 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
10603 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
10604 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
10605 dependencies.
10606 * configure.host: Remove existing sparc-*-lynxos*,
10607 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
10608 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
10609 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
10610 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
10611 triplets.
10612 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
10613 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
10614 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
10615 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
10616 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
10617 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
10618 sparc64-*-solaris2* and sparc64-*-* triplets.
10619 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
10620 "symtab.h" and "objfiles.h".
10621 (BIAS): Remove define.
10622 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
10623 (X_DISP19): Remove macros.
10624 (sparc_fetch_instruction): Remove function.
10625 (struct gdbarch_tdep): Remove definition.
10626 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
10627 (sparc_breakpoint_from_pc): Remove function.
10628 (struct sparc64_frame_cache): Remove definition.
10629 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
10630 sparc64_unwind_pc): Remove functions.
10631 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
10632 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
10633 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
10634 (sparc64_frame_cache): Change return type to `struct
10635 sparc_frame_cache *'. Simply call sparc_frame_cache.
10636 (sparc64_frame_this_id, sparc64_frame_prev_register,
10637 sparc64_frame_base_address): Use `struct sparc_frame_cache'
10638 instead of `struct sparc64_frame_cache.
10639 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
10640 sparc_analyze_control_transfer, sparc_software_single_step,
10641 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
10642 _initialize_sparc64_tdep): Remove functions.
10643 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
10644 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
10645 macros.
10646 (sparc64_supply_gregset, sparc64_collect_gregset,
10647 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
10648 (sparc64_init_abi): New function.
10649 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
10650 inclusion guard. Include "sparc-tdep.h".
10651 (BIAS): Define.
10652 (r_tstate_offset, r_fprs_offset): New defines.
10653 (enum sparc_regnum): Remove defenition.
10654 (enum sparc64_regnum): Reformat.
10655 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
10656 (sparc64_init_abi, sparc64_supply_gregset,
10657 sparc64_collect_gregset, sparc64_supply_fpregset,
10658 sparc64_collect_fpregset): New prototypes.
10659 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
10660 Add extern declarations.
10661 (sparc64_sol2_init_abi): New prototype.
10662 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10663 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10664 prototypes.
10665 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
10666 "sparnbsd-nat.h".
10667 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
10668 functions.
10669 (_initialize_sparc64fbsd_nat): Remove initialization of
10670 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
10671 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
10672 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
10673 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
10674 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
10675 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
10676 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
10677 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
10678 (sparc64fbsd_r_y_offset): Remove variables.
10679 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10680 Make static and const.
10681 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10682 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10683 functions.
10684 (sparc64fbsd_gregset): New variable.
10685 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
10686 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
10687 and sparc64_supply_fpregset.
10688 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
10689 (sparc64fbsd_sigtramp_frame_this_id)
10690 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
10691 (sparc64fbsd_sigtramp_frame_unwind): New variable.
10692 (sparc64fbsd_sigtramp_frame_sniffer): New function.
10693 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
10694 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
10695 * sparcnbsd-tdep.c: Update copyright year. Include
10696 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
10697 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
10698 "value.h" and "sparcnbsd-tdep.h".
10699 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
10700 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
10701 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
10702 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
10703 defines.
10704 (sparcnbsd_gregset): New variable.
10705 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
10706 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
10707 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
10708 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
10709 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
10710 variables.
10711 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
10712 (sparc32nbsd_sigcontext_frame_this_id)
10713 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
10714 (sparc32nbsd_sigcontext_frame_unwind): New variable.
10715 (sparc32nbsd_sigtramp_frame_sniffer): New function.
10716 (sparcnbsd_get_longjmp_target_32,
10717 sparcnbsd_get_longjmp_target_64): Remove functions.
10718 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
10719 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
10720 sparcnbsd_init_elf): Remove.
10721 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
10722 (sparcnbsd_elf_init_abi): New functions.
10723 (_initialize_sparcnbsd_tdep): New prototype.
10724 (_initialize_sparnbsd_tdep): Update.
10725 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
10726 corelow.o. Add sparc64-nat.o and sparc-nat.o.
10727 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
10728 * config/sparc/linux.mh: Update comment.
10729 (XM_FILE, HOST_IPC): Remove variables.
10730 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
10731 sparc-linux-nat.o.
10732 * config/sparc/linux.mt: Update comment.
10733 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
10734 * config/sparc/nbsd.mt: Reformat.
10735 * config/sparc/nbsd64.mh: Update comment.
10736 (NATDEPFILES): Add sparc-nat.o.
10737 * config/sparc/nbsd64.mt: Update comment.
10738 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
10739 (TM_FILE): Set to tm-nbsd.h.
10740 * config/sparc/nbsdelf.mh: Update comment.
10741 (NATDEPFILES): Add sparc-nat.o.
10742 (XM_FILE): Delete.
10743 * config/sparc/nbsdaout.mh: Update comment.
10744 (NATDEPFILES): Add sparc-nat.o
10745 (XM_FILE): Delete.
10746 * config/sparc/nm-linux.h: Update copyright year. Don't include
10747 "config/nm-svr4.h" and "solib.h". Add protection against multiple
10748 inclusion.
10749 (KERNEL_U_SIZE): Remove define.
10750 (kernel_u_size): Remove prototype.
10751 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
10752 * config/sparc/nm-nbsd.h: Update copyright. Don't include
10753 "regcache.h".
10754 (CHILD_PREPARE_TO_STORE): Remove define.
10755 * config/sparc/nm-nbsdaout.h: Tweak some comments.
10756 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
10757 sparcnbsd-nat.c: Rewrite files.
10758 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
10759 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
10760 sparcnbsd-tdep.h: Remove files.
10761 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
10762 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
10763 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
10764 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
10765 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
10766 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
10767 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
10768 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
10769 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
10770 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
10771 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
10772 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
10773 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
10774 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
10775 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
10776 * config/sparc/linux64.mh, config/sparc/linux64.mt,
10777 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
10778 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
10779 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
10780
10781 2004-01-02 Andrew Cagney <cagney@redhat.com>
10782
10783 From 2003-12-18 Kazuhiro Inaoka:
10784 * configure.host: Add m32r-linux target.
10785
10786 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
10787
10788 * top.c (print_gdb_version): Update year to 2004.
10789
10790 2004-01-02 Mark Mitchell <mark@codesourcery.com>
10791
10792 * MAINTAINERS: Add myself to the write-after-approval category.
10793
10794 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
10795
10796 From Bernardo Innocenti <bernie@develer.com>:
10797 * configure.tgt: Add uClinux target.
10798
10799 2004-01-02 Andrew Cagney <cagney@redhat.com>
10800
10801 * utils.c (do_my_cleanups): Make static, add forward declaration.
10802 * defs.h (do_my_cleanups): Delete declaration.
10803
10804 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
10805
10806 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
10807 bfd/ChangeLog-0203.
10808
10809 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10810
10811 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
10812 in <machine/reg.h>.
10813 * configure, config.in: Regenerate.
10814
10815 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
10816 tui/ChangeLog-1998-2003.
10817 \f
10818 Local Variables:
10819 mode: change-log
10820 left-margin: 8
10821 fill-column: 74
10822 version-control: never
10823 End:
This page took 0.266827 seconds and 4 git commands to generate.