* i386-tdep.c: Include "dwarf2-frame.h".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-tdep.c: Include "dwarf2-frame.h".
4 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5 * Makefile.in (i386-tdep.o): Update dependencies.
6
7 * dwarf2-frame.c, dwarf2-frame.h: New files.
8 * Makefile.in (SFILES): Add dwarf2-frame.c.
9 (dwarf2_frame_h): Define.
10 (COMMON_OBS): Add dwarf2-frame.o.
11 (dwarf2-frame.o): Add dependencies.
12
13 2003-05-31 Andreas Jaeger <aj@suse.de>
14
15 * x86-64-linux-nat.c: Fix comment.
16
17 2003-05-31 Mark Kettenis <kettenis@gnu.org>
18
19 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
20 function signature.
21
22 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
23 have a sigcontext_addr handler.
24 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
25 sigcontext_addr handler.
26
27 2003-05-31 Andrew Cagney <cagney@redhat.com>
28
29 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
30 (print_fp_register_row): Replace do_fp_register_row.
31 (mips_print_fp_register): Add "file" and "frame" parameters.
32 (mips_print_register): Add "file" and "frame" parameters.
33 (mips_print_registers_info): Replace mips_do_registers_info.
34 (mips_gdbarch_init): Set print_registers_info instead of
35 deprecated_do_registers_info.
36 (mips_read_fp_register_single): Add "frame" parameter.
37 (mips_read_fp_register_double): Add "frame" parameter.
38
39 2003-05-31 Mark Kettenis <kettenis@gnu.org>
40
41 * i386-tdep.c (i386_register_name): Check for MMX registers first.
42 Fixes a bug where GDB would print the wrong register names for
43 targets without SSE.
44
45 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
46 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
47 registers.
48
49 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
50 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
51 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
52 TDEP->sc_sp_offset.
53
54 From Michal Ludvig <mludvig@suse.cz>:
55 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
56 and `sc_num_regs'.
57 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
58 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
59 I386_ST0_REGNUM): Move here from...
60 * i386-tdep.c: ... here.
61 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
62 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
63 registers if possible.
64 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
65 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
66 Remove variables.
67 (i386bsd_sc_reg_offset): New variable.
68 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
69 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
70 TDEP->sc_sp_offset.
71 (i386fbsd_sc_reg_offset): New variable.
72 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
73 TDEP->sc_num_regs.
74 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
75 variables.
76 (i386fbsd4_sc_reg_offset): New variable.
77 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
78 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
79 TDEP->sc_sp_offset.
80 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
81 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
82 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
83 Remove variables.
84 (i386nbsd_sc_reg_offset): New variable.
85 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
86 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
87 TDEP->sc_sp_offset.
88 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
89 Remove variables.
90 (i386obsd_sc_reg_offset): New variable.
91 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
92 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
93 TDEP->sc_sp_offset.
94 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
95 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
96 for frame pointer offset in `struct sigcontext'.
97
98 2003-05-31 Andrew Cagney <cagney@redhat.com>
99
100 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
101 architecture methods call_dummy_words, sizeof_call_dummy_words,
102 push_return_address, store_struct_return, and fix_call_dummy. Set
103 push_dummy_call instead of deprecated_push_arguments.
104 (mips_store_struct_return): Delete function.
105 (mips_fix_call_dummy): Delete function.
106 (mips_push_return_address): Delete function.
107 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
108 RA_REGNUM and T9_REGNUM.
109 (mips_n32n64_push_dummy_call): Ditto for
110 mips_n32n64_push_arguments.
111 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
112 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
113
114 2003-05-31 Andrew Cagney <cagney@redhat.com>
115
116 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
117 "dummy_addr" to "bp_addr".
118 * infcall.c (call_function_by_hand): Pass "funaddr" to
119 gdbarch_push_dummy_call.
120 * gdbarch.h, gdbarch.c: Re-generate.
121 * i386-tdep.c (i386_push_dummy_call): Update.
122 * arm-tdep.c (arm_push_dummy_call): Update.
123 * d10v-tdep.c (d10v_push_dummy_call): Update.
124
125 2003-05-31 Mark Kettenis <kettenis@gnu.org>
126
127 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
128 variable declarations.
129 (x86_64_register_number, x86_64_register_name): Remove prototypes.
130 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
131 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
132 x86_64_init_frame_pc, x86_64_init_frame_pc,
133 x86_64_function_has_prologue): Remove prototypes.
134 (X86_64_NUM_GREGS): New define.
135 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
136 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
137 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
138 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
139 XMM1_REGNUM): Remove defines.
140 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
141 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
142 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
143 X86_64_XMM1_REGNUM): New defines.
144 (struct x86_64_register_info): Renamed from `struct
145 register_info'. Remove `size' member.
146 (x86_64_register_info_table): Remove variable.
147 (x86_64_register_info): New variable.
148 (X86_64_NUM_REGS): New define.
149 (X86_64_NUM_GREGS): Remove define.
150 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
151 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
152 Remove variables.
153 (x86_54_dwarf2_reg_to_regnum): Remove function.
154 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
155 (x86_64_dwarf_reg_to_regnum): New function.
156 (x86_64_register_name): Rewrite.
157 (x86_64_register_raw_size): Remove function.
158 (x86_64_register_byte_table): Remove variable.
159 (x86_64_register_byte): Remove function.
160 (x86_64_register_virtual_type): Remove function.
161 (x86_64_register_type): New function.
162 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
163 x86_64_register_convert_to_raw): Remove functions.
164 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
165 (x86_64_use_struct_convention): Make static. Adjust for renamed
166 defines.
167 (x86_64_frame_init_saved_regs): Remove function.
168 (x86_64_push_arguments): Make static. Change to accept a regcache
169 as argument.
170 (x86_64_store_return_value, x86_64_extract_return_value): Make
171 static. Rewrite based on i386 counterparts.
172 (x86_64_push_dummy_call): New function.
173 (X86_64_NUM_SAVED_REGS): New define.
174 (x86_64_register_number): Remove function.
175 (x86_64_store_struct_return): Remove function.
176 (x86_64_frameless_function_invocation,
177 x86_64_function_has_prologue): Remove functions.
178 (PROLOG_BUFSIZE): Remove define.
179 (struct x86_64_frame_cache): New structure.
180 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
181 x86_64_frame_cache, x86_64_frame_this_id,
182 x86_64_frame_prev_register, x86_64_frame_p,
183 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
184 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
185 functions.
186 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
187 variables.
188 (x86_64_skip_prologue): Rewrite in terms of
189 x86_64_analyze_prologue.
190 (x86_64_frame_base_address): New function.
191 (x86_64_frame_base): New variable.
192 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
193 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
194 set deprecated_fp_regnum, deprecated_register_size,
195 deprecated_register_bytes, register_raw_size, register_byte,
196 register_virtual_type, register_convertiable,
197 register_convert_to_virtual, convert_to_raw,
198 deprecated_get_saved_register, deprecated_target_read_fp,
199 deprecated_push_arguments, deprecated_push_return_address,
200 deprecated_pop_frame, deprecated_store_struct_return,
201 deprecated_frame_init_saved_regs, deprecated_frame_chain,
202 frameless_function_invocation, deprecated_frame_saved_pc,
203 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
204 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
205 deprecated_init_frame_pc and virtual_frame_pointer. Call
206 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
207 and x86_64_frame_p. Call frame_base_set_default to register
208 x86_64_frame_base.
209 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
210 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
211 (_initialize_x86_64_tdep): Remove function.
212 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
213 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
214 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
215 define.
216 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
217 (x86_64_linux_sigcontext_addr): Rewrite.
218 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
219 x86_64_linux_frame_saved_pc): Remove functions.
220 (x86_64_linux_pc_in_sigtramp): Renamed from
221 x86_64_linux_in_sigtramp. Try harder to recognize a signal
222 trampoline.
223 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
224 Remove_functions.
225 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
226 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
227 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
228 (x86_64_regmap): Rename to regmap.
229 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
230 x86_64_num_gregs.
231 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
232 x86_64_regmap.
233 (x86_64_fxsave_offset): Remove function.
234 (supply_fpregset): Simply call x86_64_supply_fxsave.
235 (fill_fpregset): Simply call x86_64_fill_fxsave.
236 (fetch_inferior_registers, store_inferior_registers): Avoid
237 asignment in if-statement.
238 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
239 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
240 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
241 (fetch_core_registers): Remove function.
242 (linux_elf_core_fns): Remove.
243 (offsetoff): Don't define.
244 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
245 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
246 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
247 add core-regset.o.
248 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
249 protection against multiple includes instead of NM_X86_64_h. Add
250 various comments. Include "config/nm-linux.h". Don't include
251 <signal.h>.
252 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
253 GET_THREAD_SIGNALS): Remove defines.
254 (x86_64_register_u_addr, kernel_u_size,
255 lin_thread_get_thread_signals): Remove prototypes.
256 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
257 [HAVE_LINK_H]: Don't include "solib.h".
258 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
259 * config/i386/tm-x86-64linux.h: Fix comments.
260 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
261 x86-64-tdep.o): Update dependencies.
262
263 2003-05-30 Andrew Cagney <cagney@redhat.com>
264
265 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
266 Change parameter type to a "struct regcache *".
267
268 * gdbarch.sh: Regardless of the multi-arch level, always define
269 the macro when not already defined.
270 * gdbarch.h, gdbarch.c: Re-generate.
271
272 2003-05-30 Richard Henderson <rth@redhat.com>
273
274 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
275 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
276 (alpha_mdebug_frame_this_id): Likewise.
277 (alpha_mdebug_frame_prev_register): Likewise.
278 (alpha_mdebug_frame_base_address): Likewise.
279 (alpha_mdebug_frame_locals_address): Likewise.
280 (alpha_mdebug_frame_args_address): Likewise.
281 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
282 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
283 (alpha_heuristic_frame_unwind_cache): Make static; add missing
284 loop increment.
285 (alpha_heuristic_frame_this_id): Make static.
286 (alpha_heuristic_frame_prev_register): Likewise.
287 (alpha_heuristic_frame_base_address): Likewise.
288 * alpha-tdep.h: Update.
289
290 2003-05-30 Mark Kettenis <kettenis@gnu.org>
291
292 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
293 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
294 defenitions.
295 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
296 * i386-tdep.c: Mark functions that are 64-bit safe as such.
297 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
298 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
299 I386_ST0_REGNUM): New defines.
300 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
301 codestream_get): Remove define.
302 (codestream_next_addr, condestream_addr, condestream_buf,
303 codestream_off, codestream_cnt): Remove variables.
304 (codestream_fill, codestream_seek, codestream_read): Remove
305 functions.
306 (i386_follow_jump): Rewrite to avoid usage of removed codestream
307 functionality.
308 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
309 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
310 i386_frame_saved_pc, i386_saved_pc_after_call,
311 i386_frame_num_args, i386_frame_init_saved_regs,
312 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
313 i386_push_arguments): Remove functions.
314 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
315 functionality. Use i386_analyze_prologue instead of
316 i386_get_frame_setup.
317 (I386_NUM_SAVED_REGS): New define.
318 (struct i386_frame_cache): New structure.
319 (i386_alloc_frame_cache, i386_analyze_struct_return,
320 i386_skip_probe, i386_analyze_frame_setup,
321 i386_analyze_register_saves, i386_analyze_prologue,
322 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
323 i386_frame_prev_register, i386_sigtramp_frame_cache,
324 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
325 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
326 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
327 New functions.
328 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
329 New variables.
330 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
331 I386_EAX_REGNUM and I386_EDX_REGNUM.
332 (i386_extract_return_value, i386_store_return_value): Use
333 I386_ST0_REGNUM where appropriate.
334 (i386_extract_struct_value_address): Rewrite to use extract_address.
335 (i386_svr4_pc_in_sigtramp): Add comment.
336 (i386_svr4_sigcontext_addr): Rewrite.
337 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
338 TDEP->sc_sp_offset.
339 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
340 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
341 of new defines. Set push_dummy_call, don't set
342 deprecated_push_arguments, deprecated_push_return_address,
343 deprecated_pop_frame. Don't set parm_boundary. Don't set
344 deprecated_frame_chain, deprecated_frame_saved_pc,
345 deprecated_saved_pc_after_call. Set unwind_dummy_id,
346 save_dummy_frame_tos, unwind_pc. Call
347 frame_unwind_append_predicate and frame_base_set_default. Don't
348 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
349 Don't set frameless_function_invocation. Don't set
350 deprecated_register_bytes, deprecated_register_size,
351 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
352 * i386-linux-tdep.c: Fix formatting in some comments.
353 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
354 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
355 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
356 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
357 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
358 redundant parentheses.
359 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
360 (i386_linux_sigcontext_addr): Use it. Rewrite.
361 (find_minsym_and_objfile): Change name of second argument.
362 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
363 changed. Use frame_pc_unwind instead of
364 DEPRECATED_SAVED_PC_AFTER_CALL.
365 (i386_linux_init_abi): Don't set deprecated_register_bytes.
366 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
367 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
368 unwinder.
369 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
370 "dummy-frame.h".
371 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
372 (_initialize_i386_cygwin_tdep): New prototype.
373 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
374 deprecated_frame_chain_valid.
375 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
376 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
377 Rely on the SVR4 defaults.
378 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
379 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
380
381 2003-05-30 Andrew Cagney <cagney@redhat.com>
382
383 * infcall.c (call_function_by_hand): Always call
384 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
385
386 2003-05-30 Richard Henderson <rth@redhat.com>
387
388 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
389 increment.
390
391 2003-05-29 Jim Blandy <jimb@redhat.com>
392
393 Use gdbarch methods for solib stuff on PowerPC Linux.
394 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
395 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
396 show through.
397 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
398 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
399 giving the same effect as the #definitions above.
400
401 2003-05-29 Adam Fedor <fedor@gnu.org>
402
403 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
404 (find_implementation_from_class): Replace it with the standard
405 case i.e. do nothing.
406
407 2003-05-29 Richard Henderson <rth@redhat.com>
408
409 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
410 (alpha_linux_sigtramp_offset): Use it. Make static.
411 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
412 update for new frame model.
413 * alpha-mdebug-tdep.c: New file.
414 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
415 (alpha_osf1_init_abi): Install it.
416 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
417 (linked_proc_desc_table): Remove.
418 (alpha_frame_past_sigtramp_frame): Remove.
419 (alpha_dynamic_sigtramp_offset): Remove.
420 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
421 (alpha_proc_desc_is_dyn_sigtramp): Remove.
422 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
423 (push_sigtramp_desc): Remove.
424 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
425 (alpha_cannot_store_register): Likewise.
426 (alpha_sigcontext_addr): Remove.
427 (alpha_find_saved_regs): Remove.
428 (alpha_frame_init_saved_regs): Remove.
429 (alpha_init_frame_pc_first): Remove.
430 (read_next_frame_reg): Remove.
431 (alpha_frame_saved_pc): Remove.
432 (alpha_saved_pc_after_call): Remove.
433 (temp_proc_desc, temp_saved_regs): Remove.
434 (alpha_about_to_return): Remove.
435 (cached_proc_desc): Remove.
436 (alpha_frame_chain): Remove.
437 (alpha_print_extra_frame_info): Remove.
438 (alpha_init_extra_frame_info): Remove.
439 (alpha_frame_locals_address): Remove.
440 (alpha_frame_args_address): Remove.
441 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
442 (alpha_push_dummy_frame): Remove.
443 (alpha_pop_frame): Remove.
444 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
445 (alpha_read_insn): New.
446 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
447 for different insn encodings.
448 (alpha_in_lenient_prologue): Remove.
449 (struct alpha_sigtramp_unwind_cache): New.
450 (alpha_sigtramp_frame_unwind_cache): New.
451 (alpha_sigtramp_register_address): New.
452 (alpha_sigtramp_frame_this_id): New.
453 (alpha_sigtramp_frame_prev_register): New.
454 (alpha_sigtramp_frame_unwind): New.
455 (alpha_sigtramp_frame_p): New.
456 (struct alpha_heuristic_unwind_cache): New.
457 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
458 don't count nop insns that occur between functions.
459 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
460 heuristic_proc_desc, but without the mdebug wrapping.
461 (alpha_heuristic_frame_this_id): New.
462 (alpha_heuristic_frame_prev_register): New.
463 (alpha_heuristic_frame_unwind): New.
464 (alpha_heuristic_frame_p): New.
465 (alpha_heuristic_frame_base_address): New.
466 (alpha_heuristic_frame_base): New.
467 (alpha_unwind_dummy_id): New.
468 (alpha_unwind_pc): New.
469 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
470 frame related deprecated initializations; install replacements.
471 (alpha_dump_tdep): Remove.
472 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
473 (alpha_read_insn, alpha_after_prologue,
474 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
475 alpha_heuristic_frame_prev_register,
476 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
477 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
478 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
479 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
480
481 2003-05-29 Andrew Cagney <cagney@redhat.com>
482
483 * gdb_assert.h (gdb_assert_fail): Provide different definitions
484 dependant on the availability of ASSERT_FUNCTION.
485 (ASSERT_FUNCTION): Do not define when there is no function name.
486
487 2003-05-29 Kevin Buettner <kevinb@redhat.com>
488
489 From Jimi X <jimix@watson.ibm.com>:
490 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
491
492 2003-05-28 Jim Blandy <jimb@redhat.com>
493
494 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
495 argument to ptrace to int; the system headers should give it the
496 right type, and pointers don't fit in ints on powerpc64-*-*.
497
498 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
499
500 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
501 DW_TAG_catch_block.
502
503 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
504
505 * stabsread.c (dbx_lookup_type): Make static.
506 (read_type): Ditto.
507 (add_undefined_type): Ditto.
508 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
509 not export.
510
511 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
512
513 * hpread.c (hpread_has_name): Make static.
514 (hpread_psymtab_to_symtab): Ditto.
515 (file_exists): Ditto.
516 (hpread_call_pxdb): Ditto.
517 (hpread_pxdb_needed): Ditto.
518 (hpread_quick_traverse): Ditto.
519 (hpread_get_header): Ditto.
520 (hpread_get_lntt): Ditto.
521 (hpread_get_slt): Ditto.
522 (class_of): Ditto.
523
524 2003-05-25 Andreas Schwab <schwab@suse.de>
525
526 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
527 stack_align and deprecated_extra_stack_alignment_needed.
528 (m68k_stack_align): Delete.
529
530 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
531 (m68k_register_virtual_size): Likewise.
532 (altos_skip_prologue): Remove obsolete function.
533 (isi_frame_num_args): Likewise.
534 (news_frame_num_args): Likewise.
535 (m68k_fix_call_dummy): Make static.
536 (m68k_push_dummy_frame): Likewise.
537 (m68k_pop_frame): Likewise.
538 (m68k_skip_prologue): Likewise.
539 (m68k_frame_init_saved_regs): Likewise.
540 (m68k_saved_pc_after_call): Likewise.
541 (m68k_get_longjmp_target): Make multi-arch.
542 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
543 structure. Register m68k_get_longjmp_target if enabled.
544 * m68k-tdep.h (struct gdbarch_tdep): Define.
545 * config/m68k/tm-m68k.h: Don't include "regcache.h".
546
547 * Makefile.in (config.status): Also depend on configure.tgt
548 and configure.host.
549 (m68klinux-tdep.o): Update dependencies.
550 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
551 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
552 (M68K_LINUX_JB_PC): Define.
553 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
554 and take additional parameter.
555 (m68k_linux_sigtramp_saved_pc): Update.
556 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
557 m68k_linux_pc_in_sigtramp, in_plt_section,
558 find_solib_trampoline_target.
559 * config/m68k/tm-linux.h: Don't include any tm headers.
560 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
561 (JB_ELEMENT_SIZE): Likewise.
562 (JB_PC): Likewise.
563 (GET_LONGJMP_TARGET): Likewise.
564 (IN_SIGTRAMP): Likewise.
565 (SVR4_SHARED_LIBS): Define this and include "solib.h".
566
567 2003-05-25 Mark Kettenis <kettenis@gnu.org>
568
569 * sparc-tdep.c (sparc32_do_push_arguments): New function.
570 (sparc32_push_arguments): Re-implement by calling
571 sparc32_do_push_arguments.
572
573 2003-05-25 Mark Kettenis <kettenis@gnu.org>
574
575 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
576 SPARC_O1_REGNUM): New defines.
577 (sparc32_extract_return_value): Rewrite to operate on a regcache.
578 (sparc32_store_return_value): New function.
579 (sparc_extract_struct_value_address): Rewrite to operate on a
580 regcache.
581 (sparc_gdbarch_init): Don't set
582 deprecated_extract_struct_value_address. Set
583 extract_struct_value_address instead. Don't set
584 deprecated_extract_return_value and deprecated_store_return_value
585 for 32-bit targets. Set extract_return_value and
586 store_return_value instead.
587 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
588 DEPRECTAED_EXTRACT_RETURN_VALUE,
589 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
590 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
591 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
592 (sparc_store_return_value): Remove prototype.
593 (sparc32_store_return_value): New prototype.
594 (sparc32_extract_return_value, sparc_extract_struct_value_address):
595 Adjust prototypes.
596
597 2003-05-24 Mark Kettenis <kettenis@gnu.org>
598
599 * sparcnbsd-tdep.c: Include "gdb_string.h".
600
601 2003-05-23 Andrew Cagney <cagney@redhat.com>
602
603 * p-valprint.c (pascal_val_print): Replace extract_address with
604 the inline equivalent extract_unsigned_integer.
605 * jv-valprint.c (java_value_print): Ditto.
606 * ada-valprint.c (ada_val_print_1): Ditto.
607 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
608
609 2003-05-23 Theodore A. Roth <troth@openavr.org>
610
611 * blockframe.c (frameless_look_for_prologue): Remove unused
612 after_prologue variable.
613
614 2003-05-23 Mark Kettenis <kettenis@gnu.org>
615
616 * blockframe.c (get_pc_function_start): Rewrite to avoid
617 asignments in if-statements.
618
619 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
620
621 Committed by Elena Zannoni <ezannoni@redhat.com>.
622 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
623 files, don't relocate absolute symbols (and do use mst_abs).
624
625 2003-05-23 Andrew Cagney <cagney@redhat.com>
626
627 * objc-lang.c: Include "gdb_assert.h".
628 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
629 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
630 (gdb_check, gdb_check_fatal): Delete functions.
631 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
632 gdb_assert.
633 (parse_selector, parse_method, find_methods, find_imps): Ditto.
634 * Makefile.in (objc-lang.o): Update dependencies.
635
636 2003-05-22 Ian Lance Taylor <ian@airs.com>
637
638 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
639 with fprintf_filtered, not fprintf_unfiltered.
640
641 2003-05-22 Andrew Cagney <cagney@redhat.com>
642
643 * stack.c (frame_info): Inline extract_address, replacing it with
644 extract_unsigned_integer.
645 * findvar.c (unsigned_pointer_to_address): Ditto.
646 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
647 * dwarf2expr.c (dwarf2_read_address): Ditto.
648 * frame.c (frame_pc_unwind): Update comment.
649 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
650
651 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
652
653 * infptrace.c (detach): Call print_sys_errmsg rather than
654 perror_with_name to issue warning message when errno is non-zero
655 after calling ptrace detach.
656
657 2003-05-21 J. Brobecker <brobecker@gnat.com>
658
659 * config/pa/tm-hppa.h: Delete some unused macros. Move some
660 macro definitions from here...
661 * hppa-tdep.c: ...to there.
662
663 2003-05-20 Kevin Buettner <kevinb@redhat.com>
664
665 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
666 register_ptrace_addr(). Fix all callers.
667
668 2003-05-21 Andreas Schwab <schwab@suse.de>
669
670 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
671 dependencies.
672 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
673 end.
674 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
675 (_initialize_m68k_linux_tdep): New function.
676 (m68k_linux_frame_saved_pc): Make static.
677 (m68k_linux_extract_return_value): Likewise.
678 (m68k_linux_store_return_value): Likewise.
679 (m68k_linux_extract_struct_value_address): Likewise.
680 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
681 Remove.
682 (DEPRECATED_STORE_RETURN_VALUE): Remove.
683 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
684 (DEPRECATED_FRAME_SAVED_PC): Remove.
685
686 2003-05-20 Kris Warkentin <kewarken@qnx.com>
687
688 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
689 regset numbering rather than our own.
690
691 2003-05-19 David Carlton <carlton@bactrian.org>
692
693 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
694
695 2003-05-19 David Carlton <carlton@bactrian.org>
696
697 Partial fix for PR c++/827.
698 * cp-support.h: Include symtab.h.
699 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
700 * cp-namespace.c: Update contributors.
701 (cp_lookup_symbol_nonlocal): New.
702 (lookup_namespace_scope, cp_lookup_symbol_namespace)
703 (lookup_symbol_file): Ditto.
704 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
705 * block.h: Declare block_scope, block_using, block_global_block.
706 * block.c (block_scope): New.
707 (block_using, block_global_block): Ditto.
708 * Makefile.in (cp_support_h): Depend on symtab_h.
709 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
710
711 2003-05-19 David Carlton <carlton@bactrian.org>
712
713 * language.h (struct language_defn): Add 'la_value_of_this'
714 and 'la_lookup_symbol_nonlocal' members.
715 * symtab.h: Declare basic_lookup_symbol_nonlocal,
716 lookup_symbol_static, lookup_symbol_global,
717 lookup_symbol_aux_block.
718 * symtab.c (lookup_symbol_aux): Call language hooks to determine
719 if we should search fields of this and how to do static/global
720 lookup.
721 (lookup_symbol_aux_block): Make extern.
722 (basic_lookup_symbol_nonlocal): New.
723 (lookup_symbol_static, lookup_symbol_global): Ditto.
724 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
725 'la_lookup_symbol_nonlocal' members.
726 * c-lang.c (c_language_defn, cplus_language_defn)
727 (asm_language_defn, minimal_language_defn): Ditto.
728 * jv-lang.c (java_language_defn): Ditto.
729 * language.c (unknown_language_defn, auto_language_defn)
730 (local_language_defn): Ditto.
731 * m2-lang.c (m2_language_defn): Ditto.
732 * objc-lang.c (objc_language_defn): Ditto.
733 * scm-lang.c (scm_language_defn): Ditto.
734 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
735 * p-lang.c (pascal_language_defn): Ditto for both.
736 * Makefile.in (f-lang.o): Depend on value_h.
737 (p-lang.o): Ditto.
738
739 2003-05-19 David Carlton <carlton@bactrian.org>
740
741 * block.h: Declare block_static_block.
742 * block.c (block_static_block): New.
743 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
744 lookup_symbol_aux_local, calling block_static_block instead.
745 (lookup_symbol_aux_local): Delete 'static_block' argument.
746
747 2003-05-19 David Carlton <carlton@bactrian.org>
748
749 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
750
751 2003-05-19 Michal Ludvig <mludvig@suse.cz>
752
753 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
754 register numbers mapping.
755
756 2003-05-18 Adam Fedor <fedor@gnu.org>
757
758 * symtab.c (completion_list_objc_symbol): New function.
759 (make_symbol_completion_list): Use it to add ObjC symbols
760 when looking though the list.
761 (language_search_unquoted_string): New function.
762 (make_file_symbol_completion_list): Use it.
763
764 2003-05-18 Andreas Schwab <schwab@suse.de>
765
766 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
767 dependencies.
768 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
769 as m68k_linux_extract_return_value.
770 (DEPRECATED_STORE_RETURN_VALUE): Define as
771 m68k_linux_store_return_value.
772 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
773 m68k_linux_extract_struct_value_address.
774 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
775 get_next_frame, get_frame_base, get_frame_pc.
776 (m68k_linux_frame_saved_pc): Use get_frame_base.
777 (m68k_linux_extract_return_value): New function.
778 (m68k_linux_store_return_value): New function.
779 (m68k_linux_extract_struct_value_address): New function.
780 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
781
782 * c-exp.y (typebase): Remove duplicate occurence of
783 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
784 of lookup_signed_typename.
785
786 2003-05-18 Mark Kettenis <kettenis@gnu.org>
787
788 * dwarf2loc.c (find_location_expression): Change type of second
789 argument to `size_t *'.
790 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
791 for size variable.
792
793 2003-05-18 David Carlton <carlton@bactrian.org>
794
795 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
796 'linkage_name'. Add comment.
797 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
798 'linkage_name'.
799 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
800 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
801 (lookup_block_symbol): Ditto.
802
803 2003-05-16 Andrew Cagney <cagney@redhat.com>
804
805 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
806 * gdbarch.h, gdbarch.c: Re-generate.
807 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
808 * TODO (REGISTER_BYTES): Delete reference.
809 * alpha-tdep.c (alpha_gdbarch_init): Update.
810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
811 * x86-64-tdep.c (x86_64_init_abi): Update.
812 * vax-tdep.c (vax_gdbarch_init): Update.
813 * v850-tdep.c (v850_gdbarch_init): Update.
814 * sparc-tdep.c (sparc_gdbarch_init): Update.
815 * sh-tdep.c (sh_gdbarch_init): Update.
816 * s390-tdep.c (s390_gdbarch_init): Update.
817 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
818 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
819 (ns32k_gdbarch_init_32382): Update.
820 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
821 * mcore-tdep.c (mcore_gdbarch_init): Update.
822 * m68k-tdep.c (m68k_gdbarch_init): Update.
823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
824 * ia64-tdep.c (ia64_gdbarch_init): Update.
825 * i386-tdep.c (i386_gdbarch_init): Update.
826 * i386-linux-tdep.c (i386_linux_init_abi): Update.
827 * hppa-tdep.c (hppa_gdbarch_init): Update.
828 * h8300-tdep.c (h8300_gdbarch_init): Update.
829 * frv-tdep.c (frv_gdbarch_init): Update.
830 * cris-tdep.c (cris_gdbarch_init): Update.
831 * avr-tdep.c (avr_gdbarch_init): Update.
832 * arm-tdep.c (arm_gdbarch_init): Update.
833 * sparc-tdep.c (sparc_pop_frame): Update.
834 * rs6000-tdep.c (rs6000_pop_frame): Update.
835 * remote.c (init_remote_state): Update.
836 (remote_prepare_to_store): Update.
837 * remote-vx.c (vx_prepare_to_store): Update.
838 * remote-sds.c (sds_fetch_registers): Update.
839 (sds_prepare_to_store): Update.
840 * remote-array.c: Update.
841 * regcache.c (init_legacy_regcache_descr): Update.
842 (init_regcache_descr): Update.
843 * mips-tdep.c (mips_eabi_extract_return_value): Update.
844 (mips_o64_extract_return_value): Update.
845 * irix5-nat.c (fetch_core_registers): Update.
846 * irix4-nat.c (fetch_core_registers): Update.
847 * i386-tdep.h: Update.
848 * hppa-tdep.c (pa_do_registers_info): Update.
849 (pa_do_strcat_registers_info): Update.
850 * cris-tdep.c (cris_register_bytes_ok): Update.
851 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
852 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
853 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
854 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
855 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
856 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
857 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
858 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
859 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
860 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
861 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
862 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
863 (REGISTER_BYTES_OK): Update.
864 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
865 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
866
867 2003-05-16 Ian Lance Taylor <ian@airs.com>
868
869 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
870 (vax_print_insn, print_insn_arg): Remove static functions.
871 (vax_gdbarch_init): Call set_gdbarch_print_insn with
872 print_insn_vax from opcodes library.
873 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
874
875 2003-05-15 Andrew Cagney <cagney@redhat.com>
876
877 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
878 * target.h (memory_breakpoint_from_pc): Delete declaration.
879 * mem-break.c (memory_breakpoint_from_pc): Delete function.
880 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
881 * monitor.c (monitor_insert_breakpoint): Use
882 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
883 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
884 * gdbarch.h, gdbarch.c: Re-generate.
885 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
886 (sparc_gdbarch_init): Set breakpoint_from_pc to
887 sparc_breakpoint_from_pc.
888 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
889 (BREAKPOINT_FROM_PC): Define.
890 (sparc_breakpoint_from_pc): Declare.
891 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
892 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
893 (BREAKPOINT_FROM_PC): Define.
894 (BREAKPOINT): Delete macro.
895 * target.h: Update comment.
896 * s390-tdep.c (s390_gdbarch_init): Update comments.
897 * remote.c: Update comments.
898 * remote-mips.c: Update comments.
899 * proc-api.c (write_with_trace): Do not check for a breakpoint.
900 * mem-break.c: Update comment.
901 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
902 (ia64_memory_insert_breakpoint): Update.
903 * config/sparc/tm-sparc.h: Update comment.
904 * config/pa/tm-hppa64.h: Update comment.
905 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
906 (rs6000_breakpoint_from_pc): Update.
907 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
908 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
909 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
910 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
911 (mips_breakpoint_from_pc): Update.
912 (mips_dump_tdep): Update.
913
914 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
915 * minsyms.c (lookup_minimal_symbol): Inline
916 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
917
918 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
919 * p-valprint.c (pascal_object_print_value_fields): Ditto.
920 * p-lang.c (pascal_printstr): Ditto.
921 * objc-lang.c (objc_printstr): Ditto.
922 * m2-lang.c (m2_printstr): Ditto.
923 * jv-valprint.c (java_print_value_fields): Ditto.
924 * f-lang.c (f_printstr): Ditto.
925 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
926 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
927 for repeat_count_threshold.
928 * Makefile.in (cp-valprint.o): Update dependencies.
929
930 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
931
932 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
933 (examine_prologue): Support looking through leaf functions, knowing
934 they start with mov r2,r12. Support skipping over indirect stores
935 of the input registers. Upon hitting a non-nop branch instruction
936 or predicated instruction, bail out by setting lim_pc to the current
937 pc value in the loop. At the end, if the lim_pc value is still
938 beyond our calculated value and we have trust_limit set,
939 use the lim_pc value.
940
941 2003-05-15 Andrew Cagney <cagney@redhat.com>
942
943 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
944 generic_find_dummy_frame.
945 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
946 (deprecated_generic_find_dummy_frame): Update.
947 (deprecated_read_register_dummy): Update.
948 * frame.c (deprecated_generic_get_saved_register): Update.
949
950 2003-05-15 Theodore A. Roth <troth@openavr.org>
951
952 * avr-tdep.c (avr_breakpoint_from_pc): New function.
953 (avr_gdbarch_init): Set breakpoint_from_pc method.
954
955 2003-05-15 Andrew Cagney <cagney@redhat.com>
956
957 * regcache.c (build_regcache): Set deprecated_register_valid
958 directly.
959 (deprecated_grub_regcache_for_register_valid): Delete function.
960 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
961 declaration.
962
963 2003-05-15 David Carlton <carlton@bactrian.org>
964
965 Committed by Elena Zannoni <ezannoni@redhat.com>
966 * symtab.c (lookup_symbol_aux): Delete calls to
967 lookup_symbol_aux_minsyms.
968 (lookup_symbol_aux_minsyms): Comment out function and
969 prototype. Delete lookup by mangled name.
970
971 2003-05-14 Kevin Buettner <kevinb@redhat.com>
972
973 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
974 correctly indicate an empty stack and ``stack_allocated'' to the
975 indicate the number of elements initially allocated.
976 (dwarf_expr_grow_stack): Simplify method for computing new
977 stack size. Don't loop infinitely if ``stack_len'' is zero.
978 (execute_stack_op): Move ``ctx->in_reg'' initialization
979 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
980 be used in conjuction with DW_OP_piece. Revise error message
981 accordingly.
982
983 2003-05-14 Theodore A. Roth <troth@openavr.org>
984
985 * MAINTAINERS: Update my email address.
986 * avr-tdep.c: Ditto.
987
988 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
989
990 * symtab.h (enum domain_enum): Rename from namespace_enum.
991 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
992 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
993 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
994 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
995 TYPES_NAMESPACE, METHODS_NAMESPACE.
996 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
997 (struct symbol, struct partial_symbol): Rename field
998 'namespace_enum namespace' to 'domain_enum domain'.
999 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
1000 Delete old define kludge for namespace.
1001
1002 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
1003 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
1004 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
1005 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
1006 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
1007 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
1008 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
1009 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
1010 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
1011 occurrences of the above.
1012
1013 2003-05-14 Ian Lance Taylor <ian@airs.com>
1014
1015 * Makefile.in (install-only): Use $(SHELL) when running
1016 mkinstalldirs.
1017
1018 2003-05-13 Ian Lance Taylor <ian@airs.com>
1019
1020 * MAINTAINERS (write after approval): Add myself.
1021
1022 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
1023 second and third arguments.
1024 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1025 * ser-unix.c (_initialize_ser_hardwire): Likewise.
1026
1027 2003-05-13 Andrew Cagney <cagney@redhat.com>
1028
1029 * defs.h (store_address): Delete declaration.
1030 findvar.c (store_address): Delete function.
1031 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
1032 store_unsigned_integer.
1033 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
1034 * v850-tdep.c (v850_push_arguments): Ditto.
1035 * sparc-tdep.c (sparc_get_saved_register): Ditto.
1036 * sh-tdep.c (sh64_get_saved_register): Ditto.
1037 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
1038 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
1039 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
1040 (mips_get_saved_register): Ditto.
1041 * ia64-tdep.c (ia64_get_saved_register): Ditto.
1042 (find_func_descr, ia64_push_arguments): Ditto.
1043 * i386-tdep.c (i386_push_arguments): Ditto.
1044 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1045 * frv-tdep.c (frv_push_arguments): Ditto.
1046 * frame.c (legacy_saved_regs_prev_register): Ditto.
1047 (deprecated_generic_get_saved_register): Ditto.
1048 * findvar.c (unsigned_address_to_pointer): Ditto.
1049 * dwarf2read.c (dwarf2_const_value): Ditto.
1050 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
1051 * alpha-tdep.c (alpha_push_arguments): Ditto.
1052
1053 2003-05-12 J. Brobecker <brobecker@gnat.com>
1054
1055 * NEWS: Mention that the hppa-hpux port has been partially
1056 multiarched (32bit ABIT only, so far).
1057
1058 2003-05-11 Andrew Cagney <cagney@redhat.com>
1059
1060 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
1061 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
1062 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
1063 sim/testsuite/sim/arm/misaligned2.ms, and
1064 sim/testsuite/sim/arm/misaligned3.ms.
1065 * disasm.h (struct ui_file): Add opaque struct declaration.
1066 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
1067 * frame.h (struct ui_file): Ditto.
1068
1069 2003-05-11 Mark Kettenis <kettenis@gnu.org>
1070
1071 * value.h: Pretty print.
1072
1073 2003-05-10 Mark Kettenis <kettenis@gnu.org>
1074
1075 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
1076
1077 2003-05-08 Andrew Cagney <cagney@redhat.com>
1078
1079 * regcache.h (max_register_size): Delete declaration.
1080 * regcache.c (max_register_size): Delete function.
1081 (struct regcache_descr): Delete field "max_register_size".
1082 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
1083 registers fit in MAX_REGISTER_SIZE.
1084 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
1085 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
1086 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
1087 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
1088 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
1089 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
1090 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
1091 * dve3900-rom.c, hppa-tdep.c: Ditto.
1092
1093 2003-05-08 David Carlton <carlton@math.stanford.edu>
1094
1095 * valops.c (push_word): Fix typo.
1096
1097 2003-05-08 Andrew Cagney <cagney@redhat.com>
1098
1099 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
1100 * gdbarch.h: Re-generate.
1101 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
1102 (legacy_max_register_raw_size): Delete declaration.
1103 * regcache.c (legacy_max_register_raw_size): Delete function.
1104 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
1105 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
1106 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
1107 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
1108 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
1109 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
1110 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
1111 * findvar.c, dwarf2cfi.c: Ditto.
1112
1113 2003-05-08 Andrew Cagney <cagney@redhat.com>
1114
1115 * mips-tdep.c (read_signed_register): New function, moved to here
1116 from "regcache.c".
1117 (read_signed_register_pid): Ditto.
1118 * regcache.c (read_signed_register_pid): Delete function, moved to
1119 "mips-tdep.c".
1120 (read_signed_register): Ditto.
1121 * regcache.h (read_signed_register): Delete declaration.
1122 (read_signed_register_pid): Delete declaration.
1123
1124 2003-05-08 Andrew Cagney <cagney@redhat.com>
1125
1126 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
1127 * gdbarch.h: Re-generate.
1128 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
1129 (legacy_max_register_virtual_size): Delete declaration.
1130 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
1131 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1132 * tracepoint.c (memrange_sortmerge): Ditto.
1133 * sparc-tdep.c (sparc_print_registers): Ditto.
1134 * regcache.c (legacy_max_register_virtual_size): Delete function.
1135
1136 2002-05-08 J. Brobecker <brobecker@gnat.com>
1137
1138 * fork-child.c (escape_bang_in_quoted_argument): New function.
1139 (fork_inferior): Escape '!' characters in quoted arguments
1140 only when needed.
1141
1142 2003-05-08 J. Brobecker <brobecker@gnat.com>
1143
1144 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
1145 the language of the CU is not currently supported by GDB.
1146
1147 2003-05-08 J. Brobecker <brobecker@gnat.com>
1148
1149 * defs.h (language): Add language_minimal enum value.
1150 * c-lang.c (minimal_language_defn): New language definition.
1151 (_initialize_c_language): Add the new minimal language to the list
1152 of languages known to GDB.
1153
1154 2003-05-08 Kevin Buettner <kevinb@redhat.com>
1155
1156 * frame.c (get_frame_type): Don't attempt to lazily initialize
1157 frame's unwinder for legacy frames.
1158
1159 2003-05-07 Andrew Cagney <cagney@redhat.com>
1160
1161 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
1162 and "regcache" parameters.
1163 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
1164
1165 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1166
1167 * dwarf2read.c (dwarf_decode_lines): Only use output of
1168 check_cu_functions() when calling record_line(). Do not update
1169 the current address.
1170
1171 2003-05-07 Andrew Cagney <cagney@redhat.com>
1172
1173 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
1174 code.
1175
1176 2003-05-07 Jim Blandy <jimb@redhat.com>
1177
1178 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
1179 'maint info symtabs' and 'maint info psymtabs'.
1180 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
1181 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
1182 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
1183 Declarations updated.
1184 * maint.c (maintenance_list_command): Delete.
1185 (_initialize_maint_cmds): Update calls to add_cmd.
1186 * gdbcmd.h (maintenancelistlist): Delete declaration.
1187 * cli/cli-cmds.c (maintenancelistlist): Delete.
1188 (init_cmd_lists): Don't initialize it.
1189 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
1190
1191 2003-05-07 Andrew Cagney <cagney@redhat.com>
1192
1193 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
1194 "regcache".
1195 (d10v_print_registers_info): Update.
1196 (d10v_dmap_register, d10v_imap_register): Delete functions.
1197 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
1198 and "imap_register".
1199 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
1200 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
1201 * arch-utils.c (generic_remote_translate_xfer_address): Add
1202 "regcache" and "gdbarch" parameters.
1203 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
1204 parameter. Change class to multi-arch.
1205 * gdbarch.h, gdbarch.c: Re-generate.
1206 * remote.c (remote_xfer_memory): Use
1207 gdbarch_remote_translate_xfer_address.
1208
1209 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1210
1211 * infrun.c (prev_pc): Move declaration ahead of proceed().
1212 (proceed): Refresh prev_pc value before resuming.
1213 (stop_stepping): Remove code to refresh prev_pc.
1214
1215 2003-05-06 Kris Warkentin <kewarken@qnx.com>
1216
1217 * nto-tdep.c: Removed stray comment.
1218
1219 2003-05-06 Kris Warkentin <kewarken@qnx.com>
1220
1221 * i386-nto-tdep.c: Fix old K&R function definitions.
1222 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
1223 Also change add_show_from_set() call to add_setshow_cmd().
1224 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
1225
1226 2003-05-05 Andrew Cagney <cagney@redhat.com>
1227
1228 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
1229 (fprint_dummy_frames): New function.
1230 (maintenance_print_dummy_frames): New function.
1231 (_initialize_dummy_frame): Add command "maint print dummy-frames".
1232 * frame.c (fprint_frame_id): Make global.
1233 * frame.h (fprint_frame_id): Declare.
1234 * Makefile.in (dummy-frame.o): Update dependencies.
1235
1236 2003-05-05 Andrew Cagney <cagney@redhat.com>
1237
1238 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
1239 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
1240 SIZEOF_CALL_DUMMY_WORDS.
1241 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
1242 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
1243 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
1244 CALL_DUMMY_BREAKPOINT_OFFSET.
1245 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
1246 CALL_DUMMY_START_OFFSET.
1247 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
1248 * gdbarch.h, gdbarch.c: Re-generate.
1249 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
1250 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
1251 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
1252 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
1253 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
1254 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
1255 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1256 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
1257 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
1258 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
1259 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
1260 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
1261 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
1262 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
1263 * config/sparc/tm-sparc.h: Update.
1264
1265 2003-05-05 Kris Warkentin <kewarken@qnx.com>
1266
1267 * configure.tgt: Add i[3456]86-*-nto*.
1268 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
1269 * nto-tdep.c: New file. Neutrino target support routines.
1270 * nto-tdep.h: New file. Neutrino target header.
1271 * config/tm-qnxnto.h: New file.
1272 * config/i386/i386nto.mt: New file.
1273 * config/i386/tm-i386nto.h: New file.
1274
1275 2003-05-04 Andrew Cagney <cagney@redhat.com>
1276
1277 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
1278 (load_infrun_state): Ditto.
1279 (struct thread_info): Drop "prev_func_name" field.
1280 * thread.c (load_infrun_state): Update.
1281 (save_infrun_state): Update.
1282 * infrun.c (prev_func_name): Delete variable.
1283 (init_wait_for_inferior): Do not clear prev_func_name.
1284 (stop_stepping, keep_going, context_switch): Do not swap
1285 prev_func_name.
1286 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
1287 instead of PC_IN_SIGTRAMP.
1288
1289 2003-05-04 Andrew Cagney <cagney@redhat.com>
1290
1291 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1292 REGISTER_BYTE with register_offset_hack.
1293 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
1294 that REGISTER_BYTE is consistent with the regcache.
1295 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
1296 * gdbarch.h, gdbarch.c: Regenerate.
1297
1298 2003-05-04 Mark Kettenis <kettenis@gnu.org>
1299
1300 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
1301 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
1302
1303 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
1304
1305 2003-05-03 J. Brobecker <brobecker@gnat.com>
1306
1307 From Thierry Schneider <tpschneider1@yahoo.com>
1308 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
1309 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
1310 (mi-cmd-symbol.o): Add rule.
1311
1312 2003-05-03 Andrew Cagney <cagney@redhat.com>
1313
1314 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
1315 comments noteing that it replaces the old FIX_CALL_DUMMY code.
1316 * gdbarch.h, gdbarch.c: Re-generate.
1317 * d10v-tdep.c (d10v_push_dummy_code): New function.
1318 (d10v_gdbarch_init): Set push_dummy_code.
1319 * infcall.c (legacy_push_dummy_code): New function.
1320 (generic_push_dummy_code): New function.
1321 (push_dummy_code): New function.
1322 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
1323 instead of dummy_addr, to push_dummy_call. Move call to
1324 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
1325 switch.
1326 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
1327
1328 2003-05-03 Andrew Cagney <cagney@redhat.com>
1329
1330 * disasm.h (print_insn): Declare.
1331 * disasm.c (init_gdb_disassemble_info): New function.
1332 (gdb_disassembly): Call init_gdb_disassemble_info.
1333 (gdb_print_insn): New function.
1334 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
1335 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
1336 * mcore-tdep.c: Include "disasm.h"
1337 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
1338 * d10v-tdep.c: Include "disasm.h".
1339 (display_trace): Call gdb_print_insn, instead of print_insn.
1340 (print_insn): Delete function.
1341 * printcmd.c: Include "disasm.h".
1342 (print_insn): Delete function.
1343 (print_formatted): Call gdb_print_insn, instead of print_insn.
1344 * Makefile.in (printcmd.o): Update dependencies.
1345 (mcore-tdep.o, d10v-tdep.o): Ditto.
1346
1347 2003-05-02 Andrew Cagney <cagney@redhat.com>
1348
1349 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
1350 PC_REGNUM, re-indent.
1351 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
1352 PC_REGNUM isn't set.
1353
1354 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
1355 * gdbarch.h, gdbarch.c: Re-generate.
1356 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
1357 register_virtual_size, pc_regnum, or register_bytes.
1358 (D10V_PC_REGNUM): Rename _PC_REGNUM.
1359 (d10v_register_type): Use D10V_PC_REGNUM.
1360 (d10v_print_registers_info, d10v_read_pc): Ditto.
1361 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
1362 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
1363
1364 2003-05-02 David Carlton <carlton@bactrian.org>
1365
1366 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
1367 the name with mstrsave.
1368
1369 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
1370
1371 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
1372 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
1373 (host_charset_name, target_charset_name): New vars for use by
1374 set/show commands.
1375 (host_charset_enum, target_charset_enum): New enums for set/show
1376 commands.
1377 (set_charset_sfunc, set_host_charset_sfunc,
1378 set_target_charset_sfunc): New functions.
1379 (set_host_charset, set_target_charset): Make static.
1380 (list_charsets, set_host_charset_command,
1381 set_target_charset_command): Delete functions.
1382 (show_charset_command): Rewrite as....
1383 (show_charset): Hook this up with the set/show command mechanism.
1384 (_initialize_charset): Change names of charsets to match the
1385 set/show enums. Use host_charset_name and target_charset_name.
1386 Use set/show mechanism for charset, host-charset, target-charset
1387 commands. Do not make 'show host-charset' and 'show
1388 target-charset' be aliases of 'show charset'.
1389
1390 * charset.h (set_host_charset, set_target_charset): Don't export,
1391 they are not used outside the file.
1392
1393 2003-05-01 Andrew Cagney <cagney@redhat.com>
1394
1395 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
1396 (gdb_disassembly): Make "di" non static, always initialize and
1397 cleanup. Always use dis_asm_read_memory.
1398 (gdb_dis_asm_read_memory): Delete function.
1399
1400 2003-05-01 Andrew Cagney <cagney@redhat.com>
1401
1402 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
1403 (d10v_gdbarch_init): Set frame_align instead of stack_align.
1404
1405 2003-04-30 Andrew Cagney <cagney@redhat.com>
1406
1407 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
1408 "tm_print_insn_info".
1409 (TARGET_PRINT_INSN_INFO): Delete macro.
1410 (dis_asm_read_memory): Delete function declaration.
1411 (dis_asm_memory_error, dis_asm_print_address): Ditto.
1412 (tm_print_insn_info): Delete variable definition.
1413 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
1414 * gdbarch.h, gdbarch.c: Re-generate.
1415 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
1416 "deprecated_tm_print_insn_info".
1417 * mcore-tdep.c (mcore_dump_insn): Ditto.
1418 * mips-tdep.c (mips_gdbarch_init): Ditto.
1419 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
1420 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
1421 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
1422 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
1423 instead of TARGET_PRINT_INSN_INFO, add comment.
1424 * s390-tdep.c (s390_get_frame_info): Instead of
1425 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
1426 (s390_check_function_end, s390_is_sigreturn): Ditto.
1427 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
1428 (dis_asm_memory_error, dis_asm_print_address): Ditto.
1429 * disasm.c: Include "gdbcore.h".
1430 (_initialize_disasm): New function, initialize
1431 "deprecated_tm_print_insn_info".
1432 (deprecated_tm_print_insn_info): New variable.
1433 (dis_asm_read_memory): Moved from "corefile.c", made static.
1434 (dis_asm_print_address, dis_asm_memory_error): Ditto.
1435 * Makefile.in (disasm.o): Update dependencies.
1436
1437 2003-04-30 Andrew Cagney <cagney@redhat.com>
1438
1439 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
1440
1441 2003-04-29 Adam Fedor <fedor@gnu.org>
1442
1443 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
1444 * infcall.c (find_function_addr): Make non-static.
1445 * infcall.h (find_function_addr): Declare.
1446 * Makefile.in (eval.o): Update dependencies.
1447
1448 2003-04-28 Adam Fedor <fedor@gnu.org>
1449
1450 * symtab.c (symbol_find_demangled_name): Check for and demangle
1451 ObjC symbols.
1452 (symbol_init_demangled_name): Init for language_objc as well.
1453
1454 2003-04-28 Andrew Cagney <cagney@redhat.com>
1455
1456 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
1457 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
1458 * gdbarch.h, gdbarch.c: Re-generate.
1459 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
1460 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
1461 * inferior.h (deprecated_read_fp): Rename read_fp.
1462 (generic_target_read_fp): Delete declaration.
1463 * regcache.c (generic_target_read_fp): Delete function.
1464 (deprecated_read_fp): Replace read_fp, use
1465 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
1466 * d10v-tdep.c (d10v_read_fp): Delete function.
1467 (d10v_gdbarch_init): Do not set deprecated_read_fp.
1468
1469 * sparc-tdep.c (sparc_gdbarch_init): Do not set
1470 deprecated_target_read_fp to generic_target_read_fp.
1471 * sh-tdep.c (sh_gdbarch_init): Ditto.
1472 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1474 * frv-tdep.c (frv_gdbarch_init): Ditto.
1475
1476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
1477 deprecated_fp_regnum.
1478 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1479 * vax-tdep.c (vax_gdbarch_init): Ditto.
1480 * v850-tdep.c (v850_gdbarch_init): Ditto.
1481 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1482 * sh-tdep.c (sh_gdbarch_init): Ditto.
1483 * s390-tdep.c (s390_gdbarch_init): Ditto.
1484 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1485 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1486 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1487 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1489 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1490 * i386-tdep.c (i386_gdbarch_init): Ditto.
1491 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1492 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1493 * frv-tdep.c (frv_gdbarch_init): Ditto.
1494 * cris-tdep.c (cris_gdbarch_init): Ditto.
1495 * avr-tdep.c (avr_gdbarch_init): Ditto.
1496 * arm-tdep.c (arm_gdbarch_init): Ditto.
1497 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1498
1499 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
1500 * v850-tdep.c (v850_gdbarch_init): Ditto.
1501 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1502 * sh-tdep.c (sh_gdbarch_init): Ditto.
1503 * s390-tdep.c (s390_gdbarch_init): Ditto.
1504 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1505 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1506 * mips-tdep.c (mips_gdbarch_init): Ditto.
1507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1508 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1509 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1510 * frv-tdep.c (frv_gdbarch_init): Ditto.
1511 * avr-tdep.c (avr_gdbarch_init): Ditto.
1512 * arm-tdep.c (arm_gdbarch_init): Ditto.
1513
1514 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
1515 DEPRECATED_FP_REGNUM.
1516 (vax_push_dummy_frame, vax_pop_frame): Ditto.
1517 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
1518 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1519 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
1520 (sparc32_register_virtual_type): Ditto.
1521 * sh-tdep.c (sh64_frame_chain): Ditto.
1522 (sh64_get_saved_register, sh64_pop_frame): Ditto.
1523 (sh_nofp_frame_init_saved_regs): Ditto.
1524 (sh64_nofp_frame_init_saved_regs): Ditto.
1525 (sh_fp_frame_init_saved_regs): Ditto.
1526 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1527 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1528 * procfs.c (procfs_fetch_registers): Ditto.
1529 (procfs_store_registers): Ditto.
1530 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
1531 (store_inferior_registers, fetch_core_registers): Ditto.
1532 (fetch_kcore_registers, clear_regs): Ditto.
1533 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
1534 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
1535 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
1536 * nlm/i386.c (do_status): Ditto.
1537 * mipsv4-nat.c (supply_gregset): Ditto.
1538 * mips-tdep.c: Ditto for comments.
1539 * mips-nat.c (fetch_inferior_registers): Ditto.
1540 (store_inferior_registers, fetch_core_registers): Ditto.
1541 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
1542 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
1543 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
1544 (i386_do_pop_frame, i386_register_type): Ditto.
1545 * hppa-tdep.c (hppa_frame_chain): Ditto.
1546 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
1547 (hppa_pop_frame, hppa_read_fp): Ditto.
1548 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
1549 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
1550 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
1551 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
1552 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
1553 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
1554 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
1555 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
1556 * blockframe.c: Ditto for comments.
1557 * arch-utils.h: Ditto for comments.
1558 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
1559 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
1560 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
1561 * alpha-tdep.h: Ditto for comments.
1562 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
1563 (alpha_cannot_store_register): Ditto.
1564 (alpha_push_dummy_frame): Ditto.
1565 * alpha-nat.c (supply_gregset): Ditto.
1566
1567 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
1568 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
1569 * config/sparc/tm-sparc.h: Update comment.
1570
1571 * hppa-tdep.c (hppa_init_extra_frame_info): Use
1572 deprecated_read_fp instead of TARGET_READ_FP.
1573 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
1574 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
1575 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1576 deprecated_read_fp instead of read_fp.
1577 * s390-tdep.c (s390_push_arguments): Ditto.
1578 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1579 * frame.h: Ditto in comments.
1580 * frame.c (legacy_get_prev_frame): Ditto.
1581 * dummy-frame.c (dummy_frame_this_id): Ditto.
1582 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1583
1584 2003-04-28 Andrew Cagney <cagney@redhat.com>
1585
1586 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
1587 * gdbarch.h, gdbarch.c: Re-generate.
1588 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
1589 * vax-tdep.c (_initialize_vax_tdep): Update.
1590 * v850-tdep.c (_initialize_v850_tdep): Update.
1591 * sparc-tdep.c (_initialize_sparc_tdep): Update.
1592 * s390-tdep.c (_initialize_s390_tdep): Update.
1593 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
1594 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
1595 * mips-tdep.c (_initialize_mips_tdep): Update.
1596 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1597 * m68k-tdep.c (_initialize_m68k_tdep): Update.
1598 * ia64-tdep.c (_initialize_ia64_tdep): Update.
1599 * hppa-tdep.c (_initialize_hppa_tdep): Update.
1600 * h8300-tdep.c (_initialize_h8300_tdep): Update.
1601 * frv-tdep.c (_initialize_frv_tdep): Update.
1602 * cris-tdep.c (cris_delayed_get_disassembler): Update.
1603 (_initialize_cris_tdep): Update.
1604 * arch-utils.c (legacy_print_insn): Update.
1605 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1606
1607 2003-04-26 Adam Fedor <fedor@gnu.org>
1608
1609 * linespec.c (decode_objc): New function to decode ObjC calls
1610 (decode_line_1): Check for ObjC calls (using decode_objc)
1611 * Makefile (linespec.o): Update dependencies.
1612
1613 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
1614
1615 * breakpoint.h (struct breakpoint_ops): New.
1616 (struct breakpoint): Add ops member.
1617
1618 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
1619 (mention): Use new breakpoint ops member.
1620 (set_raw_breakpoint): Initialize ops field to NULL.
1621 (print_exception_catchpoint, print_one_exception_catchpoint)
1622 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
1623 (gnu_v3_exception_catchpoint_ops): New.
1624 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
1625
1626 2003-04-25 Adam Fedor <fedor@gnu.org>
1627
1628 * Makefile.in (COMMON_OBS): Add objc-lang.o
1629
1630 2003-04-25 Andrew Cagney <cagney@redhat.com>
1631
1632 * d10v-tdep.c (print_insn): Delete function.
1633 (display_trace): Use TARGET_PRINT_INSN.
1634 (_initialize_d10v_tdep): Do not set tm_print_insn.
1635 (d10v_gdbarch_init): Set print_insn.
1636
1637 2003-04-25 Andrew Cagney <cagney@redhat.com>
1638
1639 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
1640 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
1641 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
1642 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
1643 (nr_dmap_regs, a0_regnum): ... new functions.
1644 (d10v_print_registers_info): Use a0_regnum, use register_size.
1645 (d10v_register_byte): Delete function.
1646 (d10v_register_raw_size): Delete function.
1647 (d10v_register_type): Use a0_regnum.
1648 (d10v_print_registers_info): Use a0_regnum.
1649 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
1650 (d10v_gdbarch_init): Do not set register_byte or
1651 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
1652 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
1653 extract_address.
1654 (trace_command): Use XCALLOC.
1655 (print_insn): Delete reference to tm_print_insn.
1656 (saved_regs_unwinder): Use store_unsigned_integer instead of
1657 store_address.
1658 * frame.h (FRAME_OBSTACK_CALLOC): Define
1659
1660 2003-04-25 David Carlton <carlton@bactrian.org>
1661
1662 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
1663
1664 2003-04-24 Adam Fedor <fedor@gnu.org>
1665
1666 * objc-lang.c: Include "valprint.h"
1667 * Makefile.in (objc-lang.o): Update dependencies.
1668
1669 2003-04-24 Adam Fedor <fedor@gnu.org>
1670
1671 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
1672 architecture dependant compilation and mark as unimplemented
1673 (until they get put in the gdbarch vector).
1674
1675 2003-04-23 David Carlton <carlton@bactrian.org>
1676
1677 * cp-support.c (cp_find_first_component): Accept 'operator' in
1678 more locations.
1679
1680 2003-04-23 Andrew Cagney <cagney@redhat.com>
1681
1682 * infcall.c (call_function_by_hand): Eliminate redundant
1683 indentation. Move "saved_async" and "old_cleanups" to where they
1684 are needed.
1685
1686 2003-04-23 Andrew Cagney <cagney@redhat.com>
1687
1688 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
1689 and "buffer". Move the "name" code to where it is needed.
1690
1691 2003-04-23 Andrew Cagney <cagney@redhat.com>
1692
1693 * infcall.c (call_function_by_hand): Move variables "start_sp",
1694 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
1695 code to ON_STACK switch branch.
1696
1697 2003-04-23 Andrew Cagney <cagney@redhat.com>
1698
1699 * infcall.c (call_function_by_hand): Make declaration of "i",
1700 "sal", "bpt" and "old_sp" more local to their use. Delete #if
1701 lint.
1702
1703 2003-04-23 Andrew Cagney <cagney@redhat.com>
1704
1705 * infcall.c (call_function_by_hand): Delete variable
1706 "n_method_args". Localize "param_type"'s declaration to the loop
1707 that it is used. Reinstate code assigning to said variable -
1708 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
1709 Rationalize code using "param_type".
1710
1711 2003-04-22 Andrew Cagney <cagney@redhat.com>
1712
1713 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
1714 compute the breakpoint address. Only call FIX_CALL_DUMMY when
1715 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
1716 to DEPRECATED_PUSH_RETURN_ADDRESS.
1717
1718 2003-04-22 Kevin Buettner <kevinb@redhat.com>
1719
1720 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
1721 on the DWARF2 register number prior to fetching a register.
1722
1723 2003-04-22 J. Brobecker <brobecker@gnat.com>
1724
1725 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
1726 Update all the tests using SOFT_FLOAT considering the fact that
1727 this macro was always set to 0.
1728 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
1729 considering the fact that this macro was always set to 0.
1730 * hppa-tdep.h (hppa_store_return_value): Likewise.
1731 (hppa_extract_return_value): Likewise.
1732
1733 2003-04-22 J. Brobecker <brobecker@gnat.com>
1734
1735 * config/pa/tm-hppa.h: Remove obsolete code, was used by
1736 the hppa-pro target only.
1737
1738 2003-04-21 J. Brobecker <brobecker@gnat.com>
1739
1740 Ongoing multi-arch conversion effort for HP/UX:
1741 * config/pa/tm-hppa.h: Move all macro that are no longer
1742 defined now that GDB_MULTI_ARCH is now set to 1 from here...
1743 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
1744
1745 2003-04-21 J. Brobecker <brobecker@gnat.com>
1746
1747 * config/pa/tm-hppa.h: Obsolete a section that was only used
1748 for hppa-pro.
1749
1750 2003-04-21 J. Brobecker <brobecker@gnat.com>
1751
1752 Ongoing multi-arch conversion for HP/UX.
1753 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
1754 if already defined (allows hppa64 to stay non-multiarched for now).
1755 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
1756
1757 2003-04-21 Andrew Cagney <cagney@redhat.com>
1758
1759 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
1760
1761 2003-04-21 Andrew Cagney <cagney@redhat.com>
1762
1763 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
1764 "i386_num_mmx_regs".
1765
1766 2003-04-21 Andrew Cagney <cagney@redhat.com>
1767
1768 * infcall.c: New file.
1769 * infcall.h: New file.
1770 * valarith.c: Include "infcall.h".
1771 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
1772 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
1773 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
1774 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
1775 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
1776 (SFILES): Add "infcall.c"
1777 (COMMON_OBS): Add "infcall.o".
1778 (infcall.o): Specify dependencies.
1779 * value.h (call_function_by_hand): Delete declaration.
1780 * inferior.h (run_stack_dummy): Delete declaration.
1781 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
1782 (run_stack_dummy): Move to "infcall.c", merged into
1783 call_function_by_hand.
1784 * valops.c (call_function_by_hand): Moved to "infcall.c".
1785 (find_function_addr, value_arg_coerce): Ditto.
1786 (unwindonsignal_p, coerce_float_to_double): Ditto.
1787 (_initialize_valops): Move "set/show coerce-float-to-double", and
1788 "set/show unwindonsignal" commands to "infcall.c".
1789 * v850-tdep.c, target.h: Update comments.
1790 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
1791 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
1792 (sh64_init_extra_frame_info): Update comments.
1793 * mn10300-tdep.c: Update comments.
1794 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
1795 * config/sparc/tm-sparc.h: Update comments.
1796 * breakpoint.h: Update comments.
1797 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
1798 * arm-tdep.c: Update comment.
1799
1800 2003-04-19 Mark Kettenis <kettenis@gnu.org>
1801
1802 * i386-tdep.c (i386_num_register_names): New variable.
1803 (i386_num_mmx_regs): Renamed from mmx_num_regs.
1804 (MM0_REGNUM): Remove redundant parentheses in define.
1805 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
1806 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
1807 i386_mxcsr_regnum_p): Remove redundant parentheses.
1808 (i386_register_name): Use i386_num_register_names.
1809
1810 * i386-tdep.c (i386_extract_return_value,
1811 i386_store_return_value): Correct check for availability of
1812 floating-point registers.
1813
1814 * i386-tdep.c (i386_frame_num_args): Remove function.
1815 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
1816
1817 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
1818 mmx_regnum_to_fp_regnum. Adjust all callers.
1819
1820 * i386-tdep.c (i386_get_longjmp_target): Use
1821 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
1822 and TARGET_CHAR_BIT. Use extract_typed_address instead of
1823 extract_address.
1824
1825 2003-04-19 Mark Kettenis <kettenis@gnu.org>
1826
1827 * core-regset.c: Update comments to reflect reality. Re-order
1828 includes.
1829 (fetch_core_registers): Use switch instead of if. Remove
1830 redundant prototype.
1831
1832 2003-04-18 Jim Blandy <jimb@redhat.com>
1833
1834 * s390-tdep.c (s390_frame_align): New function.
1835 (s390_gdbarch_init): Register it with the gdbarch object.
1836
1837 2003-04-17 Richard Henderson <rth@redhat.com>
1838
1839 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
1840
1841 2003-04-17 Michael Snyder <msnyder@redhat.com>
1842 Karen Bennet <bennet@redhat.com>
1843
1844 Committed by Elena Zannoni <ezannoni@redhat.com>
1845 * gdb_gcore.sh: New script to create a core dump of a process.
1846
1847 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
1848
1849 * values.c (value_being_returned): Don't fetch the return
1850 value if the return type is void.
1851
1852 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
1853
1854 * thread-db.c: Reindented.
1855
1856 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
1857
1858 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
1859 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
1860 as types.
1861
1862 2003-04-16 Kevin Buettner <kevinb@redhat.com>
1863
1864 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
1865 the size of ``long double'' to 16, instead of 8.
1866
1867 2003-04-16 Mark Kettenis <kettenis@gnu.org>
1868
1869 * i386-linux-nat.c: Add some whitespace to make things more
1870 readable.
1871 (fetch_register, store_register, fetch_inferior_registers,
1872 store_inferior_registers): Get rid of assignment in if-statement.
1873 (store_register): Fix typo in error message.
1874
1875 2003-04-16 Andrew Cagney <cagney@redhat.com>
1876
1877 * utils.c (xmmalloc): Always allocate something, matches
1878 libiberty/xmalloc's semantics.
1879 (xmrealloc, xmcalloc): Ditto.
1880
1881 2003-04-16 Andrew Cagney <cagney@redhat.com>
1882
1883 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
1884 update comments.
1885 (get_frame_type): Initialize unwind and type when needed.
1886 (get_frame_id, frame_register_unwind): Ditto.
1887
1888 2003-04-16 Andrew Cagney <cagney@redhat.com>
1889
1890 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
1891 obsolete.
1892 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
1893 * sparcl-stub.c: Obsolete file.
1894 * config/sparc/tm-sparclet.h: Obsolete file.
1895 * sparclet-stub.c: Obsolete file.
1896 * sparclet-rom.c: Obsolete file.
1897 * sparcl-tdep.c: Obsolete file.
1898 * config/sparc/tm-sparclite.h: Obsolete file.
1899 * config/sparc/sparclite.mt: Obsolete file.
1900 * config/sparc/sparclet.mt: Obsolete file.
1901 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
1902 sparc86x-*-* obsolete.
1903
1904 2003-04-15 David Carlton <carlton@math.stanford.edu>
1905
1906 * Makefile.in (SFILES): Add cp-namespace.c.
1907 (COMMON_OBS): Add cp-namespace.o.
1908 (block.o): Depend on gdb_obstack_h and cp_support_h.
1909 (buildsym.o): Depend on cp_support_h.
1910 (cp-namespace.o): New.
1911 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
1912 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
1913 (dwarf2read.o): Depend on cp_support_h.
1914 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
1915 * dwarf2read.c (process_die): Set processing_has_namespace_info,
1916 processing_current_namespace.
1917 (read_namespace): Update processing_current_namespace; check for
1918 anonymous namespaces.
1919 (dwarf2_name): New function.
1920 (dwarf2_extension): Ditto.
1921 * cp-support.h: Update copyright, contributors.
1922 Add inclusion guards.
1923 Add opaque declaration for structs obstack, block, symbol.
1924 (struct using_direct): New struct.
1925 Add declarations for cp_find_first_component,
1926 cp_entire_prefix_len, processing_has_namespace_info,
1927 processing_current_namespace, cp_is_anonymous,
1928 cp_add_using_directive, cp_initialize_namespace,
1929 cp_finalize_namespace, cp_set_block_scope,
1930 cp_scan_for_anonymous_namespaces.
1931 * cp-namespace.c: New file.
1932 * cp-support.c: Update copyright.
1933 Include ctype.h, gdb_assert.h, gdbcmd.h.
1934 New variable maint_cplus_cmd_list.
1935 (cp_find_first_component): New function.
1936 (cp_entire_prefix_len, maint_cplus_command)
1937 (first_component_command, _initialize_cp_support): Ditto.
1938 * buildsym.c: Include cp-support.h.
1939 New variable using_list.
1940 (add_symbol_to_list): Check for anonymous namespaces.
1941 (finish_block): Set block's scope.
1942 (start_symtab): Initialize C++ namespace support.
1943 (end_symtab): Finalize C++ namespace support.
1944 * block.h: Add opaque declarations for structs
1945 block_namespace_info, using_direct, and obstack.
1946 Add declarations for block_set_scope and block_set_using.
1947 (struct block): Add 'language_specific' member.
1948 (BLOCK_NAMESPACE): New macro.
1949 * block.c: Include gdb_obstack.h and cp-support.h.
1950 (struct block_namespace_info): New struct.
1951 (block_set_scope): New function.
1952 (block_set_using, block_initialize_namespace): Ditto.
1953
1954 2003-04-14 Kevin Buettner <kevinb@redhat.com>
1955
1956 * solib-svr4.c (svr4_have_link_map_offsets): New function.
1957 (locate_base): Return early if there aren't any link map offsets.
1958 (svr4_solib_create_inferior_hook): Warn if shared library support
1959 is unavailable.
1960
1961 2003-04-14 David Carlton <carlton@math.stanford.edu>
1962
1963 * symtab.c (symbol_set_names): Add prefix when storing Java names
1964 in hash table. Fix for PR java/1039.
1965
1966 2003-04-14 David Carlton <carlton@math.stanford.edu>
1967
1968 * symtab.c (symbol_set_names): Rename 'name' arg to
1969 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
1970 * symtab.h: Change 'name' argument in declaration of
1971 symbol_set_names to 'linkage_name'.
1972 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
1973
1974 2003-04-14 Andrew Cagney <cagney@redhat.com>
1975
1976 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
1977 return the fully sign-extended register value.
1978 (get_frame_pointer): Ditto.
1979 (mips_pop_frame): Initialize "proc_desc" after checking for a
1980 dummy frame.
1981
1982 2003-04-14 Andrew Cagney <cagney@redhat.com>
1983
1984 * mips-tdep.c (mips_push_dummy_frame): Delete function.
1985 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
1986 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
1987 (mips_push_register): Delete function.
1988 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
1989 PUSH_FP_REGNUM.
1990
1991 2003-04-14 Jim Blandy <jimb@redhat.com>
1992
1993 * symmisc.c: #include "gdb_regex.h".
1994 (maintenance_list_symtabs, maintenance_list_psymtabs): New
1995 functions.
1996 * maint.c (maintenance_list_command): New function.
1997 (_initialize_maint_cmds): Register the above as commands.
1998 * symtab.h (maintenance_list_symtabs,
1999 maintenance_list_psymtabs): New declarations.
2000 * cli/cli-cmds.c (maintenancelistlist): New variable.
2001 (init_cmd_lists): Initialize it.
2002 * cli/cli-cmds.h (maintenancelistlist): New declaration.
2003 * gdbcmd.h (maintenancelistlist): New declaration.
2004 * Makefile.in (symmisc.o): Update dependencies.
2005
2006 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
2007
2008 * s390-nat.c: Include asm/types.h for addr_t.
2009
2010 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
2011
2012 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
2013 actually incoming type.
2014
2015 2003-04-13 Andrew Cagney <cagney@redhat.com>
2016
2017 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
2018 get_next_frame and get_frame_saved_regs.
2019
2020 2003-04-13 Andrew Cagney <cagney@redhat.com>
2021
2022 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
2023 of gdbarch_num_regs.
2024
2025 2003-04-13 Andrew Cagney <cagney@redhat.com>
2026
2027 * frame.h: Mention what replaced what in "struct frame_info".
2028 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
2029 deprecated_update_frame_base_hack and
2030 deprecated_update_frame_pc_hack.
2031 * hppa-tdep.c: Ditto.
2032
2033 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2034
2035 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
2036 to read_reg and update its comment. Remove regnum member.
2037 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
2038 Don't call read_reg when setting in_reg. Call read_reg to get
2039 the frame base if it's in a register. Return the register number
2040 on the stack instead of in the context. Remove extra arguments
2041 to read_reg.
2042 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
2043 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
2044 the register number on the expression stack.
2045 (needs_frame_read_reg): Remove extra arguments.
2046
2047 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2048
2049 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
2050 made non-static.
2051 (execute_stack_op): All callers updated.
2052 * dwarf2expr.h: Add prototype for dwarf2_read_address.
2053 * dwarf2loc.c (find_location_expression): New function.
2054 (dwarf_expr_frame_base): Call it.
2055 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
2056 (dwarf2_tracepoint_var_ref): New function, broken out from
2057 locexpr_tracepoint_var_ref.
2058 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
2059 Make static.
2060 (loclist_read_variable, loclist_read_needs_frame): New functions.
2061 (loclist_describe_location, loclist_tracepoint_var_ref): New
2062 functions.
2063 (dwarf2_loclist_funcs): New struct location_funcs.
2064 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
2065 (struct dwarf2_locexpr_baton): Add comments.
2066 (dwarf2_loclist_funcs): New extern.
2067 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
2068 base_address and base_known.
2069 (dwarf_loc_buffer): New variable.
2070 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
2071 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
2072 (dwarf2_has_info): Initialize dwarf_loc_offset.
2073 (dwarf2_build_psymtabs): Read in .debug_loc.
2074 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
2075 DWARF_LOC_SIZE.
2076 (psymtab_to_symtab_1): Likewise. Move base address calculation
2077 here, from...
2078 (dwarf2_get_pc_bounds): ... here. Use the base address from
2079 cu_header.
2080 (dwarf2_symbol_mark_computed): Handle location lists.
2081
2082 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2083
2084 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
2085 if the linkage name demangled successfully.
2086
2087 2003-04-13 Mark Kettenis <kettenis@gnu.org>
2088
2089 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
2090 disassmbly_flavour): Removed.
2091
2092 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
2093
2094 2003-04-13 Mark Kettenis <kettenis@gnu.org>
2095
2096 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
2097
2098 2003-04-12 Andrew Cagney <cagney@redhat.com>
2099
2100 * frame.h (struct frame_info): Move definition from here ...
2101 * frame.c (struct frame_info): ... to here.
2102
2103 2003-04-12 Andrew Cagney <cagney@redhat.com>
2104
2105 * gdbthread.h (save_infrun_state): Delete parameter
2106 "prev_func_start".
2107 (struct thread_info): Delete field "prev_func_start".
2108 (load_infrun_state): Ditto.
2109 * thread.c (load_infrun_state, save_infrun_state): Update.
2110 * infrun.c (prev_func_start): Delete variable.
2111 (context_switch, init_wait_for_inferior): Update.
2112 (stop_stepping, keep_going): Update.
2113
2114 2003-04-12 Andrew Cagney <cagney@redhat.com>
2115
2116 * gdbarch.sh: Add missing opaque declarations.
2117 * gdbarch.h: Regnerate.
2118 * symtab.h: Add missing opaque declarations.
2119 * value.h, target.h, symfile.h, stabsread.h: Ditto.
2120 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
2121 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
2122 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
2123 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
2124 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
2125 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
2126 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
2127 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
2128 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
2129 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
2130 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
2131 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
2132
2133 2003-04-11 Andrew Cagney <cagney@redhat.com>
2134
2135 * frame.c (get_frame_id): Return this frame's "id".
2136 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
2137 function start.
2138 (legacy_saved_regs_this_id): Replace function body with
2139 internal-error.
2140 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
2141 FRAME_OBSTACK_ZALLOC.
2142 (create_new_frame): Mark the frame ID as valid.
2143
2144 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
2145
2146 * Makefile.in (libbfd_h): Added missing setting.
2147 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
2148 according to the selected ABI.
2149
2150 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
2151
2152 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
2153
2154 2003-04-11 Andrew Cagney <cagney@redhat.com>
2155
2156 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
2157 SAVED_PC_AFTER_CALL.
2158 * gdbarch.h, gdbarch.c: Regenerate.
2159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2160 * x86-64-tdep.c (x86_64_init_abi): Update.
2161 * vax-tdep.c (vax_gdbarch_init): Update.
2162 * v850-tdep.c (v850_gdbarch_init): Update.
2163 * sparc-tdep.c (sparc_gdbarch_init): Update.
2164 * sh-tdep.c (sh_gdbarch_init): Update.
2165 * s390-tdep.c (s390_gdbarch_init): Update.
2166 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2167 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2168 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2169 * mips-tdep.c (mips_gdbarch_init): Update.
2170 * mcore-tdep.c (mcore_gdbarch_init): Update.
2171 * m68k-tdep.c (m68k_gdbarch_init): Update.
2172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2173 * ia64-tdep.c (ia64_gdbarch_init): Update.
2174 (ia64_saved_pc_after_call): Update declaration.
2175 * i386ly-tdep.c (i386lynx_init_abi): Update.
2176 * i386-tdep.c (i386_gdbarch_init): Update.
2177 * hppa-tdep.c (hppa_gdbarch_init): Update.
2178 * h8300-tdep.c (h8300_gdbarch_init): Update.
2179 * frv-tdep.c (frv_gdbarch_init): Update.
2180 * cris-tdep.c (cris_gdbarch_init): Update.
2181 * avr-tdep.c (avr_gdbarch_init): Update.
2182 * arm-tdep.c (arm_gdbarch_init): Update.
2183 * alpha-tdep.c (alpha_gdbarch_init): Update.
2184 * ns32knbsd-nat.c (frame_num_args): Update.
2185 * ns32k-tdep.c (umax_frame_num_args): Update.
2186 * mips-tdep.c (mips_init_frame_pc_first): Update.
2187 * infrun.c (step_over_function): Update.
2188 * i386-linux-tdep.c (skip_hurd_resolver): Update.
2189 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
2190 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2191 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2192 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2193 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2194 * arm-linux-tdep.c (skip_hurd_resolver): Update.
2195 * arch-utils.c (init_frame_pc_default): Update.
2196 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2197 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
2198 declaration.
2199
2200 2003-04-11 Andrew Cagney <cagney@redhat.com>
2201
2202 * i387-tdep.c: Update copyright.
2203 (i387_to_double): Delete function.
2204 (double_to_i387): Delete function.
2205
2206 2003-04-10 Andrew Cagney <cagney@redhat.com>
2207
2208 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
2209 frame's function's address. Simplify.
2210 (d10v_frame_unwind_cache): Check that the frame's function is
2211 non-zero.
2212
2213 2003-04-10 Jim Blandy <jimb@redhat.com>
2214
2215 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
2216 call to set_gdbarch_deprecated_push_arguments.
2217
2218 2003-04-10 Andrew Cagney <cagney@redhat.com>
2219
2220 * frame.c (fprint_frame_id): New function.
2221 (fprint_frame_type, fprint_frame): New function.
2222 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
2223 (create_sentinel_frame, get_frame_id): Ditto.
2224 (frame_id_p, frame_id_eq): Ditto.
2225 (frame_id_inner, create_new_frame): Ditto.
2226 (legacy_get_prev_frame, get_prev_frame): Ditto.
2227 (deprecated_update_frame_pc_hack): Ditto.
2228 (frame_register_unwind): Ditto.
2229 (deprecated_update_frame_base_hack): Ditto.
2230
2231 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
2232
2233 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
2234 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
2235 frame_chain function.
2236 * Makefile.in: Add dependencies due to above change.
2237
2238 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
2239
2240 * blockframe.c (legacy_frame_chain_valid): Move call to
2241 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
2242 inside_entry_file.
2243
2244 2003-04-09 Andrew Cagney <cagney@redhat.com>
2245
2246 * frame.h (struct frame_id): Replace "pc" and "base" with
2247 "stack_addr" and "code_addr". Update comments.
2248 (frame_id_build): Update parameter names and comment.
2249 (struct frame_info): Replace "id_p" and "id" with "this_id".
2250 * dummy-frame.c (dummy_frame_this_id): Update.
2251 * breakpoint.c (print_one_breakpoint): Update.
2252 * frame.c (get_frame_id): Update.
2253 (get_frame_base, frame_id_build): Update.
2254 (create_sentinel_frame, legacy_get_prev_frame): Update.
2255 (deprecated_update_frame_base_hack): Update.
2256 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
2257 (frame_id_inner): Ditto.
2258
2259 2003-04-09 Andrew Cagney <cagney@redhat.com>
2260
2261 * defs.h (gdb_print_host_address): Make "addr" parameter a
2262 pointer constant.
2263 * utils.c (gdb_print_host_address): Update.
2264
2265 2003-04-09 Kevin Buettner <kevinb@redhat.com>
2266
2267 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
2268 register number for R0 is 0.
2269
2270 2003-04-09 J. Brobecker <brobecker@gnat.com>
2271
2272 * frame.h (struct gdbarch): Add opaque structure definition
2273 to avoid a compilation warning on LynxOS 4.0.
2274
2275 2003-04-09 Andrew Cagney <cagney@redhat.com>
2276
2277 * frame.h (struct frame_info): Delete field "pc". Replace
2278 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
2279 structure.
2280 * frame.c (frame_pc_unwind): Update.
2281 (create_sentinel_frame): Do not set "pc".
2282 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
2283 (get_frame_pc): Call frame_pc_unwind.
2284 (deprecated_update_frame_pc_hack): Update.
2285 (create_new_frame): Use "pc" not "->pc".
2286
2287 2003-04-09 Andrew Cagney <cagney@redhat.com>
2288
2289 * frame.c (get_frame_id): Eliminate code updating "frame".
2290 (legacy_get_prev_frame): Ditto.
2291 (get_frame_base): Return id.base directly.
2292 (deprecated_update_frame_base_hack): Update "id.base".
2293 * frame.h (struct frame_info): Delete field "frame".
2294
2295 2003-04-09 Andrew Cagney <cagney@redhat.com>
2296
2297 * NEWS: Mention that the "Sequent family" is obsolete.
2298 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
2299 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
2300 * configure.host: Obsolete i[3456]86-sequent-bsd*,
2301 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
2302 * config/i386/tm-ptx4.h: Obsolete file.
2303 * config/i386/tm-ptx.h: Obsolete file.
2304 * symm-tdep.c: Obsolete file.
2305 * config/i386/symmetry.mt: Obsolete file.
2306 * config/i386/tm-symmetry.h: Obsolete file.
2307 * symm-nat.c: Obsolete file.
2308 * config/i386/nm-symmetry.h: Obsolete file.
2309 * config/i386/xm-symmetry.h: Obsolete file.
2310 * config/i386/symmetry.mh: Obsolete file.
2311 * config/i386/nm-ptx4.h: Obsolete file.
2312 * config/i386/ptx4.mh: Obsolete file.
2313 * config/i386/ptx.mt: Obsolete file.
2314 * config/i386/ptx.mh: Obsolete file.
2315 * config/i386/xm-ptx4.h: Obsolete file.
2316 * config/i386/xm-ptx.h: Obsolete file.
2317
2318 2003-04-09 Andrew Cagney <cagney@redhat.com>
2319
2320 Obsolete mips*-*-mach3*.
2321 * NEWS: Mention that mips*-*-mach3* is obsolete.
2322 * m3-nat.c: Obsolete file.
2323 * config/nm-m3.h: Obsolete file.
2324 * config/mips/tm-mipsm3.h: Obsolete file.
2325 * config/mips/mipsm3.mt: Obsolete file.
2326 * config/mips/mipsm3.mh: Obsolete file.
2327 * config/mips/xm-mipsm3.h: Obsolete file.
2328 * mipsm3-nat.c: Obsolete file.
2329 * configure.host: Obsolete mips-dec-mach3*.
2330 * configure.tgt: Obsolete mips*-*-mach3*.
2331
2332 2003-04-09 Andrew Cagney <cagney@redhat.com>
2333
2334 * doublest.h: Update copyright.
2335 (deprecated_store_floating, deprecated_extract_floating): Rename
2336 store_floating and extract_floating. Update comments.
2337 * doublest.c: Update copyright.
2338 (extract_floating_by_length): Replace extract_floating.
2339 (store_floating_by_length): Replace store_floating.
2340 (deprecated_extract_floating): New function.
2341 (deprecated_store_floating): New function.
2342 (extract_typed_floating): Call extract_floating_by_length.
2343 (store_typed_floating): Call store_floating_by_length.
2344 * x86-64-tdep.c (x86_64_store_return_value): Update.
2345 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
2346 (sh64_extract_return_value): Update.
2347 (sh_sh4_register_convert_to_virtual): Update.
2348 (sh_sh64_register_convert_to_virtual): Update.
2349 (sh_sh4_register_convert_to_raw): Update.
2350 (sh_sh64_register_convert_to_raw): Update.
2351 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
2352 (rs6000_register_convert_to_raw): Update.
2353 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
2354 (ia64_register_convert_to_raw): Update.
2355 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
2356 (REGISTER_CONVERT_TO_VIRTUAL): Update.
2357 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
2358 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
2359 (alpha_register_convert_to_raw): Update.
2360
2361 2003-04-08 Andrew Cagney <cagney@redhat.com>
2362
2363 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
2364 * gdbarch.h, gdbarch.c: Re-generate.
2365 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
2366 (d10v_gdbarch_init): Do not set saved_pc_after_call.
2367 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
2368 conditionally, use frame_pc_unwind as an alternative. Add
2369 comments.
2370 * arch-utils.c (init_frame_pc_default): Only call
2371 SAVED_PC_AFTER_CALL when available.
2372
2373 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
2374
2375 * infrun.c (stop_soon): Rename from stop_soon_quietly.
2376 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
2377 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
2378 (start_remote): Ditto.
2379 (handle_inferior_event): Ditto.
2380 (save_inferior_status): Ditto.
2381 (restore_inferior_status): Ditto.
2382 * infcmd.c (attach_command): Ditto.
2383 * fork-child.c (startup_inferior): Ditto.
2384 * inferior.h (stop_soon): Rename from stop_soon_quietly.
2385 * alpha-tdep.c (heuristic_proc_start): Ditto.
2386 * mips-tdep.c (heuristic_proc_start): Ditto.
2387 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
2388 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
2389 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
2390 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
2391 * remote-vx.c (vx_create_inferior): Ditto.
2392
2393 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
2394
2395 * infrun.c (stop_soon_quietly): Make it an enum, to better
2396 override the default behavior of handle_inferior_event.
2397 (clear_proceed_status): Update uses of stop_soon_quietly to
2398 reflect that it is now an enum.
2399 (start_remote): Ditto.
2400 (handle_inferior_event): Change logic a bit if stop_soon_quietly
2401 is set to handle the new GNU/Linux kernel behavior for
2402 attach/sigstop. Update uses of stop_soon_quietly.
2403 * inferior.h (enum stop_kind): New enum.
2404 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
2405 Reset normal handle_inferior_event behavior, afterwards.
2406 * fork-child.c (startup_inferior): Update.
2407 * alpha-tdep.c (heuristic_proc_start): Update.
2408 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2409 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
2410 * solib-osf.c (osf_solib_create_inferior_hook): Update.
2411 * solib-irix.c (irix_solib_create_inferior_hook): Update.
2412 * remote-vx.c (vx_create_inferior): Update.
2413 * mips-tdep.c (heuristic_proc_start): Update.
2414
2415 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
2416
2417 * disasm.c (dump_insns): Move variables inside loop, or they will
2418 be freed more than once, causing wild memory corruptions.
2419 (gdb_disassembly): Look for the substring "-thread",
2420 instead of "-threads" in the target name, to make sure to find
2421 the 'multi-thread' target. Also, make sure we do the right thing
2422 with the "core" target.
2423
2424 2003-04-07 Kevin Buettner <kevinb@redhat.com>
2425
2426 * mips-tdep.c (mips_print_fp_register): New function, created from
2427 do_fp_register_row(). Registers are now (also) printed as hex.
2428 Only one register is printed per row.
2429 (mips_print_register, do_fp_register_row): Print floating point
2430 registers with mips_print_fp_register().
2431
2432 2003-04-06 Andrew Cagney <cagney@redhat.com>
2433
2434 * valprint.h (inspect_it): Add extern declaration.
2435 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
2436 (selectors_info, classes_info): Ditto.
2437 (find_objc_msgcall): Fix indentation.
2438 (objc_printstr): Delete extern declarations.
2439
2440 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
2441
2442 2003-04-06 Andrew Cagney <cagney@redhat.com>
2443
2444 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
2445 Update comment.
2446 * frame.c (legacy_saved_regs_this_id): Update.
2447 (legacy_get_prev_frame): Update.
2448 * xstormy16-tdep.c: Update comment.
2449 * sparc-tdep.c (sparc_frame_chain): Update comment.
2450 * blockframe.c (legacy_frame_chain_valid): Update.
2451
2452 2003-04-06 Andrew Cagney <cagney@redhat.com>
2453
2454 * valprint.c (val_print_type_code_int): Delete #ifdef
2455 PRINT_TYPELESS_INTEGER code.
2456
2457 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
2458 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
2459 multi-arch definition.
2460 * gdbarch.h: Re-generate.
2461
2462 2003-04-05 Andrew Cagney <cagney@redhat.com>
2463
2464 Eliminate FRAME_FIND_SAVED_REGS.
2465 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
2466 Change FSR parameter to a pointer.
2467 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
2468 Assume FSR parameter is a pointer.
2469 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
2470 Make fsr a pointer.
2471 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
2472 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
2473 saved_regs a pointer.
2474 (hppa_frame_saved_pc): Ditto.
2475 (find_dummy_frame_regs): Make frame_saved_regs a pointer
2476 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
2477 pointer.
2478 (restore_pc_queue): Make fsr a pointer.
2479 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
2480 (hppa_frame_chain): Make saved_regs a pointer, call
2481 hppa_frame_init_saved_regs.
2482 * sparc-tdep.c: Include "gdb_assert.h".
2483 (sparc_frame_find_saved_regs): Replace internal_error with
2484 gdb_assert.
2485 * remote-vxsparc.c (vx_read_register): Delete reference to
2486 FRAME_FIND_SAVED_REGS.
2487 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
2488 * gdbarch.h: Regenerate.
2489 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
2490 (deprecated_get_frame_saved_regs): Delete declaration.
2491 (struct frame_saved_regs): Delete definition.
2492 * frame.c (deprecated_get_frame_saved_regs): Delete function.
2493 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
2494 (hppa_frame_find_saved_regs): Delete declaration.
2495 (FRAME_FIND_SAVED_REGS): Delete macro.
2496 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
2497 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
2498 FRAME_FIND_SAVED_REGS in comment.
2499
2500 2003-04-05 Andrew Cagney <cagney@redhat.com>
2501
2502 * frame.c (frame_func_unwind, get_frame_func): New functions.
2503 * frame.h (get_frame_func, frame_func_unwind): Declare.
2504 (struct frame_info): Add field "prev_func" for caching the
2505 previous frame's function address.
2506 * arm-tdep.c (arm_frameless_function_invocation): Combine
2507 get_pc_function_start and get_frame_pc into get_frame_func.
2508 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2509 (sh64_nofp_frame_init_saved_regs): Ditto.
2510 * s390-tdep.c (s390_function_start): Ditto.
2511 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
2512 (rs6000_frameless_function_invocation): Ditto.
2513 (rs6000_frame_saved_pc): Ditto.
2514 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
2515 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
2516 * i386-tdep.c (i386_frameless_signal_p): Ditto.
2517 (i386_frame_init_saved_regs): Ditto.
2518 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
2519 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
2520 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
2521 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2522 * blockframe.c (frameless_look_for_prologue): Ditto.
2523
2524 2003-04-05 Andrew Cagney <cagney@redhat.com>
2525
2526 * frame.c (legacy_get_prev_frame): Link prev to next at the
2527 function start. Update comments.
2528
2529 2003-04-05 Andrew Cagney <cagney@redhat.com>
2530
2531 * frame.c (get_frame_id): Update comment.
2532 (legacy_get_prev_frame): Update comment.
2533 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
2534 * gdbarch.h: Regenerate.
2535 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
2536 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
2537
2538 2003-04-05 Andrew Cagney <cagney@redhat.com>
2539
2540 * stack.c (print_frame_info): Use get_frame_pc.
2541
2542 2003-04-04 Andrew Cagney <cagney@redhat.com>
2543
2544 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
2545 the frame's type from the unwinder.
2546 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
2547 (create_new_frame, legacy_get_prev_frame): When the unwinder's
2548 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
2549 (get_frame_base_address): Use get_frame_type.
2550 (get_frame_locals_address, get_frame_args_address): Ditto.
2551 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
2552 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
2553 (struct frame_info): Add comment explaining why the frame contains
2554 a "type" field.
2555 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
2556 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
2557 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
2558 NORMAL_FRAME.
2559 * frame-unwind.h: Include "frame.h".
2560 (struct frame_unwind): Add "type" field.
2561 * Makefile.in (frame_unwind_h): Add $(frame_h).
2562
2563 2003-04-04 Andrew Cagney <cagney@redhat.com>
2564
2565 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
2566 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
2567 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
2568 get_frame_base.
2569 (d10v_unwind_dummy_id): Use frame_id_build.
2570 * frame.c (find_frame_sal): Use get_frame_pc.
2571 (create_new_frame): Use deprecated_update_frame_pc_hack and
2572 deprecated_update_frame_base_hack.
2573 (create_sentinel_frame): Add comment about ->pc going away.
2574 (get_prev_frame): Add comment about ->pc going away.
2575 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
2576 frame_id_build, deprecated_update_frame_pc_hack and
2577 deprecated_update_frame_base_hack.
2578 (select_frame): Use get_frame_pc.
2579 (legacy_saved_regs_this_id): Use frame_id_build.
2580
2581 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
2582
2583 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
2584 signed integer case.
2585 (classify_argument): Handle enumerations and references.
2586
2587 2003-04-04 Andrew Cagney <cagney@redhat.com>
2588
2589 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
2590 ID to NULL.
2591
2592 2003-04-01 Adam Fedor <fedor@gnu.org>
2593
2594 * gdb/objc-lang.c (selectors_info): Replace calls to
2595 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
2596 SYMBOL_NATURAL_NAME.
2597 (classes_info, find_methods): Likewise.
2598
2599 2003-04-03 Kevin Buettner <kevinb@redhat.com>
2600
2601 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
2602 ``mach'' to the value determined by bfd_default_set_arch_mach().
2603
2604 2003-04-02 Bob Rossi <bob_rossi@cox.net>
2605
2606 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
2607 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
2608 (mi-cmd-file.o): Update dependencies.
2609
2610 2003-04-01 Kevin Buettner <kevinb@redhat.com>
2611
2612 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2613 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
2614
2615 2003-04-01 Adam Fedor <fedor@gnu.org>
2616
2617 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
2618 * language.h (struct language_defn): Add la_demangle.
2619 (language_demangle): Declare.
2620 * language.c (language_demangle): New function.
2621 (unk_lang_demangle): Likewise.
2622 (unknown_language_defn, auto_language_defn, local_language_defn):
2623 Add ukn_lang_demangle.
2624 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
2625 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
2626 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
2627 (cplus_language_defn): Add cplus_demangle for la_demangle element.
2628 * jv-lang.c (java_demangle): New function
2629 (java_language_defn): Use it for la_demangle element.
2630 * objc-lang.c (objc_demangle): Add options argument
2631 (objc_language_defn): Use objc_demangle for la_demangle element.
2632 * maint.c (maintenance_demangle): Replace switch with
2633 call to language_demangle.
2634 * utils.c (fprintf_symbol_filtered): Likewise.
2635
2636 2003-04-01 Andrew Cagney <cagney@redhat.com>
2637
2638 * printcmd.c (print_frame_nameless_args): Delete #ifdef
2639 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
2640 PRINT_TYPELESS_INTEGER.
2641 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
2642 PUSH_RETURN_ADDRESS.
2643
2644 2003-04-01 Andrew Cagney <cagney@redhat.com>
2645
2646 * Makefile.in (d10v-tdep.o): Update dependencies.
2647 * d10v-tdep.c: Include "frame-base.h".
2648 (d10v_frame_unwind): Make constant.
2649 (d10v_frame_base_address): New function.
2650 (d10v_frame_base): New variable.
2651 (d10v_gdbarch_init): Set frame_base default.
2652 (struct d10v_unwind_cache): Add the field "prev_sp". Update
2653 comment for base.
2654 (d10v_frame_unwind_cache): Set and use "prev_sp".
2655 (d10v_frame_this_id): Use the previous frame's inner most stack
2656 address and this frame's func address for the frame ID. Use
2657 frame_id_build. Don't analyze beyond the current instruction.
2658
2659 2003-04-01 Andrew Cagney <cagney@redhat.com>
2660
2661 * frame.h (get_frame_locals_address, get_frame_args_address):
2662 Refer to the base address, instead of the address of the first
2663 local or parameter.
2664
2665 2003-04-01 Andrew Cagney <cagney@redhat.com>
2666
2667 Add frame debug info addresses:
2668 * frame-base.c: New file.
2669 * frame-base.h: New file.
2670 * frame.h (struct frame_base): Add opaque declaration.
2671 (get_frame_base): Update comment.
2672 (get_frame_base_address): Declare.
2673 (get_frame_locals_address): Declare.
2674 (get_frame_args_address): Declare.
2675 (struct frame_info): Add "base" and "base_cache". Update
2676 comments on the unwinder.
2677 * frame.c: Include "frame-base.h".
2678 (get_frame_locals_address): New function.
2679 (get_frame_base_address): New function.
2680 (get_frame_args_address): New function.
2681 * findvar.c (read_var_value): Use get_frame_locals_address and
2682 get_frame_args_address.
2683 * stack.c (frame_info): Use get_frame_locals_address and
2684 get_frame_args_address.
2685 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
2686 moved to "frame-base.c".
2687 * printcmd.c (print_frame_nameless_args): Ditto.
2688 * symtab.h (address_class): Update comments.
2689 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
2690 get_frame_base_address.
2691 * dwarf2expr.c (execute_stack_op): Ditto.
2692 * Makefile.in (frame_base_h): Define.
2693 (frame.o): Update dependencies.
2694 (frame-base.o): Add dependencies.
2695 (SFILES): Add frame-base.c.
2696 (COMMON_OBS): Add frame-base.o.
2697
2698 2003-04-01 Andrew Cagney <cagney@redhat.com>
2699
2700 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
2701 CALL_DUMMY_LENGTH): Ditto.
2702 * gdbarch.c: Re-generate.
2703 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
2704 (CALL_DUMMY_LENGTH): Delete macro.
2705 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
2706 * arm-tdep.c (arm_gdbarch_init): Ditto.
2707 * avr-tdep.c (avr_gdbarch_init): Ditto.
2708 * cris-tdep.c (cris_gdbarch_init): Ditto.
2709 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2710 * frv-tdep.c (frv_gdbarch_init): Ditto.
2711 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2712 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2713 * i386-tdep.c (i386_gdbarch_init): Ditto.
2714 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2716 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2717 * mips-tdep.c (mips_gdbarch_init): Ditto.
2718 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2719 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2720 * s390-tdep.c (s390_gdbarch_init): Ditto.
2721 * sh-tdep.c (sh_gdbarch_init): Ditto.
2722 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2723 * v850-tdep.c (v850_gdbarch_init): Ditto.
2724 * vax-tdep.c (vax_gdbarch_init): Ditto.
2725 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2726
2727 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
2728
2729 * frame.c (get_prev_frame): Disable call to inside_entry_file().
2730
2731 2003-04-01 Andrew Cagney <cagney@redhat.com>
2732
2733 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
2734 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2735 * gdbarch.h, gdbarch.c: Re-generate.
2736 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2737 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2738 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2739 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2740 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2741 * infcmd.c (run_stack_dummy): Simplify assuming
2742 CALL_DUMMY_BREAKPOINT_OFFSET_P.
2743 * infrun.c (handle_inferior_event): Ditto.
2744 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2745 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
2746 * arm-tdep.c (arm_gdbarch_init): Ditto.
2747 * avr-tdep.c (avr_gdbarch_init): Ditto.
2748 * cris-tdep.c (cris_gdbarch_init): Ditto.
2749 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2750 * frv-tdep.c (frv_gdbarch_init): Ditto.
2751 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2752 * i386-tdep.c (i386_gdbarch_init): Ditto.
2753 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2754 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2755 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2756 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2757 * mips-tdep.c (mips_gdbarch_init): Ditto.
2758 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2759 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2760 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2761 * s390-tdep.c (s390_gdbarch_init): Ditto.
2762 * sh-tdep.c (sh_gdbarch_init): Ditto.
2763 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2764 * v850-tdep.c (v850_gdbarch_init): Ditto.
2765 * vax-tdep.c (vax_gdbarch_init): Ditto.
2766 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2767
2768 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
2769
2770 * symfile.c (symfile_relocate_debug_section): Update call to
2771 bfd_simple_get_relocated_section_contents.
2772
2773 2003-03-31 Andrew Cagney <cagney@redhat.com>
2774
2775 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
2776 * gdbarch.h, gdbarch.c: Regenerate.
2777 * inferior.h (FIX_CALL_DUMMY): Delete macro.
2778 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
2779 available.
2780 * frame.h (generic_fix_call_dummy): Delete declaration.
2781 * dummy-frame.h: Update comment.
2782 * dummy-frame.c (generic_fix_call_dummy): Delete function.
2783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2784 fix_call_dummy.
2785 * sh-tdep.c (sh_gdbarch_init): Ditto.
2786 * s390-tdep.c (s390_gdbarch_init): Ditto.
2787 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2788 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2790 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2791 * i386-tdep.c (i386_gdbarch_init): Ditto.
2792 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2793 * frv-tdep.c (frv_gdbarch_init): Ditto.
2794 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2795 * cris-tdep.c (cris_gdbarch_init): Ditto.
2796 * avr-tdep.c (avr_gdbarch_init): Ditto.
2797 * arm-tdep.c (arm_gdbarch_init): Ditto.
2798
2799 2003-03-31 J. Brobecker <brobecker@gnat.com>
2800
2801 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
2802 (INIT_FRAME_AP): Likewise.
2803 (EXTRA_FRAME_INFO): Likewise.
2804
2805 2003-03-31 Andrew Cagney <cagney@redhat.com>
2806
2807 * gdbarch.sh: Include "symfile.h".
2808 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
2809 * gdbarch.h, gdbarch.c: Re-generate.
2810 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
2811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2812 call_dummy_address, the default is at entry_point_address.
2813 * v850-tdep.c (v850_gdbarch_init): Ditto.
2814 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2815 * sh-tdep.c (sh_gdbarch_init): Ditto.
2816 * s390-tdep.c (s390_gdbarch_init): Ditto.
2817 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2818 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2819 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2820 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2821 * i386-tdep.c (i386_gdbarch_init): Ditto.
2822 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2823 * frv-tdep.c (frv_gdbarch_init): Ditto.
2824 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2825 * cris-tdep.c (cris_gdbarch_init): Ditto.
2826 * arm-tdep.c (arm_gdbarch_init): Ditto.
2827
2828 2003-03-31 Andrew Cagney <cagney@redhat.com>
2829
2830 * gdbarch.sh (CALL_DUMMY_P): Delete.
2831 * gdbarch.h, gdbarch.c: Re-generate.
2832 * inferior.h (CALL_DUMMY_P): Delete macro.
2833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2834 * vax-tdep.c (vax_gdbarch_init): Update.
2835 * v850-tdep.c (v850_gdbarch_init): Update.
2836 * sparc-tdep.c (sparc_gdbarch_init): Update.
2837 * sh-tdep.c (sh_gdbarch_init): Update.
2838 * s390-tdep.c (s390_gdbarch_init): Update.
2839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2840 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2841 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2842 * mips-tdep.c (mips_gdbarch_init): Update.
2843 * mcore-tdep.c (mcore_gdbarch_init): Update.
2844 * m68k-tdep.c (m68k_gdbarch_init): Update.
2845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2846 * ia64-tdep.c (ia64_gdbarch_init): Update.
2847 * i386-tdep.c (i386_gdbarch_init): Update.
2848 * h8300-tdep.c (h8300_gdbarch_init): Update.
2849 * frv-tdep.c (frv_gdbarch_init): Update.
2850 * d10v-tdep.c (d10v_gdbarch_init): Update.
2851 * cris-tdep.c (cris_gdbarch_init): Update.
2852 * breakpoint.c (deprecated_frame_in_dummy): Update.
2853 * avr-tdep.c (avr_gdbarch_init): Update.
2854 * alpha-tdep.c (alpha_gdbarch_init): Update.
2855 * arm-tdep.c (arm_gdbarch_init): Update.
2856 * dummy-frame.c (dummy_frame_this_id): Update comments.
2857 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
2858 * frame.c (legacy_get_prev_frame): Ditto.
2859 * valops.c (call_function_by_hand): Delete function.
2860 (hand_function_call): Rename to call_function_by_hand
2861
2862 2003-03-30 Andrew Cagney <cagney@redhat.com>
2863
2864 2002-11-10 Klee Dienes <kdienes@apple.com>
2865 * value.h (struct value): Update comment.
2866
2867 2003-03-30 Andrew Cagney <cagney@redhat.com>
2868
2869 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
2870 D10V_FP_REGNUM.
2871 (d10v_gdbarch_init): Do not set fp_regnum.
2872
2873 * frame.c (get_frame_base): Force ID initialization.
2874 (get_prev_frame): Move computation of the frame ID from here ...
2875 (get_frame_id): ... to here.
2876 (legacy_get_prev_frame): Mark the frame ID as valid.
2877 * frame.h (struct frame_info): Add field "id_p".
2878
2879 2003-03-30 Mark Kettenis <kettenis@gnu.org>
2880
2881 * i386-tdep.c (i386_store_struct_return): Removed.
2882 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
2883
2884 2003-03-30 Andrew Cagney <cagney@redhat.com>
2885
2886 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
2887 * gdbarch.h, gdbarch.c: Regenerate.
2888 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
2889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2890 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2891 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2892 * i386-tdep.c (i386_gdbarch_init): Ditto.
2893 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2894 * cris-tdep.c (cris_gdbarch_init): Ditto.
2895 * vax-tdep.c (vax_gdbarch_init): Ditto.
2896 * s390-tdep.c (s390_gdbarch_init): Ditto.
2897 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2898 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2899 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2900 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
2901 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2902 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
2903 * sparc-tdep.c (sparc_gdbarch_init): Update.
2904 * sh-tdep.c (sh_gdbarch_init): Update.
2905 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2906 * mips-tdep.c (mips_gdbarch_init): Update.
2907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2908 * ia64-tdep.c (ia64_gdbarch_init): Update.
2909 * frv-tdep.c (frv_gdbarch_init): Update.
2910 * avr-tdep.c (avr_gdbarch_init): Update.
2911 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
2912 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
2913 instead of when push_dummy_call is not available.
2914
2915 2003-03-30 Andrew Cagney <cagney@redhat.com>
2916
2917 * infttrace.c: Include "gdbthread.h".
2918 (parent_attach_all): Fix function signature.
2919 (call_ptrace): Update call.
2920 * Makefile.in (infttrace.o): Update dependencies.
2921
2922 2003-03-30 Andrew Cagney <cagney@redhat.com>
2923
2924 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
2925 PUSH_RETURN_ADDRESS.
2926 * gdbarch.h, gdbarch.c: Regenerate.
2927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2928 * x86-64-tdep.c (x86_64_init_abi): Update.
2929 * v850-tdep.c (v850_gdbarch_init): Update.
2930 * sparc-tdep.c (sparc_gdbarch_init): Update.
2931 * sh-tdep.c (sh_gdbarch_init): Update.
2932 * s390-tdep.c (s390_gdbarch_init): Update.
2933 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2934 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2935 * mips-tdep.c (mips_gdbarch_init): Update.
2936 * mcore-tdep.c (mcore_gdbarch_init): Update.
2937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2938 * ia64-tdep.c (ia64_gdbarch_init): Update.
2939 * i386-tdep.c (i386_gdbarch_init): Update.
2940 * h8300-tdep.c (h8300_gdbarch_init): Update.
2941 * frv-tdep.c (frv_gdbarch_init): Update.
2942 * cris-tdep.c (cris_gdbarch_init): Update.
2943 * avr-tdep.c (avr_gdbarch_init): Update.
2944 * arm-tdep.c (arm_gdbarch_init): Update.
2945 * valops.c (hand_function_call): Update.
2946
2947 2003-03-29 Andrew Cagney <cagney@redhat.com>
2948
2949 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
2950 sizeof_call_dummy_words.
2951 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
2952 define.
2953 * gdbarch.h: Regenerate.
2954
2955 2003-03-29 Andrew Cagney <cagney@redhat.com>
2956
2957 * infttrace.h: New file.
2958 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
2959 (hpread_get_textlow): Detect an uninitialized dn_bufp.
2960 (hpread_read_doc_function_type): Detect an initialized type1.
2961 (hpread_quick_traverse): Initialize mod_name_string.
2962 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
2963 (som_solib_get_solib_by_pc): Declare.
2964 (so_lib_thread_start_addr): Declare.
2965 (no_shared_libraries): Declare.
2966 * somread.c (init_import_symbols): Make static. Add forward
2967 declaration.
2968 * config/pa/nm-hppah.h: Include "infttrace.h" for
2969 parent_attach_all.
2970 (hppa_insert_hw_watchpoint): Declare.
2971 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
2972 * hppah-nat.c: Include "gdb_string.h".
2973 (parent_attach_all): Delete extern declaration, moved to
2974 "infttrace.h".
2975 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
2976 int.
2977 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
2978 * Makefile.in (infttrace_h): Define.
2979 (hpread.o): Update dependencies.
2980 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
2981 * hppa-hpux-tdep.c: Include "gdb_string.h".
2982 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
2983 * infrun.c (handle_inferior_event): Always initialize
2984 stepped_after_stopped_by_watchpoint. Add default and remove
2985 fallthrough in switch statement.
2986 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
2987 parameter to int.
2988 (hppa_remove_hw_watchpoint): Ditto.
2989
2990 2003-03-29 Andrew Cagney <cagney@redhat.com>
2991
2992 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
2993 offset.
2994
2995 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
2996
2997 * arm-tdep.c (arm_push_arguments): Delete.
2998 (struct stack_item): New type.
2999 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
3000 (arm_store_struct_return): Delte.
3001 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
3002 arm_push_arguments or arm_store_struct_return.
3003
3004 2003-03-28 Andrew Cagney <cagney@redhat.com>
3005
3006 * Makefile.in (d10v-tdep.o): Update dependencies.
3007 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
3008 * d10v-tdep.c: Include "remote.h".
3009 (target_resume_hook): Delete extern declaration.
3010 (target_wait_loop_hook): Ditto.
3011 (tdisassemble_command): Eliminate assignment in "if" conditional.
3012 (d10v_ts2_register_sim_regno): Eliminate call to
3013 legacy_register_sim_regno.
3014 (d10v_ts3_register_sim_regno): Ditto.
3015
3016 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
3017
3018 * thread.c: Reindented.
3019 * lin-lwp.c: Ditto.
3020 * linux-proc.c: Ditto.
3021
3022 2003-03-28 Bob Rossi <bob_rossi@cox.net>
3023
3024 * MAINTAINERS (write after approval): Add myself.
3025
3026 2003-03-27 Theodore A. Roth <troth@openavr.org>
3027
3028 * objc-exp.y: Add missing semi-colons.
3029
3030 2003-03-27 Andrew Cagney <cagney@redhat.com>
3031
3032 * regcache.c (write_sp): Delete function and references.
3033 * inferior.h (write_sp): Delete declaration.
3034 * valops.c (hand_function_call): Replace write_sp with
3035 TARGET_WRITE_SP.
3036 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
3037 (sparc_pop_frame): Ditto.
3038
3039 2003-03-27 Andrew Cagney <cagney@redhat.com>
3040
3041 * NEWS: Mention removal of support for hppa*-*-bsd* and
3042 hppa*-*-osf* natives, and hppa*-*-pro* target.
3043 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
3044 * config/pa/xm-pa.h: Obsolete file.
3045 * config/pa/xm-hppab.h: Obsolete file.
3046 * config/pa/nm-hppab.h: Obsolete file.
3047 * config/pa/tm-hppab.h: Obsolete file.
3048 * config/pa/tm-hppao.h: Obsolete file.
3049 * config/pa/nm-hppao.h: Obsolete file.
3050 * config/pa/tm-pro.h: Obsolete file.
3051 * config/pa/hppaosf.mt: Obsolete file.
3052 * config/pa/hppaosf.mh: Obsolete file.
3053 * config/pa/hppapro.mt: Obsolete file.
3054 * config/pa/hppabsd.mt: Obsolete file.
3055 * config/pa/hppabsd.mh: Obsolete file.
3056 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
3057 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
3058 hppa*-*-osf*.
3059
3060 2003-03-27 Andrew Cagney <cagney@redhat.com>
3061
3062 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
3063 push_arguments. Don't set push_return_address or write_sp.
3064 (d10v_push_dummy_call): Replace d10v_push_arguments.
3065 (d10v_push_return_address, d10v_write_sp): Delete function,
3066 handled by push_dummy_call.
3067
3068 2003-03-26 Andrew Cagney <cagney@redhat.com>
3069
3070 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
3071 (push_dummy_call): New pure multi-arch replacement with gdbarch,
3072 regcache and dummy_addr parameters.
3073 * gdbarch.h, gdbarch.c: Re-generate.
3074 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
3075 available; assume it will handle stack alignment and return
3076 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
3077 legacy_push_arguments.
3078 (legacy_push_arguments): Rename default_push_arguments.
3079 * value.h (legacy_push_arguments): Rename default_push_arguments.
3080 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
3081 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3082 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3083 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3084 * config/i386/tm-symmetry.h: Update.
3085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3086 * x86-64-tdep.c (x86_64_init_abi): Update.
3087 * v850-tdep.c (v850_gdbarch_init): Update.
3088 * sparc-tdep.c (sparc_gdbarch_init): Update.
3089 * sh-tdep.c (sh_gdbarch_init): Update.
3090 * s390-tdep.c (s390_gdbarch_init): Update.
3091 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3092 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3093 * mips-tdep.c (mips_gdbarch_init): Update.
3094 * mcore-tdep.c (mcore_gdbarch_init): Update.
3095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3096 * ia64-tdep.c (ia64_gdbarch_init): Update.
3097 * i386-tdep.c (i386_gdbarch_init): Update.
3098 * hppa-tdep.c (hppa_gdbarch_init): Update.
3099 * h8300-tdep.c (h8300_gdbarch_init): Update.
3100 * frv-tdep.c (frv_gdbarch_init): Update.
3101 * d10v-tdep.c (d10v_gdbarch_init): Update.
3102 * cris-tdep.c (cris_gdbarch_init): Update.
3103 * avr-tdep.c (avr_gdbarch_init): Update.
3104 * arm-tdep.c (arm_gdbarch_init): Update.
3105 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3106 * alpha-tdep.c (alpha_gdbarch_init): Update.
3107
3108 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3109
3110 * signals/signals.c (do_target_signal_to_host): Correct realtime
3111 signal range test.
3112
3113 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3114
3115 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
3116 (struct sal_chain, map_catch_names): Remove.
3117 (catch_exception_command_1): Don't call
3118 handle_gnu_4_16_catch_command.
3119
3120 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3121
3122 From Mark Dettinger <dettinge@de.ibm.com>:
3123 * dwarf2cfi.c (read_2u): Increment pointer by two.
3124
3125 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3126
3127 * signals/signals.c: Fix typos in last change.
3128
3129 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3130
3131 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
3132 not already defined. Use __SIGRTMIN if available.
3133 (target_signal_from_host): Remove SIGRTMIN block.
3134 (do_target_signal_to_host): Remove SIGRTMIN block; check that
3135 the signal is within the realtime range.
3136
3137 2003-03-25 Adam Fedor <fedor@gnu.org>
3138
3139 * Makefile.in (infrun.o): Add $(language_h)
3140 * infrun.c (handle_inferior_event): Use skip_language_trampoline
3141 for language specific trampolines.
3142 * language.h (struct language_defn): Add skip_trampoline.
3143 (skip_language_trampoline): Declare.
3144 * language.c (unk_lang_trampoline, skip_language_trampoline):
3145 New functions.
3146 (unknown_language_defn, auto_language_defn, local_language_defn):
3147 Add ukn_lang_trampoline.
3148 * ada-lang.c (ada_language_defn): Add NULL for language
3149 specific skip_trampoline.
3150 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
3151 scm-lang.c: Likewise.
3152 * objc-lang.c (objc_skip_trampoline): New function.
3153 (objc_language_defn): Add objc_skip_trampoline.
3154
3155 2003-03-25 Andrew Cagney <cagney@redhat.com>
3156
3157 * frame.c (get_prev_frame): Delay validating a frame's ID -
3158 non-NULL, didn't go backwards - until an attempt to unwind it to
3159 the previous frame.
3160
3161 2003-03-25 Andrew Cagney <cagney@redhat.com>
3162
3163 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
3164 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
3165 * gdbarch.h, gdbarch.c: Re-generate.
3166 * config/sparc/tm-sparc.h
3167 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
3168 * sparc-tdep.c (sparc_gdbarch_init): Set
3169 deprecated_extra_stack_alignment_needed.
3170 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
3171 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
3172 extra_stack_alignment_needed.
3173 * v850-tdep.c (v850_gdbarch_init): Ditto.
3174 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3175 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3176 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3177 * cris-tdep.c (cris_gdbarch_init): Ditto.
3178 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3180
3181 2003-03-25 Andrew Cagney <cagney@redhat.com>
3182
3183 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
3184 STORE_STRUCT_RETURN.
3185 * gdbarch.h, gdbarch.c: Regenerate.
3186 * d10v-tdep.c (d10v_store_struct_return): Delete function.
3187 (d10v_push_arguments): Set the struct return register.
3188 (d10v_gdbarch_init): Update.
3189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3190 * x86-64-tdep.c (x86_64_init_abi): Update.
3191 * vax-tdep.c (vax_gdbarch_init): Update.
3192 * v850-tdep.c (v850_gdbarch_init): Update.
3193 * sparc-tdep.c (sparc_gdbarch_init): Update.
3194 * sh-tdep.c (sh_gdbarch_init): Update.
3195 * s390-tdep.c (s390_gdbarch_init): Update.
3196 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3197 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3198 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3199 * mips-tdep.c (mips_gdbarch_init): Update.
3200 * mcore-tdep.c (mcore_gdbarch_init): Update.
3201 * m68k-tdep.c (m68k_gdbarch_init): Update.
3202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3203 * ia64-tdep.c (ia64_gdbarch_init): Update.
3204 * i386-tdep.c (i386_gdbarch_init): Update.
3205 * hppa-tdep.c (hppa_gdbarch_init): Update.
3206 * h8300-tdep.c (h8300_gdbarch_init): Update.
3207 * frv-tdep.c (frv_gdbarch_init): Update.
3208 * cris-tdep.c (cris_gdbarch_init): Update.
3209 * avr-tdep.c (avr_gdbarch_init): Update.
3210 * arm-tdep.c (arm_gdbarch_init): Update.
3211 * alpha-tdep.c (alpha_gdbarch_init): Update.
3212
3213 2003-03-25 Andrew Cagney <cagney@redhat.com>
3214
3215 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
3216 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
3217 CALL_DUMMY_STACK_ADJUST with a predicate variable.
3218 * gdbarch.h, gdbarch.c: Regenerate.
3219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3220 call_dummy_stack_adjust_p.
3221 * vax-tdep.c (vax_gdbarch_init): Ditto.
3222 * v850-tdep.c (v850_gdbarch_init): Ditto.
3223 * sh-tdep.c (sh_gdbarch_init): Ditto.
3224 * s390-tdep.c (s390_gdbarch_init): Ditto.
3225 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3226 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3227 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3228 * mips-tdep.c (mips_gdbarch_init): Ditto.
3229 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3230 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3232 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3233 * i386-tdep.c (i386_gdbarch_init): Ditto.
3234 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3235 * frv-tdep.c (frv_gdbarch_init): Ditto.
3236 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3237 * cris-tdep.c (cris_gdbarch_init): Ditto.
3238 * avr-tdep.c (avr_gdbarch_init): Ditto.
3239 * arm-tdep.c (arm_gdbarch_init): Ditto.
3240 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3241 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3242 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
3243 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3244 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
3245 call_dummy_stack_adjust_p.
3246 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
3247 (CALL_DUMMY_STACK_ADJUST): Delete macro.
3248 * sparc-tdep.c (sparc32_push_arguments): Update.
3249 * valops.c (hand_function_call): Update.
3250
3251 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
3252
3253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
3254 set_gdbarch_char_signed.
3255
3256 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
3257
3258 PR cli/548
3259 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
3260
3261 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
3262
3263 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
3264 (_initialize_arm_tdep): Don't set tm_print_insn.
3265
3266 2003-03-24 Adam Fedor <fedor@gnu.org>
3267
3268 * Makefile.in (YYOBJ): Add objc-exp.tab.o
3269 * objc-lang.h: Add multiple inclusion protection.
3270 (start_msglist, add_msglist, end_msglist): Additional declarations.
3271
3272 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
3273
3274 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
3275 value was renamed to ARM_FLOAT_SOFT_FPA.
3276
3277 2003-03-23 Andrew Cagney <cagney@redhat.com>
3278
3279 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
3280 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
3281 * gdbarch.h, gdbarch.c: Regenerate.
3282 * valops.c (hand_function_call): Update.
3283 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
3284 * frame.c (legacy_saved_regs_this_id): Update.
3285 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
3286 * dummy-frame.h: Update.
3287 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
3288 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
3289 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
3290 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
3291 * config/m68k/tm-sun3.h: Update.
3292 * blockframe.c (inside_main_func, frame_chain_valid): Update.
3293 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3294 * x86-64-tdep.c (x86_64_init_abi): Update.
3295 * vax-tdep.c (vax_gdbarch_init): Update.
3296 * v850-tdep.c (v850_gdbarch_init): Update.
3297 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
3298 * sh-tdep.c (sh_gdbarch_init): Update.
3299 * s390-tdep.c (s390_gdbarch_init): Update.
3300 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3301 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
3302 (frame_get_saved_regs): Update.
3303 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3304 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3305 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3306 * mips-tdep.c (mips_gdbarch_init): Update.
3307 * mcore-tdep.c (mcore_gdbarch_init): Update.
3308 * m68k-tdep.c (m68k_gdbarch_init): Update.
3309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3310 * ia64-tdep.c (ia64_gdbarch_init): Update.
3311 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
3312 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3313 (i386_interix_back_one_frame): Update.
3314 * hppa-tdep.c (hppa_gdbarch_init): Update.
3315 (hppa_init_extra_frame_info): Update.
3316 * h8300-tdep.c (h8300_gdbarch_init): Update.
3317 * frv-tdep.c (frv_gdbarch_init): Update.
3318 * cris-tdep.c (cris_gdbarch_init): Update.
3319 * avr-tdep.c (avr_gdbarch_init): Update.
3320 * arm-tdep.c (arm_gdbarch_init): Update.
3321 * alpha-tdep.c (alpha_gdbarch_init): Update.
3322
3323 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3324
3325 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
3326 (arm_get_fp_model): Declare.
3327 * arm-tdep.c (fp_model_strings): New string array.
3328 (arm_fp_model, current_fp_model): New variables.
3329 (arm_get_fp_model): New function.
3330 (arm_set_fp): New function.
3331 (set_fp_model_sfunc): New function.
3332 (show_fp_model): New function.
3333 (_initialize_arm_tdep): Add new command to set/show the FPU.
3334 (arm_extract_return_value): Use arm_get_fp_model.
3335 (arm_store_return_value): Likewise.
3336 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
3337 to initialize the floating-point data types.
3338 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
3339 model is FPA.
3340
3341 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3342
3343 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
3344 the current setting of each value.
3345 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
3346 new_set and new_show. Use add_setshow_cmd_full and
3347 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
3348 commands and add new version as subcommands of "set/show arm".
3349
3350 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3351
3352 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
3353 (set_arm_command, show_arm_command): New functions.
3354 (_initialize_arm_tdep): Add them.
3355 (num_disassembly_options): Renamed from num_flavor_options.
3356 (valid_disassembly_styles): Renamed from valid_flavors.
3357 (disassembly_style): Renamed from disassembly_flavor.
3358 (set_disassembly_style_sfunc): Renamed from
3359 set_disassembly_flavor_sfunc.
3360 (set_disassembly_style): Renamed from set_disassembly_flavor.
3361 (arm_othernames): Updated.
3362 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
3363 command. Add "set/show arm disassembly" commands. Deprecate
3364 "othernames" command.
3365
3366 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3367
3368 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
3369 (arm-tdep.o): Depend on elf_arm_h.
3370
3371 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3372
3373 * Makefile.in (coff_internal_h): Define.
3374 (arm-tdep.o): Update dependencies.
3375
3376 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3377
3378 * arm-tdep.c (prologue_cache): Delete.
3379 (check_prologue_cache, save_prologue_cache): Delete.
3380 (arm_scan_prologue): Don't check or update the prologue_cache.
3381 (arm_gdb_arch_init): Don't initialize it.
3382 (_initialize_arm_tdep): Likewise.
3383
3384 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
3385
3386 * MAINTAINERS (tui): Maintainer of tui code.
3387
3388 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
3389
3390 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
3391 (i386-cygwin-tdep.o): Add dependencies.
3392 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
3393 * i386-cygwin-tdep.c: New file.
3394 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
3395 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
3396
3397 2003-03-20 Andrew Cagney <cagney@redhat.com>
3398
3399 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
3400 (handle_inferior_event): Remove code calling
3401 DYNAMIC_TRAMPOLINE_NEXTPC.
3402
3403 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
3404 already has a full path.
3405
3406 * main.c (gdb_main): Return 1.
3407 (captured_main): Call error to report an invalid interpreter.
3408
3409 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3410 * alpha-osf1-tdep.c: Include "gdb_string.h".
3411
3412 2003-03-19 J. Brobecker <brobecker@gnat.com>
3413
3414 Continuing work to convert the hppa targets to multiarch partial.
3415
3416 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
3417 method, now that hppa_push_dummy_frame has a conformant prototype.
3418 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
3419 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
3420 for the switch to multiarch partial.
3421
3422 2003-03-19 Kevin Buettner <kevinb@redhat.com>
3423
3424 * mdebugread.c (parse_symbol): For stEnd, we're done counting
3425 when iss is issNull.
3426
3427 2003-03-18 Kevin Buettner <kevinb@redhat.com>
3428
3429 * mips-tdep.c (mips_register_name): Fix fencepost error involving
3430 NUM_REGS bounds check.
3431
3432 2003-03-18 Kevin Buettner <kevinb@redhat.com>
3433
3434 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
3435 * mips-tdep.c (gdb_assert.h): Include.
3436 (mips_generic_reg_names, mips_processor_reg_names): Make static.
3437 (mips_register_name): Handle integer registers explicitly. Add
3438 bounds checking.
3439 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
3440 (mips_lsi33k_reg_names): Don't list integer registers; they're
3441 handled by mips_register_name() now.
3442 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
3443 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
3444 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
3445 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
3446 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
3447
3448 2003-03-18 Andrew Cagney <cagney@redhat.com>
3449
3450 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
3451 a void pointer.
3452 * gdbtypes.h (print_scalar_formatted): Update declaration.
3453 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
3454
3455 2003-03-18 J. Brobecker <brobecker@gnat.com>
3456
3457 * infrun.c (observer.h): Add #include.
3458 (normal_stop): Add call to observer_notify_normal_stop.
3459 * Makefile.in (infrun.o): Add dependency on observer.h.
3460
3461 2003-03-18 J. Brobecker <brobecker@gnat.com>
3462
3463 Continuing work to convert the hppa targets to multiarch partial.
3464 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
3465 parameter. Reformat comment.
3466 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
3467 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
3468 to match new profile.
3469
3470 2003-03-18 J. Brobecker <brobecker@gnat.com>
3471
3472 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
3473 appear to be working in any case.
3474
3475 2003-03-18 J. Brobecker <brobecker@gnat.com>
3476
3477 * observer.c (observer_test_first_observer): New static variable.
3478 (observer_test_second_observer): Likewise.
3479 (observer_test_third_observer): Likewise.
3480 (observer_test_first_notification_function): New static function.
3481 (observer_test_second_notification_function): Likewise.
3482 (observer_test_third_notification_function): Likewise.
3483
3484 2003-03-17 J. Brobecker <brobecker@gnat.com>
3485
3486 * hppa-tdep.c (gdb_assert.h): Add missing #include.
3487 * somsolib.c (gdb_assert.h): Likewise.
3488 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
3489 (somsolib.o): Likewise.
3490
3491 2003-03-17 Andrew Cagney <cagney@redhat.com>
3492
3493 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
3494 BFD. Simplify setting of di.endian.
3495
3496 2003-03-17 Andrew Cagney <cagney@redhat.com>
3497
3498 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
3499 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
3500
3501 From Elena Zannoni <ezannoni@redhat.com>
3502 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
3503 vector and floating-point parameters.
3504 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
3505 convention.
3506 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
3507
3508 2003-03-17 Fernando Nasser <fnasser@redhat.com>
3509
3510 * MAINTAINERS: Remove my name from several maintainership roles.
3511
3512 2003-03-17 Andrew Cagney <cagney@redhat.com>
3513
3514 Fix frame off-by-one bug.
3515 * frame-unwind.h (frame_this_id_ftype): Replace
3516 frame_unwind_id_ftype.
3517 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
3518 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
3519 with "prev_register".
3520 * frame-unwind.c (frame_unwind_find_by_pc): Return
3521 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
3522 comment.
3523 * dummy-frame.c (cached_find_dummy_frame): Delete function.
3524 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
3525 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
3526 (dummy_frame_unwind): Update.
3527 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3528 sentinel_frame_register_unwind.
3529 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
3530 (sentinel_frame_unwinder): Update.
3531 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3532 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
3533 * frame.c (create_sentinel_frame): Update. Initialize
3534 "prologue_cache" instead of "unwind_cache".
3535 (frame_register_unwind): Call this frame's prev_register with the
3536 next frame and this frame's prologue cache.
3537 (get_prev_frame): Simplify. Always call prev frame's this_id with
3538 this frame and prev frame's prologue cache. Document that this
3539 call is shifted one to the left when compared to the
3540 frame_register_unwind call.
3541 (legacy_saved_regs_prev_register): Replace
3542 frame_saved_regs_register_unwind.
3543 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
3544 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
3545 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3546 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
3547 (d10v_frame_unwind): Update.
3548 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
3549 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
3550 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
3551 "saved_regs" with "this_saved_regs".
3552
3553 2003-03-16 Andrew Cagney <cagney@redhat.com>
3554
3555 * frame.c (frame_pop): Don't call target_store_registers. Fix
3556 problem reported by Mark Kettenis.
3557
3558 2003-03-16 Mark Kettenis <kettenis@gnu.org>
3559
3560 * i386-tdep.c (i386_register_type): Renamed from
3561 i386_register_virtual_type. Adjust function signature.
3562 (i386_gdbarch_init): Set register_type instead of
3563 deprecated_max_register_raw_size,
3564 deprecated_max_register_virtual_size and register_virtual_type.
3565
3566 2003-03-14 Andrew Cagney <cagney@redhat.com>
3567
3568 * frame.c (get_prev_frame): When a legacy frame, always call
3569 legacy_get_prev_frame. Simplify unwind code using assumption that
3570 the unwinder is new.
3571 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
3572 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
3573 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
3574
3575 2003-03-14 Andrew Cagney <cagney@redhat.com>
3576
3577 * frame.c (get_saved_register): Delete function.
3578 * frame.h (get_saved_register): Delete declaration.
3579 * xstormy16-tdep.c: Update comment.
3580 * regcache.h: Update comments.
3581 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
3582 get_saved_register and extract_address, use
3583 frame_read_unsigned_register.
3584 (sparc_frame_saved_pc): Ditto.
3585 (sparc_get_saved_register): Instead of get_saved_register, use
3586 frame_register.
3587 (sparc_pop_frame): Ditto.
3588 * findvar.c: Update comments.
3589 (value_of_register): Call frame_register instead of
3590 get_saved_register.
3591 (value_from_register): Ditto.
3592 * config/sparc/tm-sparc.h: Update comment.
3593 * breakpoint.c: Update comment.
3594
3595 2003-03-14 Andrew Cagney <cagney@redhat.com>
3596
3597 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
3598 GET_SAVED_REGISTER.
3599 * gdbarch.h, gdbarch.c: Re-generate.
3600 * frame.h: Update comments.
3601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3602 * x86-64-tdep.c (x86_64_init_abi): Update.
3603 * sparc-tdep.c (sparc_gdbarch_init): Update.
3604 * sh-tdep.c (sh_gdbarch_init): Update.
3605 * mips-tdep.c (mips_gdbarch_init): Update.
3606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3607 * cris-tdep.c (cris_gdbarch_init): Update.
3608 * ia64-tdep.c (ia64_gdbarch_init): Update.
3609 * frame.c (frame_register): Update.
3610 (get_saved_register): Update.
3611 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
3612
3613 2003-03-13 Andrew Cagney <cagney@redhat.com>
3614
3615 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
3616 * gdbarch.h, gdbarch.c: Regenerate.
3617 * valops.c (hand_function_call): Update comment.
3618 * stack.c (return_command): Update comment.
3619 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
3620 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
3621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3622 * x86-64-tdep.c (x86_64_init_abi): Update.
3623 * vax-tdep.c (vax_gdbarch_init): Update.
3624 * v850-tdep.c (v850_gdbarch_init): Update.
3625 * sparc-tdep.c (sparc_gdbarch_init): Update.
3626 * sh-tdep.c (sh_gdbarch_init): Update.
3627 * s390-tdep.c (s390_gdbarch_init): Update.
3628 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3629 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3630 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3631 * mips-tdep.c (mips_gdbarch_init): Update.
3632 * mcore-tdep.c (mcore_gdbarch_init): Update.
3633 * m68k-tdep.c (m68k_gdbarch_init): Update.
3634 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3635 * ia64-tdep.c (ia64_gdbarch_init): Update.
3636 * i386-tdep.c (i386_gdbarch_init): Update.
3637 * hppa-tdep.c (hppa_gdbarch_init): Update.
3638 * h8300-tdep.c (h8300_gdbarch_init): Update.
3639 * frv-tdep.c (frv_gdbarch_init): Update.
3640 * cris-tdep.c (cris_gdbarch_init): Update.
3641 * avr-tdep.c (avr_gdbarch_init): Update.
3642 * arm-tdep.c (arm_gdbarch_init): Update.
3643 * alpha-tdep.c (alpha_gdbarch_init): Update.
3644
3645 2003-03-13 Andrew Cagney <cagney@redhat.com>
3646
3647 * frame.c (legacy_frame_p): New function.
3648 (get_prev_frame): Use legacy_frame_p.
3649 * frame.h (legacy_frame_p): Declare.
3650
3651 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3652
3653 * MAINTAINERS (write after approval): Alphabetically
3654 listing corrected.
3655
3656 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3657
3658 * MAINTAINERS (write after approval): Add myself.
3659
3660 2003-03-12 Andrew Cagney <cagney@redhat.com>
3661
3662 * frame.c (get_prev_frame): Rename the frame parameter to
3663 "this_frame".
3664 (get_next_frame, legacy_get_prev_frame): Ditto.
3665
3666 2003-03-12 Andrew Cagney <cagney@redhat.com>
3667
3668 * frame.c (get_current_frame): Check target_has_registers before
3669 checking target_has_stack.
3670 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
3671 instead of deprecated_selected_frame.
3672 * findvar.c (value_of_register): Pass "frame", not
3673 deprecated_selected_frame, to value_of_builtin_reg.
3674
3675 2003-03-12 Andrew Cagney <cagney@redhat.com>
3676
3677 * regcache.c (regcache_cooked_write_signed): New function.
3678 (regcache_cooked_write_unsigned): New function.
3679 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
3680 (regcache_cooked_read_signed): Fix regnum in range assertion.
3681 * regcache.h (regcache_cooked_write_signed): Declare.
3682 (regcache_cooked_write_unsigned): Declare.
3683
3684 2003-03-12 Andrew Cagney <cagney@redhat.com>
3685
3686 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3687 * gdbarch.h, gdbarch.c: Re-generate.
3688 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3689 * x86-64-tdep.h: Update.
3690 * x86-64-tdep.c (x86_64_init_abi): Update.
3691 * v850-tdep.c (v850_gdbarch_init): Update.
3692 * sparc-tdep.c (sparc_gdbarch_init): Update.
3693 * sh-tdep.c (sh_gdbarch_init): Update.
3694 * s390-tdep.c (s390_gdbarch_init): Update.
3695 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3696 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3697 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3698 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3699 * mips-tdep.c (mips_gdbarch_init): Update.
3700 * mcore-tdep.c (mcore_gdbarch_init): Update.
3701 * m68k-tdep.c (m68k_gdbarch_init): Update.
3702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3703 * ia64-tdep.c (ia64_gdbarch_init): Update.
3704 * i386-tdep.c (i386_gdbarch_init): Update.
3705 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3706 * hppa-tdep.c (hppa_gdbarch_init): Update.
3707 * h8300-tdep.c (h8300_gdbarch_init): Update.
3708 * frv-tdep.c (frv_gdbarch_init): Update.
3709 * cris-tdep.c (cris_gdbarch_init): Update.
3710 * avr-tdep.c (avr_gdbarch_init): Update.
3711 * arm-tdep.c (arm_gdbarch_init): Update.
3712 * alpha-tdep.c (alpha_gdbarch_init): Update.
3713 * sh-tdep.c (sh_init_extra_frame_info): Update.
3714 (sh64_init_extra_frame_info): Update.
3715 * ns32knbsd-nat.c (frame_num_args): Update.
3716 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3717 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3718 (xstormy16_frame_chain_valid): Update.
3719 * vax-tdep.c (vax_saved_pc_after_call): Update.
3720 * v850-tdep.c (v850_frame_chain): Update.
3721 (v850_pop_frame): Update.
3722 (v850_init_extra_frame_info): Update.
3723 * sparc-tdep.c (setup_arbitrary_frame): Update.
3724 * ns32k-tdep.c (umax_frame_num_args): Update.
3725 * s390-tdep.c (s390_pop_frame_regular): Update.
3726 * mn10300-tdep.c (mn10300_frame_chain): Update.
3727 (mn10300_pop_frame_regular): Update.
3728 (mn10300_init_extra_frame_info): Update.
3729 * mips-tdep.c (mips_init_frame_pc_first): Update.
3730 (mips_frame_chain): Update.
3731 (mips_pop_frame): Update.
3732 * mcore-tdep.c (mcore_frame_chain): Update.
3733 (mcore_pop_frame): Update.
3734 (mcore_init_extra_frame_info): Update.
3735 * arch-utils.c (init_frame_pc_default): Update.
3736 * m68k-tdep.c (isi_frame_num_args): Update.
3737 (delta68_frame_num_args): Update.
3738 (news_frame_num_args): Update.
3739 * ia64-tdep.c (ia64_pop_frame_regular): Update.
3740 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3741 (alpha_frame_chain): Update.
3742 (alpha_pop_frame): Update.
3743 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3744 (hppa_init_extra_frame_info): Update.
3745 (hppa_frame_chain): Update.
3746 (hppa_frame_chain_valid): Update.
3747 * cris-tdep.c (cris_init_extra_frame_info): Update.
3748 * avr-tdep.c (avr_init_extra_frame_info): Update.
3749 * arm-tdep.c (arm_frame_chain_valid): Update.
3750 (arm_init_extra_frame_info): Update.
3751 (arm_pop_frame): Update.
3752 * frame.c (frame_pc_unwind): Update.
3753 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3754 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3755 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3756 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3757 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3758 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3759
3760 2003-03-12 Andrew Cagney <cagney@redhat.com>
3761
3762 Eliminate the need for POP_FRAME.
3763 * frame.c (do_frame_unwind_register): New function.
3764 (frame_pop): When no POP_FRAME, pop the frame using register
3765 unwind and a scratch regcache.
3766 (frame_saved_regs_pop): Delete function.
3767 (trad_frame_unwinder): Update.
3768 * d10v-tdep.c (d10v_frame_pop): Delete function.
3769 (d10v_frame_unwind): Update.
3770 * sentinel-frame.c (sentinel_frame_pop): Delete function.
3771 (sentinel_frame_unwinder): Update.
3772 * dummy-frame.c (dummy_frame_pop): Delete function.
3773 (dummy_frame_unwind): Update.
3774 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
3775 (struct frame_unwind): Update.
3776
3777 2003-03-11 Kevin Buettner <kevinb@redhat.com>
3778
3779 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
3780 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
3781 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
3782 Do range checks on register number obtained from debugging info.
3783 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
3784 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
3785 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
3786 mapping function.
3787 (do_fp_register_row): Fix typo which caused double type to be
3788 used when attempting to unpack a float.
3789
3790 2003-03-11 J. Brobecker <brobecker@gnat.com>
3791
3792 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
3793
3794 2003-03-11 Andrew Cagney <cagney@redhat.com>
3795
3796 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
3797 frame. Problem found by Corinna Vinschen.
3798
3799 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
3800
3801 * doublest.c (floatformat_from_length): Accept also
3802 the real size of 'long double' type.
3803
3804 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
3805
3806 From Klee Dienes <kdienes@apple.com>:
3807 * breakpoint.c (bpstat_copy): Copy the command lines as well
3808 as the old value, to match what is freed in bpstat_clear.
3809
3810 2003-03-10 David Carlton <carlton@math.stanford.edu>
3811
3812 * minsyms.c (add_minsym_to_hash_table): Replace
3813 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3814 (compare_minimal_symbols, compact_minimal_symbols)
3815 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
3816 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
3817 of DEPRECATED_SYMBOL_MATCHES_NAME.
3818 (lookup_minimal_symbol_solib_trampoline): Ditto.
3819
3820 2003-03-10 Andrew Cagney <cagney@redhat.com>
3821
3822 * regcache.h (regcache_cooked_read_ftype): Define.
3823 (regcache_save, regcache_restore): Add a cooked_read parameter.
3824 * regcache.c (regcache_save, regcache_restore): Update.
3825 (do_cooked_read): New function.
3826 (regcache_cpy): Pass do_cooked_read to regcache_save and
3827 regcache_restore.
3828
3829 2003-03-10 Andrew Cagney <cagney@redhat.com>
3830
3831 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3832 * gdbarch.h, gdbarch.c: Re-generate.
3833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3834 * x86-64-tdep.h: Update.
3835 * x86-64-tdep.c (x86_64_init_abi): Update.
3836 * v850-tdep.c (v850_gdbarch_init): Update.
3837 * sparc-tdep.c (sparc_gdbarch_init): Update.
3838 * sh-tdep.c (sh_gdbarch_init): Update.
3839 * s390-tdep.c (s390_gdbarch_init): Update.
3840 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3841 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3842 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3843 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3844 * mips-tdep.c (mips_gdbarch_init): Update.
3845 * mcore-tdep.c (mcore_gdbarch_init): Update.
3846 * m68k-tdep.c (m68k_gdbarch_init): Update.
3847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3848 * ia64-tdep.c (ia64_gdbarch_init): Update.
3849 * i386-tdep.c (i386_gdbarch_init): Update.
3850 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3851 * hppa-tdep.c (hppa_gdbarch_init): Update.
3852 * h8300-tdep.c (h8300_gdbarch_init): Update.
3853 * frv-tdep.c (frv_gdbarch_init): Update.
3854 * cris-tdep.c (cris_gdbarch_init): Update.
3855 * avr-tdep.c (avr_gdbarch_init): Update.
3856 * arm-tdep.c (arm_gdbarch_init): Update.
3857 * alpha-tdep.c (alpha_gdbarch_init): Update.
3858 * sh-tdep.c (sh_init_extra_frame_info): Update.
3859 (sh64_init_extra_frame_info): Update.
3860 * ns32knbsd-nat.c (frame_num_args): Update.
3861 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3862 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3863 (xstormy16_frame_chain_valid): Update.
3864 * vax-tdep.c (vax_saved_pc_after_call): Update.
3865 * v850-tdep.c (v850_frame_chain): Update.
3866 (v850_pop_frame): Update.
3867 (v850_init_extra_frame_info): Update.
3868 * sparc-tdep.c (setup_arbitrary_frame): Update.
3869 * ns32k-tdep.c (umax_frame_num_args): Update.
3870 * s390-tdep.c (s390_pop_frame_regular): Update.
3871 * mn10300-tdep.c (mn10300_frame_chain): Update.
3872 (mn10300_pop_frame_regular): Update.
3873 (mn10300_init_extra_frame_info): Update.
3874 * mips-tdep.c (mips_init_frame_pc_first): Update.
3875 (mips_frame_chain): Update.
3876 (mips_pop_frame): Update.
3877 * mcore-tdep.c (mcore_frame_chain): Update.
3878 (mcore_pop_frame): Update.
3879 (mcore_init_extra_frame_info): Update.
3880 * arch-utils.c (init_frame_pc_default): Update.
3881 * m68k-tdep.c (isi_frame_num_args): Update.
3882 (delta68_frame_num_args): Update.
3883 (news_frame_num_args): Update.
3884 * ia64-tdep.c (ia64_pop_frame_regular): Update.
3885 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3886 (alpha_frame_chain): Update.
3887 (alpha_pop_frame): Update.
3888 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3889 (hppa_init_extra_frame_info): Update.
3890 (hppa_frame_chain): Update.
3891 (hppa_frame_chain_valid): Update.
3892 * cris-tdep.c (cris_init_extra_frame_info): Update.
3893 * avr-tdep.c (avr_init_extra_frame_info): Update.
3894 * arm-tdep.c (arm_frame_chain_valid): Update.
3895 (arm_init_extra_frame_info): Update.
3896 (arm_pop_frame): Update.
3897 * frame.c (frame_pc_unwind): Update.
3898 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3899 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3900 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3901 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3902 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3903 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3904
3905 2003-03-10 Andrew Cagney <cagney@redhat.com>
3906
3907 * gdbarch.sh (gdbarch_unwind_pc): New method.
3908 * gdbarch.h, gdbarch.c: Regenerate.
3909 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
3910 but use read_pc and FRAME_SAVED_PC as fall backs.
3911 (frame_saved_regs_pc_unwind): Delete function.
3912 (trad_frame_unwinder): Update.
3913 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
3914 (struct frame_unwind): Update.
3915 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
3916 (dummy_frame_unwind): Update.
3917 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
3918 (sentinel_frame_unwinder): Update.
3919 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
3920 (d10v_frame_unwind): Update.
3921 (d10v_unwind_pc): New function.
3922 (d10v_gdbarch_init): Set unwind_pc.
3923
3924 2003-03-10 Andrew Cagney <cagney@redhat.com>
3925
3926 * gdbarch.h: Re-generate.
3927
3928 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
3929 PC.
3930 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
3931 the PC register.
3932
3933 2003-03-08 Mark Kettenis <kettenis@gnu.org>
3934
3935 * gdbarch.sh (save_dummy_frame_tos): Add comment.
3936
3937 2003-03-08 Andrew Cagney <cagney@redhat.com>
3938
3939 * cli-out.c: Update copyright.
3940 (cli_out_data): Define typedef. Use instead of ui_out_data.
3941
3942 2003-03-08 Andrew Cagney <cagney@redhat.com>
3943
3944 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
3945 the result.
3946
3947 2003-03-07 Andrew Cagney <cagney@redhat.com>
3948
3949 * gdbarch.sh: Don't generate two macro definitions when an
3950 undefined macro taking no arguments.
3951 * gdbarch.h: Regenerate.
3952
3953 2002-03-07 Michal Ludvig <mludvig@suse.cz>
3954
3955 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
3956 (x86_64_unwind_dummy_id): New functions.
3957 (x86_64_init_abi): Register these two new functions.
3958
3959 2003-03-07 Michal Ludvig <mludvig@suse.cz>
3960
3961 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
3962 (x86_64_skip_prologue): Move prologue detection to
3963 separate function.
3964 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
3965
3966 2003-03-05 Andrew Cagney <cagney@redhat.com>
3967
3968 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
3969 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
3970 * frame.c (get_prev_frame): Restructure the frame ID unwind code
3971 to use unwind_dummy_id when a dummy frame.
3972 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
3973 predicate.
3974 * gdbarch.h, gdbarch.c: Regneerate.
3975
3976 2003-03-05 Andrew Cagney <cagney@redhat.com>
3977
3978 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
3979 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
3980 Do not use d10v_read_sp or d10v_read_fp when obtaining register
3981 values.
3982
3983 2003-03-05 Andrew Cagney <cagney@redhat.com>
3984
3985 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
3986 (struct d10v_unwind_cache): Delete field "frameless". Replace
3987 "next_addr" with "sp_offset". Add "r11_offset".
3988 (d10v_frame_unwind_cache): Update.
3989 (prologue_find_regs): Update. When "mv r11, sp", save the
3990 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
3991 RN was saved in r11_offset.
3992
3993 2003-03-05 Andrew Cagney <cagney@redhat.com>
3994
3995 * frame.c (deprecated_update_frame_pc_hack): Also update the the
3996 cached PC value in the next frame.
3997
3998 2003-03-05 Andrew Cagney <cagney@redhat.com>
3999
4000 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
4001 "id_unwind_cache" with "id".
4002 (frame_id_unwind): Delete declaration.
4003 * frame.c (frame_id_unwind): Delete function.
4004 (get_prev_frame): Call the frame id unwind method directly. Store
4005 the returned next frame's ID value in NEXT_FRAME. Note that there
4006 is a problem with the wrong unwind ID being called with the wrong
4007 unwind cache.
4008
4009 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
4010
4011 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
4012
4013 2003-03-05 James Ingham <jingham@apple.com>
4014 Daniel Jacobowitz <drow@mvista.com>
4015
4016 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
4017 (auto_cp_abi): New variable.
4018 (current_cp_abi, num_cp_abis): Make static.
4019 (CP_ABI_MAX): Define.
4020 (cp_abis): Turn into an array.
4021 (value_virtual_fn_field): Fix formatting.
4022 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
4023 takes a pointer.
4024 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
4025 (list_cp_abis, _initialize_cp_abi): New functions.
4026 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
4027 declarations for cp_abis, num_cp_abis, current_cp_abi, and
4028 switch_to_cp_abi. Update prototype for register_cp_abi.
4029 * Makefile.in (cp-abi.o): Update dependencies.
4030 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
4031 instead of switch_to_cp_abi.
4032 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
4033 register_cp_abi.
4034 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
4035 register_cp_abi.
4036 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
4037
4038 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
4039
4040 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
4041 * dwarf2loc.c: Include "regcache.h".
4042 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
4043 register_size.
4044 * Makefile.in (dwarf2loc.o): Update dependencies.
4045
4046 2003-03-04 Theodore A. Roth <troth@openavr.org>
4047
4048 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
4049 number of io registers reported by remote target is not a multiple of
4050 step.
4051
4052 2003-03-04 David Carlton <carlton@math.stanford.edu>
4053
4054 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
4055 (lookup_symbol_aux_psymtabs): Update call to
4056 lookup_partial_symbol.
4057 (lookup_transparent_type, find_main_psymtab)
4058 (make_symbol_overload_list): Ditto.
4059
4060 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
4061
4062 * MAINTAINERS (Write after approval): Update my email address.
4063
4064 2003-03-03 Andrew Cagney <cagney@redhat.com>
4065
4066 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
4067 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
4068 predicate. Replace MAX_REGISTER_RAW_SIZE.
4069 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
4070 MAX_REGISTER_VIRTUAL_SIZE.
4071 * regcache.c (legacy_max_register_raw_size): New function.
4072 (legacy_max_register_virtual_size): New function.
4073 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
4074 (MAX_REGISTER_RAW_SIZE): Define.
4075 (legacy_max_register_raw_size): Declare.
4076 (legacy_max_register_virtual_size): Declare.
4077 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4078 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
4079 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4080 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4081 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4082 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4083 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4084 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4085 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4086 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4087 * vax-tdep.c (vax_gdbarch_init): Update.
4088 * v850-tdep.c (v850_gdbarch_init): Update.
4089 * sparc-tdep.c (sparc_gdbarch_init): Update.
4090 * sh-tdep.c (sh_gdbarch_init): Update.
4091 * s390-tdep.c (s390_gdbarch_init): Update.
4092 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4093 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4094 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4095 * mips-tdep.c (mips_gdbarch_init): Update.
4096 * mcore-tdep.c (mcore_gdbarch_init): Update.
4097 * m68k-tdep.c (m68k_gdbarch_init): Update.
4098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4099 * ia64-tdep.c (ia64_gdbarch_init): Update.
4100 * i386-tdep.c (i386_gdbarch_init): Update.
4101 * hppa-tdep.c (hppa_gdbarch_init): Update.
4102 * h8300-tdep.c (h8300_gdbarch_init): Update.
4103 * frv-tdep.c (frv_gdbarch_init): Update.
4104 * cris-tdep.c (cris_gdbarch_init): Update.
4105 * avr-tdep.c (avr_gdbarch_init): Update.
4106 * arm-tdep.c (arm_gdbarch_init): Update.
4107 * alpha-tdep.c (alpha_gdbarch_init): Update.
4108 * d10v-tdep.c (d10v_gdbarch_init): Do not set
4109 max_register_raw_size or max_register_virtual_size.
4110
4111 2003-03-03 David Carlton <carlton@math.stanford.edu>
4112
4113 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
4114 SYMBOL_MATCHES_NAME, add comment.
4115 (SYMBOL_MATCHES_NATURAL_NAME): New.
4116 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
4117 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
4118 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
4119 * symtab.c (lookup_partial_symbol): Use
4120 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
4121 unhelpful comment.
4122 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
4123 SYMBOL_MATCHES_NAME.
4124 Fix for PR c++/33.
4125
4126 2003-03-03 David Carlton <carlton@math.stanford.edu>
4127
4128 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
4129 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
4130 by regexp matching against SYMBOL_NATURAL_NAME.
4131
4132 2003-03-03 David Carlton <carlton@math.stanford.edu>
4133
4134 * linespec.c (find_method): Extract code into collect_methods.
4135 (collect_methods): New.
4136
4137 2003-03-02 Mark Kettenis <kettenis@gnu.org>
4138
4139 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
4140 get_frame_base.
4141
4142 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
4143 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4144
4145 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
4146
4147 * arch-utils.c (generic_register_byte): Fix to use the loop index
4148 and not regnum when summing the size of all registers up to regnum.
4149
4150 2003-03-01 Andrew Cagney <cagney@redhat.com>
4151
4152 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
4153 FRAME_INIT_SAVED_REGS.
4154 * gdbarch.h, gdbarch.c: Regenerate.
4155 * stack.c (frame_info): Update.
4156 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
4157 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
4158 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
4159 * ns32k-tdep.c (ns32k_pop_frame): Update.
4160 * mips-tdep.c (mips_pop_frame): Update.
4161 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
4162 * ia64-tdep.c (ia64_frame_chain): Update.
4163 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
4164 (ia64_frameless_function_invocation): Update.
4165 (ia64_init_extra_frame_info): Update.
4166 (ia64_pop_frame_regular): Update.
4167 * frame.h (struct frame_info): Update comment.
4168 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
4169 * frame.c (frame_saved_regs_register_unwind): Update.
4170 (frame_saved_regs_register_unwind): Update.
4171 (deprecated_generic_get_saved_register): Update.
4172 * cris-tdep.c: Update comment.
4173 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
4174 Rename macro.
4175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4176 * x86-64-tdep.c (x86_64_init_abi): Update.
4177 * vax-tdep.c (vax_gdbarch_init): Update.
4178 * v850-tdep.c (v850_gdbarch_init): Update.
4179 * sparc-tdep.c (sparc_gdbarch_init): Update.
4180 * sh-tdep.c (sh_gdbarch_init): Update.
4181 * s390-tdep.c (s390_gdbarch_init): Update.
4182 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4183 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4184 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4185 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4186 * mips-tdep.c (mips_gdbarch_init): Update.
4187 * mcore-tdep.c (mcore_gdbarch_init): Update.
4188 * m68k-tdep.c (m68k_gdbarch_init): Update.
4189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4190 * ia64-tdep.c (ia64_gdbarch_init): Update.
4191 * i386-tdep.c (i386_gdbarch_init): Update.
4192 * frv-tdep.c (frv_gdbarch_init): Update.
4193 * avr-tdep.c (avr_gdbarch_init): Update.
4194 * arm-tdep.c (arm_gdbarch_init): Update.
4195 * alpha-tdep.c (alpha_gdbarch_init): Update.
4196
4197 2003-03-01 Andrew Cagney <cagney@redhat.com>
4198
4199 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
4200 option enum and switch. When no windows, set the interpreter to
4201 INTERP_CONSOLE.
4202
4203 2003-03-01 Andrew Cagney <cagney@redhat.com>
4204
4205 * main.c (captured_main): Replace magic option characters with an
4206 enum.
4207
4208 2003-03-01 Andrew Cagney <cagney@redhat.com>
4209
4210 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
4211 INIT_EXTRA_FRAME_INFO.
4212 * gdbarch.h, gdbarch.c: Regenerate.
4213 * arm-tdep.c: Update comments.
4214 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
4215 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
4216 * frame.h, avr-tdep.c: Ditto.
4217 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
4218 (create_new_frame, legacy_get_prev_frame): Ditto.
4219 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4220 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
4222 deprecated_init_extra_frame_info instead of init_extra_frame_info.
4223 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4224 * v850-tdep.c (v850_gdbarch_init): Ditto.
4225 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4226 * sh-tdep.c (sh_gdbarch_init): Ditto.
4227 * s390-tdep.c (s390_gdbarch_init): Ditto.
4228 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
4229 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4230 * mips-tdep.c (mips_gdbarch_init): Ditto.
4231 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4233 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4234 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
4235 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4236 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4237 * frv-tdep.c (frv_gdbarch_init): Ditto.
4238 * cris-tdep.c (cris_gdbarch_init): Ditto.
4239 * avr-tdep.c (avr_gdbarch_init): Ditto.
4240 * arm-tdep.c (arm_gdbarch_init): Ditto.
4241 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4242 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4243
4244 2003-03-01 Andrew Cagney <cagney@redhat.com>
4245
4246 * gdbarch.sh (register_type): New function with predicate.
4247 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
4248 * gdbarch.h, gdbarch.c: Re-generate.
4249 * arch-utils.c (generic_register_byte): Use generic_register_size.
4250 (generic_register_size): When available, use
4251 gdbarch_register_type.
4252 * regcache.c (init_regcache_descr): When available, initialize the
4253 register type array using gdbarch_register_type. If the
4254 architecture supplies gdbarch_register_type, do not use the legacy
4255 regcache layout.
4256 * d10v-tdep.c (d10v_register_type): Replace
4257 d10v_register_virtual_type.
4258 (d10v_gdbarch_init): Set register_type instead of
4259 register_virtual_type.
4260
4261 2003-03-01 Andrew Cagney <cagney@redhat.com>
4262
4263 * Makefile.in (ax-gdb.o): Update dependencies.
4264 * ax-gdb.c: Include "regcache.h".
4265 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
4266 * findvar.c (value_of_register): Ditto.
4267 * infcmd.c (default_print_registers_info): Ditto.
4268
4269 2003-03-01 Mark Kettenis <kettenis@gnu.org>
4270
4271 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
4272 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4273
4274 2003-03-01 Mark Kettenis <kettenis@gnu.org>
4275
4276 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
4277 of STREQ.
4278
4279 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
4280
4281 * Makefile.in (dwarf2loc.o): Update dependencies.
4282 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
4283 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
4284 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
4285 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
4286 (locexpr_tracepoint_var_ref): New function.
4287 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
4288
4289 2003-02-28 Andrew Cagney <cagney@redhat.com>
4290
4291 * regcache.c (register_size): New function.
4292 * regcache.h (register_size): Declare
4293 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
4294 max_register_size instead of MAX_REGISTER_RAW_SIZE.
4295
4296 2003-02-28 David Carlton <carlton@math.stanford.edu>
4297
4298 * linespec.c (decode_compound): Extract code into find_method.
4299 (find_method): New.
4300
4301 2003-02-28 J. Brobecker <brobecker@gnat.com>
4302
4303 * Makefile.in: Add rules to build and link in observer.o.
4304
4305 2003-02-27 J. Brobecker <brobecker@gnat.com>
4306
4307 * observer.c: Minor comments edits.
4308
4309 2003-02-27 J. Brobecker <brobecker@gnat.com>
4310
4311 * observer.h, observer.c: New file.
4312
4313 2003-02-27 Andrew Cagney <cagney@redhat.com>
4314
4315 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
4316
4317 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
4318
4319 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
4320 (M6812_OP_STS_EXT): Likewise.
4321 (m6811_prologue): Use the above to recognize prologue.
4322 (m6812_prologue): Likewise.
4323
4324 2003-02-27 David Carlton <carlton@math.stanford.edu>
4325
4326 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
4327 SYMBOL_PRINT_NAME.
4328 (compare_psymbols): Ditto.
4329 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
4330
4331 2003-02-27 Michael Snyder <msnyder@redhat.com>
4332
4333 * f-lang.c (build_fortran_types): New function.
4334 (_initialize_f_language): Gdbarch-register built-in fortran types.
4335 * doublest.c (extract_floating): Fix warning text.
4336
4337 2003-02-27 Andrew Cagney <cagney@redhat.com>
4338
4339 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
4340 predicate. Replaces PUSH_DUMMY_FRAME.
4341 * gdbarch.h, gdbarch.c: Regnerate.
4342 * valops.c (hand_function_call): Update. Call
4343 generic_push_dummy_frame directly.
4344 * vax-tdep.c (vax_gdbarch_init): Update.
4345 * sparc-tdep.c (sparc_gdbarch_init): Update.
4346 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4347 * m68k-tdep.c (m68k_gdbarch_init): Update.
4348 * hppa-tdep.c (hppa_gdbarch_init): Update.
4349 * alpha-tdep.c (alpha_gdbarch_init): Update.
4350 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
4351 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
4352 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
4353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
4354 push_dummy_frame to generic_push_dummy_frame.
4355 * v850-tdep.c (v850_gdbarch_init): Ditto.
4356 * sh-tdep.c (sh_gdbarch_init): Ditto.
4357 * s390-tdep.c (s390_gdbarch_init): Ditto.
4358 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4359 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4360 * mips-tdep.c (mips_gdbarch_init): Ditto.
4361 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4363 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4364 * i386-tdep.c (i386_gdbarch_init): Ditto.
4365 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4366 * frv-tdep.c (frv_gdbarch_init): Ditto.
4367 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4368 * cris-tdep.c (cris_gdbarch_init): Ditto.
4369 * avr-tdep.c (avr_gdbarch_init): Ditto.
4370 * arm-tdep.c (arm_gdbarch_init): Ditto.
4371
4372 2003-02-26 Kevin Buettner <kevinb@redhat.com>
4373
4374 * mips-tdep.c (show_mips_abi): New function.
4375 (_initialize_mips_tdep): Use show_mips_abi() to implement the
4376 command ``show mips abi''.
4377
4378 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
4379
4380 From Elena Zannoni <ezannoni@redhat.com>
4381 * dbxread.c (process_one_symbol): Only record line 0 if one or
4382 more sline entries have been seen for the function.
4383
4384 2003-02-26 Michael Chastain <mec@shout.net>
4385
4386 * configure: Regenerate with autoconf 000227.
4387
4388 2003-02-26 Michael Chastain <mec@shout.net>
4389
4390 Close PR build/660.
4391 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
4392 for old libc5/glibc.
4393 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
4394
4395 2003-02-26 Kris Warkentin <kewarken@qnx.com>
4396
4397 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
4398 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
4399
4400 2003-02-26 Michael Chastain <mec@shout.net>
4401
4402 * configure.in: New variable HAVE_UINTPTR_T.
4403 * configure, config.in: Regenerated.
4404
4405 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
4406
4407 Fix PR build/1097.
4408 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
4409
4410 2003-02-25 Andrew Cagney <cagney@redhat.com>
4411
4412 * frame.c (get_prev_frame): Add comment on check for
4413 inside_entry_func. Only check for inside_entry_file when not a
4414 dummy and not a sentinel. Check that the new frame is not inner
4415 to the old frame.
4416
4417 2003-02-25 Andrew Cagney <cagney@redhat.com>
4418
4419 * frame.c (frame_debug): New variable.
4420 (_initialize_frame): Add "set/show debug frame" command.
4421 (get_prev_frame): When frame_debug, print reason why unwind
4422 failed.
4423
4424 2003-02-25 Michael Chastain <mec@shout.net>
4425
4426 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
4427 to avoid uintptr_t definition problems.
4428
4429 2003-02-25 David Carlton <carlton@math.stanford.edu>
4430
4431 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
4432 (SYMBOL_LINKAGE_NAME): Ditto.
4433 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
4434 SYMBOL_LINKAGE_NAME.
4435 (struct general_symbol_info): Expand comment.
4436 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
4437 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
4438 (SYMBOL_MATCHES_REGEXP): Ditto.
4439 * symtab.c (symbol_natural_name): New function.
4440 * objfiles.h: Replace all uses of SYMBOL_NAME by
4441 DEPRECATED_SYMBOL_NAME.
4442 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
4443 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
4444 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
4445 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
4446 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
4447 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
4448 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
4449 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
4450 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
4451 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
4452 * ada-exp.y: Ditto.
4453 * ada-exp.y: Update copyright.
4454 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
4455 * cp-valprint.c: Ditto.
4456
4457 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
4458
4459 * infptrace.c (detach): Do not flag error if ptrace detach fails
4460 and errno is set to ESRCH.
4461
4462 2003-02-24 Andrew Cagney <cagney@redhat.com>
4463
4464 * infptrace.c (udot_info): Change type of udot_off to long. Use
4465 paddr when printing udot_off's value.
4466
4467 2003-02-24 David Carlton <carlton@math.stanford.edu>
4468
4469 * symtab.c (make_symbol_overload_list): Only read in partial
4470 symtabs containing a matching partial symbol.
4471
4472 2003-02-24 David Carlton <carlton@math.stanford.edu>
4473
4474 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
4475 do the comparison, not strcmp.
4476 * symfile.c (compare_psymbols): Ditto.
4477 * defs.h: Declare strcmp_iw_ordered.
4478 * utils.c (strcmp_iw_ordered): New function.
4479
4480 2003-02-24 Jim Blandy <jimb@redhat.com>
4481
4482 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
4483 support, shared libs): Remove my name from here, to better reflect
4484 reality.
4485
4486 2003-02-24 Kris Warkentin <kewarken@qnx.com>
4487
4488 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
4489 (target_ops): Add to_have_continuable_watchpoint.
4490 * target.c (update_current_target): Add INHERIT line for
4491 to_have_continuable_watchpoint.
4492 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
4493 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
4494 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
4495 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
4496
4497 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
4498
4499 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
4500 maintainership.
4501
4502 2003-02-24 Kris Warkentin <kewarken@qnx.com>
4503
4504 * solib.c (solib_open): Call target defined search function after
4505 failing with solib-search-path.
4506 * solist.h (target_so_ops): Add find_and_open_solib function hook and
4507 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
4508
4509 2003-02-24 Kris Warkentin <kewarken@qnx.com>
4510
4511 * MAINTAINERS: Add myself to Write After section.
4512
4513 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
4514
4515 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
4516
4517 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
4518
4519 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
4520 (m68hc11_add_reggroups): New function.
4521 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
4522 (m68hc11_gdbarch_init): Install the reggroups.
4523 (_initialize_m68hc11_tdep): Initialize them.
4524
4525 2003-02-21 James E Wilson <wilson@tuliptree.org>
4526
4527 * MAINTAINERS: Update my email address.
4528
4529 2003-02-21 David Carlton <carlton@math.stanford.edu>
4530
4531 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
4532
4533 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
4534
4535 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
4536 * symtab.h: Add opaque declarations of struct axs_value and
4537 struct agent_expr.
4538 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
4539 (struct location_funcs): New type.
4540 (struct symbol): Add "loc" to aux_value.
4541 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
4542 * dwarf2read.c: Include "dwarf2expr.h".
4543 (dwarf2_symbol_mark_computed): New function.
4544 (read_func_scope): Use it.
4545 (var_decode_location): New function.
4546 (new_symbol): Use it.
4547 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
4548
4549 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
4550 (dwarf2expr_h, dwarf2loc_h): New variables.
4551 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
4552 (dwarf2expr.o, dwarf2loc.o): New rules.
4553 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
4554 * buildsym.c (finish_block): Handle LOC_COMPUTED and
4555 LOC_COMPUTED_ARG.
4556 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4557 * m2-exp.y (yylex): Likewise.
4558 * printcmd.c (address_info, print_frame_args): Likewise.
4559 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
4560 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4561 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
4562 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
4563 * symtab.c (lookup_block_symbol): Likewise.
4564
4565 2003-02-20 Adam Fedor <fedor@gnu.org>
4566
4567 * symtab.h: Remove objc_specific struct
4568 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
4569 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
4570 Have language_objc use cplus_specific struct.
4571
4572 2003-02-20 Tom Tromey <tromey@redhat.com>
4573
4574 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
4575 TYPE_NAME, when printing a String value. PR java/1075.
4576
4577 2003-02-20 Adam Fedor <fedor@gnu.org>
4578
4579 * objc-lang.h (find_methods): Remove declaration.
4580 * objc-lang.c (find_methods): Make static.
4581
4582 2003-02-20 Christopher Faylor <cgf@redhat.com>
4583
4584 * win32-nat.c (get_image_name): Check return value from
4585 ReadProcessMemory.
4586 (child_xfer_memory): Ditto.
4587
4588 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
4589
4590 * configure.in (TARGET_SYSTEM_ROOT): Set default to
4591 ${exec_prefix}/${target_alias}/sys-root. Match explicit
4592 '${exec_prefix}' (in addition to the expansion thereof) as
4593 relocatable.
4594 * configure: Rebuilt.
4595
4596 2003-02-20 David Carlton <carlton@math.stanford.edu>
4597
4598 * symtab.c (search_symbols): Revert the search_symbols part of my
4599 2002-12-23 patch. Add comment.
4600
4601 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4602
4603 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
4604 * dbxread.c (elfstab_build_psymtabs): Don't call
4605 install_minimal_symbols.
4606 (stabsect_build_psymtabs): Likewise.
4607 * elfread.c (elf_symfile_read): Call install_minimal_symbols
4608 earlier.
4609 * somread.c (som_symfile_read): Call install_minimal_symbols
4610 and do_cleanups earlier.
4611 * nlmread.c (nlm_symfile_read): Likewise.
4612 * mdebugread.c (elfmdebug_build_psymtabs): Call
4613 install_minimal_symbols and make appropriate cleanups.
4614
4615 2003-02-20 Kevin Buettner <kevinb@redhat.com>
4616
4617 * solib.c (reload_shared_libraries): New function.
4618 (_initialize_solib): Add callbacks for ``set solib-search-path''
4619 and ``set solib-absolute-prefix''.
4620
4621 2003-02-20 David Carlton <carlton@math.stanford.edu>
4622
4623 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
4624 expand comment.
4625 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
4626 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
4627 * ada-typeprint.c (ada_typedef_print): Ditto.
4628 * ax-gdb.c (gen_var_ref): Ditto.
4629 * breakpoint.c (print_one_breakpoint): Ditto.
4630 * buildsym.c (finish_block): Ditto.
4631 * c-valprint.c (c_val_print): Ditto.
4632 * expprint.c (print_subexp): Ditto.
4633 * findvar.c (locate_var_value): Ditto.
4634 * infcmd.c (jump_command): Ditto.
4635 * linespec.c (decode_line_2, decode_compound): Ditto.
4636 * maint.c (maintenance_translate_address): Ditto.
4637 * objc-lang.c (compare_selectors, compare_classes): Ditto.
4638 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
4639 Ditto.
4640 * p-valprint.c (pascal_val_print): Ditto.
4641 * stabsread.c (define_symbol): Ditto.
4642 * stack.c (print_frame, frame_info, print_block_frame_locals)
4643 (print_frame_arg_vars, return_command): Ditto.
4644 * symfile.c (compare_symbols, compare_psymbols): Ditto.
4645 * symmisc.c (print_symbol): Ditto.
4646 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
4647 (compare_search_syms, print_symbol_info, print_msymbol_info)
4648 (rbreak_command): Ditto.
4649 * tracepoint.c (tracepoints_info): Ditto.
4650 * typeprint.c (typedef_print): Ditto.
4651 * valops.c (value_of_variable, hand_function_call): Ditto.
4652 * cli/cli-cmds.c (edit_command, list_command): Ditto.
4653 * ada-typeprint.c: Update Copyright.
4654 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
4655 * tracepoint.c, cli/cli-cmds.c: Ditto.
4656
4657 2003-02-20 Kevin Buettner <kevinb@redhat.com>
4658
4659 * frame.c (generic_unwind_get_saved_register): Make non-static.
4660 * frame.h (generic_unwind_get_saved_register): Declare.
4661 * mips-tdep.c (read_next_frame_reg): Fetch register from
4662 current regcache when frame is NULL.
4663 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
4664 that must be NULL.
4665 (mips_get_saved_register): Call generic_unwind_get_saved_register()
4666 instead of frame_register_unwind().
4667
4668 2003-02-20 Andrew Cagney <ac131313@redhat.com>
4669
4670 * remote-sim.c (gdbsim_insert_breakpoint)
4671 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
4672 code.
4673
4674 2003-02-20 Andrew Cagney <ac131313@redhat.com>
4675
4676 * remote.c (_initialize_remote): Add commands "set/show remote
4677 hardware-watchpoint-limit" and "set/show remote
4678 hardware-breakpoint-limit".
4679 (remote_hw_watchpoint_limit): Initialize to -1.
4680 (remote_hw_breakpoint_limit): Ditto.
4681 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
4682
4683 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
4684
4685 * coff-pe-read.c: New file - support reading of minimal symbols from a
4686 portable executable using the export table.
4687 * coff-pe-read.h: New file.
4688 * coffread.c: Include coff-pe-read.h.
4689 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
4690 debugging symbols found.
4691 * Makefile.in (SFILES): Add coff-pe-read.o.
4692 (coff_pe_read_h): Define.
4693 (COMMON_OBS): Add coff-pe-read.o.
4694 (coffread.o): Add coff_pe_read_h dependency.
4695 (coff-pe-read.o): New target.
4696
4697 2003-02-19 David Carlton <carlton@math.stanford.edu>
4698
4699 * Makefile.in (SFILES): Add block.c.
4700 (block_h): New.
4701 (COMMON_OBS): Add block.o.
4702 (block.o): New.
4703 (x86-64-tdep.o): Add $(block_h).
4704 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
4705 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
4706 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
4707 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
4708 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
4709 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
4710 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
4711 * value.h: Add opaque declaration for struct block.
4712 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
4713 * ada-lang.h: Ditto.
4714 * x86-64-tdep.c: #include "block.h"
4715 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
4716 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
4717 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
4718 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
4719 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
4720 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
4721 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
4722 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
4723 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
4724 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
4725 * symtab.c (block_function): Ditto.
4726 (contained_in): Ditto.
4727 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
4728 block.h. Add opaque declaration for struct block.
4729 * symtab.h: Move block_function and contained_in declarations to
4730 block.h. Add opaque declarations for struct block, struct
4731 blockvector.
4732 (struct block): Move to block.h.
4733 (struct blockvector): Ditto.
4734 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
4735 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
4736 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
4737 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
4738 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
4739 Ditto.
4740 * block.c: New file.
4741 * block.h: New file.
4742
4743 2003-02-19 Theodore A. Roth <troth@openavr.org>
4744
4745 * avr-tdep.c (avr_extract_return_value): Remove function.
4746 (avr_store_return_value): Remove function.
4747 (avr_extract_struct_value_address): Remove function.
4748 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
4749
4750 2003-02-19 Andrew Cagney <ac131313@redhat.com>
4751
4752 * rs6000-tdep.c: Include "gdb_assert.h".
4753 (registers_e500): Add "acc" and "spefscr".
4754 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
4755 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
4756 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
4757 really is "r0".
4758 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
4759
4760 2003-02-18 Keith Seitz <keiths@redhat.com>
4761
4762 * Makefile.in: Add gdbtk-interps.c.
4763
4764 2003-02-18 Kevin Buettner <kevinb@redhat.com>
4765
4766 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
4767 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
4768
4769 2003-02-18 Andrew Cagney <cagney@redhat.com>
4770
4771 * symtab.h (struct objfile): Add opaque declaration.
4772
4773 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
4774
4775 From Jim Ingham <jingham@apple.com>:
4776 * dbxread.c (process_one_symbol): Use last_function_start rather
4777 than function_start_offset to find the real beginning of the
4778 current function. The latter is just the text section offset on
4779 some systems, the former is always the real function start.
4780
4781 2003-02-17 Andrew Cagney <cagney@redhat.com>
4782
4783 * configure.in: Revert ${target} != ${host}.
4784
4785 2003-02-17 Andrew Cagney <ac131313@redhat.com>
4786
4787 * configure.in (Makefile): Use the test ${target} != ${host},
4788 instead of the absence of the "nm.h" file, to determine of the
4789 configuration non-native.
4790 * configure: Regenerate.
4791
4792 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
4793
4794 From Brian Ford <ford@vss.fsi.com>
4795
4796 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
4797 conditionalize tui_active test.
4798 (lookup_cmd_1): Ditto.
4799
4800 2003-02-14 Mark Kettenis <kettenis@gnu.org>
4801
4802 * configure.in: Add check for _etext.
4803 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
4804 available.
4805 * config.in, configure: regenerated.
4806
4807 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
4808
4809 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
4810
4811 2003-02-14 Andrew Cagney <ac131313@redhat.com>
4812
4813 * main.c (tui_version): Delete variable.
4814 (captured_main): When --tui, set interpreter_p to "tui" instead of
4815 enabling tui_version.
4816 * printcmd.c (display_command) [TUI]: Test tui_active instead of
4817 tui_version.
4818 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
4819 * cli/cli-cmds.c (disassemble_command): Ditto.
4820 * defs.h (tui_version): Delete declaration.
4821 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
4822 (tui-interp.o): Add rules.
4823 (SUBDIR_TUI_OBS): Add "tui-interp.o".
4824
4825 2003-02-14 Christopher Faylor <cgf@redhat.com>
4826
4827 * win32-nat.c (register_loaded_dll): Correctly set address range for
4828 just-loaded dll.
4829
4830 2003-02-12 Jason Molenda (jmolenda@apple.com)
4831
4832 * symmisc.c (print_objfile_statistics): Include information about
4833 the number of psymtabs and symtabs in each object file.
4834
4835 2003-02-13 Keith R Seitz <keiths@redhat.com>
4836
4837 * main.h (struct captured_main_args): Add interpreter_p.
4838 * main.c (captured_main): Initialize interpreter_p from context.
4839 * gdb.c (main): Set interpreter_p argument.
4840 * Makefile.in (gdb.o): Add dependency for interps.h.
4841
4842 2003-02-12 Andrew Cagney <ac131313@redhat.com>
4843
4844 * event-top.c (cli_command_loop): Delete declaration.
4845 (_initialize_event_loop): Delete function setting event_loop_hook.
4846 * event-top.h (cli_command_loop): Declare. Update copyright.
4847 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
4848 * interps.c (current_interp_command_loop): When event_loop_p, call
4849 cli_command_loop.
4850
4851 2003-02-12 Andrew Cagney <ac131313@redhat.com>
4852
4853 * interps.h (interp_command_loop_ftype): Change return type to
4854 void.
4855
4856 2003-02-12 Michal Ludvig <mludvig@suse.cz>
4857
4858 * x86-64-tdep.c (x86_64_extract_return_value)
4859 (x86_64_store_return_value): Use regcache instead of regbuf.
4860 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
4861 * x86-64-linux-nat.c (fill_gregset): Use regcache.
4862
4863 2003-02-11 Andrew Cagney <ac131313@redhat.com>
4864
4865 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
4866 * aclocal.m4: Regenerate.
4867 * configure: Regenerate.
4868
4869 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
4870 TCL_LD_SEARCH_FLAGS.
4871
4872 2003-02-10 Michal Ludvig <mludvig@suse.cz>
4873
4874 * dwarf2cfi.c: Reindented.
4875
4876 2003-02-09 Andrew Cagney <ac131313@redhat.com>
4877
4878 * interps.c (clear_interpreter_hooks): Convert function definition
4879 to ISO C.
4880
4881 2003-02-07 David Carlton <carlton@math.stanford.edu>
4882
4883 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
4884
4885 2003-02-07 Kevin Buettner <kevinb@redhat.com>
4886
4887 * gdbtypes.h (struct main_type): Move ``length'' field from here...
4888 (struct type): ...to here.
4889 (TYPE_LENGTH): Adjust to reflect different location of ``length''
4890 field.
4891 * gdbtypes.c (make_qualified_type): Set length on newly created type.
4892 (replace_type): Set length on all type variants for a given type.
4893
4894 2003-02-07 Andrew Cagney <ac131313@redhat.com>
4895
4896 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
4897 <sys/stat.h>.
4898 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
4899
4900 2003-02-06 Andrew Cagney <ac131313@redhat.com>
4901
4902 * Makefile.in (symm-nat.o): Update dependencies.
4903 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
4904 (lynx-nat.o, ia64-linux-nat.): Ditto.
4905 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
4906 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
4907 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
4908
4909 * Makefile.in (inflow_h): Define.
4910 (procfs.o, inflow.o, procfs.o): Update dependencies.
4911 * inftarg.c (child_stop): Delete extern declaration of
4912 inferior_process_group. Include "inflow.h".
4913 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
4914 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
4915 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
4916 (our_process_group, inferior_process_group): Extern declarations.
4917
4918 * procfs.c: Include "gdb_assert.h".
4919
4920 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4921 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
4922 * jv-typeprint.c (java_type_print_base): Ditto.
4923 * typeprint.c (typedef_print): Eliminate STREQ.
4924 * cli/cli-script.c (define_command, define_command): Ditto.
4925 * main.c (captured_main): Ditto.
4926 * values.c (lookup_internalvar): Ditto.
4927 * utils.c (safe_strerror, parse_escape): Eliminate assignment
4928 within `if' conditional.
4929 * linespec.c (decode_line_2): Ditto.
4930 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
4931 (bfd_openw_with_cleanup): Ditto.
4932
4933 2003-02-07 Mark Kettenis <kettenis@gnu.org>
4934
4935 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
4936 legacy_extract_return_value and store_return_value to
4937 legacy_return_value.
4938
4939 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
4940
4941 * win32-nat.c (get_relocated_section_addrs): New function. Find
4942 section load addresses for symbol handling in relocated DLLs.
4943 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
4944
4945 2003-02-05 Fred Fish <fnf@intrinsity.com>
4946
4947 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
4948 '=' and '!='.
4949 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
4950 with '&' and '=='.
4951 (angel_RDI_info): Ditto.
4952 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
4953 with '&' and '!='.
4954 (threads_continue_all_with_signals): Ditto.
4955
4956 2003-02-05 Jim Ingham <jingham@apple.com>
4957 Keith Seitz <keiths@redhat.com>
4958 Elena Zannoni <ezannoni@redhat.com>
4959 Andrew Cagney <ac131313@redhat.com>
4960
4961 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
4962 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
4963 (SUBDIR_MI_OBS): Add "mi-interp.o".
4964 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
4965 (SFILES): Add "interps.c".
4966 (COMMON_OBS): Add "interps.o".
4967 (interps_h, mi_main_h): Define.
4968 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
4969 (mi-main.o, main.o, event-top.o): Update dependencies.
4970 * cli/cli-interp.c: New file.
4971 * interps.h, interps.c: New files.
4972 * top.c: (gdb_init): Don't install the default interpreter, handed
4973 by captured_main.
4974 * main.c: Include "interps.h".
4975 (interpreter_p): Note that it should malloc'ed.
4976 (captured_command_loop): Call current_interp_command_loop.
4977 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
4978 xfree and xstrdup when updating interpreter_p. Install the
4979 default interpreter. Add hack to stop mi1's copyright notice
4980 being encoded.
4981 * event-top.h (gdb_setup_readline): Declare.
4982 (gdb_disable_readline): Declare.
4983 * event-top.c: Include "interps.h".
4984 (display_gdb_prompt): Call current_interp_display_prompt_p.
4985 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
4986 gdb_stdlog, and gdb_stdtarg.
4987 (_initialize_event_loop): Don't call gdb_setup_readline.
4988 * cli-out.c (cli_out_set_stream): New function.
4989 * cli-out.h (cli_out_set_stream): Declare.
4990
4991 2003-02-06 Mark Kettenis <kettenis@gnu.org>
4992
4993 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
4994 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
4995 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
4996 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
4997 config/i386/i386v42mp.mt: Removed.
4998
4999 2003-02-05 Mark Kettenis <kettenis@gnu.org>
5000
5001 * configure.tgt (*-*-solaris*): Set gdb_osabi to
5002 GDB_OSABI_SOLARIS.
5003
5004 2003-02-05 Michael Chastain <mec@shout.net>
5005
5006 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
5007 2.12.1 and earlier versions.
5008
5009 2003-02-05 Andrew Cagney <ac131313@redhat.com>
5010
5011 Remove orphaned hosts, targets and files.
5012 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
5013 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
5014 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
5015 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
5016 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
5017 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
5018 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
5019 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
5020 * config/sparc/tm-sp64sim.h: Delete.
5021 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
5022 hosts.
5023 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
5024 mips*-dec-mach3* targets.
5025
5026 2003-02-04 Michael Chastain <mec@shout.net>
5027
5028 * NEWS: Fix typo: sepcifying -> specifying.
5029
5030 2003-02-04 Michael Chastain <mec@shout.net>
5031
5032 * dwarfread.c: Add documentation on the state of dwarf-1,
5033 looking towards obsoletion.
5034
5035 2003-02-03 Michael Chastain <mec@shout.net>
5036
5037 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
5038 gdb/testsuite/gdb.c++/pr-1023.exp.
5039
5040 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5041
5042 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
5043 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
5044
5045 * utils.c (init_page_info): Delete reference to MPW in comments.
5046 * main.c (captured_main): Delete #ifdef MPW.
5047
5048 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5049
5050 * NEWS: Note that the m32r-*-elf* is obsolete.
5051 * monitor.c (monitor_expect): Obsolete reference to m32r.
5052 * configure.tgt: Mark m32r-*-elf* as obsolete.
5053 * MAINTAINERS: Mark m32k as obsolete.
5054 * m32r-rom.c: Obsolete file.
5055 * config/m32r/m32r.mt: Obsolete file.
5056 * config/m32r/tm-m32r.h: Obsolete file.
5057 * m32r-stub.c: Obsolete file.
5058 * m32r-tdep.c: Obsolete file.
5059
5060 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5061
5062 * NEWS: Mention that the z8k-zilog-none is obsolete.
5063 * MAINTAINERS: Mark z8k as obsolete.
5064 * configure.tgt: Obsolete the z8k-*-coff* target.
5065 * config/z8k/z8k.mt: Obsolete file.
5066 * config/z8k/tm-z8k.h: Obsolete file.
5067 * z8k-tdep.c: Obsolete file.
5068
5069 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5070
5071 * NEWS: Mention that the mn10200-elf is obsolete.
5072 * configure.tgt: Obsolete mn10200-*-* target.
5073 * breakpoint.c (update_breakpoints_after_exec): Update comment to
5074 mention that the mn10200 is obsolete.
5075 * breakpoint.h: Ditto.
5076 * MAINTAINERS: Mark the mn10200-elf as obsolete.
5077 * config/mn10200/mn10200.mt: Obsolete file.
5078 * config/mn10200/tm-mn10200.h: Obsolete file.
5079 * mn10200-tdep.c: Obsolete file.
5080
5081 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5082
5083 * MAINTAINERS: Mark h8500 as obsolete.
5084 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
5085 * findvar.c (value_from_register): Ditto.
5086 * h8500-tdep.c: Mark file as obsolete.
5087 * config/h8500/h8500.mt: Ditto.
5088 * config/h8500/tm-h8500.h: Ditto.
5089 * NEWS: Mention that h8500 is obsolete.
5090
5091 2003-02-04 David Carlton <carlton@math.stanford.edu>
5092
5093 * objfiles.c (allocate_objfile): Always set name. Add comment at
5094 start of function.
5095 * jv-lang.c (get_dynamics_objfile): Add comment.
5096
5097 2003-02-04 David Carlton <carlton@math.stanford.edu>
5098
5099 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
5100 * printcmd.c (build_address_symbolic): Replace uses of
5101 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
5102 SYMBOL_NAME, and asm_demangle.
5103 Update copyright.
5104
5105 2003-02-04 David Carlton <carlton@math.stanford.edu>
5106
5107 * linespec.c (decode_compound): Extract code into
5108 lookup_prefix_sym.
5109 (lookup_prefix_sym): New function.
5110
5111 2003-02-04 David Carlton <carlton@math.stanford.edu>
5112
5113 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
5114 FLOAT_COERCION_BADNESS.
5115 * gdbtypes.c (rank_one_type): Replace all uses of
5116 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
5117
5118 2003-02-04 Jim Blandy <jimb@redhat.com>
5119
5120 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
5121 section, let dwarf_macinfo_section point to it, not
5122 dwarf_loc_section.
5123
5124 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
5125
5126 Pointed out by Anton Blanchard <anton@samba.org>.
5127 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
5128 (ppc_linux_at_sigtramp_return_path): Use it.
5129
5130 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
5131
5132 * defs.h (streq): Add prototype.
5133 * utils.c (streq): New function.
5134
5135 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
5136 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
5137 * mdebugread.c (new_symbol): Likewise.
5138 * stabsread.c (define_symbol): Likewise.
5139 * coffread.c (process_coff_symbol): Likewise.
5140 * dwarfread.c (new_symbol): Likewise.
5141
5142 * minsyms.c (prim_record_minimal_symbol_and_info): Use
5143 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
5144 here.
5145 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
5146 SYMBOL_INIT_DEMANGLED_NAME.
5147 * objfiles.c: Include "hashtab.h".
5148 (allocate_objfile): Call htab_set_functions_ex for the
5149 demangled_names_hash.
5150 (free_objfile): Call htab_delete for the demangled_names_hash.
5151 * objfiles.h (struct htab): Add declaration.
5152 (struct objfile): Add demangled_names_hash.
5153 * symfile.c: Include "hashtab.h".
5154 (reread_symbols): Call htab_delete for the demangled_names_hash.
5155 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
5156 SYMBOL_NAME in the bcache.
5157 * symtab.c: Include "hashtab.h". Update comments.
5158 (create_demangled_names_hash, symbol_set_names): New functions.
5159 (symbol_find_demangled_name): New function, broken out from
5160 symbol_init_demangled_names.
5161 (symbol_init_demangled_names): Use it.
5162 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
5163 (SYMBOL_SET_NAMES): New macro.
5164 (symbol_set_names): Add prototype.
5165
5166 2003-02-03 Jim Blandy <jimb@redhat.com>
5167
5168 Use a single, consistent representation for an empty minimal
5169 symbol table in an objfile.
5170 * objfiles.c (terminate_minimal_symbol_table): New function.
5171 (allocate_objfile): Call it.
5172 * objfiles.h (terminate_minimal_symbol_table): New declaration.
5173 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
5174 non-NULL.
5175 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
5176 objfile has minimal symbols, compare minimal_symbol_count to zero,
5177 instead of comparing msymbols with NULL.
5178 * objfiles.c (have_minimal_symbols): Same.
5179 * solib-sunos.c (solib_add_common_symbols): Call
5180 terminate_minimal_symbol_table.
5181 * symfile.c (reread_symbols): Same.
5182
5183 2003-02-03 Kevin Buettner <kevinb@redhat.com>
5184
5185 * s390-tdep.c (s390_address_class_type_flags)
5186 (s390_address_class_type_flags_to_name)
5187 (s390_address_class_name_to_type_flags): New functions.
5188 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
5189 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
5190
5191 2003-02-03 Michael Snyder <msnyder@redhat.com>
5192
5193 * arm-tdep.c: Fix spell-o in comment.
5194
5195 2003-02-03 Michal Ludvig <mludvig@suse.cz>
5196
5197 * dwarf2cfi.c (pointer_encoding): Added new parameter.
5198 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
5199 error messages to contain BFD filename.
5200
5201 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
5202
5203 Fix PR gdb/742 gdb/743 gdb/877
5204 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
5205 (do_mixed_source_and_assembly): Use
5206 make_cleanup_ui_out_tuple_begin_end and
5207 make_cleanup_ui_out_tuple_begin_end.
5208 (do_mixed_source_and_assembly): Ditto.
5209 * thread.c (do_captured_list_thread_ids): Ditto.
5210 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
5211 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
5212 ui_out_tuple_end): Delete prototypes.
5213 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
5214 ui_out_list_end, ui_out_tuple_end): Delete.
5215
5216 From Kevin Buettner <kevinb@redhat.com>:
5217 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
5218 * ui-out.c (make_cleanup_ui_out_table_begin_end)
5219 (do_cleanup_table_end): New functions.
5220 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
5221 Use cleanups to invoke_ui_out_tuple_end().
5222 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
5223 * cli/cli-setshow.c (cmd_show_list): Use
5224 make_cleanup_ui_out_tuple_begin_end.
5225
5226 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5227
5228 * frame.c (frame_unwind_register): New function.
5229 (frame_unwind_unsigned_register): Use.
5230 (frame_unwind_signed_register): Use.
5231 (frame_read_register): New function.
5232 * frame.h (frame_unwind_register): Declare.
5233 (frame_read_register): Declare.
5234
5235 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
5236 and frame_unwind_register instead of read_memory, write_register
5237 and deprecated_write_register_bytes.
5238
5239 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5240
5241 * frame.h: Note that namelen can be negative.
5242 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
5243 NAME's length.
5244
5245 * NEWS: Mention that the d10v's `regs' command is deprecated.
5246 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
5247 (d10v_print_registers_info): New function.
5248 (show_regs): Call d10v_print_registers_info.
5249 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
5250
5251 2003-02-02 Mark Kettenis <kettenis@gnu.org>
5252
5253 * stack.c (print_frame_info): Restore call to annotate_frame_begin
5254 lost in the previous patch.
5255
5256 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5257
5258 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
5259 * stack.c (print_frame_info_base): Output complete FRAME tuple
5260 for synthesized frames.
5261
5262 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5263
5264 * mips-nat.c (zerobuf): Delete.
5265 (fetch_inferior_registers): Alloc local zerobuf.
5266 (fetch_core_registers): Alloc local zerobuf.
5267 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
5268 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
5269 * thread-db.c (thread_db_store_registers): Ditto.
5270 * sh-tdep.c (sh_do_register): Ditto.
5271 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
5272 * remote-sim.c (gdbsim_store_register): Ditto.
5273 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5274 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5275 * monitor.c (monitor_supply_register): Ditto.
5276 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
5277 * mips-nat.c (fetch_inferior_registers): Ditto.
5278 * m68klinux-nat.c (fetch_register): Ditto.
5279 * lynx-nat.c (fetch_inferior_registers): Ditto.
5280 (fetch_inferior_registers): Ditto.
5281 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
5282 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5283 (hpux_thread_store_registers): Ditto.
5284 * hppah-nat.c (fetch_register): Ditto.
5285 * hppab-nat.c (fetch_register): Ditto.
5286 * hppa-tdep.c (pa_register_look_aside): Ditto.
5287 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
5288 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
5289
5290 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5291
5292 * gdbarch.sh: Explictly specify all method levels. When a
5293 variable with an empty level, provide a non-multi-arch default.
5294 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
5295 * gdbarch.h: Re-generate.
5296 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
5297 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
5298
5299 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5300
5301 * defs.h (host_pointer_to_address): Delete declaration.
5302 (address_to_host_pointer): Delete declaration.
5303 * utils.c (host_pointer_to_address): Delete function.
5304 (address_to_host_pointer): Delete function.
5305 * procfs.c (procfs_address_to_host_pointer): New function.
5306 * procfs.c (proc_set_watchpoint): Use.
5307 (procfs_can_use_hw_breakpoint): Update comments.
5308 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
5309 (som_solib_add): Use.
5310 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
5311 * hppa-tdep.c (unwind_command): Use.
5312
5313 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5314
5315 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
5316 strlen d_name.
5317
5318 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
5319 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
5320 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
5321 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
5322 (define_symbol): Update.
5323 * symfile.c (generic_load): Remove references to nindy.
5324 * symtab.c: Remove references to nindy.
5325
5326 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5327
5328 * infcmd.c (print_float_info): Delete code conditional on
5329 FLOAT_INFO.
5330 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
5331 * config/m68k/nm-apollo68b.h: Ditto.
5332 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
5333 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
5334 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
5335
5336 2003-02-01 Mark Kettenis <kettenis@gnu.org>
5337
5338 * config/i386/tm-i386os9k.h: Removed.
5339
5340 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
5341 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
5342 they're identical to i[3456]86-*-sysv* now.
5343 * config/i386/i386v32.mh: Removed.
5344 * config/i386/xm-i386v32.h: Removed.
5345 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
5346
5347 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
5348
5349 * config/i386/i386dgux.mh: Removed.
5350 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
5351
5352 * configure.in: Fix typo.
5353 * configure: Regenerated.
5354
5355 2003-01-31 David Carlton <carlton@math.stanford.edu>
5356
5357 * dwarf2read.c (dwarf2_locate_sections): Set
5358 dwarf_ranges_section.
5359
5360 2003-01-31 Andrew Cagney <ac131313@redhat.com>
5361
5362 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
5363 * utils.c: Update comments documenting legitimate uses of PTR.
5364
5365 * utils.c: Re-indent.
5366
5367 * config/djgpp/fnchange.lst: Delete nindy files.
5368 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
5369 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
5370 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
5371 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
5372 * nindy-share/README, nindy-share/Onindy.c: Delete files.
5373 * nindy-tdep.c, nindy-share/Makefile: Delete files.
5374 * Makefile.in (init.c): Remove nindy references.
5375 (saber_gdb): Delete rule.
5376 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
5377 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
5378 and a68v-nat.c.
5379 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
5380 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
5381 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
5382 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
5383 nindy-share/stop.h.
5384 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
5385 * saber.suppress: Delete file.
5386
5387 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
5388
5389 * dbxread.c (stabs_data): New static variable.
5390 (fill_symbuf): Support an in-memory buffer for stabs data.
5391 (stabs_seek): New function.
5392 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
5393 (read_ofile_symtab): Use stabs_seek.
5394 (elfstab_build_psymtabs): Take an asection* instead of
5395 an offset and size. Relocate the stabs data if necessary.
5396 Save the section* for dbx_psymtab_to_symtab.
5397 * dwarf2read.c: Add section variables for each debug section.
5398 (dwarf2_locate_sections): Fill them in.
5399 (dwarf2_read_section): Take an asection* argument.
5400 Relocate the section contents if necessary.
5401 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
5402 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
5403 it to dwarf2_read_section.
5404 (dwarf2_build_frame_info): Update callers.
5405 * elfread.c (elf_symfile_read): Update call to
5406 elfstab_build_psymtabs.
5407 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
5408 (DBX_STAB_SECTION): New macro.
5409 * stabsread.h (elfstab_build_psymtabs): Update prototype.
5410 * symfile.c (symfile_dummy_outputs): New function.
5411 (symfile_relocate_debug_section): New function.
5412 * symfile.h (symfile_relocate_debug_section): Add prototype.
5413
5414 2003-01-31 Richard Henderson <rth@redhat.com>
5415
5416 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
5417 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
5418 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
5419 * alpha-tdep.c (alpha_register_name): Add "unique".
5420 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
5421 (ALPHA_UNIQUE_REGNUM): New.
5422 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
5423
5424 2003-01-31 Andrew Cagney <ac131313@redhat.com>
5425
5426 * README: Remove reference to Ericsson 1800 monitor.
5427 * Makefile.in (remote-es.o): Delete rule.
5428 (ALLDEPFILES): Delete remote-es.c.
5429 * remote-es.c: Delete file.
5430 * config/m68k/es1800.mt: Delete file.
5431 * config/djgpp/fnchange.lst: Update.
5432 * configure.tgt: Delete m68*-ericsson-* target.
5433
5434 2003-01-31 Adam Fedor <fedor@gnu.org>
5435
5436 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
5437 Remove duplicate/shadowing variable of same name.
5438
5439 2003-01-30 Jim Blandy <jimb@redhat.com>
5440
5441 * symfile.c (find_separate_debug_file): Assert that the objfile's
5442 directory name we compute ends with a slash, and then assume that
5443 that's so everywhere we use it.
5444
5445 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
5446
5447 * valops.c (value_assign): Flush frame cache after stores to memory
5448 also.
5449
5450 2003-01-30 Andrew Cagney <ac131313@redhat.com>
5451
5452 * Makefile.in (mon960-rom.o): Delete rule.
5453 * mon960-rom.c: Delete file.
5454
5455 2003-01-30 Andrew Cagney <ac131313@redhat.com>
5456
5457 * d10v-tdep.c: Include "frame-unwind.h".
5458 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
5459 list.
5460 (next_addr, uses_frame): Delete.
5461 (struct d10v_unwind_cache): Define.
5462 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
5463 Use info instead of next_addr and uses_frame globals.
5464 (d10v_frame_init_saved_regs): Delete function.
5465 (d10v_init_extra_frame_info): Delete function.
5466 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
5467 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
5468 init_frame_pc or frame_saved_pc.
5469 (d10v_pop_frame): Delete function.
5470 (do_d10v_pop_frame): Delete function.
5471 (d10v_frame_chain): Delete function.
5472 (d10v_frame_chain_valid): Delete function.
5473 (d10v_frame_pc_unwind): New function.
5474 (d10v_frame_id_unwind): New function.
5475 (saved_regs_unwinder): New function.
5476 (d10v_frame_register_unwind): New function.
5477 (d10v_frame_pop): New function.
5478 (d10v_frame_unwind): New variable.
5479 (d10v_frame_p): New function.
5480 (d10v_frame_saved_pc): Delete function.
5481 * Makefile.in (d10v-tdep.o): Update dependencies.
5482
5483 2003-01-30 J. Brobecker <brobecker@gnat.com>
5484
5485 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
5486 causing some regressions due to a change in the default value
5487 for this macro.
5488
5489 2003-01-29 Richard Henderson <rth@redhat.com>
5490 Elena Zannoni <ezannoni@redhat.com>
5491 Daniel Jacobowitz <drow@mvista.com>
5492
5493 Fix PR gdb/961.
5494 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
5495 variables.
5496 (RANGES_SECTION): New.
5497 (dwarf_ranges_buffer): New variable.
5498 (struct comp_unit_head): Add member "die".
5499 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
5500 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
5501 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
5502 (dwarf2_locate_sections): Likewise.
5503 (dwarf2_build_psymtabs): Read .debug_ranges.
5504 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
5505 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
5506 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
5507 Look for DW_AT_ranges and return the bounding box.
5508
5509 2003-01-29 Brian Ford <ford@vss.fsi.com>
5510
5511 * win32-nat.c (cygwin_pid): Removed as unused.
5512 (child_attach): Try fall back to Cygwin pid.
5513
5514 2003-01-29 Jim Blandy <jimb@redhat.com>
5515
5516 * objfiles.h (struct objfile): Doc fix.
5517
5518 2003-01-29 Andrew Cagney <ac131313@redhat.com>
5519
5520 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
5521 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
5522 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
5523 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
5524 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
5525 (FRAME_SAVED_PC): Change to a function with predicate.
5526 * gdbarch.h, gdbarch.c: Re-generate.
5527
5528 2003-01-28 Andrew Cagney <ac131313@redhat.com>
5529
5530 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
5531
5532 * complaints.c (complain): Delete function.
5533 * complaints.h (struct deprecated_complaint): Delete definition.
5534 (complain): Delete declaration.
5535
5536 2003-01-28 Kevin Buettner <kevinb@redhat.com>
5537
5538 * mips-tdep.c (mips_init_extra_frame_info): Return early for
5539 dummy frames.
5540
5541 2003-01-27 Andrew Cagney <ac131313@redhat.com>
5542
5543 * sentinel-frame.h, sentinel-frame.c: New files.
5544 * Makefile.in (frame.o): Update dependencies.
5545 (SFILES): Add sentinel-frame.c.
5546 (sentinel_frame_h): Define.
5547 (COMMON_OBS): Add sentinel-frame.o.
5548 (sentinel-frame.o): Specify dependencies.
5549 * frame.c: Include "sentinel-frame.h".
5550 (frame_register_unwind): Rewrite assuming that there is always a a
5551 ->next frame.
5552 (frame_register, generic_unwind_get_saved_register): Ditto.
5553 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
5554 (create_sentinel_frame, unwind_to_current_frame): New functions.
5555 (get_current_frame): Rewrite using create_sentinel_frame and
5556 unwind_to_current_frame. When possible, always create a frame.
5557 (create_new_frame): Set next to the sentinel frame.
5558 (get_next_frame): Rewrite. Don't go below the level 0 frame.
5559 (deprecated_update_frame_pc_hack): Update the next frame's PC and
5560 ID cache when necessary.
5561 (frame_saved_regs_id_unwind): Use frame_relative_level.
5562 (deprecated_generic_get_saved_register): Use frame_relative_level,
5563 get_frame_saved_regs, get_frame_pc, get_frame_base and
5564 get_next_frame.
5565 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
5566 frame_register.
5567
5568 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
5569
5570 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
5571
5572 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
5573
5574 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
5575 (maintenance_set_profile_cmd): Use error () instead of warning ().
5576
5577 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
5578
5579 * configure.in: Check that -pg works if using --enable-profiling.
5580 Check for monstartup and _mcleanup regardless of --enable-profiling.
5581 * maint.c: Check for monstartup and _mcleanup before using them.
5582 * config.in: Regenerated.
5583 * configure: Regenerated.
5584
5585 2003-01-24 Nick Clifton <nickc@redhat.com>
5586
5587 * Add sh2e support:
5588
5589 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
5590
5591 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
5592 (sh2e_show_regs): New.
5593 (sh_gdbarch_init): Handle bfd_mach_sh2e.
5594 * config/sh/tm-sh.h: Added sh2e to comments.
5595
5596 2003-01-23 Jim Blandy <jimb@redhat.com>
5597
5598 * symfile.c (syms_from_objfile): Don't print the "(no debugging
5599 symbols found)" message here; we haven't checked for a separate
5600 debug info file yet, so we don't know yet.
5601 (symbol_file_add_with_addrs_or_offsets): Print it here, after
5602 we've looked everywhere. Also, there's no need to print a special
5603 message when we're loading the separate debug info file: the one
5604 symbol_file_add prints is fine.
5605
5606 2003-01-23 Alexander Larsson <alexl@redhat.com>
5607 Jim Blandy <jimb@redhat.com>
5608
5609 Add support for executables whose debug info has been separated
5610 out into a separate file, leaving only a link behind.
5611 * objfiles.h (struct objfile): New fields: separate_debug_objfile
5612 and separate_debug_objfile_backlink.
5613 (put_objfile_before): New declaration.
5614 * symfile.c: #include "filenames.h".
5615 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
5616 debug info in a separate file, read that, too. Save the addrs
5617 argument, so we can use it again to read the separated debug info;
5618 syms_from_objfile modifies the table we pass it.
5619 (reread_symbols): After re-reading an objfile, call
5620 reread_separate_symbols to refresh its separate debug info
5621 objfile, if it has one.
5622 (reread_separate_symbols, find_separate_debug_file,
5623 get_debug_link_info, separate_debug_file_exists): New functions.
5624 (debug_file_directory): New global var.
5625 (_initialize_symfile): Initialize debug_file_directory, and
5626 provide the new `set debug-file-directory' command to let the user
5627 change it.
5628 * objfiles.c (free_objfile): If this objfile has its debug info in
5629 a separate objfile, free that one too. If this is itself a
5630 separate debug info objfile, clear our parent's backlink.
5631 (put_objfile_before): New function.
5632 * utils.c (gnu_debuglink_crc32): New function.
5633 * defs.h (gnu_debuglink_crc32): New declaration.
5634 * Makefile.in (symfile.o): Note dependency on "filenames.h".
5635 * configure.in: Handle --with-separate-debug-dir config option.
5636 * acinclude.m4 (AC_DEFINE_DIR): New macro.
5637 * acconfig.h (DEBUGDIR): New macro.
5638 * configure, aclocal.m4, config.in: Regenerated.
5639
5640 2003-01-22 Jim Blandy <jimb@redhat.com>
5641
5642 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
5643 like the old symbol_file_add, but taking new arguments: you can
5644 now pass in either a `struct section_addr_info' list to say where
5645 each section is loaded, or a `struct section_offsets' table. Pass
5646 these new arguments through to syms_from_objfile as appropriate.
5647 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
5648 with the appropriate quiescent values for the new arguments.
5649
5650 * symfile.c: #include "gdb_assert.h".
5651 (syms_from_objfile): Add the ability to pass in a section offset
5652 table directly, as an alternative to the section_addr_info table.
5653 Document arguments better.
5654 (symbol_file_add): Pass extra arguments to syms_from_objfile.
5655 * symfile.h (syms_from_objfile): Update declaration.
5656 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
5657 syms_from_objfile.
5658 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
5659
5660 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
5661
5662 Original patch by Tom Tromey <tromey@cygnus.com> and
5663 Jason Molenda <jmolenda@apple.com>.
5664 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
5665 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
5666 * NEWS: Mention profiling.
5667 * configure.in (--enable-gdbtk): Fix typo.
5668 (--enable-profiling): New. Set PROFILE_CFLAGS.
5669 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
5670 Fill in function.
5671 (profiling_state): New variable.
5672 (mcleanup_wrapper): New function.
5673 (_initialize_maint): Remove NOTYET, fix call to
5674 add_setshow_boolean_cmd for "maint set profile".
5675 * configure: Regenerated.
5676
5677 2003-01-21 Martin M. Hunt <hunt@redhat.com>
5678
5679 * Makefile.in (install-gdbtk): Install PNG images too.
5680
5681 2003-01-21 Andrew Cagney <ac131313@redhat.com>
5682
5683 * exec.c (text_start): Delete global variable.
5684 (exec_file_attach): Make text_start local to the function.
5685 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
5686 * valops.c (hand_function_call): Delete code that handles
5687 BEFORE_TEXT_END and AFTER_TEXT_END.
5688 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
5689 of CALL_DUMMY_LOCATION.
5690 * gdbarch.c: Regenerate.
5691 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
5692 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
5693 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
5694 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
5695 (text_end): Delete extern declaration.
5696
5697 2003-01-21 Andrew Cagney <ac131313@redhat.com>
5698
5699 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
5700 * blockframe.c (backtrace_below_main): Move to "frame.c".
5701 (frame_chain_valid): Delete check for backtrace_below_main.
5702 (_initialize_blockframe): Delete initialization, move ``set
5703 backtrace-below-main'' command to "frame.c".
5704 (do_flush_frames_sfunc): Delete function.
5705 * frame.c: Include "command.h" and "gdbcmd.h".
5706 (frame_type_from_pc): New function.
5707 (create_new_frame): Use frame_type_from_pc.
5708 (legacy_get_prev_frame): New function.
5709 (get_prev_frame): Rewrite. When an old style frame, call
5710 legacy_get_prev_frame. Otherwize, unwind the PC first.
5711 (_initialize_frame): Add ``set backtrace-below-main'' command.
5712 * Makefile.in (frame.o): Update dependencies.
5713
5714 2003-01-19 Andrew Cagney <ac131313@redhat.com>
5715
5716 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
5717 DEPRECATED_REGISTERS_INFO.
5718
5719 2003-01-19 Andrew Cagney <ac131313@redhat.com>
5720
5721 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
5722 Maintainers'. Update `Various Maintainers'.
5723
5724 2003-01-19 Andrew Cagney <ac131313@redhat.com>
5725
5726 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
5727 * gdbarch.sh (POP_FRAME): Change to function with predicate.
5728 Suppress actual parameters when `-'.
5729 * gdbarch.h, gdbarch.c: Regenerate.
5730
5731 2003-01-19 Andrew Cagney <ac131313@redhat.com>
5732
5733 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
5734 code handling dummy frames.
5735
5736 2003-01-19 Andrew Cagney <ac131313@redhat.com>
5737
5738 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
5739 (struct frame_unwind): Add field pop.
5740 * frame.h (frame_pop): Declare.
5741 * frame.c (frame_saved_regs_pop): New function.
5742 (trad_frame_unwinder): Add frame_saved_regs_pop.
5743 (frame_pop): New function.
5744 * dummy-frame.c (dummy_frame_pop): New function.
5745 (discard_innermost_dummy): New function.
5746 (generic_pop_dummy_frame): Use discard_innermost_dummy.
5747 (dummy_frame_unwind): Add dummy_frame_pop.
5748 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
5749 * valops.c (hand_function_call): Ditto.
5750 * stack.c (return_command): Ditto.
5751
5752 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5753
5754 * cris-tdep.c: Fix function declaration indentation.
5755 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
5756 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
5757 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
5758 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
5759 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
5760 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
5761
5762 2003-01-18 Michael Chastain <mec@shout.net>
5763
5764 * README (Unpacking and Installation -- quick overview):
5765 Warn against ".../gdb-5.3/gdb/configure".
5766
5767 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5768
5769 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
5770 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5771 (struct frame_unwind): Declare opaque.
5772 (dummy_frame_p): Declare function.
5773 * dummy-frame.c (dummy_frame_id_unwind): Make static.
5774 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5775 * dummy-frame.c: Include "frame-unwind.h".
5776 (dummy_frame_p): New function.
5777 (dummy_frame_unwind): New variable.
5778 * frame.c: Include "frame-unwind.h".
5779 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
5780 to use the new unwind field.
5781 (set_unwind_by_pc): Delete function.
5782 (create_new_frame, get_prev_frame): Set unwind field using
5783 frame_unwind_find_by_pc.
5784 (trad_frame_unwind, trad_frame_unwinder): New variables.
5785 * frame.h (trad_frame_unwind): Declare variable.
5786 (frame_id_unwind_ftype): Delete declaration.
5787 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
5788 (struct frame_unwind): Declare opaque.
5789 (struct frame_info): Replace the fields id_unwind, pc_unwind and
5790 register_unwind with a single unwind pointer.
5791 * frame-unwind.h, frame-unwind.c: New files.
5792 * Makefile.in (SFILES): Add frame-unwind.c.
5793 (frame_unwind_h): Define.
5794 (COMMON_OBS): Add frame-unwind.o.
5795 (frame-unwind.o): Specify dependencies.
5796 (frame.o, dummy-frame.o): Update dependencies.
5797
5798 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5799
5800 * ada-valprint.c: Eliminate PTR.
5801 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
5802 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
5803 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
5804 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
5805 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
5806 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
5807 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
5808
5809 2003-01-17 Andrew Cagney <ac131313@redhat.com>
5810
5811 * main.c (captured_main): Don't use PTR.
5812 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
5813 * gdbtypes.c (lookup_primitive_typename): Ditto.
5814 (lookup_struct_elt_type): Ditto.
5815 * f-valprint.c (info_common_command): Ditto.
5816 (list_all_visible_commons): Ditto.
5817 * jv-typeprint.c (java_type_print_base): Ditto.
5818
5819 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
5820 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
5821 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
5822 i386-interix-nat.c and i386-interix-tdep.c. Rename
5823 m68klinux-nat.c and m68klinux-tdep.c. Rename
5824 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
5825 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
5826 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
5827 * main.c (captured_main): Use xfree, not free.
5828
5829 2003-01-16 Andrew Cagney <ac131313@redhat.com>
5830
5831 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
5832 ID back using a parameter.
5833 * frame.c (frame_id_unwind): Update call.
5834 (frame_saved_regs_id_unwind): Update.
5835 * dummy-frame.c (dummy_frame_id_unwind): Update function.
5836 * dummy-frame.h (struct frame_id): Add opaque declaration.
5837 (dummy_frame_id_unwind): Update declaration.
5838
5839 2003-01-15 Andrew Cagney <ac131313@redhat.com>
5840
5841 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
5842
5843 2003-01-15 Stephen P. Smith <ischis2@cox.net>
5844
5845 * MAINTAINERS (Stephen P. Smith): Updated email address.
5846
5847 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
5848
5849 Fix PR gdb/898
5850 * breakpoint.c (until_break_command): Add new argument. Use it to
5851 decide whether to stop only at the current frame or not.
5852 * breakpoint.h (until_break_command): Update prototype.
5853 * infcmd.c (until_command): Add new argument to until_break_command
5854 call.
5855 (advance_command): New function.
5856 (_initialize_infcmd): Update help string for 'until' command.
5857 Add new 'advance' command.
5858
5859 2003-01-14 David Carlton <carlton@math.stanford.edu>
5860
5861 * linespec.c (decode_line_1): Normalize comments.
5862 (set_flags): Ditto.
5863 (locate_first_half): Ditto.
5864 (decode_compound): Ditto.
5865 (symtab_from_filename): Ditto.
5866 (decode_all_digits): Ditto.
5867 (decode_dollar): Ditto.
5868 (find_methods): Ditto.
5869 (find_toplevel_char): Ditto.
5870
5871 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5872
5873 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
5874 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
5875 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
5876 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
5877 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
5878 * language.c, language.h, m32r-tdep.c: Update copyright.
5879 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
5880 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
5881 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
5882 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
5883 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
5884 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
5885
5886 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
5887
5888 * stabsread.h (process_later, resolve_cfront_continuation):
5889 Obsolete.
5890 Update copyright years.
5891 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
5892 Update copyright year.
5893 * dbxread.c(struct cont_elem): Obsolete.
5894 (process_later, process_now): Obsolete functions.
5895 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
5896 Update copyright year.
5897 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
5898 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
5899 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
5900 (parse_partial_symbols): Obsolete cfront support.
5901 * stabsread.c
5902 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
5903 macros.
5904 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
5905 read_cfront_baseclasses, read_cfront_member_functions,
5906 resolve_cfront_continuation,read_cfront_static_fields,
5907 copy_cfront_struct_fields): Obsolete functions.
5908 (define_symbol, read_one_struct_field): Obsolete cfront support.
5909 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
5910 Update Copyright year.
5911
5912 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
5913
5914 * stack.c (print_frame_info, print_stack_frame_base_stub,
5915 print_stack_frame_base, show_and_print_stack_frame_stub,
5916 show_and_print_stack_frame, print_only_stack_frame_stub,
5917 print_only_stack_frame): Delete functions.
5918 (print_stack_frame_stub): Call print_frame_info instead of
5919 print_frame_info_base.
5920 (print_frame_info_base): Rename to print_frame_info.
5921 (backtrace_command_1): Call print_frame_info, instead of
5922 print_frame_info_base.
5923 (current_frame_command): Call print_stack_frame, instead of
5924 print_only_stack_frame.
5925 (frame_command): Call print_stack_frame, instead of
5926 show_and_print_stack_frame.
5927 (up_command): Ditto.
5928 (down_command): Ditto.
5929 * frame.h (print_only_stack_frame): Delete prototype.
5930 * infrun.c (normal_stop): Call print_stack_frame, instead of
5931 show_and_print_stack_frame.
5932 * thread.c (info_threads_command): Call print_stack_frame, instead
5933 of print_only_stack_frame.
5934
5935 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5936
5937 * README (Graphical interface to GDB): Update URL. Point at
5938 gdb/links/.
5939
5940 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
5941 version match.
5942
5943 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5944
5945 * symtab.c (find_pc_sect_line): Don't consider end-of-function
5946 lines.
5947
5948 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5949
5950 * thread-db.c (attach_thread): Prototype.
5951 (struct private_thread_info): Remove lwpid. Add thread handle (th),
5952 thread information (ti), and valid flags (th_valid, ti_valid).
5953 (attach_thread): Move target_pid_to_str call to after the thread
5954 is added to GDB's list. Initialize the cache.
5955 (thread_get_info_callback, thread_db_map_id2thr)
5956 (thread_db_get_info): New functions.
5957 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
5958 (thread_db_store_registers, thread_db_thread_alive)
5959 (thread_db_get_thread_local_address): Use them.
5960 (thread_db_pid_to_str): Likewise. Return "Missing" instead
5961 of calling error() for threads in unknown state.
5962
5963 (clear_lwpid_callback): New function.
5964 (thread_db_resume): Use it to clear the cache.
5965
5966 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5967
5968 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
5969 (resume_callback): Remove dead code.
5970
5971 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5972
5973 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
5974 predicate.
5975 * gdbarch.h, gdbarch.c: Regenerate.
5976 * stack.c (frame_info): Only initialize the saved registers when
5977 FRAME_INIT_SAVED_REGS_P.
5978 * frame.c (frame_saved_regs_register_unwind): Assert
5979 FRAME_INIT_SAVED_REGS_P.
5980 (deprecated_generic_get_saved_register): Ditto.
5981
5982 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5983
5984 * source.c (openp): Squelch warning about "filename".
5985
5986 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5987
5988 * source.c (openp): If the file does not exist don't necessarily
5989 search the path.
5990
5991 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5992
5993 Fix PR gdb/872.
5994 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
5995 (integer_types_same_name_p): New function.
5996 (rank_one_type): Use it.
5997 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
5998
5999 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6000
6001 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
6002 variables.
6003 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
6004 * configure.in: Add --with-sysroot.
6005 * configure: Regenerated.
6006 * main.c (gdb_sysroot): New variable.
6007 (captured_main): Initialize gdb_sysroot.
6008 * defs.h (gdb_sysroot): New extern declaration.
6009 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
6010
6011 2003-01-12 Michael Chastain <mec@shout.net>
6012
6013 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
6014
6015 2003-01-12 Michael Chastain <mec@shout.net>
6016
6017 * top.c (print_gdb_version): Bump copyright year to 2003.
6018
6019 2003-01-12 David Carlton <carlton@bactrian.org>
6020
6021 * linespec.c (symtab_from_filename): Rename variable 's' to
6022 'file_symtab'.
6023
6024 2003-01-12 Andrew Cagney <ac131313@redhat.com>
6025
6026 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
6027 dummy frame.
6028 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
6029
6030 2003-01-12 Andrew Cagney <ac131313@redhat.com>
6031
6032 * d10v-tdep.c: Include "gdb_assert.h".
6033 (d10v_store_return_value): Rewrite to match current interface.
6034 (d10v_extract_struct_value_address): Ditto.
6035 (d10v_extract_return_value): Ditto.
6036 (d10v_gdbarch_init): Set store_restore_value,
6037 extract_struct_value_address and extract_return_value.
6038
6039 2003-01-12 J. Brobecker <brobecker@gnat.com>
6040
6041 * hpread.c (set_namestring): New procedure replacing the
6042 SET_NAMESTRING macro.
6043 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
6044 by calls to set_namestring.
6045
6046 2003-01-11 J. Brobecker <brobecker@gnat.com>
6047
6048 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
6049 a compilation warning.
6050 (hpread_process_one_debug_symbol): Likewise.
6051
6052 2003-01-10 David Carlton <carlton@math.stanford.edu>
6053
6054 * linespec.c (decode_line_1): Rename variable 's' to
6055 'file_symtab'.
6056 (decode_all_digits): Rename argument 's' to 'file_symtab'.
6057 (decode_dollar): Ditto.
6058 (decode_variable): Ditto.
6059 (symbol_found): Ditto.
6060
6061 2003-01-09 Michael Chastain <mec@shout.net>
6062
6063 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
6064
6065 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
6066
6067 * win32-nat.c (set_process_privilege): New function.
6068 (child_attach): Call set_process_privilege() to enable the
6069 SE_DEBUG_NAME user privilege if available in process token.
6070
6071 2003-01-10 J. Brobecker <brobecker@gnat.com>
6072
6073 * hpread.c (hpread_process_one_debug_symbol): Fix a small
6074 compilation error in the previous revision.
6075
6076 2003-01-09 David Carlton <carlton@math.stanford.edu>
6077
6078 * linespec.c: Update copyright.
6079
6080 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
6081
6082 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
6083 than inferior_ptid.
6084 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
6085
6086 2003-01-09 Andrew Cagney <ac131313@redhat.com>
6087
6088 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
6089 Update comments.
6090 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
6091 (frame_saved_regs_zalloc): Update.
6092 (frame_saved_regs_register_unwind): Update.
6093 (create_new_frame): Update.
6094 (get_prev_frame): Update.
6095 (frame_extra_info_zalloc): Update.
6096 (deprecated_get_frame_saved_regs): Update.
6097 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
6098 * cris-tdep.c: Update comment.
6099
6100 * somsolib.h: Fix function indentation.
6101 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
6102 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
6103 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
6104 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
6105 * somsolib.c, inftarg.c: Remove assignment in if conditional.
6106
6107 * infrun.c (follow_fork): Use ISO C definition.
6108 * expprint.c (print_subexp): Use xfree instead of free.
6109 * charset.c: Include "gdb_string.h" instead of <string.h>.
6110 (register_iconv_charsets): Use ISO C definition.
6111 (host_charset, target_charset): Ditto.
6112 * Makefile.in (charset.o): Update dependencies.
6113 (mi-cmd-env.o): Update dependencies.
6114
6115 2003-01-08 Andrew Cagney <cagney@redhat.com>
6116
6117 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
6118 get_frame_base.
6119
6120 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6121
6122 * gdb_mbuild.sh: Add --keep option. When specified, keep the
6123 build directories. Save edited gdb output in Mbuild.log. If a
6124 build fails, remove any final GDB executable.
6125
6126 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6127
6128 * gdb_mbuild.sh: Edit the output of `maint print architecture'
6129 replacing hex constants with function names and stripping leading
6130 file name directory prefixes.
6131
6132 2003-01-08 Andrew Cagney <cagney@redhat.com>
6133
6134 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
6135 get_frame_base.
6136
6137 2003-01-08 David Carlton <carlton@math.stanford.edu>
6138
6139 * linespec.c (decode_line_1): Move code into decode_variable.
6140 (decode_variable): New function.
6141
6142 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6143
6144 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
6145
6146 2003-01-08 Andrew Cagney <cagney@redhat.com>
6147
6148 * cris-tdep.c (cris_frame_init_saved_regs): Use
6149 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
6150 saved_regs buffer.
6151 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6152 (sh64_nofp_frame_init_saved_regs): Ditto.
6153 (sh_fp_frame_init_saved_regs): Ditto.
6154 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
6155 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6156 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6157 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6158
6159 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
6160
6161 * minsyms.c (lookup_minimal_symbol): Update comment.
6162 (lookup_minimal_symbol_text): Update comment. Use the hash table.
6163 (lookup_minimal_symbol_solib_trampoline): Likewise.
6164
6165 2003-01-08 Andrew Cagney <cagney@redhat.com>
6166
6167 * d10v-tdep.c (d10v_init_extra_frame_info): Use
6168 frame_relative_level.
6169
6170 * alpha-tdep.c: Use get_frame_extra_info.
6171 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6172 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
6173 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6174 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
6175
6176 * alpha-tdep.c: Use get_next_frame.
6177 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6178 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6179 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
6180 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
6181 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
6182 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
6183 * xstormy16-tdep.c: Ditto.
6184
6185 2003-01-07 Andrew Cagney <cagney@redhat.com>
6186
6187 * alpha-tdep.c: Use get_frame_base.
6188 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6189 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6190 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6191 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6192 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
6193 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6194 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
6195 * config/sparc/tm-sparc.h: Ditto.
6196
6197 2003-01-07 Andrew Cagney <cagney@redhat.com>
6198
6199 * frame.c (deprecated_get_frame_context): New function.
6200 (deprecated_set_frame_context): New function.
6201 * frame.h (deprecated_get_frame_context): Declare.
6202 (deprecated_set_frame_context): Declare.
6203 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
6204 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
6205
6206 2003-01-07 Andrew Cagney <cagney@redhat.com>
6207
6208 * frame.c (deprecated_set_frame_next_hack): New function.
6209 (deprecated_set_frame_prev_hack): New function.
6210 * frame.h (deprecated_set_frame_next_hack): Declare.
6211 (deprecated_set_frame_prev_hack): Declare.
6212 * mcore-tdep.c (analyze_dummy_frame): Use
6213 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
6214 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6215
6216 2003-01-07 David Carlton <carlton@math.stanford.edu>
6217
6218 * linespec.c (decode_line_1): Move code into decode_dollar.
6219 (decode_dollar): New function.
6220
6221 2003-01-07 Andrew Cagney <cagney@redhat.com>
6222
6223 * arm-tdep.c (arm_init_extra_frame_info): Use
6224 deprecated_update_frame_base_hack.
6225 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
6226 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6227 (fix_frame_pointer): Ditto.
6228 (mn10300_analyze_prologue): Ditto.
6229
6230 2003-01-07 Andrew Cagney <cagney@redhat.com>
6231
6232 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
6233 extra_info using frame_extra_info_zalloc.
6234 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6235 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
6236 (sh64_init_extra_frame_info): Ditto.
6237 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
6238 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
6239 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6240 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
6241 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
6242 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
6243 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
6244 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
6245 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
6246 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
6247 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6248 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
6249
6250 * mn10300-tdep.c (analyze_dummy_frame): Use
6251 deprecated_set_frame_extra_info_hack.
6252 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6253
6254 2003-01-07 J. Brobecker <brobecker@gnat.com>
6255
6256 * mdebugread.c (parse_symbol): Skip stProc entries which storage
6257 class is not scText. These do not define "real" procedures.
6258 (parse_partial_symbols): Likewise.
6259
6260 2003-01-06 Michael Snyder <msnyder@redhat.com>
6261
6262 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
6263
6264 2003-01-06 Andrew Cagney <ac131313@redhat.com>
6265
6266 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
6267 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
6268 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
6269 deprecated_frame_xmalloc_with_cleanup.
6270 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
6271 deprecated_frame_xmalloc.
6272 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
6273 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
6274
6275 2003-01-06 Andrew Cagney <cagney@redhat.com>
6276
6277 * x86-64-linux-tdep.c: Include "osabi.h".
6278 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
6279
6280 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
6281
6282 2003-01-06 Andrew Cagney <cagney@redhat.com>
6283
6284 * MAINTAINERS (Target Instruction Set Architectures): Update
6285 arm-elf. Can be built with -Werror, has been multiarched.
6286
6287 * value.h (unpack_long): Make buffer parameter constant.
6288 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
6289 * scm-lang.h (scm_parse): Ditto.
6290 * defs.h (extract_typed_address, extract_address): Ditto.
6291 (extract_long_unsigned_integer): Ditto.
6292 * inferior.h (unsigned_pointer_to_address): Ditto.
6293 (signed_pointer_to_address): Ditto.
6294 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
6295 * gdbarch.h, gdbarch.c: Regenerate.
6296 * findvar.c (extract_long_unsigned_integer): Update.
6297 (extract_address): Update.
6298 (extract_typed_address): Update.
6299 (unsigned_pointer_to_address): Update.
6300 * values.c (unpack_long): Update.
6301 (unpack_double): Update.
6302 (unpack_pointer): Update.
6303 (unpack_field_as_long): Update.
6304 * d10v-tdep.c (d10v_pointer_to_address): Update.
6305 * avr-tdep.c (avr_pointer_to_address): Update.
6306 * scm-lang.c (scm_unpack): Update.
6307 * findvar.c (signed_pointer_to_address): Update.
6308
6309 2003-01-06 Michal Ludvig <mludvig@suse.cz>
6310
6311 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
6312 since it is in i386-tdep.c.
6313
6314 2003-01-06 J. Brobecker <brobecker@gnat.com>
6315
6316 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
6317 failure introduced in the previous change.
6318
6319 2003-01-05 Michael Chastain <mec@shout.net>
6320
6321 * README: Remove references to deleted remote-*.c files:
6322 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
6323 remote-nrom.c, remote-os9k.c, remote-udi.c.
6324
6325 2003-01-05 Mark Kettenis <kettenis@gnu.org>
6326
6327 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
6328 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
6329 i386_get_longjmp_target.
6330
6331 2003-01-05 Andrew Cagney <ac131313@redhat.com>
6332
6333 * arm-tdep.c (prologue_cache): Change to a pointer.
6334 (_initialize_arm_tdep): Allocate prologue_cache.
6335 (check_prologue_cache): Update.
6336 (save_prologue_cache): Update.
6337 (arm_gdbarch_init): Update.
6338
6339 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6340
6341 * stabsread.c (update_method_name_from_physname): Call complaint()
6342 instead of error.
6343
6344 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6345
6346 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
6347 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
6348 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
6349
6350 * blockframe.c: Include "gdbcmd.h" and "command.h".
6351 (backtrace_below_main): New variable.
6352 (file_frame_chain_valid, func_frame_chain_valid)
6353 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
6354 (generic_func_frame_chain_valid): Remove functions.
6355 (frame_chain_valid, do_flush_frames_sfunc): New functions.
6356 (_initialize_blockframe): New function.
6357 * Makefile.in (blockframe.o): Update dependencies.
6358 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
6359 comment. Call frame_chain_valid ().
6360 * frame.h: Remove old prototypes. Add prototype for
6361 frame_chain_valid and update comments to match.
6362 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
6363 Remove old comment.
6364 * gdbarch.h: Regenerated.
6365 * gdbarch.c: Regenerated.
6366
6367 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6368 set_gdbarch_frame_chain_valid.
6369 * avr-tdep.c (avr_gdbarch_init): Likewise.
6370 * cris-tdep.c (cris_gdbarch_init): Likewise.
6371 * frv-tdep.c (frv_gdbarch_init): Likewise.
6372 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
6373 * i386-tdep.c (i386_svr4_init_abi): Likewise.
6374 (i386_nw_init_abi): Likewise.
6375 (i386_gdbarch_init): Likewise.
6376 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
6377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6378 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6379 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
6380 * mips-tdep.c (mips_gdbarch_init): Likewise.
6381 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6382 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
6383 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6384 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6385 * s390-tdep.c (s390_gdbarch_init): Likewise.
6386 * sh-tdep.c (sh_gdbarch_init): Likewise.
6387 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6388 * v850-tdep.c (v850_gdbarch_init): Likewise.
6389 * vax-tdep.c (vax_gdbarch_init): Likewise.
6390 * x86-64-tdep.c (x86_64_init_abi): Likewise.
6391
6392 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
6393 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
6394 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
6395 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
6396 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
6397 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
6398 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
6399 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
6400
6401 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6402
6403 * Makefile.in (acconfig_h): Remove incorrect macro.
6404 (config_h): Define.
6405 (osabi.o): Update dependencies.
6406 * configure.tgt: Set gdb_osabi based on target triplet.
6407 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
6408 * configure: Regenerated.
6409 * config.in: Regenerated.
6410 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
6411 (GDB_OSABI_DEFAULT): Define if not already defined.
6412 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
6413 (set_osabi_string): New variables.
6414 (gdbarch_register_osabi): Add new OS ABI to
6415 gdb_osabi_available_names.
6416 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
6417 (set_osabi, show_osabi): New functions.
6418 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
6419
6420 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6421
6422 * arch-utils.c (gdbarch_info_init): Set osabi to
6423 GDB_OSABI_UNINITIALIZED.
6424 * gdbarch.sh: Add osabi to struct gdbarch and to struct
6425 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
6426 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
6427 * gdbarch.c: Regenerated.
6428 * gdbarch.h: Regenerated.
6429 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
6430 there's no BFD.
6431 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
6432 * osabi.h (enum gdb_osabi): Move to defs.h.
6433 (gdbarch_init_osabi): Update prototype.
6434 * defs.h (enum gdb_osabi): Moved here.
6435 * Makefile.in: Update dependencies.
6436
6437 * alpha-tdep.h: Don't include "osabi.h".
6438 (struct gdbarch_tdep): Remove osabi member.
6439 * alpha-tdep.c: Include "osabi.h".
6440 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6441 iterate over arches. Update call to gdbarch_init_osabi.
6442 (alpha_dump_tdep): Don't dump osabi.
6443 * alpha-linux-tdep.c: Include "osabi.h".
6444 * alpha-osf1-tdep.c: Include "osabi.h".
6445 * alphafbsd-tdep.c: Include "osabi.h".
6446 * alphanbsd-tdep.c: Include "osabi.h".
6447
6448 * arm-tdep.h: Don't include "osabi.h".
6449 (struct gdbarch_tdep): Remove osabi member.
6450 * arm-tdep.c: Include "osabi.h".
6451 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6452 iterate over arches. Update call to gdbarch_init_osabi.
6453 (arm_dump_tdep): Don't dump osabi.
6454 * arm-linux-tdep.c: Include "osabi.h".
6455 * armnbsd-tdep.c: Include "osabi.h".
6456
6457 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
6458 Update call to gdbarch_init_osabi.
6459
6460 * i386-tdep.h: Don't include "osabi.h".
6461 (struct gdbarch_tdep): Remove osabi member.
6462 * i386-tdep.c: Include "osabi.h".
6463 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6464 iterate over arches. Update call to gdbarch_init_osabi.
6465 (i386_dump_tdep): Don't dump osabi.
6466 * i386-linux-tdep.c: Include "osabi.h".
6467 * i386-sol2-tdep.c: Include "osabi.h".
6468 * i386bsd-tdep.c: Include "osabi.h".
6469 * i386gnu-tdep.c: Include "osabi.h".
6470 * i386ly-tdep.c: Include "osabi.h".
6471 * i386nbsd-tdep.c: Include "osabi.h".
6472 * i386obsd-tdep.c: Include "osabi.h".
6473
6474 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
6475 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6476 check osabi when iterating over arches. Update call to
6477 gdbarch_init_osabi.
6478 (mips_dump_tdep): Don't dump osabi.
6479
6480 * ns32k-tdep.h: Don't include "osabi.h".
6481 (struct gdbarch_tdep): Remove.
6482 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
6483 gdbarch_lookup_osabi. Don't iterate over arches. Don't
6484 allocate tdep. Update call to gdbarch_init_osabi.
6485 (ns32k_dump_tdep): Remove.
6486 (_initialize_ns32k_tdep): Update call to gdbarch_register.
6487 * ns32knbsd-tdep.c: Include "osabi.h".
6488
6489 * ppc-tdep.h: Don't include "osabi.h".
6490 (struct gdbarch_tdep): Remove osabi member.
6491 * rs6000-tdep.c: Include "osabi.h".
6492 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
6493 osabi when iterating over arches. Update call to
6494 gdbarch_init_osabi.
6495 (rs6000_dump_tdep): Don't dump osabi.
6496 * ppc-linux-tdep.c: Include "osabi.h".
6497 * ppcnbsd-tdep.c: Include "osabi.h".
6498
6499 * sh-tdep.h: Don't include "osabi.h".
6500 (struct gdbarch_tdep): Remove osabi member.
6501 * sh-tdep.c: Include "osabi.h".
6502 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6503 iterate over arches. Update call to gdbarch_init_osabi.
6504 (sh_dump_tdep): Don't dump osabi.
6505 * shnbsd-tdep.c: Include "osabi.h".
6506
6507 * sparc-tdep.c: Include "osabi.h".
6508 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6509 iterate over arches. Update call to gdbarch_init_osabi.
6510 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
6511 tdep structure.
6512
6513 * vax-tdep.h: Don't include "osabi.h".
6514 (struct gdbarch_tdep): Remove.
6515 * vax-tdep.c: Include "osabi.h".
6516 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6517 iterate over arches. Don't allocate tdep. Update call
6518 to gdbarch_init_osabi.
6519 (vax_dump_tdep): Remove.
6520 (_initialize_vax_tdep): Update call to gdbarch_register.
6521
6522 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6523
6524 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
6525 entirely.
6526 (breakpoint_re_set_one): Don't fetch the value for a disabled
6527 watchpoint.
6528
6529 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6530
6531 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
6532 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
6533 (COERCE_FLOAT_TO_DOUBLE): Remove.
6534 * gdbarch.c: Regenerate.
6535 * gdbarch.h: Regenerate.
6536 * Makefile.in: Remove value_h from gdbarch_h.
6537 * valops.c (coerce_float_to_double): New variable.
6538 (default_coerce_float_to_double): Remove.
6539 (standard_coerce_float_to_double): Remove.
6540 (value_arg_coerce): Use coerce_float_to_double.
6541 (_initialize_valops): Add "set coerce-float-to-double".
6542 * value.h (default_coerce_float_to_double): Remove prototype.
6543 (standard_coerce_float_to_double): Remove prototype.
6544
6545 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
6546 prototyped.
6547 * mdebugread.c (parse_symbol): Likewise.
6548 * stabsread.c (define_symbol): Mark all functions as prototyped.
6549
6550 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
6551 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
6552 set_gdbarch_coerce_float_to_double.
6553 * arm-tdep.c (arm_gdbarch_init): Likewise.
6554 * frv-tdep.c (frv_gdbarch_init): Likewise.
6555 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
6556 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
6557 * mips-tdep.c (mips_gdbarch_init): Likewise.
6558 (mips_coerce_float_to_double): Remove.
6559 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6560 (rs6000_coerce_float_to_double): Remove.
6561 * s390-tdep.c (s390_gdbarch_init): Likewise.
6562 * sh-tdep.c (sh_gdbarch_init): Likewise.
6563 (sh_coerce_float_to_double): Remove.
6564 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6565 (sparc_coerce_float_to_double): Remove.
6566 * v850-tdep.c (v850_gdbarch_init): Likewise.
6567 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6568 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6569 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
6570 (hppa_coerce_float_to_double): Remove prototype.
6571 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6572
6573 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6574
6575 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
6576
6577 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6578
6579 Suggested by Stewart Brown <sb24@avaya.com>:
6580 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
6581 in recursive calls. Handle TYPE_CODE_TYPEDEF.
6582 (c_type_print_varspec_suffix): Likewise.
6583
6584 2003-01-04 Mark Kettenis <kettenis@gnu.org>
6585
6586 * configure.in: Don't set and AC_SUBST SUBDIRS.
6587 * configure: Regenerated.
6588
6589 * configure.in: Remove code dealing with shared libraries.
6590 * Makefile.in: Remove HLDFLAGS and HLDENV.
6591 * configure: Regenerated.
6592
6593 2003-01-04 Andrew Cagney <ac131313@redhat.com>
6594
6595 * frame.c (deprecated_frame_xmalloc): New function.
6596 (deprecated_set_frame_saved_regs_hack): New function.
6597 (deprecated_set_frame_extra_info_hack): New function.
6598 * frame.h (deprecated_frame_xmalloc): Declare.
6599 (deprecated_set_frame_saved_regs_hack): Declare.
6600 (deprecated_set_frame_extra_info_hack): Declare.
6601
6602 2003-01-04 Mark Kettenis <kettenis@gnu.org>
6603
6604 * configure.in: Move code that provides the --enable-gdbtk option
6605 right after the code that handles the --enable-tui option, and
6606 polish it somewhat.
6607 * configure: Regenerated.
6608
6609 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
6610 AC_CHECK_FUNCS and remove the old check for pread64.
6611 * acinclude.m4 (AC_GNU_SOURCE): New macro.
6612 * acconfig.h (_GNU_SOURCE): Add.
6613 (HAVE_PREAD64): Remove.
6614 * configure, aclocal.m4, config.in: Regenerated.
6615
6616 2003-01-03 Andrew Cagney <ac131313@redhat.com>
6617
6618 * alpha-tdep.c: Use get_frame_saved_regs.
6619 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6620 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6621 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
6622 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
6623 * vax-tdep.c, xstormy16-tdep.c: Ditto.
6624
6625 2003-01-03 Mark Kettenis <kettenis@gnu.org>
6626
6627 * configure.in: Remove all use of the SUBDIRS variable; add
6628 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
6629 code providing the --enable-multi-ice option, and move it right in
6630 front of the code that checks whether gdbserver is supported.
6631 Polish that too.
6632 * configure: Regenerated.
6633 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
6634 @SUBDIRS@.
6635
6636 2003-01-03 Andrew Cagney <cagney@redhat.com>
6637
6638 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
6639 * avr-tdep.c, cris-tdep.c: Ditto.
6640 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6641 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6642
6643 2003-01-03 Mark Kettenis <kettenis@gnu.org>
6644
6645 * configure.in: Remove --enable-netrom option.
6646 * configure: Regenerated.
6647
6648 2003-01-03 Mark Kettenis <kettenis@gnu.org>
6649
6650 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
6651 declaration for `struct re_pattern_buffer' instead.
6652 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
6653
6654 2003-01-03 J. Brobecker <brobecker@gnat.com>
6655
6656 * mdebugread.c (parse_symbol): Count until the stEnd matching
6657 the structure name.
6658
6659 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6660
6661 * configure.in: Remove --with-cpu option.
6662 subscripts. Remove evil changequotes here.
6663 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
6664 * config.in, configure: Regenerated.
6665
6666 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
6667 * configure.in: Cleanup section that sources GDB and BFD configure
6668 subscripts. Remove evil changequotes here.
6669 * config.in, configure: Regenerated.
6670
6671 2003-01-02 Andrew Cagney <ac131313@redhat.com>
6672
6673 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
6674 frame accessor methods.
6675 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6676 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6677 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
6678 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
6679 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6680 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6681 * z8k-tdep.c: Ditto.
6682
6683 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6684
6685 * configure.in: Remove UI_OUT configuration code.
6686 * ada-lang.c: Update assuming UI_OUT is always true.
6687 * Makefile.in (UIOUT_CFLAGS): Remove.
6688 * configure: Regenerated.
6689 * TODO: Remove blurb about elimination of -DUI_OUT.
6690
6691 * configure.in: Move code that provides the --enable-gdbcli,
6692 --enable-gdbmi options right before the code that handles the
6693 --enable-tui option. Polish a bit.
6694 * configure: Regenerated.
6695
6696 * configure.in: Rewrite check for GNU regex and the
6697 --without-included regex option, and move it into the "Checks for
6698 library functions" section. This makes us use the system regex
6699 again by default on systems with version 2 of the GNU C library.
6700 This was apparently broken.
6701 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
6702 * acconfig.h (USE_INCLUDED_REGEX): Remove.
6703 * config.in, configure: Regenerated.
6704
6705 * configure.in: Move code that provides the --enable-tui option
6706 before the "Checks for libraries" section. Polish the code
6707 somewhat and set need_curses to yes if we build the TUI. Rewrite
6708 code that looks for a library providing termcap functionality to
6709 match more closely what's done in the Readline library, and move
6710 it into to the "Checks for libraries" section.
6711 * configure: Regenerated.
6712 * Makefile.in (TERMCAP): Remove variable.
6713 * config/i386/go32.mh (TERMCAP): Remove variable.
6714
6715 2003-01-02 Andrew Cagney <ac131313@redhat.com>
6716
6717 * MAINTAINERS: Mention gdb_mbuild.sh.
6718 * gdb_mbuild.sh: Rewrite.
6719
6720 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6721
6722 * configure.in: Fix typo in last change.
6723 * config.in, configure: Regenerated.
6724
6725 2003-01-02 Andrew Cagney <ac131313@redhat.com>
6726
6727 * valarith.c (value_binop): Delete obsolete code and comments.
6728 * configure.host: Ditto.
6729 * buildsym.h (make_blockvector): Ditto.
6730 * buildsym.c (make_blockvector): Ditto.
6731 * defs.h (enum language): Ditto.
6732 (chill_demangle): Ditto.
6733 * elfread.c (elf_symtab_read): Ditto.
6734 * dwarfread.c (CHILL_PRODUCER): Ditto.
6735 (set_cu_language): Ditto.
6736 (handle_producer): Ditto.
6737 * expprint.c (print_subexp): Ditto.
6738 * gdbtypes.c (chill_varying_type): Ditto.
6739 * gdbtypes.h (builtin_type_chill_bool): Ditto.
6740 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
6741 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
6742 (chill_varying_type): Ditto.
6743 * language.h (_LANG_chill): Ditto.
6744 * language.c (binop_result_type, integral_type): Ditto.
6745 (character_type, string_type, structured_type): Ditto.
6746 (lang_bool_type, binop_type_check): Ditto.
6747 * stabsread.h (os9k_stabs): Ditto.
6748 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
6749 (define_symbol, read_type, read_struct_fields): Ditto.
6750 (read_array_type, read_enum_type, read_huge_number): Ditto.
6751 (read_range_type, start_stabs): Ditto.
6752 * symfile.c (init_filename_language_table): Ditto.
6753 (add_psymbol_with_dem_name_to_list): Ditto.
6754 * symtab.c (symbol_init_language_specific): Ditto.
6755 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
6756 * symtab.h (struct general_symbol_info): Ditto.
6757 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6758 * typeprint.c (typedef_print): Ditto.
6759 * utils.c (fprintf_symbol_filtered): Ditto.
6760 * valops.c (value_cast, search_struct_field, value_slice): Delete
6761 obsolete code.
6762 (varying_to_slice): Delete function.
6763 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
6764 (varying_to_slice): Delete declaration.
6765 * MAINTAINERS: Update.
6766
6767 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6768
6769 * configure.in: Reorganize "Checks for library functions section"
6770 a bit. Remove check for `btowc' and `isascii' functions.
6771 * configure: Regenerated.
6772
6773 * acconfig.h (_MSE_INT_H): Remove.
6774 * configure.in: Create "Checks for header files" section, and move
6775 appropriate tests there. Don't check for objlist.h, wchar.h,
6776 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
6777 misdetection fix. Also add "Checks for types", "Checks for
6778 compiler characteristics" and "Checks for library functions"
6779 sections.
6780 * config.in, configure: Regenerated.
6781
6782 * configure.in: Create "Checks for programs" section, and move
6783 appropriate tests there.
6784
6785 2003-01-01 Mark Kettenis <kettenis@gnu.org>
6786
6787 * configure.in: Create "Checks for libraries" section, and move
6788 appropriate tests there. Cleanup check for wctype in libw. Use
6789 AC_SEARCH_LIBS to see whether we need libsocket.
6790 * configure: Regenerated.
6791
6792 For older changes see ChangeLog-2002
6793 \f
6794 Local Variables:
6795 mode: change-log
6796 left-margin: 8
6797 fill-column: 74
6798 version-control: never
6799 End:
This page took 0.192714 seconds and 5 git commands to generate.