1 2003-05-05 Andrew Cagney <cagney@redhat.com>
3 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5 SIZEOF_CALL_DUMMY_WORDS.
6 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9 CALL_DUMMY_BREAKPOINT_OFFSET.
10 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
11 CALL_DUMMY_START_OFFSET.
12 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
13 * gdbarch.h, gdbarch.c: Re-generate.
14 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
15 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
16 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
17 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
18 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
19 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
20 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
21 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
22 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
23 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
24 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
25 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
26 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
27 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
28 * config/sparc/tm-sparc.h: Update.
30 2003-05-04 Andrew Cagney <cagney@redhat.com>
32 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
33 (load_infrun_state): Ditto.
34 (struct thread_info): Drop "prev_func_name" field.
35 * thread.c (load_infrun_state): Update.
36 (save_infrun_state): Update.
37 * infrun.c (prev_func_name): Delete variable.
38 (init_wait_for_inferior): Do not clear prev_func_name.
39 (stop_stepping, keep_going, context_switch): Do not swap
41 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
42 instead of PC_IN_SIGTRAMP.
44 2003-05-04 Andrew Cagney <cagney@redhat.com>
46 * sentinel-frame.c (sentinel_frame_prev_register): Replace
47 REGISTER_BYTE with register_offset_hack.
48 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
49 that REGISTER_BYTE is consistent with the regcache.
50 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
51 * gdbarch.h, gdbarch.c: Regenerate.
53 2003-05-04 Mark Kettenis <kettenis@gnu.org>
55 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
56 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
58 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
60 2003-05-03 J. Brobecker <brobecker@gnat.com>
62 From Thierry Schneider <tpschneider1@yahoo.com>
63 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
64 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
65 (mi-cmd-symbol.o): Add rule.
67 2003-05-03 Andrew Cagney <cagney@redhat.com>
69 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
70 comments noteing that it replaces the old FIX_CALL_DUMMY code.
71 * gdbarch.h, gdbarch.c: Re-generate.
72 * d10v-tdep.c (d10v_push_dummy_code): New function.
73 (d10v_gdbarch_init): Set push_dummy_code.
74 * infcall.c (legacy_push_dummy_code): New function.
75 (generic_push_dummy_code): New function.
76 (push_dummy_code): New function.
77 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
78 instead of dummy_addr, to push_dummy_call. Move call to
79 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
81 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
83 2003-05-03 Andrew Cagney <cagney@redhat.com>
85 * disasm.h (print_insn): Declare.
86 * disasm.c (init_gdb_disassemble_info): New function.
87 (gdb_disassembly): Call init_gdb_disassemble_info.
88 (gdb_print_insn): New function.
89 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
90 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
91 * mcore-tdep.c: Include "disasm.h"
92 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
93 * d10v-tdep.c: Include "disasm.h".
94 (display_trace): Call gdb_print_insn, instead of print_insn.
95 (print_insn): Delete function.
96 * printcmd.c: Include "disasm.h".
97 (print_insn): Delete function.
98 (print_formatted): Call gdb_print_insn, instead of print_insn.
99 * Makefile.in (printcmd.o): Update dependencies.
100 (mcore-tdep.o, d10v-tdep.o): Ditto.
102 2003-05-02 Andrew Cagney <cagney@redhat.com>
104 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
105 PC_REGNUM, re-indent.
106 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
109 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
110 * gdbarch.h, gdbarch.c: Re-generate.
111 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
112 register_virtual_size, pc_regnum, or register_bytes.
113 (D10V_PC_REGNUM): Rename _PC_REGNUM.
114 (d10v_register_type): Use D10V_PC_REGNUM.
115 (d10v_print_registers_info, d10v_read_pc): Ditto.
116 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
117 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
119 2003-05-02 David Carlton <carlton@bactrian.org>
121 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
122 the name with mstrsave.
124 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
126 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
127 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
128 (host_charset_name, target_charset_name): New vars for use by
130 (host_charset_enum, target_charset_enum): New enums for set/show
132 (set_charset_sfunc, set_host_charset_sfunc,
133 set_target_charset_sfunc): New functions.
134 (set_host_charset, set_target_charset): Make static.
135 (list_charsets, set_host_charset_command,
136 set_target_charset_command): Delete functions.
137 (show_charset_command): Rewrite as....
138 (show_charset): Hook this up with the set/show command mechanism.
139 (_initialize_charset): Change names of charsets to match the
140 set/show enums. Use host_charset_name and target_charset_name.
141 Use set/show mechanism for charset, host-charset, target-charset
142 commands. Do not make 'show host-charset' and 'show
143 target-charset' be aliases of 'show charset'.
145 * charset.h (set_host_charset, set_target_charset): Don't export,
146 they are not used outside the file.
148 2003-05-01 Andrew Cagney <cagney@redhat.com>
150 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
151 (gdb_disassembly): Make "di" non static, always initialize and
152 cleanup. Always use dis_asm_read_memory.
153 (gdb_dis_asm_read_memory): Delete function.
155 2003-05-01 Andrew Cagney <cagney@redhat.com>
157 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
158 (d10v_gdbarch_init): Set frame_align instead of stack_align.
160 2003-04-30 Andrew Cagney <cagney@redhat.com>
162 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
163 "tm_print_insn_info".
164 (TARGET_PRINT_INSN_INFO): Delete macro.
165 (dis_asm_read_memory): Delete function declaration.
166 (dis_asm_memory_error, dis_asm_print_address): Ditto.
167 (tm_print_insn_info): Delete variable definition.
168 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
169 * gdbarch.h, gdbarch.c: Re-generate.
170 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
171 "deprecated_tm_print_insn_info".
172 * mcore-tdep.c (mcore_dump_insn): Ditto.
173 * mips-tdep.c (mips_gdbarch_init): Ditto.
174 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
175 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
176 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
177 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
178 instead of TARGET_PRINT_INSN_INFO, add comment.
179 * s390-tdep.c (s390_get_frame_info): Instead of
180 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
181 (s390_check_function_end, s390_is_sigreturn): Ditto.
182 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
183 (dis_asm_memory_error, dis_asm_print_address): Ditto.
184 * disasm.c: Include "gdbcore.h".
185 (_initialize_disasm): New function, initialize
186 "deprecated_tm_print_insn_info".
187 (deprecated_tm_print_insn_info): New variable.
188 (dis_asm_read_memory): Moved from "corefile.c", made static.
189 (dis_asm_print_address, dis_asm_memory_error): Ditto.
190 * Makefile.in (disasm.o): Update dependencies.
192 2003-04-30 Andrew Cagney <cagney@redhat.com>
194 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
196 2003-04-29 Adam Fedor <fedor@gnu.org>
198 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
199 * infcall.c (find_function_addr): Make non-static.
200 * infcall.h (find_function_addr): Declare.
201 * Makefile.in (eval.o): Update dependencies.
203 2003-04-28 Adam Fedor <fedor@gnu.org>
205 * symtab.c (symbol_find_demangled_name): Check for and demangle
207 (symbol_init_demangled_name): Init for language_objc as well.
209 2003-04-28 Andrew Cagney <cagney@redhat.com>
211 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
212 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
213 * gdbarch.h, gdbarch.c: Re-generate.
214 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
215 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
216 * inferior.h (deprecated_read_fp): Rename read_fp.
217 (generic_target_read_fp): Delete declaration.
218 * regcache.c (generic_target_read_fp): Delete function.
219 (deprecated_read_fp): Replace read_fp, use
220 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
221 * d10v-tdep.c (d10v_read_fp): Delete function.
222 (d10v_gdbarch_init): Do not set deprecated_read_fp.
224 * sparc-tdep.c (sparc_gdbarch_init): Do not set
225 deprecated_target_read_fp to generic_target_read_fp.
226 * sh-tdep.c (sh_gdbarch_init): Ditto.
227 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
229 * frv-tdep.c (frv_gdbarch_init): Ditto.
231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
232 deprecated_fp_regnum.
233 * x86-64-tdep.c (x86_64_init_abi): Ditto.
234 * vax-tdep.c (vax_gdbarch_init): Ditto.
235 * v850-tdep.c (v850_gdbarch_init): Ditto.
236 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
237 * sh-tdep.c (sh_gdbarch_init): Ditto.
238 * s390-tdep.c (s390_gdbarch_init): Ditto.
239 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
240 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
241 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
242 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
244 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
245 * i386-tdep.c (i386_gdbarch_init): Ditto.
246 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
247 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
248 * frv-tdep.c (frv_gdbarch_init): Ditto.
249 * cris-tdep.c (cris_gdbarch_init): Ditto.
250 * avr-tdep.c (avr_gdbarch_init): Ditto.
251 * arm-tdep.c (arm_gdbarch_init): Ditto.
252 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
254 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
255 * v850-tdep.c (v850_gdbarch_init): Ditto.
256 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
257 * sh-tdep.c (sh_gdbarch_init): Ditto.
258 * s390-tdep.c (s390_gdbarch_init): Ditto.
259 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
260 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
261 * mips-tdep.c (mips_gdbarch_init): Ditto.
262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
263 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
264 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
265 * frv-tdep.c (frv_gdbarch_init): Ditto.
266 * avr-tdep.c (avr_gdbarch_init): Ditto.
267 * arm-tdep.c (arm_gdbarch_init): Ditto.
269 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
270 DEPRECATED_FP_REGNUM.
271 (vax_push_dummy_frame, vax_pop_frame): Ditto.
272 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
273 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
274 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
275 (sparc32_register_virtual_type): Ditto.
276 * sh-tdep.c (sh64_frame_chain): Ditto.
277 (sh64_get_saved_register, sh64_pop_frame): Ditto.
278 (sh_nofp_frame_init_saved_regs): Ditto.
279 (sh64_nofp_frame_init_saved_regs): Ditto.
280 (sh_fp_frame_init_saved_regs): Ditto.
281 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
282 * remote-e7000.c (fetch_regs_from_dump): Ditto.
283 * procfs.c (procfs_fetch_registers): Ditto.
284 (procfs_store_registers): Ditto.
285 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
286 (store_inferior_registers, fetch_core_registers): Ditto.
287 (fetch_kcore_registers, clear_regs): Ditto.
288 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
289 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
290 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
291 * nlm/i386.c (do_status): Ditto.
292 * mipsv4-nat.c (supply_gregset): Ditto.
293 * mips-tdep.c: Ditto for comments.
294 * mips-nat.c (fetch_inferior_registers): Ditto.
295 (store_inferior_registers, fetch_core_registers): Ditto.
296 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
297 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
298 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
299 (i386_do_pop_frame, i386_register_type): Ditto.
300 * hppa-tdep.c (hppa_frame_chain): Ditto.
301 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
302 (hppa_pop_frame, hppa_read_fp): Ditto.
303 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
304 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
305 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
306 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
307 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
308 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
309 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
310 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
311 * blockframe.c: Ditto for comments.
312 * arch-utils.h: Ditto for comments.
313 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
314 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
315 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
316 * alpha-tdep.h: Ditto for comments.
317 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
318 (alpha_cannot_store_register): Ditto.
319 (alpha_push_dummy_frame): Ditto.
320 * alpha-nat.c (supply_gregset): Ditto.
322 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
323 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
324 * config/sparc/tm-sparc.h: Update comment.
326 * hppa-tdep.c (hppa_init_extra_frame_info): Use
327 deprecated_read_fp instead of TARGET_READ_FP.
328 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
329 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
330 * sparc-tdep.c (sparc_init_extra_frame_info): Use
331 deprecated_read_fp instead of read_fp.
332 * s390-tdep.c (s390_push_arguments): Ditto.
333 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
334 * frame.h: Ditto in comments.
335 * frame.c (legacy_get_prev_frame): Ditto.
336 * dummy-frame.c (dummy_frame_this_id): Ditto.
337 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
339 2003-04-28 Andrew Cagney <cagney@redhat.com>
341 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
342 * gdbarch.h, gdbarch.c: Re-generate.
343 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
344 * vax-tdep.c (_initialize_vax_tdep): Update.
345 * v850-tdep.c (_initialize_v850_tdep): Update.
346 * sparc-tdep.c (_initialize_sparc_tdep): Update.
347 * s390-tdep.c (_initialize_s390_tdep): Update.
348 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
349 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
350 * mips-tdep.c (_initialize_mips_tdep): Update.
351 * mcore-tdep.c (_initialize_mcore_tdep): Update.
352 * m68k-tdep.c (_initialize_m68k_tdep): Update.
353 * ia64-tdep.c (_initialize_ia64_tdep): Update.
354 * hppa-tdep.c (_initialize_hppa_tdep): Update.
355 * h8300-tdep.c (_initialize_h8300_tdep): Update.
356 * frv-tdep.c (_initialize_frv_tdep): Update.
357 * cris-tdep.c (cris_delayed_get_disassembler): Update.
358 (_initialize_cris_tdep): Update.
359 * arch-utils.c (legacy_print_insn): Update.
360 * alpha-tdep.c (_initialize_alpha_tdep): Update.
362 2003-04-26 Adam Fedor <fedor@gnu.org>
364 * linespec.c (decode_objc): New function to decode ObjC calls
365 (decode_line_1): Check for ObjC calls (using decode_objc)
366 * Makefile (linespec.o): Update dependencies.
368 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
370 * breakpoint.h (struct breakpoint_ops): New.
371 (struct breakpoint): Add ops member.
373 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
374 (mention): Use new breakpoint ops member.
375 (set_raw_breakpoint): Initialize ops field to NULL.
376 (print_exception_catchpoint, print_one_exception_catchpoint)
377 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
378 (gnu_v3_exception_catchpoint_ops): New.
379 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
381 2003-04-25 Adam Fedor <fedor@gnu.org>
383 * Makefile.in (COMMON_OBS): Add objc-lang.o
385 2003-04-25 Andrew Cagney <cagney@redhat.com>
387 * d10v-tdep.c (print_insn): Delete function.
388 (display_trace): Use TARGET_PRINT_INSN.
389 (_initialize_d10v_tdep): Do not set tm_print_insn.
390 (d10v_gdbarch_init): Set print_insn.
392 2003-04-25 Andrew Cagney <cagney@redhat.com>
394 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
395 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
396 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
397 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
398 (nr_dmap_regs, a0_regnum): ... new functions.
399 (d10v_print_registers_info): Use a0_regnum, use register_size.
400 (d10v_register_byte): Delete function.
401 (d10v_register_raw_size): Delete function.
402 (d10v_register_type): Use a0_regnum.
403 (d10v_print_registers_info): Use a0_regnum.
404 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
405 (d10v_gdbarch_init): Do not set register_byte or
406 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
407 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
409 (trace_command): Use XCALLOC.
410 (print_insn): Delete reference to tm_print_insn.
411 (saved_regs_unwinder): Use store_unsigned_integer instead of
413 * frame.h (FRAME_OBSTACK_CALLOC): Define
415 2003-04-25 David Carlton <carlton@bactrian.org>
417 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
419 2003-04-24 Adam Fedor <fedor@gnu.org>
421 * objc-lang.c: Include "valprint.h"
422 * Makefile.in (objc-lang.o): Update dependencies.
424 2003-04-24 Adam Fedor <fedor@gnu.org>
426 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
427 architecture dependant compilation and mark as unimplemented
428 (until they get put in the gdbarch vector).
430 2003-04-23 David Carlton <carlton@bactrian.org>
432 * cp-support.c (cp_find_first_component): Accept 'operator' in
435 2003-04-23 Andrew Cagney <cagney@redhat.com>
437 * infcall.c (call_function_by_hand): Eliminate redundant
438 indentation. Move "saved_async" and "old_cleanups" to where they
441 2003-04-23 Andrew Cagney <cagney@redhat.com>
443 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
444 and "buffer". Move the "name" code to where it is needed.
446 2003-04-23 Andrew Cagney <cagney@redhat.com>
448 * infcall.c (call_function_by_hand): Move variables "start_sp",
449 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
450 code to ON_STACK switch branch.
452 2003-04-23 Andrew Cagney <cagney@redhat.com>
454 * infcall.c (call_function_by_hand): Make declaration of "i",
455 "sal", "bpt" and "old_sp" more local to their use. Delete #if
458 2003-04-23 Andrew Cagney <cagney@redhat.com>
460 * infcall.c (call_function_by_hand): Delete variable
461 "n_method_args". Localize "param_type"'s declaration to the loop
462 that it is used. Reinstate code assigning to said variable -
463 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
464 Rationalize code using "param_type".
466 2003-04-22 Andrew Cagney <cagney@redhat.com>
468 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
469 compute the breakpoint address. Only call FIX_CALL_DUMMY when
470 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
471 to DEPRECATED_PUSH_RETURN_ADDRESS.
473 2003-04-22 Kevin Buettner <kevinb@redhat.com>
475 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
476 on the DWARF2 register number prior to fetching a register.
478 2003-04-22 J. Brobecker <brobecker@gnat.com>
480 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
481 Update all the tests using SOFT_FLOAT considering the fact that
482 this macro was always set to 0.
483 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
484 considering the fact that this macro was always set to 0.
485 * hppa-tdep.h (hppa_store_return_value): Likewise.
486 (hppa_extract_return_value): Likewise.
488 2003-04-22 J. Brobecker <brobecker@gnat.com>
490 * config/pa/tm-hppa.h: Remove obsolete code, was used by
491 the hppa-pro target only.
493 2003-04-21 J. Brobecker <brobecker@gnat.com>
495 Ongoing multi-arch conversion effort for HP/UX:
496 * config/pa/tm-hppa.h: Move all macro that are no longer
497 defined now that GDB_MULTI_ARCH is now set to 1 from here...
498 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
500 2003-04-21 J. Brobecker <brobecker@gnat.com>
502 * config/pa/tm-hppa.h: Obsolete a section that was only used
505 2003-04-21 J. Brobecker <brobecker@gnat.com>
507 Ongoing multi-arch conversion for HP/UX.
508 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
509 if already defined (allows hppa64 to stay non-multiarched for now).
510 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
512 2003-04-21 Andrew Cagney <cagney@redhat.com>
514 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
516 2003-04-21 Andrew Cagney <cagney@redhat.com>
518 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
521 2003-04-21 Andrew Cagney <cagney@redhat.com>
523 * infcall.c: New file.
524 * infcall.h: New file.
525 * valarith.c: Include "infcall.h".
526 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
527 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
528 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
529 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
530 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
531 (SFILES): Add "infcall.c"
532 (COMMON_OBS): Add "infcall.o".
533 (infcall.o): Specify dependencies.
534 * value.h (call_function_by_hand): Delete declaration.
535 * inferior.h (run_stack_dummy): Delete declaration.
536 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
537 (run_stack_dummy): Move to "infcall.c", merged into
538 call_function_by_hand.
539 * valops.c (call_function_by_hand): Moved to "infcall.c".
540 (find_function_addr, value_arg_coerce): Ditto.
541 (unwindonsignal_p, coerce_float_to_double): Ditto.
542 (_initialize_valops): Move "set/show coerce-float-to-double", and
543 "set/show unwindonsignal" commands to "infcall.c".
544 * v850-tdep.c, target.h: Update comments.
545 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
546 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
547 (sh64_init_extra_frame_info): Update comments.
548 * mn10300-tdep.c: Update comments.
549 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
550 * config/sparc/tm-sparc.h: Update comments.
551 * breakpoint.h: Update comments.
552 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
553 * arm-tdep.c: Update comment.
555 2003-04-19 Mark Kettenis <kettenis@gnu.org>
557 * i386-tdep.c (i386_num_register_names): New variable.
558 (i386_num_mmx_regs): Renamed from mmx_num_regs.
559 (MM0_REGNUM): Remove redundant parentheses in define.
560 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
561 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
562 i386_mxcsr_regnum_p): Remove redundant parentheses.
563 (i386_register_name): Use i386_num_register_names.
565 * i386-tdep.c (i386_extract_return_value,
566 i386_store_return_value): Correct check for availability of
567 floating-point registers.
569 * i386-tdep.c (i386_frame_num_args): Remove function.
570 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
572 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
573 mmx_regnum_to_fp_regnum. Adjust all callers.
575 * i386-tdep.c (i386_get_longjmp_target): Use
576 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
577 and TARGET_CHAR_BIT. Use extract_typed_address instead of
580 2003-04-19 Mark Kettenis <kettenis@gnu.org>
582 * core-regset.c: Update comments to reflect reality. Re-order
584 (fetch_core_registers): Use switch instead of if. Remove
587 2003-04-18 Jim Blandy <jimb@redhat.com>
589 * s390-tdep.c (s390_frame_align): New function.
590 (s390_gdbarch_init): Register it with the gdbarch object.
592 2003-04-17 Richard Henderson <rth@redhat.com>
594 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
596 2003-04-17 Michael Snyder <msnyder@redhat.com>
597 Karen Bennet <bennet@redhat.com>
599 Committed by Elena Zannoni <ezannoni@redhat.com>
600 * gdb_gcore.sh: New script to create a core dump of a process.
602 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
604 * values.c (value_being_returned): Don't fetch the return
605 value if the return type is void.
607 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
609 * thread-db.c: Reindented.
611 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
613 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
614 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
617 2003-04-16 Kevin Buettner <kevinb@redhat.com>
619 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
620 the size of ``long double'' to 16, instead of 8.
622 2003-04-16 Mark Kettenis <kettenis@gnu.org>
624 * i386-linux-nat.c: Add some whitespace to make things more
626 (fetch_register, store_register, fetch_inferior_registers,
627 store_inferior_registers): Get rid of assignment in if-statement.
628 (store_register): Fix typo in error message.
630 2003-04-16 Andrew Cagney <cagney@redhat.com>
632 * utils.c (xmmalloc): Always allocate something, matches
633 libiberty/xmalloc's semantics.
634 (xmrealloc, xmcalloc): Ditto.
636 2003-04-16 Andrew Cagney <cagney@redhat.com>
638 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
640 (get_frame_type): Initialize unwind and type when needed.
641 (get_frame_id, frame_register_unwind): Ditto.
643 2003-04-16 Andrew Cagney <cagney@redhat.com>
645 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
647 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
648 * sparcl-stub.c: Obsolete file.
649 * config/sparc/tm-sparclet.h: Obsolete file.
650 * sparclet-stub.c: Obsolete file.
651 * sparclet-rom.c: Obsolete file.
652 * sparcl-tdep.c: Obsolete file.
653 * config/sparc/tm-sparclite.h: Obsolete file.
654 * config/sparc/sparclite.mt: Obsolete file.
655 * config/sparc/sparclet.mt: Obsolete file.
656 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
657 sparc86x-*-* obsolete.
659 2003-04-15 David Carlton <carlton@math.stanford.edu>
661 * Makefile.in (SFILES): Add cp-namespace.c.
662 (COMMON_OBS): Add cp-namespace.o.
663 (block.o): Depend on gdb_obstack_h and cp_support_h.
664 (buildsym.o): Depend on cp_support_h.
665 (cp-namespace.o): New.
666 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
667 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
668 (dwarf2read.o): Depend on cp_support_h.
669 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
670 * dwarf2read.c (process_die): Set processing_has_namespace_info,
671 processing_current_namespace.
672 (read_namespace): Update processing_current_namespace; check for
673 anonymous namespaces.
674 (dwarf2_name): New function.
675 (dwarf2_extension): Ditto.
676 * cp-support.h: Update copyright, contributors.
677 Add inclusion guards.
678 Add opaque declaration for structs obstack, block, symbol.
679 (struct using_direct): New struct.
680 Add declarations for cp_find_first_component,
681 cp_entire_prefix_len, processing_has_namespace_info,
682 processing_current_namespace, cp_is_anonymous,
683 cp_add_using_directive, cp_initialize_namespace,
684 cp_finalize_namespace, cp_set_block_scope,
685 cp_scan_for_anonymous_namespaces.
686 * cp-namespace.c: New file.
687 * cp-support.c: Update copyright.
688 Include ctype.h, gdb_assert.h, gdbcmd.h.
689 New variable maint_cplus_cmd_list.
690 (cp_find_first_component): New function.
691 (cp_entire_prefix_len, maint_cplus_command)
692 (first_component_command, _initialize_cp_support): Ditto.
693 * buildsym.c: Include cp-support.h.
694 New variable using_list.
695 (add_symbol_to_list): Check for anonymous namespaces.
696 (finish_block): Set block's scope.
697 (start_symtab): Initialize C++ namespace support.
698 (end_symtab): Finalize C++ namespace support.
699 * block.h: Add opaque declarations for structs
700 block_namespace_info, using_direct, and obstack.
701 Add declarations for block_set_scope and block_set_using.
702 (struct block): Add 'language_specific' member.
703 (BLOCK_NAMESPACE): New macro.
704 * block.c: Include gdb_obstack.h and cp-support.h.
705 (struct block_namespace_info): New struct.
706 (block_set_scope): New function.
707 (block_set_using, block_initialize_namespace): Ditto.
709 2003-04-14 Kevin Buettner <kevinb@redhat.com>
711 * solib-svr4.c (svr4_have_link_map_offsets): New function.
712 (locate_base): Return early if there aren't any link map offsets.
713 (svr4_solib_create_inferior_hook): Warn if shared library support
716 2003-04-14 David Carlton <carlton@math.stanford.edu>
718 * symtab.c (symbol_set_names): Add prefix when storing Java names
719 in hash table. Fix for PR java/1039.
721 2003-04-14 David Carlton <carlton@math.stanford.edu>
723 * symtab.c (symbol_set_names): Rename 'name' arg to
724 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
725 * symtab.h: Change 'name' argument in declaration of
726 symbol_set_names to 'linkage_name'.
727 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
729 2003-04-14 Andrew Cagney <cagney@redhat.com>
731 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
732 return the fully sign-extended register value.
733 (get_frame_pointer): Ditto.
734 (mips_pop_frame): Initialize "proc_desc" after checking for a
737 2003-04-14 Andrew Cagney <cagney@redhat.com>
739 * mips-tdep.c (mips_push_dummy_frame): Delete function.
740 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
741 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
742 (mips_push_register): Delete function.
743 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
746 2003-04-14 Jim Blandy <jimb@redhat.com>
748 * symmisc.c: #include "gdb_regex.h".
749 (maintenance_list_symtabs, maintenance_list_psymtabs): New
751 * maint.c (maintenance_list_command): New function.
752 (_initialize_maint_cmds): Register the above as commands.
753 * symtab.h (maintenance_list_symtabs,
754 maintenance_list_psymtabs): New declarations.
755 * cli/cli-cmds.c (maintenancelistlist): New variable.
756 (init_cmd_lists): Initialize it.
757 * cli/cli-cmds.h (maintenancelistlist): New declaration.
758 * gdbcmd.h (maintenancelistlist): New declaration.
759 * Makefile.in (symmisc.o): Update dependencies.
761 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
763 * s390-nat.c: Include asm/types.h for addr_t.
765 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
767 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
768 actually incoming type.
770 2003-04-13 Andrew Cagney <cagney@redhat.com>
772 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
773 get_next_frame and get_frame_saved_regs.
775 2003-04-13 Andrew Cagney <cagney@redhat.com>
777 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
780 2003-04-13 Andrew Cagney <cagney@redhat.com>
782 * frame.h: Mention what replaced what in "struct frame_info".
783 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
784 deprecated_update_frame_base_hack and
785 deprecated_update_frame_pc_hack.
786 * hppa-tdep.c: Ditto.
788 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
790 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
791 to read_reg and update its comment. Remove regnum member.
792 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
793 Don't call read_reg when setting in_reg. Call read_reg to get
794 the frame base if it's in a register. Return the register number
795 on the stack instead of in the context. Remove extra arguments
797 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
798 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
799 the register number on the expression stack.
800 (needs_frame_read_reg): Remove extra arguments.
802 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
804 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
806 (execute_stack_op): All callers updated.
807 * dwarf2expr.h: Add prototype for dwarf2_read_address.
808 * dwarf2loc.c (find_location_expression): New function.
809 (dwarf_expr_frame_base): Call it.
810 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
811 (dwarf2_tracepoint_var_ref): New function, broken out from
812 locexpr_tracepoint_var_ref.
813 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
815 (loclist_read_variable, loclist_read_needs_frame): New functions.
816 (loclist_describe_location, loclist_tracepoint_var_ref): New
818 (dwarf2_loclist_funcs): New struct location_funcs.
819 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
820 (struct dwarf2_locexpr_baton): Add comments.
821 (dwarf2_loclist_funcs): New extern.
822 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
823 base_address and base_known.
824 (dwarf_loc_buffer): New variable.
825 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
826 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
827 (dwarf2_has_info): Initialize dwarf_loc_offset.
828 (dwarf2_build_psymtabs): Read in .debug_loc.
829 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
831 (psymtab_to_symtab_1): Likewise. Move base address calculation
833 (dwarf2_get_pc_bounds): ... here. Use the base address from
835 (dwarf2_symbol_mark_computed): Handle location lists.
837 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
839 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
840 if the linkage name demangled successfully.
842 2003-04-13 Mark Kettenis <kettenis@gnu.org>
844 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
845 disassmbly_flavour): Removed.
847 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
849 2003-04-13 Mark Kettenis <kettenis@gnu.org>
851 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
853 2003-04-12 Andrew Cagney <cagney@redhat.com>
855 * frame.h (struct frame_info): Move definition from here ...
856 * frame.c (struct frame_info): ... to here.
858 2003-04-12 Andrew Cagney <cagney@redhat.com>
860 * gdbthread.h (save_infrun_state): Delete parameter
862 (struct thread_info): Delete field "prev_func_start".
863 (load_infrun_state): Ditto.
864 * thread.c (load_infrun_state, save_infrun_state): Update.
865 * infrun.c (prev_func_start): Delete variable.
866 (context_switch, init_wait_for_inferior): Update.
867 (stop_stepping, keep_going): Update.
869 2003-04-12 Andrew Cagney <cagney@redhat.com>
871 * gdbarch.sh: Add missing opaque declarations.
872 * gdbarch.h: Regnerate.
873 * symtab.h: Add missing opaque declarations.
874 * value.h, target.h, symfile.h, stabsread.h: Ditto.
875 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
876 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
877 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
878 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
879 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
880 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
881 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
882 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
883 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
884 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
885 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
886 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
888 2003-04-11 Andrew Cagney <cagney@redhat.com>
890 * frame.c (get_frame_id): Return this frame's "id".
891 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
893 (legacy_saved_regs_this_id): Replace function body with
895 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
896 FRAME_OBSTACK_ZALLOC.
897 (create_new_frame): Mark the frame ID as valid.
899 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
901 * Makefile.in (libbfd_h): Added missing setting.
902 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
903 according to the selected ABI.
905 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
907 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
909 2003-04-11 Andrew Cagney <cagney@redhat.com>
911 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
913 * gdbarch.h, gdbarch.c: Regenerate.
914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
915 * x86-64-tdep.c (x86_64_init_abi): Update.
916 * vax-tdep.c (vax_gdbarch_init): Update.
917 * v850-tdep.c (v850_gdbarch_init): Update.
918 * sparc-tdep.c (sparc_gdbarch_init): Update.
919 * sh-tdep.c (sh_gdbarch_init): Update.
920 * s390-tdep.c (s390_gdbarch_init): Update.
921 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
922 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
923 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
924 * mips-tdep.c (mips_gdbarch_init): Update.
925 * mcore-tdep.c (mcore_gdbarch_init): Update.
926 * m68k-tdep.c (m68k_gdbarch_init): Update.
927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
928 * ia64-tdep.c (ia64_gdbarch_init): Update.
929 (ia64_saved_pc_after_call): Update declaration.
930 * i386ly-tdep.c (i386lynx_init_abi): Update.
931 * i386-tdep.c (i386_gdbarch_init): Update.
932 * hppa-tdep.c (hppa_gdbarch_init): Update.
933 * h8300-tdep.c (h8300_gdbarch_init): Update.
934 * frv-tdep.c (frv_gdbarch_init): Update.
935 * cris-tdep.c (cris_gdbarch_init): Update.
936 * avr-tdep.c (avr_gdbarch_init): Update.
937 * arm-tdep.c (arm_gdbarch_init): Update.
938 * alpha-tdep.c (alpha_gdbarch_init): Update.
939 * ns32knbsd-nat.c (frame_num_args): Update.
940 * ns32k-tdep.c (umax_frame_num_args): Update.
941 * mips-tdep.c (mips_init_frame_pc_first): Update.
942 * infrun.c (step_over_function): Update.
943 * i386-linux-tdep.c (skip_hurd_resolver): Update.
944 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
945 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
946 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
947 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
948 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
949 * arm-linux-tdep.c (skip_hurd_resolver): Update.
950 * arch-utils.c (init_frame_pc_default): Update.
951 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
952 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
955 2003-04-11 Andrew Cagney <cagney@redhat.com>
957 * i387-tdep.c: Update copyright.
958 (i387_to_double): Delete function.
959 (double_to_i387): Delete function.
961 2003-04-10 Andrew Cagney <cagney@redhat.com>
963 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
964 frame's function's address. Simplify.
965 (d10v_frame_unwind_cache): Check that the frame's function is
968 2003-04-10 Jim Blandy <jimb@redhat.com>
970 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
971 call to set_gdbarch_deprecated_push_arguments.
973 2003-04-10 Andrew Cagney <cagney@redhat.com>
975 * frame.c (fprint_frame_id): New function.
976 (fprint_frame_type, fprint_frame): New function.
977 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
978 (create_sentinel_frame, get_frame_id): Ditto.
979 (frame_id_p, frame_id_eq): Ditto.
980 (frame_id_inner, create_new_frame): Ditto.
981 (legacy_get_prev_frame, get_prev_frame): Ditto.
982 (deprecated_update_frame_pc_hack): Ditto.
983 (frame_register_unwind): Ditto.
984 (deprecated_update_frame_base_hack): Ditto.
986 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
988 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
989 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
990 frame_chain function.
991 * Makefile.in: Add dependencies due to above change.
993 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
995 * blockframe.c (legacy_frame_chain_valid): Move call to
996 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
999 2003-04-09 Andrew Cagney <cagney@redhat.com>
1001 * frame.h (struct frame_id): Replace "pc" and "base" with
1002 "stack_addr" and "code_addr". Update comments.
1003 (frame_id_build): Update parameter names and comment.
1004 (struct frame_info): Replace "id_p" and "id" with "this_id".
1005 * dummy-frame.c (dummy_frame_this_id): Update.
1006 * breakpoint.c (print_one_breakpoint): Update.
1007 * frame.c (get_frame_id): Update.
1008 (get_frame_base, frame_id_build): Update.
1009 (create_sentinel_frame, legacy_get_prev_frame): Update.
1010 (deprecated_update_frame_base_hack): Update.
1011 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
1012 (frame_id_inner): Ditto.
1014 2003-04-09 Andrew Cagney <cagney@redhat.com>
1016 * defs.h (gdb_print_host_address): Make "addr" parameter a
1018 * utils.c (gdb_print_host_address): Update.
1020 2003-04-09 Kevin Buettner <kevinb@redhat.com>
1022 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
1023 register number for R0 is 0.
1025 2003-04-09 J. Brobecker <brobecker@gnat.com>
1027 * frame.h (struct gdbarch): Add opaque structure definition
1028 to avoid a compilation warning on LynxOS 4.0.
1030 2003-04-09 Andrew Cagney <cagney@redhat.com>
1032 * frame.h (struct frame_info): Delete field "pc". Replace
1033 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
1035 * frame.c (frame_pc_unwind): Update.
1036 (create_sentinel_frame): Do not set "pc".
1037 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
1038 (get_frame_pc): Call frame_pc_unwind.
1039 (deprecated_update_frame_pc_hack): Update.
1040 (create_new_frame): Use "pc" not "->pc".
1042 2003-04-09 Andrew Cagney <cagney@redhat.com>
1044 * frame.c (get_frame_id): Eliminate code updating "frame".
1045 (legacy_get_prev_frame): Ditto.
1046 (get_frame_base): Return id.base directly.
1047 (deprecated_update_frame_base_hack): Update "id.base".
1048 * frame.h (struct frame_info): Delete field "frame".
1050 2003-04-09 Andrew Cagney <cagney@redhat.com>
1052 * NEWS: Mention that the "Sequent family" is obsolete.
1053 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
1054 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1055 * configure.host: Obsolete i[3456]86-sequent-bsd*,
1056 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1057 * config/i386/tm-ptx4.h: Obsolete file.
1058 * config/i386/tm-ptx.h: Obsolete file.
1059 * symm-tdep.c: Obsolete file.
1060 * config/i386/symmetry.mt: Obsolete file.
1061 * config/i386/tm-symmetry.h: Obsolete file.
1062 * symm-nat.c: Obsolete file.
1063 * config/i386/nm-symmetry.h: Obsolete file.
1064 * config/i386/xm-symmetry.h: Obsolete file.
1065 * config/i386/symmetry.mh: Obsolete file.
1066 * config/i386/nm-ptx4.h: Obsolete file.
1067 * config/i386/ptx4.mh: Obsolete file.
1068 * config/i386/ptx.mt: Obsolete file.
1069 * config/i386/ptx.mh: Obsolete file.
1070 * config/i386/xm-ptx4.h: Obsolete file.
1071 * config/i386/xm-ptx.h: Obsolete file.
1073 2003-04-09 Andrew Cagney <cagney@redhat.com>
1075 Obsolete mips*-*-mach3*.
1076 * NEWS: Mention that mips*-*-mach3* is obsolete.
1077 * m3-nat.c: Obsolete file.
1078 * config/nm-m3.h: Obsolete file.
1079 * config/mips/tm-mipsm3.h: Obsolete file.
1080 * config/mips/mipsm3.mt: Obsolete file.
1081 * config/mips/mipsm3.mh: Obsolete file.
1082 * config/mips/xm-mipsm3.h: Obsolete file.
1083 * mipsm3-nat.c: Obsolete file.
1084 * configure.host: Obsolete mips-dec-mach3*.
1085 * configure.tgt: Obsolete mips*-*-mach3*.
1087 2003-04-09 Andrew Cagney <cagney@redhat.com>
1089 * doublest.h: Update copyright.
1090 (deprecated_store_floating, deprecated_extract_floating): Rename
1091 store_floating and extract_floating. Update comments.
1092 * doublest.c: Update copyright.
1093 (extract_floating_by_length): Replace extract_floating.
1094 (store_floating_by_length): Replace store_floating.
1095 (deprecated_extract_floating): New function.
1096 (deprecated_store_floating): New function.
1097 (extract_typed_floating): Call extract_floating_by_length.
1098 (store_typed_floating): Call store_floating_by_length.
1099 * x86-64-tdep.c (x86_64_store_return_value): Update.
1100 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
1101 (sh64_extract_return_value): Update.
1102 (sh_sh4_register_convert_to_virtual): Update.
1103 (sh_sh64_register_convert_to_virtual): Update.
1104 (sh_sh4_register_convert_to_raw): Update.
1105 (sh_sh64_register_convert_to_raw): Update.
1106 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
1107 (rs6000_register_convert_to_raw): Update.
1108 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
1109 (ia64_register_convert_to_raw): Update.
1110 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
1111 (REGISTER_CONVERT_TO_VIRTUAL): Update.
1112 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
1113 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
1114 (alpha_register_convert_to_raw): Update.
1116 2003-04-08 Andrew Cagney <cagney@redhat.com>
1118 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
1119 * gdbarch.h, gdbarch.c: Re-generate.
1120 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
1121 (d10v_gdbarch_init): Do not set saved_pc_after_call.
1122 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
1123 conditionally, use frame_pc_unwind as an alternative. Add
1125 * arch-utils.c (init_frame_pc_default): Only call
1126 SAVED_PC_AFTER_CALL when available.
1128 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
1130 * infrun.c (stop_soon): Rename from stop_soon_quietly.
1131 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
1132 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
1133 (start_remote): Ditto.
1134 (handle_inferior_event): Ditto.
1135 (save_inferior_status): Ditto.
1136 (restore_inferior_status): Ditto.
1137 * infcmd.c (attach_command): Ditto.
1138 * fork-child.c (startup_inferior): Ditto.
1139 * inferior.h (stop_soon): Rename from stop_soon_quietly.
1140 * alpha-tdep.c (heuristic_proc_start): Ditto.
1141 * mips-tdep.c (heuristic_proc_start): Ditto.
1142 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
1143 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1144 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1145 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
1146 * remote-vx.c (vx_create_inferior): Ditto.
1148 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
1150 * infrun.c (stop_soon_quietly): Make it an enum, to better
1151 override the default behavior of handle_inferior_event.
1152 (clear_proceed_status): Update uses of stop_soon_quietly to
1153 reflect that it is now an enum.
1154 (start_remote): Ditto.
1155 (handle_inferior_event): Change logic a bit if stop_soon_quietly
1156 is set to handle the new GNU/Linux kernel behavior for
1157 attach/sigstop. Update uses of stop_soon_quietly.
1158 * inferior.h (enum stop_kind): New enum.
1159 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
1160 Reset normal handle_inferior_event behavior, afterwards.
1161 * fork-child.c (startup_inferior): Update.
1162 * alpha-tdep.c (heuristic_proc_start): Update.
1163 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1164 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
1165 * solib-osf.c (osf_solib_create_inferior_hook): Update.
1166 * solib-irix.c (irix_solib_create_inferior_hook): Update.
1167 * remote-vx.c (vx_create_inferior): Update.
1168 * mips-tdep.c (heuristic_proc_start): Update.
1170 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
1172 * disasm.c (dump_insns): Move variables inside loop, or they will
1173 be freed more than once, causing wild memory corruptions.
1174 (gdb_disassembly): Look for the substring "-thread",
1175 instead of "-threads" in the target name, to make sure to find
1176 the 'multi-thread' target. Also, make sure we do the right thing
1177 with the "core" target.
1179 2003-04-07 Kevin Buettner <kevinb@redhat.com>
1181 * mips-tdep.c (mips_print_fp_register): New function, created from
1182 do_fp_register_row(). Registers are now (also) printed as hex.
1183 Only one register is printed per row.
1184 (mips_print_register, do_fp_register_row): Print floating point
1185 registers with mips_print_fp_register().
1187 2003-04-06 Andrew Cagney <cagney@redhat.com>
1189 * valprint.h (inspect_it): Add extern declaration.
1190 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
1191 (selectors_info, classes_info): Ditto.
1192 (find_objc_msgcall): Fix indentation.
1193 (objc_printstr): Delete extern declarations.
1195 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
1197 2003-04-06 Andrew Cagney <cagney@redhat.com>
1199 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
1201 * frame.c (legacy_saved_regs_this_id): Update.
1202 (legacy_get_prev_frame): Update.
1203 * xstormy16-tdep.c: Update comment.
1204 * sparc-tdep.c (sparc_frame_chain): Update comment.
1205 * blockframe.c (legacy_frame_chain_valid): Update.
1207 2003-04-06 Andrew Cagney <cagney@redhat.com>
1209 * valprint.c (val_print_type_code_int): Delete #ifdef
1210 PRINT_TYPELESS_INTEGER code.
1212 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
1213 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
1214 multi-arch definition.
1215 * gdbarch.h: Re-generate.
1217 2003-04-05 Andrew Cagney <cagney@redhat.com>
1219 Eliminate FRAME_FIND_SAVED_REGS.
1220 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1221 Change FSR parameter to a pointer.
1222 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
1223 Assume FSR parameter is a pointer.
1224 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1226 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
1227 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
1228 saved_regs a pointer.
1229 (hppa_frame_saved_pc): Ditto.
1230 (find_dummy_frame_regs): Make frame_saved_regs a pointer
1231 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
1233 (restore_pc_queue): Make fsr a pointer.
1234 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
1235 (hppa_frame_chain): Make saved_regs a pointer, call
1236 hppa_frame_init_saved_regs.
1237 * sparc-tdep.c: Include "gdb_assert.h".
1238 (sparc_frame_find_saved_regs): Replace internal_error with
1240 * remote-vxsparc.c (vx_read_register): Delete reference to
1241 FRAME_FIND_SAVED_REGS.
1242 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
1243 * gdbarch.h: Regenerate.
1244 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
1245 (deprecated_get_frame_saved_regs): Delete declaration.
1246 (struct frame_saved_regs): Delete definition.
1247 * frame.c (deprecated_get_frame_saved_regs): Delete function.
1248 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
1249 (hppa_frame_find_saved_regs): Delete declaration.
1250 (FRAME_FIND_SAVED_REGS): Delete macro.
1251 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
1252 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
1253 FRAME_FIND_SAVED_REGS in comment.
1255 2003-04-05 Andrew Cagney <cagney@redhat.com>
1257 * frame.c (frame_func_unwind, get_frame_func): New functions.
1258 * frame.h (get_frame_func, frame_func_unwind): Declare.
1259 (struct frame_info): Add field "prev_func" for caching the
1260 previous frame's function address.
1261 * arm-tdep.c (arm_frameless_function_invocation): Combine
1262 get_pc_function_start and get_frame_pc into get_frame_func.
1263 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1264 (sh64_nofp_frame_init_saved_regs): Ditto.
1265 * s390-tdep.c (s390_function_start): Ditto.
1266 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
1267 (rs6000_frameless_function_invocation): Ditto.
1268 (rs6000_frame_saved_pc): Ditto.
1269 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
1270 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
1271 * i386-tdep.c (i386_frameless_signal_p): Ditto.
1272 (i386_frame_init_saved_regs): Ditto.
1273 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
1274 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
1275 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
1276 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1277 * blockframe.c (frameless_look_for_prologue): Ditto.
1279 2003-04-05 Andrew Cagney <cagney@redhat.com>
1281 * frame.c (legacy_get_prev_frame): Link prev to next at the
1282 function start. Update comments.
1284 2003-04-05 Andrew Cagney <cagney@redhat.com>
1286 * frame.c (get_frame_id): Update comment.
1287 (legacy_get_prev_frame): Update comment.
1288 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
1289 * gdbarch.h: Regenerate.
1290 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
1291 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
1293 2003-04-05 Andrew Cagney <cagney@redhat.com>
1295 * stack.c (print_frame_info): Use get_frame_pc.
1297 2003-04-04 Andrew Cagney <cagney@redhat.com>
1299 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
1300 the frame's type from the unwinder.
1301 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
1302 (create_new_frame, legacy_get_prev_frame): When the unwinder's
1303 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
1304 (get_frame_base_address): Use get_frame_type.
1305 (get_frame_locals_address, get_frame_args_address): Ditto.
1306 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
1307 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
1308 (struct frame_info): Add comment explaining why the frame contains
1310 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
1311 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
1312 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
1314 * frame-unwind.h: Include "frame.h".
1315 (struct frame_unwind): Add "type" field.
1316 * Makefile.in (frame_unwind_h): Add $(frame_h).
1318 2003-04-04 Andrew Cagney <cagney@redhat.com>
1320 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
1321 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
1322 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
1324 (d10v_unwind_dummy_id): Use frame_id_build.
1325 * frame.c (find_frame_sal): Use get_frame_pc.
1326 (create_new_frame): Use deprecated_update_frame_pc_hack and
1327 deprecated_update_frame_base_hack.
1328 (create_sentinel_frame): Add comment about ->pc going away.
1329 (get_prev_frame): Add comment about ->pc going away.
1330 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
1331 frame_id_build, deprecated_update_frame_pc_hack and
1332 deprecated_update_frame_base_hack.
1333 (select_frame): Use get_frame_pc.
1334 (legacy_saved_regs_this_id): Use frame_id_build.
1336 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
1338 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
1339 signed integer case.
1340 (classify_argument): Handle enumerations and references.
1342 2003-04-04 Andrew Cagney <cagney@redhat.com>
1344 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
1347 2003-04-01 Adam Fedor <fedor@gnu.org>
1349 * gdb/objc-lang.c (selectors_info): Replace calls to
1350 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
1351 SYMBOL_NATURAL_NAME.
1352 (classes_info, find_methods): Likewise.
1354 2003-04-03 Kevin Buettner <kevinb@redhat.com>
1356 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
1357 ``mach'' to the value determined by bfd_default_set_arch_mach().
1359 2003-04-02 Bob Rossi <bob_rossi@cox.net>
1361 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
1362 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
1363 (mi-cmd-file.o): Update dependencies.
1365 2003-04-01 Kevin Buettner <kevinb@redhat.com>
1367 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1368 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
1370 2003-04-01 Adam Fedor <fedor@gnu.org>
1372 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
1373 * language.h (struct language_defn): Add la_demangle.
1374 (language_demangle): Declare.
1375 * language.c (language_demangle): New function.
1376 (unk_lang_demangle): Likewise.
1377 (unknown_language_defn, auto_language_defn, local_language_defn):
1378 Add ukn_lang_demangle.
1379 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
1380 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
1381 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
1382 (cplus_language_defn): Add cplus_demangle for la_demangle element.
1383 * jv-lang.c (java_demangle): New function
1384 (java_language_defn): Use it for la_demangle element.
1385 * objc-lang.c (objc_demangle): Add options argument
1386 (objc_language_defn): Use objc_demangle for la_demangle element.
1387 * maint.c (maintenance_demangle): Replace switch with
1388 call to language_demangle.
1389 * utils.c (fprintf_symbol_filtered): Likewise.
1391 2003-04-01 Andrew Cagney <cagney@redhat.com>
1393 * printcmd.c (print_frame_nameless_args): Delete #ifdef
1394 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
1395 PRINT_TYPELESS_INTEGER.
1396 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
1397 PUSH_RETURN_ADDRESS.
1399 2003-04-01 Andrew Cagney <cagney@redhat.com>
1401 * Makefile.in (d10v-tdep.o): Update dependencies.
1402 * d10v-tdep.c: Include "frame-base.h".
1403 (d10v_frame_unwind): Make constant.
1404 (d10v_frame_base_address): New function.
1405 (d10v_frame_base): New variable.
1406 (d10v_gdbarch_init): Set frame_base default.
1407 (struct d10v_unwind_cache): Add the field "prev_sp". Update
1409 (d10v_frame_unwind_cache): Set and use "prev_sp".
1410 (d10v_frame_this_id): Use the previous frame's inner most stack
1411 address and this frame's func address for the frame ID. Use
1412 frame_id_build. Don't analyze beyond the current instruction.
1414 2003-04-01 Andrew Cagney <cagney@redhat.com>
1416 * frame.h (get_frame_locals_address, get_frame_args_address):
1417 Refer to the base address, instead of the address of the first
1420 2003-04-01 Andrew Cagney <cagney@redhat.com>
1422 Add frame debug info addresses:
1423 * frame-base.c: New file.
1424 * frame-base.h: New file.
1425 * frame.h (struct frame_base): Add opaque declaration.
1426 (get_frame_base): Update comment.
1427 (get_frame_base_address): Declare.
1428 (get_frame_locals_address): Declare.
1429 (get_frame_args_address): Declare.
1430 (struct frame_info): Add "base" and "base_cache". Update
1431 comments on the unwinder.
1432 * frame.c: Include "frame-base.h".
1433 (get_frame_locals_address): New function.
1434 (get_frame_base_address): New function.
1435 (get_frame_args_address): New function.
1436 * findvar.c (read_var_value): Use get_frame_locals_address and
1437 get_frame_args_address.
1438 * stack.c (frame_info): Use get_frame_locals_address and
1439 get_frame_args_address.
1440 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
1441 moved to "frame-base.c".
1442 * printcmd.c (print_frame_nameless_args): Ditto.
1443 * symtab.h (address_class): Update comments.
1444 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
1445 get_frame_base_address.
1446 * dwarf2expr.c (execute_stack_op): Ditto.
1447 * Makefile.in (frame_base_h): Define.
1448 (frame.o): Update dependencies.
1449 (frame-base.o): Add dependencies.
1450 (SFILES): Add frame-base.c.
1451 (COMMON_OBS): Add frame-base.o.
1453 2003-04-01 Andrew Cagney <cagney@redhat.com>
1455 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
1456 CALL_DUMMY_LENGTH): Ditto.
1457 * gdbarch.c: Re-generate.
1458 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
1459 (CALL_DUMMY_LENGTH): Delete macro.
1460 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
1461 * arm-tdep.c (arm_gdbarch_init): Ditto.
1462 * avr-tdep.c (avr_gdbarch_init): Ditto.
1463 * cris-tdep.c (cris_gdbarch_init): Ditto.
1464 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1465 * frv-tdep.c (frv_gdbarch_init): Ditto.
1466 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1467 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1468 * i386-tdep.c (i386_gdbarch_init): Ditto.
1469 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1471 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1472 * mips-tdep.c (mips_gdbarch_init): Ditto.
1473 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1474 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1475 * s390-tdep.c (s390_gdbarch_init): Ditto.
1476 * sh-tdep.c (sh_gdbarch_init): Ditto.
1477 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1478 * v850-tdep.c (v850_gdbarch_init): Ditto.
1479 * vax-tdep.c (vax_gdbarch_init): Ditto.
1480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1482 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
1484 * frame.c (get_prev_frame): Disable call to inside_entry_file().
1486 2003-04-01 Andrew Cagney <cagney@redhat.com>
1488 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
1489 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1490 * gdbarch.h, gdbarch.c: Re-generate.
1491 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1492 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1493 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1494 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1495 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1496 * infcmd.c (run_stack_dummy): Simplify assuming
1497 CALL_DUMMY_BREAKPOINT_OFFSET_P.
1498 * infrun.c (handle_inferior_event): Ditto.
1499 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1500 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
1501 * arm-tdep.c (arm_gdbarch_init): Ditto.
1502 * avr-tdep.c (avr_gdbarch_init): Ditto.
1503 * cris-tdep.c (cris_gdbarch_init): Ditto.
1504 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1505 * frv-tdep.c (frv_gdbarch_init): Ditto.
1506 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1507 * i386-tdep.c (i386_gdbarch_init): Ditto.
1508 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1510 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1511 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1512 * mips-tdep.c (mips_gdbarch_init): Ditto.
1513 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1514 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1515 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1516 * s390-tdep.c (s390_gdbarch_init): Ditto.
1517 * sh-tdep.c (sh_gdbarch_init): Ditto.
1518 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1519 * v850-tdep.c (v850_gdbarch_init): Ditto.
1520 * vax-tdep.c (vax_gdbarch_init): Ditto.
1521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1523 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
1525 * symfile.c (symfile_relocate_debug_section): Update call to
1526 bfd_simple_get_relocated_section_contents.
1528 2003-03-31 Andrew Cagney <cagney@redhat.com>
1530 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
1531 * gdbarch.h, gdbarch.c: Regenerate.
1532 * inferior.h (FIX_CALL_DUMMY): Delete macro.
1533 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
1535 * frame.h (generic_fix_call_dummy): Delete declaration.
1536 * dummy-frame.h: Update comment.
1537 * dummy-frame.c (generic_fix_call_dummy): Delete function.
1538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1540 * sh-tdep.c (sh_gdbarch_init): Ditto.
1541 * s390-tdep.c (s390_gdbarch_init): Ditto.
1542 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1543 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1545 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1546 * i386-tdep.c (i386_gdbarch_init): Ditto.
1547 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1548 * frv-tdep.c (frv_gdbarch_init): Ditto.
1549 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1550 * cris-tdep.c (cris_gdbarch_init): Ditto.
1551 * avr-tdep.c (avr_gdbarch_init): Ditto.
1552 * arm-tdep.c (arm_gdbarch_init): Ditto.
1554 2003-03-31 J. Brobecker <brobecker@gnat.com>
1556 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
1557 (INIT_FRAME_AP): Likewise.
1558 (EXTRA_FRAME_INFO): Likewise.
1560 2003-03-31 Andrew Cagney <cagney@redhat.com>
1562 * gdbarch.sh: Include "symfile.h".
1563 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
1564 * gdbarch.h, gdbarch.c: Re-generate.
1565 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
1566 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1567 call_dummy_address, the default is at entry_point_address.
1568 * v850-tdep.c (v850_gdbarch_init): Ditto.
1569 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1570 * sh-tdep.c (sh_gdbarch_init): Ditto.
1571 * s390-tdep.c (s390_gdbarch_init): Ditto.
1572 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1573 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1574 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1575 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1576 * i386-tdep.c (i386_gdbarch_init): Ditto.
1577 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1578 * frv-tdep.c (frv_gdbarch_init): Ditto.
1579 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1580 * cris-tdep.c (cris_gdbarch_init): Ditto.
1581 * arm-tdep.c (arm_gdbarch_init): Ditto.
1583 2003-03-31 Andrew Cagney <cagney@redhat.com>
1585 * gdbarch.sh (CALL_DUMMY_P): Delete.
1586 * gdbarch.h, gdbarch.c: Re-generate.
1587 * inferior.h (CALL_DUMMY_P): Delete macro.
1588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1589 * vax-tdep.c (vax_gdbarch_init): Update.
1590 * v850-tdep.c (v850_gdbarch_init): Update.
1591 * sparc-tdep.c (sparc_gdbarch_init): Update.
1592 * sh-tdep.c (sh_gdbarch_init): Update.
1593 * s390-tdep.c (s390_gdbarch_init): Update.
1594 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1595 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1596 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1597 * mips-tdep.c (mips_gdbarch_init): Update.
1598 * mcore-tdep.c (mcore_gdbarch_init): Update.
1599 * m68k-tdep.c (m68k_gdbarch_init): Update.
1600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1601 * ia64-tdep.c (ia64_gdbarch_init): Update.
1602 * i386-tdep.c (i386_gdbarch_init): Update.
1603 * h8300-tdep.c (h8300_gdbarch_init): Update.
1604 * frv-tdep.c (frv_gdbarch_init): Update.
1605 * d10v-tdep.c (d10v_gdbarch_init): Update.
1606 * cris-tdep.c (cris_gdbarch_init): Update.
1607 * breakpoint.c (deprecated_frame_in_dummy): Update.
1608 * avr-tdep.c (avr_gdbarch_init): Update.
1609 * alpha-tdep.c (alpha_gdbarch_init): Update.
1610 * arm-tdep.c (arm_gdbarch_init): Update.
1611 * dummy-frame.c (dummy_frame_this_id): Update comments.
1612 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
1613 * frame.c (legacy_get_prev_frame): Ditto.
1614 * valops.c (call_function_by_hand): Delete function.
1615 (hand_function_call): Rename to call_function_by_hand
1617 2003-03-30 Andrew Cagney <cagney@redhat.com>
1619 2002-11-10 Klee Dienes <kdienes@apple.com>
1620 * value.h (struct value): Update comment.
1622 2003-03-30 Andrew Cagney <cagney@redhat.com>
1624 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
1626 (d10v_gdbarch_init): Do not set fp_regnum.
1628 * frame.c (get_frame_base): Force ID initialization.
1629 (get_prev_frame): Move computation of the frame ID from here ...
1630 (get_frame_id): ... to here.
1631 (legacy_get_prev_frame): Mark the frame ID as valid.
1632 * frame.h (struct frame_info): Add field "id_p".
1634 2003-03-30 Mark Kettenis <kettenis@gnu.org>
1636 * i386-tdep.c (i386_store_struct_return): Removed.
1637 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
1639 2003-03-30 Andrew Cagney <cagney@redhat.com>
1641 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
1642 * gdbarch.h, gdbarch.c: Regenerate.
1643 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
1644 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1645 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1646 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1647 * i386-tdep.c (i386_gdbarch_init): Ditto.
1648 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1649 * cris-tdep.c (cris_gdbarch_init): Ditto.
1650 * vax-tdep.c (vax_gdbarch_init): Ditto.
1651 * s390-tdep.c (s390_gdbarch_init): Ditto.
1652 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1653 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1654 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1655 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
1656 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
1657 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
1658 * sparc-tdep.c (sparc_gdbarch_init): Update.
1659 * sh-tdep.c (sh_gdbarch_init): Update.
1660 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1661 * mips-tdep.c (mips_gdbarch_init): Update.
1662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1663 * ia64-tdep.c (ia64_gdbarch_init): Update.
1664 * frv-tdep.c (frv_gdbarch_init): Update.
1665 * avr-tdep.c (avr_gdbarch_init): Update.
1666 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
1667 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
1668 instead of when push_dummy_call is not available.
1670 2003-03-30 Andrew Cagney <cagney@redhat.com>
1672 * infttrace.c: Include "gdbthread.h".
1673 (parent_attach_all): Fix function signature.
1674 (call_ptrace): Update call.
1675 * Makefile.in (infttrace.o): Update dependencies.
1677 2003-03-30 Andrew Cagney <cagney@redhat.com>
1679 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
1680 PUSH_RETURN_ADDRESS.
1681 * gdbarch.h, gdbarch.c: Regenerate.
1682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1683 * x86-64-tdep.c (x86_64_init_abi): Update.
1684 * v850-tdep.c (v850_gdbarch_init): Update.
1685 * sparc-tdep.c (sparc_gdbarch_init): Update.
1686 * sh-tdep.c (sh_gdbarch_init): Update.
1687 * s390-tdep.c (s390_gdbarch_init): Update.
1688 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1689 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1690 * mips-tdep.c (mips_gdbarch_init): Update.
1691 * mcore-tdep.c (mcore_gdbarch_init): Update.
1692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1693 * ia64-tdep.c (ia64_gdbarch_init): Update.
1694 * i386-tdep.c (i386_gdbarch_init): Update.
1695 * h8300-tdep.c (h8300_gdbarch_init): Update.
1696 * frv-tdep.c (frv_gdbarch_init): Update.
1697 * cris-tdep.c (cris_gdbarch_init): Update.
1698 * avr-tdep.c (avr_gdbarch_init): Update.
1699 * arm-tdep.c (arm_gdbarch_init): Update.
1700 * valops.c (hand_function_call): Update.
1702 2003-03-29 Andrew Cagney <cagney@redhat.com>
1704 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
1705 sizeof_call_dummy_words.
1706 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
1708 * gdbarch.h: Regenerate.
1710 2003-03-29 Andrew Cagney <cagney@redhat.com>
1712 * infttrace.h: New file.
1713 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
1714 (hpread_get_textlow): Detect an uninitialized dn_bufp.
1715 (hpread_read_doc_function_type): Detect an initialized type1.
1716 (hpread_quick_traverse): Initialize mod_name_string.
1717 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
1718 (som_solib_get_solib_by_pc): Declare.
1719 (so_lib_thread_start_addr): Declare.
1720 (no_shared_libraries): Declare.
1721 * somread.c (init_import_symbols): Make static. Add forward
1723 * config/pa/nm-hppah.h: Include "infttrace.h" for
1725 (hppa_insert_hw_watchpoint): Declare.
1726 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
1727 * hppah-nat.c: Include "gdb_string.h".
1728 (parent_attach_all): Delete extern declaration, moved to
1730 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
1732 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
1733 * Makefile.in (infttrace_h): Define.
1734 (hpread.o): Update dependencies.
1735 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
1736 * hppa-hpux-tdep.c: Include "gdb_string.h".
1737 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
1738 * infrun.c (handle_inferior_event): Always initialize
1739 stepped_after_stopped_by_watchpoint. Add default and remove
1740 fallthrough in switch statement.
1741 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
1743 (hppa_remove_hw_watchpoint): Ditto.
1745 2003-03-29 Andrew Cagney <cagney@redhat.com>
1747 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
1750 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
1752 * arm-tdep.c (arm_push_arguments): Delete.
1753 (struct stack_item): New type.
1754 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
1755 (arm_store_struct_return): Delte.
1756 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
1757 arm_push_arguments or arm_store_struct_return.
1759 2003-03-28 Andrew Cagney <cagney@redhat.com>
1761 * Makefile.in (d10v-tdep.o): Update dependencies.
1762 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
1763 * d10v-tdep.c: Include "remote.h".
1764 (target_resume_hook): Delete extern declaration.
1765 (target_wait_loop_hook): Ditto.
1766 (tdisassemble_command): Eliminate assignment in "if" conditional.
1767 (d10v_ts2_register_sim_regno): Eliminate call to
1768 legacy_register_sim_regno.
1769 (d10v_ts3_register_sim_regno): Ditto.
1771 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
1773 * thread.c: Reindented.
1775 * linux-proc.c: Ditto.
1777 2003-03-28 Bob Rossi <bob_rossi@cox.net>
1779 * MAINTAINERS (write after approval): Add myself.
1781 2003-03-27 Theodore A. Roth <troth@openavr.org>
1783 * objc-exp.y: Add missing semi-colons.
1785 2003-03-27 Andrew Cagney <cagney@redhat.com>
1787 * regcache.c (write_sp): Delete function and references.
1788 * inferior.h (write_sp): Delete declaration.
1789 * valops.c (hand_function_call): Replace write_sp with
1791 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
1792 (sparc_pop_frame): Ditto.
1794 2003-03-27 Andrew Cagney <cagney@redhat.com>
1796 * NEWS: Mention removal of support for hppa*-*-bsd* and
1797 hppa*-*-osf* natives, and hppa*-*-pro* target.
1798 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
1799 * config/pa/xm-pa.h: Obsolete file.
1800 * config/pa/xm-hppab.h: Obsolete file.
1801 * config/pa/nm-hppab.h: Obsolete file.
1802 * config/pa/tm-hppab.h: Obsolete file.
1803 * config/pa/tm-hppao.h: Obsolete file.
1804 * config/pa/nm-hppao.h: Obsolete file.
1805 * config/pa/tm-pro.h: Obsolete file.
1806 * config/pa/hppaosf.mt: Obsolete file.
1807 * config/pa/hppaosf.mh: Obsolete file.
1808 * config/pa/hppapro.mt: Obsolete file.
1809 * config/pa/hppabsd.mt: Obsolete file.
1810 * config/pa/hppabsd.mh: Obsolete file.
1811 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
1812 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
1815 2003-03-27 Andrew Cagney <cagney@redhat.com>
1817 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
1818 push_arguments. Don't set push_return_address or write_sp.
1819 (d10v_push_dummy_call): Replace d10v_push_arguments.
1820 (d10v_push_return_address, d10v_write_sp): Delete function,
1821 handled by push_dummy_call.
1823 2003-03-26 Andrew Cagney <cagney@redhat.com>
1825 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
1826 (push_dummy_call): New pure multi-arch replacement with gdbarch,
1827 regcache and dummy_addr parameters.
1828 * gdbarch.h, gdbarch.c: Re-generate.
1829 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
1830 available; assume it will handle stack alignment and return
1831 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
1832 legacy_push_arguments.
1833 (legacy_push_arguments): Rename default_push_arguments.
1834 * value.h (legacy_push_arguments): Rename default_push_arguments.
1835 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
1836 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1837 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1838 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1839 * config/i386/tm-symmetry.h: Update.
1840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1841 * x86-64-tdep.c (x86_64_init_abi): Update.
1842 * v850-tdep.c (v850_gdbarch_init): Update.
1843 * sparc-tdep.c (sparc_gdbarch_init): Update.
1844 * sh-tdep.c (sh_gdbarch_init): Update.
1845 * s390-tdep.c (s390_gdbarch_init): Update.
1846 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1847 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1848 * mips-tdep.c (mips_gdbarch_init): Update.
1849 * mcore-tdep.c (mcore_gdbarch_init): Update.
1850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1851 * ia64-tdep.c (ia64_gdbarch_init): Update.
1852 * i386-tdep.c (i386_gdbarch_init): Update.
1853 * hppa-tdep.c (hppa_gdbarch_init): Update.
1854 * h8300-tdep.c (h8300_gdbarch_init): Update.
1855 * frv-tdep.c (frv_gdbarch_init): Update.
1856 * d10v-tdep.c (d10v_gdbarch_init): Update.
1857 * cris-tdep.c (cris_gdbarch_init): Update.
1858 * avr-tdep.c (avr_gdbarch_init): Update.
1859 * arm-tdep.c (arm_gdbarch_init): Update.
1860 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1861 * alpha-tdep.c (alpha_gdbarch_init): Update.
1863 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1865 * signals/signals.c (do_target_signal_to_host): Correct realtime
1868 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1870 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
1871 (struct sal_chain, map_catch_names): Remove.
1872 (catch_exception_command_1): Don't call
1873 handle_gnu_4_16_catch_command.
1875 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1877 From Mark Dettinger <dettinge@de.ibm.com>:
1878 * dwarf2cfi.c (read_2u): Increment pointer by two.
1880 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1882 * signals/signals.c: Fix typos in last change.
1884 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
1886 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
1887 not already defined. Use __SIGRTMIN if available.
1888 (target_signal_from_host): Remove SIGRTMIN block.
1889 (do_target_signal_to_host): Remove SIGRTMIN block; check that
1890 the signal is within the realtime range.
1892 2003-03-25 Adam Fedor <fedor@gnu.org>
1894 * Makefile.in (infrun.o): Add $(language_h)
1895 * infrun.c (handle_inferior_event): Use skip_language_trampoline
1896 for language specific trampolines.
1897 * language.h (struct language_defn): Add skip_trampoline.
1898 (skip_language_trampoline): Declare.
1899 * language.c (unk_lang_trampoline, skip_language_trampoline):
1901 (unknown_language_defn, auto_language_defn, local_language_defn):
1902 Add ukn_lang_trampoline.
1903 * ada-lang.c (ada_language_defn): Add NULL for language
1904 specific skip_trampoline.
1905 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
1906 scm-lang.c: Likewise.
1907 * objc-lang.c (objc_skip_trampoline): New function.
1908 (objc_language_defn): Add objc_skip_trampoline.
1910 2003-03-25 Andrew Cagney <cagney@redhat.com>
1912 * frame.c (get_prev_frame): Delay validating a frame's ID -
1913 non-NULL, didn't go backwards - until an attempt to unwind it to
1916 2003-03-25 Andrew Cagney <cagney@redhat.com>
1918 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
1919 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
1920 * gdbarch.h, gdbarch.c: Re-generate.
1921 * config/sparc/tm-sparc.h
1922 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
1923 * sparc-tdep.c (sparc_gdbarch_init): Set
1924 deprecated_extra_stack_alignment_needed.
1925 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
1926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
1927 extra_stack_alignment_needed.
1928 * v850-tdep.c (v850_gdbarch_init): Ditto.
1929 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1930 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1931 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1932 * cris-tdep.c (cris_gdbarch_init): Ditto.
1933 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1936 2003-03-25 Andrew Cagney <cagney@redhat.com>
1938 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
1939 STORE_STRUCT_RETURN.
1940 * gdbarch.h, gdbarch.c: Regenerate.
1941 * d10v-tdep.c (d10v_store_struct_return): Delete function.
1942 (d10v_push_arguments): Set the struct return register.
1943 (d10v_gdbarch_init): Update.
1944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1945 * x86-64-tdep.c (x86_64_init_abi): Update.
1946 * vax-tdep.c (vax_gdbarch_init): Update.
1947 * v850-tdep.c (v850_gdbarch_init): Update.
1948 * sparc-tdep.c (sparc_gdbarch_init): Update.
1949 * sh-tdep.c (sh_gdbarch_init): Update.
1950 * s390-tdep.c (s390_gdbarch_init): Update.
1951 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1952 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1953 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1954 * mips-tdep.c (mips_gdbarch_init): Update.
1955 * mcore-tdep.c (mcore_gdbarch_init): Update.
1956 * m68k-tdep.c (m68k_gdbarch_init): Update.
1957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1958 * ia64-tdep.c (ia64_gdbarch_init): Update.
1959 * i386-tdep.c (i386_gdbarch_init): Update.
1960 * hppa-tdep.c (hppa_gdbarch_init): Update.
1961 * h8300-tdep.c (h8300_gdbarch_init): Update.
1962 * frv-tdep.c (frv_gdbarch_init): Update.
1963 * cris-tdep.c (cris_gdbarch_init): Update.
1964 * avr-tdep.c (avr_gdbarch_init): Update.
1965 * arm-tdep.c (arm_gdbarch_init): Update.
1966 * alpha-tdep.c (alpha_gdbarch_init): Update.
1968 2003-03-25 Andrew Cagney <cagney@redhat.com>
1970 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
1971 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
1972 CALL_DUMMY_STACK_ADJUST with a predicate variable.
1973 * gdbarch.h, gdbarch.c: Regenerate.
1974 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1975 call_dummy_stack_adjust_p.
1976 * vax-tdep.c (vax_gdbarch_init): Ditto.
1977 * v850-tdep.c (v850_gdbarch_init): Ditto.
1978 * sh-tdep.c (sh_gdbarch_init): Ditto.
1979 * s390-tdep.c (s390_gdbarch_init): Ditto.
1980 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1981 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1982 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1983 * mips-tdep.c (mips_gdbarch_init): Ditto.
1984 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1985 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1987 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1988 * i386-tdep.c (i386_gdbarch_init): Ditto.
1989 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1990 * frv-tdep.c (frv_gdbarch_init): Ditto.
1991 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1992 * cris-tdep.c (cris_gdbarch_init): Ditto.
1993 * avr-tdep.c (avr_gdbarch_init): Ditto.
1994 * arm-tdep.c (arm_gdbarch_init): Ditto.
1995 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1996 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1997 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
1998 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1999 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
2000 call_dummy_stack_adjust_p.
2001 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
2002 (CALL_DUMMY_STACK_ADJUST): Delete macro.
2003 * sparc-tdep.c (sparc32_push_arguments): Update.
2004 * valops.c (hand_function_call): Update.
2006 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
2008 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
2009 set_gdbarch_char_signed.
2011 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
2014 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
2016 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
2018 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
2019 (_initialize_arm_tdep): Don't set tm_print_insn.
2021 2003-03-24 Adam Fedor <fedor@gnu.org>
2023 * Makefile.in (YYOBJ): Add objc-exp.tab.o
2024 * objc-lang.h: Add multiple inclusion protection.
2025 (start_msglist, add_msglist, end_msglist): Additional declarations.
2027 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
2029 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
2030 value was renamed to ARM_FLOAT_SOFT_FPA.
2032 2003-03-23 Andrew Cagney <cagney@redhat.com>
2034 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
2035 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
2036 * gdbarch.h, gdbarch.c: Regenerate.
2037 * valops.c (hand_function_call): Update.
2038 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2039 * frame.c (legacy_saved_regs_this_id): Update.
2040 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
2041 * dummy-frame.h: Update.
2042 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
2043 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2044 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
2045 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
2046 * config/m68k/tm-sun3.h: Update.
2047 * blockframe.c (inside_main_func, frame_chain_valid): Update.
2048 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2049 * x86-64-tdep.c (x86_64_init_abi): Update.
2050 * vax-tdep.c (vax_gdbarch_init): Update.
2051 * v850-tdep.c (v850_gdbarch_init): Update.
2052 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
2053 * sh-tdep.c (sh_gdbarch_init): Update.
2054 * s390-tdep.c (s390_gdbarch_init): Update.
2055 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2056 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
2057 (frame_get_saved_regs): Update.
2058 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2059 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2060 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2061 * mips-tdep.c (mips_gdbarch_init): Update.
2062 * mcore-tdep.c (mcore_gdbarch_init): Update.
2063 * m68k-tdep.c (m68k_gdbarch_init): Update.
2064 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2065 * ia64-tdep.c (ia64_gdbarch_init): Update.
2066 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
2067 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2068 (i386_interix_back_one_frame): Update.
2069 * hppa-tdep.c (hppa_gdbarch_init): Update.
2070 (hppa_init_extra_frame_info): Update.
2071 * h8300-tdep.c (h8300_gdbarch_init): Update.
2072 * frv-tdep.c (frv_gdbarch_init): Update.
2073 * cris-tdep.c (cris_gdbarch_init): Update.
2074 * avr-tdep.c (avr_gdbarch_init): Update.
2075 * arm-tdep.c (arm_gdbarch_init): Update.
2076 * alpha-tdep.c (alpha_gdbarch_init): Update.
2078 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2080 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
2081 (arm_get_fp_model): Declare.
2082 * arm-tdep.c (fp_model_strings): New string array.
2083 (arm_fp_model, current_fp_model): New variables.
2084 (arm_get_fp_model): New function.
2085 (arm_set_fp): New function.
2086 (set_fp_model_sfunc): New function.
2087 (show_fp_model): New function.
2088 (_initialize_arm_tdep): Add new command to set/show the FPU.
2089 (arm_extract_return_value): Use arm_get_fp_model.
2090 (arm_store_return_value): Likewise.
2091 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
2092 to initialize the floating-point data types.
2093 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
2096 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2098 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
2099 the current setting of each value.
2100 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
2101 new_set and new_show. Use add_setshow_cmd_full and
2102 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
2103 commands and add new version as subcommands of "set/show arm".
2105 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2107 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
2108 (set_arm_command, show_arm_command): New functions.
2109 (_initialize_arm_tdep): Add them.
2110 (num_disassembly_options): Renamed from num_flavor_options.
2111 (valid_disassembly_styles): Renamed from valid_flavors.
2112 (disassembly_style): Renamed from disassembly_flavor.
2113 (set_disassembly_style_sfunc): Renamed from
2114 set_disassembly_flavor_sfunc.
2115 (set_disassembly_style): Renamed from set_disassembly_flavor.
2116 (arm_othernames): Updated.
2117 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
2118 command. Add "set/show arm disassembly" commands. Deprecate
2119 "othernames" command.
2121 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2123 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
2124 (arm-tdep.o): Depend on elf_arm_h.
2126 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2128 * Makefile.in (coff_internal_h): Define.
2129 (arm-tdep.o): Update dependencies.
2131 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2133 * arm-tdep.c (prologue_cache): Delete.
2134 (check_prologue_cache, save_prologue_cache): Delete.
2135 (arm_scan_prologue): Don't check or update the prologue_cache.
2136 (arm_gdb_arch_init): Don't initialize it.
2137 (_initialize_arm_tdep): Likewise.
2139 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
2141 * MAINTAINERS (tui): Maintainer of tui code.
2143 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
2145 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
2146 (i386-cygwin-tdep.o): Add dependencies.
2147 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
2148 * i386-cygwin-tdep.c: New file.
2149 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
2150 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
2152 2003-03-20 Andrew Cagney <cagney@redhat.com>
2154 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
2155 (handle_inferior_event): Remove code calling
2156 DYNAMIC_TRAMPOLINE_NEXTPC.
2158 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
2159 already has a full path.
2161 * main.c (gdb_main): Return 1.
2162 (captured_main): Call error to report an invalid interpreter.
2164 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2165 * alpha-osf1-tdep.c: Include "gdb_string.h".
2167 2003-03-19 J. Brobecker <brobecker@gnat.com>
2169 Continuing work to convert the hppa targets to multiarch partial.
2171 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
2172 method, now that hppa_push_dummy_frame has a conformant prototype.
2173 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
2174 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
2175 for the switch to multiarch partial.
2177 2003-03-19 Kevin Buettner <kevinb@redhat.com>
2179 * mdebugread.c (parse_symbol): For stEnd, we're done counting
2180 when iss is issNull.
2182 2003-03-18 Kevin Buettner <kevinb@redhat.com>
2184 * mips-tdep.c (mips_register_name): Fix fencepost error involving
2185 NUM_REGS bounds check.
2187 2003-03-18 Kevin Buettner <kevinb@redhat.com>
2189 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
2190 * mips-tdep.c (gdb_assert.h): Include.
2191 (mips_generic_reg_names, mips_processor_reg_names): Make static.
2192 (mips_register_name): Handle integer registers explicitly. Add
2194 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
2195 (mips_lsi33k_reg_names): Don't list integer registers; they're
2196 handled by mips_register_name() now.
2197 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
2198 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
2199 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
2200 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
2201 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
2203 2003-03-18 Andrew Cagney <cagney@redhat.com>
2205 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
2207 * gdbtypes.h (print_scalar_formatted): Update declaration.
2208 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
2210 2003-03-18 J. Brobecker <brobecker@gnat.com>
2212 * infrun.c (observer.h): Add #include.
2213 (normal_stop): Add call to observer_notify_normal_stop.
2214 * Makefile.in (infrun.o): Add dependency on observer.h.
2216 2003-03-18 J. Brobecker <brobecker@gnat.com>
2218 Continuing work to convert the hppa targets to multiarch partial.
2219 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
2220 parameter. Reformat comment.
2221 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
2222 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
2223 to match new profile.
2225 2003-03-18 J. Brobecker <brobecker@gnat.com>
2227 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
2228 appear to be working in any case.
2230 2003-03-18 J. Brobecker <brobecker@gnat.com>
2232 * observer.c (observer_test_first_observer): New static variable.
2233 (observer_test_second_observer): Likewise.
2234 (observer_test_third_observer): Likewise.
2235 (observer_test_first_notification_function): New static function.
2236 (observer_test_second_notification_function): Likewise.
2237 (observer_test_third_notification_function): Likewise.
2239 2003-03-17 J. Brobecker <brobecker@gnat.com>
2241 * hppa-tdep.c (gdb_assert.h): Add missing #include.
2242 * somsolib.c (gdb_assert.h): Likewise.
2243 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
2244 (somsolib.o): Likewise.
2246 2003-03-17 Andrew Cagney <cagney@redhat.com>
2248 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
2249 BFD. Simplify setting of di.endian.
2251 2003-03-17 Andrew Cagney <cagney@redhat.com>
2253 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
2254 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
2256 From Elena Zannoni <ezannoni@redhat.com>
2257 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
2258 vector and floating-point parameters.
2259 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
2261 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
2263 2003-03-17 Fernando Nasser <fnasser@redhat.com>
2265 * MAINTAINERS: Remove my name from several maintainership roles.
2267 2003-03-17 Andrew Cagney <cagney@redhat.com>
2269 Fix frame off-by-one bug.
2270 * frame-unwind.h (frame_this_id_ftype): Replace
2271 frame_unwind_id_ftype.
2272 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
2273 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
2274 with "prev_register".
2275 * frame-unwind.c (frame_unwind_find_by_pc): Return
2276 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
2278 * dummy-frame.c (cached_find_dummy_frame): Delete function.
2279 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
2280 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
2281 (dummy_frame_unwind): Update.
2282 * sentinel-frame.c (sentinel_frame_prev_register): Replace
2283 sentinel_frame_register_unwind.
2284 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
2285 (sentinel_frame_unwinder): Update.
2286 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
2287 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
2288 * frame.c (create_sentinel_frame): Update. Initialize
2289 "prologue_cache" instead of "unwind_cache".
2290 (frame_register_unwind): Call this frame's prev_register with the
2291 next frame and this frame's prologue cache.
2292 (get_prev_frame): Simplify. Always call prev frame's this_id with
2293 this frame and prev frame's prologue cache. Document that this
2294 call is shifted one to the left when compared to the
2295 frame_register_unwind call.
2296 (legacy_saved_regs_prev_register): Replace
2297 frame_saved_regs_register_unwind.
2298 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
2299 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
2300 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
2301 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
2302 (d10v_frame_unwind): Update.
2303 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
2304 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
2305 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
2306 "saved_regs" with "this_saved_regs".
2308 2003-03-16 Andrew Cagney <cagney@redhat.com>
2310 * frame.c (frame_pop): Don't call target_store_registers. Fix
2311 problem reported by Mark Kettenis.
2313 2003-03-16 Mark Kettenis <kettenis@gnu.org>
2315 * i386-tdep.c (i386_register_type): Renamed from
2316 i386_register_virtual_type. Adjust function signature.
2317 (i386_gdbarch_init): Set register_type instead of
2318 deprecated_max_register_raw_size,
2319 deprecated_max_register_virtual_size and register_virtual_type.
2321 2003-03-14 Andrew Cagney <cagney@redhat.com>
2323 * frame.c (get_prev_frame): When a legacy frame, always call
2324 legacy_get_prev_frame. Simplify unwind code using assumption that
2325 the unwinder is new.
2326 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
2327 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
2328 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
2330 2003-03-14 Andrew Cagney <cagney@redhat.com>
2332 * frame.c (get_saved_register): Delete function.
2333 * frame.h (get_saved_register): Delete declaration.
2334 * xstormy16-tdep.c: Update comment.
2335 * regcache.h: Update comments.
2336 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
2337 get_saved_register and extract_address, use
2338 frame_read_unsigned_register.
2339 (sparc_frame_saved_pc): Ditto.
2340 (sparc_get_saved_register): Instead of get_saved_register, use
2342 (sparc_pop_frame): Ditto.
2343 * findvar.c: Update comments.
2344 (value_of_register): Call frame_register instead of
2346 (value_from_register): Ditto.
2347 * config/sparc/tm-sparc.h: Update comment.
2348 * breakpoint.c: Update comment.
2350 2003-03-14 Andrew Cagney <cagney@redhat.com>
2352 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
2354 * gdbarch.h, gdbarch.c: Re-generate.
2355 * frame.h: Update comments.
2356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2357 * x86-64-tdep.c (x86_64_init_abi): Update.
2358 * sparc-tdep.c (sparc_gdbarch_init): Update.
2359 * sh-tdep.c (sh_gdbarch_init): Update.
2360 * mips-tdep.c (mips_gdbarch_init): Update.
2361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2362 * cris-tdep.c (cris_gdbarch_init): Update.
2363 * ia64-tdep.c (ia64_gdbarch_init): Update.
2364 * frame.c (frame_register): Update.
2365 (get_saved_register): Update.
2366 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
2368 2003-03-13 Andrew Cagney <cagney@redhat.com>
2370 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
2371 * gdbarch.h, gdbarch.c: Regenerate.
2372 * valops.c (hand_function_call): Update comment.
2373 * stack.c (return_command): Update comment.
2374 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
2375 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
2376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2377 * x86-64-tdep.c (x86_64_init_abi): Update.
2378 * vax-tdep.c (vax_gdbarch_init): Update.
2379 * v850-tdep.c (v850_gdbarch_init): Update.
2380 * sparc-tdep.c (sparc_gdbarch_init): Update.
2381 * sh-tdep.c (sh_gdbarch_init): Update.
2382 * s390-tdep.c (s390_gdbarch_init): Update.
2383 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2384 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2385 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2386 * mips-tdep.c (mips_gdbarch_init): Update.
2387 * mcore-tdep.c (mcore_gdbarch_init): Update.
2388 * m68k-tdep.c (m68k_gdbarch_init): Update.
2389 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2390 * ia64-tdep.c (ia64_gdbarch_init): Update.
2391 * i386-tdep.c (i386_gdbarch_init): Update.
2392 * hppa-tdep.c (hppa_gdbarch_init): Update.
2393 * h8300-tdep.c (h8300_gdbarch_init): Update.
2394 * frv-tdep.c (frv_gdbarch_init): Update.
2395 * cris-tdep.c (cris_gdbarch_init): Update.
2396 * avr-tdep.c (avr_gdbarch_init): Update.
2397 * arm-tdep.c (arm_gdbarch_init): Update.
2398 * alpha-tdep.c (alpha_gdbarch_init): Update.
2400 2003-03-13 Andrew Cagney <cagney@redhat.com>
2402 * frame.c (legacy_frame_p): New function.
2403 (get_prev_frame): Use legacy_frame_p.
2404 * frame.h (legacy_frame_p): Declare.
2406 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
2408 * MAINTAINERS (write after approval): Alphabetically
2411 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
2413 * MAINTAINERS (write after approval): Add myself.
2415 2003-03-12 Andrew Cagney <cagney@redhat.com>
2417 * frame.c (get_prev_frame): Rename the frame parameter to
2419 (get_next_frame, legacy_get_prev_frame): Ditto.
2421 2003-03-12 Andrew Cagney <cagney@redhat.com>
2423 * frame.c (get_current_frame): Check target_has_registers before
2424 checking target_has_stack.
2425 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
2426 instead of deprecated_selected_frame.
2427 * findvar.c (value_of_register): Pass "frame", not
2428 deprecated_selected_frame, to value_of_builtin_reg.
2430 2003-03-12 Andrew Cagney <cagney@redhat.com>
2432 * regcache.c (regcache_cooked_write_signed): New function.
2433 (regcache_cooked_write_unsigned): New function.
2434 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
2435 (regcache_cooked_read_signed): Fix regnum in range assertion.
2436 * regcache.h (regcache_cooked_write_signed): Declare.
2437 (regcache_cooked_write_unsigned): Declare.
2439 2003-03-12 Andrew Cagney <cagney@redhat.com>
2441 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
2442 * gdbarch.h, gdbarch.c: Re-generate.
2443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2444 * x86-64-tdep.h: Update.
2445 * x86-64-tdep.c (x86_64_init_abi): Update.
2446 * v850-tdep.c (v850_gdbarch_init): Update.
2447 * sparc-tdep.c (sparc_gdbarch_init): Update.
2448 * sh-tdep.c (sh_gdbarch_init): Update.
2449 * s390-tdep.c (s390_gdbarch_init): Update.
2450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2451 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2452 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2454 * mips-tdep.c (mips_gdbarch_init): Update.
2455 * mcore-tdep.c (mcore_gdbarch_init): Update.
2456 * m68k-tdep.c (m68k_gdbarch_init): Update.
2457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2458 * ia64-tdep.c (ia64_gdbarch_init): Update.
2459 * i386-tdep.c (i386_gdbarch_init): Update.
2460 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2461 * hppa-tdep.c (hppa_gdbarch_init): Update.
2462 * h8300-tdep.c (h8300_gdbarch_init): Update.
2463 * frv-tdep.c (frv_gdbarch_init): Update.
2464 * cris-tdep.c (cris_gdbarch_init): Update.
2465 * avr-tdep.c (avr_gdbarch_init): Update.
2466 * arm-tdep.c (arm_gdbarch_init): Update.
2467 * alpha-tdep.c (alpha_gdbarch_init): Update.
2468 * sh-tdep.c (sh_init_extra_frame_info): Update.
2469 (sh64_init_extra_frame_info): Update.
2470 * ns32knbsd-nat.c (frame_num_args): Update.
2471 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
2472 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
2473 (xstormy16_frame_chain_valid): Update.
2474 * vax-tdep.c (vax_saved_pc_after_call): Update.
2475 * v850-tdep.c (v850_frame_chain): Update.
2476 (v850_pop_frame): Update.
2477 (v850_init_extra_frame_info): Update.
2478 * sparc-tdep.c (setup_arbitrary_frame): Update.
2479 * ns32k-tdep.c (umax_frame_num_args): Update.
2480 * s390-tdep.c (s390_pop_frame_regular): Update.
2481 * mn10300-tdep.c (mn10300_frame_chain): Update.
2482 (mn10300_pop_frame_regular): Update.
2483 (mn10300_init_extra_frame_info): Update.
2484 * mips-tdep.c (mips_init_frame_pc_first): Update.
2485 (mips_frame_chain): Update.
2486 (mips_pop_frame): Update.
2487 * mcore-tdep.c (mcore_frame_chain): Update.
2488 (mcore_pop_frame): Update.
2489 (mcore_init_extra_frame_info): Update.
2490 * arch-utils.c (init_frame_pc_default): Update.
2491 * m68k-tdep.c (isi_frame_num_args): Update.
2492 (delta68_frame_num_args): Update.
2493 (news_frame_num_args): Update.
2494 * ia64-tdep.c (ia64_pop_frame_regular): Update.
2495 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2496 (alpha_frame_chain): Update.
2497 (alpha_pop_frame): Update.
2498 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
2499 (hppa_init_extra_frame_info): Update.
2500 (hppa_frame_chain): Update.
2501 (hppa_frame_chain_valid): Update.
2502 * cris-tdep.c (cris_init_extra_frame_info): Update.
2503 * avr-tdep.c (avr_init_extra_frame_info): Update.
2504 * arm-tdep.c (arm_frame_chain_valid): Update.
2505 (arm_init_extra_frame_info): Update.
2506 (arm_pop_frame): Update.
2507 * frame.c (frame_pc_unwind): Update.
2508 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
2509 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2510 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2511 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
2512 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
2513 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
2515 2003-03-12 Andrew Cagney <cagney@redhat.com>
2517 Eliminate the need for POP_FRAME.
2518 * frame.c (do_frame_unwind_register): New function.
2519 (frame_pop): When no POP_FRAME, pop the frame using register
2520 unwind and a scratch regcache.
2521 (frame_saved_regs_pop): Delete function.
2522 (trad_frame_unwinder): Update.
2523 * d10v-tdep.c (d10v_frame_pop): Delete function.
2524 (d10v_frame_unwind): Update.
2525 * sentinel-frame.c (sentinel_frame_pop): Delete function.
2526 (sentinel_frame_unwinder): Update.
2527 * dummy-frame.c (dummy_frame_pop): Delete function.
2528 (dummy_frame_unwind): Update.
2529 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
2530 (struct frame_unwind): Update.
2532 2003-03-11 Kevin Buettner <kevinb@redhat.com>
2534 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
2535 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
2536 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
2537 Do range checks on register number obtained from debugging info.
2538 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
2539 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
2540 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
2542 (do_fp_register_row): Fix typo which caused double type to be
2543 used when attempting to unpack a float.
2545 2003-03-11 J. Brobecker <brobecker@gnat.com>
2547 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
2549 2003-03-11 Andrew Cagney <cagney@redhat.com>
2551 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
2552 frame. Problem found by Corinna Vinschen.
2554 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
2556 * doublest.c (floatformat_from_length): Accept also
2557 the real size of 'long double' type.
2559 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
2561 From Klee Dienes <kdienes@apple.com>:
2562 * breakpoint.c (bpstat_copy): Copy the command lines as well
2563 as the old value, to match what is freed in bpstat_clear.
2565 2003-03-10 David Carlton <carlton@math.stanford.edu>
2567 * minsyms.c (add_minsym_to_hash_table): Replace
2568 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2569 (compare_minimal_symbols, compact_minimal_symbols)
2570 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
2571 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
2572 of DEPRECATED_SYMBOL_MATCHES_NAME.
2573 (lookup_minimal_symbol_solib_trampoline): Ditto.
2575 2003-03-10 Andrew Cagney <cagney@redhat.com>
2577 * regcache.h (regcache_cooked_read_ftype): Define.
2578 (regcache_save, regcache_restore): Add a cooked_read parameter.
2579 * regcache.c (regcache_save, regcache_restore): Update.
2580 (do_cooked_read): New function.
2581 (regcache_cpy): Pass do_cooked_read to regcache_save and
2584 2003-03-10 Andrew Cagney <cagney@redhat.com>
2586 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
2587 * gdbarch.h, gdbarch.c: Re-generate.
2588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2589 * x86-64-tdep.h: Update.
2590 * x86-64-tdep.c (x86_64_init_abi): Update.
2591 * v850-tdep.c (v850_gdbarch_init): Update.
2592 * sparc-tdep.c (sparc_gdbarch_init): Update.
2593 * sh-tdep.c (sh_gdbarch_init): Update.
2594 * s390-tdep.c (s390_gdbarch_init): Update.
2595 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2596 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2597 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2598 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2599 * mips-tdep.c (mips_gdbarch_init): Update.
2600 * mcore-tdep.c (mcore_gdbarch_init): Update.
2601 * m68k-tdep.c (m68k_gdbarch_init): Update.
2602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2603 * ia64-tdep.c (ia64_gdbarch_init): Update.
2604 * i386-tdep.c (i386_gdbarch_init): Update.
2605 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2606 * hppa-tdep.c (hppa_gdbarch_init): Update.
2607 * h8300-tdep.c (h8300_gdbarch_init): Update.
2608 * frv-tdep.c (frv_gdbarch_init): Update.
2609 * cris-tdep.c (cris_gdbarch_init): Update.
2610 * avr-tdep.c (avr_gdbarch_init): Update.
2611 * arm-tdep.c (arm_gdbarch_init): Update.
2612 * alpha-tdep.c (alpha_gdbarch_init): Update.
2613 * sh-tdep.c (sh_init_extra_frame_info): Update.
2614 (sh64_init_extra_frame_info): Update.
2615 * ns32knbsd-nat.c (frame_num_args): Update.
2616 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
2617 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
2618 (xstormy16_frame_chain_valid): Update.
2619 * vax-tdep.c (vax_saved_pc_after_call): Update.
2620 * v850-tdep.c (v850_frame_chain): Update.
2621 (v850_pop_frame): Update.
2622 (v850_init_extra_frame_info): Update.
2623 * sparc-tdep.c (setup_arbitrary_frame): Update.
2624 * ns32k-tdep.c (umax_frame_num_args): Update.
2625 * s390-tdep.c (s390_pop_frame_regular): Update.
2626 * mn10300-tdep.c (mn10300_frame_chain): Update.
2627 (mn10300_pop_frame_regular): Update.
2628 (mn10300_init_extra_frame_info): Update.
2629 * mips-tdep.c (mips_init_frame_pc_first): Update.
2630 (mips_frame_chain): Update.
2631 (mips_pop_frame): Update.
2632 * mcore-tdep.c (mcore_frame_chain): Update.
2633 (mcore_pop_frame): Update.
2634 (mcore_init_extra_frame_info): Update.
2635 * arch-utils.c (init_frame_pc_default): Update.
2636 * m68k-tdep.c (isi_frame_num_args): Update.
2637 (delta68_frame_num_args): Update.
2638 (news_frame_num_args): Update.
2639 * ia64-tdep.c (ia64_pop_frame_regular): Update.
2640 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2641 (alpha_frame_chain): Update.
2642 (alpha_pop_frame): Update.
2643 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
2644 (hppa_init_extra_frame_info): Update.
2645 (hppa_frame_chain): Update.
2646 (hppa_frame_chain_valid): Update.
2647 * cris-tdep.c (cris_init_extra_frame_info): Update.
2648 * avr-tdep.c (avr_init_extra_frame_info): Update.
2649 * arm-tdep.c (arm_frame_chain_valid): Update.
2650 (arm_init_extra_frame_info): Update.
2651 (arm_pop_frame): Update.
2652 * frame.c (frame_pc_unwind): Update.
2653 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
2654 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2655 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2656 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
2657 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
2658 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
2660 2003-03-10 Andrew Cagney <cagney@redhat.com>
2662 * gdbarch.sh (gdbarch_unwind_pc): New method.
2663 * gdbarch.h, gdbarch.c: Regenerate.
2664 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
2665 but use read_pc and FRAME_SAVED_PC as fall backs.
2666 (frame_saved_regs_pc_unwind): Delete function.
2667 (trad_frame_unwinder): Update.
2668 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
2669 (struct frame_unwind): Update.
2670 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
2671 (dummy_frame_unwind): Update.
2672 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
2673 (sentinel_frame_unwinder): Update.
2674 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
2675 (d10v_frame_unwind): Update.
2676 (d10v_unwind_pc): New function.
2677 (d10v_gdbarch_init): Set unwind_pc.
2679 2003-03-10 Andrew Cagney <cagney@redhat.com>
2681 * gdbarch.h: Re-generate.
2683 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
2685 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
2688 2003-03-08 Mark Kettenis <kettenis@gnu.org>
2690 * gdbarch.sh (save_dummy_frame_tos): Add comment.
2692 2003-03-08 Andrew Cagney <cagney@redhat.com>
2694 * cli-out.c: Update copyright.
2695 (cli_out_data): Define typedef. Use instead of ui_out_data.
2697 2003-03-08 Andrew Cagney <cagney@redhat.com>
2699 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
2702 2003-03-07 Andrew Cagney <cagney@redhat.com>
2704 * gdbarch.sh: Don't generate two macro definitions when an
2705 undefined macro taking no arguments.
2706 * gdbarch.h: Regenerate.
2708 2002-03-07 Michal Ludvig <mludvig@suse.cz>
2710 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
2711 (x86_64_unwind_dummy_id): New functions.
2712 (x86_64_init_abi): Register these two new functions.
2714 2003-03-07 Michal Ludvig <mludvig@suse.cz>
2716 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
2717 (x86_64_skip_prologue): Move prologue detection to
2719 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
2721 2003-03-05 Andrew Cagney <cagney@redhat.com>
2723 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
2724 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
2725 * frame.c (get_prev_frame): Restructure the frame ID unwind code
2726 to use unwind_dummy_id when a dummy frame.
2727 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
2729 * gdbarch.h, gdbarch.c: Regneerate.
2731 2003-03-05 Andrew Cagney <cagney@redhat.com>
2733 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
2734 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
2735 Do not use d10v_read_sp or d10v_read_fp when obtaining register
2738 2003-03-05 Andrew Cagney <cagney@redhat.com>
2740 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
2741 (struct d10v_unwind_cache): Delete field "frameless". Replace
2742 "next_addr" with "sp_offset". Add "r11_offset".
2743 (d10v_frame_unwind_cache): Update.
2744 (prologue_find_regs): Update. When "mv r11, sp", save the
2745 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
2746 RN was saved in r11_offset.
2748 2003-03-05 Andrew Cagney <cagney@redhat.com>
2750 * frame.c (deprecated_update_frame_pc_hack): Also update the the
2751 cached PC value in the next frame.
2753 2003-03-05 Andrew Cagney <cagney@redhat.com>
2755 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
2756 "id_unwind_cache" with "id".
2757 (frame_id_unwind): Delete declaration.
2758 * frame.c (frame_id_unwind): Delete function.
2759 (get_prev_frame): Call the frame id unwind method directly. Store
2760 the returned next frame's ID value in NEXT_FRAME. Note that there
2761 is a problem with the wrong unwind ID being called with the wrong
2764 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
2766 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
2768 2003-03-05 James Ingham <jingham@apple.com>
2769 Daniel Jacobowitz <drow@mvista.com>
2771 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
2772 (auto_cp_abi): New variable.
2773 (current_cp_abi, num_cp_abis): Make static.
2774 (CP_ABI_MAX): Define.
2775 (cp_abis): Turn into an array.
2776 (value_virtual_fn_field): Fix formatting.
2777 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
2779 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
2780 (list_cp_abis, _initialize_cp_abi): New functions.
2781 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
2782 declarations for cp_abis, num_cp_abis, current_cp_abi, and
2783 switch_to_cp_abi. Update prototype for register_cp_abi.
2784 * Makefile.in (cp-abi.o): Update dependencies.
2785 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
2786 instead of switch_to_cp_abi.
2787 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
2789 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
2791 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
2793 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
2795 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
2796 * dwarf2loc.c: Include "regcache.h".
2797 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
2799 * Makefile.in (dwarf2loc.o): Update dependencies.
2801 2003-03-04 Theodore A. Roth <troth@openavr.org>
2803 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
2804 number of io registers reported by remote target is not a multiple of
2807 2003-03-04 David Carlton <carlton@math.stanford.edu>
2809 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
2810 (lookup_symbol_aux_psymtabs): Update call to
2811 lookup_partial_symbol.
2812 (lookup_transparent_type, find_main_psymtab)
2813 (make_symbol_overload_list): Ditto.
2815 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
2817 * MAINTAINERS (Write after approval): Update my email address.
2819 2003-03-03 Andrew Cagney <cagney@redhat.com>
2821 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
2822 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
2823 predicate. Replace MAX_REGISTER_RAW_SIZE.
2824 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
2825 MAX_REGISTER_VIRTUAL_SIZE.
2826 * regcache.c (legacy_max_register_raw_size): New function.
2827 (legacy_max_register_virtual_size): New function.
2828 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
2829 (MAX_REGISTER_RAW_SIZE): Define.
2830 (legacy_max_register_raw_size): Declare.
2831 (legacy_max_register_virtual_size): Declare.
2832 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2833 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
2834 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2835 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
2836 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2837 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
2838 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2839 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2840 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2842 * vax-tdep.c (vax_gdbarch_init): Update.
2843 * v850-tdep.c (v850_gdbarch_init): Update.
2844 * sparc-tdep.c (sparc_gdbarch_init): Update.
2845 * sh-tdep.c (sh_gdbarch_init): Update.
2846 * s390-tdep.c (s390_gdbarch_init): Update.
2847 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2848 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2849 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2850 * mips-tdep.c (mips_gdbarch_init): Update.
2851 * mcore-tdep.c (mcore_gdbarch_init): Update.
2852 * m68k-tdep.c (m68k_gdbarch_init): Update.
2853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2854 * ia64-tdep.c (ia64_gdbarch_init): Update.
2855 * i386-tdep.c (i386_gdbarch_init): Update.
2856 * hppa-tdep.c (hppa_gdbarch_init): Update.
2857 * h8300-tdep.c (h8300_gdbarch_init): Update.
2858 * frv-tdep.c (frv_gdbarch_init): Update.
2859 * cris-tdep.c (cris_gdbarch_init): Update.
2860 * avr-tdep.c (avr_gdbarch_init): Update.
2861 * arm-tdep.c (arm_gdbarch_init): Update.
2862 * alpha-tdep.c (alpha_gdbarch_init): Update.
2863 * d10v-tdep.c (d10v_gdbarch_init): Do not set
2864 max_register_raw_size or max_register_virtual_size.
2866 2003-03-03 David Carlton <carlton@math.stanford.edu>
2868 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
2869 SYMBOL_MATCHES_NAME, add comment.
2870 (SYMBOL_MATCHES_NATURAL_NAME): New.
2871 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
2872 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
2873 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
2874 * symtab.c (lookup_partial_symbol): Use
2875 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
2877 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
2878 SYMBOL_MATCHES_NAME.
2881 2003-03-03 David Carlton <carlton@math.stanford.edu>
2883 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
2884 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
2885 by regexp matching against SYMBOL_NATURAL_NAME.
2887 2003-03-03 David Carlton <carlton@math.stanford.edu>
2889 * linespec.c (find_method): Extract code into collect_methods.
2890 (collect_methods): New.
2892 2003-03-02 Mark Kettenis <kettenis@gnu.org>
2894 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
2897 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
2898 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2900 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
2902 * arch-utils.c (generic_register_byte): Fix to use the loop index
2903 and not regnum when summing the size of all registers up to regnum.
2905 2003-03-01 Andrew Cagney <cagney@redhat.com>
2907 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
2908 FRAME_INIT_SAVED_REGS.
2909 * gdbarch.h, gdbarch.c: Regenerate.
2910 * stack.c (frame_info): Update.
2911 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
2912 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
2913 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
2914 * ns32k-tdep.c (ns32k_pop_frame): Update.
2915 * mips-tdep.c (mips_pop_frame): Update.
2916 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
2917 * ia64-tdep.c (ia64_frame_chain): Update.
2918 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
2919 (ia64_frameless_function_invocation): Update.
2920 (ia64_init_extra_frame_info): Update.
2921 (ia64_pop_frame_regular): Update.
2922 * frame.h (struct frame_info): Update comment.
2923 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
2924 * frame.c (frame_saved_regs_register_unwind): Update.
2925 (frame_saved_regs_register_unwind): Update.
2926 (deprecated_generic_get_saved_register): Update.
2927 * cris-tdep.c: Update comment.
2928 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
2930 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2931 * x86-64-tdep.c (x86_64_init_abi): Update.
2932 * vax-tdep.c (vax_gdbarch_init): Update.
2933 * v850-tdep.c (v850_gdbarch_init): Update.
2934 * sparc-tdep.c (sparc_gdbarch_init): Update.
2935 * sh-tdep.c (sh_gdbarch_init): Update.
2936 * s390-tdep.c (s390_gdbarch_init): Update.
2937 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2938 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2939 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2940 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2941 * mips-tdep.c (mips_gdbarch_init): Update.
2942 * mcore-tdep.c (mcore_gdbarch_init): Update.
2943 * m68k-tdep.c (m68k_gdbarch_init): Update.
2944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2945 * ia64-tdep.c (ia64_gdbarch_init): Update.
2946 * i386-tdep.c (i386_gdbarch_init): Update.
2947 * frv-tdep.c (frv_gdbarch_init): Update.
2948 * avr-tdep.c (avr_gdbarch_init): Update.
2949 * arm-tdep.c (arm_gdbarch_init): Update.
2950 * alpha-tdep.c (alpha_gdbarch_init): Update.
2952 2003-03-01 Andrew Cagney <cagney@redhat.com>
2954 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
2955 option enum and switch. When no windows, set the interpreter to
2958 2003-03-01 Andrew Cagney <cagney@redhat.com>
2960 * main.c (captured_main): Replace magic option characters with an
2963 2003-03-01 Andrew Cagney <cagney@redhat.com>
2965 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
2966 INIT_EXTRA_FRAME_INFO.
2967 * gdbarch.h, gdbarch.c: Regenerate.
2968 * arm-tdep.c: Update comments.
2969 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
2970 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
2971 * frame.h, avr-tdep.c: Ditto.
2972 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
2973 (create_new_frame, legacy_get_prev_frame): Ditto.
2974 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2975 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2976 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
2977 deprecated_init_extra_frame_info instead of init_extra_frame_info.
2978 * x86-64-tdep.c (x86_64_init_abi): Ditto.
2979 * v850-tdep.c (v850_gdbarch_init): Ditto.
2980 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2981 * sh-tdep.c (sh_gdbarch_init): Ditto.
2982 * s390-tdep.c (s390_gdbarch_init): Ditto.
2983 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
2984 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2985 * mips-tdep.c (mips_gdbarch_init): Ditto.
2986 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2987 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2988 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2989 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2990 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2991 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2992 * frv-tdep.c (frv_gdbarch_init): Ditto.
2993 * cris-tdep.c (cris_gdbarch_init): Ditto.
2994 * avr-tdep.c (avr_gdbarch_init): Ditto.
2995 * arm-tdep.c (arm_gdbarch_init): Ditto.
2996 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2997 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2999 2003-03-01 Andrew Cagney <cagney@redhat.com>
3001 * gdbarch.sh (register_type): New function with predicate.
3002 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
3003 * gdbarch.h, gdbarch.c: Re-generate.
3004 * arch-utils.c (generic_register_byte): Use generic_register_size.
3005 (generic_register_size): When available, use
3006 gdbarch_register_type.
3007 * regcache.c (init_regcache_descr): When available, initialize the
3008 register type array using gdbarch_register_type. If the
3009 architecture supplies gdbarch_register_type, do not use the legacy
3011 * d10v-tdep.c (d10v_register_type): Replace
3012 d10v_register_virtual_type.
3013 (d10v_gdbarch_init): Set register_type instead of
3014 register_virtual_type.
3016 2003-03-01 Andrew Cagney <cagney@redhat.com>
3018 * Makefile.in (ax-gdb.o): Update dependencies.
3019 * ax-gdb.c: Include "regcache.h".
3020 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
3021 * findvar.c (value_of_register): Ditto.
3022 * infcmd.c (default_print_registers_info): Ditto.
3024 2003-03-01 Mark Kettenis <kettenis@gnu.org>
3026 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
3027 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3029 2003-03-01 Mark Kettenis <kettenis@gnu.org>
3031 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
3034 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
3036 * Makefile.in (dwarf2loc.o): Update dependencies.
3037 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
3038 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
3039 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
3040 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
3041 (locexpr_tracepoint_var_ref): New function.
3042 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
3044 2003-02-28 Andrew Cagney <cagney@redhat.com>
3046 * regcache.c (register_size): New function.
3047 * regcache.h (register_size): Declare
3048 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
3049 max_register_size instead of MAX_REGISTER_RAW_SIZE.
3051 2003-02-28 David Carlton <carlton@math.stanford.edu>
3053 * linespec.c (decode_compound): Extract code into find_method.
3056 2003-02-28 J. Brobecker <brobecker@gnat.com>
3058 * Makefile.in: Add rules to build and link in observer.o.
3060 2003-02-27 J. Brobecker <brobecker@gnat.com>
3062 * observer.c: Minor comments edits.
3064 2003-02-27 J. Brobecker <brobecker@gnat.com>
3066 * observer.h, observer.c: New file.
3068 2003-02-27 Andrew Cagney <cagney@redhat.com>
3070 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
3072 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
3074 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
3075 (M6812_OP_STS_EXT): Likewise.
3076 (m6811_prologue): Use the above to recognize prologue.
3077 (m6812_prologue): Likewise.
3079 2003-02-27 David Carlton <carlton@math.stanford.edu>
3081 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
3083 (compare_psymbols): Ditto.
3084 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
3086 2003-02-27 Michael Snyder <msnyder@redhat.com>
3088 * f-lang.c (build_fortran_types): New function.
3089 (_initialize_f_language): Gdbarch-register built-in fortran types.
3090 * doublest.c (extract_floating): Fix warning text.
3092 2003-02-27 Andrew Cagney <cagney@redhat.com>
3094 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
3095 predicate. Replaces PUSH_DUMMY_FRAME.
3096 * gdbarch.h, gdbarch.c: Regnerate.
3097 * valops.c (hand_function_call): Update. Call
3098 generic_push_dummy_frame directly.
3099 * vax-tdep.c (vax_gdbarch_init): Update.
3100 * sparc-tdep.c (sparc_gdbarch_init): Update.
3101 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3102 * m68k-tdep.c (m68k_gdbarch_init): Update.
3103 * hppa-tdep.c (hppa_gdbarch_init): Update.
3104 * alpha-tdep.c (alpha_gdbarch_init): Update.
3105 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3106 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3107 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
3108 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
3109 push_dummy_frame to generic_push_dummy_frame.
3110 * v850-tdep.c (v850_gdbarch_init): Ditto.
3111 * sh-tdep.c (sh_gdbarch_init): Ditto.
3112 * s390-tdep.c (s390_gdbarch_init): Ditto.
3113 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3114 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3115 * mips-tdep.c (mips_gdbarch_init): Ditto.
3116 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3118 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3119 * i386-tdep.c (i386_gdbarch_init): Ditto.
3120 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3121 * frv-tdep.c (frv_gdbarch_init): Ditto.
3122 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3123 * cris-tdep.c (cris_gdbarch_init): Ditto.
3124 * avr-tdep.c (avr_gdbarch_init): Ditto.
3125 * arm-tdep.c (arm_gdbarch_init): Ditto.
3127 2003-02-26 Kevin Buettner <kevinb@redhat.com>
3129 * mips-tdep.c (show_mips_abi): New function.
3130 (_initialize_mips_tdep): Use show_mips_abi() to implement the
3131 command ``show mips abi''.
3133 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
3135 From Elena Zannoni <ezannoni@redhat.com>
3136 * dbxread.c (process_one_symbol): Only record line 0 if one or
3137 more sline entries have been seen for the function.
3139 2003-02-26 Michael Chastain <mec@shout.net>
3141 * configure: Regenerate with autoconf 000227.
3143 2003-02-26 Michael Chastain <mec@shout.net>
3146 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
3147 for old libc5/glibc.
3148 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
3150 2003-02-26 Kris Warkentin <kewarken@qnx.com>
3152 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
3153 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
3155 2003-02-26 Michael Chastain <mec@shout.net>
3157 * configure.in: New variable HAVE_UINTPTR_T.
3158 * configure, config.in: Regenerated.
3160 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
3163 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
3165 2003-02-25 Andrew Cagney <cagney@redhat.com>
3167 * frame.c (get_prev_frame): Add comment on check for
3168 inside_entry_func. Only check for inside_entry_file when not a
3169 dummy and not a sentinel. Check that the new frame is not inner
3172 2003-02-25 Andrew Cagney <cagney@redhat.com>
3174 * frame.c (frame_debug): New variable.
3175 (_initialize_frame): Add "set/show debug frame" command.
3176 (get_prev_frame): When frame_debug, print reason why unwind
3179 2003-02-25 Michael Chastain <mec@shout.net>
3181 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
3182 to avoid uintptr_t definition problems.
3184 2003-02-25 David Carlton <carlton@math.stanford.edu>
3186 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
3187 (SYMBOL_LINKAGE_NAME): Ditto.
3188 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
3189 SYMBOL_LINKAGE_NAME.
3190 (struct general_symbol_info): Expand comment.
3191 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
3192 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
3193 (SYMBOL_MATCHES_REGEXP): Ditto.
3194 * symtab.c (symbol_natural_name): New function.
3195 * objfiles.h: Replace all uses of SYMBOL_NAME by
3196 DEPRECATED_SYMBOL_NAME.
3197 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
3198 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
3199 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
3200 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
3201 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
3202 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
3203 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
3204 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
3205 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
3206 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
3208 * ada-exp.y: Update copyright.
3209 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
3210 * cp-valprint.c: Ditto.
3212 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
3214 * infptrace.c (detach): Do not flag error if ptrace detach fails
3215 and errno is set to ESRCH.
3217 2003-02-24 Andrew Cagney <cagney@redhat.com>
3219 * infptrace.c (udot_info): Change type of udot_off to long. Use
3220 paddr when printing udot_off's value.
3222 2003-02-24 David Carlton <carlton@math.stanford.edu>
3224 * symtab.c (make_symbol_overload_list): Only read in partial
3225 symtabs containing a matching partial symbol.
3227 2003-02-24 David Carlton <carlton@math.stanford.edu>
3229 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
3230 do the comparison, not strcmp.
3231 * symfile.c (compare_psymbols): Ditto.
3232 * defs.h: Declare strcmp_iw_ordered.
3233 * utils.c (strcmp_iw_ordered): New function.
3235 2003-02-24 Jim Blandy <jimb@redhat.com>
3237 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
3238 support, shared libs): Remove my name from here, to better reflect
3241 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3243 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
3244 (target_ops): Add to_have_continuable_watchpoint.
3245 * target.c (update_current_target): Add INHERIT line for
3246 to_have_continuable_watchpoint.
3247 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
3248 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
3249 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
3250 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
3252 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
3254 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
3257 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3259 * solib.c (solib_open): Call target defined search function after
3260 failing with solib-search-path.
3261 * solist.h (target_so_ops): Add find_and_open_solib function hook and
3262 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
3264 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3266 * MAINTAINERS: Add myself to Write After section.
3268 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
3270 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
3272 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
3274 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
3275 (m68hc11_add_reggroups): New function.
3276 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
3277 (m68hc11_gdbarch_init): Install the reggroups.
3278 (_initialize_m68hc11_tdep): Initialize them.
3280 2003-02-21 James E Wilson <wilson@tuliptree.org>
3282 * MAINTAINERS: Update my email address.
3284 2003-02-21 David Carlton <carlton@math.stanford.edu>
3286 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
3288 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
3290 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
3291 * symtab.h: Add opaque declarations of struct axs_value and
3293 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
3294 (struct location_funcs): New type.
3295 (struct symbol): Add "loc" to aux_value.
3296 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
3297 * dwarf2read.c: Include "dwarf2expr.h".
3298 (dwarf2_symbol_mark_computed): New function.
3299 (read_func_scope): Use it.
3300 (var_decode_location): New function.
3301 (new_symbol): Use it.
3302 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
3304 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
3305 (dwarf2expr_h, dwarf2loc_h): New variables.
3306 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
3307 (dwarf2expr.o, dwarf2loc.o): New rules.
3308 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
3309 * buildsym.c (finish_block): Handle LOC_COMPUTED and
3311 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3312 * m2-exp.y (yylex): Likewise.
3313 * printcmd.c (address_info, print_frame_args): Likewise.
3314 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
3315 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3316 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
3317 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
3318 * symtab.c (lookup_block_symbol): Likewise.
3320 2003-02-20 Adam Fedor <fedor@gnu.org>
3322 * symtab.h: Remove objc_specific struct
3323 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
3324 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
3325 Have language_objc use cplus_specific struct.
3327 2003-02-20 Tom Tromey <tromey@redhat.com>
3329 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
3330 TYPE_NAME, when printing a String value. PR java/1075.
3332 2003-02-20 Adam Fedor <fedor@gnu.org>
3334 * objc-lang.h (find_methods): Remove declaration.
3335 * objc-lang.c (find_methods): Make static.
3337 2003-02-20 Christopher Faylor <cgf@redhat.com>
3339 * win32-nat.c (get_image_name): Check return value from
3341 (child_xfer_memory): Ditto.
3343 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
3345 * configure.in (TARGET_SYSTEM_ROOT): Set default to
3346 ${exec_prefix}/${target_alias}/sys-root. Match explicit
3347 '${exec_prefix}' (in addition to the expansion thereof) as
3349 * configure: Rebuilt.
3351 2003-02-20 David Carlton <carlton@math.stanford.edu>
3353 * symtab.c (search_symbols): Revert the search_symbols part of my
3354 2002-12-23 patch. Add comment.
3356 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3358 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
3359 * dbxread.c (elfstab_build_psymtabs): Don't call
3360 install_minimal_symbols.
3361 (stabsect_build_psymtabs): Likewise.
3362 * elfread.c (elf_symfile_read): Call install_minimal_symbols
3364 * somread.c (som_symfile_read): Call install_minimal_symbols
3365 and do_cleanups earlier.
3366 * nlmread.c (nlm_symfile_read): Likewise.
3367 * mdebugread.c (elfmdebug_build_psymtabs): Call
3368 install_minimal_symbols and make appropriate cleanups.
3370 2003-02-20 Kevin Buettner <kevinb@redhat.com>
3372 * solib.c (reload_shared_libraries): New function.
3373 (_initialize_solib): Add callbacks for ``set solib-search-path''
3374 and ``set solib-absolute-prefix''.
3376 2003-02-20 David Carlton <carlton@math.stanford.edu>
3378 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
3380 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
3381 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
3382 * ada-typeprint.c (ada_typedef_print): Ditto.
3383 * ax-gdb.c (gen_var_ref): Ditto.
3384 * breakpoint.c (print_one_breakpoint): Ditto.
3385 * buildsym.c (finish_block): Ditto.
3386 * c-valprint.c (c_val_print): Ditto.
3387 * expprint.c (print_subexp): Ditto.
3388 * findvar.c (locate_var_value): Ditto.
3389 * infcmd.c (jump_command): Ditto.
3390 * linespec.c (decode_line_2, decode_compound): Ditto.
3391 * maint.c (maintenance_translate_address): Ditto.
3392 * objc-lang.c (compare_selectors, compare_classes): Ditto.
3393 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
3395 * p-valprint.c (pascal_val_print): Ditto.
3396 * stabsread.c (define_symbol): Ditto.
3397 * stack.c (print_frame, frame_info, print_block_frame_locals)
3398 (print_frame_arg_vars, return_command): Ditto.
3399 * symfile.c (compare_symbols, compare_psymbols): Ditto.
3400 * symmisc.c (print_symbol): Ditto.
3401 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
3402 (compare_search_syms, print_symbol_info, print_msymbol_info)
3403 (rbreak_command): Ditto.
3404 * tracepoint.c (tracepoints_info): Ditto.
3405 * typeprint.c (typedef_print): Ditto.
3406 * valops.c (value_of_variable, hand_function_call): Ditto.
3407 * cli/cli-cmds.c (edit_command, list_command): Ditto.
3408 * ada-typeprint.c: Update Copyright.
3409 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
3410 * tracepoint.c, cli/cli-cmds.c: Ditto.
3412 2003-02-20 Kevin Buettner <kevinb@redhat.com>
3414 * frame.c (generic_unwind_get_saved_register): Make non-static.
3415 * frame.h (generic_unwind_get_saved_register): Declare.
3416 * mips-tdep.c (read_next_frame_reg): Fetch register from
3417 current regcache when frame is NULL.
3418 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
3420 (mips_get_saved_register): Call generic_unwind_get_saved_register()
3421 instead of frame_register_unwind().
3423 2003-02-20 Andrew Cagney <ac131313@redhat.com>
3425 * remote-sim.c (gdbsim_insert_breakpoint)
3426 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
3429 2003-02-20 Andrew Cagney <ac131313@redhat.com>
3431 * remote.c (_initialize_remote): Add commands "set/show remote
3432 hardware-watchpoint-limit" and "set/show remote
3433 hardware-breakpoint-limit".
3434 (remote_hw_watchpoint_limit): Initialize to -1.
3435 (remote_hw_breakpoint_limit): Ditto.
3436 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
3438 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
3440 * coff-pe-read.c: New file - support reading of minimal symbols from a
3441 portable executable using the export table.
3442 * coff-pe-read.h: New file.
3443 * coffread.c: Include coff-pe-read.h.
3444 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
3445 debugging symbols found.
3446 * Makefile.in (SFILES): Add coff-pe-read.o.
3447 (coff_pe_read_h): Define.
3448 (COMMON_OBS): Add coff-pe-read.o.
3449 (coffread.o): Add coff_pe_read_h dependency.
3450 (coff-pe-read.o): New target.
3452 2003-02-19 David Carlton <carlton@math.stanford.edu>
3454 * Makefile.in (SFILES): Add block.c.
3456 (COMMON_OBS): Add block.o.
3458 (x86-64-tdep.o): Add $(block_h).
3459 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
3460 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
3461 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
3462 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
3463 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
3464 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
3465 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
3466 * value.h: Add opaque declaration for struct block.
3467 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
3468 * ada-lang.h: Ditto.
3469 * x86-64-tdep.c: #include "block.h"
3470 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
3471 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
3472 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
3473 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
3474 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
3475 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
3476 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
3477 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
3478 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
3479 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
3480 * symtab.c (block_function): Ditto.
3481 (contained_in): Ditto.
3482 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
3483 block.h. Add opaque declaration for struct block.
3484 * symtab.h: Move block_function and contained_in declarations to
3485 block.h. Add opaque declarations for struct block, struct
3487 (struct block): Move to block.h.
3488 (struct blockvector): Ditto.
3489 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
3490 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
3491 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
3492 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
3493 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
3495 * block.c: New file.
3496 * block.h: New file.
3498 2003-02-19 Theodore A. Roth <troth@openavr.org>
3500 * avr-tdep.c (avr_extract_return_value): Remove function.
3501 (avr_store_return_value): Remove function.
3502 (avr_extract_struct_value_address): Remove function.
3503 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
3505 2003-02-19 Andrew Cagney <ac131313@redhat.com>
3507 * rs6000-tdep.c: Include "gdb_assert.h".
3508 (registers_e500): Add "acc" and "spefscr".
3509 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
3510 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
3511 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
3513 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
3515 2003-02-18 Keith Seitz <keiths@redhat.com>
3517 * Makefile.in: Add gdbtk-interps.c.
3519 2003-02-18 Kevin Buettner <kevinb@redhat.com>
3521 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
3522 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
3524 2003-02-18 Andrew Cagney <cagney@redhat.com>
3526 * symtab.h (struct objfile): Add opaque declaration.
3528 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
3530 From Jim Ingham <jingham@apple.com>:
3531 * dbxread.c (process_one_symbol): Use last_function_start rather
3532 than function_start_offset to find the real beginning of the
3533 current function. The latter is just the text section offset on
3534 some systems, the former is always the real function start.
3536 2003-02-17 Andrew Cagney <cagney@redhat.com>
3538 * configure.in: Revert ${target} != ${host}.
3540 2003-02-17 Andrew Cagney <ac131313@redhat.com>
3542 * configure.in (Makefile): Use the test ${target} != ${host},
3543 instead of the absence of the "nm.h" file, to determine of the
3544 configuration non-native.
3545 * configure: Regenerate.
3547 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
3549 From Brian Ford <ford@vss.fsi.com>
3551 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
3552 conditionalize tui_active test.
3553 (lookup_cmd_1): Ditto.
3555 2003-02-14 Mark Kettenis <kettenis@gnu.org>
3557 * configure.in: Add check for _etext.
3558 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
3560 * config.in, configure: regenerated.
3562 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
3564 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
3566 2003-02-14 Andrew Cagney <ac131313@redhat.com>
3568 * main.c (tui_version): Delete variable.
3569 (captured_main): When --tui, set interpreter_p to "tui" instead of
3570 enabling tui_version.
3571 * printcmd.c (display_command) [TUI]: Test tui_active instead of
3573 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
3574 * cli/cli-cmds.c (disassemble_command): Ditto.
3575 * defs.h (tui_version): Delete declaration.
3576 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
3577 (tui-interp.o): Add rules.
3578 (SUBDIR_TUI_OBS): Add "tui-interp.o".
3580 2003-02-14 Christopher Faylor <cgf@redhat.com>
3582 * win32-nat.c (register_loaded_dll): Correctly set address range for
3585 2003-02-12 Jason Molenda (jmolenda@apple.com)
3587 * symmisc.c (print_objfile_statistics): Include information about
3588 the number of psymtabs and symtabs in each object file.
3590 2003-02-13 Keith R Seitz <keiths@redhat.com>
3592 * main.h (struct captured_main_args): Add interpreter_p.
3593 * main.c (captured_main): Initialize interpreter_p from context.
3594 * gdb.c (main): Set interpreter_p argument.
3595 * Makefile.in (gdb.o): Add dependency for interps.h.
3597 2003-02-12 Andrew Cagney <ac131313@redhat.com>
3599 * event-top.c (cli_command_loop): Delete declaration.
3600 (_initialize_event_loop): Delete function setting event_loop_hook.
3601 * event-top.h (cli_command_loop): Declare. Update copyright.
3602 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
3603 * interps.c (current_interp_command_loop): When event_loop_p, call
3606 2003-02-12 Andrew Cagney <ac131313@redhat.com>
3608 * interps.h (interp_command_loop_ftype): Change return type to
3611 2003-02-12 Michal Ludvig <mludvig@suse.cz>
3613 * x86-64-tdep.c (x86_64_extract_return_value)
3614 (x86_64_store_return_value): Use regcache instead of regbuf.
3615 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
3616 * x86-64-linux-nat.c (fill_gregset): Use regcache.
3618 2003-02-11 Andrew Cagney <ac131313@redhat.com>
3620 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
3621 * aclocal.m4: Regenerate.
3622 * configure: Regenerate.
3624 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
3625 TCL_LD_SEARCH_FLAGS.
3627 2003-02-10 Michal Ludvig <mludvig@suse.cz>
3629 * dwarf2cfi.c: Reindented.
3631 2003-02-09 Andrew Cagney <ac131313@redhat.com>
3633 * interps.c (clear_interpreter_hooks): Convert function definition
3636 2003-02-07 David Carlton <carlton@math.stanford.edu>
3638 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
3640 2003-02-07 Kevin Buettner <kevinb@redhat.com>
3642 * gdbtypes.h (struct main_type): Move ``length'' field from here...
3643 (struct type): ...to here.
3644 (TYPE_LENGTH): Adjust to reflect different location of ``length''
3646 * gdbtypes.c (make_qualified_type): Set length on newly created type.
3647 (replace_type): Set length on all type variants for a given type.
3649 2003-02-07 Andrew Cagney <ac131313@redhat.com>
3651 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
3653 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
3655 2003-02-06 Andrew Cagney <ac131313@redhat.com>
3657 * Makefile.in (symm-nat.o): Update dependencies.
3658 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
3659 (lynx-nat.o, ia64-linux-nat.): Ditto.
3660 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
3661 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
3662 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
3664 * Makefile.in (inflow_h): Define.
3665 (procfs.o, inflow.o, procfs.o): Update dependencies.
3666 * inftarg.c (child_stop): Delete extern declaration of
3667 inferior_process_group. Include "inflow.h".
3668 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
3669 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
3670 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
3671 (our_process_group, inferior_process_group): Extern declarations.
3673 * procfs.c: Include "gdb_assert.h".
3675 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
3676 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
3677 * jv-typeprint.c (java_type_print_base): Ditto.
3678 * typeprint.c (typedef_print): Eliminate STREQ.
3679 * cli/cli-script.c (define_command, define_command): Ditto.
3680 * main.c (captured_main): Ditto.
3681 * values.c (lookup_internalvar): Ditto.
3682 * utils.c (safe_strerror, parse_escape): Eliminate assignment
3683 within `if' conditional.
3684 * linespec.c (decode_line_2): Ditto.
3685 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
3686 (bfd_openw_with_cleanup): Ditto.
3688 2003-02-07 Mark Kettenis <kettenis@gnu.org>
3690 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
3691 legacy_extract_return_value and store_return_value to
3692 legacy_return_value.
3694 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
3696 * win32-nat.c (get_relocated_section_addrs): New function. Find
3697 section load addresses for symbol handling in relocated DLLs.
3698 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
3700 2003-02-05 Fred Fish <fnf@intrinsity.com>
3702 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
3704 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
3706 (angel_RDI_info): Ditto.
3707 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
3709 (threads_continue_all_with_signals): Ditto.
3711 2003-02-05 Jim Ingham <jingham@apple.com>
3712 Keith Seitz <keiths@redhat.com>
3713 Elena Zannoni <ezannoni@redhat.com>
3714 Andrew Cagney <ac131313@redhat.com>
3716 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
3717 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
3718 (SUBDIR_MI_OBS): Add "mi-interp.o".
3719 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
3720 (SFILES): Add "interps.c".
3721 (COMMON_OBS): Add "interps.o".
3722 (interps_h, mi_main_h): Define.
3723 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
3724 (mi-main.o, main.o, event-top.o): Update dependencies.
3725 * cli/cli-interp.c: New file.
3726 * interps.h, interps.c: New files.
3727 * top.c: (gdb_init): Don't install the default interpreter, handed
3729 * main.c: Include "interps.h".
3730 (interpreter_p): Note that it should malloc'ed.
3731 (captured_command_loop): Call current_interp_command_loop.
3732 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
3733 xfree and xstrdup when updating interpreter_p. Install the
3734 default interpreter. Add hack to stop mi1's copyright notice
3736 * event-top.h (gdb_setup_readline): Declare.
3737 (gdb_disable_readline): Declare.
3738 * event-top.c: Include "interps.h".
3739 (display_gdb_prompt): Call current_interp_display_prompt_p.
3740 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
3741 gdb_stdlog, and gdb_stdtarg.
3742 (_initialize_event_loop): Don't call gdb_setup_readline.
3743 * cli-out.c (cli_out_set_stream): New function.
3744 * cli-out.h (cli_out_set_stream): Declare.
3746 2003-02-06 Mark Kettenis <kettenis@gnu.org>
3748 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
3749 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
3750 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
3751 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
3752 config/i386/i386v42mp.mt: Removed.
3754 2003-02-05 Mark Kettenis <kettenis@gnu.org>
3756 * configure.tgt (*-*-solaris*): Set gdb_osabi to
3759 2003-02-05 Michael Chastain <mec@shout.net>
3761 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
3762 2.12.1 and earlier versions.
3764 2003-02-05 Andrew Cagney <ac131313@redhat.com>
3766 Remove orphaned hosts, targets and files.
3767 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
3768 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
3769 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
3770 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
3771 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
3772 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
3773 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
3774 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
3775 * config/sparc/tm-sp64sim.h: Delete.
3776 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
3778 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
3779 mips*-dec-mach3* targets.
3781 2003-02-04 Michael Chastain <mec@shout.net>
3783 * NEWS: Fix typo: sepcifying -> specifying.
3785 2003-02-04 Michael Chastain <mec@shout.net>
3787 * dwarfread.c: Add documentation on the state of dwarf-1,
3788 looking towards obsoletion.
3790 2003-02-03 Michael Chastain <mec@shout.net>
3792 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
3793 gdb/testsuite/gdb.c++/pr-1023.exp.
3795 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3797 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
3798 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
3800 * utils.c (init_page_info): Delete reference to MPW in comments.
3801 * main.c (captured_main): Delete #ifdef MPW.
3803 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3805 * NEWS: Note that the m32r-*-elf* is obsolete.
3806 * monitor.c (monitor_expect): Obsolete reference to m32r.
3807 * configure.tgt: Mark m32r-*-elf* as obsolete.
3808 * MAINTAINERS: Mark m32k as obsolete.
3809 * m32r-rom.c: Obsolete file.
3810 * config/m32r/m32r.mt: Obsolete file.
3811 * config/m32r/tm-m32r.h: Obsolete file.
3812 * m32r-stub.c: Obsolete file.
3813 * m32r-tdep.c: Obsolete file.
3815 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3817 * NEWS: Mention that the z8k-zilog-none is obsolete.
3818 * MAINTAINERS: Mark z8k as obsolete.
3819 * configure.tgt: Obsolete the z8k-*-coff* target.
3820 * config/z8k/z8k.mt: Obsolete file.
3821 * config/z8k/tm-z8k.h: Obsolete file.
3822 * z8k-tdep.c: Obsolete file.
3824 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3826 * NEWS: Mention that the mn10200-elf is obsolete.
3827 * configure.tgt: Obsolete mn10200-*-* target.
3828 * breakpoint.c (update_breakpoints_after_exec): Update comment to
3829 mention that the mn10200 is obsolete.
3830 * breakpoint.h: Ditto.
3831 * MAINTAINERS: Mark the mn10200-elf as obsolete.
3832 * config/mn10200/mn10200.mt: Obsolete file.
3833 * config/mn10200/tm-mn10200.h: Obsolete file.
3834 * mn10200-tdep.c: Obsolete file.
3836 2003-02-04 Andrew Cagney <ac131313@redhat.com>
3838 * MAINTAINERS: Mark h8500 as obsolete.
3839 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
3840 * findvar.c (value_from_register): Ditto.
3841 * h8500-tdep.c: Mark file as obsolete.
3842 * config/h8500/h8500.mt: Ditto.
3843 * config/h8500/tm-h8500.h: Ditto.
3844 * NEWS: Mention that h8500 is obsolete.
3846 2003-02-04 David Carlton <carlton@math.stanford.edu>
3848 * objfiles.c (allocate_objfile): Always set name. Add comment at
3850 * jv-lang.c (get_dynamics_objfile): Add comment.
3852 2003-02-04 David Carlton <carlton@math.stanford.edu>
3854 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
3855 * printcmd.c (build_address_symbolic): Replace uses of
3856 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
3857 SYMBOL_NAME, and asm_demangle.
3860 2003-02-04 David Carlton <carlton@math.stanford.edu>
3862 * linespec.c (decode_compound): Extract code into
3864 (lookup_prefix_sym): New function.
3866 2003-02-04 David Carlton <carlton@math.stanford.edu>
3868 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
3869 FLOAT_COERCION_BADNESS.
3870 * gdbtypes.c (rank_one_type): Replace all uses of
3871 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
3873 2003-02-04 Jim Blandy <jimb@redhat.com>
3875 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
3876 section, let dwarf_macinfo_section point to it, not
3879 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
3881 Pointed out by Anton Blanchard <anton@samba.org>.
3882 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
3883 (ppc_linux_at_sigtramp_return_path): Use it.
3885 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
3887 * defs.h (streq): Add prototype.
3888 * utils.c (streq): New function.
3890 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
3891 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
3892 * mdebugread.c (new_symbol): Likewise.
3893 * stabsread.c (define_symbol): Likewise.
3894 * coffread.c (process_coff_symbol): Likewise.
3895 * dwarfread.c (new_symbol): Likewise.
3897 * minsyms.c (prim_record_minimal_symbol_and_info): Use
3898 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
3900 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
3901 SYMBOL_INIT_DEMANGLED_NAME.
3902 * objfiles.c: Include "hashtab.h".
3903 (allocate_objfile): Call htab_set_functions_ex for the
3904 demangled_names_hash.
3905 (free_objfile): Call htab_delete for the demangled_names_hash.
3906 * objfiles.h (struct htab): Add declaration.
3907 (struct objfile): Add demangled_names_hash.
3908 * symfile.c: Include "hashtab.h".
3909 (reread_symbols): Call htab_delete for the demangled_names_hash.
3910 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
3911 SYMBOL_NAME in the bcache.
3912 * symtab.c: Include "hashtab.h". Update comments.
3913 (create_demangled_names_hash, symbol_set_names): New functions.
3914 (symbol_find_demangled_name): New function, broken out from
3915 symbol_init_demangled_names.
3916 (symbol_init_demangled_names): Use it.
3917 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
3918 (SYMBOL_SET_NAMES): New macro.
3919 (symbol_set_names): Add prototype.
3921 2003-02-03 Jim Blandy <jimb@redhat.com>
3923 Use a single, consistent representation for an empty minimal
3924 symbol table in an objfile.
3925 * objfiles.c (terminate_minimal_symbol_table): New function.
3926 (allocate_objfile): Call it.
3927 * objfiles.h (terminate_minimal_symbol_table): New declaration.
3928 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
3930 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
3931 objfile has minimal symbols, compare minimal_symbol_count to zero,
3932 instead of comparing msymbols with NULL.
3933 * objfiles.c (have_minimal_symbols): Same.
3934 * solib-sunos.c (solib_add_common_symbols): Call
3935 terminate_minimal_symbol_table.
3936 * symfile.c (reread_symbols): Same.
3938 2003-02-03 Kevin Buettner <kevinb@redhat.com>
3940 * s390-tdep.c (s390_address_class_type_flags)
3941 (s390_address_class_type_flags_to_name)
3942 (s390_address_class_name_to_type_flags): New functions.
3943 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
3944 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
3946 2003-02-03 Michael Snyder <msnyder@redhat.com>
3948 * arm-tdep.c: Fix spell-o in comment.
3950 2003-02-03 Michal Ludvig <mludvig@suse.cz>
3952 * dwarf2cfi.c (pointer_encoding): Added new parameter.
3953 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
3954 error messages to contain BFD filename.
3956 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
3958 Fix PR gdb/742 gdb/743 gdb/877
3959 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
3960 (do_mixed_source_and_assembly): Use
3961 make_cleanup_ui_out_tuple_begin_end and
3962 make_cleanup_ui_out_tuple_begin_end.
3963 (do_mixed_source_and_assembly): Ditto.
3964 * thread.c (do_captured_list_thread_ids): Ditto.
3965 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
3966 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
3967 ui_out_tuple_end): Delete prototypes.
3968 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
3969 ui_out_list_end, ui_out_tuple_end): Delete.
3971 From Kevin Buettner <kevinb@redhat.com>:
3972 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
3973 * ui-out.c (make_cleanup_ui_out_table_begin_end)
3974 (do_cleanup_table_end): New functions.
3975 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
3976 Use cleanups to invoke_ui_out_tuple_end().
3977 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3978 * cli/cli-setshow.c (cmd_show_list): Use
3979 make_cleanup_ui_out_tuple_begin_end.
3981 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3983 * frame.c (frame_unwind_register): New function.
3984 (frame_unwind_unsigned_register): Use.
3985 (frame_unwind_signed_register): Use.
3986 (frame_read_register): New function.
3987 * frame.h (frame_unwind_register): Declare.
3988 (frame_read_register): Declare.
3990 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
3991 and frame_unwind_register instead of read_memory, write_register
3992 and deprecated_write_register_bytes.
3994 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3996 * frame.h: Note that namelen can be negative.
3997 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
4000 * NEWS: Mention that the d10v's `regs' command is deprecated.
4001 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
4002 (d10v_print_registers_info): New function.
4003 (show_regs): Call d10v_print_registers_info.
4004 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
4006 2003-02-02 Mark Kettenis <kettenis@gnu.org>
4008 * stack.c (print_frame_info): Restore call to annotate_frame_begin
4009 lost in the previous patch.
4011 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4013 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
4014 * stack.c (print_frame_info_base): Output complete FRAME tuple
4015 for synthesized frames.
4017 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4019 * mips-nat.c (zerobuf): Delete.
4020 (fetch_inferior_registers): Alloc local zerobuf.
4021 (fetch_core_registers): Alloc local zerobuf.
4022 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
4023 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
4024 * thread-db.c (thread_db_store_registers): Ditto.
4025 * sh-tdep.c (sh_do_register): Ditto.
4026 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4027 * remote-sim.c (gdbsim_store_register): Ditto.
4028 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4029 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4030 * monitor.c (monitor_supply_register): Ditto.
4031 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
4032 * mips-nat.c (fetch_inferior_registers): Ditto.
4033 * m68klinux-nat.c (fetch_register): Ditto.
4034 * lynx-nat.c (fetch_inferior_registers): Ditto.
4035 (fetch_inferior_registers): Ditto.
4036 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
4037 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4038 (hpux_thread_store_registers): Ditto.
4039 * hppah-nat.c (fetch_register): Ditto.
4040 * hppab-nat.c (fetch_register): Ditto.
4041 * hppa-tdep.c (pa_register_look_aside): Ditto.
4042 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
4043 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
4045 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4047 * gdbarch.sh: Explictly specify all method levels. When a
4048 variable with an empty level, provide a non-multi-arch default.
4049 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
4050 * gdbarch.h: Re-generate.
4051 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
4052 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
4054 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4056 * defs.h (host_pointer_to_address): Delete declaration.
4057 (address_to_host_pointer): Delete declaration.
4058 * utils.c (host_pointer_to_address): Delete function.
4059 (address_to_host_pointer): Delete function.
4060 * procfs.c (procfs_address_to_host_pointer): New function.
4061 * procfs.c (proc_set_watchpoint): Use.
4062 (procfs_can_use_hw_breakpoint): Update comments.
4063 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
4064 (som_solib_add): Use.
4065 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
4066 * hppa-tdep.c (unwind_command): Use.
4068 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4070 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
4073 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
4074 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
4075 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
4076 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
4077 (define_symbol): Update.
4078 * symfile.c (generic_load): Remove references to nindy.
4079 * symtab.c: Remove references to nindy.
4081 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4083 * infcmd.c (print_float_info): Delete code conditional on
4085 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
4086 * config/m68k/nm-apollo68b.h: Ditto.
4087 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
4088 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
4089 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
4091 2003-02-01 Mark Kettenis <kettenis@gnu.org>
4093 * config/i386/tm-i386os9k.h: Removed.
4095 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
4096 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
4097 they're identical to i[3456]86-*-sysv* now.
4098 * config/i386/i386v32.mh: Removed.
4099 * config/i386/xm-i386v32.h: Removed.
4100 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
4102 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
4104 * config/i386/i386dgux.mh: Removed.
4105 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
4107 * configure.in: Fix typo.
4108 * configure: Regenerated.
4110 2003-01-31 David Carlton <carlton@math.stanford.edu>
4112 * dwarf2read.c (dwarf2_locate_sections): Set
4113 dwarf_ranges_section.
4115 2003-01-31 Andrew Cagney <ac131313@redhat.com>
4117 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
4118 * utils.c: Update comments documenting legitimate uses of PTR.
4120 * utils.c: Re-indent.
4122 * config/djgpp/fnchange.lst: Delete nindy files.
4123 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
4124 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
4125 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
4126 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
4127 * nindy-share/README, nindy-share/Onindy.c: Delete files.
4128 * nindy-tdep.c, nindy-share/Makefile: Delete files.
4129 * Makefile.in (init.c): Remove nindy references.
4130 (saber_gdb): Delete rule.
4131 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
4132 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
4134 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
4135 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
4136 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
4137 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
4139 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
4140 * saber.suppress: Delete file.
4142 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
4144 * dbxread.c (stabs_data): New static variable.
4145 (fill_symbuf): Support an in-memory buffer for stabs data.
4146 (stabs_seek): New function.
4147 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
4148 (read_ofile_symtab): Use stabs_seek.
4149 (elfstab_build_psymtabs): Take an asection* instead of
4150 an offset and size. Relocate the stabs data if necessary.
4151 Save the section* for dbx_psymtab_to_symtab.
4152 * dwarf2read.c: Add section variables for each debug section.
4153 (dwarf2_locate_sections): Fill them in.
4154 (dwarf2_read_section): Take an asection* argument.
4155 Relocate the section contents if necessary.
4156 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
4157 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
4158 it to dwarf2_read_section.
4159 (dwarf2_build_frame_info): Update callers.
4160 * elfread.c (elf_symfile_read): Update call to
4161 elfstab_build_psymtabs.
4162 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
4163 (DBX_STAB_SECTION): New macro.
4164 * stabsread.h (elfstab_build_psymtabs): Update prototype.
4165 * symfile.c (symfile_dummy_outputs): New function.
4166 (symfile_relocate_debug_section): New function.
4167 * symfile.h (symfile_relocate_debug_section): Add prototype.
4169 2003-01-31 Richard Henderson <rth@redhat.com>
4171 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
4172 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
4173 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
4174 * alpha-tdep.c (alpha_register_name): Add "unique".
4175 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
4176 (ALPHA_UNIQUE_REGNUM): New.
4177 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
4179 2003-01-31 Andrew Cagney <ac131313@redhat.com>
4181 * README: Remove reference to Ericsson 1800 monitor.
4182 * Makefile.in (remote-es.o): Delete rule.
4183 (ALLDEPFILES): Delete remote-es.c.
4184 * remote-es.c: Delete file.
4185 * config/m68k/es1800.mt: Delete file.
4186 * config/djgpp/fnchange.lst: Update.
4187 * configure.tgt: Delete m68*-ericsson-* target.
4189 2003-01-31 Adam Fedor <fedor@gnu.org>
4191 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
4192 Remove duplicate/shadowing variable of same name.
4194 2003-01-30 Jim Blandy <jimb@redhat.com>
4196 * symfile.c (find_separate_debug_file): Assert that the objfile's
4197 directory name we compute ends with a slash, and then assume that
4198 that's so everywhere we use it.
4200 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
4202 * valops.c (value_assign): Flush frame cache after stores to memory
4205 2003-01-30 Andrew Cagney <ac131313@redhat.com>
4207 * Makefile.in (mon960-rom.o): Delete rule.
4208 * mon960-rom.c: Delete file.
4210 2003-01-30 Andrew Cagney <ac131313@redhat.com>
4212 * d10v-tdep.c: Include "frame-unwind.h".
4213 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
4215 (next_addr, uses_frame): Delete.
4216 (struct d10v_unwind_cache): Define.
4217 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
4218 Use info instead of next_addr and uses_frame globals.
4219 (d10v_frame_init_saved_regs): Delete function.
4220 (d10v_init_extra_frame_info): Delete function.
4221 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
4222 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
4223 init_frame_pc or frame_saved_pc.
4224 (d10v_pop_frame): Delete function.
4225 (do_d10v_pop_frame): Delete function.
4226 (d10v_frame_chain): Delete function.
4227 (d10v_frame_chain_valid): Delete function.
4228 (d10v_frame_pc_unwind): New function.
4229 (d10v_frame_id_unwind): New function.
4230 (saved_regs_unwinder): New function.
4231 (d10v_frame_register_unwind): New function.
4232 (d10v_frame_pop): New function.
4233 (d10v_frame_unwind): New variable.
4234 (d10v_frame_p): New function.
4235 (d10v_frame_saved_pc): Delete function.
4236 * Makefile.in (d10v-tdep.o): Update dependencies.
4238 2003-01-30 J. Brobecker <brobecker@gnat.com>
4240 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
4241 causing some regressions due to a change in the default value
4244 2003-01-29 Richard Henderson <rth@redhat.com>
4245 Elena Zannoni <ezannoni@redhat.com>
4246 Daniel Jacobowitz <drow@mvista.com>
4249 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
4251 (RANGES_SECTION): New.
4252 (dwarf_ranges_buffer): New variable.
4253 (struct comp_unit_head): Add member "die".
4254 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
4255 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
4256 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
4257 (dwarf2_locate_sections): Likewise.
4258 (dwarf2_build_psymtabs): Read .debug_ranges.
4259 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
4260 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
4261 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
4262 Look for DW_AT_ranges and return the bounding box.
4264 2003-01-29 Brian Ford <ford@vss.fsi.com>
4266 * win32-nat.c (cygwin_pid): Removed as unused.
4267 (child_attach): Try fall back to Cygwin pid.
4269 2003-01-29 Jim Blandy <jimb@redhat.com>
4271 * objfiles.h (struct objfile): Doc fix.
4273 2003-01-29 Andrew Cagney <ac131313@redhat.com>
4275 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
4276 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
4277 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
4278 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
4279 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
4280 (FRAME_SAVED_PC): Change to a function with predicate.
4281 * gdbarch.h, gdbarch.c: Re-generate.
4283 2003-01-28 Andrew Cagney <ac131313@redhat.com>
4285 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
4287 * complaints.c (complain): Delete function.
4288 * complaints.h (struct deprecated_complaint): Delete definition.
4289 (complain): Delete declaration.
4291 2003-01-28 Kevin Buettner <kevinb@redhat.com>
4293 * mips-tdep.c (mips_init_extra_frame_info): Return early for
4296 2003-01-27 Andrew Cagney <ac131313@redhat.com>
4298 * sentinel-frame.h, sentinel-frame.c: New files.
4299 * Makefile.in (frame.o): Update dependencies.
4300 (SFILES): Add sentinel-frame.c.
4301 (sentinel_frame_h): Define.
4302 (COMMON_OBS): Add sentinel-frame.o.
4303 (sentinel-frame.o): Specify dependencies.
4304 * frame.c: Include "sentinel-frame.h".
4305 (frame_register_unwind): Rewrite assuming that there is always a a
4307 (frame_register, generic_unwind_get_saved_register): Ditto.
4308 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
4309 (create_sentinel_frame, unwind_to_current_frame): New functions.
4310 (get_current_frame): Rewrite using create_sentinel_frame and
4311 unwind_to_current_frame. When possible, always create a frame.
4312 (create_new_frame): Set next to the sentinel frame.
4313 (get_next_frame): Rewrite. Don't go below the level 0 frame.
4314 (deprecated_update_frame_pc_hack): Update the next frame's PC and
4315 ID cache when necessary.
4316 (frame_saved_regs_id_unwind): Use frame_relative_level.
4317 (deprecated_generic_get_saved_register): Use frame_relative_level,
4318 get_frame_saved_regs, get_frame_pc, get_frame_base and
4320 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
4323 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4325 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
4327 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4329 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
4330 (maintenance_set_profile_cmd): Use error () instead of warning ().
4332 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4334 * configure.in: Check that -pg works if using --enable-profiling.
4335 Check for monstartup and _mcleanup regardless of --enable-profiling.
4336 * maint.c: Check for monstartup and _mcleanup before using them.
4337 * config.in: Regenerated.
4338 * configure: Regenerated.
4340 2003-01-24 Nick Clifton <nickc@redhat.com>
4344 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
4346 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
4347 (sh2e_show_regs): New.
4348 (sh_gdbarch_init): Handle bfd_mach_sh2e.
4349 * config/sh/tm-sh.h: Added sh2e to comments.
4351 2003-01-23 Jim Blandy <jimb@redhat.com>
4353 * symfile.c (syms_from_objfile): Don't print the "(no debugging
4354 symbols found)" message here; we haven't checked for a separate
4355 debug info file yet, so we don't know yet.
4356 (symbol_file_add_with_addrs_or_offsets): Print it here, after
4357 we've looked everywhere. Also, there's no need to print a special
4358 message when we're loading the separate debug info file: the one
4359 symbol_file_add prints is fine.
4361 2003-01-23 Alexander Larsson <alexl@redhat.com>
4362 Jim Blandy <jimb@redhat.com>
4364 Add support for executables whose debug info has been separated
4365 out into a separate file, leaving only a link behind.
4366 * objfiles.h (struct objfile): New fields: separate_debug_objfile
4367 and separate_debug_objfile_backlink.
4368 (put_objfile_before): New declaration.
4369 * symfile.c: #include "filenames.h".
4370 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
4371 debug info in a separate file, read that, too. Save the addrs
4372 argument, so we can use it again to read the separated debug info;
4373 syms_from_objfile modifies the table we pass it.
4374 (reread_symbols): After re-reading an objfile, call
4375 reread_separate_symbols to refresh its separate debug info
4376 objfile, if it has one.
4377 (reread_separate_symbols, find_separate_debug_file,
4378 get_debug_link_info, separate_debug_file_exists): New functions.
4379 (debug_file_directory): New global var.
4380 (_initialize_symfile): Initialize debug_file_directory, and
4381 provide the new `set debug-file-directory' command to let the user
4383 * objfiles.c (free_objfile): If this objfile has its debug info in
4384 a separate objfile, free that one too. If this is itself a
4385 separate debug info objfile, clear our parent's backlink.
4386 (put_objfile_before): New function.
4387 * utils.c (gnu_debuglink_crc32): New function.
4388 * defs.h (gnu_debuglink_crc32): New declaration.
4389 * Makefile.in (symfile.o): Note dependency on "filenames.h".
4390 * configure.in: Handle --with-separate-debug-dir config option.
4391 * acinclude.m4 (AC_DEFINE_DIR): New macro.
4392 * acconfig.h (DEBUGDIR): New macro.
4393 * configure, aclocal.m4, config.in: Regenerated.
4395 2003-01-22 Jim Blandy <jimb@redhat.com>
4397 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
4398 like the old symbol_file_add, but taking new arguments: you can
4399 now pass in either a `struct section_addr_info' list to say where
4400 each section is loaded, or a `struct section_offsets' table. Pass
4401 these new arguments through to syms_from_objfile as appropriate.
4402 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
4403 with the appropriate quiescent values for the new arguments.
4405 * symfile.c: #include "gdb_assert.h".
4406 (syms_from_objfile): Add the ability to pass in a section offset
4407 table directly, as an alternative to the section_addr_info table.
4408 Document arguments better.
4409 (symbol_file_add): Pass extra arguments to syms_from_objfile.
4410 * symfile.h (syms_from_objfile): Update declaration.
4411 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
4413 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
4415 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
4417 Original patch by Tom Tromey <tromey@cygnus.com> and
4418 Jason Molenda <jmolenda@apple.com>.
4419 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
4420 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
4421 * NEWS: Mention profiling.
4422 * configure.in (--enable-gdbtk): Fix typo.
4423 (--enable-profiling): New. Set PROFILE_CFLAGS.
4424 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
4426 (profiling_state): New variable.
4427 (mcleanup_wrapper): New function.
4428 (_initialize_maint): Remove NOTYET, fix call to
4429 add_setshow_boolean_cmd for "maint set profile".
4430 * configure: Regenerated.
4432 2003-01-21 Martin M. Hunt <hunt@redhat.com>
4434 * Makefile.in (install-gdbtk): Install PNG images too.
4436 2003-01-21 Andrew Cagney <ac131313@redhat.com>
4438 * exec.c (text_start): Delete global variable.
4439 (exec_file_attach): Make text_start local to the function.
4440 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
4441 * valops.c (hand_function_call): Delete code that handles
4442 BEFORE_TEXT_END and AFTER_TEXT_END.
4443 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
4444 of CALL_DUMMY_LOCATION.
4445 * gdbarch.c: Regenerate.
4446 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
4447 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
4448 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
4449 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
4450 (text_end): Delete extern declaration.
4452 2003-01-21 Andrew Cagney <ac131313@redhat.com>
4454 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
4455 * blockframe.c (backtrace_below_main): Move to "frame.c".
4456 (frame_chain_valid): Delete check for backtrace_below_main.
4457 (_initialize_blockframe): Delete initialization, move ``set
4458 backtrace-below-main'' command to "frame.c".
4459 (do_flush_frames_sfunc): Delete function.
4460 * frame.c: Include "command.h" and "gdbcmd.h".
4461 (frame_type_from_pc): New function.
4462 (create_new_frame): Use frame_type_from_pc.
4463 (legacy_get_prev_frame): New function.
4464 (get_prev_frame): Rewrite. When an old style frame, call
4465 legacy_get_prev_frame. Otherwize, unwind the PC first.
4466 (_initialize_frame): Add ``set backtrace-below-main'' command.
4467 * Makefile.in (frame.o): Update dependencies.
4469 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4471 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
4472 DEPRECATED_REGISTERS_INFO.
4474 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4476 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
4477 Maintainers'. Update `Various Maintainers'.
4479 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4481 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
4482 * gdbarch.sh (POP_FRAME): Change to function with predicate.
4483 Suppress actual parameters when `-'.
4484 * gdbarch.h, gdbarch.c: Regenerate.
4486 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4488 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
4489 code handling dummy frames.
4491 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4493 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
4494 (struct frame_unwind): Add field pop.
4495 * frame.h (frame_pop): Declare.
4496 * frame.c (frame_saved_regs_pop): New function.
4497 (trad_frame_unwinder): Add frame_saved_regs_pop.
4498 (frame_pop): New function.
4499 * dummy-frame.c (dummy_frame_pop): New function.
4500 (discard_innermost_dummy): New function.
4501 (generic_pop_dummy_frame): Use discard_innermost_dummy.
4502 (dummy_frame_unwind): Add dummy_frame_pop.
4503 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
4504 * valops.c (hand_function_call): Ditto.
4505 * stack.c (return_command): Ditto.
4507 2003-01-18 Andrew Cagney <ac131313@redhat.com>
4509 * cris-tdep.c: Fix function declaration indentation.
4510 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
4511 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
4512 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
4513 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
4514 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
4515 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
4517 2003-01-18 Michael Chastain <mec@shout.net>
4519 * README (Unpacking and Installation -- quick overview):
4520 Warn against ".../gdb-5.3/gdb/configure".
4522 2003-01-18 Andrew Cagney <ac131313@redhat.com>
4524 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
4525 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
4526 (struct frame_unwind): Declare opaque.
4527 (dummy_frame_p): Declare function.
4528 * dummy-frame.c (dummy_frame_id_unwind): Make static.
4529 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
4530 * dummy-frame.c: Include "frame-unwind.h".
4531 (dummy_frame_p): New function.
4532 (dummy_frame_unwind): New variable.
4533 * frame.c: Include "frame-unwind.h".
4534 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
4535 to use the new unwind field.
4536 (set_unwind_by_pc): Delete function.
4537 (create_new_frame, get_prev_frame): Set unwind field using
4538 frame_unwind_find_by_pc.
4539 (trad_frame_unwind, trad_frame_unwinder): New variables.
4540 * frame.h (trad_frame_unwind): Declare variable.
4541 (frame_id_unwind_ftype): Delete declaration.
4542 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
4543 (struct frame_unwind): Declare opaque.
4544 (struct frame_info): Replace the fields id_unwind, pc_unwind and
4545 register_unwind with a single unwind pointer.
4546 * frame-unwind.h, frame-unwind.c: New files.
4547 * Makefile.in (SFILES): Add frame-unwind.c.
4548 (frame_unwind_h): Define.
4549 (COMMON_OBS): Add frame-unwind.o.
4550 (frame-unwind.o): Specify dependencies.
4551 (frame.o, dummy-frame.o): Update dependencies.
4553 2003-01-18 Andrew Cagney <ac131313@redhat.com>
4555 * ada-valprint.c: Eliminate PTR.
4556 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
4557 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
4558 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
4559 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
4560 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
4561 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
4562 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
4564 2003-01-17 Andrew Cagney <ac131313@redhat.com>
4566 * main.c (captured_main): Don't use PTR.
4567 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
4568 * gdbtypes.c (lookup_primitive_typename): Ditto.
4569 (lookup_struct_elt_type): Ditto.
4570 * f-valprint.c (info_common_command): Ditto.
4571 (list_all_visible_commons): Ditto.
4572 * jv-typeprint.c (java_type_print_base): Ditto.
4574 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
4575 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
4576 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
4577 i386-interix-nat.c and i386-interix-tdep.c. Rename
4578 m68klinux-nat.c and m68klinux-tdep.c. Rename
4579 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
4580 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
4581 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
4582 * main.c (captured_main): Use xfree, not free.
4584 2003-01-16 Andrew Cagney <ac131313@redhat.com>
4586 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
4587 ID back using a parameter.
4588 * frame.c (frame_id_unwind): Update call.
4589 (frame_saved_regs_id_unwind): Update.
4590 * dummy-frame.c (dummy_frame_id_unwind): Update function.
4591 * dummy-frame.h (struct frame_id): Add opaque declaration.
4592 (dummy_frame_id_unwind): Update declaration.
4594 2003-01-15 Andrew Cagney <ac131313@redhat.com>
4596 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
4598 2003-01-15 Stephen P. Smith <ischis2@cox.net>
4600 * MAINTAINERS (Stephen P. Smith): Updated email address.
4602 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
4605 * breakpoint.c (until_break_command): Add new argument. Use it to
4606 decide whether to stop only at the current frame or not.
4607 * breakpoint.h (until_break_command): Update prototype.
4608 * infcmd.c (until_command): Add new argument to until_break_command
4610 (advance_command): New function.
4611 (_initialize_infcmd): Update help string for 'until' command.
4612 Add new 'advance' command.
4614 2003-01-14 David Carlton <carlton@math.stanford.edu>
4616 * linespec.c (decode_line_1): Normalize comments.
4618 (locate_first_half): Ditto.
4619 (decode_compound): Ditto.
4620 (symtab_from_filename): Ditto.
4621 (decode_all_digits): Ditto.
4622 (decode_dollar): Ditto.
4623 (find_methods): Ditto.
4624 (find_toplevel_char): Ditto.
4626 2003-01-13 Andrew Cagney <ac131313@redhat.com>
4628 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
4629 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
4630 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
4631 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
4632 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
4633 * language.c, language.h, m32r-tdep.c: Update copyright.
4634 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
4635 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
4636 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
4637 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
4638 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
4639 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
4641 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
4643 * stabsread.h (process_later, resolve_cfront_continuation):
4645 Update copyright years.
4646 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
4647 Update copyright year.
4648 * dbxread.c(struct cont_elem): Obsolete.
4649 (process_later, process_now): Obsolete functions.
4650 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
4651 Update copyright year.
4652 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
4653 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
4654 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
4655 (parse_partial_symbols): Obsolete cfront support.
4657 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
4659 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
4660 read_cfront_baseclasses, read_cfront_member_functions,
4661 resolve_cfront_continuation,read_cfront_static_fields,
4662 copy_cfront_struct_fields): Obsolete functions.
4663 (define_symbol, read_one_struct_field): Obsolete cfront support.
4664 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
4665 Update Copyright year.
4667 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
4669 * stack.c (print_frame_info, print_stack_frame_base_stub,
4670 print_stack_frame_base, show_and_print_stack_frame_stub,
4671 show_and_print_stack_frame, print_only_stack_frame_stub,
4672 print_only_stack_frame): Delete functions.
4673 (print_stack_frame_stub): Call print_frame_info instead of
4674 print_frame_info_base.
4675 (print_frame_info_base): Rename to print_frame_info.
4676 (backtrace_command_1): Call print_frame_info, instead of
4677 print_frame_info_base.
4678 (current_frame_command): Call print_stack_frame, instead of
4679 print_only_stack_frame.
4680 (frame_command): Call print_stack_frame, instead of
4681 show_and_print_stack_frame.
4682 (up_command): Ditto.
4683 (down_command): Ditto.
4684 * frame.h (print_only_stack_frame): Delete prototype.
4685 * infrun.c (normal_stop): Call print_stack_frame, instead of
4686 show_and_print_stack_frame.
4687 * thread.c (info_threads_command): Call print_stack_frame, instead
4688 of print_only_stack_frame.
4690 2003-01-13 Andrew Cagney <ac131313@redhat.com>
4692 * README (Graphical interface to GDB): Update URL. Point at
4695 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
4698 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4700 * symtab.c (find_pc_sect_line): Don't consider end-of-function
4703 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4705 * thread-db.c (attach_thread): Prototype.
4706 (struct private_thread_info): Remove lwpid. Add thread handle (th),
4707 thread information (ti), and valid flags (th_valid, ti_valid).
4708 (attach_thread): Move target_pid_to_str call to after the thread
4709 is added to GDB's list. Initialize the cache.
4710 (thread_get_info_callback, thread_db_map_id2thr)
4711 (thread_db_get_info): New functions.
4712 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
4713 (thread_db_store_registers, thread_db_thread_alive)
4714 (thread_db_get_thread_local_address): Use them.
4715 (thread_db_pid_to_str): Likewise. Return "Missing" instead
4716 of calling error() for threads in unknown state.
4718 (clear_lwpid_callback): New function.
4719 (thread_db_resume): Use it to clear the cache.
4721 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4723 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
4724 (resume_callback): Remove dead code.
4726 2003-01-13 Andrew Cagney <ac131313@redhat.com>
4728 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
4730 * gdbarch.h, gdbarch.c: Regenerate.
4731 * stack.c (frame_info): Only initialize the saved registers when
4732 FRAME_INIT_SAVED_REGS_P.
4733 * frame.c (frame_saved_regs_register_unwind): Assert
4734 FRAME_INIT_SAVED_REGS_P.
4735 (deprecated_generic_get_saved_register): Ditto.
4737 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4739 * source.c (openp): Squelch warning about "filename".
4741 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4743 * source.c (openp): If the file does not exist don't necessarily
4746 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4749 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
4750 (integer_types_same_name_p): New function.
4751 (rank_one_type): Use it.
4752 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
4754 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4756 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
4758 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
4759 * configure.in: Add --with-sysroot.
4760 * configure: Regenerated.
4761 * main.c (gdb_sysroot): New variable.
4762 (captured_main): Initialize gdb_sysroot.
4763 * defs.h (gdb_sysroot): New extern declaration.
4764 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
4766 2003-01-12 Michael Chastain <mec@shout.net>
4768 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
4770 2003-01-12 Michael Chastain <mec@shout.net>
4772 * top.c (print_gdb_version): Bump copyright year to 2003.
4774 2003-01-12 David Carlton <carlton@bactrian.org>
4776 * linespec.c (symtab_from_filename): Rename variable 's' to
4779 2003-01-12 Andrew Cagney <ac131313@redhat.com>
4781 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
4783 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
4785 2003-01-12 Andrew Cagney <ac131313@redhat.com>
4787 * d10v-tdep.c: Include "gdb_assert.h".
4788 (d10v_store_return_value): Rewrite to match current interface.
4789 (d10v_extract_struct_value_address): Ditto.
4790 (d10v_extract_return_value): Ditto.
4791 (d10v_gdbarch_init): Set store_restore_value,
4792 extract_struct_value_address and extract_return_value.
4794 2003-01-12 J. Brobecker <brobecker@gnat.com>
4796 * hpread.c (set_namestring): New procedure replacing the
4797 SET_NAMESTRING macro.
4798 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
4799 by calls to set_namestring.
4801 2003-01-11 J. Brobecker <brobecker@gnat.com>
4803 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
4804 a compilation warning.
4805 (hpread_process_one_debug_symbol): Likewise.
4807 2003-01-10 David Carlton <carlton@math.stanford.edu>
4809 * linespec.c (decode_line_1): Rename variable 's' to
4811 (decode_all_digits): Rename argument 's' to 'file_symtab'.
4812 (decode_dollar): Ditto.
4813 (decode_variable): Ditto.
4814 (symbol_found): Ditto.
4816 2003-01-09 Michael Chastain <mec@shout.net>
4818 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
4820 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
4822 * win32-nat.c (set_process_privilege): New function.
4823 (child_attach): Call set_process_privilege() to enable the
4824 SE_DEBUG_NAME user privilege if available in process token.
4826 2003-01-10 J. Brobecker <brobecker@gnat.com>
4828 * hpread.c (hpread_process_one_debug_symbol): Fix a small
4829 compilation error in the previous revision.
4831 2003-01-09 David Carlton <carlton@math.stanford.edu>
4833 * linespec.c: Update copyright.
4835 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
4837 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
4839 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
4841 2003-01-09 Andrew Cagney <ac131313@redhat.com>
4843 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
4845 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
4846 (frame_saved_regs_zalloc): Update.
4847 (frame_saved_regs_register_unwind): Update.
4848 (create_new_frame): Update.
4849 (get_prev_frame): Update.
4850 (frame_extra_info_zalloc): Update.
4851 (deprecated_get_frame_saved_regs): Update.
4852 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
4853 * cris-tdep.c: Update comment.
4855 * somsolib.h: Fix function indentation.
4856 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
4857 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
4858 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
4859 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
4860 * somsolib.c, inftarg.c: Remove assignment in if conditional.
4862 * infrun.c (follow_fork): Use ISO C definition.
4863 * expprint.c (print_subexp): Use xfree instead of free.
4864 * charset.c: Include "gdb_string.h" instead of <string.h>.
4865 (register_iconv_charsets): Use ISO C definition.
4866 (host_charset, target_charset): Ditto.
4867 * Makefile.in (charset.o): Update dependencies.
4868 (mi-cmd-env.o): Update dependencies.
4870 2003-01-08 Andrew Cagney <cagney@redhat.com>
4872 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
4875 2003-01-08 Andrew Cagney <ac131313@redhat.com>
4877 * gdb_mbuild.sh: Add --keep option. When specified, keep the
4878 build directories. Save edited gdb output in Mbuild.log. If a
4879 build fails, remove any final GDB executable.
4881 2003-01-08 Andrew Cagney <ac131313@redhat.com>
4883 * gdb_mbuild.sh: Edit the output of `maint print architecture'
4884 replacing hex constants with function names and stripping leading
4885 file name directory prefixes.
4887 2003-01-08 Andrew Cagney <cagney@redhat.com>
4889 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
4892 2003-01-08 David Carlton <carlton@math.stanford.edu>
4894 * linespec.c (decode_line_1): Move code into decode_variable.
4895 (decode_variable): New function.
4897 2003-01-08 Andrew Cagney <ac131313@redhat.com>
4899 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
4901 2003-01-08 Andrew Cagney <cagney@redhat.com>
4903 * cris-tdep.c (cris_frame_init_saved_regs): Use
4904 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
4906 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
4907 (sh64_nofp_frame_init_saved_regs): Ditto.
4908 (sh_fp_frame_init_saved_regs): Ditto.
4909 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
4910 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4911 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4912 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4914 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
4916 * minsyms.c (lookup_minimal_symbol): Update comment.
4917 (lookup_minimal_symbol_text): Update comment. Use the hash table.
4918 (lookup_minimal_symbol_solib_trampoline): Likewise.
4920 2003-01-08 Andrew Cagney <cagney@redhat.com>
4922 * d10v-tdep.c (d10v_init_extra_frame_info): Use
4923 frame_relative_level.
4925 * alpha-tdep.c: Use get_frame_extra_info.
4926 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4927 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
4928 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4929 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
4931 * alpha-tdep.c: Use get_next_frame.
4932 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4933 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4934 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
4935 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
4936 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
4937 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
4938 * xstormy16-tdep.c: Ditto.
4940 2003-01-07 Andrew Cagney <cagney@redhat.com>
4942 * alpha-tdep.c: Use get_frame_base.
4943 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4944 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4945 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4946 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4947 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
4948 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4949 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
4950 * config/sparc/tm-sparc.h: Ditto.
4952 2003-01-07 Andrew Cagney <cagney@redhat.com>
4954 * frame.c (deprecated_get_frame_context): New function.
4955 (deprecated_set_frame_context): New function.
4956 * frame.h (deprecated_get_frame_context): Declare.
4957 (deprecated_set_frame_context): Declare.
4958 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
4959 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
4961 2003-01-07 Andrew Cagney <cagney@redhat.com>
4963 * frame.c (deprecated_set_frame_next_hack): New function.
4964 (deprecated_set_frame_prev_hack): New function.
4965 * frame.h (deprecated_set_frame_next_hack): Declare.
4966 (deprecated_set_frame_prev_hack): Declare.
4967 * mcore-tdep.c (analyze_dummy_frame): Use
4968 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
4969 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4971 2003-01-07 David Carlton <carlton@math.stanford.edu>
4973 * linespec.c (decode_line_1): Move code into decode_dollar.
4974 (decode_dollar): New function.
4976 2003-01-07 Andrew Cagney <cagney@redhat.com>
4978 * arm-tdep.c (arm_init_extra_frame_info): Use
4979 deprecated_update_frame_base_hack.
4980 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
4981 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4982 (fix_frame_pointer): Ditto.
4983 (mn10300_analyze_prologue): Ditto.
4985 2003-01-07 Andrew Cagney <cagney@redhat.com>
4987 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
4988 extra_info using frame_extra_info_zalloc.
4989 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4990 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
4991 (sh64_init_extra_frame_info): Ditto.
4992 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
4993 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
4994 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4995 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
4996 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
4997 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
4998 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
4999 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
5000 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
5001 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
5002 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5003 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
5005 * mn10300-tdep.c (analyze_dummy_frame): Use
5006 deprecated_set_frame_extra_info_hack.
5007 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5009 2003-01-07 J. Brobecker <brobecker@gnat.com>
5011 * mdebugread.c (parse_symbol): Skip stProc entries which storage
5012 class is not scText. These do not define "real" procedures.
5013 (parse_partial_symbols): Likewise.
5015 2003-01-06 Michael Snyder <msnyder@redhat.com>
5017 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
5019 2003-01-06 Andrew Cagney <ac131313@redhat.com>
5021 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
5022 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
5023 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
5024 deprecated_frame_xmalloc_with_cleanup.
5025 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
5026 deprecated_frame_xmalloc.
5027 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
5028 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
5030 2003-01-06 Andrew Cagney <cagney@redhat.com>
5032 * x86-64-linux-tdep.c: Include "osabi.h".
5033 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
5035 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
5037 2003-01-06 Andrew Cagney <cagney@redhat.com>
5039 * MAINTAINERS (Target Instruction Set Architectures): Update
5040 arm-elf. Can be built with -Werror, has been multiarched.
5042 * value.h (unpack_long): Make buffer parameter constant.
5043 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
5044 * scm-lang.h (scm_parse): Ditto.
5045 * defs.h (extract_typed_address, extract_address): Ditto.
5046 (extract_long_unsigned_integer): Ditto.
5047 * inferior.h (unsigned_pointer_to_address): Ditto.
5048 (signed_pointer_to_address): Ditto.
5049 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
5050 * gdbarch.h, gdbarch.c: Regenerate.
5051 * findvar.c (extract_long_unsigned_integer): Update.
5052 (extract_address): Update.
5053 (extract_typed_address): Update.
5054 (unsigned_pointer_to_address): Update.
5055 * values.c (unpack_long): Update.
5056 (unpack_double): Update.
5057 (unpack_pointer): Update.
5058 (unpack_field_as_long): Update.
5059 * d10v-tdep.c (d10v_pointer_to_address): Update.
5060 * avr-tdep.c (avr_pointer_to_address): Update.
5061 * scm-lang.c (scm_unpack): Update.
5062 * findvar.c (signed_pointer_to_address): Update.
5064 2003-01-06 Michal Ludvig <mludvig@suse.cz>
5066 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
5067 since it is in i386-tdep.c.
5069 2003-01-06 J. Brobecker <brobecker@gnat.com>
5071 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
5072 failure introduced in the previous change.
5074 2003-01-05 Michael Chastain <mec@shout.net>
5076 * README: Remove references to deleted remote-*.c files:
5077 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
5078 remote-nrom.c, remote-os9k.c, remote-udi.c.
5080 2003-01-05 Mark Kettenis <kettenis@gnu.org>
5082 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
5083 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
5084 i386_get_longjmp_target.
5086 2003-01-05 Andrew Cagney <ac131313@redhat.com>
5088 * arm-tdep.c (prologue_cache): Change to a pointer.
5089 (_initialize_arm_tdep): Allocate prologue_cache.
5090 (check_prologue_cache): Update.
5091 (save_prologue_cache): Update.
5092 (arm_gdbarch_init): Update.
5094 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5096 * stabsread.c (update_method_name_from_physname): Call complaint()
5099 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5101 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
5102 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
5103 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
5105 * blockframe.c: Include "gdbcmd.h" and "command.h".
5106 (backtrace_below_main): New variable.
5107 (file_frame_chain_valid, func_frame_chain_valid)
5108 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
5109 (generic_func_frame_chain_valid): Remove functions.
5110 (frame_chain_valid, do_flush_frames_sfunc): New functions.
5111 (_initialize_blockframe): New function.
5112 * Makefile.in (blockframe.o): Update dependencies.
5113 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
5114 comment. Call frame_chain_valid ().
5115 * frame.h: Remove old prototypes. Add prototype for
5116 frame_chain_valid and update comments to match.
5117 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
5119 * gdbarch.h: Regenerated.
5120 * gdbarch.c: Regenerated.
5122 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5123 set_gdbarch_frame_chain_valid.
5124 * avr-tdep.c (avr_gdbarch_init): Likewise.
5125 * cris-tdep.c (cris_gdbarch_init): Likewise.
5126 * frv-tdep.c (frv_gdbarch_init): Likewise.
5127 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
5128 * i386-tdep.c (i386_svr4_init_abi): Likewise.
5129 (i386_nw_init_abi): Likewise.
5130 (i386_gdbarch_init): Likewise.
5131 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
5132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5133 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5134 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
5135 * mips-tdep.c (mips_gdbarch_init): Likewise.
5136 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5137 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
5138 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5139 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5140 * s390-tdep.c (s390_gdbarch_init): Likewise.
5141 * sh-tdep.c (sh_gdbarch_init): Likewise.
5142 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5143 * v850-tdep.c (v850_gdbarch_init): Likewise.
5144 * vax-tdep.c (vax_gdbarch_init): Likewise.
5145 * x86-64-tdep.c (x86_64_init_abi): Likewise.
5147 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
5148 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
5149 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
5150 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
5151 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
5152 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
5153 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
5154 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
5156 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5158 * Makefile.in (acconfig_h): Remove incorrect macro.
5160 (osabi.o): Update dependencies.
5161 * configure.tgt: Set gdb_osabi based on target triplet.
5162 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
5163 * configure: Regenerated.
5164 * config.in: Regenerated.
5165 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
5166 (GDB_OSABI_DEFAULT): Define if not already defined.
5167 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
5168 (set_osabi_string): New variables.
5169 (gdbarch_register_osabi): Add new OS ABI to
5170 gdb_osabi_available_names.
5171 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
5172 (set_osabi, show_osabi): New functions.
5173 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
5175 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5177 * arch-utils.c (gdbarch_info_init): Set osabi to
5178 GDB_OSABI_UNINITIALIZED.
5179 * gdbarch.sh: Add osabi to struct gdbarch and to struct
5180 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
5181 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
5182 * gdbarch.c: Regenerated.
5183 * gdbarch.h: Regenerated.
5184 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
5186 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
5187 * osabi.h (enum gdb_osabi): Move to defs.h.
5188 (gdbarch_init_osabi): Update prototype.
5189 * defs.h (enum gdb_osabi): Moved here.
5190 * Makefile.in: Update dependencies.
5192 * alpha-tdep.h: Don't include "osabi.h".
5193 (struct gdbarch_tdep): Remove osabi member.
5194 * alpha-tdep.c: Include "osabi.h".
5195 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5196 iterate over arches. Update call to gdbarch_init_osabi.
5197 (alpha_dump_tdep): Don't dump osabi.
5198 * alpha-linux-tdep.c: Include "osabi.h".
5199 * alpha-osf1-tdep.c: Include "osabi.h".
5200 * alphafbsd-tdep.c: Include "osabi.h".
5201 * alphanbsd-tdep.c: Include "osabi.h".
5203 * arm-tdep.h: Don't include "osabi.h".
5204 (struct gdbarch_tdep): Remove osabi member.
5205 * arm-tdep.c: Include "osabi.h".
5206 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5207 iterate over arches. Update call to gdbarch_init_osabi.
5208 (arm_dump_tdep): Don't dump osabi.
5209 * arm-linux-tdep.c: Include "osabi.h".
5210 * armnbsd-tdep.c: Include "osabi.h".
5212 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
5213 Update call to gdbarch_init_osabi.
5215 * i386-tdep.h: Don't include "osabi.h".
5216 (struct gdbarch_tdep): Remove osabi member.
5217 * i386-tdep.c: Include "osabi.h".
5218 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5219 iterate over arches. Update call to gdbarch_init_osabi.
5220 (i386_dump_tdep): Don't dump osabi.
5221 * i386-linux-tdep.c: Include "osabi.h".
5222 * i386-sol2-tdep.c: Include "osabi.h".
5223 * i386bsd-tdep.c: Include "osabi.h".
5224 * i386gnu-tdep.c: Include "osabi.h".
5225 * i386ly-tdep.c: Include "osabi.h".
5226 * i386nbsd-tdep.c: Include "osabi.h".
5227 * i386obsd-tdep.c: Include "osabi.h".
5229 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
5230 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5231 check osabi when iterating over arches. Update call to
5233 (mips_dump_tdep): Don't dump osabi.
5235 * ns32k-tdep.h: Don't include "osabi.h".
5236 (struct gdbarch_tdep): Remove.
5237 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
5238 gdbarch_lookup_osabi. Don't iterate over arches. Don't
5239 allocate tdep. Update call to gdbarch_init_osabi.
5240 (ns32k_dump_tdep): Remove.
5241 (_initialize_ns32k_tdep): Update call to gdbarch_register.
5242 * ns32knbsd-tdep.c: Include "osabi.h".
5244 * ppc-tdep.h: Don't include "osabi.h".
5245 (struct gdbarch_tdep): Remove osabi member.
5246 * rs6000-tdep.c: Include "osabi.h".
5247 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
5248 osabi when iterating over arches. Update call to
5250 (rs6000_dump_tdep): Don't dump osabi.
5251 * ppc-linux-tdep.c: Include "osabi.h".
5252 * ppcnbsd-tdep.c: Include "osabi.h".
5254 * sh-tdep.h: Don't include "osabi.h".
5255 (struct gdbarch_tdep): Remove osabi member.
5256 * sh-tdep.c: Include "osabi.h".
5257 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5258 iterate over arches. Update call to gdbarch_init_osabi.
5259 (sh_dump_tdep): Don't dump osabi.
5260 * shnbsd-tdep.c: Include "osabi.h".
5262 * sparc-tdep.c: Include "osabi.h".
5263 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5264 iterate over arches. Update call to gdbarch_init_osabi.
5265 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
5268 * vax-tdep.h: Don't include "osabi.h".
5269 (struct gdbarch_tdep): Remove.
5270 * vax-tdep.c: Include "osabi.h".
5271 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5272 iterate over arches. Don't allocate tdep. Update call
5273 to gdbarch_init_osabi.
5274 (vax_dump_tdep): Remove.
5275 (_initialize_vax_tdep): Update call to gdbarch_register.
5277 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5279 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
5281 (breakpoint_re_set_one): Don't fetch the value for a disabled
5284 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5286 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
5287 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
5288 (COERCE_FLOAT_TO_DOUBLE): Remove.
5289 * gdbarch.c: Regenerate.
5290 * gdbarch.h: Regenerate.
5291 * Makefile.in: Remove value_h from gdbarch_h.
5292 * valops.c (coerce_float_to_double): New variable.
5293 (default_coerce_float_to_double): Remove.
5294 (standard_coerce_float_to_double): Remove.
5295 (value_arg_coerce): Use coerce_float_to_double.
5296 (_initialize_valops): Add "set coerce-float-to-double".
5297 * value.h (default_coerce_float_to_double): Remove prototype.
5298 (standard_coerce_float_to_double): Remove prototype.
5300 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
5302 * mdebugread.c (parse_symbol): Likewise.
5303 * stabsread.c (define_symbol): Mark all functions as prototyped.
5305 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
5306 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
5307 set_gdbarch_coerce_float_to_double.
5308 * arm-tdep.c (arm_gdbarch_init): Likewise.
5309 * frv-tdep.c (frv_gdbarch_init): Likewise.
5310 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
5311 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
5312 * mips-tdep.c (mips_gdbarch_init): Likewise.
5313 (mips_coerce_float_to_double): Remove.
5314 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5315 (rs6000_coerce_float_to_double): Remove.
5316 * s390-tdep.c (s390_gdbarch_init): Likewise.
5317 * sh-tdep.c (sh_gdbarch_init): Likewise.
5318 (sh_coerce_float_to_double): Remove.
5319 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5320 (sparc_coerce_float_to_double): Remove.
5321 * v850-tdep.c (v850_gdbarch_init): Likewise.
5322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5323 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5324 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
5325 (hppa_coerce_float_to_double): Remove prototype.
5326 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5328 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5330 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
5332 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5334 Suggested by Stewart Brown <sb24@avaya.com>:
5335 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
5336 in recursive calls. Handle TYPE_CODE_TYPEDEF.
5337 (c_type_print_varspec_suffix): Likewise.
5339 2003-01-04 Mark Kettenis <kettenis@gnu.org>
5341 * configure.in: Don't set and AC_SUBST SUBDIRS.
5342 * configure: Regenerated.
5344 * configure.in: Remove code dealing with shared libraries.
5345 * Makefile.in: Remove HLDFLAGS and HLDENV.
5346 * configure: Regenerated.
5348 2003-01-04 Andrew Cagney <ac131313@redhat.com>
5350 * frame.c (deprecated_frame_xmalloc): New function.
5351 (deprecated_set_frame_saved_regs_hack): New function.
5352 (deprecated_set_frame_extra_info_hack): New function.
5353 * frame.h (deprecated_frame_xmalloc): Declare.
5354 (deprecated_set_frame_saved_regs_hack): Declare.
5355 (deprecated_set_frame_extra_info_hack): Declare.
5357 2003-01-04 Mark Kettenis <kettenis@gnu.org>
5359 * configure.in: Move code that provides the --enable-gdbtk option
5360 right after the code that handles the --enable-tui option, and
5362 * configure: Regenerated.
5364 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
5365 AC_CHECK_FUNCS and remove the old check for pread64.
5366 * acinclude.m4 (AC_GNU_SOURCE): New macro.
5367 * acconfig.h (_GNU_SOURCE): Add.
5368 (HAVE_PREAD64): Remove.
5369 * configure, aclocal.m4, config.in: Regenerated.
5371 2003-01-03 Andrew Cagney <ac131313@redhat.com>
5373 * alpha-tdep.c: Use get_frame_saved_regs.
5374 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5375 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5376 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
5377 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
5378 * vax-tdep.c, xstormy16-tdep.c: Ditto.
5380 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5382 * configure.in: Remove all use of the SUBDIRS variable; add
5383 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
5384 code providing the --enable-multi-ice option, and move it right in
5385 front of the code that checks whether gdbserver is supported.
5387 * configure: Regenerated.
5388 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
5391 2003-01-03 Andrew Cagney <cagney@redhat.com>
5393 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
5394 * avr-tdep.c, cris-tdep.c: Ditto.
5395 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5396 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
5398 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5400 * configure.in: Remove --enable-netrom option.
5401 * configure: Regenerated.
5403 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5405 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
5406 declaration for `struct re_pattern_buffer' instead.
5407 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
5409 2003-01-03 J. Brobecker <brobecker@gnat.com>
5411 * mdebugread.c (parse_symbol): Count until the stEnd matching
5414 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5416 * configure.in: Remove --with-cpu option.
5417 subscripts. Remove evil changequotes here.
5418 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
5419 * config.in, configure: Regenerated.
5421 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
5422 * configure.in: Cleanup section that sources GDB and BFD configure
5423 subscripts. Remove evil changequotes here.
5424 * config.in, configure: Regenerated.
5426 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5428 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
5429 frame accessor methods.
5430 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5431 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5432 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
5433 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
5434 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
5435 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5436 * z8k-tdep.c: Ditto.
5438 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5440 * configure.in: Remove UI_OUT configuration code.
5441 * ada-lang.c: Update assuming UI_OUT is always true.
5442 * Makefile.in (UIOUT_CFLAGS): Remove.
5443 * configure: Regenerated.
5444 * TODO: Remove blurb about elimination of -DUI_OUT.
5446 * configure.in: Move code that provides the --enable-gdbcli,
5447 --enable-gdbmi options right before the code that handles the
5448 --enable-tui option. Polish a bit.
5449 * configure: Regenerated.
5451 * configure.in: Rewrite check for GNU regex and the
5452 --without-included regex option, and move it into the "Checks for
5453 library functions" section. This makes us use the system regex
5454 again by default on systems with version 2 of the GNU C library.
5455 This was apparently broken.
5456 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
5457 * acconfig.h (USE_INCLUDED_REGEX): Remove.
5458 * config.in, configure: Regenerated.
5460 * configure.in: Move code that provides the --enable-tui option
5461 before the "Checks for libraries" section. Polish the code
5462 somewhat and set need_curses to yes if we build the TUI. Rewrite
5463 code that looks for a library providing termcap functionality to
5464 match more closely what's done in the Readline library, and move
5465 it into to the "Checks for libraries" section.
5466 * configure: Regenerated.
5467 * Makefile.in (TERMCAP): Remove variable.
5468 * config/i386/go32.mh (TERMCAP): Remove variable.
5470 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5472 * MAINTAINERS: Mention gdb_mbuild.sh.
5473 * gdb_mbuild.sh: Rewrite.
5475 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5477 * configure.in: Fix typo in last change.
5478 * config.in, configure: Regenerated.
5480 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5482 * valarith.c (value_binop): Delete obsolete code and comments.
5483 * configure.host: Ditto.
5484 * buildsym.h (make_blockvector): Ditto.
5485 * buildsym.c (make_blockvector): Ditto.
5486 * defs.h (enum language): Ditto.
5487 (chill_demangle): Ditto.
5488 * elfread.c (elf_symtab_read): Ditto.
5489 * dwarfread.c (CHILL_PRODUCER): Ditto.
5490 (set_cu_language): Ditto.
5491 (handle_producer): Ditto.
5492 * expprint.c (print_subexp): Ditto.
5493 * gdbtypes.c (chill_varying_type): Ditto.
5494 * gdbtypes.h (builtin_type_chill_bool): Ditto.
5495 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
5496 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
5497 (chill_varying_type): Ditto.
5498 * language.h (_LANG_chill): Ditto.
5499 * language.c (binop_result_type, integral_type): Ditto.
5500 (character_type, string_type, structured_type): Ditto.
5501 (lang_bool_type, binop_type_check): Ditto.
5502 * stabsread.h (os9k_stabs): Ditto.
5503 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
5504 (define_symbol, read_type, read_struct_fields): Ditto.
5505 (read_array_type, read_enum_type, read_huge_number): Ditto.
5506 (read_range_type, start_stabs): Ditto.
5507 * symfile.c (init_filename_language_table): Ditto.
5508 (add_psymbol_with_dem_name_to_list): Ditto.
5509 * symtab.c (symbol_init_language_specific): Ditto.
5510 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
5511 * symtab.h (struct general_symbol_info): Ditto.
5512 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5513 * typeprint.c (typedef_print): Ditto.
5514 * utils.c (fprintf_symbol_filtered): Ditto.
5515 * valops.c (value_cast, search_struct_field, value_slice): Delete
5517 (varying_to_slice): Delete function.
5518 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
5519 (varying_to_slice): Delete declaration.
5520 * MAINTAINERS: Update.
5522 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5524 * configure.in: Reorganize "Checks for library functions section"
5525 a bit. Remove check for `btowc' and `isascii' functions.
5526 * configure: Regenerated.
5528 * acconfig.h (_MSE_INT_H): Remove.
5529 * configure.in: Create "Checks for header files" section, and move
5530 appropriate tests there. Don't check for objlist.h, wchar.h,
5531 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
5532 misdetection fix. Also add "Checks for types", "Checks for
5533 compiler characteristics" and "Checks for library functions"
5535 * config.in, configure: Regenerated.
5537 * configure.in: Create "Checks for programs" section, and move
5538 appropriate tests there.
5540 2003-01-01 Mark Kettenis <kettenis@gnu.org>
5542 * configure.in: Create "Checks for libraries" section, and move
5543 appropriate tests there. Cleanup check for wctype in libw. Use
5544 AC_SEARCH_LIBS to see whether we need libsocket.
5545 * configure: Regenerated.
5547 For older changes see ChangeLog-2002
5553 version-control: never