daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d0f853e1
NN
12004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2
3 * MAINTAINERS: Add self to Write-After-Approval.
4
ab14aeb0
JJ
52004-08-05 Jeff Johnston <jjohnstn@redhat.com>
6
7 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
8 libunwind-xxxx.so" where xxxx is UNW_TARGET.
9
9c8dbfa9
AC
102004-08-05 Andrew Cagney <cagney@gnu.org>
11
c8f3ca46
AC
12 * config/xm-sysv4.h: Delete file.
13 * config/mips/xm-irix5.h: Delete file.
14 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
15 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
16 * config/ia64/xm-aix.h: Delete file.
17 * config/ia64/aix.mh (XM_FILE): Delete.
18 * config/pa/xm-hppah.h: Delete file.
19 * config/pa/hpux11w.mh (XM_FILE): Delete.
20 * config/pa/hpux11.mh (XM_FILE): Delete.
21 * config/pa/hpux1020.mh (XM_FILE): Delete.
22 * config/pa/hppahpux.mh (XM_FILE): Delete.
23
5f7daaff
AC
24 * config/alpha/xm-alphalinux.h: Delete file.
25 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
26 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
27 * config/alpha/xm-alphaosf.h: Delete file.
28 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
29 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
30 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
31 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
32
69babf95
AC
33 * config/i386/xm-i386v.h: Delete file.
34 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
35 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
36 * config/i386/xm-i386sco.h: Delete file.
37 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
38 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
39 * config/i386/xm-i386v4.h: Delete file.
40 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
41 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
42 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
43 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
44
6f009c8a
AC
45 * config/vax/xm-vax.h: Delete file.
46 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
47 * config/vax/xm-vaxult2.h: Delete file.
48 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
49 * config/vax/vaxult2.mh (XM_FILE): Delete.
50 * config/vax/xm-vaxult.h: Delete file.
51 * config/vax/vaxult.mh (XM_FILE): Delete.
52 * config/vax/xm-vaxbsd.h: Delete file.
53 * config/vax/vaxbsd.mh (XM_FILE): Delete.
54
9c8dbfa9
AC
55 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
56 * gdbarch.h, gdbarch.c: Re-generate.
57 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
58 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
59 * frame.h: Delete deprecated_read_fp from comments.
60 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
61 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
62
84367a3e
MK
632004-08-04 Mark Kettenis <kettenis@gnu.org>
64
9c8e3411
MK
65 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
66 trampoline in OpenBSD 3.5-current.
67
b87bc0d8
MK
68 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
69 SSE registers.
70
84367a3e
MK
71 * Makefile.in: Remove embedded page breaks.
72
a44bddec
JB
732004-08-04 Jim Blandy <jimb@redhat.com>
74
7ab3286f
JB
75 * regcache.c (regcache_raw_read): Assert that, after calling
76 target_fetch_registers, the register we're reading is cached.
77
a44bddec
JB
78 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
79 a call to 'internal_error', with a more helpful error message.
80 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 81 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 82
35124113
AC
832004-08-04 Andrew Cagney <cagney@gnu.org>
84
85 * Makefile.in: Update dependencies.
86
9f643768
JB
872004-08-04 Jim Blandy <jimb@redhat.com>
88
6ced10dd
JB
89 Change the layout of the PowerPC E500 raw register cache to allow
90 the lower 32-bit halves of the GPRS to be their own raw registers,
91 not pseudoregisters.
92 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
93 add ppc_ev0_upper_regnum flag.
94 * rs6000-tdep.c: #include "reggroups.h".
95 (spe_register_p): Recognize the ev upper half registers as SPE
96 registers.
97 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
98 registers.
99 (e500_move_ev_register): New function.
100 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
101 vector registers are the pseudo-registers now, formed by splicing
102 together the gprs and the upper-half registers.
103 (e500_register_reggroup_p): New function.
104 (P): Macro deleted.
105 (P8, A4): New macro.
106 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
107 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
108 macros.
109 (registers_e500): Rearrange register set so that the raw register
110 set contains 32-bit GPRs and upper-half registers, and the SPE
111 vector registers become pseudo-registers.
112 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
113 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
114 register numbers are now the same for the E500 as they are for
115 other PowerPC variants. Register e500_register_reggroup_p as the
116 register group function for the E500.
117 * Makefile.in (rs6000-tdep.o): Update dependencies.
118
119 Adapt PPC E500 native support to the new raw regcache layout.
120 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
121 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
122 (fetch_spe_register, store_spe_register): Handle fetching/storing
123 all the SPE registers at once, if regno == -1. These now take
124 over the job of fetch_spe_registers and store_spe_registers.
125 (fetch_spe_registers, store_spe_registers): Deleted.
126 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
127 unconditionally; they're always raw. Fetch/store SPE upper half
128 registers, if present, instead of ev registers.
129 (fetch_register, store_register): Remove sanity checks: gprs are
130 never pseudo-registers now, so we never need to even mention any
131 registers that are ever pseudoregisters.
132
9f643768
JB
133 Use a fixed register numbering when communicating with the PowerPC
134 simulator.
135 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
136 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
137 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
138 New functions.
139 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
140 init_sim_regno_table.
141 * Makefile.in (gdb_sim_ppc_h): New variable.
142 (rs6000-tdep.o): Update dependencies.
143
1e2279c8
AC
1442004-08-02 Andrew Cagney <cagney@gnu.org>
145
1d94326f
AC
146 * cris-tdep.c (cris_register_size): Restore function, still used
147 locally.
148
331ae7ed
AC
149 * gdbarch.sh (deprecated_target_read_fp)
150 (deprecated_frame_locals_address, deprecated_frame_args_address)
151 (deprecated_frame_chain_valid, deprecated_frame_chain)
152 (deprecated_init_extra_frame_info, deprecated_pop_frame)
153 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
154 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
155 * gdbarch.h, gdbarch.c: Re-generate.
156 * regcache.c (deprecated_read_fp): Do not call
157 DEPRECATED_TARGET_READ_FP_P.
158 * infcmd.c (default_print_registers_info): Do not call
159 DEPRECATED_DO_REGISTERS_INFO.
160 * frame-base.c (default_frame_locals_address): Do not call
161 DEPRECATED_FRAME_LOCALS_ADDRESS.
162 (default_frame_args_address): Do not call
163 DEPRECATED_FRAME_ARGS_ADDRESS.
164
1e2279c8
AC
165 * gdbarch.sh (deprecated_register_raw_size)
166 (deprecated_register_virtual_size:int): Delete.
167 * gdbarch.h, gdbarch.c: Re-generate.
168 * cris-tdep.c (cris_register_size): Delete.
169 (cris_gdbarch_init): Update.
170 * alpha-tdep.c (alpha_register_raw_size)
171 (alpha_register_virtual_size): Delete.
172 (alpha_gdbarch_init): Update.
173
a90c06b4
AC
174 * gdbarch.sh (deprecated_register_virtual_type)
175 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
176 (deprecated_dummy_write_sp): Delete.
177 * gdbarch.h, gdbarch.c: Re-generate.
178
f42accbe
AC
179 * gdbarch.sh (deprecated_register_bytes): Delete.
180 * gdbarch.h, gdbarch.c: Re-generate.
181 * regcache.c (deprecated_register_bytes): New function.
182 * regcache.h (deprecated_register_bytes): Declare.
183 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
184 * v850-tdep.c (v850_gdbarch_init): Update.
185 * sh64-tdep.c (sh64_gdbarch_init): Update.
186 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
187 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
188 * mcore-tdep.c (mcore_gdbarch_init): Update.
189 * cris-tdep.c (cris_gdbarch_init): Update.
190 * arm-tdep.c (arm_gdbarch_init): Update.
191 * remote.c (init_remote_state): Update.
192 * remote-vx.c (vx_prepare_to_store): Update.
193 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
194 * irix5-nat.c (fetch_core_registers): Update.
195 * cris-tdep.c (cris_register_bytes_ok): Update.
196 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
197
45c9dd44
AC
198 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
199 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
200 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
201 (mips_insn16_frame_base_address, mips_insn16_frame_base)
202 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
203 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
204 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
205 (mips_insn32_frame_base_address, mips_insn32_frame_base)
206 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
207 with mips_insn16 and mips_insn32.
208
3acba339
AC
209 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
210 * rs6000-tdep.c (rs6000_push_dummy_call)
211 (rs6000_extract_return_value): Use register_size.
212 * xstormy16-tdep.c (xstormy16_get_saved_register)
213 (xstormy16_extract_return_value): Ditto.
214 * valops.c (value_assign): Ditto.
215 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
216 * v850-tdep.c (v850_extract_return_value): Ditto.
217 * tracepoint.c (collect_symbol): Ditto.
218 * target.c (debug_print_register): Ditto.
219 * stack.c (frame_info): Ditto.
220 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
221 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
222 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
223 (store_register_using_P): Ditto.
224 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
225 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
226 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
227 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
228 * regcache.c (deprecated_read_register_bytes)
229 (deprecated_write_register_bytes, read_register)
230 (write_register): Ditto.
231 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
232 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
233 * monitor.c (monitor_supply_register, monitor_fetch_register)
234 (monitor_store_register): Ditto.
235 * mn10300-tdep.c (mn10300_pop_frame_regular)
236 (mn10300_print_register): Ditto.
237 * mipsv4-nat.c (fill_fpregset): Ditto.
238 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
239 (mips64_fill_fpregset): Ditto.
240 * mi/mi-main.c (register_changed_p, get_register)
241 (mi_cmd_data_write_register_values): Ditto.
242 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
243 * irix5-nat.c (fill_gregset, fetch_core_registers):
244 * infrun.c (write_inferior_status_register): Ditto.
245 * infptrace.c (fetch_register, store_register): Ditto.
246 * infcmd.c (default_print_registers_info): Ditto.
247 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
248 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
249 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
250 * hpux-thread.c (hpux_thread_fetch_registers)
251 (hpux_thread_store_registers): Ditto.
252 * hppah-nat.c (store_inferior_registers, fetch_register):
253 * findvar.c (value_from_register): Ditto.
254 * dve3900-rom.c (fetch_bitmapped_register):
255 * cris-tdep.c (cris_gdbarch_init): Ditto.
256 * alpha-tdep.h: Ditto.
257 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
258
01e1877c
AC
259 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
260 DEPRECATED_REGISTER_RAW_SIZE from comments.
261 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
262 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
263 DEPRECATED_REGISTER_RAW_SIZE.
264 * findvar.c (value_of_register): Simplify by assuming that the
265 registers raw and virtual sizes are identical.
266 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
267 comment.
268 * arch-utils.c (generic_register_size): Simplify by assuming
269 register_type.
270
73f458fb
AC
271 * regcache.c (legacy_read_register_gen, real_register)
272 (legacy_write_register_gen): Delete, not used.
273
336a3131
AC
274 * regcache.c (struct regcache_descr): Delete legacy_p.
275 (init_legacy_regcache_descr): Delete function.
276 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
277 Do not use deprecated register functions.
278 (regcache_raw_read, deprecated_write_register_gen):
279 (deprecated_read_register_gen, regcache_raw_write): Delete code
280 predicated on legacy_p.
281 (register_size): Delete check against register raw size.
282
c1d546cd
AC
283 * cris-tdep.c (cris_register_type): Replace
284 cris_register_virtual_type.
285 (cris_gdbarch_init): Update, set register_type.
286
48c2c0a6
AC
287 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
288 * gdbarch.h, gdbarch.c: Re-generate.
289 * arm-tdep.c (arm_frameless_function_invocation): Delete.
290 (arm_gdbarch_init) Do not set frameless function invocation.
291 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
292 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
293 * frv-tdep.c (frv_frameless_function_invocation): Delete.
294 (frv_gdbarch_init): Do not set frameless function invocation.
295 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
296 * sh-tdep.c (sh_gdbarch_init): Ditto.
297 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
298 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
299 * avr-tdep.c (avr_gdbarch_init): Ditto.
300
474093a6
AC
301 * blockframe.c (legacy_frame_chain_valid): Delete function.
302
3c109c8b
AC
303 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
304 and pc. Update comments.
305 (pc_in_dummy_frame): Delete function.
306 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
307 use the "id".
308 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
309 call_hi, top and pc, use the id.
310 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
311
96860204
AC
312 * dummy-frame.c: Include "gdb_string.h".
313 (generic_save_call_dummy_addr, generic_push_dummy_frame)
314 (generic_save_dummy_frame_tos): Delete.
315 (dummy_frame_push): New function, replaces above.
316 * dummy-frame.h: Update copyright.
317 (dummy_frame_push): Declare.
318 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
319 (generic_save_call_dummy_addr): Delete declarations.
320 * infcall.c: Include "dummy-frame.h".
321 (call_function_by_hand): Add locals caller_regcache,
322 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
323 with call to frame_save_as_regcache plus cleanup. Delete calls to
324 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
325 Move clear_proceed_status to just before the resume, add call to
326 dummy_frame_push (discard cleanup).
327 * Makefile.in (infcall.o): Add $(dummy_frame_h).
328 (dummy-frame.o): Add $(gdb_string_h).
329
d67ec5db
AC
3302004-08-01 Andrew Cagney <cagney@gnu.org>
331
332 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
333 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
334 * dummy-frame.c (find_dummy_frame): Delete.
335 (struct dummy_frame_cache, dummy_frame_sniffer)
336 (dummy_frame_prev_register, dummy_frame_this_id)
337 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
338 frame unwinder using a dummy_frame_cache.
339
a81dcb05
AC
3402004-08-01 Andrew Cagney <cagney@gnu.org>
341
342 * frame.h (frame_save_as_regcache): Declare.
343 * frame.c (frame_save_as_regcache): New function.
344 (do_frame_read_register): Replace do_frame_unwind_register.
345 (frame_pop): Use frame_save_as_regcache.
346 * dummy-frame.c (generic_push_dummy_frame): Use
347 frame_save_as_regcache.
348
aa495d11
JB
3492004-08-01 Joel Brobecker <brobecker@gnat.com>
350
351 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
352 file as included until we record the first line in the linetable.
353
ff65ac78
AC
3542004-08-01 Andrew Cagney <cagney@gnu.org>
355
356 * frame.h (deprecated_pop_dummy_frame)
357 (deprecated_read_register_dummy)
358 (deprecated_generic_find_dummy_frame): Delete.
359 * dummy-frame.c (deprecated_generic_find_dummy_frame)
360 (deprecated_read_register_dummy)
361 (deprecated_find_dummy_frame_regcache)
362 (discard_innermost_dummy)
363 (deprecated_pop_dummy_frame): Delete.
364 (dummy_frame_this_id): Simplify.
365 (struct dummy_frame): Delete "fp" and "sp".
366 (find_dummy_frame): Simplify.
367 (generic_push_dummy_frame): Do not set "fp" or "sp".
368 (fprint_dummy_frames): Do not print "fp" and "sp"
369
37bdc87e
MK
3702004-08-01 Mark Kettenis <kettenis@gnu.org>
371
372 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
373 (struct i386_insn): New structure.
374 (i386_match_insn): New function.
375 (i386_frame_setup_skip_insns): New variable.
376 (i386_analyze_frame_setup): Change to use i386_match_insn and the
377 array i386_frame_setup_insns of instructions that should be
378 skipped inside the frame setup sequence.
379
8241eaa6
AC
3802004-08-01 Andrew Cagney <cagney@gnu.org>
381
5bc602c7
AC
382 * frame.h (deprecated_frame_xmalloc_with_cleanup)
383 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
384 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
385 * stack.c (frame_info): Delete references to
386 DEPRECATED_FRAME_INIT_SAVED_REGS and
387 deprecated_get_frame_saved_regs.
388 * frame.c (struct frame_info): Delete saved_regs and extra_info.
389 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
390 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
391 (frame_unwind_register_signed)
392 (frame_unwind_register_unsigned)
393 (frame_unwind_unsigned_register): Use register_size.
394 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
395 (deprecated_frame_xmalloc_with_cleanup)
396 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
397 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
398
03d363a1
AC
399 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
400 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
401 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
402 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
403
8241eaa6
AC
404 * infcall.c (call_function_by_hand): Do not use
405 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
406 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
407 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
408 DEPRECATED_STACK_ALIGN.
409
f00df8b7
AC
4102004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
411
412 Committed by Andrew Cagney.
413 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
414
eec63939
AC
4152004-08-01 Andrew Cagney <cagney@gnu.org>
416
417 * mips-tdep.c (mips16_frame_cache)
418 (mips16_frame_this_id, mips16_frame_prev_register)
419 (mips16_frame_unwind, mips16_frame_sniffer)
420 (mips16_frame_base_address, mips16_frame_base)
421 (mips16_frame_base_sniffer, mips32_frame_cache)
422 (mips32_frame_this_id, mips32_frame_prev_register)
423 (mips32_frame_unwind, mips32_frame_sniffer)
424 (mips32_frame_base_address, mips32_frame_base)
425 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
426 separate heuristic mips16 and mips32 unwinders.
427 (mips_stub_frame_cache, mips_stub_frame_this_id)
428 (mips_stub_frame_prev_register)
429 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
430 (mips_stub_frame_base_address, mips_stub_frame_base)
431 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
432 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
433 match true mdebug frames.
434 (non_heuristic_proc_desc): Add forward declaration.
435
e66299b3
AC
4362004-08-01 Andrew Cagney <cagney@gnu.org>
437
83cbbf3e
AC
438 * config/mips/tm-irix6.h: Delete file.
439 * config/mips/tm-irix5.h: Delete file.
440 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
441 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
442
22d41b37
AC
443 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
444 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
445 * config/nm-gnu.h (NO_CORE_OPS): Delete.
446 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
447 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
448 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
449 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
450 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
451 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
452 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
453 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
454 (TARGET_SIGNAL_RAW_VALUES): Delete.
455 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
456 Delete.
457 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
458 (TARGET_HW_WATCH_LIMIT): Delete.
459 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
460 * minimon.h: Delete file.
461
e66299b3
AC
462 * trad-frame.c (trad_frame_get_this_base)
463 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
464 functions.
465 * trad-frame.h (trad_frame_set_this_base)
466 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
467
1f67027d
AC
4682004-07-31 Andrew Cagney <cagney@gnu.org>
469
470 * trad-frame.c (trad_frame_get_prev_register): Rename
471 trad_frame_get_prev_register.
472 * vax-tdep.c (vax_frame_prev_register): Update.
473 * trad-frame.h: Update.
474 * trad-frame.c (trad_frame_get_register): Update.
475 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
476 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
477 Update.
478 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
479 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
480 Update.
481 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
482 Update.
483 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
484 Update.
485 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
486 Update.
487 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
488 Update.
489 * s390-tdep.c (s390_frame_prev_register)
490 (s390_stub_frame_prev_register)
491 (s390_sigtramp_frame_prev_register): Update.
492 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
493 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
494 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
495 * m88k-tdep.c (m88k_frame_prev_register)
496 * m68hc11-tdep.c (m68hc11_frame_prev_register)
497 * m32r-tdep.c (m32r_frame_prev_register): Update.
498 * hppa-tdep.c (hppa_frame_prev_register_helper)
499 * frv-tdep.c (frv_frame_prev_register): Update.
500 * d10v-tdep.c (d10v_frame_prev_register): Update.
501 * cris-tdep.c (cris_frame_prev_register): Update.
502 * avr-tdep.c (avr_frame_prev_register): Update.
503 * arm-tdep.c (arm_prologue_prev_register)
504 (arm_sigtramp_prev_register): Update.
505
c1bf6f65
AC
5062004-07-31 Andrew Cagney <cagney@gnu.org>
507
508 * frame.h (legacy_saved_regs_unwind)
509 (legacy_frame_chain_valid, legacy_frame_p)
510 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
511 * dummy-frame.c (dummy_frame_this_id): Simplify.
512 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
513 * frame.c (struct frame_info): Delete the field "type".
514 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
515 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
516 (legacy_saved_regs_unwind, legacy_frame_p)
517 (frame_type_from_pc): Delete.
518 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
519 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
520
dc856692
MK
5212004-07-31 Mark Kettenis <kettenis@gnu.org>
522
5a5effe1
MK
523 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
524 indentation.
525
d4fd50a6
MK
526 * mips-nat.c: Remove file.
527 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
528 (mips-nat.o): Remove dependency.
529
2689df5a
MK
530 * infptrace.c: Update copyright year.
531 (fetch_register): Pass NULL in regcache_raw_supply call instead of
532 explicitly setting the buffer to all zeroes.
533
dc856692
MK
534 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
535 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
536
763910e0
AC
5372004-07-30 Andrew Cagney <cagney@gnu.org>
538
539 * GDB 6.2 released from gdb_6_2-branch.
540
0b66e38c
EZ
5412004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
542
543 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
544
545 * exec.c (exec_file_attach):
546 * nto-tdep.c (nto_find_and_open_solib):
547 * pa64solib.c (pa64_solib_sizeof_symbol_table):
548 * solib.c (solib_open):
549 * somsolib.c (som_solib_sizeof_symbol_table):
550 * source.c (is_regular_file, openp, open_source_file):
551 * symfile.c (symfile_bfd_open):
552 * wince.c (upload_to_device): Differentiate between the search for
553 binary and source files.
554
be7d7357
AC
5552004-07-30 Andrew Cagney <cagney@gnu.org>
556
557 * complaints.c (_initialize_complaints): Pass NULL to
558 add_setshow_zinteger_cmd for help_doc.
559 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
560
ddc9cd0f
AC
5612004-07-30 Andrew Cagney <cagney@gnu.org>
562
563 Fix PR i18n/761.
564 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
565 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
566 $(PACKAGE).pot and update-po.
567 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
568 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
569 (update-po): New rules.
570 (localedir): Define using autoconf.
571 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
572 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
573 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
574 * configure.in: Generate CATALOGS and LINGUAS from contents of
575 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
576 * configure: Re-generate.
577 * po/gdbtext: New file
578
e92f3704
JG
5792004-07-30 Jerome Guitton <guitton@gnat.com>
580
581 * MAINTAINERS: Reorder Write After Approval list in alphabetical
582 order.
583
b0f35d58
DL
5842004-07-30 David Lecomber <dsl@sources.redhat.com>
585
586 * dwarf2read.c (read_file_scope): Set producer if attribute
587 present.
588 (struct dwarf2_cu): Added new member producer.
589
ce7d4522
JG
5902004-07-30 Jerome Guitton <guitton@gnat.com>
591
592 * inflow.c (kill_command): release file handles in BFD.
593 * exec.c (exec_file_attach): Ditto.
594 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
595
05ee07c7
AC
5962004-07-29 Andrew Cagney <cagney@gnu.org>
597
598 * PROBLEMS (mips-irix): Note that it is broken.
599
62eceb47
AC
6002004-07-29 Andrew Cagney <cagney@gnu.org>
601
e57b8d41
AC
602 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
603 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
604
d334389b
AC
605 * config/xm-nbsd.h: Delete file.
606 * config/arm/xm-nbsd.h: Delete file.
607 * config/i386/xm-nbsd.h: Delete file.
608 * config/ns32k/xm-nbsd.h: Delete file.
609 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
610 * config/i386/nbsdelf.mh (XM_FILE): Delete.
611 * config/i386/nbsdaout.mh (XM_FILE): Delete.
612 * config/arm/nbsdelf.mh (XM_FILE): Delete.
613 * config/arm/nbsdaout.mh (XM_FILE): Delete.
614
e910f676
AC
615 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
616 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
617 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
618 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
619 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
620 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
621
6fa856b9
AC
622 * config/powerpc/xm-linux.h: Delete empty file.
623 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
624 * config/powerpc/linux.mh (XM_FILE): Delete.
625 * config/m68k/xm-linux.h: Delete empty file.
626 * config/m68k/linux.mh (XM_FILE): Delete.
627 * config/ia64/xm-linux.h: Delete empty file.
628 * config/ia64/linux.mh (XM_FILE): Delete.
629 * config/arm/xm-linux.h: Delete empty file.
630 * config/arm/linux.mh (XM_FILE): Delete.
631
471ae5ae
AC
632 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
633 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
634 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
635 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
636 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
637 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
638 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
639 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
640
62eceb47
AC
641 * config/m68k/xm-m68k.h: Delete file.
642 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
643 copyright.
644 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
645 * config/pa/xm-linux.h: Delete empty file.
646 * config/pa/linux.mh (XM_FILE): Delete.
647 * config/i386/xm-i386.h: Delete empty file.
648 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
649 "i386/xm-i386.h".
650 * config/i386/obsdaout.mh (XM_FILE): Delete.
651 * config/i386/obsd64.mh (XM_FILE): Delete.
652 * config/i386/fbsd64.mh (XM_FILE): Delete.
653 * config/i386/nto.mh (XM_FILE): Delete.
654 * config/i386/obsd.mh (XM_FILE): Delete.
655 * config/i386/linux64.mh (XM_FILE): Delete.
656 * config/i386/linux.mh (XM_FILE): Delete.
657 * config/i386/i386sol2.mh (XM_FILE): Delete.
658 * config/i386/i386gnu.mh (XM_FILE): Delete.
659 * config/i386/fbsd.mh (XM_FILE): Delete.
660 * config/i386/nbsd64.mh (XM_FILE): Delete.
661
c35f4ffc
AC
6622004-07-29 Andrew Cagney <cagney@gnu.org>
663
664 * config/pa/xm-linux.h: Do not include "floatformat.h".
665 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
666 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
667 * config/i386/xm-i386.h: Do not include "floatformat.h".
668 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
669 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
670 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
671 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
672 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
673 GDB_HOST_LONG_DOUBLE_FORMAT instead.
674 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
675 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
676 * configure, config.in: Regenerate.
677 * configure.host (gdb_host_float_format, gdb_host_double_format)
678 (gdb_host_long_double_format): Set according to the host.
679
624a44a3
AC
6802004-07-29 Andrew Cagney <cagney@gnu.org>
681
682 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
683
0dea2468
AC
6842004-07-28 Andrew Cagney <cagney@gnu.org>
685
686 * PROBLEMS: Mention threads/1650.
687 * NEWS: Mention the NPTL fix.
688
b3f42336
AC
6892004-07-28 Andrew Cagney <cagney@gnu.org>
690
691 * cli/cli-decode.c (add_setshow_cmd): Delete function.
692 (add_setshow_cmd_full): Make static.
693 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
694 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
695 * cli/cli-decode.c (add_setshow_filename_cmd)
696 (add_setshow_string_cmd): New functions.
697 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
698 * mips-tdep.c (_initialize_mips_tdep): Update.
699 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
700 * cli/cli-logging.c (_initialize_cli_logging): Update.
701 * complaints.c (_initialize_complaints): Update.
702 * remote.c (_initialize_remote): Update.
703
3b64bf98
AC
7042004-07-28 Andrew Cagney <cagney@gnu.org>
705
706 * cli/cli-decode.c (add_setshow_zinteger_cmd)
707 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
708 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
709 print parameters. Make string parameters constant.
710 * command.h: Update. Update copyright.
711 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
712 * observer.c (_initialize_observer): Ditto.
713 * frame.c (_initialize_frame): Ditto.
714 * complaints.c (_initialize_complaints): Ditto.
715 * maint.c (_initialize_maint_cmds): Ditto.
716 * target.c (initialize_targets): Ditto.
717 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
718 * infcall.c (_initialize_infcall): Ditto.
719 * arm-tdep.c (_initialize_arm_tdep): Ditto.
720 * m32r-rom.c (_initialize_m32r_rom): Ditto.
721 * remote-rdi.c (_initialize_remote_rdi): Ditto.
722 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
723 * mips-tdep.c (_initialize_mips_tdep): Ditto.
724
e9667a65
AC
7252004-07-28 Andrew Cagney <cagney@gnu.org>
726
54a5b07d
AC
727 * gdbtypes.c (lookup_primitive_typename): Delete function.
728 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
729 * ada-lex.l: Use language_lookup_primitive_type_by_name.
730 * gdbtypes.c (lookup_typename): Ditto.
731 * f-exp.y (yylex): Ditto.
732 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
733
e9667a65
AC
734 * scm-lang.c (c_builtin_types): Delete extern declaration.
735 (scm_language_defn): Replace
736 string_char_type and primitive_type_vector with
737 la_language_arch_info.
738 * jv-lang.c (java_language_defn): Replace
739 string_char_type and primitive_type_vector with
740 la_language_arch_info.
741 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
742 c_builtin_types in comment.
743 * c-lang.h (struct language_arch_info): Declare opaque.
744 (c_language_arch_info): Declare.
745 (c_builtin_types): Delete declaration.
746 * c-lang.c (c_language_arch_info): Set string_char_type to
747 builtin_char, not builtin_true_char. Make global.
748 (c_builtin_types): Delete array.
749 (asm_language_defn, minimal_language_defn): Replace
750 string_char_type and primitive_type_vector with
751 la_language_arch_info.
752
685419e2
AC
7532004-07-28 Andrew Cagney <cagney@gnu.org>
754
755 * gdbtypes.h (struct builtin_type): Rename true_char to
756 builtin_true_char.
757 * gdbtypes.c (gdbtypes_post_init): Update.
758 * c-lang.c (arch_info): New function.
759 (enum c_primitive_types): New enum.
760 (c_language_defn): Instead of string_char_type and
761 primitive_type_vector set la_language_arch_info.
762
5a44ea29
AC
7632004-07-28 Andrew Cagney <cagney@gnu.org>
764
765 * language.h (struct language_arch_info): Fix typo
766 s/primative/primitive/.
767 * gdbtypes.c (lookup_primitive_typename): Ditto.
768 * language.c (language_lookup_primitive_type_by_name)
769 (unknown_language_arch_info): Ditto.
770
f290d38e
AC
7712004-07-27 Andrew Cagney <cagney@gnu.org>
772
773 * defs.h (enum language): Add nr_languages.
774 * language.h (struct language_arch_info): Define.
775 (struct language_defn): Add la_language_arch_info.
776 (language_lookup_primative_type_by_name): Declare.
777 (language_string_char_type): Declare.
778 * language.c (_initialize_language, language_gdbarch_post_init)
779 (struct language_gdbarch, language_gdbarch_data): Implement
780 per-architecture language information.
781 (unknown_language_arch_info, language_string_char_type)
782 (language_lookup_primative_type_by_name): New functions.
783 (unknown_language_defn, auto_language_defn)
784 (local_language_defn): Set la_language_arch_info to
785 unknown_language_arch_info.
786 (unknown_builtin_types): Delete.
787 * gdbtypes.c (lookup_primitive_typename): Use
788 language_lookup_primative_type_by_name.
789 (create_string_type): Use language_string_char_type.
790 * values.c (value_from_string): Use language_string_char_type.
791 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
792 * p-lang.c (pascal_language_defn): Ditto.
793 * m2-lang.c (m2_language_defn): Ditto.
794 * jv-lang.c (java_language_defn): Ditto.
795 * objc-lang.c (objc_language_defn): Ditto.
796 * f-lang.c (f_language_defn): Ditto.
797 * c-lang.c (c_language_defn, cplus_language_defn)
798 (asm_language_defn, minimal_language_defn): Ditto.
799
000177f0
AC
8002004-07-27 Andrew Cagney <cagney@gnu.org>
801
802 * gdbtypes.h (struct builtin_type): Declare.
803 (builtin_type): Declare.
804 * d10v-tdep.c (d10v_register_type): Use builtin_type.
805 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
806 (gdbtypes_post_init): New function.
807 (builtin_type): New function.
808
e22f895c
KI
8092004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
810
811 * remote-m32r-sdi.c: Fix breakpoint bug.
812 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
813 recv_char_data, recv_long_data): New functions to replace communication
814 sequences.
815
536517dd
MC
8162004-07-26 Michael Chastain <mec.gnu@mindspring.com>
817
818 Document PR threads/1650.
819 * PROBLEMS (Threads): Document problem with many threads
820
a0a44d18
AC
8212004-07-26 Andrew Cagney <cagney@gnu.org>
822
823 * gdb-mi.el: Move from here ...
824 * mi/gdb-mi.el: ... to here.
825
7ac4ac06
AC
8262004-07-26 Andrew Cagney <cagney@gnu.org>
827
828 Problem reported by Ashley Pittman <ashley@quadrics.com>.
829 * main.c (captured_main): When in batch mode always detach.
830
a1b461bf
AC
8312004-07-26 Andrew Cagney <cagney@gnu.org>
832
833 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
834 and h8300 as broken.
835 * NEWS: END-OF-LIFE frame compatibility module.
836 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
837 specific comments.
838
cb1a6d5f
AC
8392004-07-26 Andrew Cagney <cagney@gnu.org>
840
841 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
842 * xcoffsolib.c (_initialize_xcoffsolib): Update.
843 * wince.c (_initialize_wince): Update.
844 * win32-nat.c (_initialize_win32_nat): Update.
845 * varobj.c (_initialize_varobj): Update.
846 * valops.c (_initialize_valops): Update.
847 * utils.c (initialize_utils, initialize_utils): Update.
848 * tui/tui-win.c (_initialize_tui_win): Update.
849 * top.c (init_main): Update.
850 * symfile.c (_initialize_symfile): Update.
851 * source.c (_initialize_source): Update.
852 * somsolib.c (_initialize_som_solib): Update.
853 * solib.c (_initialize_solib): Update.
854 * solib-frv.c (_initialize_frv_solib): Update.
855 * serial.c (_initialize_serial): Update.
856 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
857 * remote.c (_initialize_remote, _initialize_remote): Update.
858 * remote-vx.c (_initialize_vx): Update.
859 * remote-utils.c (_initialize_sr_support): Update.
860 * remote-sds.c (_initialize_remote_sds): Update.
861 * remote-mips.c (_initialize_remote_mips): Update.
862 * remote-e7000.c (_initialize_remote_e7000): Update.
863 * proc-api.c (_initialize_proc_api): Update.
864 * printcmd.c: Update.
865 * parse.c (_initialize_parse): Update.
866 * pa64solib.c (_initialize_pa64_solib): Update.
867 * p-valprint.c (_initialize_pascal_valprint): Update.
868 * monitor.c (_initialize_remote_monitors): Update.
869 * mips-tdep.c (_initialize_mips_tdep): Update.
870 * mcore-tdep.c (_initialize_mcore_tdep): Update.
871 * maint.c (_initialize_maint_cmds): Update.
872 * lin-lwp.c (_initialize_lin_lwp): Update.
873 * language.c (_initialize_language): Update.
874 * kod.c (_initialize_kod): Update.
875 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
876 * i386-tdep.c (_initialize_i386_tdep): Update.
877 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
878 * gdbarch.sh: Update.
879 * gdbarch.c: Re-generate.
880 * gdb-events.sh: Update.
881 * gdb-events.c: Re-generate.
882 * frame.c (_initialize_frame): Update.
883 * exec.c: Update.
884 * demangle.c (_initialize_demangler): Update.
885 * dcache.c (_initialize_dcache): Update.
886 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
887 * cp-valprint.c (_initialize_cp_valprint): Update.
888 * corefile.c (_initialize_core): Update.
889 * command.h: Update.
890 * cli/cli-decode.h: Update.
891 * cli/cli-cmds.c (init_cli_cmds): Update.
892 * charset.c (_initialize_charset): Update.
893 * breakpoint.c (_initialize_breakpoint): Update.
894 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
895 * alpha-tdep.c (_initialize_alpha_tdep): Update.
896 * aix-thread.c (_initialize_aix_thread): Update.
897
b4632131
MK
8982004-07-24 Mark Kettenis <kettenis@gnu.org>
899
900 Partial fix for PR backtrace/1718.
901 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
902 that GCC migrates into the prolugue. Don't handle any
903 instructions that clobber %ebx.
904
822c9732
AC
9052004-07-23 Andrew Cagney <cagney@gnu.org>
906
907 Use regcache_raw_collect instead of regcache_collect.
908 * regcache.h (regcache_collect): Delete declaration.
909 * regcache.c (regcache_colect): Delete function.
910 * win32-nat.c (do_child_store_inferior_registers): Update.
911 * sol-thread.c (sol_thread_store_registers): Update.
912 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
913 * rs6000-nat.c (store_register): Update.
914 * remote.c (store_register_using_P, remote_store_registers): Update.
915 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
916 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
917 (fill_vrregset, store_spe_registers, fill_gregset)
918 (fill_gregset): Update.
919 * nto-procfs.c (procfs_store_registers): Update.
920 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
921 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
922 * m68klinux-nat.c (store_register, fill_gregset): Update.
923 * m68k-tdep.c (fill_gregset): Update.
924 * infptrace.c (store_register): Update.
925 * i386-nto-tdep.c (i386nto_regset_fill): Update.
926 * i386-linux-nat.c (store_register, fill_gregset): Update.
927 * hppa-linux-nat.c (fill_gregset): Update.
928 * go32-nat.c (store_register): Update.
929 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
930 (store_fp_regs): Update.
931 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
932 (store_nwfpe_extended, store_fpregister, store_fpregs)
933 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
934 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
935 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
936 (store_regs_user_thread, store_regs_kernel_thread): Update.
937
32b05c07
MK
9382004-07-24 Mark Kettenis <kettenis@gnu.org>
939
940 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
941 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
942 encoding.
943 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
944 member of `struct comp_unit'.
945
8567c30f
AC
9462004-07-23 Andrew Cagney <cagney@gnu.org>
947
948 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
949 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
950
f6da8dd8
MH
9512004-07-23 Martin Hunt <hunt@redhat.com>
952 Kevin Buettner <kevinb@redhat.com>
953
954 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
955 alignment was being added to the offset instead of multiplied.
956
bd921882
MK
9572004-07-23 Mark Kettenis <kettenis@gnu.org>
958
24f033e8
MK
959 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
960 changed signal trampoline in OpenBSD 3.5-current.
961
90f3cecd
MK
962 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
963 <machine/pcb.h> and "bsd-kvm.h".
964 (sparc64nbsd_supply_pcb): New function.
965 (_initialize_sparc64nbsd_nat): Renamed from
966 _initialize_sparcnbsd_nat. Enable libkvm interface.
967 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
968 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
969 (LOADLIBES): New variable.
970
a4954a62
MK
971 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
972
bd921882
MK
973 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
974
23a6d369
AC
9752004-07-21 Andrew Cagney <cagney@gnu.org>
976
977 Use regcache_raw_supply instead of supply_register.
978 * regcache.h (supply_register): Delete declaration.
979 * regcache.c (supply_register): Delete function.
980 * wince.c (do_child_fetch_inferior_registers): Update.
981 * win32-nat.c (do_child_fetch_inferior_registers)
982 (fetch_elf_core_registers): Update.
983 * v850ice.c (v850ice_fetch_registers): Update.
984 * thread-db.c (thread_db_store_registers): Update.
985 * sol-thread.c (sol_thread_store_registers): Update.
986 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
987 * rs6000-nat.c (fetch_register): Update.
988 * rom68k-rom.c (rom68k_supply_one_register): Update.
989 * remote.c (remote_wait, remote_async_wait): Update.
990 * remote-st.c (get_hex_regs): Update.
991 * remote-sim.c (gdbsim_fetch_register): Update.
992 * remote-sds.c (sds_fetch_registers): Update.
993 * remote-rdp.c (remote_rdp_fetch_register): Update.
994 * remote-rdi.c (arm_rdi_fetch_registers): Update.
995 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
996 * remote-m32r-sdi.c (m32r_fetch_register): Update.
997 * remote-hms.c (init_hms_cmds): Update.
998 * remote-est.c (init_est_cmds): Update.
999 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1000 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1001 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1002 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1003 (fetch_register, supply_vrregset, supply_vrregset)
1004 (fetch_spe_registers): Update.
1005 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1006 * monitor.c (monitor_supply_register): Update.
1007 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1008 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1009 (mipsnbsd_supply_fpreg): Update.
1010 * mips-nat.c (fetch_inferior_registers)
1011 (fetch_core_registers): Update.
1012 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1013 (supply_fpregset, mips64_supply_gregset)
1014 (mips64_supply_fpregset): Update.
1015 * m68klinux-nat.c (fetch_register, supply_gregset)
1016 (supply_fpregset): Update.
1017 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1018 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1019 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1020 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1021 * infptrace.c (fetch_register): Update.
1022 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1023 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1024 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1025 (gnu_fetch_registers, gnu_store_registers): Update.
1026 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1027 * i386-linux-nat.c (fetch_register, supply_gregset)
1028 (dummy_sse_values): Update.
1029 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1030 * hppah-nat.c (fetch_register): Update.
1031 * hppa-linux-nat.c (fetch_register, supply_gregset)
1032 (supply_fpregset): Update.
1033 * go32-nat.c (fetch_register): Update.
1034 * dve3900-rom.c (fetch_bitmapped_register)
1035 (_initialize_r3900_rom): Update.
1036 * cris-tdep.c (supply_gregset): Update.
1037 * abug-rom.c (init_abug_cmds): Update.
1038 * core-aout.c (fetch_core_registers): Update.
1039 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1040 (fetch_register, fetch_fp_register): Update.
1041 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1042 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1043 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1044 * alphanbsd-tdep.c (fetch_core_registers): Update.
1045 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1046 * alpha-nat.c (fetch_osf_core_registers)
1047 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1048 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1049 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1050
73cc75f3
AC
10512004-07-21 Andrew Cagney <cagney@gnu.org>
1052
1053 * PROBLEMS: Mention breakpoints/1702.
1054 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1055 that is known to work.
1056
a53c66de
AC
10572004-07-21 Andrew Cagney <cagney@gnu.org>
1058
1059 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1060 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1061 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1062 (handle_inferior_event): Wrap call to deprecated
1063 IGNORE_HELPER_CALL in #ifdef.
1064 * config/mips/tm-nbsd.h: Update.
1065
708ff411
JB
10662004-07-20 Jim Blandy <jimb@redhat.com>
1067
412b3060
JB
1068 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1069 bfd_mach_ppc has no segment registers.
1070
13ac140c
JB
1071 Include PowerPC SPR numbers for special-purpose registers.
1072 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1073 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1074 new member in initializer.
1075 (S, S4, SN4, S64): New macros for defining special-purpose
1076 registers.
1077 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1078 registers_403, registers_403GC, registers_505, registers_860,
1079 registers_601, registers_602, registers_603, registers_604,
1080 registers_750, registers_e500): Use them.
1081
708ff411
JB
1082 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1083 replace references with expression used to initialize variable.
1084
1f602b35
AC
10852004-07-20 Andrew Cagney <cagney@gnu.org>
1086
1087 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1088 read_memory_nobpt.
1089 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1090 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1091 (s390_sigtramp_frame_sniffer): Update.
1092 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1093 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1094 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1095 (mips32_fetch_instruction): Update.
1096 * mcore-tdep.c (get_insn): Update.
1097 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1098 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1099 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1100 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1101 (i386_linux_rt_sigtramp_start): Update.
1102 * i386-linux-nat.c (child_resume): Update.
1103 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1104 * hppa-linux-tdep.c (insns_match_pattern): Update.
1105 * gdbcore.h: Update.
1106 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1107 * frame.c (safe_frame_unwind_memory): Update.
1108 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1109 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1110 * alpha-tdep.c (alpha_read_insn): Update.
1111
2cd8546d
AC
11122004-07-20 Andrew Cagney <cagney@gnu.org>
1113
1114 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1115 containing both bytes and mask. Add "frame_type".
1116 * tramp-frame.c (tramp_frame_start): Update.
1117 (tramp_frame_prepend_unwinder): Update.
1118 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1119 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1120 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1121 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1122
f928dd62
EZ
11232004-07-19 Eli Zaretskii <eliz@gnu.org>
1124
1125 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1126 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1127 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1128 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1129
d5c560f7
AC
11302004-07-17 Andrew Cagney <cagney@gnu.org>
1131
860660cb
AC
1132 * NEWS, PROBLEMS: Update for 6.2.
1133
8c266f54
AC
1134 * README: Update to 6.2.
1135
a552edd9
AC
1136 * utils.c (xvasprintf): Call xstrvprintf.
1137
c4a172b5
AC
1138 * parse.c: Update copyright.
1139 (null_post_parser): Eliminate ARGSUSED.
1140
da745b36
AC
1141 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1142 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1143 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1144
9cbc6ef0
AC
1145 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1146 * ppc-linux-nat.c: Use "Linux kernel".
1147 * hppa-linux-tdep.c: Use GNU/Linux.
1148 * hppa-linux-nat.c: Use GNU/Linux.
1149 * dwarfread.c: Add [sic] to use of Linux.
1150
1b89295f
AC
1151 * hppa-linux-nat.c: Do not include <string.h>.
1152 (supply_fpregset): Remove "register" attribute.
1153
d5c560f7
AC
1154 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1155
7ddd7709
MK
11562004-07-17 Mark Kettenis <kettenis@gnu.org>
1157
b1d19a62
MK
1158 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1159 * configure, config.in: Regenerated.
1160
7ddd7709
MK
1161 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1162 "bsd-kvm.h".
1163 (vaxbsd_supply_pcb): New function.
1164 (_initialize_vaxbsd_nat): New prototype and function.
1165 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1166 solib-sunos.o.
1167 (LOADLIBES): New variable.
1168 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1169 (LOADLIBES): New variable.
1170 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1171 (LOADLIBES): New variable.
1172 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1173
2c07db7a
AC
11742004-07-16 Andrew Cagney <cagney@gnu.org>
1175
1176 * defs.h (event_loop_p): Replace variable declaration with macro,
1177 always 1.
1178 * main.c (captured_main): Delete options "-async" and "-noasync".
1179 (event_loop_p): Delete variable.
1180 * NEWS: Mention that "-async" and "-noasync" were removed.
1181
717eb1cf
AC
11822004-07-16 Andrew Cagney <cagney@gnu.org>
1183
1184 * remote-m32r-sdi.c: Re-indent.
1185
c101bc14
JB
11862004-07-16 Jim Blandy <jimb@redhat.com>
1187
5109a438
JB
1188 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1189 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1190 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1191 missing MPC823 SPRs.
1192 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1193 incorrect. (This was corrected in GDB's register name tables on
1194 2004-07-14.)
1195
c101bc14
JB
1196 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1197 should be "esasrr" ("ESA Save and Restore Register").
1198
7ce450bd
AC
11992004-07-16 Andrew Cagney <cagney@gnu.org>
1200
1201 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1202 calls, no longer applicable. Update comments and rename parameter
1203 "step_frame" to "return_frame".
1204
ca73dd9d
AC
12052004-07-16 Andrew Cagney <cagney@gnu.org>
1206
1207 * frame.c (fprint_field): New function.
1208 (fprint_frame_id): Use fprint_field.
1209
31941f6d
JB
12102004-07-15 Joel Brobecker <brobecker@gnat.com>
1211
1212 * ada-lang.c (ada_language_defn): Remove commented out code.
1213
f86a7158
JB
12142004-07-15 Jim Blandy <jimb@redhat.com>
1215
1216 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1217 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1218
c24791ec
JB
12192004-07-14 Jim Blandy <jimb@redhat.com>
1220
29bb1356
JB
1221 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1222
cc98b5cc
JB
1223 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1224
8f088af7
JB
1225 * ppc-tdep.h (ppc_num_srs): New enum constant.
1226
0ea0ec5f
JB
1227 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1228 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1229 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1230 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1231 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1232 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1233 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1234 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1235 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1236 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1237 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1238 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1239 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1240 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1241 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1242 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1243 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1244 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1245 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1246 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1247 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1248 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1249 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1250 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1251 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1252 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1253 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1254 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1255 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1256 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1257 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1258 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1259 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1260 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1261 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1262 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1263 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1264 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1265 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1266 special-purpose register numbers.
1267
c24791ec
JB
1268 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1269 manual mentions 'md_twb', but many mention 'm_twb', and at that
1270 point in the register list.)
1271
d833db3b
AC
12722004-07-14 Andrew Cagney <cagney@gnu.org>
1273
1274 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1275 instead of "internal-error".
1276
080228b2
JB
12772004-07-10 Joel Brobecker <brobecker@gnat.com>
1278
1279 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1280 that was inserted inside a comment.
1281
c268433a
RC
12822004-07-10 Randolph Chung <tausq@debian.org>
1283
1284 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1285 function.
1286 (hppa_hpux_push_dummy_code): New function.
1287 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1288 Set find_global_pointer method.
1289
71009278
MK
12902004-07-10 Mark Kettenis <kettenis@gnu.org>
1291
1292 * NEWS: Mention BSD libkvm interface.
1293
b2fa5097
MS
12942004-07-10 Michael Snyder <msnyder@redhat.com>
1295
1296 * symfile.c (generic_load): Comment typo.
1297 * stack.c (get_selected_block): Ditto.
1298 * regcache.c (regcache_cooked_read): Ditto.
1299 * monitor.c (monitor_debug): Ditto.
1300 * mips-tdep.c (mips_read_pc): Ditto.
1301 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1302 * gdb_mbuild.sh: Ditto.
1303 * gdbarch.sh: Ditto.
1304 * gdbarch.h: Ditto.
1305
c3e5cd34
PH
13062004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1307
8a2225b2
PH
1308 * ada-tasks.c: Remove file.
1309
c3e5cd34
PH
1310 Remove ARI problems:
1311
1312 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1313 beginning of line.
1314
1315 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1316 Add comment.
1317 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1318 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1319 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1320 (UMIN_OF_SIZE): Remove.
1321 (max_of_type): New function to replace orphan macro in gdbtypes.h
1322 (min_of_type): Ditto.
1323 (discrete_type_high_bound): Use max_of_type.
1324 (discrete_type_low_bound): Use min_of_type.
1325 (possible_user_operator_p): Move operator to beginning of line.
1326 (ada_is_variant_part): Ditto.
1327 (ensure_lval): Rewrite to avoid deprecated operations.
1328 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1329 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1330 (ada_enum_name): Remove assignments in 'if' statements.
1331 (build_ada_types): Add gdbarch parameter.
1332 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1333 with gdbarch_data_register_post_init.
1334 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1335 add_show_from_set.
1336
1337 * ada-valprint.c (inspect_it): Remove declaration.
1338 (repeat_count_threshold): Remove declaration.
1339 (ada_print_floating): Remove assignments in 'if' statements.
1340 (print_str): Move operator to beginning of line.
1341
61ce229a
JB
13422004-07-08 Jim Blandy <jimb@redhat.com>
1343
1344 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1345
09bcec80
BR
13462004-07-08 Bob Rossi <bob@brasko.net>
1347
1348 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1349
31c27f77
JJ
13502004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1351
1352 * language.h (struct_language_defn): Add new function pointer:
1353 la_class_name_from_physname. Also add new prototype for
1354 language_class_name_from_physname.
1355 * language.c (language_class_name_from_physname): New function.
1356 (unk_lang_class_name): Ditto.
1357 (unknown_language_defn, auto_language_defn): Change
1358 to add unk_lang_class_name function pointer for
1359 la_class_name_from_physname.
1360 (local_language_defn): Ditto.
1361 * dwarf2read.c (guess_structure_name): Change to call
1362 language_class_name_from_physname.
1363 (determine_class_name): Ditto.
1364 * cp-support.c (class_name_from_physname): Renamed.
1365 (cp_class_name_from_physname): New name of function.
1366 * cp-support.h: Ditto.
1367 * c-lang.c (c_language_defn): Change to add NULL
1368 for class_name_from_physname function pointer.
1369 (cplus_language_defn): Change to add cp_class_name_from_physname.
1370 * jv-lang.c (java_class_name_physname): New function.
1371 (java_find_last_component): New static routine.
1372 (java_language_defn): Add java_class_name_from_physname pointer.
1373 * ada-lang.c (ada_language_defn): Change to add NULL
1374 for class_name_from_physname function pointer.
1375 * f-lang.c (f_language_defn): Ditto.
1376 * m2-lang.c (m2_language_defn): Ditto.
1377 * objc-lang.c (objc_language_defn): Ditto.
1378 * p-lang.c (pascal_language_defn): Ditto.
1379 * scm-lang.c (scm_language_defn): Ditto.
1380
ee28ca0f
AC
13812004-07-06 Andrew Cagney <cagney@gnu.org>
1382
1383 Patch from Bart Robinson.
1384 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1385 (O_LARGEFILE): Define to 0, if not defined.
1386
fdb1bf9d
MK
13872004-07-03 Mark Kettenis <kettenis@gnu.org>
1388
cb162ff6
MK
1389 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1390 <machine/pcb.h> and "bsd-kvm.h".
1391 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1392 (m68kbsd_supply_pcb): New function.
1393 (_initialize_m68kbsd_nat): New prototype and function.
1394 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1395 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1396 (LOADLIBES): New variable.
1397 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1398 (LOADLIBES): New variable.
1399
fdb1bf9d
MK
1400 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
1401
963c4174
MK
14022004-07-03 Mark Kettenis <kettenis@gnu.org>
1403
1404 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
1405 <sys/proc.h>.
1406 (bsd_kvm_cmdlist): New variable.
1407 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
1408 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
1409 command and "kvm proc" command.
1410 * Makefile.in (bsd-kvm.o): Update dependencies.
1411
533f1d8f
MK
14122004-07-02 Mark Kettenis <kettenis@gnu.org>
1413
1414 * osabi.c: Update copyright year.
1415 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
1416 notes if EI_OSABI is set to ELFOSABI_HPUX.
1417
6780dcde
MS
14182004-07-01 Michael Snyder <msnyder@redhat.com>
1419
1420 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
1421 that seems to have gotten whacked out of line.
1422
67bebe79
MK
14232004-07-01 Mark Kettenis <kettenis@gnu.org>
1424
1425 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
1426 code.
1427
0b5d8877
PH
14282004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1429
1430 * ada-lang.c (decode_packed_array): Minor change to comment.
1431 (ada_value_slice_ptr): New function.
1432 (ada_value_slice): New function.
1433 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
1434 test. Don't know why it is there.
1435 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
1436 to avoid dereferencing huge arrays from which one is slicing.
1437 (empty_array): Correct to return an array rather than
1438 a subrange value.
1439 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
1440 on empty arrays (let'em use 'FIRST instead).
1441
19c1ef65
PH
14422004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1443
1444 Address complaints from gdb_ari.sh:
1445
1446 * ada-exp.y: Include gdb_string.h rather than string.h.
1447 (convert_char_literal): Reformat declaration.
1448 * ada-lang.h: Include opaque struct declaration for struct frame_info.
1449 * ada-lex.l: Change use of free to xfree (the macro would do so
1450 anyway, but this is harmless).
1451 Include gdb_string.h rather than string.h.
1452 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
1453
1454 * ada-lang.c (parse): Remove K&Rism in parameter list.
1455 (is_name_suffix): Correct Linux => GNU/Linux in comment.
1456
d81cbc94
MK
14572004-06-30 Mark Kettenis <kettenis@gnu.org>
1458
1459 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
1460 dead code.
1461
07681759
MK
14622004-06-30 Mark Kettenis <kettenis@gnu.org>
1463
1464 * alphabsd-nat.c: Update copyright year.
1465 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
1466
f7948b5f
JB
14672004-06-29 Joel Brobecker <brobecker@gnat.com>
1468
6e0cdd28 1469 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
1470 (i386_cygwin_in_solib_call_trampoline): New function.
1471 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
1472 and skip_trampoline_code gdbarch methods.
1473
8f113c9a
JB
14742004-06-29 Jim Blandy <jimb@redhat.com>
1475
1476 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
1477 name actually used in the dependency lists.
1478
97dc871c
RC
14792004-06-29 Randolph Chung <tausq@debian.org>
1480
1481 * NEWS (New native configurations): Mention GNU/Linux/hppa.
1482
47216e51
CV
14832004-06-29 Corinna Vinschen <vinschen@redhat.com>
1484
1485 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 1486 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
1487 functionality.
1488
e623b504
AC
14892004-06-28 Andrew Cagney <cagney@gnu.org>
1490
1491 * defs.h (xstrvprintf): Declare.
1492 * utils.c (xstrvprintf): New function.
1493 (internal_vproblem, xstrprintf, xasprintf)
1494 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
1495 * serial.c (serial_printf): Ditto.
1496 * complaints.c (vcomplaint): Ditto.
1497
79acc9b3
CV
14982004-06-29 Corinna Vinschen <vinschen@redhat.com>
1499
1500 * infcmd.c (attach_command): Move call to target_terminal_inferior
1501 behind loading symbol table.
1502
1daf35d9
AC
15032004-06-28 Andrew Cagney <cagney@gnu.org>
1504
1505 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
1506 change - add back extern deprecated_ui_loop_hook declaration.
1507
b435e160
AC
15082004-06-28 Andrew Cagney <cagney@gnu.org>
1509
1510 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
1511 xstrprintf.
1512 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
1513 (c_value_of_variable): Ditto.
1514 * utils.c (internal_vproblem): Ditto.
1515 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
1516 * remote.c (add_packet_config_cmd): Ditto.
1517 * remote-rdp.c (rdp_set_command_line): Ditto.
1518 * regcache.c (regcache_dump): Ditto.
1519 * frv-tdep.c (new_variant, new_variant): Ditto.
1520 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
1521 (fbsd_find_memory_regions): Ditto.
1522 * breakpoint.c (create_thread_event_breakpoint)
1523 (create_breakpoints): Ditto.
1524 * aix-thread.c (aix_thread_pid_to_str): Ditto.
1525 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
1526
06d5cf63
JB
15272004-06-28 Joel Brobecker <brobecker@gnat.com>
1528
1529 * ada-lang.c: Re-indent file, with some massaging to help indent
1530 a bit when the result is otherwise really too ugly.
1531
35809fad
UW
15322004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1533
1534 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
1535 code_addr_p and special_addr_p to 'unsigned int'.
1536
40e20472
MK
15372004-06-27 Mark Kettenis <kettenis@gnu.org>
1538
1539 * i386v4-nat.c: Update copyright year and tweak comment.
1540 (regmap): Remove trailing comma.
1541 (supply_gregset): Rename local variable i to regnum. Call
1542 regcache_raw_supply instead of supply_register.
1543 (fill_gregset): Rename argument regno to regnum. Call
1544 regcache_raw_collect instead of regcache_collect.
1545
12b0b6de
UW
15462004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1547
1548 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
1549 and special_addr_p.
1550 (frame_id_build, frame_id_build_special): Update comments.
1551 (frame_id_build_wild): New prototype.
1552 * frame.c (frame_id_build, frame_id_build_special): Fill in new
1553 struct frame_id fields.
1554 (frame_id_build_wild): New function.
1555 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
1556
47b42a3e
MK
15572004-06-27 Mark Kettenis <kettenis@gnu.org>
1558
1559 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
1560 hppabsd-tdep.c.
1561
1265e4aa
JB
15622004-06-27 Joel Brobecker <brobecker@gnat.com>
1563
1564 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
1565
76a01679
JB
15662004-06-27 Joel Brobecker <brobecker@gnat.com>
1567
1568 * ada-lang.c: Re-indent file.
1569
7aca490a
JB
15702004-06-27 Joel Brobecker <brobecker@gnat.com>
1571
1572 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
1573 (no_symtab_msg): Likewise.
1574
5e987968
AS
15752004-06-27 Andreas Schwab <schwab@suse.de>
1576
1577 * source.c: Fix whitespace.
1578
315c4276
MK
15792004-06-27 Mark Kettenis <kettenis@gnu.org>
1580
d15be926
MK
1581 * configure.in: Include <sys/param.h> for td_pcb test.
1582 * configure: Regenerated.
1583
9062529b
MK
1584 * i386nbsd-nat.c: New file.
1585 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
1586 i386obsd-nat.c and i386obsd-tdep.c.
1587 (i386nbsd-nat.o): New dependency.
1588 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
1589 bsd-kvm.o.
1590 (LOADLIBES): New variable.
1591 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
1592 bsd-kvm.o.
1593 (LOADLIBES): New variable.
1594
8010310e
MK
1595 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
1596 (LOADLIBES): New variable.
1597
efe1d7b9
MK
1598 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
1599 fetching from BSD_KVM_PADDR. Correctly lookup address for
1600 "_thread0".
1601
315c4276
MK
1602 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
1603 "bsd-kvm.h".
1604 (amd64fbsd_supply_pcb): New funcion.
1605 (_initialize_amd64fbsd_nat): Enable libkvm interface.
1606
399cfac6
DL
16072004-06-27 <david@streamline-computing.com>
1608
1609 Partial fix for PR cli/1056.
1610 * valarith.c: Check for zero in division and remainder
1611 evaluation.
1612
6235f9c8
MK
16132004-06-27 Mark Kettenis <kettenis@gnu.org>
1614
1615 * i387-tdep.c: Remove excessive whitespace.
1616
2726dafc
AC
16172004-06-26 Andrew Cagney <cagney@gnu.org>
1618
1619 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
1620 * gdb-events.h, gdb-events.c: Re-generate.
1621 * tui/tui-hooks.c (tui_install_hooks): Update.
1622 (tui_remove_hooks): Update.
1623 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
1624
0e56aeaf
MK
16252004-06-26 Mark Kettenis <kettenis@gnu.org>
1626
cb461069
MK
1627 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
1628 (gregset_t, fpregset_t): Remove typedefs.
1629 (REG_OFFSET): Rename argument.
1630 (amd64bsd_r_reg_offset): Rename from reg_offset.
1631 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1632 Remove functions.
1633 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
1634 of reg_offset.
1635 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
1636
ecba89de
MK
1637 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
1638
4cd80476
MK
1639 * vax-tdep.c: Tweak comment.
1640
0e56aeaf
MK
1641 Add OpenBSD/hppa support.
1642 * NEWS (New native configurations): Mention OpenBSD/hppa.
1643 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
1644 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
1645 files.
1646 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1647 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
1648 * configure.host: Add hppa*-*-openbsd*.
1649 * configure.tgt: Add hppa*-*-openbsd*.
1650
98bbd631
AC
16512004-06-25 Andrew Cagney <cagney@gnu.org>
1652
1653 * defs.h (deprecated_ui_loop_hook): Deprecated.
1654 * wince.c (child_wait): Update.
1655 * win32-nat.c (child_wait): Update.
1656 * v850ice.c (v850ice_wait): Update.
1657 * top.c (deprecated_ui_loop_hook): Update.
1658 * serial.h: Update.
1659 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
1660 (do_unix_readchar): Update.
1661 * ser-tcp.c (net_open): Update.
1662 * remote-sim.c (gdb_os_poll_quit): Update.
1663 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
1664
769d7dc4
AC
16652004-06-24 Andrew Cagney <cagney@gnu.org>
1666
1667 * defs.h (deprecated_pre_add_symbol_hook)
1668 (deprecated_post_add_symbol_hook): Deprecated.
1669 * symfile.c (symbol_file_add_with_addrs_or_offsets)
1670 (symbol_file_add_with_addrs_or_offsets): Update references.
1671
11c949aa
AC
16722004-06-24 Andrew Cagney <cagney@gnu.org>
1673
1674 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
1675 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
1676 * wince.c (ui_loop_hook): Delete extern declaration.
1677 * win32-nat.c (ui_loop_hook): Delete extern declaration..
1678 * v850ice.c (ui_loop_hook): Delete extern declaration..
1679 * ser-unix.c (ui_loop_hook): Delete extern declaration..
1680 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
1681 * remote-sim.c (ui_loop_hook): Delete extern declaration..
1682 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
1683 ui_loop_hook declaration.
1684
eedc19af
AC
16852004-06-24 Andrew Cagney <cagney@gnu.org>
1686
1687 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
1688 entry_func_highpc fields.
1689 * objfiles.c (init_entry_point_info): Do not clear
1690 entry_func_lowpc and entry_func_highpc.
1691 (objfile_relocate): Do not relocate entry_func_lowpc and
1692 entry_func_highpc.
1693 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
1694 entry_func_highpc.
1695 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
1696 entry_func_highpc.
1697 * blockframe.c (legacy_frame_chain_valid): Replace tests against
1698 entry_func_lowpc and entry_func_highpc with call to
1699 inside_entry_func.
1700
d47079be
MK
17012004-06-24 Mark Kettenis <kettenis@gnu.org>
1702
1703 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
1704 quad-precision floating point arguments in registers.
1705
2107e348
MK
17062004-06-24 Mark Kettenis <kettenis@gnu.org>
1707
1708 From Michael Mueller <m.mueller99@kay-mueller.de>:
1709 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
1710 account.
1711
46587c42
JJ
17122004-06-22 Jeff Johnston <jjohnstn@redhat.com>
1713
1714 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
1715 to -1.
1716 * breakpoint.c (bpstat_stop_status): Move check for ignoring
1717 untriggered watchpoints to a separate if clause. Update function
1718 comment regarding STOPPED_BY_WATCHPOINT argument.
1719
226f5cf4
JB
17202004-06-22 Jim Blandy <jimb@redhat.com>
1721
1722 * gdbarch.sh: Doc fix.
1723
f10683bb
MH
17242004-06-21 Martin Hunt <hunt@redhat.com>
1725 Kevin Buettner <kevinb@redhat.com>
1726
1727 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
1728 * mips-tdep.h (MIPS_SP_REGNUM): Define.
1729 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
1730 to set_gdbarch_sp_regnum(). Use cooked register number.
1731 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
1732
412d5987
AC
17332004-06-21 Andrew Cagney <cagney@gnu.org>
1734
1735 * gdbarch.sh: When the macro field is empty, do not generate a
1736 macro definition. When the macro field is "=", generate the macro
1737 name from the upper-case function name.
1738 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
1739 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
1740 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
1741 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
1742 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
1743 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
1744 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
1745 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
1746 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
1747 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
1748 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
1749 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
1750 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
1751 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
1752 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
1753 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
1754 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
1755 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
1756 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
1757 (DEPRECATED_USE_STRUCT_CONVENTION)
1758 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1759 (DEPRECATED_FRAME_INIT_SAVED_REGS)
1760 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
1761 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
1762 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
1763 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
1764 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
1765 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
1766 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
1767 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
1768 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
1769 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
1770 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
1771 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
1772 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
1773 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
1774 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
1775 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
1776
68908a3e
AC
17772004-06-21 Andrew Cagney <cagney@gnu.org>
1778
48f7351b
AC
1779 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
1780 macro name, and the function rather than macro value. Only wrap
1781 macro print statements in #ifdef. Move format logic to where it
1782 is needed.
1783 * gdbarch.c: Re-generate.
1784
283354d8
AC
1785 * gdbarch.sh (read): Delete "print_p" and "description", add
1786 "garbage_at_eol". Check for non-empty garbage at end-of-line.
1787 Delete references to print_p.
1788 (TARGET_ARCHITECTURE): Delete print predicate.
1789 * gdbarch.c: Re-generate.
1790
68908a3e
AC
1791 * gdbarch.sh: Check that multi-arch methods do not provide a
1792 macro.
1793 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
1794 (print_registers_info, print_float_info, print_vector_info)
1795 (adjust_breakpoint_address, remote_translate_xfer_address)
1796 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
1797 (address_class_type_flags_to_name, unwind_sp): Remove the macro
1798 name from the multi-arch definition.
1799
a2428dbe
AC
18002004-06-20 Andrew Cagney <cagney@gnu.org>
1801
1802 * gdbarch.sh: Sort by the function, instead of macro name.
1803 * gdbarch.c: Re-generate.
1804
750eb019
AC
18052004-06-20 Andrew Cagney <cagney@gnu.org>
1806
66d659b1
AC
1807 * gdbarch.sh: Use the function, instead of macro name in
1808 errors and the log file.
1809 (return_value): Remove stray ":" in spec.
1810
750eb019
AC
1811 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
1812 * gdbarch.h, gdbarch.c: Re-generate.
1813 * Makefile.in (arch-utils.o): Update dependencies.
1814 * values.c (using_struct_return): Move code calling
1815 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
1816 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
1817 to legacy_return_value, simplify.
1818 * infcmd.c (print_return_value): Move code calling
1819 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
1820 to legacy_return_value, simplify.
1821 * infcall.c (call_function_by_hand): Move code calling
1822 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
1823 * arch-utils.c: Update copyright. Include "gdbcore.h".
1824 (legacy_return_value): New function.
1825 * arch-utils.h: Update copyright.
1826 (legacy_return_value): Declare.
1827
b5622e8d
AC
18282004-06-20 Andrew Cagney <cagney@gnu.org>
1829
1830 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
1831 * gdbarch.h, gdbarch.c: Re-generate.
1832 * values.c (using_struct_return): Update call.
1833 * mcore-tdep.c: Update comment.
1834 * infcall.c (call_function_by_hand): Update comment.
1835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1836 * arch-utils.h (always_use_struct_convention): Update.
1837 * v850-tdep.c (v850_gdbarch_init): Update.
1838 * sh64-tdep.c (sh64_gdbarch_init): Update.
1839 * sh-tdep.c (sh_gdbarch_init): Update.
1840 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1841 * mips-tdep.c (mips_gdbarch_init): Update.
1842 * mcore-tdep.c (mcore_gdbarch_init): Update.
1843 * m32r-tdep.c (m32r_gdbarch_init): Update.
1844 * ia64-tdep.c (ia64_gdbarch_init): Update.
1845 * h8300-tdep.c (h8300_gdbarch_init): Update.
1846 * frv-tdep.c (frv_gdbarch_init): Update.
1847 * cris-tdep.c (cris_gdbarch_init): Update.
1848 * arm-tdep.c (arm_gdbarch_init): Update.
1849 * alpha-tdep.c (alpha_gdbarch_init): Update.
1850
5191de37
MC
18512004-06-18 Michael Chastain <mec.gnu@mindspring.com>
1852
1853 * PROBLEMS: Add more specific information, and a work-around,
1854 for PR gdb/1458.
1855
782263ab
AC
18562004-06-18 Andrew Cagney <cagney@gnu.org>
1857
1858 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
1859 * gdbarch.h, gdbarch.c: Re-generate.
1860 * ada-lang.c (ada_finish_decode_line_1): Update.
1861 * infrun.c (handle_inferior_event): Update.
1862 * infcall.c (find_function_addr): Update.
1863 * linespec.c (minsym_found): Update.
1864 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
1865 Update.
1866 * blockframe.c (legacy_frameless_look_for_prologue): Update.
1867 * cli/cli-cmds.c (disassemble_command): Update.
1868 * vax-tdep.c (vax_gdbarch_init): Update.
1869
2f305df1
MK
18702004-06-18 Mark Kettenis <kettenis@gnu.org>
1871
1872 * i386-tdep.c (i386_collect_fpregset): Fix comment.
1873
e5fe55f7
AC
18742004-06-17 Andrew Cagney <cagney@gnu.org>
1875
1876 GDB 6.1.1 released from the GDB 6.1 branch.
1877 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
1878 * PROBLEMS: Ditto.
1879
473b7be6
DJ
18802004-06-16 Daniel Jacobowitz <dan@debian.org>
1881
1882 PR gdb/1658
1883 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
1884 operation as a uleb128. Found by Michael Coulter.
1885
96d887e8
PH
18862004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
1887
1888 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
1889 make it non-static.
1890 * ada-lang.h (task_control_block): declaration moved from ada-task.c
1891 to ada-lang.h; this is needed to be able to implement the kill command
1892 in multi-task mode.
1893 (task_ptid): Ditto.
1894 (task_entry): Ditto.
1895 (task_list): Ditto.
1896 (ada_build_task_list): Ditto.
1897
1898 * ada-lang.c: Conditionalize routines and data structures related
1899 to breakpoints, exceptions, completion, and symbol caching on
1900 GNAT_GDB, since these are not yet used in the submitted public sources.
1901 (ada_main_name): Editorial: Move definition out of exception-related
1902 code.
1903
31eef181
AC
19042004-06-15 Andrew Cagney <cagney@gnu.org>
1905
1906 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
1907 deprecated_pc_in_call_dummy.
1908
2c500098
AM
19092004-06-15 Alan Modra <amodra@bigpond.net.au>
1910
1911 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
1912 bfd_get_section_size_before_reloc or _raw_size.
1913 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1914 * dwarf2read.c (dwarf2_locate_sections): Likewise.
1915 (dwarf2_read_section): Likewise.
1916 * elfread.c (elf_locate_sections): Likewise.
1917 * gcore.c (derive_heap_segment): Likewise.
1918 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1919 * remote-e7000.c (e7000_load): Likewise.
1920 * remote-m32r-sdi.c (m32r_load): Likewise.
1921 * remote-mips.c (mips_load_srec): Likewise.
1922 (pmon_load_fast): Likewise.
1923 * remote.c (compare_sections_command): Likewise.
1924 * symfile.c (add_section_size_callback): Likewise.
1925 (load_section_callback): Likewise.
1926 (pc_in_unmapped_range): Likewise.
1927 (pc_in_mapped_range): Likewise.
1928 (sections_overlap): Likewise.
1929 (list_overlays_command): Likewise.
1930 (simple_overlay_update_1): Likewise.
1931 (simple_overlay_update): Likewise.
1932 * tracepoint.c (remote_set_transparent_ranges): Likewise.
1933 * win32-nat.c (core_section_load_dll_symbols): Likewise.
1934
90f943f1
RC
19352004-06-14 Randolph Chung <tausq@debian.org>
1936
1937 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
1938 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
1939 static.
1940 (hppa_hpux_inferior_created): New function.
1941 (hppa_hpux_init_abi): Register observer.
1942 * symfile.c (hp_cxx_exception_support_initialized)
1943 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
1944 (symbol_file_add_main_1, symbol_file_clear): Likewise.
1945
700c15aa
RC
19462004-06-14 Randolph Chung <tausq@debian.org>
1947
3973a7d3
AC
1948 * MAINTAINERS (Write After Approval): Alphabetize my entry
1949 correctly.
700c15aa 1950
cea4838c
AC
19512004-06-14 Andrew Cagney <cagney@gnu.org>
1952
1953 * MAINTAINERS (testsuite): List Michael Chastain as the lead
1954 testsuite maintainer.
1955
97092415
AC
19562004-06-13 Andrew Cagney <cagney@gnu.org>
1957
e8c3165b
AC
1958 * infcmd.c (print_return_value): Fix logic, allow
1959 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
1960
bceabdd8
AC
1961 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
1962 defining any macros.
1963 * gdbarch.h: Re-generate.
1964
57010b1c
AC
1965 * gdbarch.sh: Delete "level" attribute. Only check for a macro
1966 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
1967 * gdbarch.h: Re-generate.
1968
bc87dfa0
AC
1969 * values.c (generic_use_struct_convention): Don't check gcc_p.
1970
15ac804d
AC
1971 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1972 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
1973 * gdbarch.h, gdbarch.c: Regenerate.
1974 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
1975 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
1976 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1977 deprecated_max_register_raw_size and
1978 deprecated_max_register_virtual_size.
1979 * v850-tdep.c (v850_gdbarch_init): Ditto.
1980 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1981 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1982 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1983 * cris-tdep.c (cris_gdbarch_init): Ditto.
1984
97092415
AC
1985 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
1986 * gdbarch.h, gdbarch.c: Re-generate.
1987 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
1988 (m68hc11_use_struct_convention): Delete function.
1989 (m68hc11_extract_struct_value_address): Delete function.
1990 (m68hc11_return_value): New function.
1991 (m68hc11_gdbarch_init): Instead of store_return_value,
1992 extract_return_value, return_value_on_stack,
1993 deprecated_extract_struct_value_address and use_struct_convention,
1994 set return_value.
1995 * values.c (using_struct_return): Do not call
1996 RETURN_VALUE_ON_STACK.
1997 * arch-utils.h (generic_return_value_on_stack_not): Delete
1998 declaration.
1999 * arch-utils.c (generic_return_value_on_stack_not): Delete
2000 function.
2001
44e5158b
AC
20022004-06-12 Andrew Cagney <cagney@gnu.org>
2003
2004 * values.c (register_value_being_returned): Delete function.
2005 * infcmd.c (legacy_return_value): Delete function.
2006 * infcall.c (call_function_by_hand): Inline
2007 "register_value_being_returned", simplify.
2008 * values.c (using_struct_return): Update comment, refer to
2009 print_return_value instead of register_value_being_returned.
2010 * infcmd.c (print_return_value): Inline calls to
2011 register_value_being_returned and legacy_return_value. Simplify.
2012
b887c273
RC
20132004-06-11 Randolph Chung <tausq@debian.org>
2014
2015 * somread.c (som_symtab_read): Exclude gcc local symbols.
2016
1b2bfbb9
RC
20172004-06-11 Randolph Chung <tausq@debian.org>
2018
3973a7d3
AC
2019 * infrun.c (handle_inferior_event): Handle the case when a
2020 trampoline ends up in the runtime resolver, and if the trampoline
2021 has no name. Rearrange the code so that all the trampoline
2022 processing happens before other step-out-of-range handling.
1b2bfbb9 2023
a9d61c86
MH
20242004-06-11 Martin Hunt <hunt@redhat.com>
2025
2026 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2027 has no fpu.
2028
2c87cf5a
AC
20292004-06-10 Andrew Cagney <cagney@gnu.org>
2030
2031 * blockframe.c (legacy_inside_entry_func): Delete.
2032 (legacy_frame_chain_valid): Inline call to
2033 legacy_inside_entry_func, simplify.
2034
0b67b468 20352004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2036
2037 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2038 * dwarf2read.c (partial_die_info): Add dirname field.
2039 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2040 (read_partial_die): Save away DW_AT_comp_dir.
2041 * defs.h (symtab_to_filename): Removed.
2042 * source.c (find_and_open_source): Added.
57c22c6c 2043 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2044 (symtab_to_filename): Removed.
2045 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2046 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2047 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2048 symtab_to_filename.
2049 * symtab.h (partial_symtab): Add dirname field.
2050 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2051 (mi_cmd_file_list_exec_source_file): Call new function
2052 symtab_to_fullname to find fullname.
57c22c6c 2053 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2054 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2055 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2056
9a1dd1ad
AC
20572004-06-10 Andrew Cagney <cagney@gnu.org>
2058
239ae8c7
AC
2059 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2060 to generic_use_struct_convention, the default value.
2061
fc720350
AC
2062 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2063 of abort.
2064
9a1dd1ad
AC
2065 * ns32k-tdep.c (ns32k_push_arguments): New function.
2066 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2067 * infcall.c (call_function_by_hand): Call error instead of
2068 legacy_push_arguments.
2069 * value.h (legacy_push_arguments): Delete declaration.
2070 * valops.c (legacy_push_arguments): Delete function.
2071 (value_push): Delete function.
2072
fea25152
BF
20732004-06-10 Brian Ford <ford@vss.fsi.com>
2074
2075 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2076 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2077 info.
2078 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2079
30a4a8e0
AC
20802004-06-10 Andrew Cagney <cagney@gnu.org>
2081
2082 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2083 * gdbarch.h, gdbarch.c: Re-generate.
2084 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2085 parameters.
2086 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2087 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2088 deprecated_pc_in_call_dummy instead of
2089 DEPRECATED_PC_IN_CALL_DUMMY.
2090 (arm_skip_prologue): Ditto.
2091 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2092 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2093 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2094 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2095 Ditto.
2096 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2097 (sh64_init_extra_frame_info, sh64_get_saved_register)
2098 (sh64_pop_frame): Ditto.
2099 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2100 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2101 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2102 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2103 (h8300_pop_frame): Ditto.
2104 * blockframe.c (legacy_inside_entry_func)
2105 (legacy_frame_chain_valid): Ditto.
2106 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2107 to deprecated_pc_in_call_dummy.
2108
81cfbe54
AC
21092004-06-09 Andrew Cagney <cagney@gnu.org>
2110
a1f4a1b6
AC
2111 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2112 provide a default value.
2113 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2114 * gdbarch.h, gdbarch.c: Re-generate.
2115 * arch-utils.c (generic_convert_register_p): Rename
2116 legacy_convert_register_p
2117 (legacy_register_to_value, legacy_value_to_register): Delete
2118 functions.
2119 * arch-utils.h (generic_convert_register_p): Rename
2120 legacy_convert_register_p.
2121 (legacy_register_to_value, legacy_value_to_register): Delete
2122 declarations.
2123
9730f241
AC
2124 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2125 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2126 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2127 * gdbarch.h, gdbarch.c: Re-generate.
2128 * infcmd.c (default_print_registers_info): Simplify.
2129 * findvar.c (value_of_register): Simplify.
2130 * mi/mi-main.c (get_register): Simplify.
2131 * arch-utils.c (legacy_convert_register_p): Always return 0.
2132 (legacy_register_to_value, legacy_value_to_register): Always call
2133 internal_error.
2134
8a1bf479
AC
2135 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2136 #ifdef CLEAR_INSN_CACHE code.
2137 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2138 Delete #ifdef CLEAR_DEFERRED_STORES code.
2139
4b38d6f1
AC
2140 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2141
2d62ecc7
AC
2142 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2143 copyright.
2144 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2145
be4f7469
AC
2146 * config/mips/mipsv4.mh: Delete file.
2147
81cfbe54
AC
2148 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2149 unreferenced macro.
2150 (hpread_adjust_stack_address): Delete declaration.
2151
d966f0cb
AC
21522004-06-08 Andrew Cagney <cagney@gnu.org>
2153
2154 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2155 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2156 PTRACE_ATTACH / PTRACE_DETACH available call error.
2157 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2158 * infttrace.c (update_thread_state_after_attach, attach, detach):
2159 Remove #ifdef wrappers.
2160 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2161 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2162 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2163 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2164 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2165 * config/nm-linux.h (ATTACH_DETACH): Delete.
2166 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2167 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2168 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2169 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2170 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2171
d91670b9
CV
21722004-06-08 Corinna Vinschen <vinschen@redhat.com>
2173
2174 * configure.in: Set $configdir to the right OS specific value.
2175 Use value when setting $tcldir and $tkdir.
2176 * configure: Regenerate.
2177
28ba0b33
PB
21782004-06-06 Paul Brook <paul@codesourcery.com>
2179
2180 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2181 records.
2182
f26caa11
PH
21832004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2184
2185 * ada-lang.c (lookup_symbol_in_language): New function to allow
2186 re-use of another language's symbol lookup code. (Placed here
2187 temporarily while Ada support is being integrated into the public
2188 tree).
2189 (restore_language): New auxiliary function for
2190 lookup_symbol_in_language.
2191 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2192 temporarily while Ada support is being integrated into the public
2193 tree).
2194
d560a54b
AO
21952004-06-08 Alexandre Oliva <aoliva@redhat.com>
2196
e75d110c
AO
2197 * Makefile.in (check//%): New.
2198
d560a54b
AO
2199 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2200 (mn10300_store_return_value): Rewrite.
2201 (mn10300_type_align): New.
2202 (mn10300_use_struct_convention): Rewrite.
2203 (mn10300_return_value): New, using all of the above.
2204 (mn10300_pop_frame_regular): Add saved_regs_size.
2205 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2206
a72fbdb7
AO
2207 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2208 regs if PC is on movm.
2209
01904826
JB
22102004-06-07 Jim Blandy <jimb@redhat.com>
2211
2212 Add native Linux support for the PowerPC E500.
2213 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2214 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2215 all architectures except the E500.
2216 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2217 #definitions.
2218 (struct gdb_evrregset_t): New type.
2219 (have_ptrace_getsetevrregs): New variable.
2220 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2221 fetch_spe_registers): New functions.
2222 (fetch_register): Call fetch_spe_register as appropriate.
2223 Assert that we're only passed raw register numbers.
2224 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2225 Don't fetch gprs if they're pseudoregisters.
2226 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2227 store_spe_registers): New functions.
2228 (store_register): Call store_spe_register as appropriate.
2229 Assert that we're only passed raw register numbers.
2230 (store_ppc_registers): Call store_spe_registers as appropriate.
2231 Don't store gprs if they're pseudoregisters.
2232
f90ef764
JJ
22332004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2234
2235 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2236 struct if one exists, even if we are dealing with a zombie thread.
2237
45b75230
AC
22382004-06-07 Andrew Cagney <cagney@gnu.org>
2239
2240 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2241 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2242 Rename PC_REQUIRES_RUN_BEFORE_USE.
2243 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2244 #ifdef.
2245
1658da49
RC
22462004-06-07 Randolph Chung <tausq@debian.org>
2247
2248 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2249 unwinding after sp has been saved to the stack but before the end
2250 of the prologue, and after the fp has been modified but before it has
2251 been saved to the stack.
2252 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2253 Remove superfluous definitions.
2254 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2255
9a727a3c
RC
22562004-06-07 Guy Martin <gmsoft@gentoo.org>
2257
2258 Committed by Randolph Chung.
2259 * hppa-linux-nat.c: Include the correct version of the header file
2260 depending on the kernel version.
2261
9e500012
RC
22622004-06-06 Randolph Chung <tausq@debian.org>
2263
2264 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2265 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2266
3388d7ff
RC
22672004-06-06 Randolph Chung <tausq@debian.org>
2268
2269 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2270 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2271 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2272 * hppa-tdep.c (hppa_symbol_address): New function definition.
2273 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2274
d49771ef
RC
22752004-06-06 Randolph Chung <tausq@debian.org>
2276
2277 * hppa-tdep.h (struct value): Forward declaration.
2278 (gdbarch_tdep): Define tdep find_global_pointer method.
2279 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2280 associated with the function we are trying to call, and write it
2281 to the gp register.
2282 (hppa32_convert_from_funct_ptr_addr): New function.
2283 (hppa_find_global_pointer): New function.
2284 (hppa_gdbarch_init): Set default find_global_pointer method; set
2285 convert_from_func_ptr_addr method.
2286 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2287 (hppa_linux_init_abi): Set find_global_pointer method.
2288 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2289
7d9b040b
RC
22902004-06-06 Randolph Chung <tausq@debian.org>
2291
2292 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2293 to struct value *function.
2294 * gdbarch.c: Regenerate.
2295 * gdbarch.h: Likewise.
2296 * infcall.c (call_function_by_hand): Pass entire function value
2297 to push_dummy_call.
2298
2299 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2300 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2301 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2302 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2303 * arm-tdep.c (arm_push_dummy_call): Likewise.
2304 * avr-tdep.c (avr_push_dummy_call): Likewise.
2305 * cris-tdep.c (cris_push_dummy_call): Likewise.
2306 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2307 * frv-tdep.c (frv_push_dummy_call): Likewise.
2308 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2309 * hppa-tdep.c (hppa32_push_dummy_call)
2310 (hppa64_push_dummy_call): Likewise.
2311 * i386-tdep.c (i386_push_dummy_call): Likewise.
2312 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2313 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2314 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2315 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2316 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2317 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2318 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2319 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2320 (ppc64_sysv_abi_push_dummy_call): Likewise.
2321 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2322 (ppc64_sysv_abi_push_dummy_call): Likewise.
2323 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2324 * s390-tdep.c (s390_push_dummy_call): Likewise.
2325 * sh-tdep.c (sh_push_dummy_call_fpu)
2326 (sh_push_dummy_call_nofpu): Likewise.
2327 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2328 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2329 * vax-tdep.c (vax_push_dummy_call): Likewise.
2330
4a19ea35
JB
23312004-06-04 Jim Blandy <jimb@redhat.com>
2332
8327ccee
JB
2333 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2334 gdbarch argument to register_size.
2335
a3c001ce
JB
2336 * rs6000-tdep.c (rs6000_store_return_value): Use
2337 regcache_cooked_write_part instead of
2338 deprecated_write_register_bytes.
2339 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2340 not gdbarch_deprecated_store_return_value.
2341
4a19ea35
JB
2342 * ppc-linux-nat.c (store_register, fetch_register): Remove
2343 incorrect assertions. Simplify and generalize handling of
2344 transfers whose sizes are not multiples of, or less than, sizeof
2345 (PTRACE_XFER_TYPE).
2346
b9b5d7ea
JJ
23472004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2348
2349 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2350 as a new thread event.
720c7d64 2351 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 2352 zombie, return TD_THR_ZOMBIE.
720c7d64 2353 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
2354 TD_THR_ZOMBIE, check if the thread is still on the thread list
2355 and return a -1 ptid if not found.
2356 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2357 change the status to TARGET_WAITKIND_SPURIOUS.
2358
c8a3b559
CV
23592004-06-03 Corinna Vinschen <vinschen@redhat.com>
2360
2361 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2362 double values in little endian mode.
2363
20605361
AC
23642004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2365
2366 Committed by Andrew Cagney.
2367 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2368 after last enum constant to avoid error from IBM C
2369 compiler.
2370
bc97b3ba
JB
23712004-06-02 Jim Blandy <jimb@redhat.com>
2372
2373 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2374 to 'message', and make it local to the lone block that uses it.
2375
1da28ab0
JB
2376 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2377
4c4b4cd2
PH
23782004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2379
8a2225b2
PH
2380 * ada-exp.y: Update copyright notice.
2381 Include block.h.
2382
2383 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2384 SPECIAL_VARIABLE and unify the treatment of these cases.
2385
2386 (write_attribute_call0): Remove.
2387 (write_attribute_call1): Remove.
2388 (write_attribute_calln): Remove.
2389 (save_qualifier): Add missing semicolon.
2390
2391 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2392 temporarily disabled to allow compilation with FSF head version.
2393
2394 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
2395 use individual operators (OP_*) for all attributes.
2396 (exp syntax): Use write_int.
2397 Handle STRING literals with OP_STRING.
2398 (variable syntax): Add limit parameter to calls to
2399 write_object_renaming.
2400
2401 (temp_parse_space): New definition to hold entities that need
2402 only live until the next call to ada_parse.
2403 (string_to_operator): Rename fields of ada_opname_table entries.
2404
2405 (write_var_from_sym): Record block.
2406 (write_var_from_name): Minor reformatting.
2407 Make sure saved name is properly encoded in the case of multiple
2408 matches, and set its language to Ada.
2409 Update comment.
2410 Modify to indicate unresolved name as symbol in the UNRESOLVED
2411 namespace, allocated in temp_parse_space.
2412 (write_int): New function.
2413
2414 (write_object_renaming): Add max_depth parameter to limit
2415 chains of object renamings.
2416 Handle case where root of renaming expression is itself a renaming.
2417 Use temp_parse_space for temporary name buffer.
2418 Handle renamings to dereferenced pointers (___XEXA suffices).
2419
2420 (ada_parse, yyerror, string_to_operator,
2421 write_var_from_sym, write_var_from_name, write_attribute_call0,
2422 write_attribute_call1, write_attribute_calln,
2423 write_object_renaming): Protoize.
2424
2425 (_initialize_ada_exp): New function.
2426
2427 * ada-lang.c: Update copyright notice.
2428 General terminology change to conform to GNAT compiler usage:
2429 mangle => encode, demangle => decode
2430 Include gdb_obstack.h.
2431 Include gdb_regex.h
2432 Include frame.h
2433 Include hashtab.h
2434 Include completer.h
2435 Include gdb_stat.h
2436 Include block.h
2437 Include infcall.h
2438
2439 (ADA_RETAIN_DOTS): Make sure this is defined.
2440 (TRUNCATION_TOWARDS_ZERO): Define.
2441 (struct string_vector): Define.
2442 (unresolved_names): Remove definition.
2443 (xnew_string_vector): New function.
2444 (string_vector_append): New function.
2445 (extract_string): Make static.
2446 (ada_unqualified_name): New function.
2447 (add_angle_brackets): New function.
2448 (function_name_from_pc): New function.
2449 (place_on_stack): Rename to ensure_lval.
2450
2451 (ensure_lval): Renamed from place_on_stack.
2452 Make identity on lvals.
2453 Update comment.
2454 (is_nonfunction): New interface.
2455 Only symbols in LOC_CONST class can be enumerals.
2456 (fill_in_ada_prototype): Remove; now independent of language.
2457 (add_defn_to_vec): Add obstack and symtab arguments.
2458 Use obstack to hold collected definitions.
2459 (num_defns_collected): New function.
2460 (defns_collected): New function.
2461 (ada_resolve_subexp): Rename to resolve_subexp.
2462 (resolve_subexp): Renamed from ada_resolve_subexp.
2463 (ada_op_name): Return non-const result.
2464 (ada_decoded_op_name): Renamed from ada_op_name, now used for
2465 other purposes.
2466
2467 (to_fixed_array_type): Add declaration.
2468 (coerce_unspec_val_to_type): Remove offset parameter.
2469 (find_sal_from_funcs_and_line): New interface.
2470 (find_line_in_linetable): Ditto.
2471
2472 (all_sals_for_line): Rename to ada_sals_for_line and make
2473 global.
2474 Add new parameter. When set, do not ask the user to choose the
2475 instance, but use the first one found instead.
2476 Use given line number in returned sals.
2477 Fix comment.
2478 Skip the prologue if funfirstline is set.
2479 Correct for memory leak when 0 lines found.
2480
2481 (value_pos_atr): Use pos_atr.
2482 (pos_atr): New function.
2483 (standard_lookup): Add block parameter.
2484
2485 (makeTimeStart): Remove declaration and uses.
2486 (makeTimeStop): Remove declaration and uses.
2487
2488 (ada_completer_word_break_characters): Allow for VMS.
2489 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
2490 (raise_sym_name): New constant.
2491 (raise_unhandled_sym_name): New constant.
2492 (raise_assert_sym_name): New constant.
2493 (process_raise_exception_name): New constant.
2494 (longest_exception_template): New constant.
2495 (warning_limit): New variable to limit warnings during expression
2496 evaluation.
2497 (warnings_issued): New variable to keep track of warnings issued.
2498 (known_runtime_file_name_patterns): New constant.
2499 (known_auxiliary_function_name_patterns): New constant.
2500 (symbol_list_obstack): New variable.
2501
2502 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
2503 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
2504 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
2505 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
2506 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
2507 ada_variant_discrim_name, field_alignment, dynamic_template_type,
2508 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
2509 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
2510 and strcmp.
2511
2512 (ada_get_field_index): New function.
2513 (lim_warning): New function.
2514 (ada_translate_error_message): New function.
2515 (MAX_OF_SIZE): New function.
2516 (MIN_OF_SIZE): New function.
2517 (UMAX_OF_SIZE): New function.
2518 (UMIN_OF_SIZE): New function.
2519 (discrete_type_high_bound): New function.
2520 (discrete_type_low_bound): New function.
2521 (base_type): New function.
2522 (do_command): Remove.
2523
2524 (ada_update_initial_language): Use language_ada, not language_unknown.
2525 (ada_encode): Renamed from ada_mangle.
2526 Obey ADA_RETAIN_DOTS.
2527 (ada_decode): Renamed from ada_demangle.
2528 Update coding conventions.
2529 (decoded_names_store): New hash table.
2530 (ada_decode_symbol): New function.
2531 (ada_la_decode): New function.
2532
2533 (modify_general_field): Correct computations of offset and bit
2534 position.
2535 (desc_base_type): Handle ref types, too.
2536 (ada_is_direct_array_type): New function.
2537
2538 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2539 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2540 (ada_is_bogus_array_descriptor,ada_type_of_array,
2541 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
2542 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
2543 ada_is_array_descriptor_type.
2544
2545 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
2546 (ada_is_packed_array_type): Handle pointers or
2547 references to packed arrays as well.
2548 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
2549 (decode_packed_array_type): Search for the packed array type
2550 symbol in the currently selected block and associated
2551 superblocks too.
2552 Use lookup_symbol again.
2553
2554 (decode_packed_array): Handle pointers and references.
2555 Update call to coerce_unspec_val_to_type.
2556 (decode_packed_array_type,value_subscript_packed): Limit warnings.
2557 (ada_value_primitive_packed_val): Improve comment.
2558
2559 (ada_index_type): Substitute int type for "undefined".
2560 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
2561 ada_array_langth, ada_is_string_type): Use renamed
2562 ada_is_simple_array_type.
2563 (empty_array): New function.
2564
2565 (ada_resolve): Rename to resolve.
2566 (resolve): Make static.
2567 Call renamed resolve_subexp.
2568 Update comment.
2569 (ada_resolve_subexp): Rename to resolve_subexp.
2570 (resolve_subexp): Update comment.
2571 Decomment disabled code.
2572 Add LOC_COMPUTED* cases.
2573 Modify to use temporary struct symbols (marked as being in
2574 UNDEF_NAMESPACE) to indicate unresolved names, instead of
2575 OP_UNRESOLVED_VALUE.
2576 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
2577 Add OP_STRING case.
2578 Remove OP_ARRAY.
2579 Use SYMBOL_PRINT_NAME instead of ada_demangle.
2580 Use new ada_lookup_symbol_list interface.
2581 Use new ada_resolve_function interface.
2582 Remove OP_TYPE case.
2583
2584 (ada_args_match): Idiot proof against null actuals.
2585 Use intermediate variables to clarify.
2586 (ada_resolve_function): Update comment and interface.
2587 (mangled_ordered_before): Rename to encoded_ordered_before and
2588 update comment.
2589 (sort_choices): Update comment and interface.
2590 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
2591 (user_select_syms): New interface.
2592 Use new sort_choices interface.
2593 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
2594 (possible_user_operator_p): Idiot-proof against null values.
2595 (ada_simple_renamed_entity): Don't make cleanup; rely on
2596 caller to free result string.
2597 Remove const from return type.
2598 (make_array_descriptor): Rename uses of place_on_stack to
2599 ensure_lval.
2600 Make sure that arrays are on stack.
2601
2602 (HASH_SIZE): Define.
2603 (struct cache_entry): Define.
2604 (cache_space): Define.
2605 (cache): Define.
2606 (clear_ada_sym_cache): New function.
2607 (find_entry): New function.
2608 (lookup_cached_symbol): New function.
2609 (defn_vector_size): Define.
2610 (cache_symbol): New function.
2611 (defn_symbols): Remove.
2612
2613 (standard_lookup): Use lookup_symbol_in_language to get effect of
2614 C lookup.
2615 Cache results.
2616
2617 (symbol_completion_match): New function.
2618 (symbol_completion_add): New function.
2619 (ada_make_symbol_completion_list): New function.
2620
2621 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
2622 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
2623 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2624 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
2625
2626 (ada_lookup_simple_minsym): New function.
2627 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
2628
2629 (add_symbols_from_enclosing_procs): New interface.
2630 Conditionalize more helpfully.
2631 Don't bother if program isn't running.
2632 Use new interface to get_frame_block.
2633 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
2634
2635 (remove_extra_symbols): New interface.
2636 (xget_renaming_scope): New function.
2637 (is_package_name): New function.
2638 (renaming_is_visible): New function.
2639 (remove_out_of_scope_renamings): New function.
2640
2641 (ada_lookup_symbol_list): New interface.
2642 Properly reinitialize the symbol list obstack.
2643 Don't call add_symbols_from_enclosing_procs if we start from a
2644 static or global block.
2645 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
2646 add_symbols_from_enclosing_procs.
2647 Add symtab data to cached entries.
2648 Handle symbols prefixed with
2649 "standard__" specially; strip prefix and don't look in local symbols.
2650 Do not include out of scope renaming symbols in list of
2651 symbols returned.
2652 Add const to block parameter.
2653 Move check for non-local, non-global symbols earlier.
2654 Remove timing stuff.
2655 (ada_lookup_symbol): New interface.
2656 Find symtab as well.
2657 (ada_lookup_symbol_nonlocal): New function.
2658
2659 (is_name_suffix): Enhance suffix detection to recognize
2660 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
2661 (is_dot_digits_suffix): New function.
2662 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
2663
2664 (ada_add_block_symbols): New interface. Use obstack to return results
2665 in a vector of struct ada_symbol_infos. Add symtab argument.
2666 Use new interface to add_defn_to_vec.
2667 Remove calls to fill_in_ada_prototype.
2668 Use BLOCK_BUCKETS, BLOCK_BUCKET.
2669
2670 (ada_finish_decode_line_1): Add const qualification to local to fix
2671 warning.
2672 Start looking in static block for functions to avoid attempts
2673 to search frame chain for up-level variables.
2674 Adapt to new ada_sals_for_line interface.
2675 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
2676 Handle quoting of the function name inside the spec string.
2677 Skip prologue when funfirstline is set and update the
2678 function documentation to that effect.
2679
2680 (debug_print_lines, debug_print_block, debug_print_blocks,
2681 debug_print_symtab): Remove.
2682
2683 (ada_main_name): New function.
2684 (ada_exception_breakpoint_type): New function.
2685 (is_known_support_routine): New function.
2686 (ada_find_printable_frame): Renamed from find_printable_frame and made
2687 global.
2688 Remove level parameter.
2689 Use new interface to select_frame.
2690
2691 (begin_command): Remove.
2692 (ada_adjust_exception_stop): New function.
2693 (ada_print_exception_stop): New function.
2694 (exception_name_from_cond): New function.
2695 (ada_report_exception_break): Replace disabled code with
2696 conditionalization on GNAT_GDB.
2697 Get the exception name from the condition string.
2698 Remove and move functionality into new functions
2699 ada_print_exception_breakpoint_task and
2700 ada_print_exception_breakpoint_nontask.
2701 (error_breakpoint_runtime_sym_not_found): New function.
2702 (is_runtime_sym_defined): New function.
2703 (ada_breakpoint_rewrite): Uncomment suppressed code.
2704 Use symbolic error-message and runtime-symbol names.
2705 Surround runtime symbol names in quotes.
2706 Allow non-specific breakpoints on exceptions and assertions before
2707 program starts.
2708
2709 (ada_is_tagged_type): Add parameter.
2710 (ada_is_tag_type): New function.
2711 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
2712 (ada_variant_discrim_type): Ditto.
2713 (value_tag_from_contents_and_address): New function.
2714 (type_from_tag): New function.
2715 (struct tag_args): New structure used to communicate with
2716 ada_tag_name_1.
2717 (ada_tag_name_1): New function.
2718 (ada_tag_name): New function.
2719
2720 (ada_scan_number): Update comment.
2721 (find_struct_field): New function.
2722 (ada_search_struct_field): Make static.
2723 (ada_value_struct_elt): New version that returns references when
2724 given pointers or references to structs.
2725 (ada_lookup_struct_elt_type): Add 'refok' parameter.
2726 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
2727 interface.
2728 (ada_value_ind): Use new ada_to_fixed_value interface.
2729 (ada_coerce_ref): Ditto.
2730 (field_offset): Remove.
2731
2732 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
2733 (ada_find_renaming_symbol): New function.
2734 (ada_prefer_type): Prefer named types over unnamed ones.
2735 (variant_field_index): New function.
2736 (contains_variant_part): Removed: subsumed by variant_field_index.
2737 (ada_template_to_fixed_record_type): New function, mostly from
2738 template_to_fixed_record_type.
2739 (template_to_fixed_record_type):
2740 Do not scan the type fields beyond the last one; prevents a
2741 potential SEGV.
2742 Handle case where variant field is listed BEFORE discriminant it
2743 depends on.
2744 Fix calculation of record length when bit length is
2745 not evenly divisible by char length.
2746 Move code to ada_template_to_fixed_record_type and call it.
2747
2748 (template_to_static_fixed_type): Revise comment.
2749 Modify to work on ordinary record types as well as templates,
2750 so as to handle fields that use ___XVE or ___XVU encodings.
2751 (to_record_with_fixed_variant_part): Fill out comment.
2752 Initialize C++ stuff in right type.
2753 Allow case where DVAL is null.
2754 Handle case where variant field is not last.
2755 Fix typo concerning record length.
2756 (to_fixed_record_type): Decomment disabled code.
2757 (to_fixed_record_type): Use variant_field_index instead of
2758 contains_variant_part.
2759 (to_fixed_variant_branch_type): Ditto.
2760 (to_fixed_array_type): Decomment disabled code.
2761 (ada_to_fixed_type): Convert tagged types to the specific type.
2762 Deactivate the size-check for array types in order to avoid
2763 some false size alarms.
2764 (to_static_fixed_type): Decomment disabled code.
2765 Modify to call template_to_static_fixed_type
2766 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
2767 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
2768 Remove valaddr argument, as it is never really used.
2769 (ada_to_fixed_value): Change interface to act on single struct value*
2770 operand.
2771 (adjust_pc_past_prologue): New function.
2772 (ada_attribute_name): Modify to take enum exp_opcode argument.
2773
2774 (ada_enum_name): Recognize new homonym-distinguishing convention.
2775 Adjust local variable's type to remove compiler warning.
2776 Fix a small problem in the part that unqualifies the enumeration name.
2777 (ada_value_binop): New function.
2778 (ada_value_equal): New function.
2779
2780 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
2781 Don't give error message when not doing normal evaluation
2782 and a tagged type doesn't seem to contain a structure member.
2783 Give error message for packed arrays.
2784 For indexing arrays, handle pointers to packed arrays correctly.
2785 Handle case of 'first and 'last attributes of bare integral type
2786 without encoded subtype info.
2787 Remove some unnecessary casts.
2788 Fix uninitialized value of type in computing 'first, 'last, or 'length
2789 of array object.
2790 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
2791 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
2792 calls.
2793 Attributes are now exp_opcode values.
2794 Correct treatment of 'modulus.
2795 Better error message for taking 'length of wrong kind of type;
2796 improve comment.
2797 Change EVAL_NORMAL to noside for consistency.
2798 Use ada_value_binop for DIV, MOD, REM.
2799 Make special case out of array of length 0, since an argument
2800 of 0 upsets some platforms' malloc.
2801 Use OP_STRING instead of OP_ARRAY.
2802 For slice, add check that we have an array type before extracting
2803 a slice out of it. Avoids a SEGV.
2804 When evaluating an array slice, if the array type is a reference to
2805 an aligner type, then replace the aligner type by the actual type.
2806 Decomment disabled code.
2807 Remove some dead code.
2808 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
2809 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
2810 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
2811 and UNOP_MBR to UNOP_IN_RANGE.
2812 If an array type has a parallel ___XVE type, then use it.
2813 Turn arrays into pointers for lvalue arrays.
2814 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
2815 bounds error and handle 0-length slices.
2816 Use lim_warning.
2817 When selecting fields, apply ada_to_fixed_value (because the fields
2818 might have ___XVU or ___XVE encodings even if not dynamic.)
2819 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
2820 (ada_is_system_address_type): New function.
2821
2822 (get_var_value): Use new interface to ada_lookup_symbol_list.
2823 (get_int_var_value): New interface.
2824 (to_fixed_range_type): Allow unknown bound, with warning.
2825 (ada_is_modular_type): Decomment disabled code.
2826 (ADA_OPERATORS): New definition.
2827 (ada_operator_length): New function.
2828 (ada_expr_op_name): New function.
2829 (ada_forward_operator_length): New function.
2830 (ada_dump_subexp_body): New function.
2831 (ada_print_subexp): New function.
2832 (ada_exp_descriptor): New constant.
2833 (ada_op_print_tab): Add 'size. Remove FIXMEs.
2834 (ada_language_defn): Add ada_exp_descriptor entry.
2835 Change ada_parse => parse.
2836 Add post-parser entry.
2837 Use ada-specific non-local symbol lookup.
2838 Don't use C-style arrays.
2839 String lower-bound is 1.
2840 Decomment disabled code.
2841 (parse): New function.
2842 New fields ada_translate_error_message, ada_lookup_symbol,
2843 ada_lookup_minimal_symbol.
2844
2845 * ada-lang.h: Update copyright dates.
2846 Replace the mangle/demangle terminology throughout by the
2847 more appropriate encode/decode one.
2848 Include breakpoint.h.
2849 Forward declare struct partial_symbol, struct block.
2850 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
2851 (EXTRACT_ADDRESS): Remove.
2852 (EXTRACT_INT): Remove.
2853 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
2854 (MAX_ENCLOSING_FRAME_LEVELS): Define.
2855 (MAX_RENAMING_CHAIN_LENGTH): Define.
2856 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
2857
2858 (enum task_states): Remove.
2859 ada_task_states: Remove.
2860 (fat_string): Remove.
2861 (struct entry_call): Remove.
2862 (struct task_fields): Remove.
2863 (struct task_entry): Remove.
2864
2865 (struct ada_symbol_info): Define.
2866 (enum ada_attribute): Remove.
2867 (enum ada_operator): Define.
2868
2869 (ada_get_field_index): Declare.
2870 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
2871 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2872 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2873 (ada_lookup_symbol_list): New interface.
2874 (ada_decode_symbol): Declare.
2875 (ada_decode): Declare.
2876 (ada_lookup_symbol): New interface.
2877 (ada_update_initial_language): Declare.
2878 (ada_lookup_simple_minsym): Declare.
2879 (user_select_syms): New interface.
2880 (ada_sals_for_line): Declare.
2881 (ada_is_tagged_type): New interface.
2882 (ada_tag_name): Declare.
2883 (ada_lookup_struct_elt_type): Remove declaration.
2884 (ada_search_struct_field): Remove declaration.
2885 (ada_attribute_name): New interface.
2886 (ada_is_system_address_type): Declare.
2887 (ada_to_fixed_value): Remove declaration.
2888 (ada_template_to_fixed_record_type_1): Declare.
2889 (get_int_var_value): New interface.
2890 (ada_find_any_symbol): Declare.
2891 (ada_find_renaming_symbol): Declare.
2892 (ada_mangle): Rename to ada_encode.
2893 (ada_simple_renamed_entity): Remove const.
2894 (ada_main_name): Declare.
2895 (get_current_task): Rename to ada_get_current_task.
2896 (get_entry_number): Remove declaration.
2897 (ada_report_exception_break): Remove declaration.
2898 (ada_print_exception_breakpoint_nontask): Declare.
2899 (ada_print_exception_breakpoint_task): Declare.
2900 (ada_find_printable_frame): Declare.
2901
2902 * ada-lex.l: Update copyright notices.
2903 Use xmalloc and xfree instead of malloc and free.
2904 Use new interface to name_lookup.
2905 Use new interface to
2906 ada_mangle=>ada_encode.
2907 Redo handling of '$...' variable to parallel current treatment
2908 in c-exp.y.
2909 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
2910 digit_to_int, strtoulst, processInt, processReal, processId,
2911 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
2912 yywrap): Protoize.
2913
2914 (processInt): Use cast to remove harmless warning.
2915 (processReal): Modify to get rid of compiler warning on scan formats.
2916
2917 (processId): Replace xmalloc with obstack_alloc for name and remove
2918 call to ada_name_string_cleanup.
2919 Remove obsolete disabled code.
2920 (name_lookup): Ditto.
2921 New interface.
2922 Use obsavestring on temp_parse_space instead of savestring
2923 on name, and remove call to ada_name_string_cleanup.
2924 Free string returned from ada_simple_renamed_entity.
2925 Use new interface to ada_lookup_symbol_list.
2926 Decomment disabled code.
2927 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
2928 not types.
2929 When a type name lookup succeeds as a result of
2930 lookup_primitive_typename, check for regular type entry that has not
2931 yet been read in.
2932 Limit length of chain of renamed symbols we are willing to follow.
2933 Do not break names beginning with "standard__" into segments.
2934 (block_lookup): Use new interface to ada_lookup_symbol_list.
2935
2936 * ada-typeprint.c: Update copyright notice.
2937 (demangled_type_name): Rename to decoded_type_name.
2938 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
2939 (print_range_bound): Correct handling of negative
2940 bounds that make the index type looked unsigned under STABS.
2941 (print_dynamic_range_bound): Use new interface to get_int_var_value.
2942 (print_range_type_named): Use the builtin int type if no type
2943 corresponding to the given type name could be found.
2944 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
2945 Add some bullet-proofing.
2946 (print_variant_clauses): Allow for variant branches with ___XVU
2947 encodings that are not dynamic fields.
2948 Use new interface to ada_is_tagged_type.
2949 (print_record_type): Allow for fields with ___XVE encodings that
2950 are not dynamic fields.
2951 Use new interface to ada_is_tagged_type.
2952 (ada_print_type): ada_is_array_descriptor =>
2953 ada_is_array_descriptor_type.
2954
2955 * ada-valprint.c: Update copyright notice.
2956 Include gdb_string.h
2957 Include infcall.h
2958 (ui_memcpy): New function.
2959 (ada_print_floating): New function.
2960 (ada_print_str): Order arguments correctly.
2961 Correct handling of empty arrays and arrays of 0-length items.
2962 ada_is_array_descriptor => ada_is_array_descriptor_type
2963 Print values of type System.Address in hexadecimal format.
2964 Use ada_print_floating to print floating-point numbers in Ada format.
2965 Print class tag values with type names.
2966 No longer print the address of reference values. Avoids
2967 a potential confusion.
2968 (ada_value_print): Stop printing the object type for reference
2969 values, but preserve that behavior for access types. Avoids
2970 a potential confusion.
2971 Simplify one conditional expression, as the first part is now
2972 necessarily true.
2973 ada_is_array_descriptor => ada_is_array_descriptor_type
2974 Add check for arrays for null records, and print them by hand.
4c4b4cd2 2975
f65f91b5
JB
29762004-06-01 Jim Blandy <jimb@redhat.com>
2977
2978 * ppc-tdep.h: Delete unused 'regoff' member.
2979 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
2980
d4687fa0
MC
29812004-06-01 Michael Chastain <mec.gnu@mindspring.com>
2982
2983 Fix PR symtab/1661.
2984 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
2985 (hpread_read_struct_type): Likewise.
2986
de169ec9
AC
29872004-06-01 Andrew Cagney <cagney@gnu.org>
2988
c6902d46
AC
2989 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
2990 instead of xasprintf.
2991 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
2992 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
2993 (mi_cmd_data_list_register_names)
2994 (mi_cmd_data_list_changed_registers)
2995 (mi_cmd_data_list_register_values)
2996 (get_register, mi_cmd_data_write_register_values)
2997 (mi_cmd_data_write_register_values)
2998 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
2999 (mi_cmd_target_download, mi_cmd_target_select)
3000 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3001 (mi_execute_cli_command, mi_execute_async_cli_command)
3002 (mi_execute_async_cli_command): Ditto.
3003 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3004 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3005
6085fc2d
AC
3006 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3007 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3008 error_last_message instead of mi_error_last_message.
3009 * mi/mi-main.c (mi_error_last_message): Delete function.
3010
de169ec9
AC
3011 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3012 "invalid number of columns" error. Delete redundant "out of
3013 memory" check.
3014
1fc7d519
MK
30152004-05-31 Mark Kettenis <kettenis@gnu.org>
3016
6cfb2041
MK
3017 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3018 (gregset_t, fpregset_t): Remove typedefs.
3019 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3020 (REG_OFFSET): Rename argument.
3021 (i386bsd_r_reg_offset): Rename from reg_offset.
3022 (REG_ADDR): Remove macro.
3023 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3024 functions.
3025 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3026 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3027 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3028 instead of supply_gregset.
3029 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3030 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3031 instead of fill_gregset.
3032 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3033
1fc7d519
MK
3034 * i386bsd-nat.c: Don't include "gregset.h".
3035 (supply_gregset, fill_gregset): Make static.
3036 (supply_fpregset, fill_fpregset): Remove.
3037 * Makefile.in (i386bsd-nat.o): Update dependencies.
3038
2c34abbe
MK
30392004-05-30 Mark Kettenis <kettenis@gnu.org>
3040
448724fb
MK
3041 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3042 "gdb_assert.h". Con't include "gregset.h".
3043 (fbsd_make_corefile_notes): Use regset-based core file support
3044 instead off fill_gregset and fill_fpregset.
3045 * Makefile.in (fbsd-proc.o): Update dependencies.
3046
5ca8ca7c
MK
3047 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3048 instructions.
3049 (m88k_frame_prev_register): Simplify code a bit.
3050
593adc23
MK
3051 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3052 (amd64_collect_fpregset): New function.
3053 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3054
8d1b517b
MK
3055 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3056
7fdafb5a
MK
3057 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3058 (i386_collect_gregset): New function.
3059 (i386_supply_fpregset): Adjust comment.
3060 (i386_collect_fpregset): New function.
3061 (i386_regset_from_core_section): Use i386_collect_gregset and
3062 i386_collect_fpregset.
3063
8693c419
MK
3064 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3065 handle VALUEP being null.
3066
2c34abbe
MK
3067 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3068
45d134d8
MK
30692004-05-29 Mark Kettenis <kettenis@gnu.org>
3070
1698f4e7
MK
3071 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3072
45d134d8
MK
3073 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3074 assembler in OpenBSD 3.5-current.
3075 (amd64obsd_sigcontext_addr): Likewise.
3076
691d145a
JB
30772004-05-28 Jim Blandy <jimb@redhat.com>
3078
3079 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3080 register set, so our regcache isn't declared "legacy" and our E500
3081 pseudoregister read and write functions aren't ignored.
3082 (rs6000_register_byte, rs6000_register_raw_size,
3083 rs6000_register_virtual_type, rs6000_register_convertible,
3084 rs6000_register_convert_to_virtual,
3085 rs6000_register_convert_to_raw): Deleted.
3086 (rs6000_register_type, rs6000_convert_register_p,
3087 rs6000_register_to_value, rs6000_value_to_register): New
3088 functions.
3089 (rs6000_gdbarch_init): Don't register
3090 gdbarch_deprecated_register_size,
3091 gdbarch_deprecated_register_bytes,
3092 gdbarch_deprecated_register_byte,
3093 gdbarch_deprecated_register_raw_size,
3094 gdbarch_deprecated_register_virtual_type,
3095 gdbarch_deprecated_register_convertible,
3096 gdbarch_deprecated_register_convert_to_virtual, or
3097 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3098 register gdbarch_register_type, gdbarch_convert_register_p,
3099 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3100
18ed0c4e
JB
31012004-05-26 Jim Blandy <jimb@redhat.com>
3102
3103 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3104 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3105 functions, updated to match the register numberings used in GCC.
3106 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3107 rs6000_dwarf2_reg_to_regnum as register number conversions
3108 functions for STABS and Dwarf2.
3109
779af9e3
RC
31102004-05-26 Randolph Chung <tausq@debian.org>
3111
3112 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3113 in header file.
3114
c23968a2
JB
31152004-05-25 Joel Brobecker <brobecker@gnat.com>
3116
3117 * NEWS: Document new "start" command.
3118
3a7d1c27
RC
31192004-05-25 Randolph Chung <tausq@debian.org>
3120
3121 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3122 hppa-linux.
3123
43613416
RC
31242004-05-25 Randolph Chung <tausq@debian.org>
3125
3126 * hppa-hpux-tdep.c (offsetof): Define.
3127 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3128 (hppa32_hpux_frame_base_before_sigtramp)
3129 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3130 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3131 (hppa64_hpux_frame_base_before_sigtramp)
3132 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3133 functions.
3134 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3135 (hppa_hpux_sigtramp_frame_unwind_cache)
3136 (hppa_hpux_sigtramp_frame_this_id)
3137 (hppa_hpux_sigtramp_frame_prev_register)
3138 (hppa_hpux_sigtramp_frame_unwind)
3139 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3140 (hppa_hpux_init_abi): Register sigtramp unwinder.
3141 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3142
6d1be3f1
RC
31432004-05-25 Randolph Chung <tausq@debian.org>
3144
3145 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3146 and multiple stack unwinds.
3147 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3148
97c34f65
AC
31492004-05-25 Andrew Cagney <cagney@gnu.org>
3150
3151 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3152 * symfile-mem.h: Delete file.
3153 * symfile-mem.c: Do not include "symfile-mem.h".
3154 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3155 "struct bfd_section". When an error do not bother returning NULL.
3156 (add_symbol_file_from_memory_command): Use "struct bfd" and
3157 "struct bfd_section".
3158 * Makefile.in (symfile_mem_h): Delete.
3159 (symfile-mem.o): Update dependencies.
3160
e23cbd82
NR
31612004-05-25 Nick Roberts <nickrob@gnu.org>
3162
3163 * gdb-mi.el: New file.
3164
20d2ca3e
AC
31652004-05-25 Andrew Cagney <cagney@gnu.org>
3166
3167 * inftarg.c: Include "observer.h".
3168 (child_attach, child_create_inferior): Notify inferior_created.
3169 * corelow.c: Include "observer.h".
3170 (core_open): Notify inferior_created.
3171 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3172
c27cda74
AC
31732004-05-25 Andrew Cagney <cagney@gnu.org>
3174
3175 * target.h (struct target_ops): Add from_tty to
3176 to_create_inferior.
3177 (target_create_inferior, find_default_create_inferior): Update.
3178 * infcmd.c (run_command): Update.
3179 * wince.c (child_create_inferior): Update.
3180 * win32-nat.c (child_create_inferior): Update.
3181 * uw-thread.c (uw_thread_create_inferior): Update.
3182 * thread-db.c (thread_db_create_inferior): Update.
3183 * target.c (debug_to_create_inferior)
3184 (find_default_create_inferior): Update.
3185 (maybe_kill_then_create_inferior): Update.
3186 * sol-thread.c (sol_thread_create_inferior): Update.
3187 * remote.c (extended_remote_async_create_inferior)
3188 (extended_remote_create_inferior): Update.
3189 * remote-vx.c (vx_create_inferior): Update.
3190 * remote-st.c (st2000_create_inferior): Update.
3191 * remote-sim.c (gdbsim_create_inferior): Update.
3192 * remote-sds.c (sds_create_inferior): Update.
3193 * remote-rdp.c (remote_rdp_create_inferior): Update.
3194 * remote-rdi.c (arm_rdi_create_inferior): Update.
3195 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3196 * remote-e7000.c (e7000_create_inferior): Update.
3197 * procfs.c (procfs_create_inferior): Update.
3198 * ocd.c (ocd_create_inferior): Update.
3199 * ocd.h (ocd_create_inferior): Update.
3200 * nto-procfs.c (procfs_create_inferior): Update.
3201 * monitor.c (monitor_create_inferior): Update.
3202 * lin-lwp.c (lin_lwp_create_inferior): Update.
3203 * inftarg.c (child_create_inferior): Update.
3204 * hpux-thread.c (hpux_thread_create_inferior): Update.
3205 * gnu-nat.c (gnu_create_inferior): Update.
3206
1db2a798
AC
32072004-05-25 Andrew Cagney <cagney@gnu.com>
3208
3209 * MAINTAINERS: Update e-mail address.
3210
007d08bb
RC
32112004-05-24 Randolph Chung <tausq@debian.org>
3212
3213 * thread.c (info_threads_command, thread_apply_all_command)
3214 (thread_apply_command, thread_command, do_captured_thread_select):
3215 Remove HPUXHPPA-specific code.
3216
69e7b95e
RC
32172004-05-24 Randolph Chung <tausq@debian.org>
3218
3219 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3220 unused symbols.
3221 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3222 references.
3223
a4d5f2e0
JB
32242004-05-24 Joel Brobecker <brobecker@gnat.com>
3225
3226 * infcmd.c (kill_if_already_running): New function, extracted
3227 from run_command().
3228 (run_command): Replace extracted code by call to
3229 kill_if_already_running().
3230 (start_command): New function.
3231 (_initialize_infcmd): Add "start" command.
3232
bf2ca189
MK
32332004-05-24 Mark Kettenis <kettenis@gnu.org>
3234
3235 Add OpenBSD/m88k support.
3236 * NEWS (New native configurations): Mention OpenBSD/m88k.
3237 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3238 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3239 * Makefile.in (m88k_tdep_h): New variable.
3240 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3241 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3242 * configure.host: Add m88*-*-openbsd*.
3243 * configure.tgt: Add m88*-*-openbsd*.
3244
80fadb11
JB
32452004-05-24 Jim Blandy <jimb@redhat.com>
3246
3247 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3248 to approve changes.
3249
19e2d14b
KB
32502004-05-24 Kevin Buettner <kevinb@redhat.com>
3251
3252 * symtab.c (fixup_section): Search section table when lookup by
3253 name fails.
3254
1b07b470
RC
32552004-05-24 Randolph Chung <tausq@debian.org>
3256
3257 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3258 be "small_struct".
3259
368702b1
MK
32602004-05-24 Mark Kettenis <kettenis@gnu.org>
3261
5df97fde
MK
3262 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3263 register number in regcache_raw_collect call.
3264 (m68kbsd_collect_fpregset): Likewise.
3265 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3266
368702b1
MK
3267 * regset.h (struct regset): Add back `regset' member.
3268
a770d4ec
MK
32692004-05-23 Mark Kettenis <kettenis@gnu.org>
3270
70f9f479
MK
3271 * configure.in: Check for td_pcb in `struct thread'.
3272 * configure, config.in: Regenerated.
3273
2e16d79e
MK
3274 * dpx2-nat.c: Remove file.
3275 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3276 (dpx2-nat.o): Remove dependencies.
3277
492cf391
MK
3278 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3279 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3280 (amd64obsd_supply_pcb): New function.
3281 (_initialize_amd64obsd_nat): Enable libkvm interface.
3282 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3283 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3284 (LOADLIBES): New variable.
3285
a770d4ec
MK
3286 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3287 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3288 (sparc32nbsd_supply_pcb): New function.
3289 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3290 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3291 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3292 (LOADLIBES): New variable.
3293
9ea75c57
MK
32942004-05-22 Mark Kettenis <kettenis@gnu.org>
3295
2e0c3539
MK
3296 * bsd-kvm.c, bsd-kvm.h: New files.
3297 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3298 "bsd-kvm.h".
3299 (i386fbsd_supply_pcb): New function.
3300 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3301 (i386fbsd-nat.o): Update dependencies.
3302 (bsd_kvm_h): New variable.
3303 (bsd-kvm.o): New dependency.
3304 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3305 (LOADLIBES): New variable.
3306
9ea75c57
MK
3307 * regset.c: Tweak comment.
3308 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3309 macro.
3310 * regset.h: Update copyright year.
3311 (struct regset): Remove `descr' member, add `gdbarch' member.
3312 (regset_alloc): Adjust prototype and comment.
3313 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3314 (i386_supply_fpregset): Likewise.
3315 (i386_regset_from_core_section): Update call to regset_alloc.
3316 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3317 REGSET->arch.
3318 (i386obsd_aout_regset_from_core_section): Update call to
3319 regset_alloc.
3320 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3321 REGSET->arch.
3322 (i386nbsd_aout_regset_from_core_section): Update call to
3323 regset_alloc.
3324 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3325 REGSET->arch.
3326 (amd64_regset_from_core_section): Update call to regset_alloc.
3327 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3328 REGSET->arch.
3329 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3330 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3331 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3332 (sparc32nbsd_init_abi): Update call to regset_alloc.
3333 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3334 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3335 (sparc64obsd_init_abi): Update call to regset_alloc.
3336 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3337 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3338 (sparc64nbsd_init_abi): Update call to regset_alloc.
3339 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3340 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3341 (sparc64fbsd_init_abi): Update call to regset_alloc.
3342
867e2dc5
JB
33432004-05-22 Jim Blandy <jimb@redhat.com>
3344
3345 * ppc-tdep.h (spe_register_p): New declaration.
3346 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3347 ppc_spefscr_regnum.
3348 * rs6000-tdep.c (spe_register_p): New function.
3349 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3350 spefscr.
3351 (rs6000_gdbarch_init): Initialize the new members of the tdep
3352 structure.
3353
617a4cba
JB
33542004-05-21 Jim Blandy <jimb@redhat.com>
3355
0397dee1
JB
3356 * ppc-linux-nat.c (fetch_register): Move code back to be next
3357 to the comment that describes it. (Moved code, instead of
3358 comment, for symmetry with store_register.)
3359
617a4cba
JB
3360 Allocate regset structures in the gdbarch's obstack, not using
3361 xmalloc.
3362 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3363 Add 'arch' argument. Allocate the regset on arch's obstack, not
3364 using xmalloc.
3365 * regset.h (regset_alloc): Update declaration.
3366 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3367 gdbarch argument.
3368 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3369 * i386-tdep.c (i386_regset_from_core_section): Same.
3370 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3371 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3372 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3373 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3374 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3375 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3376
9aa3914d
JB
33772004-05-21 Joel Brobecker <brobecker@gnat.com>
3378
3379 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3380
99c87dab
JB
33812004-05-21 Jim Blandy <jimb@redhat.com>
3382
3383 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3384 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3385
c2b6b4aa
JB
33862004-05-20 Jim Blandy <jimb@redhat.com>
3387
3388 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3389
144529d0
MK
33902004-05-20 Mark Kettenis <kettenis@gnu.org>
3391
3392 * regset.h: Make prototype const-correct.
3393 * regset.c (regset_xmalloc): Make const-correct.
3394
4725b721
PH
33952004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
3396
3397 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
3398 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
3399 (symbol_search_name): Declare.
3400
3401 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
3402 (iter_name_next_hashed): Ditto.
3403 (iter_name_next_linear): Ditto.
3404 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
3405
3406 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
3407 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
3408 (symbol_search_name): New function.
3409
3410 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
3411
3412 * minsyms.c (build_minimal_symbol_hash_tables): Change
3413 test for adding to demangled hash table to check for difference
3414 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
3415
be07a590
JB
34162004-05-19 Jim Blandy <jimb@redhat.com>
3417
3418 Use a constructor function to create regset structures.
3419 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
3420 (struct regset): Use supply_regset_ftype. Add new
3421 'collect_regset' member.
3422 (regset_xmalloc): New declaration.
3423 * regset.c: New file.
3424 * am64-tdep.c (amd64_regset_from_core_section): Use
3425 regset_xmalloc to construct regset structures.
3426 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3427 * i386-tdep.c (i386_regset_from_core_section): Same.
3428 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3429 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3430 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3431 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3432 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3433 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3434 * Makefile.in (COMMON_OBS): Add regset.o.
3435 (regset.o): New rule.
3436
604368f5
JB
34372004-05-19 Joel Brobecker <brobecker@gnat.com>
3438
3439 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
3440 and pthread_cond_wait.c.
3441
82d69f8b
JB
34422004-05-18 Jim Blandy <jimb@redhat.com>
3443
3444 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
3445 before the mach-specific switch, and then let the individual cases
3446 override the defaults, rather than leaving them uninitialized
3447 until the switch and then setting them in each case.
3448
5859efe5
RC
34492004-05-18 Randolph Chung <tausq@debian.org>
3450
3451 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
3452 millicode functions.
3453
9ca80cf8
RC
34542004-05-18 Randolph Chung <tausq@debian.org>
3455
3456 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
3457 references to dld_flags_buffer consistent.
3458
ed70ba00
RC
34592004-05-18 Randolph Chung <tausq@debian.org>
3460
3461 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
3462 it for unwinding the stack.
3463
63100632
RC
34642004-05-18 Randolph Chung <tausq@debian.org>
3465
3466 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
3467 Undefine these so we can overide them using gdbarch.
3468
090ccbb7
RC
34692004-05-18 Randolph Chung <tausq@debian.org>
3470
3471 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
3472 handling for 64-bit HPUX (elf).
3473
594706e6
DJ
34742004-05-18 Daniel Jacobowitz <dan@debian.org>
3475
3476 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
3477 constants.
3478 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3479 * ia64-tdep.c (examine_prologue): Likewise.
3480 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
3481 * v850-tdep.c (v850_fix_call_dummy): Likewise.
3482
e5483145
MK
34832004-05-18 Mark Kettenis <kettenis@gnu.org>
3484
3485 * vax-tdep.c (vax_return_value): Implement
3486 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3487
caed1a45
MK
34882004-05-17 Mark Kettenis <kettenis@gnu.org>
3489
3490 * vax-tdep.c (vax_return_value): Fix typo.
3491
3c0b7db2
AC
34922004-05-17 Andrew Cagney <cagney@redhat.com>
3493
5aae53e5
AC
3494 * MAINTAINERS: Mark Salter was also responsible for
3495 testsuite/config/
3496
3c0b7db2
AC
3497 * NEWS: Mention signal fixes.
3498
22b0923d
RC
34992004-05-17 Randolph Chung <tausq@debian.org>
3500
3501 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
3502 check to see if we are unwinding an export stub. Export stubs clobber
3503 the %rp in the call path and stores the original rp in a stack slot.
3504
22f2b2f3
JB
35052004-05-17 Jim Blandy <jimb@redhat.com>
3506
3507 * MAINTAINERS: Update address for J.T. Conklin.
3508
cea96d64
RC
35092004-05-17 Randolph Chung <tausq@debian.org>
3510
3511 * hppa-tdep.c: Remove superfluous #include's.
3512 * Makefile.in (hppa-tdep.o): Update dependencies.
3513
f08f6a4a
RC
35142004-05-17 Randolph Chung <tausq@debian.org>
3515
3516 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
3517 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
3518 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
3519 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
3520 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
3521 Remove static function declarations.
3522
51da707a
MK
35232004-05-17 Mark Kettenis <kettenis@gnu.org>
3524
caed1a45
MK
3525 * alphabsd-nat.c: Update copyright year.
3526 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
3527
c0c2b0db
MK
3528 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
3529 and M68K_A2_REGNUM.
3530
51da707a
MK
3531 * m68k-tdep.c (m68k_svr4_return_value): Implement
3532 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3533
8d027a04
MK
35342004-05-16 Mark Kettenis <kettenis@gnu.org>
3535
3536 * sol-thread.c Update copyright year. Fix various coding
3537 standards violations. Tweak a few comments.
3538 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
3539 Delete prototypes.
3540
0d99fdb9
RC
35412004-05-15 Randolph Chung <tausq@debian.org>
3542
3543 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
3544 as pointer instead of array reference since HPUX compiler does
3545 not accept unsized array arguments.
3546 * somsolib.c (dld_flags_buffer): Use constant array size.
3547
f7e3843a
MK
35482004-05-15 Mark Kettenis <kettenis@gnu.org>
3549
0fe85704
MK
3550 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
3551 offset with decimal offset.
3552 (amd64obsd_sigcontext_addr): Return correct address for entire
3553 signal trampoline.
3554
a54f9a00
MK
3555 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
3556 instead of get_frame_base.
3557
feae6502
MK
3558 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
3559 (fill_gregset): Use regcache_raw_collect.
3560
0382d099
MK
3561 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
3562 ppcobsd-tdep.c.
3563
f7e3843a
MK
3564 * config/sparc/tm-nbsd64.h: Remove file.
3565 * config/tm-sunos.h: Remove file.
3566
773df3e5
JB
35672004-05-15 Joel Brobecker <brobecker@gnat.com>
3568
3569 * rs6000-tdep.c (store_param_on_stack_p): New function,
3570 an improved version of some code extracted from skip_prologue().
3571 (skip_prologue): Use store_param_on_stack_p() to detect
3572 instructions saving a parameter on the stack. Detect when r0
3573 is used to save a parameter.
3574 Do not mark "li rx, SIMM" instructions as part of the prologue,
3575 unless the following instruction is also part of the prologue.
3576
95918acb
AC
35772004-05-14 Andrew Cagney <cagney@redhat.com>
3578
06f32659
AC
3579 * infrun.c (handle_inferior_event): Simplify
3580 STEP_OVER_UNDEBUGGABLE.
3581
95918acb
AC
3582 * infrun.c (handle_step_into_function): Delete function.
3583 (handle_inferior_event): Inline calls to
3584 handle_step_into_function.
3585
40711ff1 35862004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
3587
3588 * rs6000-nat.c: Fix a comment.
3589
02f60eae
JB
35902004-05-12 David Anderson <davea@sgi.com>
3591
3592 Committed by Jim Blandy <jimb@redhat.com>:
3593 * regcache.c (struct regcache_descr): fix comment spelling.
3594
552e377b
JB
35952004-05-13 J. Brobecker <brobecker@gnat.com>
3596
3597 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
3598 Fixes a link link failure.
3599
349766b2
JB
36002004-05-13 J. Brobecker <brobecker@gnat.com>
3601
3602 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
3603 error that was causing the build to fail.
3604
0d4d5484
JB
36052004-05-13 J. Brobecker <brobecker@gnat.com>
3606
3607 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
3608 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
3609
0b30808c
AC
36102004-05-13 Andrew Cagney <cagney@redhat.com>
3611
3612 * infrun.c (handle_inferior_event): Check for
3613 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
3614 calls. Update comments.
3615
cdf2c5f5
JB
36162004-05-13 Jim Blandy <jimb@redhat.com>
3617
063715bf
JB
3618 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
3619 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3620 (store_regs_user_thread, store_regs_kernel_thread): Use
3621 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
3622 * ppc-linux-nat.c (fill_gregset): Same.
3623 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3624 (ppc_linux_sigtramp_cache): Same.
3625 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
3626 (ppcnbsd_sigtramp_cache_init): Same.
3627 * rs6000-nat.c (fetch_core_registers): Same.
3628 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3629 (rs6000_frame_cache): Same.
3630
cdf2c5f5
JB
3631 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
3632 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
3633 of assuming that the gprs are numbered starting with zero.
3634 * ppc-linux-nat.c (fill_gregset): Same.
3635 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
3636 * ppcnbsd-nat.c (getregs_supplies): Same.
3637 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
3638 * rs6000-nat.c (fetch_core_registers): Same.
3639 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
3640
450bd37b
MS
36412004-05-07 Michael Snyder <msnyder@redhat.com>
3642
3643 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
3644 LOC_COMPUTED_ARG, and LOC_INDIRECT.
3645
4a72a2a6
AC
36462004-05-13 Andrew Cagney <cagney@redhat.com>
3647
3648 * infrun.c (handle_inferior_event): Use frame_unwind_id.
3649
8edfa926
BM
36502004-05-13 Bryce McKinlay <mckinlay@redhat.com>
3651
3652 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
3653 base_address for shared libraries.
3654
723e0e3d
BM
36552004-05-13 Bryce McKinlay <mckinlay@redhat.com>
3656
3657 * MAINTAINERS (write after approval): Add myself.
3658
00d4360e
UW
36592004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3660
3661 * breakpoint.c (bpstat_stop_status): Add new argument
3662 STOPPED_BY_WATCHPOINT. Use it instead of testing
3663 target_stopped_data_address agaist 0 to check whether
3664 or not we stopped due to a hardware watchpoint.
3665 * breakpoint.h (bpstat_stop_status): Adapt prototype.
3666 * infrun.c (handle_inferior_event): Call bpstat_stop_status
3667 with new argument.
3668
ec76baa5
JB
36692004-05-12 Jim Blandy <jimb@redhat.com>
3670
3671 * configure.in: When checking whether we should use the -bbigtoc
3672 option, don't forget to restore the original value of LDFLAGS.
3673 * configure: Regenerated.
3674
f2c9ca08
AC
36752004-05-12 Andrew Cagney <cagney@redhat.com>
3676
3677 * thread.c (load_infrun_state): Delete step_sp.
3678 * infrun.c (context_switch): Ditto.
3679 * inferior.h (step_sp): Ditto.
3680 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
3681 * gdbthread.h (struct thread_info, save_infrun_state)
3682 (restore_infrun_state): Ditto.
3683
090ddb2a
UW
36842004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
3685
3686 * MAINTAINERS (write after approval): Add myself.
3687
8aad930b
AC
36882004-05-12 Andrew Cagney <cagney@redhat.com>
3689
3690 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
3691 eliminate reference to step_sp.
3692 (struct execution_control_state, init_execution_control_state)
3693 (handle_inferior_event, keep_going): Delete update_step_sp and
3694 step_sp.
3695 * infcmd.c (step_sp): Note that variable is unused.
3696
922d5ae0
AC
36972004-05-11 Andrew Cagney <cagney@redhat.com>
3698
3699 * infrun.c (step_over_function): Delete function.
3700 (handle_step_into_function): Use insert_step_resume_breakpoint.
3701 (insert_step_resume_breakpoint): Fix assertion.
3702
017c5ca5
NR
37032004-05-11 Nick Roberts <nickrob@gnu.org>
3704
3705 * utils.c (defaulted_query): Just use the normal query input type
3706 when printing the annotations.
3707
42edda50
AC
37082004-05-11 Andrew Cagney <cagney@redhat.com>
3709
3710 * infrun.c (handle_inferior_event): Simplify code handling
3711 step-into or return-from a signal trampoline.
3712
d28b44a7
AC
37132004-05-11 Andrew Cagney <cagney@redhat.com>
3714
3715 * ppcnbsd-tdep.c: Include "gdb_assert.h".
3716 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
3717
383f0f5b
JB
37182004-05-10 Jim Blandy <jimb@redhat.com>
3719
d0b57c3a
JB
3720 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
3721 with a call to internal_error.
3722
383f0f5b
JB
3723 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
3724 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
3725 processor variant lacks those registers.
3726 (ppc_floating_point_unit_p): Change description to make it clear
3727 that this returns info about the ISA, not the ABI.
3728 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
3729 return true or false by checking tdep->ppc_fp0_regnum and
3730 tdep->ppc_fpscr_regnum. The original code replicated the BFD
3731 arch/mach switching done in rs6000_gdbarch_init; it's better to
3732 keep that logic there, and just check the results here.
3733 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
3734 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
3735 floating-point registers.
3736 (ppc_supply_fpregset, ppc_collect_fpregset)
3737 (rs6000_push_dummy_call, rs6000_extract_return_value)
3738 (rs6000_store_return_value): Assert that we have floating-point
3739 registers.
3740 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
3741 (rs6000_frame_cache): Don't note the locations at which
3742 floating-point registers were saved if we have no fprs.
3743 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
3744 registers.
3745 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3746 (store_regs_user_thread, store_regs_kernel_thread): Only call
3747 supply_fprs / fill_fprs if we actually have floating-point
3748 registers.
3749 (special_register_p): Check ppc_fpscr_regnum before matching
3750 against it.
3751 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
3752 supply / collect fpscr if we don't have it.
3753 * ppc-bdm.c: #include "gdb_assert.h".
3754 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
3755 have floating-point registers, since I can't test this code on
3756 FP-free systems to adapt it.
3757 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
3758 fpscr and floating point register numbers if they don't exist.
3759 (fetch_register): Assert that we have floating-point registers
3760 before we reach the code that handles them.
3761 (store_register): Same. And use tdep instead of calling
3762 gdbarch_tdep again.
3763 (fill_fpregset): Don't try to collect FP registers and fpscr if we
3764 don't have them.
3765 (ppc_linux_sigtramp_cache): Don't record the saved locations of
3766 fprs and fpscr if we don't have them.
3767 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
3768 don't have them.
3769 * ppcnbsd-nat.c: #include "gdb_assert.h".
3770 (getfpregs_supplies): Assert that we have floating-point registers.
3771 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
3772 * ppcobsd-tdep.c: #include "gdb_assert.h".
3773 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
3774 have floating-point registers.
3775 * rs6000-nat.c (regmap): Don't match against the fpscr and
3776 floating point register numbers if they don't exist.
3777 (fetch_inferior_registers, store_inferior_registers,
3778 fetch_core_registers): Only fetch / store / supply the
3779 floating-point registers and the fpscr if we have them.
3780 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
3781 (ppcobsd-tdep.o): Update dependencies.
3782
15960608
AC
37832004-05-10 Andrew Cagney <cagney@redhat.com>
3784
3785 * infrun.c (through_sigtramp_breakpoint): Delete variable.
3786 (context_switch): Do not switch through_sigtramp_breakpoint.
3787 * gdbthread.h (save_infrun_state, load_infrun_state)
3788 (struct thread_info): Delete through_sigtramp_breakpoint parameter
3789 and structure member.
3790 * thread.c (load_infrun_state, save_infrun_state): Update.
3791
5ab5aa0f
MK
37922004-05-10 Mark Kettenis <kettenis@gnu.org>
3793
3794 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
3795
da78b0e7
DJ
37962004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3797
3798 * acinclude.m4: Quote macro names being defined by AC_DEFUN
3799 throughout.
3800 * aclocal.m4: Regenerate.
3801
cca0d3b0
NW
38022004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
3803
3804 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
3805
d303a6c7
AC
38062004-05-10 Andrew Cagney <cagney@redhat.com>
3807
3808 * infrun.c (check_sigtramp2): Delete function.
3809 (handle_inferior_event): When single stepping, and taking a
3810 signal, set a breakpoint at the signal return address. Delete
3811 redundant calls to check_sigtramp2.
3812 (insert_step_resume_breakpoint): New function.
3813 (through_sigtramp_breakpoint, handle_inferior_event)
3814 (follow_exec, wait_for_inferior, fetch_inferior_event)
3815 (currently_stepping, keep_going): Delete most uses of
3816 through_sigtramp_breakpoint, not that it should be deleted.
3817 (delete_breakpoint_current_contents): Delete function.
3818
03f4cc20
RC
38192004-05-10 Randolph Chung <tausq@debian.org>
3820
3821 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
3822 target.
3823 * config/pa/tm-linux.h: New file.
3824
37fc812e
DJ
38252004-05-10 Daniel Jacobowitz <drow@mvista.com>
3826
3827 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
3828 of prefixes. Don't print the prefix twice in the CLI.
3829
26c0b942
JB
38302004-05-10 Jim Blandy <jimb@redhat.com>
3831
2e56e9c1
JB
3832 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
3833 collect all the gprs.
3834
26c0b942
JB
3835 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
3836 loop collecting gprs.
3837
dc497459
AC
38382004-05-09 Andrew Cagney <cagney@redhat.com>
3839
3840 * remote-vx.c (net_step): Delete step-range code.
3841 * remote.c (remote_resume, init_all_packet_configs)
3842 (set_remote_protocol_E_packet_cmd)
3843 (show_remote_protocol_E_packet_cmd)
3844 (remote_protocol_E, show_remote_cmd, _initialize_remote)
3845 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
3846 (show_remote_protocol_e_packet_cmd): Ditto.
3847
0543f387
MK
38482004-05-09 Mark Kettenis <kettenis@gnu.org>
3849
c481d1ca
MK
3850 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
3851
f626a069
MK
3852 * hppa-tdep.h: Update copyright year.
3853 (struct trad_frame_saved_reg): Add opaque declaration.
3854
6fa57a7d
MK
3855 * amd64-tdep.c (amd64_return_value): Implement
3856 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3857
e47577ab
MK
3858 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
3859 (m68k_value_to_register): New functions.
3860 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
3861 value_to_register.
3862
31db7b6c
MK
3863 * defs.h (enum return_value_convention): Add
3864 RETURN_VALUE_ABI_RETURNS_ADDRESS and
3865 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3866 * infcmd.c (legacy_return_value): New function.
3867 (print_return_value): Rwerite to implement
3868 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3869 * values.c (using_struct_return): Check for inequality to
3870 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
3871 RETURN_VALUE_STRUCT_CONVENTION.
3872 * i386-tdep.c (i386_return_value): Implement
3873 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3874
0543f387
MK
3875 * vax-tdep.c: Tweak comments. Reorder include files. Don't
3876 include "symtab.h", "opcode/vax.h" and "inferior.h".
3877 (vax_skip_prologue): Replace calls to read_memory_integer by calls
3878 to read_memory_unsigned_integer.
3879 (vax_gdbarch_init): Reorder.
3880 (_initialize_vax_tdep): Spell out prototype.
3881 * Makefile.in (vax-tdep.o): Update dependencies.
3882
0c93b7b6
AC
38832004-05-08 Andrew Cagney <cagney@redhat.com>
3884
e6b55ae2
AC
3885 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
3886 * target.c (target_detach, target_disconnect): Ditto.
3887
1ac839b8
AC
3888 * infcall.c (call_function_by_hand): When no
3889 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
3890 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
3891 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
3892 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3893 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3894
28954179
AC
3895 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
3896 * gdbarch.h, gdbarch.c: Re-generate.
3897 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3898 deprecated_fix_call_dummy.
3899 * v850-tdep.c (v850_gdbarch_init): Ditto.
3900 * infcall.c (call_function_by_hand): Do not call
3901 DEPRECATED_FIX_CALL_DUMMY.
3902
434b87dd
AC
3903 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
3904 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
3905 * gdbarch.h, gdbarch.c: Re-generate.
3906 * arm-linux-tdep.c (arm_linux_call_dummy_words)
3907 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
3908 deprecated_sizeof_call_dummy_words.
3909 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
3910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3911 * v850-tdep.c (v850_gdbarch_init): Ditto.
3912 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3913 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
3914 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3915 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3916 * arch-utils.h (legacy_call_dummy_words)
3917 (legacy_sizeof_call_dummy_words): Delete declarations.
3918 * arch-utils.c (legacy_call_dummy_words)
3919 (legacy_sizeof_call_dummy_words): Delete variables.
3920
58d28df8
AC
3921 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
3922 * gdbarch.h, gdbarch.c: Re-generate.
3923 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
3924 * infcall.c (call_function_by_hand): Eliminate call to
3925 DEPRECATED_PUSH_DUMMY_FRAME.
3926 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
3927 push_dummy_frame.
3928 (ns32k_push_dummy_frame): Delete function.
3929
e4a2df64
AC
3930 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3931 deprecated_call_dummy_breakpoint_offset or
3932 deprecated_call_dummy_start_offset.
3933 * dummy-frame.c, arm-tdep.c: Update comments.
3934 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
3935 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
3936 * gdbarch.h, gdbarch.c: Re-generate.
3937
d3712828
AC
3938 * infcall.c (legacy_push_dummy_code): Delete function.
3939 (push_dummy_code): Delete call.
3940
7a882905
AC
3941 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
3942 * gdbarch.h, gdbarch.c: Re-generate.
3943 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
3944 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
3945 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
3946 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
3947
0ec5872b
AC
3948 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
3949 (struct frame_info): Delete opaque declaration.
3950 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
3951 * frame.c (get_frame_type): Delete call.
3952
0c93b7b6
AC
3953 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
3954 pc_in_call_dummy.
3955 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
3956 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
3957
75536971
MK
39582004-05-08 Mark Kettenis <kettenis@gnu.org>
3959
527ca6bb
MK
3960 * alphanbsd-tdep.c: Include "gdb_string.h".
3961 * armnbsd-tdep.c: Update copyright year.
3962 Include "gdb_string.h".
3963 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
3964 dependencies.
3965
d39fdc61
MK
3966 * delta68-nat.c: Remove file.
3967 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
3968 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
3969 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
3970 (delta68-nat.o): Remove dependency.
3971
75536971
MK
3972 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
3973 function.
3974 (m68k_gdbarch_init): Don't set
3975 deprecated_frameless_function_invocation.
3976
f4ca1d1f
RC
39772004-05-07 Randolph Chung <tausq@debian.org>
3978
3979 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
3980 read_memory_nobpt for code reading when doing frame unwinding.
3981 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
3982
2f0e8c7a
RC
39832004-05-07 Randolph Chung <tausq@debian.org>
3984
3985 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
3986 instead of sp, handle sigaltstack case.
3987 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
3988 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
3989 signal handler and not that of the caller.
3990 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
3991 hppa_linux_sigtramp_find_sigcontext.
3992
959464ff
RC
39932004-05-07 Randolph Chung <tausq@debian.org>
3994
3995 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
3996 hppa-linux-nat.c.
3997 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
3998 * hppa-linux-nat.c (fetch_register, store_register): Define.
3999 (fetch_inferior_registers, store_inferior_registers): Define.
4000 (supply_gregset): Add comment and clean up some unneeded code.
4001 (fill_gregset): Add comment and fix so that it saves registers in
4002 the right place in the gregset.
4003 (fill_fpregset): Fix buffer overrun problem.
4004 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4005
0da28f8a
RC
40062004-05-07 Randolph Chung <tausq@debian.org>
4007
4008 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4009 do common handling of the pcoqt register.
4010 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4011 to use helper function.
4012 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4013 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4014 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4015 generic fallback unwinder when all else fails.
4016 (hppa_gdbarch_init): Add fallback sniffer.
4017 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4018 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4019 to use helper function.
4020
b9ec757a
JB
40212004-05-08 Joel Brobecker <brobecker@gnat.com>
4022
4023 * config/djgpp/fnchange.lst: Add translation rules for
4024 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4025
756e95f1
MK
40262004-05-08 Mark Kettenis <kettenis@gnu.org>
4027
4028 * frame.c (get_prev_frame_1): Work around GCC bug.
4029 * frame.h: Add comment about GCC bug.
4030
2b4855ab
AC
40312004-05-07 Andrew Cagney <cagney@redhat.com>
4032
4033 * observer.c: Include "commands.h" and "gdbcmd.h".
4034 (observer_debug, _initialize_observer): Add the
4035 command "set/show debug observer".
4036 * observer.sh: When observer debugging, log notify calls.
4037 * Makefile.in (observer.o): Update dependencies.
4038
ba3e8e46
JM
40392004-05-07 Jason Molenda (jmolenda@apple.com)
4040
4041 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4042
16796152
JB
40432004-05-07 Jim Blandy <jimb@redhat.com>
4044
daf6dc85
JB
4045 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4046 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4047 to recognize gpr regnums, instead of assuming that
4048 tdep->ppc_fp0_regnum marks the end of the general-purpose
4049 registers.
4050
16796152
JB
4051 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4052 the given architecture has floating-point registers.
4053
c69b8bfc
AC
40542004-05-07 Andrew Cagney <cagney@redhat.com>
4055
4056 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4057 macro defined to 1.
4058 * gdbarch.h, gdbarch.c: Re-generate.
4059 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4060 deprecated_use_generic_dummy_frames.
4061
7243600a
BF
40622004-05-07 Brian Ford <ford@vss.fsi.com>
4063
4064 * NEWS: Mention Cygwin DWARF 2 support.
4065
73c1e0a1
AC
40662004-05-07 Andrew Cagney <cagney@redhat.com>
4067
4068 * objfiles.h (struct entry_info): Delete unused fields
4069 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4070 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4071 * mipsread.c (mipscoff_symfile_read): Update.
4072 * mdebugread.c (parse_partial_symbols): Update.
4073 * dwarfread.c (read_file_scope): Update.
4074 * dwarf2read.c (read_file_scope): Update.
4075 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4076 * coffread.c (complete_symtab): Update.
4077
1d3056ac
MK
40782004-05-07 Mark Kettenis <kettenis@gnu.org>
4079
4080 * infcall.c (_initialize_infcall): Fix typo.
4081
15170568
AC
40822004-05-07 Andrew Cagney <cagney@redhat.com>
4083
4084 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4085 * command.h (add_setshow_zinteger_cmd): Declare.
4086
34f75cc1
RC
40872004-05-06 Randolph Chung <tausq@debian.org>
4088
4089 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4090 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4091 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4092 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4093 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4094 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4095 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4096 definitions ...
4097 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4098 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4099 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4100 (hppa64_hpux_frame_find_saved_regs_in_sig)
4101 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4102 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4103 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4104 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4105 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4106 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4107 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4108 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4109 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4110 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4111 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4112 (hppa32_register_type, hppa_cannot_store_register)
4113 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4114 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4115 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4116 * pa64solib.c (pa64_solib_have_load_event)
4117 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4118 (pa64_solib_unloaded_library_pathname): Likewise.
4119 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4120 (som_solib_library_pathname): Likewise.
4121
0a5e7efe
JI
41222004-05-05 Jim Ingham <jingham@apple.com>
4123
4124 * breakpoint.c (create_breakpoints): Copy the ignore count and
4125 thread id over from the pended breakpoint to the actual
4126 breakpoint.
4127
10a4b113
AC
41282004-05-05 Andrew Cagney <cagney@redhat.com>
4129
4130 * gdbarch.sh (PARM_BOUNDARY): Delete.
4131 gdbarch.h, gdbarch.c: Re-generate.
4132 * valops.c (PARM_BOUNDARY): Delete macro.
4133 (value_push): Delete PARM_BOUNDARY code.
4134 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4135
366f009f
JB
41362004-05-04 Jim Blandy <jimb@redhat.com>
4137
32b99774
JB
4138 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4139 Don't assume that the gprs, fprs, and UISA sprs are
4140 contiguous, start at register number zero, and end with fpscr.
4141 Instead, use the numbers from the tdep structure.
4142
366f009f
JB
4143 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4144 should no longer be used in code specific to the RS6000 and its
4145 derivatives.
4146 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4147 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4148 tdep->ppc_fp0_regnum.
4149 (ppc_supply_fpregset, ppc_collect_fpregset)
4150 (rs6000_push_dummy_call, rs6000_extract_return_value)
4151 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4152 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4153 FP0_REGNUM.
4154 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4155 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4156 Same.
4157 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4158 bdm_ppc_store_registers): Same.
4159 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4160 (store_register, fill_fpregset): Same.
4161 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4162 (ppc_linux_supply_fpregset): Same.
4163 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4164 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4165 Same.
4166 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4167 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4168 ppc64_sysv_abi_return_value): Same.
4169 * rs6000-nat.c (regmap, fetch_inferior_registers)
4170 (store_inferior_registers, fetch_core_registers): Same.
4171
827f338d
MK
41722004-05-01 Mark Kettenis <kettenis@gnu.org>
4173
4174 * m68knbsd-nat.c: Remove file.
4175 * m68knbsd-tdep.c: Remove file.
4176 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4177 dependencies.
4178 * configure.host: Add m68k-*-netbsdelf*.
4179 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4180 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4181 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4182 (XM_FILE): Remove.
4183 * config/m68k/nbsdelf.mh: New file.
4184 * config/m68k/nbsd.mt: New file.
4185 * config/m68k/nbsdaout.mt: Remove file.
4186 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4187 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4188 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4189 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4190 (use_struct_convention): Remove prototype.
4191 (USE_STRUCT_CONVENTION): Remove define.
4192 * config/m68k/xm-nbsd.h: Remove file.
4193
66894781
MS
41942004-05-04 Michael Snyder <msnyder@redhat.com>
4195
4196 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4197 reg_struct_return method (as gcc usually does for cross targets).
4198
f0f63663
AC
41992004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4200
4201 Committed by Andrew Cagney.
4202 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4203 alignment padding when accessing ucontext struct members.
4204
edf61169
JB
42052004-05-04 Jim Blandy <jimb@redhat.com>
4206
8bf659e8
JB
4207 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4208 'ppc_gplast_regnum' member.
4209 (ppc_num_gprs): New enum constant.
4210 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4211 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4212 * rs6000-nat.c (regmap, fetch_inferior_registers,
4213 store_inferior_registers): Same.
4214 * rs6000-tdep.c (e500_pseudo_register_read)
4215 (e500_pseudo_register_write): Same.
4216 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4217
b967e06f
JB
4218 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4219 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4220 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4221 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4222 FPLAST_REGNUM.
4223 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4224 Same.
4225 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4226 * rs6000-nat.c (regmap, fetch_inferior_registers)
4227 (store_inferior_registers): Same.
4228
edf61169
JB
4229 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4230 with FPLAST_REGNUM.
4231
58a9656e
JB
42322004-05-03 Joel Brobecker <brobecker@gnat.com>
4233
4234 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4235 failure detected by recent versions of GCC.
4236 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4237 to be consistent with the usage in dwarf2_create_include_psymtab.
4238
dc305454
MS
42392004-05-03 Michael Snyder <msnyder@redhat.com>
4240
4241 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4242 (heuristic_proc_start): Whitespace cleanup.
4243
29972665
MK
42442004-05-04 Mark Kettenis <kettenis@gnu.org>
4245
6b57680d
MK
4246 * sun3-nat.c: Remove file.
4247 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4248 dependencies.
4249 (ALLDEPFILES): Remove sun3-nat.c.
4250 (sun3-nat.o): Remove dependencies.
4251
29972665
MK
4252 * i386-interix-nat.c, i386-interix-tdep.c,
4253 config/i386/nm-interix.h, config/i386/interix.mh,
4254 config/i386/interix.mt: Remove files.
4255 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4256 dependencies.
4257
f595cb19
MK
42582004-05-03 Mark Kettenis <kettenis@gnu.org>
4259
4260 * m68k-tdep.h (struct gdbarch_tdep): Add member
4261 struct_value_regnum.
4262 (m68k_svr4_init_abi): New prototype.
4263 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4264 different calling conventions.
4265 (m68k_extract_return_value): Remove code dealing with single-field
4266 structs.
4267 (m68k_store_return_value): Remove code dealing with single-field
4268 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4269 (m68k_extract_struct_value_address): Remove function.
4270 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4271 (m68k_reg_struct_return_p, m68k_return_value)
4272 (m68k_svr4_return_value): New functions.
4273 (m68k_use_struct_convention): Remove function.
4274 (m68k_push_dummy_call): Use new struct_value_regnum member of
4275 `struct gdbarch_tdep' instead of hardcoded register number to
4276 store STRUCT_ADDR.
4277 (m68k_svr4_init_abi): New function.
4278 (m68k_gdbarch_init): Don't set extract_return_value,
4279 store_return_values, deprecated_extract_struct_value_address and
4280 use_struct_convention. Set return_value instead. Initialize new
4281 struct_value_regnum member of `struct gdbarch_tdep'.
4282 * m68klinux-tdep.c: Update copyright year.
4283 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4284 (m68k_linux_extract_struct_value_address): Remove function.
4285 (m68k_linux_init_abi): Don't set extract_return_value,
4286 store_return_values, deprecated_extract_struct_value_address and
4287 use_struct_convention. Call m68k_svr4_init_abi but override the
4288 new struct_value_regnum member of `struct gdbarch_tdep'.
4289 * Makefile.in (m68k-tdep.o): Update dependencies.
4290
aaa75496
JB
42912004-05-03 J. Brobecker <brobecker@gnat.com>
4292
4293 * dwarf2read.c (line_header): Add new included_p field in
4294 field file_names.
4295 (partial_die_info): New field has_stmt_list. New field line_offset.
4296 (dwarf2_create_include_psymtab): New function.
4297 (dwarf2_build_include_psymtabs): New function.
4298 (add_file_name): Add forward declaration. Initialize new field.
4299 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4300 to be able to determine the list of files included by the
4301 given unit, and build their associated psymtabs.
4302 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4303 files as well.
4304 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4305 (read_file_scope): Update call to dwarf_decode_lines.
4306 (read_partial_die): Handle DW_AT_stmt_list attributes.
4307
c848556f
MC
43082004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4309
4310 Unfix PR gdb/1626.
4311 * configure.in: Revert special case for osf5.*.
4312 * configure: Regenerate.
4313
eb4556d7
JB
43142004-05-02 Jim Blandy <jimb@redhat.com>
4315
4316 Move the symbol-file-from-memory functions into their own file.
4317 * symfile-mem.c, symfile-mem.h: New files.
4318 * symfile.c (symbol_file_add_from_bfd): New function.
4319 (symbol_file_add): Call symbol_file_add_from_bfd.
4320 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4321 Moved to symfile-mem.c.
4322 (_initialize_symfile): Move definition of
4323 add-symbol-file-from-memory command to symfile-mem.c.
4324 * symfile.h (symbol_file_add_from_bfd): New declaration.
4325 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4326 * config/powerpc/linux.mt (TDEPFILES): Same.
4327 * Makefile.in (SFILES): Add symfile-mem.c.
4328 (symfile_mem_h): New variable.
4329 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4330 (symfile-mem.o): New rule.
4331
80bb239e
AC
43322004-05-01 Andrew Cagney <cagney@redhat.com>
4333
7789d0fa
AC
4334 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4335 frame_find_by_id instead of frame_relative_level.
4336 (do_enable_breakpoint): Ditto.
4337 * thread.c: Update copyright.
4338 (info_threads_command): Ditto, simplify.
4339
80bb239e
AC
4340 * frame.c (deprecated_generic_get_saved_register): Delete
4341 function, moved to "xstormy16-tdep.c".
4342 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4343 deprecated_generic_get_saved_register from "frame.c".
4344 (xstormy16_frame_saved_register): Call
4345 xstormy16_get_saved_register.
4346 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4347 static.
4348 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4349 * frame.h (deprecated_generic_get_saved_register): Delete.
4350
b2a871dd
MC
43512004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4352
4353 * dwarfread.c: Update documentation on the state of dwarf-1.
4354
0e100dab
AC
43552004-05-01 Andrew Cagney <cagney@redhat.com>
4356
acd8056e
AC
4357 * stack.c (select_frame_command): Delete call to
4358 frame_relative_level.
4359 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4360 Delete #if0 code.
4361 (frame_info): Do not print FRAMELESS.
4362 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4363 (catch_info): Delete #if0 code.
4364
0e100dab
AC
4365 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4366 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4367 of frame_relative_level.
4368 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4369 to SENTINEL_FRAME.
4370 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4371 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4372 frame_relative_level.
4373
55699d59
AC
4374 * frame.h (deprecated_set_frame_type): Delete declaration.
4375 * frame.c (deprecated_set_frame_type): Delete function, update
4376 comments.
4377
fcf70625
AC
4378 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4379 * gdbarch.h, gdbarch.c: Re-generate.
4380 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4381 (shnbsd_pc_in_sigtramp): Delete.
4382 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4383 pc_in_sigtramp.
4384 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4385 pc_in_sigtramp.
4386 * frame.h: Update comments.
4387 * ppc-linux-tdep.c: Update comments.
4388 * breakpoint.c (bpstat_what): Update comments.
4389
ac5eccb7
AC
4390 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4391 m68klinux-tdep.o's dependencies, were previously added to
4392 m68klinux-nat.o.
4393
f2524b93
AC
4394 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
4395 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
4396 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4397 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4398 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4399
17e20bce
AC
4400 * Makefile.in (m68klinux-nat.o): Update dependencies.
4401 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4402 (m68k_linux_sigtramp_frame_cache)
4403 (m68k_linux_sigtramp_frame_this_id)
4404 (m68k_linux_sigtramp_frame_prev_register)
4405 (m68k_linux_sigtramp_frame_unwind)
4406 (m68k_linux_sigtramp_frame_sniffer)
4407 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
4408 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
4409 names, use trad-frame.h.
4410 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
4411 (struct m68k_sigtramp_info): Delete.
4412 * m68k-tdep.c (m68k_sigtramp_frame_cache)
4413 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
4414 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
4415 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
4416 "m68klinux-tdep.c".
4417
c8864fa2
AC
4418 * infrun.c (check_sigtramp2): Delete check for
4419 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
4420
511dd2cd
MK
44212004-05-01 Mark Kettenis <kettenis@gnu.org>
4422
4423 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
4424
8c6b0e06
AC
44252004-05-01 Andrew Cagney <cagney@redhat.com>
4426
9df0bb3f
AC
4427 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4428 (frv_linux_sigtramp_frame_cache)
4429 (frv_linux_sigtramp_frame_this_id)
4430 (frv_linux_sigtramp_frame_prev_register)
4431 (frv_linux_sigtramp_frame_unwind)
4432 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
4433 include "linux" in function and variable names, directly call
4434 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
4435 the latest trad-frame code.
4436 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
4437 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
4438 * Makefile.in (frv-linux-tdep.o): Update dependencies.
4439 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
4440 * frv-tdep.c (frv_sigtramp_frame_cache)
4441 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4442 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
4443 frv-linux-tdep.c.
4444 (frv_gdbarch_init): Do not append a sigtramp sniffer.
4445 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
4446 (frv_set_sigcontext_reg_addr): Delete function.
4447
8c6b0e06
AC
4448 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
4449 (DEPRECATED_SIGTRAMP_END): Delete.
4450 * gdbarch.h, gdbarch.c: Re-generate.
4451 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
4452 * config/vax/tm-vaxbsd.h: Update copyright.
4453 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4454 (DEPRECATED_IN_SIGTRAMP): Define.
4455 * config/m68k/tm-nbsd.h: Update copyright.
4456 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4457 (DEPRECATED_IN_SIGTRAMP): Define.
4458
50ea7769
MK
44592004-05-01 Mark Kettenis <kettenis@gnu.org>
4460
03ac2a74
MK
4461 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
4462 encondings. Fixes PR gdb/1628.
4463
50ea7769
MK
4464 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
4465 DW_CFA_restore state without a matching DW_CFA_remember_state
4466 instead of aborting. Fixes PR backtrace/1589.
4467
9a5d7be1
JB
44682004-04-30 Joel Brobecker <brobecker@gnat.com>
4469
4470 * MAINTAINERS: Add self as AIX maintainer.
4471 Update my e-mail address in write-after-approval section.
4472
2593d1cd
AC
44732004-04-30 Andrew Cagney <cagney@redhat.com>
4474
ce12bbf9
AC
4475 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
4476 (legacy_get_prev_frame): Ditto.
4477
36710c63
AC
4478 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
4479 (mips_gdbarch_init): Do not set pc_in_sigtramp.
4480 * mipsread.c (sigtramp_address): Delete extern variable.
4481 (mipscoff_new_init): Delete reference.
4482 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
4483 (fixup_sigtramp): Delete function.
4484 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
4485 (fixup_sigtramp): Delete declarations.
4486
2593d1cd
AC
4487 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
4488 deprecated_pc_in_sigtramp.
4489 (ppcnbsd_pc_in_sigtramp): Delete function.
4490
2a25f91c
MK
44912004-05-01 Mark Kettenis <kettenis@gnu.org>
4492
4493 * config/m68k/nm-nbsd.h: Tweak comments.
4494 * config/m68k/nm-nbsdaout.h: Likewise.
4495
0b281939
AC
44962004-04-30 Andrew Cagney <cagney@redhat.com>
4497
4498 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
4499 legacy_pc_in_sigtramp.
4500 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
4501
8f2d3ea0
MK
45022004-05-01 Mark Kettenis <kettenis@gnu.org>
4503
4504 Add OpenBSD/m68k support.
4505 * NEWS (New native configurations): Mention OpenBSD/m68k.
4506 * m68kbsd-tdep.c: New file.
4507 * m68kbsd-nat.c: New file.
4508 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
4509 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
4510 * configure.host: Add m68k-*-openbsd.
4511 * configure.tgt: Add m68k-*-openbsd.
4512 * config/m68k/tm-obsd.h: New file.
4513 * config/m68k/obsd.mt: New file.
4514 * config/m68k/obsd.mh: New file.
4515 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
4516 m68kbsd-tdep.c.
4517
c40f49a4
AC
45182004-04-30 Andrew Cagney <cagney@redhat.com>
4519
4520 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
4521 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
4522
e81554cd
MK
45232004-04-30 Mark Kettenis <kettenis@gnu.org>
4524
4525 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
4526 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
4527
d4dc1a91
BF
45282004-04-30 Brian Ford <ford@vss.fsi.com>
4529
4530 Revert 2004-04-16 change.
4531 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
4532 (i386_coff_init_abi): Remove.
4533 * i386-tdep.h (i386_coff_init_abi): Remove.
4534 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
4535
2f72f850
AC
45362004-04-30 Andrew Cagney <cagney@redhat.com>
4537
e492f9d6
AC
4538 * blockframe.c (find_pc_partial_function): Delete use of
4539 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
4540 DEPRECATED_SIGTRAMP_END.
4541
7b7adad0
AC
4542 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
4543 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
4544 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
4545 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
4546 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
4547
2f72f850
AC
4548 * defs.h (deprecated_inside_entry_file): Delete declaration.
4549 * blockframe.c (deprecated_inside_entry_file): Delete function.
4550 (legacy_frame_chain_valid): Delete call.
4551 * sh64-tdep.c (sh64_frame_chain): Delete call.
4552 * objfiles.h: Update comments.
4553 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
4554 call.
4555 * frame.c (get_prev_frame): Delete call, update comments.
4556
283f90a7
BF
45572004-04-30 Brian Ford <ford@vss.fsi.com>
4558
4559 * MAINTAINERS (Write After Approval): Add myself.
4560
8ee56bcf
AC
45612004-04-30 Andrew Cagney <cagney@redhat.com>
4562
4563 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
4564 * gdbarch.h, gdbarch.c: Re-generate.
4565 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
4566 code.
4567
ee27e1b6
AC
45682004-04-30 Andrew Cagney <cagney@redhat.com>
4569
4570 * gdb-events.sh (selected_thread_changed)
4571 (selected_frame_level_changed, target_changed): Delete.
4572 * gdb-events.h, gdb-events.c: Re-generate.
4573 * valops.c (value_assign): Update.
4574 * stack.c (select_frame_command, up_silently_base)
4575 (down_silently_base): Update.
4576
d5ac5a39
AC
45772004-04-29 Andrew Cagney <cagney@redhat.com>
4578
4579 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
4580 registers correctly.
4581 (print_gp_register_row, mips32_heuristic_proc_desc)
4582 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
4583 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
4584 references to mips_isa_regsize.
4585
ceae6e75
AC
45862004-04-29 Andrew Cagney <cagney@redhat.com>
4587
4588 * mips-tdep.c (struct gdbarch_tdep): Delete
4589 mips_fp_register_double.
4590 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
4591 mips_abi_regsize.
4592 (mips_gdbarch_init): Do not set mips_fp_register_double.
4593 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
4594
a587af0b
AC
45952004-04-29 Joel Brobecker <brobecker@gnat.com>
4596
4597 Committed by Andrew Cagney.
4598 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
4599 function calls.
4600
13326b4e
AC
46012004-04-29 Andrew Cagney <cagney@redhat.com>
4602
4603 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
4604 gdbarch, use mips_abi, update callers.
4605 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
4606 mips_abi_regsize, update callers.
4607 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
4608 mips_default_abi_regsize.
4609 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
4610 mips_default_abi_regsize.
4611
711cc5cd
AC
46122004-04-29 Andrew Cagney <cagney@redhat.com>
4613
1b13c4f6
AC
4614 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
4615 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
4616 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
4617 mips_default_abi_regsize.
4618 (mips_isa_regsize): Rename mips_regisze.
4619 * mipsnbsd-tdep.c: Update.
4620 * mips-linux-tdep.c: Update.
4621 * irix5-nat.c: Update.
4622 * mips-tdep.h (mips_isa_regsize): Update.
4623
711cc5cd
AC
4624 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
4625 Delete all disabled code.
4626 * gdb-events.h, gdb-events.c: Re-generate.
4627
e63bbc88
MK
46282004-04-19 Jerome Guitton <guitton@gnat.com>
4629 Mark Kettenis <kettenis@gnu.org>
4630
4631 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
4632 the function begins with a branch instruction.
4633
fd35795f
MK
46342004-04-29 Mark Kettenis <kettenis@gnu.org>
4635
4636 * i386-tdep.c: Fix spelling mistakes.
4637
c960c18f
AC
46382004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4639 Andrew Cagney <cagney@redhat.com>
4640
4641 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
4642 <sys/proc.h>.
4643 * acconfig.h: Provide default _KMEMUSER value.
4644 * config.in, configure: Re-generate.
4645 * NEWS: Mention fix.
4646
50306a9d
RC
46472004-04-24 Randolph Chung <tausq@debian.org>
4648
4649 * configure.host (hppa*-*-linux*): New target.
4650 * configure.tgt (hppa*-*-linux*): Likewise.
4651 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
4652 gdbarch_init_osabi() call earlier so that osabi-specific frame
4653 unwinders can be registered first.
4654 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
4655 hppa-linux-nat.c.
4656 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
4657 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
4658 * config/pa/linux.mh: New file.
4659 * config/pa/linux.mt: New file.
4660 * config/pa/nm-linux.h: New file.
4661 * config/pa/xm-linux.h: New file.
4662 * hppa-linux-nat.c: New file.
4663 * hppa-linux-tdep.c: New file.
4664
2a6228ef
RC
46652004-04-28 Randolph Chung <tausq@debian.org>
4666
4667 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
4668 return values.
4669 (hppa32_push_dummy_call): Fix small struct and floating point argument
4670 passing, and make sure the stack frame is properly aligned.
4671
82c10df6
AC
46722004-04-28 Andrew Cagney <cagney@redhat.com>
4673
d762c46a
AC
4674 * stack.c (print_stack_frame): Fix description.
4675
82c10df6
AC
4676 * NEWS: Mention gdb/gdbserver/configure execute permission
4677 changed. PR server/519.
4678
0faf0076
AC
46792004-04-28 Andrew Cagney <cagney@redhat.com>
4680
4681 * stack.c (print_stack_frame_stub): Delete declaration.
4682 (struct print_stack_frame_args, print_stack_frame)
4683 (print_frame_info, print_frame): Replace "source" with print what.
4684 Replace "print" with "print_level". Replace "args" with
4685 "print_args".
4686 * frame.h (show_and_print_stack_frame, print_stack_frame)
4687 (print_frame_info): Update declarations.
4688 * stack.c (select_and_print_frame, frame_command)
4689 (current_frame_command, up_command, down_command): Update calls -
4690 use get_selected_frame, pass "enum print_what" for source, do not
4691 call frame_relative_level.
4692 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
4693 * remote-rdp.c (remote_rdp_open): Ditto.
4694 * remote-mips.c (common_open): Ditto.
4695 * remote-e7000.c (e7000_start_remote): Ditto.
4696 * ocd.c (ocd_start_remote): Ditto.
4697 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
4698 * infrun.c (normal_stop): Ditto.
4699 * inflow.c (kill_command): Ditto.
4700 * infcmd.c (finish_command): Ditto.
4701 * corelow.c (core_open): Ditto.
4702 * tracepoint.c (finish_tfind_command): Ditto.
4703 * thread.c (info_threads_command, info_threads_command)
4704 (restore_current_thread, do_captured_thread_select): Ditto.
4705 * ada-tasks.c (task_command): Ditto.
4706
f4c5303c
OF
47072004-04-26 Orjan Friberg <orjanf@axis.com>
4708
4709 * frame.c: Include "observer.h".
4710 (frame_observer_target_changed): New function.
4711 (_initialize_frame): Attach target_changed observer.
4712 * regcache.c: Include "observer.h".
4713 (regcache_observer_target_changed): New function.
4714 (_initialize_regcache): Attach target_changed observer.
4715 * valops.c: Include "observer.h".
4716 (value_assign): Notify target_changed event when modifying register.
4717 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
4718
7270d8f2
OF
47192004-04-26 Orjan Friberg <orjanf@axis.com>
4720
4721 From Paul Koning <pkoning@equallogic.com>:
4722 * breakpoint.c (free_valchain): New function.
4723 (insert_bp_location, delete_breakpoint): Use free_valchain.
4724 (remove_breakpoint): Do not remove the valchain.
4725 (bpstat_stop_status): If not stopped by watchpoint, skip
4726 watchpoints when generating stop status list.
4727 * infrun.c (handle_inferior_event): Make
4728 stepped_after_stopped_by_watchpoint a global variable.
4729 * remote.c (remote_stopped_data_address): Return watch data
4730 address rather than zero if stepped_after_stopped_by_watchpoint is
4731 set.
4732
02d62932
MC
47332004-04-25 Michael Chastain <mec.gnu@mindspring.com>
4734
4735 Fix PR gdb/1626.
4736 * configure.in: Check for curses after termcap.
4737 On osf5.*, do not check for ncurses.
4738 * configure: Regenerate.
4739
3e9a183c
MK
47402004-04-25 Mark Kettenis <kettenis@gnu.org>
4741
c79ac407
MK
4742 * ppcobsd-nat.c: Include "ppc-tdep.h".
4743 * Makefile.in (ppcobsd-nat.o): Update dependencies.
4744
3e9a183c
MK
4745 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
4746 Fixes PR tdep/1623 and PR tdep/1624.
4747
38cc9c28
MC
47482004-04-24 Michael Chastain <mec.gnu@mindspring.com>
4749
4750 * xmodem.h, xmodem.c: Remove files.
4751 * Makefile.in: Remove references to xmodem.h, xmodem.c.
4752
7f07c5b6
RC
47532004-04-23 Randolph Chung <tausq@debian.org>
4754
4755 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
4756 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
4757 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
4758 for handling stackless frames.
4759 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
4760
9f7194c3
RC
47612004-04-23 Randolph Chung <tausq@debian.org>
4762
4763 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
4764 starts at a pc before the frame is created.
4765
dcff6009
JB
47662004-04-23 Joel Brobecker <brobecker@gnat.com>
4767
4768 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
4769
40711ff1 47702004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
4771
4772 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
4773 use convert_typed_floating to get the appropriate format.
4774
abc485a1
RC
47752004-04-22 Randolph Chung <tausq@debian.org>
4776
4777 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
4778 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
4779 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
4780 (hppa_sign_extend): Add prototype.
4781 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
4782 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
4783 (sign_extend): Rename with hppa_ prefix and make non-static. Other
4784 hppa targets will also use these functions.
4785 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
4786 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
4787 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
4788 (hppa_gdbarch_init): Remove gdbarch setting of
4789 skip_trampoline_code, in_solib_call_trampoline and
4790 in_solib_return_trampoline.
4791 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4792 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
4793 hppa_in_solib_call_trampoline.
4794 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
4795 Moved from hppa-tdep.c.
4796 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
4797 in_solib_call_trampoline and in_solib_return_trampoline.
4798
369aa520
RC
47992004-04-22 Randolph Chung <tausq@debian.org>
4800
4801 * hppa-tdep.c (hppa_debug): New variable.
4802 (find_unwind_entry, hppa_frame_cache): Add debug output.
4803 (_initialize_hppa_tdep): Add command to set debug flag.
4804
476be15e
AC
48052004-04-22 Andrew Cagney <cagney@redhat.com>
4806
4807 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
4808 "trad-frame.h".
4809 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
4810 signal trampoline unwinder.
4811 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
4812
d195bc9f
MK
48132004-04-22 Mark Kettenis <kettenis@gnu.org>
4814
4815 Add OpenBSD/powerpc support.
4816 * NEWS (New native configurations): Mention OpenBSD/powerpc.
4817 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
4818 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
4819 (ppc_collect_fpregset): New prototypes.
4820 * ppcobsd-nat.c: New file.
4821 * ppcobsd-tdep.c: New file.
4822 * ppcobsd-tdep.h: New file.
4823 * rs6000-tdep.c: Include "regset.h".
4824 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
4825 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
4826 New functions.
4827 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
4828 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
4829 (rs6000-tdep.o): Update dependencies.
4830 * configure.host: Add powerpc-*-openbsd.
4831 * configure.tgt: Add powerpc-*-openbsd.
4832 * config/powerpc/obsd.mh: New file.
4833 * config/powerpc/nm-obsd.h: New file.
4834 * config/powerpc/obsd.mt: New file.
4835
6f14cc33
AC
48362004-04-22 Andrew Cagney <cagney@redhat.com>
4837
fcf29e5f
AC
4838 * frame.h (show_frame_info): Delete declaration.
4839
6f14cc33
AC
4840 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
4841 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
4842 * m32r-tdep.c (m32r_frame_this_id): Ditto.
4843 * frv-tdep.c (frv_frame_this_id): Ditto.
4844 * avr-tdep.c (avr_frame_this_id): Ditto.
4845
e5786a5c
EZ
48462004-04-22 Elena Zannoni <ezannoni@redhat.com>
4847
4848 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
4849
26e75e5c
JB
48502004-04-22 Jim Blandy <jimb@redhat.com>
4851
4852 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
4853 register number zero.
4854
d8d65dd3
MS
48552004-04-21 Michael Snyder <msnyder@redhat.com>
4856
4857 * mips-tdep.c (heuristic_proc_start):
4858 Warning() already prefixes "Warning: ".
4859
9a4105ab
AC
48602004-04-21 Andrew Cagney <cagney@redhat.com>
4861
4862 * annotate.h (deprecated_annotate_starting_hook)
4863 (deprecated_annotate_stopped_hook)
4864 (deprecated_annotate_exited_hook)
4865 (deprecated_annotate_signal_hook)
4866 (deprecated_annotate_signalled_hook): Deprecate.
4867 * tracepoint.h (deprecated_create_tracepoint_hook)
4868 (deprecated_delete_tracepoint_hook)
4869 (deprecated_modify_tracepoint_hook)
4870 (deprecated_trace_find_hook)
4871 (deprecated_trace_start_stop_hook): Deprecate.
4872 * target.h (deprecated_target_new_objfile_hook): Deprecate.
4873 * remote.h (deprecated_target_resume_hook)
4874 (deprecated_target_wait_loop_hook): Deprecate.
4875 * gdbcore.h (deprecated_exec_file_display_hook)
4876 (deprecated_file_changed_hook): Deprecate.
4877 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
4878 * defs.h (deprecated_modify_breakpoint_hook)
4879 (deprecated_command_loop_hook, deprecated_show_load_progress)
4880 (deprecated_print_frame_info_listing_hook)
4881 (deprecated_query_hook, deprecated_warning_hook)
4882 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
4883 (deprecated_delete_breakpoint_hook)
4884 (deprecated_interactive_hook, deprecated_registers_changed_hook)
4885 (deprecated_readline_begin_hook, deprecated_readline_hook)
4886 (deprecated_readline_end_hook, deprecated_register_changed_hook)
4887 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
4888 (deprecated_context_hook, deprecated_target_wait_hook)
4889 (deprecated_attach_hook, deprecated_detach_hook)
4890 (deprecated_call_command_hook, deprecated_set_hook)
4891 (deprecated_error_hook, deprecated_error_begin_hook)
4892 (deprecated_ui_load_progress_hook): Deprecate.
4893 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
4894 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
4895 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
4896 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
4897 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
4898 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
4899 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
4900 * annotate.c, aix-thread.c: Update.
4901
62cf13cc
AC
49022004-04-21 Andrew Cagney <cagney@redhat.com>
4903
b2e31a62
AC
4904 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
4905 * vaxnbsd-tdep.c: Include "gdb_string.h".
4906
62cf13cc
AC
4907 * symfile.c (symbol_file_add_from_memory): #if 0 function.
4908 (add_symbol_file_from_memory_command): #if 0 function body, call
4909 error instead.
4910
00e32a35
AC
49112004-04-21 Andrew Cagney <cagney@redhat.com>
4912
4913 * gdbcore.h: Update copyright.
4914 (deprecated_add_core_fns): Rename add_core_fns.
4915 * win32-nat.c (_initialize_core_win32): Update.
4916 * sun3-nat.c (_initialize_core_sun3): Update.
4917 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
4918 * rs6000-nat.c (_initialize_core_rs6000): Update.
4919 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
4920 * nto-tdep.c (_initialize_nto_tdep): Update.
4921 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
4922 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
4923 * mips-nat.c (_initialize_core_mips): Update.
4924 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4925 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
4926 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
4927 * lynx-nat.c (_initialize_core_lynx): Update.
4928 * irix5-nat.c (_initialize_core_irix5): Update.
4929 * i386-interix-nat.c (_initialize_core_interix): Update.
4930 * cris-tdep.c (_initialize_cris_tdep): Update.
4931 * corelow.c (deprecated_add_core_fns): Update.
4932 * core-regset.c (_initialize_core_regset): Update.
4933 * core-aout.c (_initialize_core_aout): Update.
4934 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
4935 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
4936 * alpha-nat.c (_initialize_core_alpha): Update.
4937
13c7b1ca
JB
49382004-04-21 Jim Blandy <jimb@redhat.com>
4939
4940 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
4941
7b5a2f43
DJ
49422004-04-19 Daniel Jacobowitz <drow@mvista.com>
4943
4944 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
4945 Delete.
4946 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
4947 (read_attribute_value): Update calls to dwarf_alloc_block.
4948 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
4949 dwarf2_tmp_obstack.
4950 (psymtab_to_symtab_1): Likewise. Clean up using
4951 free_stack_comp_unit.
4952 (add_to_cu_func_list): Use the comp_unit_obstack.
4953
05cf31d1
JB
49542004-04-19 Joel Brobecker <brobecker@gnat.com>
4955
4956 * dwarf2read.c (dwarf2_flag_true_p): New function.
4957 (die_is_declaration): Use the function above. Add some comments.
4958
adf93a2f
MK
49592004-04-19 Mark Kettenis <kettenis@gnu.org>
4960
4961 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
4962 architecture when registering sparcnbsd_core_osabi_sniffer.
4963 Adjust comment.
4964
748894bf
MK
49652004-04-18 Mark Kettenis <kettenis@gnu.org>
4966
f622ad42
MK
4967 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
4968 return value.
4969
c4fc7f1b
MK
4970 Based on a patch from Brian Ford <ford@vss.fsi.com>:
4971 * i386-tdep.c: Correct register numbering scheme comments
4972 throughout.
4973 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
4974 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
4975 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
4976 (i386_gdb_arch_init): Likewise.
4977
b4ead1bd
MK
4978 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
4979 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
4980 ppcnbsd-tdep.o.
4981
748894bf
MK
4982 * m68k-tdep.h: Tweak comments.
4983 * m68k-tdep.c: Tweak comment.
4984
fdd72f95
RC
49852004-04-17 Randolph Chung <tausq@debian.org>
4986
4987 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
4988 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
4989 (hppa_hpux_som_init_abi): Set is_elf to 0.
4990 (hppa_hpux_elf_init_abi): Set is_elf to 1.
4991 * hppa-tdep.c (low_text_segment_address): Remove global.
4992 (record_text_segment_lowaddr): Pass in low address as parameter. Use
4993 section offset to calculate segment address.
4994 (internalize_unwinds): Define low_text_segment_address as local and
4995 pass to record_text_segment_lowaddr for ELF targets.
4996 (hppa_gdbarch_init): Zero fill tdep structure.
4997 (hppa_dump_tdep): Print tdep structure.
4998 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
4999
0f8d9d59
RC
50002004-04-17 Randolph Chung <tausq@debian.org>
5001
5002 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5003 (hppa_gdbarch_init): Set pseudo_register_read.
5004 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5005 * regcache.c (supply_register): Remove check for
5006 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5007
7c46b9fb
RC
50082004-04-17 Randolph Chung <tausq@debian.org>
5009
5010 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5011 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5012 (hpread_adjust_stack_address): Move to hpread.c.
5013 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5014 obj_private_struct): Move from tm-hppa.h.
5015 * hpread.c (hppa-tdep.h): Include.
5016 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5017 (hpread_read_function_type, hpread_read_doc_function_type)
5018 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5019 directly.
5020 * pa64solib.c (hppa-tdep.h): Include.
5021 * somsolib.c (hppa-tdep.h): Include.
5022 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5023 inferior_status): Remove unused forward declarations.
5024 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5025 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5026 obj_private_struct): Move to hppa-tdep.h.
5027 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5028
8d153463
RC
50292004-04-17 Randolph Chung <tausq@debian.org>
5030
5031 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5032 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5033 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5034 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5035 Remove forward declaration and make static.
5036 (hppa_reg_struct_has_addr): Remove.
5037
350c2e5b
JB
50382004-04-16 Joel Brobecker <brobecker@gnat.com>
5039
5040 * observer.sh: Move comments in sed command to first column.
5041
bbde78fa
JM
50422004-04-16 Jason Molenda (jmolenda@apple.com)
5043
5044 * frame.c: Minor typeo corrections in comments.
5045
e0270fd9
JB
50462004-04-16 Joel Brobecker <brobecker@gnat.com>
5047
5048 * observer.c (observer_test_first_notification_function): Update
5049 function profile.
5050 (observer_test_second_notification_function): Likewise.
5051 (observer_test_third_notification_function): Likewise.
5052
3d049254
MK
50532004-04-16 Mark Kettenis <kettenis@gnu.org>
5054
5055 From Brian Ford <ford@vss.fsi.com>:
5056 * i386-tdep.c (i386_coff_init_abi): New function.
5057 * i386-tdep.h (i386_coff_init_abi): New prototype.
5058 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5059 register number translation functions for DWARF and DWARF 2.
5060
7867684d
JB
50612004-04-16 Joel Brobecker <brobecker@gnat.com>
5062
5063 * dwarf2read.c: Back out my previous change, it was incorrect.
5064
72bf9492
DJ
50652004-04-16 Daniel Jacobowitz <drow@mvista.com>
5066
5067 * dwarf2read.c: Include "hashtab.h".
5068 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5069 has_namespace_info.
5070 (struct partial_die_info): Add comments. Use bitfields to reduce
5071 memory footprint. Add scope, scope_set, has_specification,
5072 spec_offset, die_parent, die_child, and die_sibling.
5073 (peek_die_abbrev): Add prototype.
5074 (partial_read_comp_unit_head): New function, broken out from
5075 dwarf2_build_psymtabs_hard.
5076 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5077 Use partial_read_comp_unit_head. Initialize the CU and
5078 comp_unit_obstack. Update calls to read_partial_die and
5079 scan_partial_symbols. Use free_stack_comp_unit and
5080 load_partial_dies.
5081 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5082 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5083 Update calls to helper functions. Remove NAMESPACE argument.
5084 Update comments.
5085 (partial_die_parent_scope, partial_die_full_name): New functions.
5086 (add_partial_symbol): Remove namespace argument. Update call to
5087 pdi_needs_namespace. Use partial_die_full_name. Handle
5088 DW_TAG_namespace. Check has_namespace_info flag.
5089 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5090 tag. Handle namespaces.
5091 (add_partial_namespace, add_partial_enumeration): Simplify.
5092 (guess_structure_name): New function, derived from
5093 add_partial_structure.
5094 (add_partial_structure): Remove.
5095 (determine_class_name): Update comment.
5096 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5097 (is_type_tag_for_partial, load_partial_dies): New functions.
5098 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5099 Record specifications instead of following them immediately.
5100 (find_partial_die_in_comp_unit, find_partial_die)
5101 (fixup_partial_die, free_stack_comp_unit)
5102 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5103 (partial_die_hash, partial_die_eq): New functions.
5104 * Makefile.in (hashtab_h): Define.
5105 (dwarf2read.o): Update dependencies.
5106 (observer_inc, observer_h): Move to the correct section.
5107
fdc860a3
JB
51082004-04-15 Joel Brobecker <brobecker@gnat.com>
5109
5110 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5111 (die_is_declaration): Use the function above. Add comment.
5112
dc718098
JB
51132004-04-15 Joel Brobecker <brobecker@gnat.com>
5114
5115 * dwarf2read.c (read_structure_scope): Identify stub types
5116 using die_is_declaration() only.
5117
8718a420
RM
51182004-04-15 Roland McGrath <roland@redhat.com>
5119
5120 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5121 argument instead of NAME.
5122 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5123 in call to symbol_file_add_with_addrs_or_offsets.
5124 (build_addr_info): New function, helper for ...
5125 (symbol_file_add_from_memory): New function.
5126 (add_symbol_file_from_memory_command): New function using that.
5127 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5128 (pre_add_symbol_hook): Add const to argument type.
5129 * symfile.h (symbol_file_add_from_memory): Declare it.
5130
8b910bab
MK
51312004-04-15 Mark Kettenis <kettenis@gnu.org>
5132
9f076e7a
MK
5133 * NEWS (New native configurations): Mention OpenBSD/vax.
5134 * configure.host: Add vax-*-openbsd*.
5135 * config/vax/obsd.mh: New file.
5136 * config/vax/nm-obsd.h: New file.
5137
8b910bab
MK
5138 * vax-tdep.c: Include "regset.h".
5139 (vax_supply_gregset): New function.
5140 (vax_gregset): New variable.
5141 (vax_regset_from_core_section): New function.
5142 (vax_gdbarch_init): Set regset_from_core_section.
5143 * Makefile.in (vax-tdep.o): Update dependencies.
5144
7a464420
AC
51452004-04-15 Andrew Cagney <cagney@redhat.com>
5146
5147 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5148 (observer_normal_stop_notification_stub)
5149 (observer_attach_normal_stop, observer_detach_normal_stop):
5150 Delete, replaced by #include "observer.inc".
5151 * infrun.c (normal_stop): Pass "stop_bpstat" to
5152 observer_notify_normal_stop.
5153 * Makefile.in (observer_inc): Define.
5154 (observer.o): Update dependencies.
5155 (observer.h, observer.inc): New rules.
5156 * observer.h: Delete file.
5157 * observer.sh: New file.
5158
e36ad527
MK
51592004-04-15 Mark Kettenis <kettenis@gnu.org>
5160
5161 * vax-tdep.c (vax_frame_cache): Fix typo.
5162
67b441e1
MK
51632004-04-14 Mark Kettenis <kettenis@gnu.org>
5164
6f606e1c
MK
5165 * NEWS (New native configurations): Mention NetBSD/vax.
5166 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5167 * config/vax/nbsdelf.mh: New file.
5168 * config/vax/nbsdaout.mh: New file.
5169 * config/vax/nm-nbsd.h: New file.
5170 * config/vax/nm-nbsdaout.h: New file.
5171
9c5519a5
MK
5172 * vaxnbsd-tdep.c: New file.
5173 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5174 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5175 * config/vax/nbsd.mt: New file.
5176 * config/vax/tm-nbsd.h: New file.
5177
4844a614
MK
5178 * Makefile.in (vaxbsd-nat.o): New dependency.
5179
67b441e1
MK
5180 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5181 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5182 struct_addr arguments. Don't push return value address.
5183 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5184 arguments to vax_store_arguments. Store return value address in
5185 R1.
5186 (vax_store_struct_return, vax_extract_return_value)
5187 (vax_store_return_value): Remove functions.
5188 (vax_return_value): New function.
5189 (vax_gdbarch_init): Set return value. Don't set
5190 deprecated_store_struct_return, deprecated_extract_struct_return
5191 and deprecated_store_return_value.
5192
6672f2ae
AS
51932004-04-14 Andreas Schwab <schwab@suse.de>
5194
5195 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5196 value buffer.
5197 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5198
7346c184
MK
51992004-04-14 Mark Kettenis <kettenis@gnu.org>
5200
5201 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5202 (vax_unwind_dummy_id): New functions.
5203 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5204 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5205 variables.
5206 (vax_fix_call_dummy): Remove function.
5207 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5208 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5209 call_dummy_location, deprecated_call_dummy_words,
5210 deprecated_sizeof_call_dummy_words,
5211 deprecated_call_dummy_breakpoint_offset,
5212 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5213 and deprecated_dummy_write_sp.
5214
58e23df4
DC
52152004-04-13 David Carlton <carlton@kealia.com>
5216
5217 * MAINTAINERS: Move myself to "paper trail" section.
5218
5e6b39ff
MK
52192004-04-12 Mark Kettenis <kettenis@gnu.org>
5220
7def7fef
MK
5221 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5222 "trad-frame.h".
5223 (vax_frame_init_saved_regs): Remove function.
5224 (vax_sigtramp_saved_pc): Remove function.
5225 (vax_frame_saved_pc): Remove function.
5226 (vax_frame_args_address): Remove function.
5227 (vax_frame_num_args): Rewrite.
5228 (vax_frame_chain): Remove function.
5229 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5230 VAX_FP_REGNUM.
5231 (vax_pop_frame): Likewise.
5232 (vax_saved_pc_after_call): Remove function.
5233 (struct vax_frame_cache): New structure.
5234 (vax_frame_cache): New function.
5235 (vax_frame_this_id): New function.
5236 (vax_frame_prev_register): New function.
5237 (vax_frame_unwind): New variable.
5238 (vax_frame_sniffer): New function.
5239 (vax_frame_base_address): New function.
5240 (vax_frame_args_address): New function.
5241 (vax_frame_base): New variable.
5242 (vax_unwind_pc): New function.
5243 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5244 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5245 deprecated_frame_chain, deprecated_frame_saved_pc,
5246 deprecated_frame_args_address and
5247 deprecated_frame_init_saved_regs.
5248 * Makefile.in (vax-tdep.o): Update dependencies.
5249
53284fc1
MK
5250 * vaxbsd-nat.c: New file.
5251
5e6b39ff
MK
5252 * vax-tdep.h: Update copyright year. Adjust comments.
5253 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5254 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5255 (vax_regnum): New enum. Replacing...
5256 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5257 (VAX_PS_REGNUM): ... these removed macros.
5258 * vax-tdep.c (vax_register_name): Remove prototype.
5259 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5260 (vax_register_byte, vax_register_raw_size,
5261 vax_register_virtual_size, vax_register_virtual_type): Remove
5262 functions.
5263 (vax_register_type): New function.
5264 (vax_breakpoint_from_pc): Reorganize.
5265 (vax_gdbarch_init): Set register_type. Don't set
5266 deprecated_register_size, deprecated_register_bytes,
5267 deprecated_register_byte, deprecated_register_raw_size,
5268 deprecated_max_register_raw_size,
5269 deprecated_register_virtual_size,
5270 deprecated_max_register_virtual_size and
5271 deprecated_register_virtual_type. Add comment on stack direction.
5272
e9c71e9f
MK
52732004-04-11 Mark Kettenis <kettenis@gnu.org>
5274
5275 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5276 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 5277 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 5278
d46f1176 52792004-04-10 Randolph Chung <tausq@debian.org>
8718a420 5280
d46f1176
RC
5281 * MAINTAINERS (write after approval): Add myself.
5282
a2a84a72
RC
52832004-04-07 Randolph Chung <tausq@debian.org>
5284
5285 * hppa-tdep.c (hppa_inner_than): Remove.
5286 (is_pa_2): Remove unused static variable.
8718a420 5287 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 5288
e85c3284
PH
52892004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5290
5291 * language.h (language_defn): Add new la_post_parser field.
5292 * parser-defs.h (null_post_parser): New declaration (default for
5293 la_post_parser).
8718a420 5294
e85c3284
PH
5295 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5296 insert call to that function.
5297 (parse_exp_in_context): New function, including code formerly in
8718a420 5298 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
5299 prefixification.
5300 (parse_expression_in_context): New exported function.
5301 (null_post_parser): New definition.
5302 * expression.h (parse_expression_in_context): Add declaration.
8718a420 5303
e85c3284
PH
5304 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5305 * c-lang.c (c_language_defn): Ditto.
5306 (cplus_language_defn): Ditto.
5307 (asm_language_defn): Ditto.
5308 (minimal_language_defn): Ditto.
5309 * f-lang.c (f_language_defn): Ditto.
5310 * jv-lang.c (java_language_defn): Ditto.
5311 * language.c (unknown_language_defn): Ditto.
5312 (auto_language_defn): Ditto.
5313 (local_language_defn): Ditto.
5314 * m2-lang.c (m2_language_defn): Ditto.
5315 * scm-lang.c (scm_language_defn): Ditto.
5316 * obj-lang.c (objc_language_defn): Ditto.
8718a420 5317
d9f8c85b
MK
53182004-04-10 Mark Kettenis <kettenis@gnu.org>
5319
fa34704a
MK
5320 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5321 (amd64nbsd_mcontext_addr): New function.
5322 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5323 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5324 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5325
403e1656
MK
5326 * corelow.c (core_xfer_partial): Fix coding standards violation.
5327 Add support for TARGET_OBJECT_WCOOKIE.
5328
a57e5a95
MK
5329 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5330 deprecated_pc_in_sigtramp.
5331 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5332 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5333 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5334 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5335 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5336 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5337 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5338
377d9ebd
MK
5339 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5340 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5341 Fix typo.
5342
f0ef85a5
MK
5343 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5344 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5345 (amd64_collect_fxsave): Likewise.
5346
d9f8c85b
MK
5347 * i386-sol2-tdep.c: Include "gdb_string.h".
5348 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5349 name.
5350 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5351
75f501b5
MK
53522004-04-10 Mark Kettenis <kettenis@gnu.org>
5353
5354 * i386-sol2-tdep.c: Include "solib-svr4.h".
5355 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5356 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5357 * config/i386/tm-i386sol2.h: Include :solib.h".
5358 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5359 solib-svr4.o and solib-legacy.o.
5360 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5361 solib-svr4.o.
5362
b31bc724
MK
53632004-04-09 Mark Kettenis <kettenis@gnu.org>
5364
18bbbd9e
MK
5365 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5366 whether a register is supplied by PTRACE_GETFPREGS.
5367 (store_inferior_registers): Likewise.
5368 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5369 whether a register is supplied by PT_GETFPREGS.
5370 (store_inferior_registers): Likewise.
5371
3c30bf1b
MK
5372 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5373 * config/i386/linux64.mt (TDEPFILES): Likewise.
5374
a4194092
MK
5375 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5376
911bc6ee
MK
5377 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5378 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5379 the program counter is in the range specified by `struct
5380 gdbarch_tdep'.
5381 * amd64-linux-tdep.c: Include "symtab.h".
5382 (amd64_linux_pc_in_sigtramp): Remove function.
5383 (amd64_linux_sigtramp_p): New function.
5384 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5385 deprecated_pc_in_sigtramp.
5386 * amd64nbsd-tdep.c: Include "symtab.h".
5387 (amd64nbsd_sigtramp_p): New function.
5388 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5389 deprecated_pc_in_sigtramp.
5390 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5391 few comments.
5392 (amd64obsd_pc_in_sigtramp): Remove function.
5393 (amd64obsd_sigtramp_p): New function.
5394 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5395 deprecated_pc_in_sigtramp.
5396 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
5397 (i386bsd_pc_ins_sigtramp): Remove prototype.
5398 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
5399 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
5400 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5401 the program counter is in the range specified by `struct
5402 gdbarch_tdep'.
5403 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
5404 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
5405 (i386_go32_pc_in_sigtramp): Remove function.
5406 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
5407 Initialize TDEP->sigtramp_p.
5408 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
5409 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
5410 deprecated_pc_in_sigtramp.
5411 * i386-linux-tdep.c: Adjust comments.
5412 (i386_linux_pc_in_sigtramp): Remove function.
5413 (i386_linux_sigtramp_p): New function.
5414 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5415 deprecated_pc_in_sigtramp.
5416 * i386-nto-tdep.c: Update copyright year.
5417 (i386nto_pc_in_sigtramp): Remove function.
5418 (i386nto_sigtramp_p): New function.
5419 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
5420 SP_REGNUM.
5421 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
5422 deprecated_pc_in_sigtramp.
5423 * i386-sol2-tdep.c: Update copyright year.
5424 (i386_sol2_pc_in_sigtramp): Remove function.
5425 (i386_sol2_sigtramp_p): New function.
5426 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
5427 deprecated_pc_in_sigtramp.
5428 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
5429 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
5430 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5431 deprecated_sigtramp_start and deprecated_sigtramp_end.
5432 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
5433 (i386nbsd_pc_in_sigtramp): Remove function.
5434 (i386nbsd_sigtramp_p): New function.
5435 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5436 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5437 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
5438 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
5439 (i386obsd_pc_in_sigtramp): Remove function.
5440 (i386obsd_sigtramp_p): New function.
5441 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
5442 functions.
5443 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5444 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5445 TDEP->sigtramp_p.
5446 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
5447 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
5448 dependencies.
5449
e083e6ec
MK
5450 * config/i386/i386aout.mt: Remove file.
5451
bd153b94
MK
5452 * configure.tgt: Remove i[34567]86-*-go32*,
5453 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
5454 and i[34567]86-*-isc*. Set gdb_target to i386 for
5455 i[34567]86-*-netware* and i[34567]86-*-*.
5456 * config/i386/i386.mt: New file.
5457 * config/i386/embed.mt: Remove file.
5458 * config/i386/go32.mt: Remove file.
5459 * config/i386/i386nw.mt: Remove file.
5460 * config/i386/i386v.mt: Remove file.
5461 * config/i386/tm-go32.h: Remove file.
5462
4a1bcc8c
MK
5463 * tui/tui-hooks.c: Include "readline/readline.h" after
5464 "gdb_curses.h" instead of before.
5465 * tui/tui-io.c: Likewise.
5466
f9a79064
MK
5467 * tui/tui.c: Fix typo in comment.
5468
b31bc724
MK
5469 * sparc64-tdep.c (sparc_address_from_register): Remove function.
5470
f83f82bc
AC
54712004-04-08 Andrew Cagney <cagney@redhat.com>
5472
5473 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
5474 (deprecated_exception_support_initialized): Declare.
8718a420 5475 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
5476 (initialize_hp_cxx_exception_support)
5477 (child_enable_exception_callback): Update.
5478 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
5479 (deprecated_exception_support_initialized): Rename
5480 deprecated_exception_catchpoints_are_fragile and
5481 deprecated_exception_support_initialized.
5482 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
5483
5484 * symtab.c (deprecated_hp_som_som_object_present): Rename
5485 hp_som_som_object_present.
5486 * symtab.h (deprecated_hp_som_som_object_present): Declare.
5487 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
5488 Update. Delete extern declaration.
5489 * valops.c (hp_som_som_object_present): Ditto.
8718a420 5490 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
5491 (parse_nested_classes_for_hpacc): Ditto.
5492 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 5493 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
5494 (initialize_hp_cxx_exception_support): Ditto.
5495 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 5496 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 5497 (cp_print_class_method): Ditto.
8718a420 5498 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
5499 (c_type_print_base): Ditto.
5500 * c-exp.y (hp_som_som_object_present): Ditto.
5501
fb2be677
AC
55022004-04-08 Andrew Cagney <cagney@redhat.com>
5503
5504 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
5505 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
5506 (frame_unwind_find_by_frame): Re-implement the unwind code so
5507 that it can both prepend and append sniffers. Replace
5508 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
5509 * tramp-frame.c (tramp_frame_append): Use
5510 frame_unwind_prepend_unwinder.
5511 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
5512 frame_unwind_register_unwinder.
5513 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
5514 tramp_frame_append.
5515 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 5516 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
5517 (mips_linux_init_abi): Update.
5518
67faf007
KB
55192004-04-08 Kevin Buettner <kevinb@redhat.com>
5520
5521 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
5522 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
5523 file support.
5524
8973ff21
KB
55252004-04-07 Kevin Buettner <kevinb@redhat.com>
5526
5527 * ia64-tdep.c (elf.h): Don't include.
5528 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
5529
4a0e2f88
JM
55302004-04-07 Jason Molenda (jmolenda@apple.com)
5531
5532 * frame.h: Typeo corrections in comments.
5533
9872ad24
JB
55342004-04-07 Jim Blandy <jimb@redhat.com>
5535
5536 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
5537 %esp and %ebp
5538
70b216c8
MK
55392004-04-07 Mark Kettenis <kettenis@gnu.org>
5540
11d5789c
MK
5541 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
5542 * config/sparc/linux64.mt (TDEPFILES): Likewise.
5543 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5544 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
5545 and solib-legacy.o.
5546 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
5547 solib-svr4.o.
5548 * config/sparc/tm-sol2.h: Update copyright year. Include
5549 "solib.h".
5550
70b216c8
MK
5551 * sparc-sol2-tdep.c: Update copyright year. Include
5552 "solib-svr4.h".
5553 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5554 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
5555 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 5556 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
5557 dependencies.
5558
6339dc9e
AC
55592004-04-06 Andrew Cagney <cagney@redhat.com>
5560
5561 * infttrace.c: Include "infttrace.h".
5562 * infttrace.h: Include "target.h".
5563 * Makefile.in (infttrace_h): Update.
5564 (infttrace.o): Update.
8718a420 5565
93449403
AC
55662004-04-06 Andrew Cagney <cagney@redhat.com>
5567
6d518969
AC
5568 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
5569 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
5570 move extern declarations from here ...
5571 * infttrace.h: ... to here.
5572 * Makefile.in (hppah-nat.o): Update dependencies.
5573
85f4f2d8
AC
5574 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
5575 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 5576 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
5577 (hppa_breakpoint_from_pc): Delete.
5578
93449403
AC
5579 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
5580
71456ec6
AC
55812004-04-05 Andrew Cagney <cagney@redhat.com>
5582
5583 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
5584 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
5585 <sys/file.h>.
8718a420 5586
4c02c60c
AC
55872004-04-06 Randolph Chung <tausq@debian.org>
5588
5589 Committed by Andrew Cagney (mechanical change).
5590 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
5591 exception_catchpoints_are_fragile, find_stub_with_shl_get,
5592 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
5593 child_enable_exception_callback, current_ex_event,
5594 null_symtab_and_line, child_get_current_exception_event,
5595 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
5596 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
5597 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
5598 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
5599 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
5600 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
5601 Move hpux-specific definitions ...
5602 * hppa-hpux-tdep.c: ... to here.
5603
3a515653
AC
56042004-04-05 Andrew Cagney <cagney@redhat.com>
5605
5606 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
5607 skip_prologue_using_sal.
5608
c1730d02
AC
56092004-04-05 Andrew Cagney <cagney@redhat.com>
5610
5611 * config/i386/tm-i386.h: Delete file.
5612 * config/i386/tm-vxworks.h: Update copyright, do not include
5613 "tm-i386.h".
5614 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
5615 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
5616 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
5617 * config/i386/ncr3000.mt (TM_FILE): Delete.
5618 * config/i386/interix.mt (TM_FILE): Delete.
5619 * config/i386/i386v.mt (TM_FILE): Delete.
5620 * config/i386/i386nw.mt (TM_FILE): Delete.
5621 * config/i386/i386gnu.mt (TM_FILE): Delete.
5622 * config/i386/i386aout.mt (TM_FILE): Delete.
5623 * config/i386/embed.mt (TM_FILE): Delete.
5624
8b67aa36
KB
56252004-04-05 Kevin Buettner <kevinb@redhat.com>
5626
5627 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
5628 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
5629 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
5630 (accg7_regnum): New constants.
5631 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
5632 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
5633 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
5634 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
5635 for accg registers.
5636 (frv_register_sim_regno): Update spr_map[].
5637
3c7012f5
AC
56382004-04-04 Andrew Cagney <cagney@redhat.com>
5639
5640 * config/mips/xm-riscos.h: Delete.
5641 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
5642 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
5643 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
5644 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
5645 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
5646 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
5647 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
5648 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
5649 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
5650 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
5651 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
5652 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
5653 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
5654 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
5655 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
5656 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
5657 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
5658 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
5659 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
5660 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
5661 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
5662 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
5663 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
5664 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
5665 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
5666 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 5667
3c7012f5
AC
5668 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
5669 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
5670 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
5671 * configure.host: Remove m680[01]0-sun-sunos3*,
5672 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
5673 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
5674 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
5675 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
5676 mips-*-riscos*.
5677 * NEWS: Mention removed systems.
5678
99d16a21
AC
56792004-04-04 Andrew Cagney <cagney@redhat.com>
5680
5681 GDB 6.1 release created from 6.1 branch.
5682
6cdf9d98
AC
56832004-04-04 Andrew Cagney <cagney@redhat.com>
5684
98d346c3
AC
5685 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
5686 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
5687 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
5688
6cdf9d98
AC
5689 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
5690 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
5691 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
5692
859a326d
JB
56932004-04-03 Jim Blandy <jimb@redhat.com>
5694
5695 * MAINTAINERS: Chris Faylor has changed employers; add him to
5696 "paper trail" section, and update his E-mail address.
5697
b87178c3
AC
56982004-04-03 Andrew Cagney <cagney@redhat.com>
5699
4ea2acf0
AC
5700 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
5701 generic dummy frames.
5702 * dummy-frame.c: Update copyright.
5703 (dummy_frame_sniffer): Delete check for generic dummy frames.
5704
d0bd2d18 5705 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 5706 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
5707 (REG_PARM_STACK_SPACE): Delete.
5708 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
5709 Inline reference to REG_PARM_STACK_SPACE.
5710
b87178c3
AC
5711 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
5712 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
5713 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5714 (FRAME_BASE_BEFORE_SIGTRAMP)
5715 (hppa32_hpux_frame_base_before_sigtramp)
5716 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
5717 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
5718 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
5719 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
5720 (FRAME_BASE_BEFORE_SIGTRAMP)
5721 (hppa64_hpux_frame_base_before_sigtramp)
5722 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
5723
43e2e1a0
AC
57242004-04-03 Andrew Cagney <cagney@redhat.com>
5725
5726 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
5727
ddc135a4
AC
57282004-04-02 Andrew Cagney <cagney@redhat.com>
5729
5730 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
5731 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
5732 * dummy-frame.h: Delete out-of-date comments.
5733 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
5734 * gdbarch.h, gdbarch.c: Re-generate.
5735
d15bfd3a 57362004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 5737
d15bfd3a
AC
5738 Committed by Andrew Cagney <cagney@redhat.com>.
5739 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
5740 into account an instruction saving a register if we have already
5741 seen an earlier instruction saving that same register.
5742
f04ceafa
AC
57432004-04-02 Andrew Cagney <cagney@redhat.com>
5744
08be3abd
AC
5745 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
5746 * gdbarch.h, gdbarch.c: Re-generate.
5747 * frame.c (legacy_get_prev_frame): Delete references to
5748 DEPRECATED_INIT_FRAME_PC_FIRST.
5749
f04ceafa
AC
5750 * infrun.c (pc_in_sigtramp): Delete function.
5751 (check_sigtramp2): Inline call to pc_in_sigtramp, use
5752 get_frame_type.
5753
08e69816
AC
57542004-04-02 Andrew Cagney <cagney@redhat.com>
5755
5756 * infrun.c (handle_step_into_function): Delete code conditional on
5757 legacy_frame_p.
5758 (handle_inferior_event, step_over_function): Ditto.
5759
adb54772
AC
57602004-04-02 Andrew Cagney <cagney@redhat.com>
5761
5762 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
5763 "previous frame inner to this frame" test.
5764
304396fb
AC
57652004-04-02 Andrew Cagney <cagney@redhat.com>
5766
5767 * frame.c (safe_frame_unwind_memory): New function.
5768 * frame.h (safe_frame_unwind_memory): Declare. Update description
5769 of /safe_/ methods.
5770 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
5771 "next_frame". Use safe_frame_unwind_memory.
5772 (tramp_frame_sniffer): Update call to tramp_frame_start.
5773
6502dd73
DJ
57742004-04-01 Daniel Jacobowitz <drow@mvista.com>
5775
5776 * dwarf2read.c (dwarf2_objfile_data_key): New.
5777 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
5778 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
5779 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
5780 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
5781 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
5782 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
5783 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
5784 Remove variables.
5785 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
5786 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
5787 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
5788 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
5789 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
5790 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
5791 Remove macros.
5792 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
5793 data.
5794 (dwarf2_locate_sections, dwarf2_build_psymtabs)
5795 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
5796 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
5797 (read_partial_die, read_full_die, read_indirect_string)
5798 (dwarf_decode_line_header, dwarf_decode_macros)
5799 (dwarf2_symbol_mark_computed): Remove use of removed macros.
5800 Update uses of removed variables.
5801 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
5802 of removed macros.
5803 (_initialize_dwarf2_read): New function.
5804 * symfile.h (dwarf2_has_info): Update prototype.
5805 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
5806 * elfread.c (elf_symfile_read): Likewise.
5807
408752b0
JB
58082004-04-01 Jim Blandy <jimb@redhat.com>
5809
9f744501
JB
5810 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
5811 function for register numbers on all the rs6000-derived targets.
5812 (rs6000_gdbarch_init): Don't register a separate
5813 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
5814 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
5815 variants.
5816
408752b0
JB
5817 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
5818 numbering.
5819
2de41bce
PH
58202004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5821
5822 * valarith.c: Update copyright notice.
5823 (value_add): Handle range types.
5824 (value_sub): Ditto.
5825 (value_equal): Ditto.
5826 (value_less): Ditto.
5827 (value_neg): Ditto.
5828 (value_complement): Ditto.
8718a420 5829 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 5830 eliminiating unnecessary COERCE_ENUMs.
8718a420 5831
5613d8d3
AC
58322004-03-31 Andrew Cagney <cagney@redhat.com>
5833
5834 * frame.h (frame_unwind_id): Declare.
5835 * frame.c (frame_unwind_id): New function.
5836 (get_prev_frame_1): New function.
5837 (frame_debug_got_null_frame): New function.
5838 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
5839 code proper to prev_frame, update description.
5840 * infrun.c (step_over_function): Use frame_unwind_id.
5841
c4557624
JB
58422004-04-31 J. Brobecker <brobecker@gnat.com>
5843
5844 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
5845 (hppa64_push_dummy_call): Likewise.
5846
3e6bb910
JB
58472004-03-30 Jim Blandy <jimb@redhat.com>
5848
5849 From Ulrich Weigand:
5850 * utils.c (query): Do not use a va_list variable multiple times.
5851
a2f23071
DJ
58522004-03-29 Daniel Jacobowitz <drow@mvista.com>
5853
5854 * Makefile.in (linux_nat_h): Update dependencies.
5855 * configure.in: Check for <gnu/libc-version.h>.
5856 * configure: Regenerate.
5857 * config.in: Regenerate.
5858 * linux-nat.h: Include "target.h". Add waitstatus field to
5859 struct lwp_info.
5860 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
5861 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
5862 to.
5863 (lin_lwp_handle_extended): New function. Handle clone events.
5864 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
5865 thread exit events.
5866 (child_wait): Handle clone events.
5867 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
5868 * linux-nat.c (linux_enable_event_reporting): Turn on
5869 PTRACE_O_TRACECLONE.
5870 (linux_handle_extended_wait): Handle clone events.
5871 * thread-db.c: Include <gnu/libc-version.h>.
5872 (struct private_thread_info): Add dying flag.
5873 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
5874 higher.
5875 (attach_thread): Update comments. Handle dying threads.
5876 (detach_thread): Set the dying flag.
5877 (check_event): Always call attach_thread.
5878
8d5f9dcb
DJ
58792004-03-29 Daniel Jacobowitz <drow@mvista.com>
5880
5881 * mips-tdep.c (mips_pdr_data): New.
5882 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
5883 (_initialize_mips_tdep): Initialize mips_pdr_data.
5884
66337bb1
CV
58852004-03-29 Corinna Vinschen <vinschen@redhat.com>
5886
5887 * minsyms.c (install_minimal_symbols): Move dropping leading
5888 char from linkage name from here...
5889 (prim_record_minimal_symbol_and_info): ...to here. Simplify
5890 test for "__gnu_compiled*" symbols.
5891
e802b915
JB
58922004-03-28 Jim Blandy <jimb@redhat.com>
5893
5894 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
5895 registers to temp register r0 and byte stores as prologue
5896 instructions.
5897
72b56458
AC
58982004-03-28 Andrew Cagney <cagney@redhat.com>
5899
5900 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
5901 arm*-*-*.
5902
0bfbda3b
SC
59032004-03-28 Stephane Carrez <stcarrez@nerim.fr>
5904
5905 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
5906 and switch the layout to force a display of register window.
5907
5a7225ed
JB
59082004-02-26 J. Brobecker <brobecker@gnat.com>
5909
5910 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
5911 of the INTEGER class.
5912
81a07a45
JB
59132004-03-26 Jim Blandy <jimb@redhat.com>
5914
5915 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
5916 bytes long on PPC GNU/Linux.
5917
8c691c7a
DC
59182004-03-26 David Carlton <carlton@kealia.com>
5919
5920 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
5921
103a0089
AC
59222004-03-25 Andrew Cagney <cagney@redhat.com>
5923
5924 * PROBLEMS: Add general section titles, remove references to
5925 specific releases.
5926
7a5ea0d4
DJ
59272004-03-25 Daniel Jacobowitz <drow@mvista.com>
5928
5929 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
5930 INT_REGISTER_SIZE.
5931 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
5932 FP_REGISTER_VIRTUAL_SIZE.
5933 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
5934 of DEPRECATED_REGISTER_RAW_SIZE.
5935 (arm_register_type): Add gdbarch argument.
5936 (arm_register_raw_size, arm_register_virtual_size): Delete.
5937 (arm_register_byte, arm_extract_return_value)
5938 (arm_store_return_value, arm_get_longjmp_target): Update references
5939 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
5940 (arm_gdbarch_init): Likewise. Don't set
5941 deprecated_register_raw_size, deprecated_register_virtual_size,
5942 deprecated_max_register_raw_size,
5943 deprecated_max_register_virtual_size, or
5944 deprecated_max_register_virtual_type. Do set register_type.
5945 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
5946 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
5947 (FP_REGISTER_VIRTUAL_SIZE): Delete.
5948 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
5949 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
5950 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
5951 INT_REGISTER_SIZE.
5952 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
5953 (remote_rdp_store_register): Likewise.
5954
5792a79b
DJ
59552004-03-24 Daniel Jacobowitz <drow@mvista.com>
5956
5957 * Makefile.in (mips-linux-tdep.o): Update dependencies.
5958 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
5959 to after osabi initialization.
5960 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
5961 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
5962 functions.
5963 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
5964 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
5965 variables.
5966 (mips_linux_init_abi): Append signal trampoline unwinders.
5967
1196bfda
AC
59682004-03-24 Andrew Cagney <cagney@redhat.com>
5969
5970 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
5971 * tramp-frame.c: Include "gdb_assert.h".
5972 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
5973 correct sizeof.
5974 (tramp_frame_append): Validate the tramp frame's instructions.
5975 * Makefile.in (tramp-frame.o): Update dependencies.
5976
4be282b4
AC
59772004-03-23 Andrew Cagney <cagney@redhat.com>
5978
5979 * trad-frame.h (trad_frame_set_reg_addr): Declare.
5980
69aec09b
AC
59812004-03-23 Andrew Cagney <cagney@redhat.com>
5982
5983 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
5984 Nasser as past testsuite/lib/ (and other) maintainers.
5985
63ed89b4
DJ
59862004-03-23 Daniel Jacobowitz <drow@mvista.com>
5987
5988 * infcmd.c (attach_command): Reread symbols if we already have
5989 an exec file.
5990
f3b36427
AC
59912004-03-23 Andrew Cagney <cagney@redhat.com>
5992
5993 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
5994
aa2a3f87
AC
59952004-03-23 Andrew Cagney <cagney@redhat.com>
5996
5997 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
5998 * gdbarch.h, gdbarch.c: Re-generate.
5999 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6000 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6001 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6002 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6003 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6004 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6005 (DEPRECATED_SIGTRAMP_START): Update.
6006 * blockframe.c (find_pc_sect_partial_function): Update.
6007 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6008
00cac895
DJ
60092004-03-23 Daniel Jacobowitz <drow@mvista.com>
6010
6011 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6012 if necessary.
6013
f561f026
AC
60142004-03-23 Andrew Cagney <cagney@redhat.com>
6015
6016 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6017 predicate, deprecate.
6018 * gdbarch.h, gdbarch.c: Re-generate.
6019 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6020 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6021 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6022 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6023 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6024 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6025 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6026 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6027 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6028 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6029 * blockframe.c (find_pc_partial_function): Update.
6030 * breakpoint.c (bpstat_what): Update.
6031 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6032 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6033 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6034 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6035 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6036 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6037 * i386-nto-tdep.c (i386nto_init_abi): Update.
6038 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6039 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6040 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6041 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6042 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6043 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6044 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6045 * infrun.c (pc_in_sigtramp): Update.
6046 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6047 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6048 * mips-tdep.c (mips_gdbarch_init): Update.
6049 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6050 * ppc-linux-tdep.c: Update comment.
6051 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6052 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6053 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6054 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6055 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6056 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6057 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6058 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6059 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6060 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6061
8050c72f
AC
60622004-03-23 Andrew Cagney <cagney@redhat.com>
6063
d2259dd3
AC
6064 * tramp-frame.h, tramp-frame.h: New files.
6065 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6066 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6067
8050c72f
AC
6068 * Makefile.in: Update all dependencies.
6069
0db9b4b7
AC
60702004-03-23 Andrew Cagney <cagney@redhat.com>
6071
6072 * Makefile.in (trad_frame_h): Add $(frame_h).
6073 * trad-frame.h: Update copyright. Include "frame.h".
6074 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6075 (trad_frame_set_id, trad_frame_get_id): Declare.
6076 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6077 * trad-frame.c: Update copyright.
6078 (struct trad_frame_cache): Define.
6079 (trad_frame_cache_zalloc): New function.
6080 (trad_frame_set_id, trad_frame_get_id): New functions.
6081 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 6082
8e645ae7
AC
60832004-03-22 Andrew Cagney <cagney@redhat.com>
6084
6085 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6086 s390_pltstub_unwind_cache.
6087 (s390_stub_frame_unwind_cache): Rename
6088 s390_pltstub_frame_unwind_cache.
6089 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6090 (s390_stub_frame_prev_register): Rename
6091 s390_pltstub_frame_prev_register.
6092 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6093 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6094
6095 From Ulrich Weigand:
6096 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6097 pointer calls like PLT calls.
6098
34fcf120
DJ
60992004-03-22 Daniel Jacobowitz <drow@mvista.com>
6100
6101 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6102 PC rather than the partial function start address. Use the start
6103 address to sanity check the found PDR.
6104
5b917078
DJ
61052004-03-22 Daniel Jacobowitz <drow@mvista.com>
6106
6107 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6108 linux_handle_extended_wait.
6109
8adf9e78
AC
61102004-03-22 Andrew Cagney <cagney@redhat.com>
6111
c3122434
AC
6112 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6113 function.
6114
8adf9e78
AC
6115 * frame.h (generic_pop_current_frame): Delete declaration.
6116 (deprecate_pop_dummy_frame): Deprecate
6117 generic_pop_dummy_frame.
6118 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6119 (generic_pop_current_frame): Delete function.
6120 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6121 generic_pop_current_frame.
6122 * v850-tdep.c (v850_pop_frame): Update.
6123 * mcore-tdep.c (mcore_pop_frame): Update.
6124 * sh64-tdep.c (sh64_pop_frame): Update.
6125 * h8300-tdep.c (h8300_pop_frame): Update.
6126
90ba813f
AC
61272004-03-22 Andrew Cagney <cagney@redhat.com>
6128
6129 * frame.h (deprecated_pc_in_call_dummy): Rename
6130 generic_pc_in_call_dummy.
6131 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6132 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6133 generic_pc_in_call_dummy.
6134 (pc_in_dummy_frame): Make static.
6135 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6136 * gdbarch.h, gdbarch.c: Re-generate.
6137 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6138 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6139 (legacy_get_prev_frame): Ditto.
6140 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6141 comment.
8718a420 6142
ca4bb888
AC
61432004-03-21 Andrew Cagney <cagney@redhat.com>
6144
244675f9
AC
6145 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6146 declaration and out-of-date comment.
6147 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6148 Delete function.
6149 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6150 deprecated_pc_in_call_dummy.
6151
ca4bb888
AC
6152 * infrun.c (handle_inferior_event): For non legacy frames, use the
6153 frame ID and frame type to identify a signal trampoline. Update
6154 comments.
6155
1777c7b4
NW
61562004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6157
6158 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6159 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6160
82417da5
AC
61612004-03-21 Andrew Cagney <cagney@redhat.com>
6162
6163 * frame-unwind.h: Update copyright.
6164 (struct frame_data): Add opaque declaration.
6165 (frame_sniffer_ftype): Declare.
6166 (struct frame_unwind): Add "unwind_data" and "sniffer".
6167 (frame_unwind_register_unwinder): Declare.
6168 (frame_unwind_find_by_frame): Add parameter "this_cache".
6169 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6170 (legacy_get_prev_frame, legacy_get_prev_frame)
6171 (get_frame_type): Pass the prologue_cache to
6172 frame_unwind_find_by_frame.
6173 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6174 "unwinder".
6175 (frame_unwind_register_unwinder): New function.
6176 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6177
b2ba182e
PH
61782004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6179
6180 * bcache.c (print_percentage): Use floating point to avoid
6181 incorrect results when portion*100 overflows.
6182
81332287
KB
61832004-03-19 Kevin Buettner <kevinb@redhat.com>
6184
6185 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6186 (ppc_linux_init_extra_frame_info)
6187 (ppc_linux_frameless_function_invocation)
6188 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6189 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6190 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6191 (rs6000_frame_chain): Delete declarations.
6192 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6193 (ppc_linux_init_extra_frame_info)
6194 (ppc_linux_frameless_function_invocation)
6195 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6196 (ppc_linux_init_abi): Remove registration of above deleted functions.
6197 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6198 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6199 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6200 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6201 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6202 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6203 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6204 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6205 frame management for all OSABIs.
6206
61a65099
KB
62072004-03-19 Andrew Cagney <cagney@redhat.com>
6208
6209 Committed by Kevin Buettner <kevinb@redhat.com>.
6210
6211 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6212 Update copyright.
6213 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6214 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6215 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6216 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6217 unwinders. #ifdef legacy frame code.
6218 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6219 "frame-base.h".
6220 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6221 (struct rs6000_frame_cache, rs6000_frame_cache)
6222 (rs6000_frame_this_id, rs6000_frame_prev_register)
6223 (rs6000_frame_sniffer, rs6000_frame_unwind)
6224 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6225 (rs6000_frame_base): Implement a traditional frame unwinder.
6226 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6227 frame unwinder.
6228
88f7da05
KB
62292004-03-19 Kevin Buettner <kevinb@redhat.com>
6230
6231 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6232 breakpoint address for watchpoints or the catch eventpoints.
6233 Add new paramter ``bptype''. Adjust all callers.
6234
f826dce1
AC
62352004-03-19 Andrew Cagney <cagney@redhat.com>
6236
33cb8b0f
AC
6237 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6238
f826dce1
AC
6239 * PROBLEMS: Delete note that ARM does not use frame code, problem
6240 fixed.
6241
43b1ab88
AC
62422004-03-18 Andrew Cagney <cagney@redhat.com>
6243
292ab034
AC
6244 * stack.c (return_command): Delete code wrapped in #ifdef
6245 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6246
43b1ab88
AC
6247 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6248
dbfe4626
AC
62492004-03-18 Andrew Cagney <cagney@redhat.com>
6250
6251 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6252 DEPRECATED_IN_SIGTRAMP.
6253 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6254 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6255 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6256 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6257 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6258 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6259 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6260 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6261 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6262 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6263
0cad6aec
AC
62642004-03-18 Andrew Cagney <cagney@redhat.com>
6265
6266 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6267 (struct frame_base_table_entry): Define.
6268 (struct frame_base_table): Re-implement as a linked list.
6269 (frame_base_init): Re-implement.
6270 (frame_base_table): Delete function.
6271 (append_predicate): Delete function.
6272 (frame_base_append_sniffer): Update.
6273 (frame_base_set_default): Update.
6274 (frame_base_find_by_frame): Update.
6275 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6276 * Makefile.in (frame-base.o): Update dependencies.
6277
9982c2e7
AC
62782004-03-17 Andrew Cagney <cagney@redhat.com>
6279
6280 * frame.c (legacy_get_prev_frame): Pass correct frame to
6281 frame_unwind_find_by_frame.
6282
8dfe8985
DC
62832004-03-17 David Carlton <carlton@kealia.com>
6284
6285 * NEWS: Mention C++ nested types and namespaces
6286
ed47347a
MC
62872004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6288
6289 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6290 and "Regressions since gdb 5.3.". Add known regressions since
6291 gdb 6.0.
6292
90aeadfc
DC
62932004-03-16 David Carlton <carlton@kealia.com>
6294
6295 * dwarf2read.c (process_structure_scope): Process children even
6296 when we're a declaration.
6297
73912b9b
AC
62982004-03-16 Andrew Cagney <cagney@redhat.com>
6299
6300 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6301 * blockframe.c (find_pc_partial_function)
6302 (find_pc_sect_partial_function): Merge into a single
6303 find_pc_partial_function.
6304
283accbc
MK
63052004-03-16 Mark Kettenis <kettenis@gnu.org>
6306
6307 * i386bsd-nat.c: s/regno/regnum/g.
6308 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6309 FP0_REGNUM.
6310 (store_inferior_registers): Likewise.
6311
f5b1afdf
MK
63122004-03-16 Mark Kettenis <kettenis@gnu.org>
6313
6314 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6315 of i387_fill_fsave.
6316 (store_inferior_registers): Call i387_collect_fsave and
6317 i387_collect_fxsave instead of i387_fill_fsave and
6318 i387_fill_fxsave.
6319
41fe5eb3
AC
63202004-03-15 Andrew Cagney <cagney@redhat.com>
6321
6322 * Makefile.in (frame-unwind.o): Update dependencies.
6323 * frame-unwind.c: Include "gdb_obstack.h".
6324 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6325 parameter.
6326 (append_predicate): Delete function.
6327 (struct frame_unwind_table_entry): New structure.
6328 (struct frame_unwind_table): Replace "sniffer" with "head" and
6329 "tail".
6330 (frame_unwind_append_sniffer): Update.
6331 (frame_unwind_find_by_frame): Update.
6332 (_initialize_frame_unwind): Registe frame_unwind_init using
6333 gdbarch_data_register_pre_init.
6334
3f63813d
MK
63352004-03-15 Mark Kettenis <kettenis@gnu.org>
6336
6337 * i386bsd-nat.c: Update copyright year.
6338 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6339 define unconditionally.
6340
3248c325 63412004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
6342
6343 * i387-tdep.h (i387_collect_fsave): New prototype.
6344 * i387-tdep.c (i387_collect_fsave): New function containing most
6345 of the code from i387_fill_fsave.
3248c325 6346 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 6347
871fbe6a
MK
63482004-03-15 Mark Kettenis <kettenis@gnu.org>
6349
6350 * i386-linux-tdep.c: Update copyright year.
6351 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6352 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6353 svr4_ilp32_link_map_offsets instead of
6354 i386_linux_svr4_fetch_link_map_offsets.
6355
8176b9b8
DC
63562004-03-15 David Carlton <carlton@kealia.com>
6357
6358 Fix for PR c++/1553:
6359 * dwarf2read.c (read_structure_type): Determine type name by
6360 calling determine_class_name.
6361 (determine_class_name): New.
6362 (determine_prefix): Look at TYPE_TAG_NAME and call
6363 determine_class_name when appropriate.
6364 (determine_prefix_aux, class_name): Delete.
9d58e29d 6365 (read_namespace): Set die->type.
8176b9b8 6366
fe8bf7d7
KB
63672004-03-15 Kevin Buettner <kevinb@redhat.com>
6368
6369 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6370 unused macro definition. The definition in target.h (or perhaps
6371 elsewhere) takes precedence.
6372
ed6edd9b
AC
63732004-03-15 Andrew Cagney <cagney@redhat.com>
6374
f9be684a
AC
6375 * ppc-tdep.h: Update copyright.
6376 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6377 function signatures to match "regsets.h".
6378 * ppc-linux-tdep.c: Include "regset.h".
6379 (ELF_GREGSET_SIZE): Delete.
6380 (right_supply_register): New function.
6381 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6382 using right_supply_register.
6383 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6384 functions.
6385 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6386 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6387 (_initialize_ppc_linux_tdep): Do not register
6388 ppc_linux_regset_core_fns.
6389 (ppc_linux_regset_from_core_section): Replace
6390 fetch_core_registers.
6391 (ppc_linux_regset_core_fns): Delete.
6392 * ppc-linux-nat.c: (right_fill_reg): New function.
6393 (supply_gregset): Update call to ppc_linux_supply_gregset.
6394 (fill_gregset): Clear the register set, use right_fill_reg.
6395 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
6396 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
6397
ed6edd9b
AC
6398 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
6399 unsigned.
6400
030f20e1
AC
64012004-03-15 Andrew Cagney <cagney@redhat.com>
6402
6403 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
6404 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
6405 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
6406 and register_gdbarch_data.
6407 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
6408 (struct gdbarch_data): Replace "init" by "pre_init" and
6409 "post_init".
6410 * gdbarch.h, gdbarch.c: Re-generate.
6411 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
6412 with"obstack", use OBSTACK_ZALLOC.
6413 (dwarf2_frame_ops): Delete.
6414 (dwarf2_frame_set_init_reg): Use gdbarch_data.
6415 (dwarf2_frame_init_reg): Use gdbarch_data.
6416 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 6417 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
6418 (_initialize_svr4_solib): Update.
6419 * user-regs.c (_initialize_user_regs): Update.
6420 * reggroups.c (_initialize_reggroup): Update.
6421 * regcache.c (_initialize_regcache): Update.
6422 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6423 * libunwind-frame.c (_initialize_libunwind_frame): Update.
6424 * gnu-v3-abi.c (init_gnuv3_ops): Update.
6425 * frame-unwind.c (_initialize_frame_unwind): Update.
6426 * frame-base.c (_initialize_frame_base): Update.
6427 * user-regs.c (user_reg_add): Update.
6428 * reggroups.c (reggroup_add): Update.
6429 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
6430 * libunwind-frame.c (libunwind_frame_set_descr): Update.
6431 * frame-unwind.c (frame_unwind_append_sniffer): Update.
6432 * frame-base.c (frame_base_table): Update.
6433 * remote.c (_initialize_remote): Update.
6434 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 6435
3111a3fc
AC
64362004-03-15 Andrew Cagney <cagney@redhat.com>
6437
6438 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
6439
5ecb7103
KB
64402004-03-15 Kevin Buettner <kevinb@redhat.com>
6441
6442 * Makefile.in (frv-linux-tdep.o): Add dependencies.
6443 * frv-linux-tdep.c: New file.
6444 * frv-tdep.c (struct gdbarch_tdep): Add new field
6445 ``sigcontext_reg_addr''.
6446 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
6447 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6448 (frv_sigramp_frame_sniffer): New functions.
6449 (frv_sigtramp_frame_unwind): New static global.
6450 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
6451 sniffers.
6452 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
6453 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
6454
1ccda5e9
KB
64552004-03-15 Kevin Buettner <kevinb@redhat.com>
6456
6457 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
6458 but not via a call to error(), when unable to read memory.
6459
b375a0a5
KB
64602004-03-15 Kevin Buettner <kevinb@redhat.com>
6461
6462 * frv-tdep.c (frv_call_dummy_words): Delete.
6463 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
6464
4fdf6121
AC
64652004-03-15 Andrew Cagney <cagney@redhat.com>
6466
6467 * infrun.c (handle_step_into_function, step_over_function): Only
6468 update and use STEP_FRAME_ID when the system is using legacy
6469 frames. Update comments.
6470
34021503
MK
64712004-03-14 Mark Kettenis <kettenis@gnu.org>
6472
187e21d1
MK
6473 * amd64-linux-tdep.h: Remove file.
6474 * amd64-linux-tdep.c: Don't include "inferior.h" and
6475 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
6476 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
6477 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
6478 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
6479 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
6480 macros.
6481 (user_to_gdb_regmap): Remove variable.
6482 (amd64_linux_gregset_reg_offset): New variable.
6483 (amd64_core_fns): Remove variable.
6484 (fetch_core_registers): Remove function.
6485 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
6486 functions.
6487 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
6488 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
6489 * Makefile.in (amd64_linux_tdep_h): Remove.
6490 (amd64-linux-nat.o): Update dependencies.
6491 (amd64-linux-tdep.o): Update dependencies.
6492
99679982
MK
6493 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
6494 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
6495 functions.
6496 (fetch_inferior_registers, store_inferior_registers): Rewrite.
6497
34021503
MK
6498 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
6499 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
6500
134d01f1
DJ
65012004-03-14 Daniel Jacobowitz <drow@mvista.com>
6502
6503 * dwarf2read.c (read_structure_type): Rename from
8718a420 6504 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
6505 Return immediately if die->type is set. Call read_type_die before
6506 dwarf2_add_member_fn.
6507 (process_structure_scope): New function.
6508 (read_enumeration_type, process_enumeration_scope): New functions,
6509 broken out from read_enumeration. Don't create the enumeration
6510 type if it has already been created.
6511 (read_enumeration): Removed.
6512 (process_die): Call read_structure_type, process_structure_scope,
6513 read_enumeration_type, and process_enumeration_scope. Just call
6514 new_symbol for base and subrange types. Add a comment about other
6515 type dies.
6516 (read_type_die): Call read_enumeration_type.
6517 (add_partial_structure, new_symbol): Update comments.
6518
65760afb
SC
65192004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6520
6521 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
6522
10f59415
SC
65232004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6524
6525 * tui/tui-win.h (tui_get_cmd_list): Declare.
6526 * tui/tui-win.c (tui_command): New function.
6527 (tui_get_cmd_list): New function.
6528 (_initialize_tui_win): Moved initialization of tui command in
6529 tui_get_cmd_list.
6530
6531 * tui/tui-data.c (init_content_element): Setup new data members.
6532 (init_win_info): Likewise.
6533 (free_content_elements): Free it.
6534 * tui/tui-data.h (struct tui_data_element): Store the register
6535 content to print.
6536 (struct tui_data_info): Keep the current register group.
6537
6538 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
6539
6540 * tui/tui-regs.h (tui_show_registers): Update prototype.
6541 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
6542 (tui_resize_all): No need to calculate anything for register window.
6543 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
6544 (tui_set_register_element, tui_set_general_regs_content): Remove.
6545 (tui_set_special_regs_content): Remove.
6546 (tui_set_general_and_special_regs_content): Remove.
6547 (tui_set_float_regs_content): Remove.
6548 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
6549 (tui_set_regs_content): Remove.
6550 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
6551 (tui_v_show_registers_command_support): Remove.
6552 (tui_show_registers): Use a reggroup to specify the registers to show.
6553 (tui_show_register_group): New function.
6554 (tui_display_registers_from): Compute the layout of register window
6555 and refresh with new API; be sure to delete old register windows.
6556 (tui_check_register_values): Update to use tui_get_register and
6557 tui_display_data.
6558 (tui_display_register): Just refresh the register window part.
6559 (tui_register_format): Format registers and save in tui_data_element.
6560 (tui_get_register): New to combine tui_reg_value_has_changed and
6561 tui_get_register_raw_value; fix to use the new gdb API.
6562 (tui_show_float_command): Renamed tui_reg_float_command.
6563 (tui_show_general_command): Renamed tui_reg_general_command.
6564 (tui_show_special_command): Renamed tui_reg_system_command.
6565 (_initialize_tui_regs): Remove unused commands.
6566
c3364ea4
MK
65672004-03-13 Mark Kettenis <kettenis@gnu.org>
6568
27d1e716
MK
6569 * NEWS (New native configurations): Mention OpenBSD/amd64.
6570
c3364ea4
MK
6571 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
6572 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
6573 Remove defines.
6574 * config/i386/nm-fbsd64.h: Likewise.
6575 * config/i386/nm-obsd.h: Likewise.
6576 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
6577 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
6578
b2d6d697
KB
65792004-03-12 Kevin Buettner <kevinb@redhat.com>
6580
6581 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
6582 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
6583 New constants.
6584
76e43199
KB
6585 From Richard Sandiford <rsandifo@redhat.com>:
6586 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
6587
34ce532e
KB
65882004-03-12 Kevin Buettner <kevinb@redhat.com>
6589
6590 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
6591 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
6592 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
6593 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
6594 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
6595 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
6596 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
6597 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
6598 definitions from frv-tdep.c to frv-tdep.h.
6599
c4d10515
KB
66002004-03-12 Kevin Buettner <kevinb@redhat.com>
6601
6602 Add shared library support for FR-V FDPIC ABI:
6603 * Makefile.in (solib-frv.o): Add dependencies.
6604 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
6605 New functions.
6606 (frv_push_dummy_call): Add support for FDPIC ABI.
6607 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
6608 for FDPIC ABI.
6609 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
6610 (frv_fdpic_find_canonical_descriptor): Declare.
6611 * solib-frv.c: New file.
6612 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
6613 * config/frv/tm-frv.h (solib.h): Include.
6614
ed1bd989
KB
66152004-03-12 Kevin Buettner <kevinb@redhat.com>
6616
6617 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
6618 (frv-tdep.o): Update dependencies.
6619 * frv-tdep.h: New file.
6620 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
6621 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
6622 constants.
6623 (struct gdbarch_tdep): Add new member ``frv_abi''.
6624 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
6625 functions.
6626 (new_variant): Set ``frv_abi'' field.
6627 (gdb_arch_init): Detect FDPIC executables.
6628
82b38f72
MK
66292004-03-12 Mark Kettenis <kettenis@gnu.org>
6630
6631 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
6632 wrapper.
6633
db1ea9ba
AC
66342004-03-11 Andrew Cagney <cagney@redhat.com>
6635
6636 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
6637
f8766ec1
KB
66382004-03-11 Kevin Buettner <kevinb@redhat.com>
6639
6640 * solist.h (master_so_list): New function.
6641 * solib.c (master_so_list): Likewise.
6642 * solib-svr4.c (enable_break): Iterate over so_list entries
6643 obtained from master list instead of entries obtained directly
6644 via svr4_current_sos().
6645
523f6a27
BE
66462004-03-10 Ben Elliston <bje@gnu.org>
6647
6648 * MAINTAINERS: Update my mail address.
6649
37814c18
KI
66502004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
6651
6652 * remote-m32r-sdi.c: Support hardware watchpoint.
6653
8b9740d8
DJ
66542004-03-09 Daniel Jacobowitz <drow@mvista.com>
6655
6656 * user-regs.c: Update copyright years.
6657 (struct user_regs): Rename to gdb_user_regs.
6658 (append_user_reg, builtin_user_regs, user_regs_init)
6659 (user_reg_add, user_reg_map_name_to_regnum)
6660 (usernum_to_user_reg): Update.
6661
4bb7a0a7
DJ
66622004-03-09 Daniel Jacobowitz <drow@mvista.com>
6663
6664 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
6665 (skip_children): New functions.
6666 (locate_pdi_sibling): Call skip_children.
6667
44e1a9eb
DJ
66682004-03-09 Daniel Jacobowitz <drow@mvista.com>
6669
6670 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
6671 * gdbtypes.c (check_typedef): Update comments.
6672
f3dd6933
DJ
66732004-03-09 Daniel Jacobowitz <drow@mvista.com>
6674
6675 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
6676 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
6677 pointer. Update comment about comp_unit_head.
6678 (struct abbrev_info): Shorten two int flags.
6679 (dwarf_alloc_abbrev): Take a CU argument.
6680 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
6681 each time through the loop. Update cleanup argument.
6682 (psymtab_to_symtab_1): Update cleanup call.
6683 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
6684 abbrev_obstack.
6685 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
6686 Just call obstack_free and clear the pointer.
6687
b40c7d58
DJ
66882004-03-09 Daniel Jacobowitz <drow@mvista.com>
6689
6690 * infrun.c (handle_inferior_event): Remove short-circuit code for
6691 events in a different thread.
6692
333dabeb
DJ
66932004-03-09 Daniel Jacobowitz <drow@mvista.com>
6694
6695 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
6696 print the whole transfer.
6697 (initialize_targets): Update description of "set debug target".
6698
aa17d93e
DJ
66992004-03-09 Daniel Jacobowitz <drow@mvista.com>
6700
6701 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
6702
0b71f08f
NW
67032004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
6704
6705 * MAINTAINERS (write after approval): Add myself.
6706
3930f270
CV
67072004-03-08 Corinna Vinschen <vinschen@redhat.com>
6708
6709 * sh-tdep.c (sh_print_registers_info): Use for loop.
6710 Don't skip multiple registers when a float register is encountered.
6711
a2b4a96c
CV
67122004-03-08 Corinna Vinschen <vinschen@redhat.com>
6713
6714 Fix PR tdep/1291.
6715 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
6716 to official SH documentation.
6717
f15a4bc0
AC
67182004-03-07 Andrew Cagney <cagney@redhat.com>
6719
6720 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
6721 unused function.
6722
9498281f
DJ
67232004-03-07 Daniel Jacobowitz <drow@mvista.com>
6724
6725 * arm-tdep.c (thumb_get_next_pc): Handle BX.
6726 (arm_get_next_pc): Handle BX and BLX.
6727
449e1137
AC
67282004-03-07 Andrew Cagney <cagney@redhat.com>
6729
eded0a31
AC
6730 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
6731 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
6732 HPPA_SP_REGNUM.
6733 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
6734 (hppa_target_read_fp): Delete.
6735 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
6736 register_virtual_size, max_register_raw_size,
6737 max_register_virtual_size, register_byte, register_size,
6738 target_read_fp, fp_regnum, and register_bytes. Set register_type
6739 instead of register_virtual_type.
6740 (hppa32_register_type, hppa64_register_type): Replace
6741 hppa32_register_virtual_type and hppa64_register_virtual_type.
6742 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
6743 (HPPA_FP_REGNUM): Define.
6744
f5f907e2
AC
6745 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
6746
69b4bbe4
AC
6747 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
6748 (pa_do_registers_info): Delete.
6749 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 6750 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 6751 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 6752
78161e48
AC
6753 * infcall.c (legacy_push_dummy_code): Delete #ifdef
6754 GDB_TARGET_IS_HPPA code.
6755 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 6756 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
6757 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
6758 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
6759 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
6760 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
6761 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 6762 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
6763 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
6764 (hppa_frameless_function_invocation, hppa64_store_return_value)
6765 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 6766 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 6767 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 6768 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
6769 (find_proc_framesize, deposit_21, restore_pc_queue)
6770 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 6771 (rp_saved, pc_in_linker_stub): Delete.
78161e48 6772
782eae8b
AC
6773 Unconditionally enable 64-bit frame and ABI code.
6774 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
6775 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
6776 push_dummy_frame, fix_call_dummy, push_arguments,
6777 call_dummy_location, extract_return_value, use_struct_convention,
6778 store_return_value, store_struct_return, saved_pc_after_call,
6779 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
6780 frame_chain, frame_chain_valid, frameless_function_invocation,
6781 frame_saved_pc, and pop_frame.
78161e48 6782
449e1137
AC
6783 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
6784 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
6785 (hppa_gdbarch_init): Do not set PC_REGNUM.
6786
12507572
MK
67872004-03-06 Mark Kettenis <kettenis@gnu.org>
6788
6789 * config/alpha/tm-fbsd.h: Remove file.
6790 * config/alpha/fbsd.mt: Tweak comment.
6791 (TM_FILE): Set to tm-alpha.h.
6792
c107cc1b
AC
67932004-03-05 Andrew Cagney <cagney@redhat.com>
6794
6795 * infrun.c (step_over_function): When non-legacy code, and no
6796 step_frame_id, use the unwinder to get the caller's frame ID.
6797
f2e7c15d
MK
67982004-03-05 Mark Kettenis <kettenis@gnu.org>
6799
8b0c3633
MK
6800 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
6801 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
6802 bfd_arch_unknown. Adjust comment.
6803
f2e7c15d
MK
6804 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
6805 * i386obsd-tdep.c: Correct spelling in comment.
6806 * i386nbsd-tdep.c: Correct spelling in comment.
6807 * sparc-tdep.c: Correct spelling in comments.
6808
1198ecbe
DC
68092004-03-05 David Carlton <carlton@kealia.com>
6810
6811 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
6812 bug.
6813
9eb42ed1
MK
68142004-03-05 Mark Kettenis <kettenis@gnu.org>
6815
6816 * sparc-tdep.c: Fix typo in comment.
6817
52b5e991
JB
68182004-03-04 J. Brobecker <brobecker@gnat.com>
6819
6820 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
6821
d8151005
DJ
68222004-03-04 Daniel Jacobowitz <drow@mvista.com>
6823
6824 * dwarf2read.c: Add comment describing memory lifetimes.
6825 (struct dwarf2_pinfo): Update comment.
6826 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
6827 (read_enumeration, new_symbol): Don't use obsavestring.
6828
cbeae229
MK
68292004-03-04 Mark Kettenis <kettenis@gnu.org>
6830
722d18c2
MK
6831 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
6832 instead of amd64_fill_fxsave.
6833 * amd64bsd-nat.c (store_inferior_registers): Likewise.
6834 * amd64fbsd-nat.c (fill_fpregset): Likewise.
6835
cbeae229
MK
6836 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
6837 Reorganize code a bit.
6838
b4206d25
OF
68392004-03-04 Orjan Friberg <orjanf@axis.com>
6840
6841 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
6842 when the frame pointer is pushed. Don't set the frame pointer's
6843 address on the stack unless it's actually located there.
b4206d25
OF
6844 Set the SRP's address on the stack correctly when the PC is still in
6845 the prologue.
6846 (cris_return_value): New function.
6847 (cris_gdbarch_init): Clear deprecated store_return_value,
6848 extract_return_value.
6849
49b0b195
JB
68502004-03-02 Jim Blandy <jimb@redhat.com>
6851
6852 * stabsread.c (reg_value_complaint): The maximum register number
6853 is one less than the number of registers.
6854
e9ff708b
AC
68552004-03-02 Andrew Cagney <cagney@redhat.com>
6856
6857 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
6858 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
6859 trailing comma and redundant assignment of I386_ST0_REGNUM.
6860 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
6861 32-bit segment registers.
6862
d4715e41
AC
68632004-03-01 Andrew Cagney <cagney@redhat.com>
6864
6865 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
6866 use frame_relative_level and get_next_frame.
6867
3ce2bf18
AC
68682004-02-29 Andrew Cagney <cagney@redhat.com>
6869
6870 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
6871 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
6872 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
6873 Delete macro.
6874
2da6aac3
DJ
68752004-02-29 Daniel Jacobowitz <drow@mvista.com>
6876
6877 * inflow.c (terminal_inferior): Don't give up the terminal if we
6878 previously couldn't get the inferior's terminal state.
6879
6ba34a8d
DJ
68802004-02-29 Daniel Jacobowitz <drow@mvista.com>
6881
6882 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
6883 PC_REGNUM.
6884
faae5abe
AC
68852004-02-28 Andrew Cagney <cagney@redhat.com>
6886
6887 * NEWS: Refer to GDB 6.1.
6888 * README: Refer to GDB 6.1.
6889 * PROBLEMS: Refer to GDB 6.1.
6890
2227a3c5
DJ
68912004-02-28 Daniel Jacobowitz <drow@mvista.com>
6892
6893 * thread-db.c (disable_thread_signals): Remove unused function.
6894
80571bff
MK
68952004-02-28 Mark Kettenis <kettenis@gnu.org>
6896
041bd74b
MK
6897 * amd64-nat.c: Include "gdb_string.h".
6898 (amd64_collect_native_gregset): Zero-extend the 32-bit
6899 general-purpose registers and %eip.
6900
3c017e40
MK
6901 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
6902 * amd64-tdep.c (amd64_collect_fxsave): New function.
6903 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
6904
80571bff
MK
6905 * i387-tdep.h: Update copyright year.
6906 (i387_collect_fxsave): New prototype.
6907 * i387-tdep.c: Update copyright year.
6908 (i387_collect_fxsave): New function containing most of the code
6909 from i387_fill_fxsave.
6910 (i387_fill_fxsave): Call i387_collect_fxsave.
6911
50d71875
AC
69122004-02-28 Andrew Cagney <cagney@redhat.com>
6913
6914 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
6915 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
6916
4a28816e
MK
69172004-02-28 Mark Kettenis <kettenis@gnu.org>
6918
6919 * amd64-tdep.c (amd64_frame_cache): Fix comment.
6920
dbda9972
AC
69212004-02-28 Andrew Cagney <cagney@redhat.com>
6922
6923 * utils.c: Use "", instead of <>, to include readline.
6924 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
6925 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
6926 * source.c, solib.c, exec.c, event-top.c: Ditto.
6927 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
6928 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
6929 * Makefile.in: Update all dependencies.
6930 (readline_tilde_h, readline_history_h): Define.
6931 (readline_headers): Delete.
6932
83277a99
MK
69332004-02-28 Mark Kettenis <kettenis@gnu.org>
6934
91ae4303
MK
6935 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
6936 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
6937 "config/i386/tm-lx64.h".
6938
83277a99
MK
6939 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
6940 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
6941 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
6942
6e1d7d6c
AC
69432004-02-28 Andrew Cagney <cagney@redhat.com>
6944
ecc9ac84
AC
6945 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
6946
6e1d7d6c
AC
6947 * breakpoint.c (_initialize_breakpoint): Use
6948 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
6949 Add help to show command.
6950
9671aeef
MK
69512004-02-28 Mark Kettenis <kettenis@gnu.org>
6952
7fa2737c
MK
6953 * i386-nat.c: Reformat to be closer to coding standards.
6954 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
6955 `retval'. Make variables `align' and `size' local to while-loop.
6956 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
6957 (_initialize_i386_nat): New prototype.
6958
9671aeef
MK
6959 * tui/tui.c: Include <readline/readline.h> instead of
6960 "readline/readline.h". Include it after <term.h> and
6961 "gdb_curses.h".
6962
fca7aa43
AC
69632004-02-27 Andrew Cagney <cagney@redhat.com>
6964
412275d5
AC
6965 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
6966 the new frame unwind code.
6967 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
6968 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
6969 PCOQ_HEAD_REGNUM.
6970
fca7aa43
AC
6971 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
6972 "return_value" and "push_dummy_call".
6973 (hppa32_use_struct_convention): Delete unused function.
6974 (hppa32_store_return_value): Delete unused function.
6975 (hppa32_extract_return_value): Delete unused function.
6976 (hppa32_stack_align): Delete function.
6977
e6a8a7d2
EZ
69782004-02-27 Eli Zaretskii <eliz@elta.co.il>
6979
6980 * coffread.c (enter_linenos): Don't let rawptr reference memory
6981 outside linetab[]'s limits.
6982
1797a8f6
AC
69832004-02-27 Andrew Cagney <cagney@redhat.com>
6984
6985 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
6986 inferior stack space - the stack needs to grow upwards.
6987 (hppa32_frame_align): New function.
6988 (hppa64_frame_align): Replace hppa_frame_align.
6989 (hppa_gdbarch_init): Update.
6990
2e4b5889
OF
69912004-02-26 Orjan Friberg <orjanf@axis.com>
6992
6993 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
6994 (dwarf2-frame.h): Include.
6995 (enum cris_regnums): New enum CRIS_FP_REGNUM.
6996 Remove static variables related to ABI setting.
6997 (struct gdbarch_tdep): Remove cris_abi member.
6998 (struct frame_extra_info): Remove.
6999 (cris_unwind_cache, stack_item): New structs.
7000 (cris_frame_unwind, cris_frame_base): New variables.
7001 (push_stack_item, pop_stack_item)
7002 (cris_frame_unwind_cache, cris_frame_this_id)
7003 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7004 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7005 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7006 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7007 (cris_reg_struct_has_addr): New functions.
7008 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7009 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7010 (cris_store_struct_return, cris_frameless_function_invocation)
7011 (cris_pop_frame, cris_skip_prologue_main)
7012 (cris_abi_original_store_return_value)
7013 (cris_abi_v2_store_return_value)
7014 (cris_abi_original_extract_return_value)
7015 (cris_abi_v2_extract_return_value)
7016 (cris_abi_original_reg_struct_has_addr)
7017 (cris_abi_v2_reg_struct_has_addr)
7018 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7019 (cris_push_return_address, cris_abi_update): Remove.
7020 (_initialize_cris_tdep): Remove ABI command.
7021 (cris_dump_tdep): Ditto.
8718a420 7022 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7023 Set store_return_value, extract_return_value, push_dummy_code,
7024 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7025 frame_unwind_append_sniffer, frame_base_set_default.
7026 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7027 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7028 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7029 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7030 init_extra_frame_info, frameless_function_invocation, frame_chain,
7031 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7032 dummy_write_sp.
8718a420 7033
6b9acc27
JJ
70342004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7035
7036 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7037 * valprint.c (print_hex_chars): Change from static to external.
7038 (print_char_chars): New function.
7039 * printcmd.c (print_scalar_formatted): For integer and enum types
7040 that are longer than LONGEST, perform processing via appropriate
7041 print_*_chars routines.
7042
a431654a
AC
70432004-02-26 Andrew Cagney <cagney@redhat.com>
7044
7045 * Makefile.in: Update dependencies.
7046 Changes from Ulrich Weigand,
7047 * s390-tdep.c: Include "dwarf2-frame.h".
7048 (s390_dwarf2_frame_init_reg): New function.
7049 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7050 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7051
fa8d40ab
JJ
70522004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7053
7054 * breakpoint.c (pending_break_support): New setting variable.
7055 (break_command_1): Account for pending_break_support setting
7056 when creating pending breakpoints.
7057 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7058 (_initialize_breakpoint): Add "set breakpoint pending" and
7059 "show breakpoint pending" commands.
7060
0dcd613f
AC
70612004-02-26 Andrew Cagney <cagney@redhat.com>
7062
7063 Fix PR i18n/1570.
7064 * charset.c (backslashable, backslashed, represented): Remove 'e'
7065 from list of escaped characters, not part of ISO-C.
7066
479272a3
JB
70672004-02-25 J. Brobecker <brobecker@gnat.com>
7068
7069 From Peter Schauer <schauer@pdf.de>:
7070 * tui/tui.c: Move system header includes after local includes.
7071 Fixes a build failure on solaris systems.
7072
7613d933
JB
70732004-02-25 J. Brobecker <brobecker@gnat.com>
7074
7075 * configure.in: Refine the previous change.
7076 * configure: Regenerate.
7077
9c1488cb
MK
70782004-02-25 Mark Kettenis <kettenis@gnu.org>
7079
7080 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7081 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7082 "amd64-tdep.h" instead of "x86-64-tdep.h".
7083 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7084 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7085 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7086 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7087 and "x86-64-tdep.c".
7088 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7089 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7090 and "x86-64-tdep.c".
7091 * amd64bsd-nat.c: Update copyright year.
7092 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7093 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7094 "x86-64-tdep.h".
7095 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7096 "x86-64-tdep.h".
7097 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7098 "x86-64-tdep.h".
7099 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7100 "x86-64-tdep.h".
7101 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7102 "x86-64-tdep.h".
7103 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7104 "x86-64-tdep.h".
8718a420 7105 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
7106 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7107 * Makefile.in (amd64_linux_tdep_h): Renamed from
7108 x86_64_linux_tdep_h.
7109 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7110 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7111 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7112 (amd64obsd-tdep.o): Update dependencies.
7113 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7114 dependencies.
7115 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7116 dependencies.
7117 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7118 amd64-linux-nat.c amd64-linux-tdep.c.
7119 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7120 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7121 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7122 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7123 amd64-tdep.o and amd64-linux-tdep.o.
7124 (TM_FILE): Set to tm-linux64.h.
7125 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7126 (NAT_FILE): Set to nm-linux64.h.
7127 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7128 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7129 amd64-tdep.o.
7130 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7131 amd64-tdep.o.
7132 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7133 amd64-tdep.o.
7134
4b8dad4a
RM
71352004-02-25 Roland McGrath <roland@redhat.com>
7136
7137 * remote.c (remote_protocol_qPart_auxv): New variable.
7138 (init_all_packet_configs): Initialize it.
7139 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7140 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7141 (show_remote_cmd): Call it.
7142 (_initialize_remote): Initialize commands.
7143 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7144 service TARGET_OBJECT_AUXV requests.
7145
66745969
JB
71462004-02-25 J. Brobecker <brobecker@gnat.com>
7147
7148 * configure.in: Make sure that the wborder function is available.
7149 Otherwise, search for it in the cur_colr library.
7150 * configure: Regenerate.
7151
79508e1e
AC
71522004-02-25 Andrew Cagney <cagney@redhat.com>
7153
7154 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7155
571ee600
MK
71562004-02-25 Mark Kettenis <kettenis@gnu.org>
7157
7158 * config/i386/tm-x86-64linux.h: Tweak comments.
7159
2b1b322f 71602004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
7161
7162 * MAINTAINERS: Add self to write-after-approval list.
7163
4d2acc65
AC
71642004-02-25 Andrew Cagney <cagney@redhat.com>
7165
4b8dad4a 7166 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
7167 * cli/cli-script.c (execute_control_command): Unconditionally
7168 install a cleanup. Default "ret" to "invalid_control". Use
7169 "break" instead of "return" to escape from the switch.
7170
4cfcaf21
JB
71712004-02-24 J. Brobecker <brobecker@gnat.com>
7172
7173 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7174 with the lines macro defined in term.h on AiX.
7175 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7176 a collision with the label_width macro defined in term.h on AiX.
7177
54a5c8d8
KB
71782004-02-23 David Mosberger <davidm@hpl.hp.com>
7179
7180 Committed by Kevin Buettner <kevinb@redhat.com>.
7181
7182 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7183 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7184 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7185 instead of ia64_write_pc().
7186 * ia64-linux-tdep.c (regcache.h): Include.
7187 (ia64_linux_write_pc): New function.
4b8dad4a 7188
8a1dac83
RM
71892004-02-23 Roland McGrath <roland@redhat.com>
7190
7191 * auxv.c (info_auxv_command): Fix typos in error messages.
7192
90f90721
MK
71932004-02-23 Mark Kettenis <kettenis@gnu.org>
7194
8a1dac83 7195 * x86-64-tdep.h: Tweak comment.
90f90721
MK
7196 (enum amd64_regnum): New.
7197 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7198 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7199 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7200 (X86_64_XMM1_REGNUM): Removed.
7201 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7202 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7203 prototypes for renamed functions.
7204 * x86-64-tdep.c: Fix typo.
7205 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7206 register numbers.
7207 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7208 Use constants from `enum amd64_regnum' for register numbers.
7209 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7210 (amd64_analyze_prologue, amd64_frame_cache,
7211 amd64_sigtramp_frame_cache): Use constants from `enum
7212 amd64_regnum' for register numbers.
7213 (amd64_supply_fpregset): Adjust for renamed functions.
7214 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7215 `enum amd64_regnum' for register numbers.
7216 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7217 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7218 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7219 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7220 (amd64_linux_fill_gregset): Adjust for renamed macros.
7221 (fetch_core_registers): Adjust for renamed functions.
7222 (amd64_linux_init_abi): Adjust for renamed functions.
7223 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7224 renamed functions.
7225 * amd64-nat.c: Adjust for renamed macros.
7226 * amd64bsd-nat.c (fetch_inferior_registers)
7227 (store_inferior_registers): Use constants from `enum amd64_regnum'
7228 for register numbers. Adjust for renamed variables.
7229 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7230 renamed variables.
7231 (_initialize_amd64fbsd_nat): Use constants from `enum
7232 amd64_regnum' for register numbers.
7233 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7234 `enum amd64_regnum' for register numbers.
7235 (amd64fbsd_init_abi): Adjust for renamed functions.
7236 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7237 `enum amd64_regnum' for register numbers.
7238 (amd64nbsd_init_abi): Adjust for renamed functions.
7239 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7240 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7241 `enum amd64_regnum' for register numbers.
7242 (amd64obsd_init_abi): Adjust for renamed functions.
7243 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7244
d5479188
JJ
72452004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7246
7247 * breakpoint.c (print_one_breakpoint): Do not output spaces
7248 after printing <PENDING> for a pending breakpoint.
7249
81cb7cc9
JJ
72502004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7251
7252 * printcmd.c (print_scalar_formatted): Initialize val_long
7253 to remove compiler warning message.
7254
cbdeadca
JJ
72552004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7256
7257 * defs.h (nquery, yquery): New prototypes.
7258 * breakpoint.c (break_command_1): Use new nquery interface.
7259 * utils.c (defaulted_query, nquery, yquery): New functions.
7260
da6bab63
AC
72612004-02-23 Andrew Cagney <cagney@redhat.com>
7262
2f690297
AC
7263 * hppa-tdep.c (hppa_frame_align): New function.
7264 (hppa32_push_dummy_call): New function.
7265 (hppa64_push_dummy_call): New function.
7266 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7267 disabled.
8a1dac83 7268
da6bab63
AC
7269 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7270 FIX_CALL_DUMMY when push_dummy_call is available.
7271 (call_function_by_hand, push_dummy_code): Ditto.
7272
abf9b42d
AC
72732004-02-22 Andrew Cagney <cagney@redhat.com>
7274
7275 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7276 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7277 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7278 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7279 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7280 call_dummy_location to ON_STACK.
7281
10fc94a4
MK
72822004-02-22 Mark Kettenis <kettenis@gnu.org>
7283
51433e4b
MK
7284 * x86-64-linux-tdep.c: Tweak comment.
7285 (amd64_linux_supply_gregset): Renamed from
7286 x86_64_linux_supply_gresget.
7287 (amd64_linux_fill_gregset): Renamed from
7288 x86_64_linux_fill_gregset.
7289 (fetch_core_registers): Adjust for renamed functions.
7290 (amd64_core_fns): Renamed from x86_64_core_fns.
7291 (amd64_linux_sigtramp_start): Renamed from
7292 x86_64_linux_sigtramp_start.
7293 (amd64_linux_pc_in_sigtramp): Renamed from
7294 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7295 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7296 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7297 (amd64_linux_sigcontext_addr): Renamed from
7298 x86_64_linux_sigcontext_addr.
7299 (amd64_linux_sc_reg_offset): Renamed from
7300 x86_64_linux_sc_reg_offset.
7301 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7302 Adjust for renamed functions and variables.
7303 (_initialize_amd64_linux_tdep): Renamed from
7304 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7305 variables.
7306 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7307 Adjust for renamed functions.
7308
430eaf2e
MK
7309 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7310 from x86_64_linux_gregset64_reg_offset.
7311 (amd64_linux_gregset32_reg_offset): Rename from
7312 x86_64_linux_gregset64_reg_offset.
7313 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7314 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7315 (amd64_linux_dr_set_control): Renamed from
7316 x86_64_linux_dr_set_control. Adjust for renamed functions.
7317 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7318 Adjust for renamed functions.
7319 (amd64_linux_dr_reset_addr): Renamed from
7320 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7321 (amd64_linux_dr_get_status): Renamed from
7322 x86_64_linux_dr_get_status. Adjust for renamed functions.
7323 (_initialize_amd64_linux_nat): Renamed from
7324 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7325 functions.
7326 * config/i386/nm-x86-64linux.h: Update copyright year.
7327 Adjust for renamed functions.
7328
10fc94a4
MK
7329 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7330 amd64fbsd_sigtramp_start.
7331 (amd64fbsd_sigtramp_end_addr): Renamed from
7332 amd64fbsd_sigtramp_end.
7333 (amd64fbsd_init_abi): Adjust for renamed variables.
7334 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7335 variables.
7336 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7337 amd64fbsd_sigtramp_start.
7338 (amd64fbsd_sigtramp_end_addr): Renamed from
7339 amd64fbsd_sigtramp_end.
7340
343af405
AC
73412004-02-22 Andrew Cagney <cagney@redhat.com>
7342
537987fc
AC
7343 * hppa-tdep.c (hppa32_return_value): New function.
7344 (hppa64_return_value): New function.
7345 (hppa_gdbarch_init): Set return_value; keep disabled.
7346
fad850b2
AC
7347 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7348 struct-return and inferior function call methods.
7349
26d08f08
AC
7350 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7351 "frame-base.h".
7352 (struct hppa_frame_cache): Define.
7353 (hppa_frame_cache, hppa_frame_this_id): New functions.
7354 (hppa_frame_prev_register): New function.
7355 (hppa_frame_unwind, hppa_frame_base): New variables.
7356 (hppa_frame_unwind_sniffer): New function.
7357 (hppa_frame_base_address, hppa_unwind_pc): New function.
7358 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7359 sniffer, and frame base sniffer; keep disabled.
7360 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7361 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7362
e7d7bd65
AC
7363 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7364 to predicates for "seriously old code".
7365
e963316f
AC
7366 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7367 runtime if(0).
7368
56132691
AC
7369 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7370 unsigned.
7371 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 7372
343af405
AC
7373 * config/pa/tm-hppa.h: Update copyright.
7374 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7375 (deprecated_init_frame_pc_default): Delete declaration.
7376 (hppa_frame_init_saved_regs): Delete declaration.
7377 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7378 * hppa-tdep.c: Include "arch-utils.h".
7379 (hppa_gdbarch_init): Set deprecated init_frame_pc
7380 and deprecated frame_init_saved_regs.
7381 (hppa_frame_init_saved_regs): Make static.
7382
f5859b4d
MK
73832004-02-22 Mark Kettenis <kettenis@gnu.org>
7384
86f6f8e7 7385 Remove old 386BSD support.
cf7c5c23 7386 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
7387 * configure.host: Remove i[34567]86-*-bsd*.
7388 * configure.tgt: Remove i[34567]86-*-bsd*.
7389 * i386b-nat.c: Removed.
7390 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
7391 (i386b-nat.o): Remove dependencies.
7392
86f6f8e7
MK
7393 * config/i386/i386bsd.mh: Removed.
7394 * config/i386/i386bsd.mt: Removed.
7395 * config/i386/nm-i386bsd.h: Removed.
7396 * config/i386/tm-i386bsd.h: Removed.
7397 * config/i386/xm-i386bsd.h: Removed.
7398
971218cd
MK
7399 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
7400
7e654c37
MK
7401 * amd64fbsd-tdep.c: Include "solib-svr4.h".
7402 (amd64fbsd_init_abi): Set link map offsets.
7403 * amd64nbsd-tdep.c: Include "slib-svr4.h".
7404 (amd64nbsd_init_abi): Set link map offsets.
7405 * amd64obsd-tdep.c: Include "solib-svr4.h".
7406 (amd64obsd_init_abi): Set link map offsets.
7407 * i386fbsd-tdep.c: Include "solib-svr4.h".
7408 (i386fbsd_init_abi): Set link map offsets.
7409 * i386nbsd-tdep.c: Include "solib-svr4.h".
7410 (i386nbsdelf_init_abi): Set link map offsets.
7411 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
7412 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
7413 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
7414 solib-legacy.o and core-aout.o. Reformat.
7415 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
7416 solib-svr4.o, solib-legacy.o. Reformat.
7417 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
7418 * config/i386/nbsdelf.mh: Reformat.
7419 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
7420 solib-svr4.o, solib-legacy.o and corelow.o.
7421 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
7422 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
7423 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
7424 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7425 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7426 (TM_FILE): Set to tm-fbsd.h.
7427 * config/i386/nbsd.mt (TDEPFILES): Reformat.
7428 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
7429 solib-svr4.o.
7430 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
7431 solib-svr4.o.
7432 (TM_FILE): Set to nm-nbsd.h.
7433 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
7434 Simplify shared library support. Don't include "elf/common.h".
7435 (SVR4_SHARED_LIBS): Don't define.
7436 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
7437 "solib.h".
7438 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
7439 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
7440 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
7441 Don't include "i386/tm-i386.h". Include "solib.h".
7442 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
7443 Don't include "i386/tm-i386.h".
7444 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
7445 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
7446 Include "i386/xm-i386.h".
7447 (HOST_LONG_DOUBLE_FORMAT): Remove.
7448
5d93ae8c
MK
7449 Fix OpenBSD/i386 sigtramp recognition.
7450 * i386-tdep.h: Update copyright year.
7451 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
7452 (i386bsd_sigtramp_end): New prototypes.
7453 (i386fbsd_sigtramp_start_addr): Renamed from
7454 i386fbsd_sigtramp_start.
7455 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7456 (i386obsd_sigtramp_start_addr): Renamed from
7457 i386obsd_sigtramp_start.
7458 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7459 * i386bsd-tdep.c: Update copyright year.
7460 (i386bsd_pc_in_sigtramp): Make public.
7461 * i386fbsd-nat.c: Update copyright year.
7462 (_initialize_i386fbsd_nat): Adjust for renamed variables.
7463 * i386fbsd-tdep.c: Update copyright year.
7464 (i386fbsd_sigtramp_start_addr): Renamed from
7465 i386fbsd_sigtramp_start.
7466 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7467 (i386fbsdaout_init_abi): Adjust for renamed variables.
7468 * i386obsd-nat.c: Update copyright year.
7469 (_initialize_i386obsd_nat): Adjust for renamed variables.
7470 * i386obsd-tdep.c: Include "target.h".
7471 (i386obsd_page_size): New variable.
7472 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
7473 (i386obsd_sigtramp_end): New functions.
7474 (i386obsd_sigtramp_start_addr): Renamed from
7475 i386obsd_sigtramp_start.
7476 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7477 (i386obsd_init_abi): Adjust for renamed variables. Set
7478 pc_in_sigtramp, sigtramp_start and sigtramp_end.
7479 * Makefile.in (i386obsd-tdep.o): Update dependencies.
7480
84d04465
MK
7481 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
7482 trampoline change in OpenBSD kernel.
7483
b053aceb
MK
7484 * amd64-nat.c: Update copyright year.
7485 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
7486 architecture from REGCACHE.
7487
f5859b4d
MK
7488 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
7489 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
7490
e4bbbda8
MK
74912004-02-21 Mark Kettenis <kettenis@gnu.org>
7492
ba361932
MK
7493 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
7494 i[34567]86-*-openbsd3.[0-3].
7495 * config/i386/obsdaout.mh: New file.
7496
d3e48264
MK
7497 * config/i386/obsd.mh (MH_FLAGS): Remove.
7498
60a6eeb6
MK
7499 Fix PR build/1549.
7500 * i386obsd-tdep.c: Update copyright years. Include
7501 "solib-svr4.h".
7502 (i386obsd_init_abi): Don't set regset_from_core_section here.
7503 (i386obsd_aout_init_abi): New function. Set
7504 regset_from_core_section here.
7505 (i386obsd_elf_init_abi): New function.
7506 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
7507 * Makefile.in (i386obsd-tdep.o): Update dependecies.
7508 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7509 (TM_FILE): Set to tm-nbsd.h.
7510
7511 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
7512 solib-sunos.o.
7513
e4bbbda8
MK
7514 * solib-svr4.h: Update copyright year.
7515 (svr4_ilp32_fetch_link_map_offsets)
7516 (svr4_lp64_fetch_link_map_offsets): New prototype.
7517 * solib-svr4.c: Update copyright year.
7518 (svr4_ilp32_fetch_link_map_offsets)
7519 (svr4_lp64_fetch_link_map_offsets): New function.
7520
f6fe98ef
DJ
75212004-02-20 Daniel Jacobowitz <drow@mvista.com>
7522
7523 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
7524 to the partial symbol table.
7525
589ca796
JB
75262004-02-20 J. brobecker <brobecker@gnat.com>
7527
7528 * PROBLEMS: Add description of problem documented under gdb/1560.
7529
2031c21a
MK
75302004-02-20 Mark Kettenis <kettenis@gnu.org>
7531
30b344b1
MK
7532 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
7533 comments.
7534 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
7535 functions.
7536 (amd64obsd_init_abi): Reorder initializations. Use
7537 amd64obsd_r_reg_offset to initialize the general-purpose register
7538 set details. Set regset_from_core_section.
7539 (_initialize_amd64obsd_tdep): Rename from
7540 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
7541 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
7542 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
7543
2031c21a
MK
7544 * NEWS (New native configurations): Mention OpenBSD/alpha.
7545 * configure.tgt: Add alpha*-*-openbsd*.
7546 * configure.host: Add alpha*-*-openbsd*.
7547 * alphanbsd-tdep.c: Update copyright year.
7548 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
7549
42471775
AC
75502004-02-20 Andrew Cagney <cagney@redhat.com>
7551
7552 Fix PR tdep/1372.
7553 * configure.tgt: Delete target "none-*-*".
7554 * configure.host: Delete host "none-*-*".
7555 * config/none/none.mh: Delete file.
7556 * config/none/none.mt: Delete file.
7557 * config/none/xm-none.h: Delete file.
7558 * config/none/tm-none.h: Delete file.
7559 * config/none/nm-none.h: Delete file.
7560
960ccd7d
FF
75612004-02-19 Fred Fish <fnf@redhat.com>
7562
7563 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
7564 cache->uses_fp prior to setting it.
7565
5f883edd
FF
75662004-02-19 Fred Fish <fnf@redhat.com>
7567
7568 Fix for PR breakpoint/1558.
7569 * sh-tdep.c (IS_JSR): New macro.
7570 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
7571
f98c22d5
JB
75722004-02-19 Jim Blandy <jimb@redhat.com>
7573
7574 * findvar.c (value_from_register): Doc fix.
7575
95051d27
JJ
75762004-02-19 Jeff Johnston <jjohnstn@redhat.com>
7577
7578 * printcmd.c (print_scalar_formatted): Do not check for sizeof
7579 type being greater than sizeof of host's LONGEST. Always use
7580 unpack_long() unless format 'f' chosen.
7581
ccefbec3
EZ
75822004-02-19 Joel Brobecker <brobecker@gnat.com>
7583
7584 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 7585
ccefbec3
EZ
7586 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
7587 contains a symbol wich is the best, non-exact match for the given
7588 pc. Update comments.
7589
75902004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 7591
2ede629f
EZ
7592 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
7593 macro, which was part of the now removed Mach 3 port.
7594 * utils.c (request_quit): Ditto.
7595
567ee972
MK
75962004-02-18 Mark Kettenis <kettenis@gnu.org>
7597
7598 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
7599 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
7600
50cca7bb
MK
76012004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7602
7603 Committed by Mark Kettenis <kettenis@gnu.org>.
7604
7605 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
7606 Define.
7607
226361c4
AC
76082004-02-18 Andrew Cagney <cagney@redhat.com>
7609
7610 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
7611 CONFIG_INSTALL and CONFIG_UNINSTALL.
7612 * configure: Re-generate.
7613 * interps.h (INTERP_TUI): Define.
7614 * Makefile.in: Update dependencies.
7615 (TUI): New macro.
7616 (tui-main.o): Specify dependencies.
7617 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
7618 * tui/tui-main.c: New file.
7619
49cfa46f
MK
76202004-02-18 Mark Kettenis <kettenis@gnu.org>
7621
e2879ccb
MK
7622 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
7623 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
7624 dependencies.
7625 * configure.host: Add x86_64-*-openbsd*.
7626 * configure.tgt: Add x86_64-*-openbsd*.
7627 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
7628
c43f4bec
MK
7629 * tui/tui.c: Don't include <malloc.h>.
7630
09ae75b6
MK
7631 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
7632 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
7633 amd64nbsd-tdep.c.
7634
49cfa46f 7635 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 7636 static. Remove extraneous whitespace.
49cfa46f
MK
7637 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
7638 static.
7639
05957fdb
JB
76402004-02-17 Jim Blandy <jimb@redhat.com>
7641
7642 * findvar.c (value_from_register): Doc fix.
7643
d0f54f9d
JB
76442004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7645
7646 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 7647
8a1dac83 7648 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
7649 CORE_ADDR as type for selectors. Correct types for GNU run time
7650 message lookup function to use double indirection.
7651 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
7652 * objc-lang.h (lookup_child_selector): Adapt prototype.
7653
9cbd5950
JB
7654 * s390-nat.c (SUBOFF): New macro.
7655 (supply_gregset, fill_gregset): Use it to handle debugging
7656 of 32-bit exectuables running under a 64-bit kernel.
7657 * s390-tdep.c: Include "solib-svr4.h".
7658 (s390_svr4_fetch_link_map_offset): New function.
7659 (s390x_svr_fetch_link_map_offset): Likewise.
7660 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
7661 * Makefile.in (s390-tdep.o): Update dependencies.
7662
a8c99f38
JB
7663 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
7664 "frame-unwind.h".
7665 (s390_readinstruction): Reformat. Use read_memory_nobpt.
7666 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
7667 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
7668 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
7669 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
7670 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 7671 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
7672 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
7673 (struct frame_extra_info): Remove.
7674 (s390_memset_extra_info): Remove.
f73b1eff
JB
7675 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
7676 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
7677 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
7678 (is_rse): Renamed to ...
7679 (is_rsy): ... this. Support long displacements.
7680 (is_rxe): Renamed to ...
7681 (is_rxy): ... this. Support long displacements.
7682 (compute_x_addr): Support long displacements.
7683 (struct s390_prologue_data): New data type.
7684 (s390_on_stack): Change API to use struct s390_prologue_data.
7685 (s390_store): Reimplement.
7686 (s390_load): New function.
7687 (s390_get_signal_frame_info): Remove.
7688 (s390_get_frame_info): Remove, replace by ...
7689 (s390_analyze_prolog): ... this new function.
7690 (s390_check_function_end): Remove.
7691 (s390_function_start): Remove.
7692 (s390_frameless_function_invokation): Remove.
7693 (s390_is_sigreturn): Remove.
7694 (s390_init_frame_pc_first): Remove.
7695 (s390_init_frame_extra_info): Remove.
7696 (s390_frame_init_saved_regs): Remove.
7697 (s390_frame_saved_pc_nofix): Remove.
7698 (s390_frame_saved_pc): Remove.
7699 (s390_frame_chain): Remove.
7700 (s390_fp_regnum, s390_read_fp): Remove.
7701 (s390_pop_frame_regular, s390_pop_frame): Remove.
7702 (s390_saved_pc_after_call): Remove.
7703 (s390_skip_prologue): Reimplement.
7704 (s390_in_function_epilogue_p): Support long displacements.
7705 (struct s390_unwind_cache): New data structure.
7706 (s390_frame_unwind_cache): New function.
7707 (s390_prologue_frame_unwind_cache): Likewise.
7708 (s390_backchain_frame_unwind_cache): Likewise.
7709 (s390_frame_this_id, s390_frame_prev_register): Likewise.
7710 (s390_frame_unwind): Define.
7711 (s390_frame_sniffer): New function.
7712 (struct s390_pltstub_unwind_cache): New data structure.
7713 (s390_pltstub_frame_unwind_cache): New function.
7714 (s390_pltstub_frame_this_id): Likewise.
7715 (s390_pltstub_frame_prev_register): Likewise.
7716 (s390_pltstub_frame_unwind): Define.
7717 (s390_pltstub_frame_sniffer): New function.
7718 (struct s390_sigtramp_unwind_cache): New data structure.
7719 (s390_sigtramp_frame_unwind_cache): New function.
7720 (s390_sigtramp_frame_this_id): Likewise.
7721 (s390_sigtramp_frame_prev_register): Likewise.
7722 (s390_sigtramp_frame_unwind): Define.
7723 (s390_sigtramp_frame_sniffer): New function.
7724 (s390_frame_base_address, s390_local_base_address): New functions.
7725 (s390_frame_base): Define.
7726 (s390_unwind_pc, s390_unwind_sp): New function.
7727 (s390_push_dummy_call): Use new frame base location.
7728 (s390_unwind_dummy_id): Likewise.
7729 (s390_gdbarch_init): Remove calls to:
7730 set_gdbarch_frameless_function_invocation,
7731 set_gdbarch_deprecated_init_frame_pc,
7732 set_gdbarch_deprecated_frame_chain,
7733 set_gdbarch_deprecated_frame_init_saved_regs,
7734 set_gdbarch_deprecated_pop_frame,
7735 set_gdbarch_deprecated_init_extra_frame_info,
7736 set_gdbarch_deprecated_init_frame_pc_first,
7737 set_gdbarch_deprecated_target_read_fp,
7738 set_gdbarch_deprecated_frame_saved_pc,
7739 set_gdbarch_deprecated_saved_pc_after_call,
7740 set_gdbarch_deprecated_fp_regnum.
7741 Add calls to:
7742 set_gdbarch_in_solib_call_trampoline,
7743 frame_unwind_append_sniffer,
7744 frame_base_set_default,
7745 set_gdbarch_unwind_pc,
7746 set_gdbarch_unwind_sp.
7747 * Makefile.in (s390-tdep.o): Update dependencies.
7748
b0cf273e
JB
7749 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
7750 (S390_STACK_FRAME_OVERHEAD): Remove.
7751 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
7752 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
7753 (s390_promote_integer_argument): Remove.
7754 (s390_cannot_extract_struct_value_address): Remove.
7755 (s390_use_struct_convention, s390_store_struct_return): Remove.
7756 (s390_extract_return_value, s390_store_return_value): Remove.
7757 (s390_return_value_convention, s390_return_value): New functions.
7758 (is_float_singleton): Handle typedefs.
8a1dac83 7759 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
7760 Remove, replace by ...
7761 (s390_function_arg_pass_by_reference, s390_function_arg_float,
7762 s390_function_arg_integer): ... these new functions.
7763 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
7764 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
7765 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
7766 Fill in tdep->abi.
7767 Remove calls to:
7768 set_gdbarch_deprecated_store_struct_return,
7769 set_gdbarch_deprecated_extract_return_value,
7770 set_gdbarch_deprecated_store_return_value,
7771 set_gdbarch_use_struct_convention,
7772 set_gdbarch_extract_struct_value_address,
7773 set_gdbarch_deprecated_pc_in_call_dummy,
7774 set_gdbarch_deprecated_push_arguments,
7775 set_gdbarch_deprecated_save_dummy_frame_tos,
7776 set_gdbarch_deprecated_push_return_address,
7777 set_gdbarch_deprecated_sizeof_call_dummy_words,
7778 set_gdbarch_deprecated_call_dummy_words,
7779 set_gdbarch_deprecated_dummy_write_sp.
7780 Add calls to:
7781 set_gdbarch_push_dummy_call,
7782 set_gdbarch_unwind_dummy_id,
7783 set_gdbarch_return_value.
8a1dac83 7784
e1457d83
JB
7785 * config/s390/nm-linux.h: Update comments.
7786 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
7787 (STOPPED_BY_WATCHPOINT): Redefine.
7788 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
7789 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
7790 (s390_stopped_by_watchpoint): Likewise.
7791 (watch_area_cnt): Remove.
7792 * s390-nat.c: Update comments.
7793 (watch_area): Remove typedef.
7794 Global replace watch_area by struct watch_area.
7795 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 7796 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
7797 use s390_inferior_tid. Add short-cut for the no watchpoint case.
7798 (s390_fix_watch_points): Remove pid argument,
7799 use s390_inferior_tid. Recompute area spanned by watchpoints.
7800 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
7801 argument. Reimplement.
7802
d0f54f9d
JB
7803 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
7804 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
7805 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 7806 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
7807 core-regset.o.
7808 * config/s390/s390x.mt: Remove.
7809 * config/s390/tm-s390.h: Remove.
7810 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
7811 (TARGET_ELF64): Remove.
7812 (SKIP_TRAMPOLINE_CODE): Do not undefine.
7813 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
7814 s390*-*-* case; always set gdb_target to s390.
7815 * regformats/reg-s390.dat: Remove control registers.
7816 * regformats/reg-s390x.dat: Likewise.
7817 * s390-tdep.h: New file.
8a1dac83 7818 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
7819 Include "inferior.h" and "s390-tdep.h".
7820 Remove private definition of offsetof.
7821 (s390_register_u_addr): Remove.
7822 (regmap_gregset, regmap_fpregset): Define.
7823 (supply_gregset, fill_gregset): Reimplement.
7824 (supply_fpregset, fill_fpregset): Likewise.
7825 (s390_inferior_tid): New function.
7826 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
7827 (fetch_inferior_registers, store_inferior_registers): Likewise.
7828 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
7829 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
7830 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
7831 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
7832 (struct gdbarch_tdep): Define.
7833 (struct s390_register_info): Define.
7834 (s390_register_info): New variable.
7835 (s390_register_name): Reimplement.
7836 (s390_register_type): New function.
7837 (s390_register_raw_size, s390x_register_raw_size): Remove.
7838 (s390_cannot_fetch_register): Remove.
7839 (s390_register_byte): Remove.
7840 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
7841 (s390_dwarf_regmap): New variable.
7842 (s390_dwarf_reg_to_regnum): New function.
7843 (s390_stab_reg_to_regnum): Remove.
7844 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
7845 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
7846 (s390_convert_register_p): Likewise.
7847 (s390_register_to_value, s390_value_to_register): Likewise.
7848 (s390_register_reggroup_p): Likewise.
7849 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
7850 s390_gregset, s390x_gregset, s390_fpregset): New variables.
7851 (s390_supply_regset, s390_regset_from_core_section): New functions.
7852 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
7853 (S390_FPR_SIZE): Likewise.
7854 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
7855 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
7856 (S390_NUM_GPRS): Move here from tm-s390.h.
7857 (S390_NUM_FPRS): Likewise.
7858 (s390_in_function_epilogue_p): New function.
7859 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
7860 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
7861 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
7862 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
7863 Replace S390_FP_REGNUM by S390_SP_REGNUM.
7864 Remove calls to:
7865 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
7866 set_gdbarch_deprecated_max_register_virtual_size,
7867 set_gdbarch_deprecated_register_byte,
d0f54f9d 7868 set_gdbarch_cannot_fetch_register,
8a1dac83 7869 set_gdbarch_cannot_store_register,
d0f54f9d
JB
7870 set_gdbarch_deprecated_register_size,
7871 set_gdbarch_deprecated_register_raw_size,
7872 set_gdbarch_deprecated_register_virtual_size,
7873 set_gdbarch_deprecated_register_virtual_type,
7874 set_gdbarch_deprecated_register_bytes.
7875 Add calls to:
7876 set_gdbarch_num_pseudo_regs,
7877 set_gdbarch_register_type,
7878 set_gdbarch_convert_register_p,
7879 set_gdbarch_register_to_value,
7880 set_gdbarch_value_to_register,
7881 set_gdbarch_register_reggroup_p,
7882 set_gdbarch_regset_from_core_section,
7883 set_gdbarch_pseudo_register_read,
7884 set_gdbarch_pseudo_register_write,
7885 set_gdbarch_in_function_epilogue_p.
7886 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
7887 (s390_tdep_h): New variable.
7888
8cfe231d
JB
78892004-02-17 Jim Blandy <jimb@redhat.com>
7890
4589a601
JB
7891 * findvar.c (value_from_register): If the type has no length, just
7892 return an acceptable value --- don't report an internal error.
7893
8cfe231d
JB
7894 * stabsread.c (read_type): If we find any type numbers that are
7895 forward references, complain if the references aren't resolved by
7896 the time we're finished reading.
7897 (cleanup_undefined_types): Make error message more appropriate for
7898 a complaint.
7899
5bf0017e
EZ
79002004-02-17 Elena Zannoni <ezannoni@redhat.com>
7901
9d62932d
EZ
7902 * Makefile.in (defs_h): Remove dependency on progress_h.
7903 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
7904 progress.h.
7905 * main.c (captured_main): Delete use of START_PROGRESS and
7906 END_PROGRESS.
7907
79082004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 7909
5bf0017e
EZ
7910 * objfiles.c (terminate_minimal_symbol_table): Add back
7911 initialization of MSYMBOL_TYPE.
7912
9fc9f5e2
AC
79132004-02-17 David Mosberger <davidm@hpl.hp.com>
7914
7915 Committed by Andrew Cagney.
7916 * Makefile.in (ia64_tdep_h): New macro.
7917 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
7918 (ia64-tdep.o): Likewise.
7919 * ia64-tdep.h: New file.
7920 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
7921 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
7922 (ia64_aix_sigcontext_register_address): Likewise.
7923 (ia64_linux_getunwind_table): Delete declaration.
7924 * ia64-linux-tdep.c: Likewise.
7925
76cd2bd9
CV
79262004-02-17 Corinna Vinschen <vinschen@redhat.com>
7927
7928 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
7929 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
7930 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
7931
634aa483
AC
79322004-02-17 Andrew Cagney <cagney@redhat.com>
7933
7934 * symtab.c (skip_prologue_using_sal): New function.
7935 * symtab.h (skip_prologue_using_sal): Declare.
7936 * frv-tdep.c: Include "symtab.h".
7937 (skip_prologue_using_sal): Delete function.
7938 * mips-tdep.c (skip_prologue_using_sal): Delete function.
7939 * rs6000-tdep.c (refine_prologue_limit): Mention
7940 skip_prologue_using_sal.
7941 * ia64-tdep.c (refine_prologue_limit): Ditto.
7942 * Makefile.in: Update dependencies.
7943
79442004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 7945
39ce7b3f
AC
7946 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
7947 START_INFERIOR_TRAPS_EXPECTED.
7948 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
7949 START_INFERIOR_TRAPS_EXPECTED.
7950 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
7951 Delete macro.
7952 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
7953 macro, moved to "nm-osf.h". Update copyright.
7954 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
7955 update copyright.
7956
19772a2c
AC
7957 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
7958 and function replacing FRAMELESS_FUNCTION_INVOCATION.
7959 * blockframe.c (legacy_frameless_look_for_prologue): Rename
7960 frameless_look_for_prologue.
7961 * frame.h (legacy_frameless_look_for_prologue): Rename
7962 frameless_look_for_prologue.
7963 * gdbarch.h, gdbarch.c: Re-generate.
7964 * sh64-tdep.c (sh64_gdbarch_init): Update.
7965 * sh-tdep.c (sh_gdbarch_init): Update.
7966 * s390-tdep.c (s390_gdbarch_init): Update.
7967 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7968 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7969 * m68k-tdep.c (m68k_gdbarch_init): Update.
7970 (delta68_frame_args_address): Update.
7971 * m32r-tdep.c (m32r_gdbarch_init): Update.
7972 * hppa-tdep.c (hppa_gdbarch_init): Update.
7973 * h8300-tdep.c (h8300_gdbarch_init): Update.
7974 * frv-tdep.c (frv_gdbarch_init): Update.
7975 (frv_frameless_function_invocation): Update.
7976 * cris-tdep.c (cris_gdbarch_init): Update.
7977 (cris_frameless_function_invocation): Update.
7978 * avr-tdep.c (avr_gdbarch_init): Update.
7979 * arm-tdep.c (arm_gdbarch_init): Update.
7980 * stack.c (frame_info): Update, call predicate.
7981 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
7982 * frame.c (legacy_get_prev_frame): Update, call predicate..
7983 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
7984 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
7985 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
7986 invocation.
7987 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7988 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7989 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
7990
7991 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
7992 function.
7993
7dcaac91
DJ
79942004-02-16 Daniel Jacobowitz <drow@mvista.com>
7995
7996 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
7997 initializations.
7998
88289b6e
AC
79992004-02-16 Andrew Cagney <cagney@redhat.com>
8000
8001 * tui/tui-windata.c: Include "gdb_string.h".
8002 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8003 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8004 * Makefile.in: Update dependencies.
8005
9f976b41
DJ
80062004-02-16 Daniel Jacobowitz <drow@mvista.com>
8007
8008 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8009 * infrun.c: Include "gdb_assert.h".
8010 (singlestep_ptid, saved_singlestep_ptid)
8011 (stepping_past_singlestep_breakpoint): New variables.
8012 (resume): Set singlestep_ptid. Check for singlestep thread
8013 hop.
8014 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8015 (handle_inferior_event): Handle singlestep thread hop.
8016
c324d747
AC
80172004-02-16 Andrew Cagney <cagney@redhat.com>
8018
f090b9b1
AC
8019 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8020 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8021 (dwarf2_frame_init_reg): Ditto.
8022
fd33e6cb
AC
8023 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8024 suggested by Joshua Neuheisel
8025
c324d747
AC
8026 * configure.in: Always check for curses, including pdcurses.
8027 Warn, instead of error, when no curses are found. Enable TUI when
8028 curses is available.
8029 * configure: Re-generate.
8030
b66ba949
CV
80312004-02-16 Corinna Vinschen <vinschen@redhat.com>
8032
8033 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8034 sh_sh4_register_convert_to_virtual.
8035 (sh_register_convert_to_raw): Rename from
8036 sh_sh4_register_convert_to_raw.
8037 (sh_pseudo_register_read): Accomodate above name change.
8038 (sh_pseudo_register_write): Ditto.
8039
b58cbbf2
CV
80402004-02-16 Corinna Vinschen <vinschen@redhat.com>
8041
8042 * sh-tdep.c (sh_generic_register_name): Remove.
8043 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8044
5929a910
AC
80452004-02-15 Andrew Cagney <cagney@redhat.com>
8046
4566dfcf
AC
8047 * configure.in (build_warnings): Add -Wunused-function.
8048 * configure: Re-generate.
8049
db11ed55
AC
8050 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8051 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8052
46ac7a5d
AC
8053 * procfs.c (procfs_init_inferior): Assume that
8054 START_INFERIOR_TRAPS_EXPECTED is defined.
8055 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8056 * config/ns32k/tm-nbsd.h: Delete file,
8057 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8058
ba801595
AC
8059 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8060 * config/vax/tm-vax.h: Delete file.
8061
5929a910
AC
8062 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8063 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8064 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8065 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8066 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8067 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8068 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8069
8f22cb90
MK
80702004-02-15 Mark Kettenis <kettenis@gnu.org>
8071
8072 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8073 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8074 (struct dwarf2_frame_ops): New.
8075 (dwarf2_frame_default_init_reg): New function, based on
8076 dwarf2_frame_init_reg.
8077 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8078 (dwarf2_frame_init_reg): Call architecture-specific function.
8079 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8080 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8081 instead of dwarf2_frame_data.
8082 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8083 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8084
8132723e
AC
80852004-02-15 Andrew Cagney <cagney@redhat.com>
8086
046a4708
AC
8087 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8088 register_gdbarch_swap.
8089 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8090 * f-lang.c (_initialize_f_language): Update, use
8091 DEPRECATED_REGISTER_GDBARCH_SWAP.
8092 * remote.c (_initialize_remote): Ditto.
8093 * regcache.c (_initialize_regcache): Ditto.
8094 * parse.c (_initialize_parse): Ditto.
8095 * infrun.c (_initialize_infrun): Ditto.
8096 * mi/mi-main.c (_initialize_mi_main): Ditto.
8097 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 8098
549c1eea
AC
8099 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8100 poking .cacheable directly.
8101 * symfile.c (symfile_bfd_open): Ditto.
8102
0c0b39de
AC
8103 * Makefile.in: Update all dependencies.
8104
8132723e
AC
8105 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8106 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8107 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8108 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8109 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 8110
b9d26eb9
AC
81112004-02-14 Andrew Cagney <cagney@redhat.com>
8112
8e1f669a
AC
8113 * arch-utils.c (legacy_convert_register_p): Check
8114 DEPRECATED_REGISTER_CONVERTIBLE_P.
8115 * findvar.c (value_of_register): Ditto.
8116
cd0bfa36
AC
8117 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8118 * gdbarch.h, gdbarch.c: Re-generate.
8119 * arch-utils.c (deprecated_register_convertible_not): Delete.
8120 * arch-utils.h (deprecated_register_convertible_not): Delete.
8121 * mi/mi-main.c (get_register): Update. Update copyright.
8122 * infcmd.c (default_print_registers_info): Update.
8123
b9d26eb9
AC
8124 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8125 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8126 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 8127 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
8128 * frame.c (deprecated_get_next_frame_hack): Delete function.
8129 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8130 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8131 Update.
8132 * infcall.c (call_function_by_hand): Update.
8133
9ab9195f
EZ
81342004-02-14 Elena Zannoni <ezannoni@redhat.com>
8135
8136 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 8137 from here...
9ab9195f
EZ
8138 * objfiles.c (init_entry_point_info, entry_point_address):..to
8139 here.
8140 * symfile.h (init_entry_point_info, entry_point_address): Remove
8141 prototypes.
8142 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 8143 prototypes.
9ab9195f
EZ
8144 * cris-tdep.c: Remove include of symfile.h. Add include of
8145 objfiles.h.
8146 * infcall.c: Ditto.
8147 * mcore-tdep.c: Ditto.
8148 * mn10300-tdep.c: Ditto.
8149 * sh64-tdep.c: Ditto.
8150 * v850-tdep.c: Ditto.
8151 * arm-tdep.c: Remove include of symfile.h.
8152 * blockframe.c: Ditto.
8153 * coffread.c: Ditto.
8154 * dbxread.c: Ditto.
8155 * dwarf2read.c: Ditto.
8156 * dwarfread.c: Ditto.
8a1dac83 8157 * frv-tdep.c: Ditto.
9ab9195f
EZ
8158 * ia64-tdep.c: Ditto.
8159 * mdebugread.c: Ditto.
8160 * mipsread.c: Ditto.
8a1dac83 8161 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
8162 * s390-tdep.c: Ditto.
8163 * sh-tdep.c: Ditto.
8a1dac83 8164 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
8165 * gdbarch.sh: Remove include of symfile.h.
8166 * gdbarch.c: Regenerate.
8167 * solib-irix.c (enable_break): Use entry_point_address().
8168 Add comment about include file.
8169 * xcoffread.c: Add comment about include file.
8a1dac83
RM
8170 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8171 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8172 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8173 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
8174 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8175
c4c5b7ba
AC
81762004-02-13 Andrew Cagney <cagney@redhat.com>
8177
8178 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8179 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8180 copyright.
8181 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8182
3e7879de
FF
81832004-02-12 Fred Fish <fnf@redhat.com>
8184
8185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8186 set_gdbarch_store_return_value.
8187
6a7760b6
AC
81882004-02-12 Andrew Cagney <cagney@redhat.com>
8189
8190 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8191 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8192 (interrupt_query): Ditto.
8193 (ofunc): Delete unused variable.
8194 * cris-tdep.c (cris_abi): Delete unused function.
8195 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8196 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8197 (cris_get_asr_quick_shift_steps): Ditto.
8198 (cris_skip_prologue_frameless_p): Ditto.
8199 * arm-tdep.c (arm_push_return_address): Delete unused function.
8200 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8201 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8202 * s390-tdep.c (s390_function_start): Delete unused function.
8203
31687c3c
AC
82042004-02-12 Andrew Cagney <cagney@redhat.com>
8205
8206 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8207 gdbarch.h, gdbarch.c: Re-generate.
8208 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8209 to generic_prologue_frameless_p.
8210 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8211 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8212
6de918a6
DJ
82132004-02-11 Daniel Jacobowitz <drow@mvista.com>
8214
8215 * mips-linux-tdep.c: Include "frame.h".
8216 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8217 (mips_linux_skip_resolver): New functions.
8218 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8219 and set_gdbarch_in_solib_call_trampoline.
8220 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8221 to after set_gdbarch_in_solib_return_trampoline. Only set the
8222 solib hooks to mips16 functions if the OS ABI is unknown.
8223 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8224 including "config/tm-linux.h".
8225 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8226 * Makefile.in (mips-linux-tdep.o): Update.
8227
87b3ede8
DC
82282004-02-11 David Carlton <carlton@kealia.com>
8229
8230 * linespec.c (decode_compound): Only look for a class symbol when
8231 considering all but the rightmost component.
8232
5979bc46
AC
82332004-02-11 Andrew Cagney <cagney@redhat.com>
8234
8235 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8236 abi code are are separatly grouped.
8237
5867a2fb
AC
82382004-02-11 Andrew Cagney <cagney@redhat.com>
8239
8240 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8241 * gdbarch.h, gdbarch.c: Re-generate.
8242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8243 * v850-tdep.c (v850_gdbarch_init): Update.
8244 * sh64-tdep.c (sh64_gdbarch_init): Update.
8245 * sh-tdep.c (sh_gdbarch_init): Update.
8246 * s390-tdep.c (s390_gdbarch_init): Update.
8247 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8248 * mips-tdep.c (mips_gdbarch_init): Update.
8249 * mcore-tdep.c (mcore_gdbarch_init): Update.
8250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8251 * m32r-tdep.c (m32r_gdbarch_init): Update.
8252 * ia64-tdep.c (ia64_gdbarch_init): Update.
8253 * hppa-tdep.c (hppa_gdbarch_init): Update.
8254 * h8300-tdep.c (h8300_gdbarch_init): Update.
8255 * frv-tdep.c (frv_gdbarch_init): Update.
8256 * d10v-tdep.c (d10v_gdbarch_init): Update.
8257 * cris-tdep.c (cris_gdbarch_init): Update.
8258 * avr-tdep.c (avr_gdbarch_init): Update.
8259 * arm-tdep.c (arm_gdbarch_init): Update.
8260 * alpha-tdep.c (alpha_gdbarch_init): Update.
8261
026a72f8
CV
82622004-02-11 Corinna Vinschen <vinschen@redhat.com>
8263
8264 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8265 comma.
8266 (sh_sh4al_dsp_register_name): Ditto.
8267
3903d437
AC
82682004-02-10 Andrew Cagney <cagney@redhat.com>
8269
8270 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8271 (mips_init_frame_pc_first): Delete function.
8272 (mips_frame_saved_pc): Delete function.
8273 (mips_frame_chain): Delete function.
8274 (mips_init_extra_frame_info): Delete function.
8275 (mips_xfer_register): Delete unused variable "reg".
8276 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8277 (mips_n32n64_return_value): Delete unused variable "reg".
8278 (mips_n32n64_return_value): Delete unused variable "pos".
8279 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8280 (mips_o32_return_value): Delete unused variable "pos".
8281 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8282 (mips_print_fp_register): Delete unused variable "namelen"
8283 (mips_print_fp_register): Delete unused variable "flt2"
8284 (get_frame_pointer): Delete function.
8285 (cached_proc_desc): Delete static variable.
8286 (mips_pop_frame): Delete function.
8287 (mips_find_saved_regs): Delete function.
8288 (mips_get_saved_register): Delete function.
8289 (mips_saved_pc_after_call): Delete function.
8290 (SIGFRAME_BASE): Delete macro.
8291 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8292 (SIGFRAME_PC_OFF): Delete macro.
8293 (SIGFRAME_REGSAVE_OFF): Delete macro.
8294 (mips_dump_tdep): Do not print deleted macro definitions.
8295
b9fb98bd
AC
82962004-02-10 Andrew Cagney <cagney@redhat.com>
8297
8298 * Makefile.in (SFILES): Remove explictly listed tui files.
8299 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8300
78ced177 83012004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 8302
78ced177
JJ
8303 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8304 to use paddr functions to format ia64 addresses and long values.
8305 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8306 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8307 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8308 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8309 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8310
6a83354a
AC
83112004-02-10 Andrew Cagney <cagney@redhat.com>
8312
8313 * defs.h: Do not include "tui.h".
8314 * gdb_curses.h: New file.
8315 * tui/tui-hooks.h: New file.
8316 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8317 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8318 (tui_initialize_io): Delete declaration.
8319 (tui_initialize_readline: Delete redundant declaration.
8320 (struct tui_point): Delete definition.
8321 * tui/tui-data.h (struct tui_point): Define.
8322 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8323 * utils.c: Include "tui/tui.h".
8324 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8325 * printcmd.c [TUI]: Include "tui/tui.h".
8326 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8327 * tui/tui-command.c: Include "gdb_curses.h".
8328 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8329 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8330 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8331 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8332 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8333 * Makefile.in: Update all dependencies.
8334 (tui_hooks_h, gdb_curses_h): Define.
8335 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8336
997470ef
EZ
83372004-02-10 Elena Zannoni <ezannoni@redhat.com>
8338
8339 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8340 auxf2. Add comments about some other rarely used fields.
8341
4ff2cc4d
AC
83422004-02-10 Andrew Cagney <cagney@redhat.com>
8343
8344 * Makefile.in (init.c): Fix script removing duplicates. Problem
8345 reported by Peter Schauer.
8346
1ab21617
EZ
83472004-02-09 Elena Zannoni <ezannoni@redhat.com>
8348
8349 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8350 obstack_specify_allocation.
8351 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 8352 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
8353 (allocate_rt_common_objfile): Ditto.
8354 * symfile.c (reread_symbols): Ditto.
8355 * gdb_obstack.h: Add comment.
8356
17763fd9
EZ
83572004-02-09 Elena Zannoni <ezannoni@redhat.com>
8358
8359 * linespec.c (decode_line_1, locate_first_half)
8360 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8361 commented out code.
8362
ec5cdd75
DJ
83632004-02-09 Daniel Jacobowitz <drow@mvista.com>
8364
8365 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8366 obstack_free.
8367
43b54b88
AC
83682004-02-09 Andrew Cagney <cagney@redhat.com>
8369
8370 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8371 fails, try find_pc_section. Fix PR c++/1267.
8372 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8373 instead of find_pc_mapped_section.
8374 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8375 not default to the section containing PC. Fix PR symtab/1519.
8376
edfae063
AC
83772004-02-09 Andrew Cagney <cagney@redhat.com>
8378
8379 * Makefile.in (mips-tdep.o): Update dependencies.
8380 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8381 "trad-frame.h".
8382 (mips_unwind_pc): Return the pseudo PC register.
8383 (mips_unwind_dummy_id): New function.
8384 (mips16_fetch_instruction): New function.
8385 (mips32_fetch_instruction): New function.
8386 (struct mips_frame_cache): Define.
8387 (mips_mdebug_frame_cache): New function.
8388 (mips_mdebug_frame_this_id): New function.
8389 (mips_mdebug_frame_prev_register): New function.
8390 (mips_mdebug_frame_unwind): Define.
8391 (mips_mdebug_frame_sniffer): New function.
8392 (mips_mdebug_frame_base_address): New function.
8393 (mips_mdebug_frame_base): Define.
8394 (mips_mdebug_frame_base_sniffer): New function.
8395 (mips_gdbarch_init): Append unwind and base sniffers. Set
8396 unwind_dummy_id.
8397
defc864c
AC
83982004-02-08 Andrew Cagney <cagney@redhat.com>
8399
6764ddad
AC
8400 * frame.c: Print both the register number and name.
8401
defc864c
AC
8402 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
8403 and a sed into a single sed. Make .c and .o patterns more robust.
8404 (OBS): Delete.
8405 (INIT_FILES): Replace OBS with COMMON_OBS.
8406 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
8407
645d6d10
MK
84082004-02-08 Mark Kettenis <kettenis@gnu.org>
8409
8410 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
8411 the PT_WCOOKIE request.
8412
23e3c3fc
AC
84132004-02-08 Andrew Cagney <cagney@redhat.com>
8414
58dfe9ff
AC
8415 * mips-tdep.c (mips_unwind_pc): New function.
8416 (mips_gdbarch_init): Set mips_unwind_pc.
8417
1152e35e
AC
8418 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
8419 (get_frame_id): Allow the UNKNOWN_FRAME.
8420 (frame_register_unwind, get_frame_type): Ditto.
8421
31b75dbf
AC
8422 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
8423 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
8424 unwind_dummy_id indicates a legacy frame.
8425
3483b318
AC
8426 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
8427 * configure: Re-generate.
8428
23e3c3fc
AC
8429 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
8430 methods.
8431
33f8ca73
AC
84322004-02-08 Andrew Cagney <cagney@redhat.com>
8433
8434 * configure.in (CONFIG_ALL): Set to Makefile target, and not
8435 makefile macro.
8436 * configure: Re-generate.
8437 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
8438 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
8439 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
8440 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
8441 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
8442 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
8443 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
8444 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
8445 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
8446 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
8447
6ba8e26f 84482004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 8449
20d286a5
AC
8450 * Makefile.in: Update all dependencies.
8451
d836ee13
AC
8452 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
8453 * configure: Re-generate.
8454 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
8455 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
8456 (COMMON_OBS): Add "main.o" and "annotate.o".
8457 (ANNOTATE_OBS): Delete.
8458 (OBS): Remove ANNOTATE_OBS.
8459 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
8460 CONFIG_INITS.
8461 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
8462 against CONFIG_OBS and "main.o".
8463 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
8464 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
8465
d02c80cd
AC
8466 * tui/tui-command.c: Include "gdb_string.h", delete register
8467 attribute, use ISO-C function signatures.
8468 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
8469 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8470 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
8471 * tui/tui.c: Ditto.
6ba8e26f
AC
8472
8473 * tui/tui-command.c: Change variable and function names to lower
8474 case.
8475 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
8476 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
8477 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8478 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8479 * tui/tui-winsource.c, tui/tui.c: Ditto.
8480
4a146b47
EZ
84812004-02-07 Elena Zannoni <ezannoni@redhat.com>
8482
8483 * buildsym.c (free_pending_blocks, finish_block)
8484 (record_pending_block, make_blockvector, end_symtab): Replace
8485 symbol_obstack with objfile_obstack.
8a1dac83 8486 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 8487 (coff_read_enum_type): Ditto.
8a1dac83 8488 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 8489 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 8490 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
8491 (dwarf2_symbol_mark_computed): Ditto.
8492 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
8493 * elfread.c (elf_symtab_read): Ditto.
8494 * hpread.c (hpread_symfile_init, hpread_symfile_init)
8495 (hpread_read_enum_type, hpread_read_function_type)
8496 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
8497 Ditto.
8a1dac83 8498 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 8499 (java_link_class_type): Ditto.
8a1dac83 8500 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
8501 (new_symbol): Ditto.
8502 * minsyms.c (install_minimal_symbols): Ditto.
8503 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
8504 (terminate_minimal_symbol_table): Replace symbol_obstack with
8505 objfile_obstack.
8506 (free_objfile): Remove freeing of symbol_obstack.
8507 * objfiles.h: Remove symbol_obstack field.
8508 * pa64solib.c (add_to_solist): Replace symbol_obstack with
8509 objfile_obstack.
8510 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8511 symbol_obstack.
8512 (solib_add_common_symbols): Replace symbol_obstack with
8513 objfile_obstack.
8514 * somsolib.c (som_solib_add): Ditto.
8515 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8516 (common_block_start, common_block_end): Ditto.
8517 * symfile.c (reread_symbols): Remove freeing and init of
8518 symbol_obstack.
8519 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
8520 * symfile.h: Update comment.
8521 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
8522 stats printing.
8523 * symtab.c (symbol_set_names): Replace symbol_obstack with
8524 objfile_obstack.
8525 * symtab.h (struct general_symbol_info, struct minimal_symbol):
8526 Update comments.
8527 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
8528 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
8529 objfile_obstack.
8530
6d012f14
AC
85312004-02-07 Andrew Cagney <cagney@redhat.com>
8532
8533 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
8534 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
8535 fields and variables.
8536 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
8537 (m_beInvisible): Delete macro.
8538 * tui/tui-data.h: Fix case case fields and variables.
8539 (m_genWinPtrIsNull): Delete macro.
8540 (tui_win_list): Rename winList.
8541 (TUI_SRC_WIN): Rename srcWin.
8542 (TUI_DISASM_WIN): Rename disassemWin.
8543 (TUI_DATA_WIN): Rename dataWin.
8544 (TUI_CMD_WIN): Rename cmdWin.
8545 (m_genWinPtrNotNull): Delete macro.
8546 (m_winPtrIsNull): Delete macro.
8547 (m_winPtrNotNull): Delete macro.
8548 (tui_win_is_source_type): Replace m_winIsSourceType
8549 (tui_win_is_auxillary): Replace m_winIsAuzillary.
8550 (tui_win_has_locator): Replace m_hasLocator.
8551 (tui_set_win_highlight): Replace m_setWinHighlightOn and
8552 m_setWinHighlightOff.
8553 * tui/tui-data.c: Update references.
8554 (tui_win_is_source_type, tui_set_win_highlight): New functions.
8555 (tui_win_has_locator, tui_win_is_auxillary): New functions.
8556 * tui/tui-command.c, tui/tui-disasm.c: Update references.
8557 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
8558 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
8559 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8560 * tui/tui-winsource.c, tui/tui.c: Ditto.
8561
7d34766b
MK
85622004-02-07 Mark Kettenis <kettenis@gnu.org>
8563
1c800673
MK
8564 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
8565 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
8566 StackGhost.
8567
7d34766b
MK
8568 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
8569 variable `i6' to `i7'.
8570 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8571
22940a24
AC
85722004-02-07 Andrew Cagney <cagney@redhat.com>
8573
8574 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
8575 (TuiPoint, TuiPointPtr): Ditto.
8576 (TuiStatus, TuiStatusPtr): Ditto.
8577 (TuiWinType, TuiWinTypePtr): Ditto.
8578 (struct tui_point): Rename _TuiPoint.
8579 (tui_get_low_disassembly_address): Rename
8580 tuiGetLowDisassemblyAddress.
8581 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
8582 (tuiFree): Delete declaration.
8583 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
8584 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
8585 * tui/tui.c (tuiFree): Delete function.
8586 * cli/cli-cmds.c (disassemble_command): Update references.
8587 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
8588 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8589 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
8590 * tui/tui-winsource.c: Ditto.
8591
8b92e4d5
EZ
85922004-02-07 Elena Zannoni <ezannoni@redhat.com>
8593
8594 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
8595 coffstab_build_psymtabs, elfstab_build_psymtabs)
8596 (stabsect_build_psymtabs): Replace psymbol_obstack with
8597 objfile_obstack.
8598 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
8599 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
8600 Ditto.
8601 * dwarfread.c (scan_compilation_units): Ditto.
8602 * elfread.c (elfstab_offset_sections): Ditto.
8603 * hppa-tdep.c (read_unwind_info): Ditto.
8604 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
8605 (hpread_end_psymtab): Ditto.
8606 * mdebugread.c (mdebug_build_psymtabs, add_pending)
8607 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
8608 Ditto.
8609 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 8610 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
8611 (build_objfile_section_table): Ditto.
8612 (allocate_objfile): Remove init of psymbol_obstack.
8613 (free_objfile): Remove freeing of psymbol_obstack.
8614 * objfiles.h (struct objfile): Remove field
8615 psymbol_obstack. Update comments.
8616 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
8617 psymbol_obstack with objfile_obstack.
8618 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8619 psymbol_obstack.
8620 * somread.c (som_symfile_offsets, init_import_symbols)
8621 (init_export_symbols): Replace psymbol_obstack with
8622 objfile_obstack.
8623 * somsolib.c (som_solib_add_solib_objfile): Ditto.
8624 * symfile.c (default_symfile_offsets, syms_from_objfile)
8625 (reread_symbols): Remove freeing and init of psymbol_obstack.
8626 (cashier_psymtab): Update comment.
8627 * symmisc.c (print_objfile_statistics): Don't report stats for
8628 psymbol obstack.
8629 * symtab.h (struct general_symbol_info, struct partial_symtab):
8630 Update comments.
8631 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
8632 (xcoff_symfile_offsets): Replace psymbol_obstack with
8633 objfile_obstack.
8634
b99607ea
EZ
86352004-02-07 Elena Zannoni <ezannoni@redhat.com>
8636
8637 * objfiles.h (struct objfile): Add objfile_obstack field.
8638 Remove type_obstack field.
8639
8640 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
8641 read_structure_scope read_enumeration, new_symbol): Replace
8642 type_obstack with objfile_obstack.
8643 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 8644 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
8645 (lookup_fundamental_type): Ditto.
8646 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
8647 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
8648 (hpread_read_doc_function_type, hpread_read_struct_type)
8649 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 8650 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 8651 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
8652 (java_link_class_type): Ditto.
8653 * mdebugread.c (parse_type): Ditto.
8654 * objfiles.c (allocate_objfile, free_objfile): Ditto.
8655 * solib-sunos.c (solib_add_common_symbols): Ditto.
8656 * stabsread.c (define_symbol, read_type, read_member_functions,
8657 read_cpp_abbrev, read_one_struct_field): Ditto.
8658 * symfile.c (reread_symbols): Ditto.
8659 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 8660
2a8854a7
AC
86612004-02-07 Andrew Cagney <cagney@redhat.com>
8662
8663 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
8664 (tui_exec_info_content): Rename TuiExecInfoContent.
8665 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
8666 (TuiWinInfo, TuiWinInfoPtr): Ditto.
8667 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
8668 (TuiList, TuiListPtr): Ditto.
8669 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
8670 (TuiDataType, TuiDataTypePtr): Ditto.
8671 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
8672 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
8673 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
8674 (TuiSourceElement, TuiSourceElementPtr): Ditto.
8675 (TuiDataElement, TuiDataElementPtr): Ditto.
8676 (TuiWinElement, TuiWinElementPtr): Ditto.
8677 (TuiDataInfo, TuiDataInfoPtr): Ditto.
8678 (TuiCommandElement, TuiCommandElementPtr): Ditto.
8679 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
8680 (TuiWhichElement, TuiWhichElementPtr): Ditto.
8681 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
8682 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
8683 * tui/tui-command.c, tui/tui-data.c: Update references.
8684 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
8685 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8686 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8687 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 8688
05cbe71a
MK
86892004-02-07 Mark Kettenis <kettenis@gnu.org>
8690
8691 * dwarf2-frame.h: Update copyright.
8692 (enum dwarf2_frame_reg_rule): New.
8693 (struct dwarf2_frame_state_reg): New.
8694 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
8695 * dwarf2-frame.c: Update copyright.
8696 (enum dwarf2_reg_rule): Remove.
8697 (struct dwarf2_frame_state): Remove defenition of `struct
8698 dwarf2_frame_state_reg'.
8699 (read_reg): Call get_frame_arch to get the architecture instead of
8700 using CURRENT_GDBARCH.
8701 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
8702 DWARF2_FRAME_.
8703 (dwarf2_frame_init_reg): New function.
8704 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
8705 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
8706 initialize the register state. Prefix old `enum dwarf2_reg_rule'
8707 tags with DWARF2_FRAME_.
8708 (dwarf2_frame_prev_register): Call get_frame_arch to get the
8709 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
8710 dwarf2_reg_rule' tags with DWARF2_FRAME_.
8711
ec7d9e56
AC
87122004-02-06 Andrew Cagney <cagney@redhat.com>
8713
dd1abb8c
AC
8714 * tui/tui-data.h (struct tui_list): Rename _TuiList.
8715 (enum tui_data_type): Rename _TuiDataType.
8716 (struct tui_layout_def): Rename _TuiLayoutDef.
8717 (struct tui_source_element): Rename _TuiSourceElement.
8718 (struct tui_data_element): Rename _TuiDataElement.
8719 (struct tui_command_element): Rename _TuiCommandElement.
8720 (struct tui_locator_element): Rename _TuiLocatorElement.
8721 (union tui_which_element): Define.
8722 (struct tui_win_element): Rename _TuiWinElement.
8723 (struct tui_data_info): Rename _TuiDataInfo.
8724 (struct tui_source_info): Rename _TuiSourceInfo.
8725 (struct tui_command_info): Rename _TuiCommandInfo.
8726 (tui_initialize_static_data): Rename initializeStaticData.
8727 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
8728 (tui_alloc_win_info): Rename allocWinInfo.
8729 (tui_init_generic_part): Rename initGenericPart.
8730 (tui_init_win_info): Rename initWinInfo.
8731 (tui_alloc_content): Rename allocContent.
8732 (tui_add_content_elements): Rename addContentElements.
8733 (tui_init_content_element): Rename initContentElement.
8734 (tui_free_window): Rename freeWindow.
8735 (tui_free_win_content): Rename freeWinContent.
8736 (tui_free_data_content): Rename freeDataContent.
8737 (tui_free_all_source_wins_content): Rename
8738 freeAllSourceWinsContent.
8739 (tui_del_window): Rename tuiDelWindow.
8740 (tui_del_data_windows): Rename tuiDelDataWindows.
8741 (tui_partial_win_by_name): Rename partialWinByName.
8742 (tui_win_name): Rename winName.
8743 (tui_current_layout): Rename currentLayout.
8744 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
8745 (tui_term_height): Rename termHeight.
8746 (tui_set_term_height_to): Rename setTermHeightTo.
8747 (tui_term_width): Rename termWidth.
8748 (tui_set_term_width_to): Rename setTermWidthTo.
8749 (tui_set_gen_win_origin): Rename setGenWinOrigin.
8750 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
8751 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
8752 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
8753 (tui_source_windows): Rename sourceWindows.
8754 (tui_clear_source_windows): Rename clearSourceWindows.
8755 (tui_clear_source_windows_detail): Rename
8756 clearSourceWindowsDetail.
8757 (tui_clear_win_detail): Rename clearWinDetail.
8758 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
8759 (tui_default_tab_len): Rename tuiDefaultTabLen.
8760 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
8761 (tui_win_with_focus): Rename tuiWinWithFocus.
8762 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
8763 (tui_layout_def): Rename tuiLayoutDef.
8764 (tui_win_resized): Rename tuiWinResized.
8765 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
8766 (tui_next_win): Rename tuiNextWin.
8767 (tui_prev_win): Rename tuiPrevWin.
8768 (tui_add_to_source_windows): Rename addToSourceWindows.
8769 * tui/tui-winsource.c, tui/tui-win.c: Update references.
8770 * tui/tui-layout.c, tui/tui-source.c: Ditto.
8771 * tui/tui-stack.c, tui/tui-io.c: Ditto.
8772 * tui/tui.c, tui/tui-data.c: Ditto.
8773 * tui/tui-interp.c, tui/tui-data.c: Ditto.
8774 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
8775
a358af15
AC
8776 * tui/tui-source.h: Update copyright. Include "tui-data.h".
8777 (struct symtab): Declare.
8778 (tui_set_source_content): Rename tuiSetSourceContent.
8779 (tui_show_symtab_source): Rename tuiShowSource.
8780 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
8781 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
8782 * tui/tui-source.c: Update copyright. Update references.
8783 * tui/tui-win.c, tui/tui-winsource.c: Update references.
8784 * tui/tui-stack.c: Update references.
8785
a21fcd8f
AC
8786 * tui/tui-win.h: Update copyright. Include "tui-data.h".
8787 (struct tui_win_info): Declare.
8788 (tui_scroll_forward): Rename tuiScrollForward.
8789 (tui_scroll_backward): Rename tuiScrollBackward.
8790 (tui_scroll_left): Rename tuiScrollLeft.
8791 (tui_scroll_right): Rename tuiScrollRight.
8792 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
8793 (tui_resize_all): Rename tuiResizeAll.
8794 (tui_refresh_all_win): Rename tuiRefreshAll.
8795 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
8796 * tui/tui-layout.c, * tui/tui-io.c: Update references.
8797 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
8798 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
8799
edae1ccf
AC
8800 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
8801 (tui_erase_data_content): Rename tuiEraseDataContent.
8802 (tui_display_all_data): Rename tuiDisplayAllData.
8803 (tui_check_data_values): Rename tuiCheckDataValues.
8804 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
8805 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
8806 (tui_first_data_element_no_in_line): Rename
8807 tuiFirstDataElementNoInLine.
8808 (tui_delete_data_content_windows): Rename
8809 tuiDeleteDataContentWindows.
8810 (tui_refresh_data_win): Rename tuiRefreshDataWin.
8811 (tui_display_data_from): Rename tuiDisplayDataFrom.
8812 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
8813 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
8814 * tui/tui-win.c, tui/tui-regs.c: Update references.
8815 * tui/tui-layout.c, tui/tui.c: Update references.
8816
ec7d9e56
AC
8817 * tui/tui-wingeneral.h: Update copyright.
8818 (m_allBeVisible): Delete macro.
8a1dac83 8819 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
8820 (struct tui_gen_win_info): Declare.
8821 (struct tui_win_info): Declare.
8822 (tui_unhighlight_win): Rename unhighlightWin.
8823 (tui_make_visible, tui_make_invisible): Replace makeVisible.
8824 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
8825 (tui_make_window): Rename makeWindow.
8826 (tui_copy_win): Rename copyWin.
8827 (tui_box_win): Rename boxWin.
8828 (tui_highlight_win): Rename highlightWin.
8829 (tui_check_and_display_highlight_if_needed): Rename
8830 checkAndDisplayHighlightIfNeeded.
8831 (tui_refresh_all): Rename refreshAll.
8832 (tui_delete_win): Rename tuiDelwin.
8833 (tui_refresh_win): Rename tuiRefreshWin.
8834 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
8835 (tui_make_visible, tui_make_invisible): New functions.
8836 (tui_make_all_visible, tui_make_all_invisible): New functions.
8837 (make_all_visible): Rename makeAllVisible.
8838 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
8839 * tui/tui-data.c, tui/tui-winsource.c: Update references.
8840 * tui/tui-windata.c, tui/tui-win.c: Update references.
8841 * tui/tui-regs.c, tui/tui-layout.c: Update references.
8842 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
8843
1e52e2eb
MK
88442004-02-06 Mark Kettenis <kettenis@gnu.org>
8845
8846 * proc-api.c (write_with_trace): Initialize local variable to
8847 silence compiler warning.
8848
f80bda8e
AC
88492004-02-06 Andrew Cagney <cagney@redhat.com>
8850
8851 * tui/tui-source.h: Do not include "defs.h".
8852 (struct tui_win_info): Declare.
8853 (tui_set_source_content_nil): Declare.
8854 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
8855 (union tui_line_or_address): Rename _TuiLineOrAddress.
8856 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
8857 (tui_update_source_window): Rename tuiUpdateSourceWindow.
8858 (tui_update_source_window_as_is): Rename
8859 tuiUpdateSourceWindowAsIs.
8860 (tui_update_source_windows_with_addr): Rename
8861 tuiUpdateSourceWindowsWithAddr.
8862 (tui_update_source_windows_with_line): Rename
8863 tuiUpdateSourceWindowsWithLine.
8864 (tui_clear_source_content): Rename tuiClearSourceContent.
8865 (tui_erase_source_content): Rename tuiEraseSourceContent.
8866 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
8867 (tui_show_source_content): Rename tuiShowSourceContent.
8868 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
8869 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
8870 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
8871 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
8872 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
8873 (tui_update_exec_info): Rename tuiUpdateExecInfo.
8874 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
8875 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
8876 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
8877 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
8878 (struct tui_win_info): Declare.
8879 * tui/tui-stack.c: Update references.
8880 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
8881 * tui/tui-win.c, tui/tui-source.c: Ditto.
8882 * tui/tui.c, tui/tui-disasm.c: Ditto.
8883
9fbfb822
MK
88842004-02-06 Mark Kettenis <kettenis@gnu.org>
8885
8886 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
8887 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
8888
03cebad2
MK
88892004-02-05 Mark Kettenis <kettenis@gnu.org>
8890
8891 * infrun.c (handle_inferior_event): Allow for breakpoint
8892 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
8893 and SIGEMT. Update comments.
8894 * NEWS (Revised SPARC target): Mention support for non-executable
8895 stack.
8896
290281b1
MK
88972004-02-04 Mark Kettenis <kettenis@gnu.org>
8898
8899 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
8900 * inftarg.c: Update copyright year.
8901 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
8902 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
8903 (sparc_xfer_wcookie): New function.
8904 * sparc-tdep.c (sparc_fetch_wcookie): New function.
8905 * Makefile.in (sparc-nat.o): Update dependencies.
8906 * config/sparc/nm-nbsd.h: Include "target.h".
8907 (NATIVE_XFER_WCOOKIE): New define.
8908 (sparc_xfer_wcookie): New prototype.
8909
212161df
AC
89102004-02-04 Andrew Cagney <cagney@redhat.com>
8911
8912 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
8913 SYSCALL_TRAP function.
8914 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
8915
6e4c6c91
DJ
89162004-02-04 Andrew Cagney <cagney@redhat.com>
8917 Daniel Jacobowitz <drow@mvista.com>
8918
8919 * objfiles.h: Delete comments refering to inside_entry_func and
8920 DEPRECATED_FRAME_CHAIN_VALID.
8921 * defs.h (inside_entry_func): Update prototype..
8922 * blockframe.c (inside_entry_func): Rename to
8923 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
8924 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
8925
cae688ec
JJ
89262004-02-03 Jeff Johnston <jjohnstn@redhat.com>
8927
8928 * breakpoint.c (struct captured_parse_breakpoint_args): Move
8929 outside of #ifdef SOLIB_ADD region.
8930 (do_restore_lang_radix_cleanup): Ditto.
8931 (resolve_pending_breakpoint): Ditto.
8932
19217676
AC
89332004-02-03 Andrew Cagney <cagney@redhat.com>
8934
8935 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
8936 (process_note_abi_tag_sections): Delete unused function.
8937 (ia64_read_fp): Delete unused function.
8938 (gdbarch_extract_struct_value_address): Delete declaration.
8939
876753be
AC
89402004-02-02 Andrew Cagney <cagney@redhat.com>
8941
8942 * vax-tdep.c (vax_frame_chain): Delete call to
8943 deprecated_inside_entry_file.
8944 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
8945
d4f10bf2
MK
89462004-02-02 Mark Kettenis <kettenis@gnu.org>
8947
8948 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
8949 column that's "empty" or "same value" when eliminating REG_RA
8950 rules.
8951
cae688ec
JJ
89522004-02-02 Jeff Johnston <jjohnstn@redhat.com>
8953
8954 * NEWS: Add information about new pending breakpoint support.
8955
0101ce28
JJ
89562004-02-02 Jeff Johnston <jjohnstn@redhat.com>
8957
8958 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
8959 and pending fields for pending breakpoint support.
8960 * breakpoint.c (breakpoint_enabled): Add check for not pending.
8961 (condition_command): Only parse condition if not a pending
8962 breakpoint.
8963 (print_one_breakpoint): Add support for pending breakpoints.
8964 (describe_other_breakpoints): Add checks to verify we are not
8965 dealing with pending breakpoints.
8966 (check_duplicates): Don't check pending breakpoints.
8967 (set_raw_breakpoint): Initialize pending flag.
8968 (do_restore_lang_radix_cleanup): New cleanup routine.
8969 (resolve_pending_breakpoint): New function.
8970 (re_enable_breakpoints_in_shlibs): Try and resolve any
8971 pending breakpoints via resolve_pending_breakpoint.
8972 (mention): Add pending breakpoint support.
8973 (parse_breakpoint_sals): Add new parameter to pass to
8974 decode_line_1 to indicate silent errors when files or functions
8975 are not found. Change all callers.
8976 (do_captured_parse_breakpoint): New function.
8977 (break_command_1): Change prototype to return an rc value and to
8978 take an optional pending breakpoint pointer. Support creating
8979 a pending breakpoint if a "not found" form of error occurs when
8980 parsing the breakpoint. Also support resolving an existing pending
8981 breakpoint and be silent if the resolution fails.
8982 (create_breakpoints): Change prototype to take pending breakpoint
8983 pointer. When resolving a pending breakpoint, use the new pointer
8984 to provide a conditional or commands added by the end-user.
8985 (delete_breakpoint): Add appropriate check for pending.
8986 (breakpoint_re_set_one): Ditto.
8987 (do_enable_breakpoint): Ditto.
8988
8d577d32
DC
89892004-02-02 David Carlton <carlton@kealia.com>
8990
8991 * valops.c (enum oload_classification): New.
8992 (find_overload_match): Break implementation into separate
8993 functions; delete #if 0'd code; look for symbols within
8994 namespaces.
8995 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
8996 (find_oload_champ,oload_method_static,classify_oload_match): New.
8997 * cp-support.h: Add declaration for cp_func_name; update
8998 declaration for make_symbol_overload_list.
8999 * cp-support.c (cp_func_name): New.
9000 (overload_list_add_symbol): Fix comment, use
9001 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9002 (make_symbol_overload_list): Take a function name and a namespace
9003 instead of a symbol; change implementation.
9004 (make_symbol_overload_list_using): New.
9005 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9006
22e8e3c7
FF
90072004-02-02 Fred Fish <fnf@redhat.com>
9008
9009 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9010 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9011 * remote-sim.c (gdb_os_write_stderr): Write output to
9012 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9013 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9014 gdb_stderr stream and update copyright years.
22e8e3c7 9015
6b753f60
DJ
90162004-02-01 Daniel Jacobowitz <drow@mvista.com>
9017
9018 * Makefile.in (mips-linux-nat.o): Update dependencies.
9019 * mips-linux-nat.c: Include mips-tdep.h.
9020
90212004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9022
9023 * sol-thread.c (sol_thread_xfer_partial): New function.
9024 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9025 (init_sol_core_ops): Likewise.
9026
9027 * procfs.c (procfs_xfer_partial): New function.
9028 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9029 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9030
9031 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9032 procfs_xfer_auxv function.
9033
9034 * procfs.c (procfs_make_note_section): If we can read
9035 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9036 * linux-proc.c (linux_make_note_section): Likewise.
9037
9038 * auxv.h: New file.
9039 * auxv.c: New file.
9040 * Makefile.in (auxv_h): New variable.
9041 (COMMON_OBS): Add auxv.o here.
9042 (auxv.o): New target.
9043
9044 * corelow.c (core_xfer_partial): New function.
9045 (init_core_ops): Use it for core_ops.to_xfer_partial.
9046
9047 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9048 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9049 macro if that is defined.
9050
fa5281d0
DJ
90512004-02-01 Daniel Jacobowitz <drow@mvista.com>
9052
9053 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9054 and check the specified thread for each breakpoint.
9055 * breakpoint.h (bpstat_stop_status): Update prototype.
9056 * infrun.c (handle_inferior_event): Update calls to
9057 bpstat_stop_status.
9058
26ee262d
DJ
90592004-02-01 Daniel Jacobowitz <drow@mvista.com>
9060
9061 * Makefile.in (cli-cmds.o): Add $(readline_h).
9062
d9b52655
DJ
90632004-02-01 Daniel Jacobowitz <drow@mvista.com>
9064
9065 * cli/cli-cmds.c: Include readline.h.
9066 (complete_command): Pass the start of the last word to
9067 complete_line.
9068
9709f61c
DJ
90692004-01-31 Daniel Jacobowitz <drow@mvista.com>
9070
9071 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9072 argument, and change first argument to a CORE_ADDR.
9073 * breakpoint.h (bpstat_stop_status): Update prototype.
9074 * infrun.c (adjust_pc_after_break): Add a new comment.
9075 (handle_inferior_event): Update calls to bpstat_stop_status.
9076
4f1280bb
DJ
90772004-01-31 Daniel Jacobowitz <drow@mvista.com>
9078
9079 * breakpoint.h: Update copyright years.
9080
4fa8626c
DJ
90812004-01-31 Daniel Jacobowitz <drow@mvista.com>
9082
9083 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9084 (bpstat_stop_status): Don't decrement PC.
9085 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9086 prototype.
9087 * infrun.c (adjust_pc_after_break): New function.
9088 (handle_inferior_event): Call it, early. Remove later references
9089 to DECR_PC_AFTER_BREAK.
9090 (normal_stop): Add commentary.
9091
fad0733a
DJ
90922004-01-31 Daniel Jacobowitz <drow@mvista.com>
9093
9094 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9095 2004-01-27 double-free fix.
9096
42cdca6c
MK
90972004-01-31 Mark Kettenis <kettenis@gnu.org>
9098
9099 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9100 (sparc32_frame_prev_register): Handle StackGhost.
9101 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9102
932d5416
RM
91032004-01-29 Roland McGrath <roland@redhat.com>
9104
9105 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9106 * configure: Regenerated.
9107
9108 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9109 * Makefile.in (procfs.o): Add dep.
9110
47d3492a
AC
91112004-01-28 Andrew Cagney <cagney@redhat.com>
9112
9113 * tui/tui-stack.h: Update copyright.
9114 (struct frame_info): Add opaque declaration.
9115 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9116 (tui_show_locator_content): Rename tuiShowLocatorContent.
9117 (tui_show_frame_info): Rename tuiShowFrameInfo.
9118 * tui/tui-stack.c: Update copyright. Update references.
9119 * tui/tui-winsource.c: Update references.
9120 * tui/tui-win.c: Update references.
9121 * tui/tui-layout.c: Update references.
9122 * tui/tui-hooks.c: Update copyright, update references.
9123 * tui/tui.c: Update copyright, update references.
9124 * tui/tui-disasm.c: Update references.
9125
5d51ca54
DC
91262004-01-28 David Carlton <carlton@kealia.com>
9127
9128 * dwarf2read.c (add_partial_structure): Use demangled name if
9129 namespace equals "".
9130
086ed43d
JB
91312004-01-27 Jim Blandy <jimb@redhat.com>
9132
9133 Clean up misapplied patch:
9134 * dwarf2read.c (determine_prefix): Change one of the two forward
9135 declarations for 'determine_prefix_aux' to a declaration for this.
9136 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9137 argument to 'die_specification'.
9138
2a35147e
JB
9139 * dwarf2read.c (read_func_scope): Re-indent comment.
9140
a355c7de 91412004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 9142
a355c7de
AC
9143 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9144 b->exp to NULL after freeing so that error during re-parsing or
9145 evaluation of expressions associated with breakpoint don't
9146 eventually lead to re-freeing of storage.
9147 Committed by Andrew Cagney.
9148
63ff5125
AC
91492004-01-27 Andrew Cagney <cagney@redhat.com>
9150
9151 * source.c (ambiguous_line_spec): Delete undefined declaration.
9152 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9153 (m32r_set_server_address, m32r_set_download_path): Ditto.
9154 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9155
e142c38c
DJ
91562004-01-27 Daniel Jacobowitz <drow@mvista.com>
9157
9158 * dwarf2read.c: Update calls to changed and renamed functions, and
9159 references to moved variables.
9160
9161 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9162 language, language_defn, list_in_scope, and ftypes members.
9163 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9164 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9165 (baseaddr): Remove globals.
9166
9167 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9168 (set_cu_language, die_is_declaration, die_specification)
9169 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9170 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9171 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9172 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9173
9174 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9175 cu.list_in_scope. Don't initialize cu_header_offset.
9176 (add_partial_symbol): Add local baseaddr.
9177 (psymtab_to_symtab_1): Add local baseaddr. Use
9178 objfile->section_offsets for consistency. Don't initialize
9179 cu_header_offset; do initialize cu.header.offset and
9180 cu.list_in_scope.
9181 (read_file_scope, read_func_scope, read_lexical_block_scope)
9182 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9183
c6e06ede
MC
91842004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9185
fb328ecc 9186 * PROBLEMS: Add gdb/1516.
c6e06ede 9187
48184fd4
AC
91882003-12-29 Robert Millan <robertmh@gnu.org>
9189
9190 Patch committed by Andrw Cagney.
9191 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9192 * configure.tgt: Match knetbsd*-gnu.
9193
c1321b30
AC
91942004-01-26 Andrew Cagney <cagney@redhat.com>
9195
f3699be3
AC
9196 * breakpoint.c (catch_command_1): Delete #ifdef code.
9197 (catch_fork_command_1): Delete #ifdef wrapper.
9198 (catch_exec_command_1): Ditto.
9199 (catch_load_command_1): Ditto.
9200 (catch_unload_command_1): Ditto.
9201
c1321b30
AC
9202 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9203 (catch_breakpoint): Delete #if0ed function.
9204 (disable_catch_breakpoint): Ditto.
9205 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9206 (disable_catch, enable_catch, delete_catch): Ditto.
9207
b4501125
AC
92082004-01-26 Andrew Cagney <cagney@redhat.com>
9209
9210 * remote.c (echo_check, quit_flag): Delete variables.
9211 (cisco_kernel_mode): Delete variable.
9212 (minitelnet_return, tty_input, escape_count): Delete variables.
9213 (remote_cisco_mode): Delete variable.
9214 (remote_cisco_open, remote_cisco_close): Delete function.
9215 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9216 (init_remote_cisco_ops): Delete function.
9217 (_initialize_remote): Do not install "remote cisco" code.
9218 (read_frame): Delete cisco specific code.
9219 (remote_info_process): Delete function.
9220 (remote_wait): Delete cisco specific code.
9221 (remote_cisco_section_offsets): Delete function.
9222 (remote_cisco_objfile_relocate): Delete function.
9223 (remote_async_wait): Delete cisco specific code.
9224 (minitelnet, readtty, readsocket): Delete function.
9225
74055713
AC
92262004-01-26 Andrew Cagney <cagney@redhat.com>
9227
9228 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9229 comments mentioning extract_returned_value_address.
9230 * infcmd.c (print_return_value): Update. Add comments on
9231 extract_returned_value_address.
9232 * stack.c (return_command): Add comments on
9233 extract_returned_value_address.
9234 * values.c: Update comment.
9235 * m32r-tdep.c: Update comment.
9236 * sparc-tdep.c: Update comment.
9237 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9238 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9239 * sh64-tdep.c (sh64_gdbarch_init): Update.
9240 * sh-tdep.c (sh_gdbarch_init): Update.
9241 * s390-tdep.c (s390_gdbarch_init): Update.
9242 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9243 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9244 * m68k-tdep.c (m68k_gdbarch_init): Update.
9245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9246 * m32r-tdep.c (m32r_gdbarch_init): Update.
9247 * ia64-tdep.c (ia64_gdbarch_init): Update.
9248 * h8300-tdep.c (h8300_gdbarch_init): Update.
9249 * frv-tdep.c (frv_gdbarch_init): Update.
9250 * arm-tdep.c (arm_gdbarch_init): Update.
9251 * alpha-tdep.c (alpha_gdbarch_init): Update.
9252
a67af2b9
AC
92532004-01-26 Andrew Cagney <cagney@redhat.com>
9254
9255 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9256 SYMBOL_LOCATION_FUNCS
9257 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9258 "struct symbol_ops".
9259 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9260 type to "struct symbol_ops".
9261 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9262 (struct symbol): Replace ".aux_value.loc.funcs" and
9263 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9264 (SYMBOL_OBJFILE): Delete macro.
9265 (SYMBOL_LOCATION_FUNCS): Delete macro.
9266 (SYMBOL_LOCATION_BATON): Update.
9267 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9268 intead of SYMBOL_LOCATION_FUNCS.
9269 * ax-gdb.c (gen_var_ref): Ditto.
9270 * printcmd.c (address_info): Ditto.
9271 * findvar.c (read_var_value): Ditto.
9272 (symbol_read_needs_frame): Ditto.
9273
c034e007
AC
92742004-01-26 Andrew Cagney <cagney@redhat.com>
9275
9276 * dwarf2read.c (read_func_scope): Document frame-base hack.
9277
bb472c1e
MK
92782004-01-25 Mark Kettenis <kettenis@gnu.org>
9279
9280 * infcmd.c (print_return_value): Plug memory leak; delete
9281 ui_stream object. Rename argument `structure_return' to
9282 `struct_return'.
9283
c8e737d5
MK
92842004-01-25 Mark Kettenis <kettenis@gnu.org>
9285
f941662f
MK
9286 * infcmd.c (print_return_value): Wrap long lines.
9287 (finish_command_continuation, finish_command): Remove unused
9288 variable `funcaddr'. Fix some coding-standards problems.
9289
c558d81a 9290 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 9291 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
9292 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9293 TDEP->fpregset to zero.
9294
bf1e5861 9295 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
9296 floating-point registers for traditional NetBSD core files.
9297 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9298 TDEP->sizeof_fpregset here.
9299
4c72d57a
MK
93002004-01-25 Mark Kettenis <kettenis@gnu.org>
9301
566626fa
MK
9302 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9303 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9304 function with code split out from
9305 sparc32nbsd_sigcontext_frame_cache.
9306 (sparc32nbsd_sigcontext_frame_cache): Use
9307 sparc32nbsd_sigcontext_saved_regs.
9308 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9309 OpenBSD.
9310 * sparcobsd-tdep.c: New file.
9311 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9312 (sparcobsd-tdep.o): New dependency.
9313 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9314 * config/sparc/obsd.mt: New file.
9315
4c72d57a
MK
9316 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9317 TDEP->fpregset to be initialized to enable core file register
9318 sets.
9319
7e5e9f88
MK
93202004-01-24 Mark Kettenis <kettenis@gnu.org>
9321
f0f207fd 9322 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
9323 Add opaque declarations.
9324 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9325 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9326 function with code split out from
9327 sparc64nbsd_sigcontext_frame_cache.
9328 (sparc64nbsd_sigcontext_frame_cache): Use
9329 sparc64nbsd_sigcontext_saved_regs.
9330 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9331 OpenBSD.
9332 * sparc64obsd-tdep.c: New file.
9333 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9334 (sparc64obsd-tdep.o): New dependency.
9335 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9336 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9337 * config/sparc/obsd64.mt: New file.
9338
690668cc
MK
9339 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9340 read the instruction at PC.
9341
7e5e9f88
MK
9342 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9343 value of GDB_OSABI_DEFAULT.
9344 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9345 instead of GDB_OSABI_NETBSD_AOUT.
9346
68b6dce9
NR
93472004-01-24 Nick Roberts <nick@nick.uklinux.net>
9348
9349 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9350 copyright.
9351
080ce8c0
AC
93522004-01-23 Andrew Cagney <cagney@redhat.com>
9353
9354 * printcmd.c (display_command): Replace tui_set_display call with
9355 tui_set_layout_for_display_command.
9356 * tui/tui.h (enum tui_win_type): Define.
9357 (tui_set_layout): Delete declaration.
9358 (tui_set_layout_for_display_command): Rename set_tui_layout.
9359 * tui/tui-data.h (enum tui_layout_type): Define.
9360 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9361 "tui.h".
9362 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9363 (tui_default_win_height): Rename tuiDefaultWinHeight.
9364 (tui_default_win_viewport_height): Rename
9365 tuiDefaultWinViewportHeight.
9366 (tui_set_layout): RenametuiSetLayout.
9367 * tui/tui-layout.c: Update references.
9368 * tui/tui.c: Update references.
9369 * tui/tui-disasm.c: Update references.
9370
b368761e
DC
93712004-01-23 David Carlton <carlton@kealia.com>
9372
9373 Partial workaround for PR c++/1511:
9374 * cp-namespace.c: Include frame.h.
9375 (cp_lookup_transparent_type): New
9376 (cp_lookup_transparent_type_loop): New.
9377 * cp-support.h: Declare cp_lookup_transparent_type.
9378 * symtab.c (basic_lookup_transparent_type): Renamed from
9379 lookup_transparent_type.
9380 (lookup_transparent_type): Replace old body by a call to
9381 current_language->la_lookup_transparent_type.
9382 * symtab.h: Update copyright. Declare
9383 basic_lookup_transparent_type.
9384 * language.h: Update copyright.
9385 (struct language_defn): Add la_lookup_transparent_type.
9386 * language.c: Update copyright.
9387 (unknown_language_defn): Add basic_lookup_transparent_type.
9388 (auto_language_defn): Add basic_lookup_transparent_type.
9389 (local_language_defn): Add basic_lookup_transparent_type.
9390 * ada-lang.c: Update copyright.
9391 (ada_language_defn): Add basic_lookup_transparent_type.
9392 * c-lang.c: Update copyright.
9393 (c_language_defn): Add basic_lookup_transparent_type.
9394 (cplus_language_defn): Add basic_lookup_transparent_type.
9395 (asm_language_defn): Add basic_lookup_transparent_type.
9396 (minimal_language_defn): Add basic_lookup_transparent_type.
9397 * f-lang.c: Update copyright.
9398 (f_language_defn): Add basic_lookup_transparent_type.
9399 * jv-lang.c: Update copyright.
9400 (java_language_defn): Add basic_lookup_transparent_type.
9401 * m2-lang.c: Update copyright.
9402 (m2_language_defn): Add basic_lookup_transparent_type.
9403 * objc-lang.c: Update copyright.
9404 (objc_language_defn): Add basic_lookup_transparent_type.
9405 * p-lang.c: Update copyright.
9406 (p_language_defn): Add basic_lookup_transparent_type.
9407 * scm-lang.c: Update copyright.
9408 (scm_language_defn): Add basic_lookup_transparent_type.
9409 * Makefile.in (cp-namespace.o): Depend on frame.h.
9410
fdde2d81
DC
94112004-01-23 David Carlton <carlton@kealia.com>
9412
9413 Patch for PR c++/1520:
9414 * dwarf2read.c (read_func_scope): Set processing_current_prefix
9415 properly if we have a specification die.
9416 (determine_prefix_aux): Rename from determine_prefix.
9417 (determine_prefix): Like the old determine_prefix, but never
9418 returns NULL.
9419
5b828b6b
TR
94202004-01-23 Theodore A. Roth <troth@openavr.org>
9421
9422 * avr-tdep.c: Update copyright.
9423 (avr_iaddr_p): Delete unused function.
9424 (avr_saddr_p): Delete unused function.
9425
a1b8c067
DC
94262004-01-23 David Carlton <carlton@kealia.com>
9427
9428 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
9429 Fix for PR symtab/1534.
9430
f2cab569
MK
94312004-01-23 Mark Kettenis <kettenis@gnu.org>
9432
9433 * NEWS (New native configurations): Mention OpenBSD/sparc and
9434 OpenBSD/sparc64.
9435 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
9436 * configure.host: Likewise.
9437 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
9438 handler for OpenBSD.
9439 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
9440
642d8300
MK
94412004-01-22 Mark Kettenis <kettenis@gnu.org>
9442
89aac506
MK
9443 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
9444 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
9445
36662fde
MK
9446 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
9447 * cli/cli-cmds.c (shell_escape): Likewise.
9448
642d8300
MK
9449 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
9450 OpenBSD .note.openbsd.ident sections.
9451
fae299cd
DC
94522004-01-22 David Carlton <carlton@kealia.com>
9453
9454 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
9455 get_scope_pc_bounds.
9456 (read_file_scope): Ditto.
9457 (get_scope_pc_bounds): New function, produced by extracting code
9458 from the above two functions, consolidating it, and adding support
9459 for DW_TAG_namespace.
9460
a49d618c
MK
94612004-01-22 Mark Kettenis <kettenis@gnu.org>
9462
9463 * osabi.c (MAX_NOTESZ): New define.
9464 (check_note): New function.
9465 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
9466 check_note.
9467
fe61caab
RM
94682004-01-21 Roland McGrath <roland@redhat.com>
9469
9470 * MAINTAINERS (write after approval): Add myself.
9471
ec145965
EZ
94722004-01-21 Eli Zaretskii <eliz@gnu.org>
9473
9474 * utils.c (init_page_info): Move declarations of `rows' and
9475 `cols' before the __GO32__-specific code. Move the closing brace
9476 outside the #ifdef __GO32__..#endif block.
9477 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
9478
877522db
PB
94792004-01-21 Paul Brook <paul@codesourcery.com>
9480
9481 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
9482 BPSTAT_WHAT_CHECK_SHLIBS.
9483
dbf5be1c
PB
94842004-01-21 Paul Brook <paul@codesourcery.com>
9485
9486 * MAINTAINERS: Add myself to write-after-approval.
9487
81f08b92
AC
94882004-01-20 Andrew Cagney <cagney@redhat.com>
9489
5a1efed7
AC
9490 * ax-gdb.c (print_axs_value): Delete unused function.
9491 * jv-lang.c (java_lookup_type): Delete unused function.
9492 * cli/cli-dump.c (dump_filetype): Delete unused function.
9493 * remote-mips.c (remote_mips_insert_hw_breakpoint)
9494 (remote_mips_remove_hw_breakpoint): Delete unused functions.
9495 (mips_getstring): Delete unused function.
9496 (pmon_insert_breakpoint): Delete #if0ed function.
9497 (PMON_MAX_BP): Delete #if0ed MACRO.
9498 (mips_pmon_bp_info): Delete #if0ed variable.
9499 (pmon_remove_breakpoint): Delete #if0ed function.
9500 * monitor.c (monitor_write_even_block): Delete unused function.
9501 (monitor_write_memory_block): Delete #if0ed code.
9502 * dink32-rom.c (dink32_load): Delete unused function.
9503 (_initialize_dink32_rom): Delete #if0ed code.
9504 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
9505
b0a30fce
AC
9506 * tui/tui-command.c: Update references.
9507 * tui/tui-io.c: Update references.
9508 * tui/tui-command.h: Update copyright.
9509 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
9510
81f08b92
AC
9511 * source.c (ambiguous_line_spec): Delete never-defined function.
9512 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
9513 * gdbtypes.c (add_name, add_mangled_type): Ditto.
9514 * cli/cli-cmds.c (validate_comname): Ditto.
9515
65f05602
AC
9516 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
9517 "tui-data.h".
9518 (tui_set_disassem_content): Rename tuiSetDisassemContent.
9519 (tui_show_disassem): Rename tuiShowDisassem.
9520 (tui_show_disassem_and_update_source): Rename
9521 tuiVerticalDisassemScroll.
9522 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
9523 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
9524 * tui/tui.h: Update copyright.
9525 (enum tui_status): Define.
9526 * tui/tui-data.h (enum tui_scroll_direction): Define.
9527 * tui/tui-disasm.c: Update copyright. Update references.
9528 * tui/tui-winsource.c: Update copyright. Update references.
9529 * tui/tui-win.c: Update references.
9530 * tui/tui-layout.c: Update references.
9531
6bb0384f
AC
95322004-01-20 Andrew Cagney <cagney@redhat.com>
9533
9534 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
9535 sym2 to start of block.
9536
9175c9a3
MC
95372004-01-19 Michael Chastain <mec.gnu@mindspring.com>
9538
9539 * MAINTAINERS: Delete mmalloc.
9540 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
9541 * NEWS: Mention removal of --with-malloc.
9542 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
9543 * config.in: Regenerate.
9544 * configure: Regenerate.
6bb0384f
AC
9545 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
9546 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
9547 * gdbinit.in: Remove mmalloc.
9548 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
9549 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
9550 * config/i386/go32.mh: Likewise.
9551 * config/i386/interix.mh: Likewise.
9552 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
9553
4fcef00a
JJ
95542004-01-19 Jeff Johnston <jjohnstn@redhat.com>
9555
9556 * linespec.c (decode_variable, symtab_from_filename): Call
9557 error_silent with error message instead of throwing an exception
9558 directly.
9559 * defs.h (error_silent, error_output_message): Add prototypes.
9560 (catch_exceptions_with_msg): Ditto.
9561 * utils.c (error_silent, error_output_message): New functions.
9562 * top.c (catch_exceptions_with_msg): New function.
9563
8e94b928
NR
95642004-01-20 Nick Roberts <nick@nick.uklinux.net>
9565
9566 * mi/mi-cmds.h (enum print_values): Add definition.
9567
9568 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
9569 type and value for simple data types and just the name and type
9570 for complex ones, if required.
9571
9572 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
9573 children, if required.
9574
a02d6af8
KB
95752004-01-19 Kevin Buettner <kevinb@redhat.com>
9576
9577 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
9578 unused declarations.
9579
78a4a9b9
AC
95802004-01-19 Andrew Cagney <cagney@redhat.com>
9581
9582 * top.h (mapped_symbol_files): Delete declaration.
9583 * main.c (captured_main): Delete option "m" and "mapped".
9584 * objfiles.c (mapped_symbol_files): Delete variable.
9585 * symfile.c (symbol_file_command): Delete mmap code.
9586 (symbol_file_add_with_addrs_or_offsets): Ditto.
9587 (add_symbol_file_command, reread_separate_symbols): Ditto.
9588 * objfiles.h (OBJF_MAPPED): Delete.
9589 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
9590 (free_objfile) [USE_MMALLOC]: Ditto.
9591 (open_existing_mapped_file): Delete function.
9592 (open_mapped_file): Delete function.
9593 (map_to_file): Delete function.
9594
2dbd5e30
KB
95952004-01-19 Kevin Buettner <kevinb@redhat.com>
9596
9597 * infrun.c (step_into_function): Account for possible breakpoint
9598 adjustment when computing ``stop_func_start''.
9599
437b434f
KB
96002004-01-19 Kevin Buettner <kevinb@redhat.com>
9601
9602 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
9603 the region size against the size of a pointer, not the size of
9604 a register as given by DEPRECATED_REGISTER_SIZE.
9605
55fb0713
AC
96062004-01-19 Andrew Cagney <cagney@redhat.com>
9607
9608 * tui/tui-regs.h: Include "tui-data.h".
9609 (tuiFirstRegElementNoInLine): Delete declaration.
9610 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
9611 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
9612 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
9613 (tui_calculate_regs_column_count): Rename
9614 tuiCalculateRegsColumnCount.
9615 (tui_check_register_values): Rename tuiCheckRegisterValues.
9616 (tui_show_registers): Rename tuiShowRegisters.
9617 (tui_display_registers_from_line): Rename
9618 tuiDisplayRegistersFromLine.
9619 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
9620 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
9621 (tui_first_reg_element_no_inline): Rename
9622 tuiFirstRegElementNoInLine.
9623 * tui/tui-data.h: Update copyright.
9624 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
9625 * tui/tui-windata.c: Update copyright, update references.
9626 * tui/tui-regs.c: Update copyright, update references.
9627 * tui/tui-win.c: Update copyright, update references.
9628 * tui/tui-layout.c: Update copyright, update references.
fe61caab 9629
cebe9500
AC
96302004-01-18 Andrew Cagney <cagney@redhat.com>
9631
bcdf1568
AC
9632 * tui/tui-io.c: Update copyright.
9633 (key_is_end_sequence, key_is_backspace): New functions.
9634 (key_is_command_char, key_is_start_sequence): New function.
9635 (tui_getc): Update references.
9636 * tui/tui-io.h: Update copyright.
9637 (m_tuiStartNewLine): Delete macro.
9638 (m_isBackspace, m_isDeleteChar): Delete macros.
9639 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
9640 (m_isNextPage, m_isPrevPage): Delete macros.
9641 (m_isLeftArrow, m_isRightArrow): Delete macros.
9642 (m_isXdbStyleCommandChar): Delete macro.
9643 (key_is_start_sequence): Declare, replace m_isStartSequence.
9644 (key_is_end_sequence): Declare, replace m_isEndSequence.
9645 (key_is_backspace): Declare ,replace m_isBackspace.
9646 (key_is_command_char): Declare, replace m_isCommandChar.
9647 * tui/tui-command.c: Update copyright.
9648 (tuiDispatchCtrlChar): Update references.
9649
130d87e6
AC
9650 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
9651 tuiSourceWin.h.
9652
d7b2e967
AC
9653 * tui/tui-command.c: Rename tui/tuiCommand.c.
9654 * tui/tui-command.h: Rename tui/tuiCommand.h.
9655 * tui/tui-data.c: Rename tui/tuiData.c.
9656 * tui/tui-data.h: Rename tui/tuiData.h.
9657 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
9658 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
9659 * tui/tui-io.c: Rename tui/tuiIO.c.
9660 * tui/tui-io.h: Rename tui/tuiIO.h.
9661 * tui/tui-layout.c: Rename tui/tuiLayout.c.
9662 * tui/tui-layout.h: Rename tui/tuiLayout.h.
9663 * tui/tui-regs.c: Rename tui/tuiRegs.c.
9664 * tui/tui-regs.h: Rename tui/tuiRegs.h.
9665 * tui/tui-source.c: Rename tui/tuiSource.c.
9666 * tui/tui-source.h: Rename tui/tuiSource.h.
9667 * tui/tui-stack.c: Rename tui/tuiStack.c.
9668 * tui/tui-stack.h: Rename tui/tuiStack.h.
9669 * tui/tui-win.c: Rename tui/tuiWin.c.
9670 * tui/tui-win.h: Rename tui/tuiWin.h.
9671 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
9672 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
9673 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
9674 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
9675 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
9676 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
9677 * tui/tui-file.c: Update includes.
9678 * tui/tui-hooks.c: Update includes.
9679 * tui/tui-interp.c: Update includes.
9680 * tui/tui.c: Update includes.
9681 * Makefile.in: Update all tui/ dependencies.
9682 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
9683
b2100910
AC
9684 * Makefile.in: Update copyright. Update dependencies.
9685
cebe9500
AC
9686 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
9687 problem.
9688
c6f0559b
AC
96892004-01-18 Andrew Cagney <cagney@redhat.com>
9690
43e9390b
AC
9691 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
9692 instead of register_gdbarch_init.
9693
c6f0559b
AC
9694 * remote-sds.c (tohex): Delete unused function. Update copyright.
9695 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
9696 * v850-tdep.c (v850_register_virtual_size): Ditto.
9697 * target.c (normal_target_post_startup_inferior): Ditto.
9698 * source.c (ambiguous_line_spec): Ditto.
9699 * remote.c (adapt_remote_get_threadinfo): Ditto.
9700 * mi/mi-out.c (out_field_fmt): Ditto.
9701 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
9702 (output_control_change_notification): Ditto.
9703 * m68k-tdep.c (m68k_register_byte): Ditto.
9704 (m68k_remote_breakpoint_from_pc): Ditto.
9705 * ui-out.c (init_ui_out_state): Delete unused declaration.
9706 * stabsread.c (search_value): Ditto.
9707 * mi/mi-cmd-env.c (env_cli_command): Ditto.
9708 * maint.c (print_section_table): Ditto.
9709 * infrun.c (set_follow_fork_mode_command): Ditto.
9710
a8504492
MK
97112004-01-18 Mark Kettenis <kettenis@gnu.org>
9712
9713 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
9714 DW_CFA_def_cfa_exporession. Add support for
9715 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
9716 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
9717
0bd8997e
AC
97182004-01-18 Andrew Cagney <cagney@redhat.com>
9719
9720 * ocd.c: Update copyright.
9721 (bdm_read_register_command): Delete unused function.
9722 (_initialize_remote_ocd): Delete commented out reference.
9723 (get_quoted_char, reset_packet): Delete #if0ed function.
9724 (output_packet, put_quoted_char): Delete #if0ed function.
9725 (stu_put_packet, stu_get_packet): Delete #if0ed function.
9726 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
9727 (BDM_BREAKPOINT): Delete #if0ed macro.
9728 (remote_timeout): Delete #if0ed variable.
9729
31bb40e4
MK
97302004-01-18 Mark Kettenis <kettenis@gnu.org>
9731
9732 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
9733 (core-sol2.o): Remove dependency.
9734 * core-sol2.c: Remove file.
9735
887432a5
AC
97362004-01-17 Andrew Cagney <cagney@redhat.com>
9737
9738 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
9739 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
9740 enums.
9741
29182b13
DJ
97422004-01-17 Daniel Jacobowitz <drow@mvista.com>
9743
9744 * remote.c: Update copyright years.
9745
2963ee1d
DJ
97462004-01-17 Daniel Jacobowitz <drow@mvista.com>
9747
9748 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
9749
79d45cd4
AC
97502004-01-17 Andrew Cagney <cagney@redhat.com>
9751
ee300cd4
AC
9752 * mdebugread.c: Update copyright.
9753 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
9754 (parse_type, parse_procedure): Ditto.
9755 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
9756
fcacc9c2
AC
9757 * cris-tdep.c (cris_store_struct_return): Put back accidently
9758 deleted function.
9759
79d45cd4
AC
9760 * gdbarch.sh: Update copyright year.
9761 * gdbarch.h, gdbarch.c: Re-generate.
9762
b263358a
DJ
97632004-01-17 Daniel Jacobowitz <drow@mvista.com>
9764
9765 Suggested by George Anzinger.
9766 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
9767 correct stack offset. Include unknown opcode numbers in the error
9768 message.
9769
931aecf5
AC
97702004-01-17 Andrew Cagney <cagney@redhat.com>
9771
9772 * x86-64-tdep.c (x86_64_init_abi): No need to clear
9773 extract_struct_value_address, i386 does not set it.
9774 * sparc64-tdep.c (sparc64_init_abi): Do not set
9775 extract_struct_value_address, never called.
9776 (sparc64_extract_struct_value_address): Delete function.
9777 * m68hc11-tdep.c: Update copyright.
9778 (m68hc11_gdbarch_init): Delete redundant assignment of
9779 extract_struct_value_address.
9780 * i386-tdep.c: Update copyright.
9781 (i386_gdbarch_init): Do not set extract_struct_value_address,
9782 never called.
9783 (i386_extract_struct_value_address): Delete function.
9784 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
9785 extract_struct_value_address, never called.
9786 (sparc32_extract_struct_value_address): #if 0 function. Add
9787 comments explaining its future.
9788
756fe439
DJ
97892004-01-17 Daniel Jacobowitz <drow@mvista.com>
9790
9791 * arm-tdep.c (arm_write_pc): New function.
9792 (arm_gdbarch_init): Call set_gdbarch_write_pc.
9793
e74f0f02
DJ
97942004-01-17 Daniel Jacobowitz <drow@mvista.com>
9795
9796 * breakpoint.c (must_shift_inst_regs): Delete.
9797 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
9798 and SHIFT_INST_REGS.
9799 * infcmd.c (step_1, step_1_continuation): Delete references to
9800 SHIFT_INST_REGS.
9801 * infrun.c (keep_going): Likewise.
9802 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
9803 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
9804
b6cb9035
AC
98052004-01-17 Andrew Cagney <cagney@redhat.com>
9806
444a1e2e
AC
9807 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9808 * gdbarch.h, gdbarch.c: Re-generate.
9809 * infcmd.c (print_return_value): Delete reference to
9810 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
9811
def7e6ed
AC
9812 * cris-tdep.c (cris_gdbarch_init): Do not set
9813 deprecated_extract_struct_value_address.
9814
07be497a
AC
9815 * xstormy16-tdep.c: Update copyright.
9816 (xstormy16_extract_struct_value_address): Update to current
9817 extract struct value address interface.
9818 (xstormy16_gdbarch_init): Set extract_struct_value_address.
9819 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
9820 current extract struct value address interface.
9821 (sh64_gdbarch_init): Set extract_struct_value_address.
9822
6b4d5c91
AC
9823 * cris-tdep.c: Update copyright.
9824 (cris_extract_struct_value_address): Delete function.
9825 (struct_return_address): Delete variable.
9826 (cris_store_struct_return): Do not set struct_return_address.
9827
464e0365
AC
9828 * mcore-tdep.c: Update copyright.
9829 (mcore_extract_struct_value_address): Delete function. Update
9830 comments.
9831 (mcore_gdbarch_init): Update.
9832 * mn10300-tdep.c: Update copyright.
9833 (mn10300_extract_struct_value_address): Delete function.
9834 (mn10300_gdbarch_init): Update.
9835 * v850-tdep.c: Update copyright.
9836 (v850_extract_struct_value_address): Delete.
9837 (v850_gdbarch_init): Update.
9838 * ns32k-tdep.c: Update copyright.
9839 (ns32k_extract_struct_value_address): Delete.
9840 (ns32k_gdbarch_init): Update.
9841 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
9842 (hppa_gdbarch_init): Update.
9843 * vax-tdep.c: Update copyright.
9844 (vax_extract_struct_value_address): Delete.
9845 (vax_gdbarch_init): Update.
9846
afb18d0f
AC
9847 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
9848 * gdbarch.h, gdbarch.c: Re-generate.
9849 * procfs.c (procfs_fetch_registers): Delete reference to
9850 DEPRECATED_NPC_REGNUM.
9851 (procfs_store_registers): Ditto.
9852 * regcache.c (generic_target_write_pc): Simplify.
9853 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
9854
a698f53e
AC
9855 * core-sol2.c (fetch_core_registers): Replace
9856 DEPRECATED_NPC_REGNUM with equivalent tdep value.
9857
adc11376
AC
9858 * hppa-tdep.c: Update copyright year.
9859 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
9860 NPC_REGNUM.
9861 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
9862
b6cb9035
AC
9863 * mips-tdep.c (mips_write_pc): New function.
9864 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
9865 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
9866 (mips_find_saved_regs, mips_software_single_step: Ditto.
9867 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
9868 mips_init_extra_frame_info, mips_pop_frame): Ditto.
9869
6d82d43b
AC
98702004-01-17 Andrew Cagney <cagney@redhat.com>
9871
9872 * mips-tdep.c: Re-indent. Group functions by ABI.
9873
71bd6bd4
AC
98742004-01-17 Andrew Cagney <cagney@redhat.com>
9875
9876 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
9877 * gdbarch.c: Re-generate.
9878 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9879 DECR_PC_AFTER_BREAK to zero.
9880 * vax-tdep.c (vax_gdbarch_init): Ditto.
9881 * v850-tdep.c (v850_gdbarch_init): Ditto.
9882 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
9883 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
9884 * sh-tdep.c (sh_gdbarch_init): Ditto.
9885 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9886 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9887 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9888 * mips-tdep.c (mips_gdbarch_init): Ditto.
9889 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9891 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
9892 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9893 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9894 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9895 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9896 * frv-tdep.c (frv_gdbarch_init): Ditto.
9897 * cris-tdep.c (cris_gdbarch_init): Ditto.
9898 * avr-tdep.c (avr_gdbarch_init): Ditto.
9899 * arm-tdep.c (arm_gdbarch_init): Ditto.
9900 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
9901
a02abb62
JB
99022004-01-17 J. Brobecker <brobecker@gnat.com>
9903
9904 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
9905 Delete, no longer used.
9906 (read_subrange_type): New function, mostly extracted from
9907 read_array_type().
9908 (read_array_type): Replace extracted code by call to
9909 read_subrange_type().
9910 (dwarf2_get_attr_constant_value): New function.
9911 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
9912 (add_partial_symbol): Likewise.
9913 (process_die): Likewise.
9914 (new_symbol): Likewise.
9915 (read_type_die): Likewise.
9916
cf5b2f1b
AC
99172004-01-16 Andrew Cagney <cagney@redhat.com>
9918
9919 * symfile.c: Update copyright year.
9920 (compare_symbols): Delete unused function.
9921 * stabsread.c: Update copyright year.
9922 (lrs_general_complaint): Delete unused function.
9923 (ref_search_value): Ditto.
9924 (get_substring): Delete declaration.
9925 * sh64-tdep.c: Update copyright year.
9926 (sh64_get_gdb_regnum): Delete unused function.
9927 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
9928 Delete unused function.
9929
d33b9831
MK
99302004-01-17 Mark Kettenis <kettenis@gnu.org>
9931
9932 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
9933 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
9934
7aea86e6
AC
99352004-01-16 Andrew Cagney <cagney@redhat.com>
9936
9937 Changes from Peter Schauer.
9938 * rs6000-tdep.c: Update copyright year.
9939 (rs6000_push_dummy_call): Update the stack pointer before
9940 accessing the corresponding stack region.
9941 * rs6000-nat.c: Update copyright year.
9942 (set_host_arch): Set "info.abfd" to "exec_bfd".
9943
26b0da32
MK
99442004-01-15 Mark Kettenis <kettenis@gnu.org>
9945
9946 * blockframe.c: Update copyright year.
9947 (inside_entry_func): Don't treat a zero PC specially.
9948
86fbe6cc
EZ
99492004-01-14 Elena Zannoni <ezannoni@redhat.com>
9950
9951 * gcore.c (gcore_copy_callback): Use paddr_d to print size
9952 variable.
9953 (gcore_create_callback): Ditto. Skip any memory segment that has
9954 no permissions set.
9955
63d06c5c
DC
99562004-01-14 David Carlton <carlton@kealia.com>
9957
9958 Change symbols for C++ nested types to contain the fully qualified
9959 name, if possible. (At least in the DWARF-2 case.) Partial fix
9960 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
9961 c++/895.
9962 * c-exp.y (qualified_type): Handle types nested within classes.
9963 * cp-namespace.c: Update comments.
9964 (cp_set_block_scope): Delete #if 0.
9965 (cp_lookup_nested_type): Handle types nested within classes.
9966 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
9967 when appropriate.
9968 (add_partial_symbol): Add the name of the enclosing namespace to
9969 types.
9970 (pdi_needs_namespace): New.
9971 (add_partial_namespace): Tweak comment.
9972 (add_partial_structure): New.
9973 (psymtab_to_symtab_1): Initialize processing_current_prefix
9974 here...
9975 (process_die): instead of here.
9976 (read_structure_scope): Try to figure out the name of the class or
9977 namespace that the structure might be defined within.
9978 (read_enumeration): Generate fully-qualified names, if possible.
9979 (read_namespace): Don't set name to NULL.
9980 (die_specification): New.
9981 (new_symbol): Generate fully-qualified names for types.
9982 (read_type_die): Determine appropriate prefix.
9983 (determine_prefix): New.
9984 (typename_concat): New.
9985 (class_name): New.
9986 * valops.c (value_aggregate_elt): Pass NOSIDE to
9987 value_struct_elt_for_reference.
9988 (value_struct_elt_for_reference): Make static, add NOSIDE
9989 parameter, call value_maybe_namespace_elt as a last resort.
9990 (value_namespace_elt): Break out code into
9991 value_maybe_namespace_elt.
9992 (value_maybe_namespace_elt): New.
9993
87783b8b
AC
99942004-01-12 Andrew Cagney <cagney@redhat.com>
9995
9996 * mips-tdep.c (mips_convert_register_p): Handle both raw and
9997 cooked floating-point registers.
9998 (mips_gdbarch_init): Set convert_register_p, register_to_value,
9999 and value_to_register.
10000
6503b91e
AC
100012004-01-13 Andrew Cagney <cagney@redhat.com>
10002
10003 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10004 * gdbarch.c: Re-generate.
10005 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10006 FUNCTION_START_OFFSET.
10007 * v850-tdep.c (v850_gdbarch_init): Ditto.
10008 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10009 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10010 * sh-tdep.c (sh_gdbarch_init): Ditto.
10011 * s390-tdep.c (s390_gdbarch_init): Ditto.
10012 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10013 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10014 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10015 * mips-tdep.c (mips_gdbarch_init): Ditto.
10016 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10017 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10018 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10019 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10020 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10021 * i386-tdep.c (i386_gdbarch_init): Ditto.
10022 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10023 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10024 * frv-tdep.c (frv_gdbarch_init): Ditto.
10025 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10026 * cris-tdep.c (cris_gdbarch_init): Ditto.
10027 * avr-tdep.c (avr_gdbarch_init): Ditto.
10028 * arm-tdep.c (arm_gdbarch_init): Ditto.
10029 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10030
ea1dd7bc
DJ
100312004-01-13 Daniel Jacobowitz <drow@mvista.com>
10032
10033 * infrun.c (follow_fork_mode_ask): Remove.
10034 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10035 (follow_fork): Simplify and remove internal error for
10036 follow_fork_mode_ask.
10037 (_initialize_infrun): Update "set follow-fork-mode" help text.
10038
0f0cffd2
AC
100392004-01-13 Andrew Cagney <cagney@redhat.com>
10040
10041 * configure.in: Update copyright year.
10042 (build_warnings): Add -Wunused-label.
10043 * configure: Re-generate.
10044
de38af99
AC
100452004-01-12 Andrew Cagney <cagney@redhat.com>
10046
954a7fba
AC
10047 * exec.h (exec_ops): Make "extern".
10048
de38af99
AC
10049 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10050 the function is void.
10051 (mips_pseudo_register_write): Ditto.
10052
1a111ce3
AC
100532004-01-12 Andrew Cagney <cagney@redhat.com>
10054
10055 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10056 call. Never defined.
10057 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10058 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10059 (struct sparc_gregset, struct regcache): Ditto.
10060 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10061
48efe704
AC
100622004-01-12 Andrew Cagney <cagney@redhat.com>
10063
10064 * mi/ChangeLog: Delete file. Renamed to ...
10065 * mi/ChangeLog-1999-2003: New file.
10066 * tui/ChangeLog: Delete file. Renamed to ...
10067 * tui/ChangeLog-1998-2003: New file.
fe61caab 10068
a54124c5
MK
100692004-01-11 Mark Kettenis <kettenis@gnu.org>
10070
2ca62865
MK
10071 * sparc64nbsd-tdep.c: Include "regset.h".
10072 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10073 Remove variables.
10074 (fetch_core_registers): Remove function.
10075 (sparc64nbsd_core_fns): Remove variable.
10076 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10077 functions.
10078 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10079 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10080 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10081
ca9d58e9
MK
10082 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10083 sparc_extract_struct_value_address.
10084 (sparc32_gdbarch_init): Set extract_struct_value_address.
10085 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10086 function.
10087 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10088 return_value_on_stack.
10089
3cc87ec0
MK
10090 * NEWS: Mention that %cs and %ss have been added to the AMD64
10091 configurations
10092
5bf00f29
MK
10093 * frame.c: Update copyright year.
10094 (get_prev_frame): Improve comment.
10095
4f7ec84e
MK
10096 * sparc64fbsd-tdep.c: Include "regset.h".
10097 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10098 Remove variables.
10099 (fetch_core_registers): Remove function.
10100 (sparc64fbsd_core_fns): Remove variable.
10101 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10102 functions.
10103 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10104 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 10105 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 10106
4e7b0cd3
MK
10107 * sparcnbsd-tdep.c: Include "regset.h".
10108 (fetch_core_registers): Remove function.
10109 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10110 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10111 functions.
10112 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10113 TDEP->fpregset.
46b58ce9 10114 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 10115
a54124c5
MK
10116 * sparc-tdep.h (struct regset): Provide opaque declaration.
10117 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10118 fpregset and sizeof_fpregset members.
10119 * sparc-tdep.c (struct regset): Provide opaque declaration.
10120 (sparc_regset_from_core_section): New function.
10121 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10122 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10123 Set regset_from_core_section when appropriate.
10124
29ff87c5
MK
101252004-01-10 Mark Kettenis <kettenis@gnu.org>
10126
79b1ab3d
MK
10127 * x86-64-tdep.c (amd64_non_pod_p): New function.
10128 (amd64_classify_aggregate): Return class memory for non-POD
10129 C++ structure types.
10130
6470d250
MK
10131 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10132 argument. Use it to reserve a register if necessary.
10133 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10134 amd64_push_arguments.
10135
562c50c2
MK
10136 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10137
af233647
MK
10138 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10139 register numbers in comments.
10140 * x86-64-tdep.h: Update copyright year.
10141 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10142 Adjust for addition of %cs and %ss.
10143 * amd64fbsd-nat.c: Update copyright year.
10144 (reg_offset): Add register offsets for %cs and %ss.
10145 * amd64fbsd-tdep.c: Update copyright year.
10146 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10147 (amd64fbsd_sc_reg_offset): Likewise.
10148 * x86-64-linux-nat.c: Update copyright year.
10149 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10150 and %ss.
10151 * amd64nbsd-nat.c: Update copyright year.
10152 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10153 * amd64nbsd-tdep.c: Update copyright year.
10154 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10155 * x86-64-linux-tdep.c: Update copyright year.
10156 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10157 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10158 * regformats/reg-x86-64.dat: Add %cs and %ss.
10159
29ff87c5
MK
10160 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10161 variables to prevent long lines. Update comments to reflect
10162 reality.
10163
38d518c9
EZ
101642004-01-09 David Carlton <carlton@kealia.com>
10165
10166 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10167 * dwarf2read.c (read_namespace): Pull out name-generating code
10168 into namespace_name. Rename previous_namespace to previous_prefix
10169 and processing_current_namespace to processing_current_prefix..
10170 (namespace_name): New function.
10171 (add_partial_symbol): Substitute uses of pdi->name with
10172 actual_name.
10173 * cp-support.h: Rename processing_current_namespace to
10174 processing_current_prefix.
10175 Update copyright year.
10176 * cp-namespace.c: Rename processing_current_namespace to
10177 processing_current_prefix.
10178 Update copyright year.
fe61caab 10179
1e4728e7
AC
101802004-01-09 Andrew Cagney <cagney@redhat.com>
10181
10182 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10183
c77c642a
MK
101842004-01-09 Mark Kettenis <kettenis@gnu.org>
10185
10186 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10187 complaining.
10188 (process_one_symbol): Deal with N_PATCH stabs.
10189
b44e9041
EZ
101902004-01-09 Elena Zannoni <ezannoni@redhat.com>
10191
10192 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10193 ifdeffed code.
10194 Update copyright year.
38d518c9 10195
eccfb640
MC
101962004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10197
10198 * config/pa/tm-hppa.h: Update extern declarations for
10199 hppa32_hpux_frame_saved_pc_in_sigtramp,
10200 hppa32_hpux_frame_base_before_sigtramp, and
10201 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10202
848c5feb
MC
102032004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10204
10205 * config/pa/tm-hppah.h: Update copyright years.
10206
3cc5d663
AC
102072004-01-08 Andrew Cagney <cagney@redhat.com>
10208
10209 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10210 (mips_o32_reg_struct_has_addr): Delete function.
10211 (mips_gdbarch_init): Update.
10212 (mips_extract_struct_value_address): Delete function.
10213
bfec0b41
JJ
102142004-01-08 David Mosberger <davidm@hpl.hp.com>
10215
10216 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10217 reality.
10218
16e109ca
AC
102192004-01-07 Andrew Cagney <cagney@redhat.com>
10220
6214a8a1
AC
10221 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10222 architecture's elf flags (when available).
10223
8d5838b5
AC
10224 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10225 FPU to the start, check the MIPS FPU when looking for an old
10226 architecture.
10227 (set_mipsfpu_single_command): Update the architecture.
10228 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10229
480d3dd2
AC
10230 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10231 (mips_mask_address_p): Add "tdep" parameter.
10232 (show_mask_address, mips_addr_bits_remove): Update.
10233 (mips_dump_tdep): Update.
10234 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10235 (MIPS_STACK_ARGSIZE): Delete macro.
10236 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10237 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10238 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10239 (mips_dump_tdep): Update.
10240 (MIPS_SAVED_REGSIZE): Delete macro.
10241 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10242 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10243 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10244 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10245 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10246 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10247 (mips_pop_frame, return_value_location): Update.
10248 (mips_n32n64_return_value, mips_dump_tdep): Update.
10249
ec03c1ac
AC
10250 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10251 MIPS ABI.
10252
16e109ca
AC
10253 * mips-tdep.c: Update copyright.
10254 (mips_gdbarch_init): Merge two code blocks handling the register
10255 name and number layout.
10256
15255275
MS
102572004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10258
10259 * tracepoint.c (validate_actionline): Fix segv at EOF
10260
9f9057da
MC
102612004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10262
10263 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10264 properly for static fields.
10265
0127c0d3 102662004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 10267 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
10268
10269 * disasm.c: Update copyright to include 2004.
10270 (do_mixed_source_and_assembly): For uiout asm list
10271 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 10272 NULL and do so prior to loop. Only reset when we close off
0127c0d3 10273 the tuple/list. Move check for whether to close off the
fe61caab 10274 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
10275 on each loop iteration.
10276
5269965e
AC
102772004-01-05 Andrew Cagney <cagney@redhat.com>
10278
54f1137d
AC
10279 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10280 should be a switch case and not a label.
10281 * mips-tdep.c (mips32_next_pc): Delete unused labels
10282 "greater_equal_branch" and "less_zero_branch".
10283 * jv-valprint.c (java_print_value_fields): Delete unused label
10284 "flush_it".
10285
5269965e
AC
10286 * target.c (unpush_target): Only close a target that is in the
10287 target stack.
10288
dbc22fa1
MK
102892004-01-05 Mark Kettenis <kettenis@gnu.org>
10290
9515395e
MK
10291 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10292 address from [sp + 64] instead of %o2.
10293
dbc22fa1
MK
10294 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10295 fixes PR backtrace/1476.
10296
5439edaa
AC
102972004-01-05 Andrew Cagney <cagney@redhat.com>
10298
10299 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10300 move to start of file.
10301 * i386-tdep.h (struct regcache): Add opaque declaration.
10302 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10303 declaration.
10304 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10305 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10306 * win32-nat.c (fake_create_process): Use ISO C style definition.
10307 * stabsread.c (define_symbol): Delete #ifndef
10308 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10309 stabs_argument_has_addr call, macro never defined.
10310
19061abe
MC
103112004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10312
10313 * op50-rom.c: Delete.
10314 * w89k-rom.c: Delete.
10315 * Makefile.in: Remove references.
10316
e53bef9f
MK
103172004-01-04 Mark Kettenis <kettenis@gnu.org>
10318
10319 * x86-64-tdep.c: Update copyright year.
10320 (struct amd64_register_info): Rename from x86_64_register_info.
10321 (amd64_register_info): Rename from x86_64_register_info.
10322 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10323 (amd64_register_name): Rename from x86_64_register_name.
10324 (amd64_register_type): Rename from x86_64_register_type.
10325 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10326 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10327 (amd64_dwarf_reg_to_regnum): Rename from
10328 x86_64_dwarf_reg_to_regnum.
10329 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10330 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10331 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10332 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10333 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10334 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10335 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10336 (amd64_frame_cache): Rename from x86_64_frame_cache.
10337 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10338 (amd64_frame_prev_register): Rename from
10339 x86_64_frame_prev_register.
10340 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10341 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10342 (amd64_sigtramp_frame_cache): Rename from
10343 x86_64_sigtramp_frame_cache.
10344 (amd64_sigtramp_frame_prev_register): Rename from
10345 x86_64_sigtramp_frame_prev_register.
10346 (amd64_sigtramp_frame_unwind): Rename from
10347 x86_64_sigtramp_frame_unwind.
10348 (amd64_sigtramp_frame_sniffer): Rename from
10349 x86_64_sigtramp_frame_sniffer.
10350 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10351 (amd64_frame_base): Rename from x86_64_frame_base.
10352 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10353 (amd64_frame_align): Rename from x86_64_frame_align.
10354 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10355 (amd64_regset_from_core_section): Rename from
10356 x86_64_regset_from_core_section.
10357 (x86_64_init_abi): Update comments.
10358
fca6aa58
NR
103592004-01-04 Nick Roberts <nick@nick.uklinux.net>
10360
10361 * MAINTAINERS (write after approval): Add myself.
10362
8ada74e3
MK
103632004-01-04 Mark Kettenis <kettenis@gnu.org>
10364
10365 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10366 `float' arguments.
10367
5154b0cd
MK
103682004-01-04 Mark Kettenis <kettenis@gnu.org>
10369
10370 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10371 such that it mentions a specific version of GCC that exhibits this
10372 bug.
10373
fb316966
MK
103742004-01-03 Mark Kettenis <kettenis@gnu.org>
10375
200cc553
MK
10376 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10377 structure that has a single `float' member, store it in %f1 in
10378 addition to %f0.
10379
e226a4a0
MK
10380 * sparc-sol2-nat.c: Add missing '\'.
10381
b9d4c5ed
MK
10382 * sparc-tdep.c (sparc32_return_value): New function.
10383 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10384 Remove functions.
10385 (sparc32_gdbarch_init): Set return_value, don't set
10386 extract_return_value, store_return_value, use_struct_convention
10387 and return_value_on_stack.
10388
fb316966
MK
10389 * sparc-sol2-nat.c: Add missing ')'.
10390
1af510a8
JB
103912004-01-03 J. Brobecker <brobecker@gnat.com>
10392
10393 * infrun.c (handle_step_into_function): New function.
10394 (handle_inferior_event): Extract out some code into the new
10395 function above.
10396
5cf4d23a
JB
103972004-01-03 J. Brobecker <brobecker@gnat.com>
10398
10399 * infrun.c (handle_inferior_event): Move the declaration of
10400 real_stop_pc inside the if blocks where it is used.
10401
60af1db2
MK
104022004-01-03 Mark Kettenis <kettenis@gnu.org>
10403
10404 * sparc64-tdep.c (sparc64_16_byte_align_p)
10405 (sparc64_store_floating_fields, sparc64_store_floating_fields):
10406 Use check_typedef to get subtypes of structures and unions.
10407 (sparc64_store_return_value): Fix calculation of the appropriate
10408 offset into VALBUF when storing a structure or union.
10409 (sparc64_return_value): New function.
10410 (sparc64_use_struct_convention): Remove function.
10411 (sparc64_init_abi): Set return_value, don't set
10412 extract_return_value, store_return_value and
10413 use_struct_convention.
10414
1a901d3f
EZ
104152004-01-03 Eli Zaretskii <eliz@elta.co.il>
10416
10417 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
10418 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
10419 gdb/config/alpha/xm-alphaosf.h,
10420 gdb/config/powerpc/tm-ppcle-eabi.h,
10421 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
10422 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
10423 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
10424 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
10425 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
10426 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
10427 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
10428 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
10429 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
10430 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
10431 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
10432 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
10433 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
10434 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
10435 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
10436 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
10437 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
10438 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
10439 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
10440 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
10441 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
10442 Remove lines for .cvsignore files.
10443
ef52e463
JB
104442004-01-03 J. Brobecker <brobecker@gnat.com>
10445
10446 * infrun.c: Back out the previous change.
10447
cb1bf9dc
MK
104482004-01-03 Mark Kettenis <kettenis@gnu.org>
10449
f0424ef6
MK
10450 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
10451 sparc-*-sunos4* to the list of REMOVED configurations.
10452
cb1bf9dc
MK
10453 * configure.tgt: Add back sparc-*-vxworks*.
10454 * remote-vxsparc.c: Remove all includes except for "defs.h",
10455 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
10456 Include "sparc-tdep.h".
10457 (SPARC_R_G1): New define.
10458 (vxsparc_gregset): New variable.
10459 (ext_format_sparc): Remove extern declaration.
10460 (vx_read_register): Rewrite to use sparc32_supply_gregset and
10461 sparc32_supply_fpregset.
10462 (vx_write_register): Rewrite to use sparc32_collect_gregset,
10463 sparc_collect_rwindow and sparc32_collect_fpregset.
10464 * config/sparc/tm-vxworks.h: New file, based on recently removed
10465 tm-vxsparc.h.
10466 * config/sparc/vxworks.mt: New file, based on recently removed
10467 vxworks.mt.
fe61caab 10468
5e938f9f
JB
104692004-01-03 J. Brobecker <brobecker@gnat.com>
10470
10471 * infrun.c (handle_step_into_function): New function.
10472 (handle_inferior_event): Extract out some code into the new
10473 function above.
10474
386c036b
MK
104752004-01-02 Mark Kettenis <kettenis@gnu.org>
10476
10477 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
10478 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
10479 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
10480 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
10481 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
10482 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
10483 (sparc_nat_h): New variable.
10484 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
10485 (tm-sun4os4.h): Remove dependency.
10486 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
10487 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
10488 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
10489 sparc-tdep.o): Update dependencies.
10490 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
10491 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
10492 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
10493 dependencies.
10494 * configure.host: Remove existing sparc-*-lynxos*,
10495 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
10496 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
10497 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
10498 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
10499 triplets.
10500 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
10501 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
10502 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
10503 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
10504 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
10505 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
10506 sparc64-*-solaris2* and sparc64-*-* triplets.
10507 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
10508 "symtab.h" and "objfiles.h".
10509 (BIAS): Remove define.
10510 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
10511 (X_DISP19): Remove macros.
10512 (sparc_fetch_instruction): Remove function.
10513 (struct gdbarch_tdep): Remove definition.
10514 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
10515 (sparc_breakpoint_from_pc): Remove function.
10516 (struct sparc64_frame_cache): Remove definition.
10517 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
10518 sparc64_unwind_pc): Remove functions.
10519 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
10520 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
10521 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
10522 (sparc64_frame_cache): Change return type to `struct
10523 sparc_frame_cache *'. Simply call sparc_frame_cache.
10524 (sparc64_frame_this_id, sparc64_frame_prev_register,
10525 sparc64_frame_base_address): Use `struct sparc_frame_cache'
10526 instead of `struct sparc64_frame_cache.
10527 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
10528 sparc_analyze_control_transfer, sparc_software_single_step,
10529 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
10530 _initialize_sparc64_tdep): Remove functions.
10531 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
10532 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
10533 macros.
10534 (sparc64_supply_gregset, sparc64_collect_gregset,
10535 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
10536 (sparc64_init_abi): New function.
10537 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
10538 inclusion guard. Include "sparc-tdep.h".
10539 (BIAS): Define.
10540 (r_tstate_offset, r_fprs_offset): New defines.
10541 (enum sparc_regnum): Remove defenition.
10542 (enum sparc64_regnum): Reformat.
10543 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
10544 (sparc64_init_abi, sparc64_supply_gregset,
10545 sparc64_collect_gregset, sparc64_supply_fpregset,
10546 sparc64_collect_fpregset): New prototypes.
10547 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
10548 Add extern declarations.
10549 (sparc64_sol2_init_abi): New prototype.
10550 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10551 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10552 prototypes.
10553 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
10554 "sparnbsd-nat.h".
10555 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
10556 functions.
10557 (_initialize_sparc64fbsd_nat): Remove initialization of
10558 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
10559 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 10560 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
10561 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
10562 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
10563 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
10564 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
10565 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
10566 (sparc64fbsd_r_y_offset): Remove variables.
10567 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10568 Make static and const.
10569 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10570 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10571 functions.
10572 (sparc64fbsd_gregset): New variable.
10573 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
10574 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
10575 and sparc64_supply_fpregset.
10576 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
10577 (sparc64fbsd_sigtramp_frame_this_id)
10578 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
10579 (sparc64fbsd_sigtramp_frame_unwind): New variable.
10580 (sparc64fbsd_sigtramp_frame_sniffer): New function.
10581 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
10582 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
10583 * sparcnbsd-tdep.c: Update copyright year. Include
10584 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
10585 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
10586 "value.h" and "sparcnbsd-tdep.h".
10587 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
10588 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
10589 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
10590 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
10591 defines.
10592 (sparcnbsd_gregset): New variable.
10593 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
10594 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
10595 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
10596 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
10597 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
10598 variables.
10599 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
10600 (sparc32nbsd_sigcontext_frame_this_id)
10601 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
10602 (sparc32nbsd_sigcontext_frame_unwind): New variable.
10603 (sparc32nbsd_sigtramp_frame_sniffer): New function.
10604 (sparcnbsd_get_longjmp_target_32,
10605 sparcnbsd_get_longjmp_target_64): Remove functions.
10606 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
10607 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
10608 sparcnbsd_init_elf): Remove.
10609 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
10610 (sparcnbsd_elf_init_abi): New functions.
10611 (_initialize_sparcnbsd_tdep): New prototype.
10612 (_initialize_sparnbsd_tdep): Update.
10613 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
10614 corelow.o. Add sparc64-nat.o and sparc-nat.o.
10615 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
10616 * config/sparc/linux.mh: Update comment.
10617 (XM_FILE, HOST_IPC): Remove variables.
10618 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
10619 sparc-linux-nat.o.
10620 * config/sparc/linux.mt: Update comment.
10621 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
10622 * config/sparc/nbsd.mt: Reformat.
10623 * config/sparc/nbsd64.mh: Update comment.
10624 (NATDEPFILES): Add sparc-nat.o.
10625 * config/sparc/nbsd64.mt: Update comment.
10626 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
10627 (TM_FILE): Set to tm-nbsd.h.
10628 * config/sparc/nbsdelf.mh: Update comment.
10629 (NATDEPFILES): Add sparc-nat.o.
10630 (XM_FILE): Delete.
10631 * config/sparc/nbsdaout.mh: Update comment.
10632 (NATDEPFILES): Add sparc-nat.o
10633 (XM_FILE): Delete.
10634 * config/sparc/nm-linux.h: Update copyright year. Don't include
10635 "config/nm-svr4.h" and "solib.h". Add protection against multiple
10636 inclusion.
10637 (KERNEL_U_SIZE): Remove define.
10638 (kernel_u_size): Remove prototype.
10639 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
10640 * config/sparc/nm-nbsd.h: Update copyright. Don't include
10641 "regcache.h".
10642 (CHILD_PREPARE_TO_STORE): Remove define.
10643 * config/sparc/nm-nbsdaout.h: Tweak some comments.
10644 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
10645 sparcnbsd-nat.c: Rewrite files.
10646 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
10647 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
10648 sparcnbsd-tdep.h: Remove files.
10649 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
10650 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
10651 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
10652 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
10653 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
10654 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
10655 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
10656 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
10657 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
10658 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
10659 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
10660 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
10661 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
10662 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
10663 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
10664 * config/sparc/linux64.mh, config/sparc/linux64.mt,
10665 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
10666 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
10667 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
10668
ee84457a
AC
106692004-01-02 Andrew Cagney <cagney@redhat.com>
10670
10671 From 2003-12-18 Kazuhiro Inaoka:
10672 * configure.host: Add m32r-linux target.
10673
0bc2134e
MC
106742004-01-02 Michael Chastain <mec.gnu@mindspring.com>
10675
10676 * top.c (print_gdb_version): Update year to 2004.
10677
89a72f9c
MM
106782004-01-02 Mark Mitchell <mark@codesourcery.com>
10679
10680 * MAINTAINERS: Add myself to the write-after-approval category.
10681
86b013ed
DJ
106822004-01-02 Daniel Jacobowitz <drow@mvista.com>
10683
10684 From Bernardo Innocenti <bernie@develer.com>:
10685 * configure.tgt: Add uClinux target.
10686
e42c9534
AC
106872004-01-02 Andrew Cagney <cagney@redhat.com>
10688
10689 * utils.c (do_my_cleanups): Make static, add forward declaration.
10690 * defs.h (do_my_cleanups): Delete declaration.
10691
162467d3
EZ
106922004-01-02 Eli Zaretskii <eliz@elta.co.il>
10693
10694 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
10695 bfd/ChangeLog-0203.
10696
78434e59
MK
106972004-01-02 Mark Kettenis <kettenis@gnu.org>
10698
10699 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
10700 in <machine/reg.h>.
10701 * configure, config.in: Regenerate.
10702
48efe704
AC
10703For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
10704tui/ChangeLog-1998-2003.
c906108c
SS
10705\f
10706Local Variables:
10707mode: change-log
10708left-margin: 8
10709fill-column: 74
10710version-control: never
10711End:
This page took 1.18644 seconds and 4 git commands to generate.