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