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