1 2003-10-06 J. Brobecker <brobecker@gnat.com>
3 * language.h (language_defn): new field, la_word_break_characters.
4 * language.c (unknown_language_defn): Set new field to
5 default_word_break_characters.
6 (auto_language_defn): Likewise.
7 (local_language_defn): Likewise.
8 * ada-lang.c (ada_language_defn): Likewise.
9 * c-lang.c (c_language_defn): Likewise.
10 (cplus_language_defn): Likewise.
11 (asm_language_defn): Likewise.
12 (minimal_language_defn): Likewise.
13 * f-lang.c (f_language_defn): Likewise.
14 * jv-lang.c (java_language_defn): Likewise.
15 * m2-lang.c (m2_language_defn): Likewise.
16 * objc-lang.c (objc_language_defn): Likewise.
17 * p-lang.c (pascal_language_defn): Likewise.
18 * scm-lang.c (scm_language_defn): Likewise.
20 2003-10-06 Andrew Cagney <cagney@redhat.com>
22 * ppc-sysv-tdep.c: Re-indent.
24 2003-10-06 J. Brobecker <brobecker@gnat.com>
26 * language.h (default_word_break_characters): Add prototype.
27 * language.c (default_word_break_characters): New function.
29 2003-10-06 Andreas Schwab <schwab@suse.de>
31 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
34 2003-10-06 Andrew Cagney <cagney@redhat.com>
36 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
38 (z8k-tdep.o): Delete custom build rule.
40 2003-10-06 Andrew Cagney <cagney@redhat.com>
42 * Makefile.in: Update all dependencies.
44 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
45 No longer list PA as as obsolete candidate. List m32r as
46 broken instead of obsolete.
48 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
49 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
50 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
51 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
52 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
53 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
54 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
55 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
56 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
57 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
58 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
59 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
60 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
61 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
62 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
63 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
64 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
65 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
66 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
67 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
68 * config/z8k/z8k.mt: Ditto.
70 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
71 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
72 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
73 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
74 sparclite were removed.
75 * configure.host, configure.tgt: Remove corresponding tuples.
77 * breakpoint.c, breakpoint.h: Remove obsolete code.
78 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
79 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
80 * stabsread.h, xcoffread.c: Ditto.
82 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
83 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
84 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
85 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
87 2003-10-06 David Lecomber <dsl@sources.redhat.com>
89 * f-valprint.c: Reformatting
91 2003-10-06 Mark Kettenis <kettenis@gnu.org>
93 * x86-64-tdep.c: Remove duplicate comment.
95 * x86-64-tdep.c (x86_64_store_return_value): Don't use
96 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
97 names for return values. This fixes a bug since we looked at %rbx
100 2003-10-05 Mark Kettenis <kettenis@gnu.org>
102 * x86-64-tdep.c: Include "regset.h".
104 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
105 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
107 * i386-tdep.c: Include "regset.h".
108 (i386_supply_gregset): New function.
109 (i386_supply_fpregset): New function.
110 (i386_gdbarch_init): Initialze register set-related members of
112 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
113 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
115 2003-10-03 Andrew Cagney <cagney@redhat.com>
117 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
118 set extract_return_value, store_return_value and
119 use_struct_convention to ppc64_sysv_abi_extract_return_value,
120 ppc64_sysv_abi_store_return_value and
121 ppc64_sysv_abi_use_struct_convention.
122 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
123 (ppc64_sysv_abi_store_return_value): Declare.
124 (ppc64_sysv_abi_use_struct_convention): Declare.
125 * ppc-sysv-tdep.c (enum return_value_convention): Define.
126 (ppc64_sysv_abi_extract_return_value): New function.
127 (ppc64_sysv_abi_store_return_value): New function.
128 (ppc64_sysv_abi_use_struct_convention): New function.
129 (ppc64_sysv_abi_return_value): New function.
131 2003-10-03 Andrew Cagney <cagney@redhat.com>
133 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
134 convert a descriptor to a function when it's in the ".opd"
137 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
139 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
140 reg_size to keep GCC silent.
142 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
144 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
145 base for DW_EH_PE_textrel encodings.
146 (read_encoded_value): Add a DW_EH_PE_textrel case.
147 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
150 2003-10-03 Mark Kettenis <kettenis@gnu.org>
152 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
154 2003-10-02 Andrew Cagney <cagney@redhat.com>
156 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
158 * gdbarch.h, gdbarch.c: Re-generate.
159 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
160 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
161 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
162 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
163 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
164 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
165 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
166 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
167 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
168 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
169 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
170 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
171 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
172 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
173 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
174 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
176 2003-10-02 Jim Blandy <jimb@redhat.com>
178 * dwarf2read.c (struct die_info): Doc fix.
180 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
182 * sh-tdep.c: Running thru gdb_indent.sh.
184 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
186 * sh-tdep.c (sh_justify_value_in_reg): New function.
187 (sh_stack_allocsize): Ditto.
188 (flt_argreg_array): New array used for floating point argument
190 (sh_init_flt_argreg): New function.
191 (sh_next_flt_argreg): Ditto.
192 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
193 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
194 Fix argument passing strategy.
195 (sh_push_dummy_call_nofpu): Ditto.
197 2003-10-01 Andrew Cagney <cagney@redhat.com>
199 * value.h (register_value_being_returned): Declare. Replace
200 "value_being_returned".
201 * infcall.c (call_function_by_hand): Use
202 register_value_being_returned.
203 * infcmd.c (print_return_value): Call
204 "register_value_being_returned", handle struct return locally.
205 * values.c (register_value_being_returned): New function. Replace
206 "value_being_returned".
208 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
210 * linux-proc.c (linux_do_registers): New function.
211 (linux_make_note_section): Use linux_do_registers in case of
212 single threaded inferior programs.
214 2003-10-01 Andrew Cagney <cagney@redhat.com>
216 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
217 use STRUCT_ADDR. When not using "struct return convention", pass
218 "0" to "value_being_returned". Add FIXMEs.
219 * infcmd.c (print_return_value): Pass an explicit 0/1 to
220 value_being_returned. Add comments.
221 * values.c (value_being_returned): Add fixme.
222 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
223 (hppa_value_returned_from_stack): Add FIXME.
225 2003-09-30 David Carlton <carlton@kealia.com>
227 * dwarf2read.c (struct die_info): Add 'parent' field; replace
228 'has_children' and 'next' by 'child' and 'sibling'.
229 (read_comp_unit): Rework algorithm, breaking body into
230 read_die_and_children and read_die_and_siblings.
231 (read_die_and_children, read_die_and_siblings): New.
232 (read_full_die): Add 'has_children' argument; set it instead of
233 the die's 'has_children' field. Minor formatting cleanup.
234 (free_die_list): Use die->child and die->sibling instead of
236 (dump_die_list): Ditto.
237 (sibling_die): Use die->sibling.
238 (psymtab_to_symtab_1): Use die's 'child' field in place of its
239 'has_children' and 'next' fields.
240 (process_die, read_file_scope, read_func_scope)
241 (read_lexical_block_scope, read_structure_scope)
242 (read_enumeration, read_array_type, read_common_block)
243 (read_namespace, read_subroutine_type, dump_die): Ditto.
245 2003-09-30 Andrew Cagney <cagney@redhat.com>
247 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
250 2003-09-30 Andrew Cagney <cagney@redhat.com>
252 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
253 REGISTER_VIRTUAL_SIZE.
254 * gdbarch.h, gdbarch.c: Regenerate.
255 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
256 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
257 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
259 2003-09-29 Andrew Cagney <cagney@redhat.com>
261 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
262 DEPRECATED_REGISTER_VIRTUAL_TYPE.
263 * gdbarch.h, gdbarch.c: Regenerate.
264 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
265 * sh64-tdep.c, sparc-tdep.c: Update.
267 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
268 * remote-vxmips.c (vx_read_register): Ditto.
269 * remote-vx68.c (vx_read_register): Ditto.
270 * gnu-nat.c (inf_validate_procs): Ditto.
272 2003-09-29 J. Brobecker <brobecker@gnat.com>
274 * infcall.c (call_function_by_hand): Fix build failure
275 introduced in the previous change to this file.
277 2003-09-29 Andrew Cagney <cagney@redhat.com>
279 * NEWS: Mention Objective-C.
281 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
283 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
284 test if the register has been saved on the stack.
285 (arm_scan_prologue_cache): When analysing the instruction
286 "str lr, [sp, #-4]", save the address where lr has been stored.
288 2003-09-28 Andrew Cagney <cagney@redhat.com>
290 * frame.c (frame_read_unsigned_register): Delete function.
291 * frame.h (frame_read_unsigned_register): Delete declaration.
292 * sparc-tdep.c (sparc_init_extra_frame_info): Use
293 get_frame_register_unsigned.
294 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
295 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
296 * d10v-tdep.c (d10v_print_registers_info): Ditto.
298 * frame.h (frame_read_register): Delete declaration.
299 * frame.c (frame_read_register): Delete function.
300 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
301 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
302 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
303 * mips-tdep.c (mips_register_to_value): Ditto.
304 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
305 * d10v-tdep.c (d10v_print_registers_info): Ditto.
307 * frame.c (frame_read_signed_register): Delete function.
308 (frame_read_unsigned_register): Update comments.
309 * frame.h (frame_read_signed_register): Delete declaration.
310 * h8300-tdep.c (h8300_print_register): Use
311 get_frame_register_signed.
312 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
314 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
315 Rename VALUE_RETURNED_FROM_STACK.
316 * infcmd.c (print_return_value): Update.
317 * infcall.c (call_function_by_hand): Update.
319 2003-09-28 Mark Kettenis <kettenis@gnu.org>
321 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
322 regcache argument and reverse the order of the other two
323 arguments. Remove local regcache variable. Determine
324 architecture from REGCACHE. Update comments.
325 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
326 reverse the order of the other two arguments. Remove local
327 regcache variable. Determine architecture from REGCACHE. Update
329 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
330 prototypes. Update comments.
331 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
333 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
335 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
336 * i386-interix-nat.c (supply_fpregset): Update.
337 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
338 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
339 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
340 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
341 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
343 * i386obsd-tdep.c (fetch_core_registers): Update.
344 * i386v4-nat.c (supply_fpregset): Update.
345 * x86-64-linux-nat.c (supply_fpregset): Update.
346 * x86-64-linux-tdep.c (fetch_core_registers): Update.
348 2003-09-27 Mark Kettenis <kettenis@gnu.org>
350 * i386-tdep.h: Put opaque declarations in alphabetical
351 order. Remove spurious whitespace.
352 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
353 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
354 * i386-tdep.c (MM0_REGNUM): Remove define.
355 (i386_mmx_regnum_p): Add gdbarch argument.
356 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
357 Rewrite using new macro definitions for FPU/SSE registers.
358 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
359 definitions from i387-tdep.h.
360 (i386_register_name): Update.
361 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
362 new macro definitions for FPU/SSE registers.
363 (i386_extract_return_value): Determine whether floating-point
364 registers are present by examining REGCACHE's architecture.
365 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
366 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
368 (i386_register_type): Update.
369 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
370 definitions for FPU registers. Use REGCACHE's architecture to
371 determine the appropriate register numbers.
372 (i386_pseudo_register_read, i386_pseudo_register_write,
373 i386_register_reggroup_p): Update.
374 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
376 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
377 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
378 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
379 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
380 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
381 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
383 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
384 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
385 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
386 definitions for FPU/SSE registers.
387 (FXSAVE_MXCSR_ADDR): New define.
388 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
390 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
391 (I387_ST0_REGNUM): Define.
393 * regcache.h (get_regcache_arch): New prototype.
394 * regcache.c (get_regcache_arch): New function.
396 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
399 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
400 Initialize using ARRAY_SIZE.
402 2003-09-27 Andrew Cagney <cagney@redhat.com>
404 * arch-utils.c (deprecated_init_frame_pc_default): Rename
405 "init_frame_pc_default".
406 * arch-utils.h (deprecated_init_frame_pc_default): Update.
407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
408 * vax-tdep.c (vax_gdbarch_init): Update.
409 * v850-tdep.c (v850_gdbarch_init): Update.
410 * sh64-tdep.c (sh64_gdbarch_init): Update.
411 * s390-tdep.c (s390_gdbarch_init): Update.
412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
413 * mcore-tdep.c (mcore_gdbarch_init): Update.
414 * h8300-tdep.c (h8300_gdbarch_init): Update.
415 * cris-tdep.c (cris_gdbarch_init): Update.
416 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
418 2003-09-26 Mark Kettenis <kettenis@gnu.org>
420 * regset.h: New file.
421 * Makefile.in (regset_h): Add.
423 2003-09-25 Andrew Cagney <cagney@redhat.com>
425 * frame.h (deprecated_frame_saved_regs): Rename
426 get_frame_saved_regs.
427 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
428 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
429 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
430 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
431 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
433 2003-09-25 Andrew Cagney <cagney@redhat.com>
435 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
436 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
438 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
439 arm*-*-* do not use the new frame code.
441 2003-09-25 David Carlton <carlton@kealia.com>
443 * c-exp.y: Remove 'register' declarations.
444 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
446 2003-09-25 David Carlton <carlton@kealia.com>
448 * c-exp.y: Include cp-support.h. Add qualified_type.
449 (yylex): Delete nested type hack; add comments.
450 * cp-namespace.c (cp_lookup_nested_type): New function.
451 * cp-support.h: Declare cp_lookup_nested_type.
452 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
453 instead of value_struct_elt_for_reference.
454 * valops.c: Include cp-support.h.
455 (value_aggregate_elt): New function.
456 (value_namespace_elt): Ditto.
457 (value_struct_elt_for_reference): Make static.
458 * value.h: Delete declaration of value_struct_elt_for_reference;
459 add declaration for value_aggregate_elt.
460 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
463 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
465 * stack.c: Include "reggroups.h".
466 (frame_info): Only display registers in all_reggroup.
467 * Makefile.in (stack.o): Update dependencies.
469 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
471 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
472 "add ip, sp #n" in the prologue.
473 (arm_scan_prologue): Ditto.
475 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
477 * MAINTAINERS (write after approval): Add myself.
479 2003-09-25 Andreas Schwab <schwab@suse.de>
481 * m68k-tdep.c: Include "dwarf2-frame.h".
482 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
483 * Makefile.in (m68k-tdep.o): Update dependencies.
485 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
487 * sh-tdep.c (struct frame_extra_info): Remove.
488 (struct sh_frame_cache): New structure.
489 (GET_SOURCE_REG): New macro extracting source register of an opcode.
490 (GET_TARGET_REG): Ditto but target register.
491 (GET_PUSHED_REG): Remove.
492 (IS_MOV_ARG_TO_REG): New macro.
493 (IS_MOV_ARG_TO_IND_R14): New macro.
494 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
495 (IS_MOVW_PCREL_TO_REG): New macro.
496 (IS_MOVL_PCREL_TO_REG): New macro.
497 (IS_SUB_REG_FROM_SP): New macro.
498 (IS_ARG_MOV): Remove.
499 (IS_MOV_TO_R14): Remove.
500 (IS_RESTORE_FP): New macro.
503 (IS_MOV_FP_SP): New macro.
504 (IS_ADD_REG_TO_FP): New macro.
505 (IS_ADD_IMM_FP): New macro.
506 (sh_skip_prologue_hard_way): Remove.
507 (sh_saved_pc_after_call): Remove.
508 (sh_frame_chain): Remove.
509 (sh_find_callers_reg): Remove.
510 (sh_nofp_frame_init_saved_regs): Remove.
511 (sh_fp_frame_init_saved_regs): Remove.
512 (sh_init_extra_frame_info): Remove.
513 (sh_analyze_prologue): New function.
514 (sh_skip_prologue): Remove deprecated code. Rely on new function
515 sh_analyze_prologue when after_prologue fails.
516 (sh_frame_saved_pc): Remove.
517 (sh_alloc_frame_cache): New function.
518 (sh_frame_cache): Ditto.
519 (sh_frame_prev_register): Ditto.
520 (sh_frame_this_id): Ditto.
521 (sh_frame_unwind): New structure defining the heuristic frame
523 (sh_frame_sniffer): New function.
524 (sh_unwind_sp): Ditto.
525 (sh_unwind_pc): Ditto.
526 (sh_unwind_dummy_id): Ditto.
527 (sh_frame_base_address): Ditto.
528 (sh_frame_base): New structure defining new frame base code.
529 (sh_in_function_epilogue_p): New function.
530 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
531 code and to call all new code instead. Initialize dwarf2 and
532 heuristic frame sniffer.
534 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
536 * parser-defs.h (struct exp_descriptor): New definition, containing
537 language-specific info for printing, prefixifying, dumping, and
538 evaluating expressions.
539 (exp_descriptor_standard): Declare new variable.
540 (print_subexp): Make global and declare here (from expprint.c).
541 (dump_subexp): Ditto.
542 (dump_subexp_body_standard): Declare.
543 (operator_length_standard): Declare.
544 (op_name_standard): Declare.
545 (print_subexp): Declare.
546 (print_subexp_standard): Declare.
548 * language.h (struct language_defn): Add la_exp_desc field to hold
549 pointer to table for language-specific operators.
550 Remove evaluate_exp field, which is now in struct exp_descriptor.
552 * parse.c (operator_length): Move most code to new
553 operator_length_standard function. Use language-specific information.
554 (operator_length_standard): New function taking most code from
556 (exp_descriptor_standard): New constant.
558 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
559 and OP_EXTENDED_LAST.
561 * expprint.c (print_subexp): Use language-specific print_subexp.
562 Make global; remove static declaration.
563 Move most code to print_subexp_standard.
564 (print_subexp_standard): New function, containing code formerly in
566 (op_name): Add expression to argument signature.
567 Use langauge-specific op_name.
568 Move most code to op_name_standard.
569 (op_name_standard): New function, containing code formerly in op_name.
570 (dump_subexp): Use new version of op_name function.
571 Use language-specific dump_subexp_body, and move most existing code to
572 dump_subexp_body_standard.
573 (dump_raw_expression): Use new op_name interface.
574 (dump_subexp_body): Move most code to dump_subexp_body_standard.
575 (dump_subexp_body_standard): New function, containing code formerly
578 * language.c (unknown_language): Add default la_exp_desc field and
579 remove evaluate_exp field.
580 (auto_language): Ditto.
581 (local_language): Ditto.
582 * f-lang.c (f_language_defn): Ditto.
583 * c-lang.c (c_language_defn): Ditto.
584 (cplus_language_defn): Ditto.
585 (asm_language_defn): Ditto.
586 (minimal_language_defn): Ditto.
587 * p-lang.c (pascal_language_defn): Ditto.
588 * m2-lang.c (m2_language_defn): Ditto.
589 * objc-lang.c (objc_language_defn): Ditto.
591 * jv-lang.c (exp_descriptor_java): New variable, containing
592 Java-specific expression evaluator.
593 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
595 * scm-lang.c (exp_descriptor_scm): New variable, containing
596 Scheme-specific expression evaluator.
597 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
599 * objc-lang.c (print_object_command): Take evaluate_exp from the
602 * Makefile.in (eval.o): Add dependency on parser-defs.h.
604 * eval.c: Include parser-defs.h for the full declaration of
606 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
608 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
610 * parser-defs.h (operator_length): Declare.
612 * parse.c (length_of_subexp): Use operator_length to get operator
613 lengths and arities for operators.
614 Move most code to new operator_length function.
615 (operator_length): New function absorbing most code from
617 (prefixify_subexp): Remove large case and use operator_length instead.
618 (parse_exp_1): Use renamings:
619 dump_prefix_expression => dump_raw_expression and
620 dump_postfix_expression => dump_prefix_expression.
622 * expression.h (dump_prefix_expression): Rename to ...
623 (dump_raw_expression): New name.
624 (dump_postfix_expression): Rename to ...
625 (dump_prefix_expression): New name.
627 * expprint.c (dump_subexp): Make global. Add comment.
628 Move most existing code to dump_subexp_body.
629 (dump_subexp_body): New function.
630 (dump_prefix_expression): Rename to dump_raw_expression.
631 Remove attempt to print the expression via print_expression: it can't
632 work before the expression is prefixified.
633 (dump_raw_expression): Renamed from dump_prefix_expression.
634 (dump_postfix_expression): Rename to dump_prefix_expression, since
636 Remove 'note' parameter, since this routine must be used on
637 prefixified expression.
638 (dump_prefix_expression): Renamed from dump_postfix_expression.
640 2003-09-22 Jim Blandy <jimb@redhat.com>
642 * dwarf2read.c (read_array_type): When building the type for an
643 array of unspecified length, make sure to choose the upper bound
644 so that the array's total length comes out to be zero --- that's
645 how we represent such arrays.
647 2003-09-22 Michael Chastain <mec@shout.net>
649 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
651 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
653 * top.c (quit_force): Fix indirect call to quit_target so
654 a struct qt_args pointer is passed.
656 2003-09-22 Andrew Cagney <cagney@redhat.com>
658 * arch-utils.h (init_frame_pc_noop): Delete declaration.
659 * arch-utils.c (init_frame_pc_noop): Delete function.
660 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
662 * mips-tdep.c (mips_gdbarch_init): Ditto.
663 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
664 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
666 (DEPRECATED_INIT_FRAME_PC): Delete macro.
667 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
669 (DEPRECATED_INIT_FRAME_PC): Delete macro.
671 2003-09-22 Anthony Green <green@redhat.com>
673 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
676 2003-09-20 Andrew Cagney <cagney@redhat.com>
678 * breakpoint.c: Eliminate ARGSUSED.
679 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
680 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
681 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
682 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
683 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
684 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
685 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
686 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
687 * wince.c, remote-vx.c: Ditto.
689 * cli/cli-script.c: Remove "register" attributes.
690 * config/pa/tm-hppa.h: Ditto.
691 * cli/cli-decode.c: Ditto.
692 * cli/cli-cmds.c: Ditto.
694 2003-09-19 Andrew Cagney <cagney@redhat.com>
696 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
697 DEPRECATED_NPC_REGNUM.
698 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
700 2003-09-19 Christopher Faylor <cgf@redhat.com>
702 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
704 2003-09-19 Jim Blandy <jimb@redhat.com>
706 * macrotab.c (macro_include): Use the correct comparison to find
707 the appropriate place for this inclusion in the list.
709 2003-09-19 Andrew Cagney <cagney@redhat.com>
711 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
712 (DEPRECATED_HPUX_TEXT_END): Define.
713 (deprecated_hpux_text_end): Declare.
714 (struct target_ops): Declare opaque.
715 * hppah-nat.c (text_end): Make static.
716 (deprecated_hpux_text_end): New function.
717 * exec.c (text_end): Delete global variable.
718 (NEED_TEXT_START_END): Do not define.
719 (exec_file_attach): Replace code computing "text_end" code with
720 call to DEPRECATED_HPUX_TEXT_END.
722 2003-09-19 Andrew Cagney <cagney@redhat.com>
724 * utils.c (align_up, align_down): New functions.
725 * defs.h (align_up, align_down): Declare.
726 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
727 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
729 (round_up, round_down): Delete functions.
730 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
732 (ROUND_DOWN, ROUND_UP): Delete macros.
733 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
734 * h8300-tdep.c: Replace "round_up" and "round_down" with
735 "align_up" and "align_down".
736 (round_up, round_down): Delete macros.
737 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
739 (ROUND_UP, ROUND_DOWN): Delete macros.
741 2003-09-18 J. Brobecker <brobecker@gnat.com>
743 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
744 hard-coded constant. Use the proper machine name instead.
746 2003-09-17 Andrew Cagney <cagney@redhat.com>
748 * sparc-tdep.c (legacy_register_name): Delete function.
749 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
750 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
751 * infcmd.c (gdb_register_name): Delete variable.
752 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
753 REGISTER_NAME and "tm.h".
754 * gdbarch.h, gdbarch.c: Regenerate.
755 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
756 REGISTER_NAMES in comments.
757 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
758 * m68klinux-nat.c (regmap): Ditto.
760 2003-09-17 Jim Blandy <jimb@redhat.com>
762 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
764 2003-09-17 Andrew Cagney <cagney@redhat.com>
766 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
767 (ppcnbsd_init_abi): Set "use_struct_convention" to
768 "ppcnbsd_use_struct_convention".
770 2003-09-17 Mark Kettenis <kettenis@gnu.org>
772 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
773 * gdbarch.h, gdbarch.c: Regenerate.
774 (stabs_argument_has_addr): New architecture method.
775 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
776 * arch-utils.c: Include "buildsym.h".
777 (default_stabs_argument_has_addr): New function.
778 * stabsread.c (define_symbol): Use stabs_argument_has_addr
779 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
781 2003-09-17 Andrew Cagney <cagney@redhat.com>
783 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
784 * gdbarch.h, gdbarch.c: Regenerate.
785 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
786 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
787 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
788 * sparcnbsd-tdep.c: Update.
790 2003-09-17 Andrew Cagney <cagney@redhat.com>
792 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
793 * gdbarch.h, gdbarch.c: Regenerate.
794 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
795 * d10v-tdep.c, frame.c: Update.
796 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
797 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
798 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
799 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
800 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
801 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
802 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
803 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
804 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
805 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
806 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
807 * config/pa/nm-hppah.h: Update.
809 2003-09-16 Andrew Cagney <cagney@redhat.com>
811 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
812 "use_struct_convention" to "ppc_linux_use_struct_convention".
813 (ppc_linux_use_struct_convention): New function.
814 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
815 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
816 "rs6000_use_struct_convention".
817 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
819 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
822 2003-09-16 Andrew Cagney <cagney@redhat.com>
824 * buildsym.c: Remove more occurances of "register".
825 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
826 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
827 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
828 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
829 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
830 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
831 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
832 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
834 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
836 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
837 numbers to enumeration values.
838 * sh-tdep.c: Accomodate above change.
839 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
840 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
841 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
842 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
843 (IS_FPUSH): Rename from IS_FMOV.
844 (sh_extract_struct_value_address): Remove useless comment.
845 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
846 instead of own local values.
847 (sh_dump_tdep): Remove.
848 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
849 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
851 2003-09-15 Andrew Cagney <cagney@redhat.com>
853 * doublest.c (convert_floatformat_to_doublest): No longer need to
854 cast "exp_bias" to an int. Reverts 2002-12-04 change.
856 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
858 * values.c (unpack_double): Call floatformat_is_valid.
860 2003-09-15 Mark Kettenis <kettenis@gnu.org>
862 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
863 ps_strings into a long.
865 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
866 _initialize_am64fbsd_nat.
868 2003-09-15 Kevin Buettner <kevinb@redhat.com>
870 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
871 associated with DW_AT_ranges attribute is out of bounds.
873 2003-09-15 David Lecomber <dsl@sources.redhat.com>
875 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
877 2003-09-14 Michael Chastain <mec@shout.net>
879 * config/m68k/nm-apollo68v.h: Delete.
880 * config/m68k/xm-apollo68v.h: Delete.
882 2003-09-14 Andrew Cagney <cagney@redhat.com>
884 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
885 * dcache.c: Update copyrights and descriptions.
886 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
888 2003-09-14 Andrew Cagney <cagney@redhat.com>
890 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
891 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
893 2003-09-14 Andrew Cagney <cagney@redhat.com>
895 * alpha-nat.c: Remove some occurances of "register".
896 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
897 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
898 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
899 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
900 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
901 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
902 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
903 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
904 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
905 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
906 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
907 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
908 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
909 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
910 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
911 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
912 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
913 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
914 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
915 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
916 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
917 * values.c, vax-tdep.c, xcoffread.c: Ditto.
919 2003-09-13 Andrew Cagney <cagney@redhat.com>
921 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
922 * ppc-tdep.h (struct regcache): Declare opaque.
923 * objfiles.h (struct objfile_data): Declare opaque.
924 * cp-support.h (struct objfile): Declare opaque.
925 * linux-nat.h (target_waitstatus): Declare opaque.
927 2003-09-14 Mark Kettenis <kettenis@gnu.org>
929 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
930 (stabs_argument_has_addr): New architecture method.
931 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
932 * arch-utils.c: Include "buildsym.h".
933 (default_stabs_argument_has_addr): New function.
934 * stabsread.c (define_symbol): Use stabs_argument_has_addr
935 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
937 * cris-tdep.c (cris_gdbarch_init): Set
938 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
939 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
940 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
941 * mips-tdep.c (mips_gdbarch_init): Likewise.
942 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
943 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
945 2003-09-13 Andrew Cagney <cagney@redhat.com>
947 * values.c (using_struct_return): Delete "function" and "funcaddr"
949 * value.h (using_struct_return): Update declaration.
950 * infcmd.c (finish_command_continuation): Update.
951 (finish_command): Update.
952 * infcall.c (call_function_by_hand): Update.
953 * eval.c (evaluate_subexp_standard): Update.
955 2003-09-13 Christopher Faylor <cgf@redhat.com>
957 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
958 SSE registers since gdb will not operate correctly without this.
959 Restore include file ordering munged in previous change.
960 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
962 2003-09-13 Mark Kettenis <kettenis@gnu.org>
964 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
966 * gdbarch.c, gdbarch.h: Updated.
967 * infcall.c (call_function_by_hand): Update.
968 * stabsread.c (define_symbol): Updated.
970 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
972 2003-09-12 Christopher Faylor <cgf@redhat.com>
974 * win32-nat.c: Reorganize so that defines used by target headers are
975 actually defined by the system headers.
976 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
977 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
979 2003-09-12 Jim Blandy <jimb@redhat.com>
981 * dbxread.c (read_dbx_symtab): Don't report an internal error if
982 the file has no .data, .bss, or .rodata sections. Instead wait
983 until we see a variable alleged to live in one of those sections.
985 * dbxread.c (read_dbx_symtab): If we have no .data section and no
986 .bss section, presume that any variables we find live in the
989 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
990 offsets for global and static variables.
992 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
993 symbol types are, by definition, in the .data section, so it is
994 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
995 If there is no .data section, there should be no N_DATA or N_DATA
998 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1000 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1001 (amd64fbsd_sigcontext_addr): Rewrite.
1002 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1003 with correct values.
1004 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1005 (amd64fbsd_init_abi): Fix typo.
1007 2003-09-12 Andrew Cagney <cagney@redhat.com>
1009 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1010 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1012 2003-09-12 Andrew Cagney <cagney@redhat.com>
1014 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1015 "entry_file_highpc". Update comments.
1016 * defs.h (deprecated_inside_entry_file): Rename
1017 "inside_entry_file".
1018 * blockframe.c (deprecated_inside_entry_file): Rename
1019 "inside_entry_file".
1020 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1021 * vax-tdep.c (vax_frame_chain): Update.
1022 * sh64-tdep.c (sh64_frame_chain): Update.
1023 * sh-tdep.c (sh_frame_chain): Update.
1024 * rs6000-tdep.c (rs6000_frame_chain): Update.
1025 * ns32k-tdep.c (ns32k_frame_chain): Update.
1026 * mips-tdep.c (mips_frame_chain): Update.
1027 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1028 * m32r-tdep.c (m32r_frame_this_id): Update.
1029 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1030 * frv-tdep.c (frv_frame_this_id): Update.
1031 * d10v-tdep.c (d10v_frame_this_id): Update.
1032 * cris-tdep.c (cris_frame_chain): Update.
1033 * blockframe.c (legacy_frame_chain_valid): Update.
1034 * avr-tdep.c (avr_frame_this_id): Update.
1035 * arm-tdep.c (arm_prologue_this_id): Update.
1036 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1037 * objfiles.c (objfile_relocate): Update.
1038 * mipsread.c (mipscoff_symfile_read): Update.
1039 (mipscoff_symfile_read): Update.
1040 * mdebugread.c (parse_partial_symbols): Update.
1041 * dwarfread.c (read_file_scope): Update.
1042 * dwarf2read.c (read_file_scope): Update.
1043 * dbxread.c (read_dbx_symtab): Update.
1044 (read_dbx_symtab): Update.
1045 * coffread.c (complete_symtab): Update.
1047 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1049 * top.c (quit_target): New static helper function.
1050 (quit_force): Moved code to quit_target(). Call quit_target()
1051 via catch_errors() to catch errors during quit.
1053 2003-09-11 David Carlton <carlton@kealia.com>
1055 * buildsym.c (finish_block): Use allocate_block to allocate the
1057 * mdebugread.c (new_block): Add FIXME.
1059 2003-09-11 David Carlton <carlton@kealia.com>
1061 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1062 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1063 (recursive_dump_type): Ditto.
1064 * printcmd.c (print_formatted): Ditto.
1065 * typeprint.c (print_type_scalar): Ditto.
1066 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1067 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1068 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1069 maint_cplus_cmd_list.
1070 * cp-support.c: Make maint_cplus_cmd_list extern.
1071 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1073 (lookup_symbol_file): Look in possible namespace blocks when
1075 (initialize_namespace_symtab): New.
1076 (get_possible_namespace_block, free_namespace_block)
1077 (check_possible_namespace_symbols)
1078 (check_possible_namespace_symbols_loop)
1079 (check_one_possible_namespace_symbol)
1080 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1081 (_initialize_cp_namespace): Ditto.
1082 * block.h: Declare allocate_block.
1083 * block.c (allocate_block): New.
1084 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1086 * symfile.h: Update declaration of add_psymbol_to_list.
1087 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1089 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1090 scan_partial_symbols_call.
1091 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1093 (add_partial_symbol): If necessary, scan mangled names for names
1095 (add_partial_namespace): Add NAMESPACE argument; generate partial
1096 symbols associated to namespaces.
1097 (add_partial_enumeration): Add NAMESPACE argument.
1098 (new_symbol): Allow namespace syms.
1099 (read_namespace): Generate namespace syms.
1100 * objfiles.h: Add opaque declaration of struct symtab.
1101 (struct objfile): Add cp_namespace_symtab member.
1102 * objfiles.c (allocate_objfile): Set
1103 objfile->cp_namespace_symtab.
1104 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1105 dictionary_h, command_h.
1107 2003-09-11 Andrew Cagney <cagney@redhat.com>
1109 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1110 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1111 near the function's end.
1112 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1113 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1114 regcache_raw_write_signed to set SP_REGNUM.
1116 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1118 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1119 orig_addrs is set up properly.
1121 2003-09-11 Andrew Cagney <cagney@redhat.com>
1123 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1124 * gdbarch.h, gdbarch.c: Re-generate.
1125 * infcall.c (call_function_by_hand): Update.
1126 * hppa-tdep.c (hppa_push_arguments): Update.
1127 * ada-lang.c (place_on_stack): Update.
1128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1129 * sparc-tdep.c (sparc_gdbarch_init): Update.
1130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1131 * hppa-tdep.c (hppa_gdbarch_init): Update.
1132 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1135 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1137 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1138 register do need a frame.
1140 2003-09-11 Andrew Cagney <cagney@redhat.com>
1142 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1143 buildable since GDB 5.0.
1144 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1145 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1146 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1147 * irix4-nat.c: Delete file.
1148 * config/mips/irix4.mh: Delete file.
1149 * config/mips/irix3.mh: Delete file.
1150 * config/mips/irix3.mt: Delete file.
1151 * config/mips/tm-irix3.h: Delete file.
1152 * config/mips/nm-irix3.h: Delete file.
1153 * config/mips/xm-irix3.h: Delete file.
1154 * config/mips/nm-irix4.h: Delete file.
1155 * config/mips/xm-irix4.h: Delete file.
1156 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1158 2003-09-10 J. Brobecker <brobecker@gnat.com>
1160 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1161 * Makefile.in (hppa-tdep.o): Update dependencies.
1163 2003-09-10 James E Wilson <wilson@specifixinc.com>
1165 * MAINTAINERS: Change my e-mail address. Move to paper trail
1168 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1170 * MAINTAINERS (frv): New ISA entry.
1172 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1174 * frv-tdep.c (dis-asm.h): Include.
1175 * Makefile.in (frv-tdep.o): Update dependencies.
1177 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1179 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1180 Fix typo for high range of floating registers.
1182 2003-09-09 David Carlton <carlton@kealia.com>
1184 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1185 highpc initialization here out of scan_partial_symbols.
1186 (scan_partial_symbols): Restructure into a recursive version,
1187 calling add_partial_namespace and add_partial_enumeration when
1189 (add_partial_namespace): New.
1190 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1192 2003-09-09 Andrew Cagney <cagney@redhat.com>
1194 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1195 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1196 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1197 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1199 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1200 (rs6000_push_dummy_call): Set the "TOC" register.
1202 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1203 methods "max_register_raw_size", "max_register_virtual_size" or
1204 "register_virtual_size".
1206 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1208 * MAINTAINERS: Update my e-mail address.
1210 2003-09-09 Andrew Cagney <cagney@redhat.com>
1212 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1213 (rs6000_push_dummy_call): Store the struct return address.
1214 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1216 2003-09-09 Andrew Cagney <cagney@redhat.com>
1218 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1219 "ppc_sysv_abi_push_arguments".
1220 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1221 "ppc_sysv_abi_push_arguments".
1222 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1223 instead of "push_arguments".
1224 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1226 2003-09-09 Andrew Cagney <cagney@redhat.com>
1228 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1229 instead of CALL_DUMMY_ADDRESS.
1231 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1233 * p-lang.c: Eliminate "register".
1235 * expprint.c: Ditto.
1238 * language.c: Ditto.
1241 * scm-lang.c: Ditto.
1242 * objc-lang.c: Ditto.
1244 2003-09-09 Nick Clifton <nickc@redhat.com>
1246 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1248 2003-09-04 Andrew Cagney <cagney@redhat.com>
1250 * avr-tdep.c: Include "dis-asm.h".
1251 * cris-tdep.c: Include "dis-asm.h".
1252 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1253 instead of corresponding typedef.
1254 * h8300-tdep.c: Include "dis-asm.h".
1255 * ia64-tdep.c: Include "dis-asm.h".
1256 * i386-tdep.c: Include "dis-asm.h".
1257 (i386_print_insn): Use "struct disassemble_info" instead of
1258 corresponding typedef.
1259 * m68k-tdep.c: Include "dis-asm.h".
1260 * mcore-tdep.c: Include "dis-asm.h".
1261 * mips-tdep.c: Include "dis-asm.h".
1262 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1263 instead of corresponding typedef.
1264 * ns32k-tdep.c: Include "dis-asm.h".
1265 * s390-tdep.c: Include "dis-asm.h".
1266 * sparc-tdep.c: Include "dis-asm.h".
1267 * vax-tdep.c: Include "dis-asm.h".
1268 * v850-tdep.c: Include "dis-asm.h".
1269 * mn10300-tdep.c: Include "dis-asm.h".
1270 * rs6000-tdep.c: Include "dis-asm.h".
1271 * xstormy16-tdep.c: Include "dis-asm.h".
1272 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1273 print_insn_xstormy16.
1274 * Makefile.in (v850-tdep.o): Update dependencies.
1275 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1276 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1277 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1278 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1279 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1280 (gdbarch_h): Remove $(dis_asm_h).
1281 * disasm.c: Include "dis-asm.h".
1282 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1283 corresponding typedef.
1284 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1285 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1286 * gdbarch.sh: Do not include "dis-asm.h".
1287 (struct disassemble_info): Declare opaque.
1288 (TARGET_PRINT_INSN): Update declaration.
1289 * gdbarch.h, gdbarch.c: Re-generate.
1291 2003-09-08 Andrew Cagney <cagney@redhat.com>
1293 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1294 CALL_DUMMY_ADDRESS, change to a predicate.
1295 * gdbarch.h, gdbarch.c: Re-generate.
1296 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1297 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1298 * infcall.c (call_function_by_hand): Ditto.
1299 * sparc-tdep.c (sparc_push_return_address): Ditto.
1300 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1301 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1302 CALL_DUMMY_ADDRESS with entry_point_address.
1303 * v850-tdep.c (v850_push_return_address): Ditto.
1304 * s390-tdep.c (s390_push_return_address): Ditto.
1305 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1306 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1307 * mcore-tdep.c (mcore_push_return_address): Ditto.
1308 * cris-tdep.c (cris_push_return_address): Ditto.
1309 * arm-tdep.c (arm_push_return_address): Ditto.
1311 2003-09-08 Andrew Cagney <cagney@redhat.com>
1313 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1314 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1315 and REG_UNMODIFIED to REG_SAME_VALUE.
1316 (execute_cfa_program): Update.
1317 (dwarf2_frame_cache): Update. Initialize table to
1318 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1320 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1322 2003-09-08 Andrew Cagney <cagney@redhat.com>
1324 * gnu-nat.c: Remove "inline" function attribute.
1325 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1327 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1329 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1332 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1334 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1335 (frame_extra_info): Rename this struct to frv_unwind_cache.
1336 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1337 Add fields ``prev_sp'' and ``base''.
1338 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1339 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1340 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1342 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1343 Revise all callers. Fill in the unwind cache argument and make
1344 other adjustments to account for new frame mechanisms.
1345 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1346 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1347 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1348 (frv_frame_unwind, frv_frame_base): New structs.
1349 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1350 additional arguments expected by this method and adjust function
1352 (frv_gdbarch_init): Remove calls to the following functions:
1353 set_gdbarch_deprecated_init_frame_pc(),
1354 set_gdbarch_deprecated_saved_pc_after_call(),
1355 set_gdbarch_deprecated_frame_chain(),
1356 set_gdbarch_deprecated_frame_saved_pc(),
1357 set_gdbarch_deprecated_frame_init_saved_regs(),
1358 set_gdbarch_deprecated_push_arguments(),
1359 set_gdbarch_deprecated_push_return_address(),
1360 set_gdbarch_deprecated_pop_frame(),
1361 set_gdbarch_deprecated_call_dummy_words(),
1362 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1363 set_gdbarch_deprecated_init_extra_frame_info(),
1364 set_gdbarch_deprecated_dummy_write_sp(), and
1365 set_gdbarch_deprecated_pc_in_call_dummy().
1366 Add calls to the following functions:
1367 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1368 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1369 frame_base_set_default().
1370 * Makefile.in (frv-tdep.o): Update dependencies.
1372 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1374 * dwarf2-frame.c (read_encoded_value): Add support for
1375 DW_EH_PE_aligned encoding.
1377 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1379 * infrun.c (normal_stop): Don't print a message if the inferior
1382 2003-09-08 Jim Blandy <jimb@redhat.com>
1384 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1385 * dbxread.c: #include "gdb_assert.h".
1386 (read_dbx_symtab): If the objfile has no .data section, use the
1387 section index for the .bss section instead.
1389 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1391 * frame.c (deprecated_safe_get_selected_frame): New function.
1392 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1393 * findvar.c (read_var_value): Call it.
1395 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1397 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1398 (sh64-tdep.o): Add dependencies.
1399 * configure.tgt: Add FIXME to sh-*-linux*.
1400 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1401 (sh_gdbarch_init): Always set correct sh_show_regs function
1402 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1403 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1404 * sh64-tdep.c: New file, containing all sh64 related code from
1406 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1407 * config/sh/linux.mt (TDEPFILES): Ditto.
1408 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1409 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1410 * config/sh/wince.mt (TDEPFILES): Ditto.
1412 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1414 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1415 (stop_wait_callback): Handle !lp->signalled also.
1416 (lin_lwp_has_pending, flush_callback): New functions.
1417 (lin_lwp_wait): Call flush_callback.
1418 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1419 (linux_proc_pending_signals): New function.
1420 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1422 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1424 From Nick Kelsey <nickk@ubicom.com>:
1425 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1426 when the stop PC is at the beginning of a function also.
1428 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1430 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1431 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1433 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1435 * sol-thread.c: Include "gdb_string.h".
1437 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1439 * gcore.c: Reorder include files in alphabetical order. Include
1440 "gdb_assert.h". Various coding style fixes.
1441 (derive_stack_segment, derive_heap_segment): Replace check for
1442 non-null BOTTOM and TOP with gdb_assert.
1443 (derive_heap_segment): Replace check for successful creation of
1444 ZERO with gdb_assert.
1445 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1447 2003-09-04 Andrew Cagney <cagney@redhat.com>
1449 * thread-db.c (verbose_dlsym): New function.
1450 (thread_db_load): Use verbose_dlsym
1451 (thread_db_new_objfile): Print that libthread_db was loaded, and
1452 that thread debugging was enabled.
1454 2003-09-04 Andrew Cagney <cagney@redhat.com>
1456 * configure.tgt: Add "mips64*-*-*" target. Delete
1457 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1458 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1459 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1460 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1461 mips*-sony-*, and mips64*-*-elf* targets.
1462 * config/mips/embedl.mt: Delete file.
1463 * config/mips/embedl64.mt: Delete file.
1464 * config/mips/mips.mt: Delete file.
1465 * config/mips/mips64.mt: Delete file.
1466 * config/mips/tm-embed.h: Delete file.
1467 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1468 * config/mips/embed64.mt: Delete out-of-date comment.
1470 2003-09-04 Andrew Cagney <cagney@redhat.com>
1472 * hppa-tdep.c (hppa_gdbarch_init): Set
1473 "have_nonsteppable_watchpoint".
1474 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1475 * mips-tdep.c (mips_dump_tdep): Do not print
1476 HAVE_NONSTEPPABLE_WATCHPOINT.
1477 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1478 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1479 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1480 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1482 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1484 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1485 unused code. Add comment.
1487 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1489 * breakpoint.c (watchpoint_check): Check for pc being in an
1490 epilogue if watchpoint frame couldn't be found.
1492 2003-09-04 Andrew Cagney <cagney@redhat.com>
1494 * Makefile.in: Re-generate all dependencies.
1496 2003-09-03 Andrew Cagney <cagney@redhat.com>
1498 * arch-utils.h (legacy_print_insn): Delete declaration.
1499 * arch-utils.c (legacy_print_insn): Delete function.
1500 * disasm.c (deprecated_tm_print_insn_info): Delete.
1501 (_initialize_disasm): Delete function, contained code initializing
1502 deprecated_tm_print_insn_info.
1503 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1504 (deprecated_tm_print_insn_info): Delete.
1505 (TARGET_PRINT_INSN): Do not provide a default.
1506 * gdbarch.h, gdbarch.c: Re-generate.
1508 2003-09-03 Andrew Cagney <cagney@redhat.com>
1510 * disasm.c (fprintf_disasm): New function.
1511 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1512 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1513 reverts 2003-08-14 change.
1514 (_initialize_disasm): Call "init_disassemble_info", instead of
1515 INIT_DISASSEMBLE_INFO_NO_ARCH.
1517 2003-09-03 Michael Snyder <msnyder@redhat.com>
1519 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1521 2003-09-03 Andrew Cagney <cagney@redhat.com>
1523 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1524 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1525 * symfile.c (syms_from_objfile): Update.
1526 (reread_symbols): `Update
1527 * exec.c (exec_file_attach): Update.
1528 (exec_file_attach): Update.
1529 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1531 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1533 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1535 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1537 (arm_get_cache): Delete macro.
1538 (struct arm_prologue_cache): Update comments. Make saved_regs into
1539 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1541 (thumb_scan_prologue): Update for cache changes. Don't call
1542 DEPRECATED_PC_IN_CALL_DUMMY.
1543 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1544 argument and use it in desperation search for our prologue. Do not
1545 search past the specified PC.
1546 (arm_make_prologue_cache): Simplify.
1548 (arm_prologue_this_id, arm_prologue_prev_register)
1549 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1550 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1551 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1552 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1553 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1555 (arm_frame_chain_valid, arm_find_callers_reg)
1556 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1557 (arm_pop_frame): Delete obsolete methods.
1558 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1560 (arm_gdbarch_init): Update for new frame methods. Register prologue
1561 and sigtramp unwinders. Set the default frame base method.
1563 * Makefile.in (arm-tdep.o): Update dependencies.
1564 * varobj.c (find_frame_addr_in_frame_chain): Call
1565 get_frame_base_address.
1566 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1568 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1570 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1571 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1572 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1573 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1574 Take NEXT_FRAME and CACHE arguments. Call
1575 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1576 Set unwound_pc in CACHE instead of modifying the frame argument.
1577 Don't bother checking the frame type when looking for sigtramp
1579 (arm_make_prologue_cache, arm_frame_chain)
1580 (arm_init_extra_frame_info): New functions.
1582 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1584 * arm-tdep.c (arm_get_cache): Define.
1585 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1586 unwound_sp, unwound_pc, and saved_regs.
1587 (thumb_scan_prologue): Take a cache instead of the frame.
1588 (arm_scan_prologue): Likewise.
1589 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1590 instead of a temporary frame.
1591 (arm_init_extra_frame_info): Allocate and use a cache.
1592 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1594 2003-09-03 Andrew Cagney <cagney@redhat.com>
1596 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1597 * config/mips/wince.mt (TM_CLIBS): Ditto.
1598 * config/sh/wince.mt (TM_CLIBS): Ditto.
1599 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1600 * config/sparc/sp64.mt (CC): Delete.
1602 2003-09-03 Andrew Cagney <cagney@redhat.com>
1604 * defs.h: Do not include "arch-utils.h".
1605 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1606 GDB_MULTI_ARCH_PURE.
1607 * configure.in (GDB_MULTI_ARCH): Do not define.
1608 * configure, config.in: Regenerate.
1609 * configure.tgt: Do not set variable "gdb_multi_arch".
1610 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1611 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1612 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1613 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1614 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1615 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1616 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1617 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1618 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1619 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1620 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1621 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1622 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1623 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1624 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1625 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1626 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1627 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1629 2003-08-30 Michael Chastain <mec@shout.net>
1631 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1632 * config/m68k/nm-hp300hpux.h: Delete.
1633 * config/m68k/tm-hp300hpux.h: Delete.
1634 * config/m68k/xm-hp300hpux.h: Delete.
1635 * config/m68k/xm-hp300bsd.h: Delete.
1636 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1637 tm-hp300hpux.h, xm-hp300hpux.h.
1638 * somsolib.c: Remove comment about hp300 shared libraries.
1640 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1642 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1643 Only define PTRACE_GET_THREAD_AREA is not already defined.
1644 Various style fixes in code and comments and some additional
1645 spelling fixes in comments. Move after functions dealing with
1647 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1650 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1651 frame_unwind_register_unsigned instead of
1652 frame_unwind_unsigned_register.
1654 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1656 * configure.in: Search for gethostbyname in libnsl.
1657 * configure: Regenerated.
1659 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1661 * configure.in: Remove redundant AC_MSG_RESULT in check for
1662 uintptr_t in stdint.h.
1663 * configure: Regenerated.
1665 * amd64-nat.h (struct regcache): Add opaque declaration.
1667 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1668 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1669 Change "register array" to "register cache" in comments.
1670 (x86_64_linux_gregset64_reg_offset): New variable.
1671 (GETREGS_SUPPLIES): Remove macro.
1672 (supply_gregset): Call amd64_supply_native_gregset instead of
1673 x86_64_linux_supply_gregset.
1674 (fill_gregset): Rename `regno' to `regnum'. Call
1675 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1676 (store_regs): Rename `regno' to `regnum'.
1677 (store_fpregs): Rename `regno' to `regnum'.
1678 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1679 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1680 Reorganize function a bit.
1681 (store_inferior_registers): Rename `regno' to `regnum'. Use
1682 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1683 Reorganize function a bit.
1684 (_initialize_x86_64_linux_nat): New function.
1685 * config/i386/x86-64linux.mh.
1687 2003-08-29 Andrew Cagney <cagney@redhat.com>
1689 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1690 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1691 (target_remove_watchpoint): Delete macro.
1692 (target_insert_watchpoint): Delete macro.
1693 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1694 (remote_mips_stopped_by_watchpoint): Delete declaration.
1695 (remote_mips_remove_watchpoint): Delete declaration.
1696 (remote_mips_set_watchpoint): Delete declaration.
1697 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1698 * remote-mips.c (_initialize_remote_mips): Set
1699 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1700 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1701 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1702 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1703 (mips_stopped_by_watchpoint): Rename
1704 remote_mips_stopped_by_watchpoint.
1705 (mips_can_hardware_watchpoint): Rename
1706 remote_mips_can_use_hardware_watchpoint, update function
1709 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1711 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1712 USER_DS. We haven't given them a register number yet.
1714 * amd64-nat.h: New file.
1715 * amd64-nat.c: New file.
1716 * amd64fbsd-nat.c: Include "amd64-nat.h".
1717 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1718 (amd64fbsd32_r_reg_offset): New variable.
1719 (supply_gregset): Simply call amd64_supply_native_gregset.
1720 (fill_gregset): Rename `regno' to `regnum'. Simply call
1721 amd64_collect_native_gregset.
1722 (fill_fpregset): Rename `regno' to `regnum'.
1723 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1724 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1725 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1726 `fpregset_t'. Call amd64_supply_native_gregset instead of
1727 supply_gregset. Call x86_64_supply_fxsave instead of
1729 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1730 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1731 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1732 `fpregset_t'. Call amd64_collect_native_gregset instead of
1733 fill_gregset. Call x86_64_collect_fxsave instead of
1735 (_initialize_am64fbsd_nat): Initialize
1736 amd64_native_gregset32_reg_offset and
1737 amd64_native_gregset64_reg_offset.
1738 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1740 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1741 null pointer. Fix typo in comment.
1743 * regcache.c (supply_register): Reimplement to call
1744 regcache_raw_supply.
1745 (regcache_collect): Reimplement by calling regcache_raw_collect.
1747 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1749 * regcache.c (register_buffer): Consitify first argument.
1750 (regcache_raw_supply, regcache_raw_collect): New
1753 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1755 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1756 by Nathan J. Williams.
1758 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1760 * lin-lwp.c (wait_lwp): New function, copied from
1761 stop_wait_callback. Clean up.
1762 (stop_wait_callback): Use wait_lwp.
1764 2003-08-28 Andrew Cagney <cagney@redhat.com>
1766 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1767 flavour and disassembler options.
1768 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1769 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1770 deprecated_tm_print_insn_info.
1772 2003-08-27 Andrew Cagney <cagney@redhat.com>
1774 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1775 Use target_read_memory.
1776 (s390_get_frame_info): Update. Do not reference
1777 deprecated_tm_print_insn_info.
1778 (s390_check_function_end, s390_is_sigreturn): Ditto.
1780 2003-08-27 Andrew Cagney <cagney@redhat.com>
1782 * Makefile.in (cris-tdep.o): Update dependencies.
1783 * cris-tdep.c: Include "gdb_assert.h".
1784 (cris_gdbarch_init): Set print_insn.
1785 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1786 (cris_delayed_get_disassembler): Simplify, directly call the
1787 disassembler returned by cris_get_disassembler.
1788 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1789 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1790 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1791 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1792 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1793 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1794 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1795 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1796 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1797 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1798 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1799 (gdb_print_insn_sparc): Delete function.
1800 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1801 deprecated_tm_print_insn_info.
1802 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1803 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1804 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1805 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1806 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1807 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1808 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1809 (s390_gdbarch_init): Set print_insn.
1811 2003-08-27 Andrew Cagney <cagney@redhat.com>
1813 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1814 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1815 * infcall.c (call_function_by_hand): Convert the entry point
1816 address into a code address.
1818 2003-08-27 Andrew Cagney <cagney@redhat.com>
1820 * dsrec.c: Include "gdb_string.h".
1821 * Makefile.in (dsrec.o): Update dependencies.
1823 2003-08-27 Michael Chastain <mec@shout.net>
1825 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1827 2003-08-27 Andrew Cagney <cagney@redhat.com>
1829 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1830 (alpha_osf1_init_abi): Do not set call_dummy_address.
1832 2003-08-27 David Carlton <carlton@kealia.com>
1834 From Randolph Chung <tausq@debian.org>:
1835 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1836 compiles with -Wformat-nonliteral -Werror.
1838 2003-08-26 Jim Blandy <jimb@redhat.com>
1840 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1841 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1842 bfd_lookup_symbol, since we only want symbols in code sections.
1843 (look_for_base): Pass zero as the SECT_FLAGS argument to
1844 bfd_lookup_symbol, since we're not concerned about which section
1847 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1849 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1850 we are frameless or the return address register is already known.
1852 2003-08-26 Andrew Cagney <cagney@redhat.com>
1854 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1855 in size. Add comments.
1857 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1859 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1860 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1862 2003-08-26 Jason Merrill <jason@redhat.com>
1864 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1865 case out of #ifdef MIPS block.
1867 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1870 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1871 available before calling SECT_OFF_TEXT.
1872 * PROBLEMS: Remove description of java/1322.
1874 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1876 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1877 bof, and nat0-nat127 as pseudo-registers.
1878 (ia64_frame_cache): New struct used to cache frame info.
1879 (ia64_register_reggroup_p): New routine used to override default
1880 register grouping so registers without names are still saved and
1882 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1884 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1885 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1886 (ia64_alloc_frame_cache): New routine to create a new
1888 (examine_prologue): Change prototype to add next_frame pointer.
1889 Assume frameless until otherwise proven. Verify that the cfm for
1890 current frame matches the cfm that should occur for the prologues
1891 alloc insn and if equal, mark as not frameless. At end of routine,
1892 if not frameless, calculate registers for the previous frame and store
1893 in the cache, if a cache is provided.
1894 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1895 and pass 0 for next_frame.
1896 (ia64_store_return_value): Change to use convert_typed_floating()
1897 instead of calling ia64_convert_to_raw().
1898 (ia64_extract_return_value): Change to use convert_typed_floating()
1899 instead of calling ia64_convert_to_virtual().
1900 (ia64_frame_cache): New routine to support new frame model.
1901 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1902 (ia64_frame_sniffer): Ditto.
1903 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1904 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1905 (ia64_sigtramp_frame_prev_register): Ditto.
1906 (ia64_sigtramp_frame_sniffer): Ditto.
1907 (ia64_frame_base_address): Ditto.
1908 (ia64_extract_struct_value_address): Change to issue error message.
1909 (ia64_frame_align): New routine to align sp.
1910 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1911 (ia64_push_arguments): Removed. Logic moved to
1912 ia64_push_dummy_call().
1913 (ia64_push_return_address): Ditto.
1914 (ia64_unwind_dummy_id): New function.
1915 (ia64_unwind_pc): Ditto.
1916 (ia64_convert_register_p): Ditto.
1917 (ia64_register_to_value): Ditto.
1918 (ia64_value_to_register): Ditto.
1919 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1920 (ia64_register_byte, ia64_register_raw_size): Ditto.
1921 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1922 (ia64_saved_pc_after_call): Ditto.
1923 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1924 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1925 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1926 (ia64_register_convert_to_raw): Ditto.
1927 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1928 (ia64_init_extra_frame_info): Ditto.
1929 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1930 (ia64_gdbarch_init): Remove registering of deprecated functions that
1931 are no longer used. Add registration of new gdbarch functions.
1932 Remove registering deprecated_write_sp. Replace
1933 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1934 Delete set_gdbarch_deprecated_register_convertible(),
1935 set_gdbarch_deprecated_register_convert_to_virtual(), and
1936 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1937 set_gdbarch_deprecated_register_size(),
1938 set_gdbarch_deprecated_register_bytes(),
1939 set_gdbarch_pcregnum(),
1940 set_gdbarch_deprecated_register_byte(),
1941 set_gdbarch_deprecated_register_raw_size(),
1942 set_gdbarch_deprecated_max_register_raw_size(),
1943 set_gdbarch_deprecated_register_virtual_size(),
1944 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1945 Replace set_gdbarch_deprecated_extract_return_value() with
1946 set_gdbarch_extract_return_value(). Remove calls to:
1947 set_gdbarch_deprecated_saved_pc_after_call();
1948 set_gdbarch_deprecated_frame_chain(),
1949 set_gdbarch_deprecated_frame_saved_pc(),
1950 set_gdbarch_deprecated_frame_init_saved_regs(),
1951 set_gdbarch_deprecated_get_saved_register(),
1952 set_gdbarch_deprecated_call_dummy_words(),
1953 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1954 set_gdbarch_deprecated_init_extra_frame_info(),
1955 set_gdbarch_deprecated_frame_args_address(),
1956 set_gdbarch_deprecated_frame_locals_address(),
1957 and set_gdbarch_deprecated_dummy_write_sp().
1958 Add set_gdbarch_convert_register_p(),
1959 set_gdbarch_register_to_value(),
1960 set_gdbarch_value_to_register(),
1961 set_gdbarch_push_dummy_call(),
1962 set_gdbarch_frame_align(),
1963 set_gdbarch_unwind_dummy_id(),
1964 set_gdbarch_unwind_pc(),
1965 frame_unwind_append_sniffer(),
1966 frame_unwind_append_sniffer(),
1967 and frame_base_set_default().
1969 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1971 * configure.tgt: Document need for special "mipsisa64" handling.
1972 (mipsisa64*-*-linux64): Handle as target linux64.
1973 (mipsisa64*-*-*): Handle as target embed64.
1975 2003-08-18 Michael Chastain <mec@shout.net>
1977 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1980 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1982 * i387-tdep.h: Update copyright date.
1983 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1985 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1986 CFLAGS games to reflect reality.
1988 2003-08-24 Andrew Cagney <cagney@redhat.com>
1990 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1991 GDB_MULTI_ARCH is always non-zero.
1992 * osabi.c (_initialize_gdb_osabi): Ditto.
1993 (gdbarch_init_osabi): Ditto.
1994 * sparc-tdep.c: Ditto for #if code.
1996 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1998 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2000 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2002 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2003 x86_64_supply_fxsave.
2004 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2005 x86_64_supply_fxsave.
2006 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2007 x86_64_supply_fxsave.
2009 2003-08-23 Andreas Jaeger <aj@suse.de>
2011 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2014 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2016 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2017 i387_supply_register.
2018 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2019 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2021 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2023 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2025 * i386bsd-nat.c (supply_fpregset): Adjust call to
2027 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2028 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2030 (store_inferior_registers): Remove extraneous whitespace. Call
2031 i387_fill_fsave instead of fill_fpregset.
2032 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2033 (supply_fpregset): Likewise.
2034 * i386v4-nat.c (supply_fpregset): Adjust call to
2036 * i386-interix-nat.c (supply_fpregset): Adjust call to
2038 * i386-linux-nat.c (supply_fpregset): Adjust call to
2040 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2041 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2042 i387supply_fsave and i387_supply_fxsave.
2043 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2044 Incorporate code from `i387_supply_register.
2045 (i387_supply_register): Remove.
2046 (i387_supply_fxsave): Add `regnum' argument.
2048 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2050 (i387_supply_register): remove prototype.
2053 2003-08-22 Michael Chastain <mec@shout.net>
2055 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2056 Add lines for files in gdb/testsuite/gdb.cp/* that are
2057 still not 8.3 unique.
2059 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2061 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2062 TYPE_VPTR_FIELDNO is valid.
2064 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2066 * utils.c (set_width_command): Remove prototypes.
2067 (set_screen_size): New prototype.
2068 (init_page_info): Simplify by fetching the screen size from
2069 Readline. Call set_screen_size.
2070 (set_screen_size): New function.
2071 (set_width): Add missing whitespace in comment.
2072 (set_width_command): Call set_screen_size.
2073 (set_height_command): New function.
2074 (initialize_utils): Fix formatting. Make "set height" command
2075 call set_height_command. Remove redundant code that turns off
2076 pagination if output isn't a terminal. Remove redundant call to
2079 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2081 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2082 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2083 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2084 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2086 (sparc64_register_info): Give the reister with number
2087 SPARC64_STATE_REGNUM a name.
2088 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2090 (sparc64_push_dummy_call): Take BIAS into account when checking
2092 (sparc_software_single_step): Remove assertions that check whether
2093 NPC and NNPC were zero.
2094 (sparc_supply_rwindow): Make public. Merge functionality with
2095 sparc64_supply_rwindow.
2096 (sparc_fill_rwindow): Make public. Merge functionality with
2097 sparc64_fill_rwindow.
2098 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2099 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2100 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2101 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2102 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2104 * reggroups.c: Add whitespace after declarations of local
2105 variables in functions.
2107 2003-08-21 Michael Chastain <mec@shout.net>
2109 * gdbtypes.h: Change array bound type from an int to enum.
2111 2003-08-21 Andrew Cagney <cagney@redhat.com>
2113 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2114 * config/sparc/tm-sparc.h: Ditto.
2115 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2117 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2119 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2121 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2122 (register_objfile_data, set_objfile_data, objfile_data): New
2124 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2126 (allocate_objfile): Call objfile_alloc_data.
2127 (free_objfile): Call objfile_free_data.
2128 (struct objfile_data): New.
2129 (struct objfile_data_registration): New.
2130 (struct objfile_data_registry): New.
2131 (objfile_data_registry): New variable.
2132 (register_objfile_data): New function.
2133 (objfile_alloc_data, objfile_free_data): New functions.
2134 (set_objfile_data, objfile_data): New functions.
2135 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2136 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2137 (_initialize_dwarf2_frame): New function and prototype.
2139 2003-08-21 Andrew Cagney <cagney@redhat.com>
2141 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2142 a specific architecture.
2143 * arch-utils.h (set_architecture_from_arch_mach): Delete
2145 (target_architecture_hook): Delete declaration.
2146 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2147 (default_float_format): Assume GDB_MULTI_ARCH.
2148 (default_double_format): Assume GDB_MULTI_ARCH.
2149 (set_endian_from_file): Delete function.
2150 (arch_ok): Delete function.
2151 (set_arch): Delete function.
2152 (set_architecture_from_arch_mach): Delete function.
2153 (set_architecture_from_file): Delete function.
2154 (set_architecture): Assume GDB_MULTI_ARCH.
2155 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2157 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2159 Rewrite FreeBSD/sparc64 native configuration.
2160 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2161 * sparc64fbsd-nat.c: New file.
2162 * sparc64fbsd-tdep.c: New file.
2163 * sparc64-tdep.c sparc64-tdep.h: New files.
2164 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2165 sparc64fbsd-tdep.o): New dependencies.
2166 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2167 and sparc64fbsd-tdep.c.
2168 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2169 * config/sparc/fbsd.mh: Remove copyright notice.
2170 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2172 * config/sparc/fbsd.mt: Remove copyright notice.
2173 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2174 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2175 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2176 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2177 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2178 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2179 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2180 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2182 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2183 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2185 2003-08-21 Michael Chastain <mec@shout.net>
2187 * symtab.h: Add doco on the space critical structures and
2188 some measurements of space usage.
2190 2003-08-21 Michael Snyder <msnyder@redhat.com>
2192 * tracepoint.c (trace_dump_command): Trace break address
2193 is subject to DECR_PC_AFTER_BREAK.
2194 (set_traceframe_context): Make "trace_line" an int.
2195 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2197 2003-08-20 Michael Snyder <msnyder@redhat.com>
2199 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2200 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2201 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2203 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2204 functions, replace sh_push_dummy_call.
2205 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2207 2003-08-20 Michael Chastain <mec@shout.net>
2209 * gdbtypes.h (struct main_type): Rearrange to save space.
2211 2003-08-20 Michael Snyder <msnyder@redhat.com>
2213 * trad-frame.c: Comment typo fix.
2215 2003-08-20 Michael Snyder <msnyder@redhat.com>
2216 Kevin Buettner <kevinb@redhat.com>
2218 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2219 (frv_frame_init_saved_regs): Add declaration.
2220 (frame_extra_info): Add new field ``saved_regs''.
2221 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2222 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2223 Update frame related code.
2224 (frv_extract_struct_value_address): Adjust formatting.
2225 * Makefile.in (frv-tdep.o): Update dependencies.
2226 * config/frv/tm-frv.h (target_insert_watchpoint)
2227 (target_remove_watchpoint, target_insert_hw_breakpoint)
2228 (target_remove_hw_breakpoint): Delete these macros.
2229 (remote_insert_watchpoint, remote_remove_watchpoint)
2230 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2233 2003-08-20 Michael Chastain <mec@shout.net>
2235 * defs.h (ENUM_BITFIELD): New macro.
2236 * symtab.h (ENUM_BITFIELD): Use it.
2237 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2239 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2241 * MAINTAINERS (write after approval): Add myself.
2243 2003-08-18 Andrew Cagney <cagney@redhat.com>
2245 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2246 * gdbarch.h, gdbarch.c: Re-generate.
2247 * infcall.c (call_function_by_hand): Adjust the SP by
2248 frame_red_zone_size before allocating any stack space.
2249 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2250 * x86-64-tdep.c (x86_64_frame_align): New function.
2251 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2253 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2254 Remove code adjusting SP so that it skips over the Red Zone.
2256 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2258 * NEWS (New native configurations): Mention FreeBSD/amd64.
2260 2003-08-18 Andrew Cagney <cagney@redhat.com>
2262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2263 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2265 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2267 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2269 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2271 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2273 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2275 * i386-linux-nat.c: Include "linux-nat.h".
2276 (child_post_startup_inferior): New function.
2278 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2280 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2281 at the start of a frameless function. This probably fixes PR
2284 2003-08-17 Michael Chastain <mec@shout.net>
2286 * symfile.c (find_sym_fns): Remove special case for apollo target.
2288 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2290 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2291 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2292 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2293 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2294 (linux_supports_tracevforkdone): New function.
2295 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2297 (child_follow_fork): Handle vfork.
2298 (linux_handle_extended_wait): Likewise. Also handle exec.
2299 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2300 * NEWS: Mention fork tracing.
2302 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2304 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2306 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2308 * Makefile.in (i386-linux-nat.o): Update dependencies.
2309 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2310 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2311 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2312 * i386-linux-nat.c: Include "linux-nat.h".
2313 (child_post_startup_inferior): New function.
2314 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2315 * infptrace.c (kill_inferior): Wrap in #ifdef.
2316 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2317 attaching to each LWP.
2318 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2319 (init_lin_lwp_ops): Fill in some more operations.
2320 * linux-nat.h (linux_enable_event_reporting)
2321 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2323 * linux-nat.c (linux_enable_event_reporting): New function.
2324 (child_post_attach, linux_child_post_startup_inferior)
2325 (child_post_startup_inferior, child_follow_fork)
2326 (linux_handle_extended_wait, kill_inferior): New functions.
2328 2003-08-16 Andrew Cagney <cagney@redhat.com>
2330 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2331 * gdbarch.h, gdbarch.c: Re-generate.
2333 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2335 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2337 2003-08-16 Andrew Cagney <cagney@redhat.com>
2339 * NEWS: Mention that "set prompt-escape-char" was deleted.
2340 * top.c (get_prompt_1): Delete function.
2341 (gdb_prompt_escape):
2342 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2343 prompt-escape-char" command.
2344 (MAX_PROMPT_SIZE): Delete macro.
2345 (get_prompt): Simplify, do not call get_prompt_1.
2347 2003-08-16 Andrew Cagney <cagney@redhat.com>
2349 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2350 -Werror. -Wformat-nonliteral problems.
2352 2003-08-15 J. Brobecker <brobecker@gnat.com>
2354 Further multiarching work mostly for hppa64-*-hpux11:
2355 * hppa-tdep.h: New file.
2356 * hppa-tdep.c: #include hppa-tdep.c.
2357 (hppa32_num_regs): Renamed from hppa_num_regs.
2358 (hppa64_num_regs): New constant.
2359 (hppa64_call_dummy_breakpoint_offset): New constant.
2360 (hppa32_call_dummy_length): New constant.
2361 (hppa64_call_dummy_length): New constant.
2362 (hppa32_stack_align): Make name 32bit explicit.
2363 (hppa32_register_virtual_type): Likewise.
2364 (hppa32_extract_return_value): Likewise.
2365 (hppa32_use_struct_convention): Likewise.
2366 (hppa32_store_return_value): Likewise.
2367 (hppa64_register_virtual_type): New function.
2368 (hppa64_extract_return_value): New function.
2369 (hppa64_use_struct_convention): New function.
2370 (hppa64_store_return_value): New function.
2371 (hppa_frame_locals_address): Remove declaration, function does
2373 (hppa_register_byte): Add support for PA64 ABI.
2374 (hppa_gdbarch_init): Add support for PA64 ABI.
2375 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2376 Make name 32bit explicit.
2377 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2378 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2379 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2380 (hppa64_hpux_frame_base_before_sigtramp): New function.
2381 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2382 * config/pa/tm-hppa64.h: Remove macros that are no longer
2383 necessary now that the gdbarch vector is properly setup.
2384 Transform some macros into function calls. Some minor cleanup.
2385 * config/pa/tm-hppah.h: Update function calls in macros
2386 following the function renaming in hppa-hpux-tdep.c.
2387 * Makefile.in (hppa_tdep_h): New variable.
2388 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2390 2003-08-14 Michael Snyder <msnyder@redhat.com>
2392 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2394 2003-08-13 J. Brobecker <brobecker@gnat.com>
2396 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2397 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2400 2003-08-13 Michael Snyder <msnyder@redhat.com>
2402 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2403 (frv_saved_pc_after_call): Use deprecated ftype.
2404 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2405 (frv_remote_translate_xfer_address): Remove.
2406 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2408 2003-08-13 J. Brobecker <brobecker@gnat.com>
2410 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2411 initialization after the common gdbarch initialization, not before.
2413 2003-08-13 J. Brobecker <brobecker@gnat.com>
2415 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2416 (ADDR_BITS_REMOVE): Remove, redundant.
2418 2003-08-13 J. Brobecker <brobecker@gnat.com>
2420 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2421 gdbarch method to clear the 2 low bits of text addresses.
2423 2003-08-12 Andrew Cagney <cagney@redhat.com>
2425 * Makefile.in (dsrec.o): Update dependencies.
2426 * dsrec.c: Include "gdb_assert.h".
2427 (make_srec): Use snprintf instead of sprintf, use a literal format
2430 2003-08-12 Andrew Cagney <cagney@redhat.com>
2432 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2433 FRAME_OBSTACK_ZALLOC.
2435 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2437 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2440 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2442 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2443 amd64fbsd_sc_reg_offset): Add extern declarations.
2444 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2447 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2449 * MAINTAINERS (write after approval): Update my mail address.
2451 2003-08-10 Andrew Cagney <cagney@redhat.com>
2453 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2455 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2457 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2458 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2459 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2460 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2461 i386bsd_sc_reg_offset): Add extern declarations.
2462 * i386obsd-nat.c: Include "i386-tdep.h"
2463 (_initialize_i386obsd_nat): Remove extern declarations.
2464 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2466 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2469 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2470 instead of frame_read_register.
2471 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2472 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2474 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2475 instead of frame_unwind_unsigned_register. Use
2476 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2477 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2478 instead of read_register. Use builtin_type_void_data_ptr instead
2479 of builtin_type_void_func_ptr when extracting the address of the
2481 (i386_extract_return_value, i386_store_return_value,
2482 i386_pseudo_register_read, i386_pseudo_register_write): Use
2483 register_size instead REGISTER_RAW_SIZE.
2485 2003-08-10 Andrew Cagney <cagney@redhat.com>
2487 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2488 sprintf. Make "name" constant.
2490 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2492 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2493 instead of frame_read_register.
2494 (i387_print_float_info): Use get_frame_register and
2495 get_frame_register_unsigned instead of frame_register_read.
2497 * i386fbsd-nat.c: Include "i386-tdep.h".
2498 (child_resume): Make `eflags' an ULONGEST. Use
2499 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2500 instead of register_read and register_write.
2502 * i386bsd-nat.c (fetch_inferior_registers,
2503 store_inferior_registers): Don't use && at the end of a line.
2504 (_initialize_i386bsd_nat): Fix typo.
2506 * frame.c (_initialize_frame): Add missing backslash.
2508 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2509 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2510 and supply_register instead of manipulating the register buffer
2513 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2514 * config/i386/nm-i386sol2.h
2515 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2517 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2518 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2519 instructions that GCC likes to mingle into the prologue. Fixes
2520 gdb/1253 and gdb/1255.
2522 2003-08-09 Andrew Cagney <cagney@redhat.com>
2525 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2526 * command.h (add_setshow_uinteger_cmd): Declare.
2527 * frame.c (set_backtrace_cmd): New function.
2528 (show_backtrace_cmd): New function.
2529 * frame.c (_initialize_frame): Replace "set/show
2530 backtrace-below-main" with "set/show backtrace past-main". Add
2531 command "set/show backtrace limit".
2532 (backtrace_past_main): Rename "backtrace_below_main".
2533 (backtrace_limit): New variable.
2534 (get_prev_frame): Update. Check the backtrace_limit.
2536 2003-08-09 Andrew Cagney <cagney@redhat.com>
2538 * defs.h (xstrprintf): Declare.
2539 * utils.c (xstrprintf): New function.
2540 * breakpoint.c (insert_breakpoints): Replace sprintf and
2541 non-literal format strings, with xstrprintf and cleanups.
2542 (delete_breakpoint,breakpoint_re_set): Ditto.
2543 (commands_command, insert_breakpoints): Ditto.
2544 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2545 (break_at_finish_command_1): Ditto.
2547 2003-08-09 Andrew Cagney <cagney@redhat.com>
2549 * MAINTAINERS (language support): List Adam Fedor as Objective C
2552 2003-08-08 J. Brobecker <brobecker@gnat.com>
2554 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2555 are now multiarched.
2557 2003-08-08 J. Brobecker <brobecker@gnat.com>
2559 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2560 longer necessary now that hppa64 is partially multiarch'ed.
2562 2003-08-08 Andrew Cagney <cagney@redhat.com>
2564 * interps.c (interp_set): Check for a NULL "old_interp".
2566 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2568 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2569 (install-only): Support DESTDIR.
2570 (uninstall): Likewise.
2571 (install-gdbtk): Likewise.
2573 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2575 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2576 contains something meaningful at all times.
2578 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2580 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2582 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2584 * MAINTAINERS (write after approval): Added self.
2586 2003-08-07 Andrew Cagney <cagney@redhat.com>
2588 * inferior.h (AT_SYMBOL): Define.
2589 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2590 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2591 * mips-tdep.c (mips_call_dummy_address): Delete function.
2592 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2593 set call_dummy_address.
2595 2003-08-07 Andrew Cagney <cagney@redhat.com>
2597 * language.c (op_error): Delete function.
2598 (binop_type_check): Delete function.
2599 * language.h (type_op_error, range_op_error): Delete macros.
2600 (op_error): Delete declaration.
2602 2003-08-07 Andrew Cagney <cagney@redhat.com>
2604 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2606 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2608 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2609 (x86_64_push_arguments): Skip the red zone.
2611 2003-08-05 Andrew Cagney <cagney@redhat.com>
2613 * reggroups.c (reggroup_next): Check for the final entry.
2615 2003-08-04 Andrew Cagney <cagney@redhat.com>
2617 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2618 * cli/cli-script.c (define_command): Call query directly, instead
2619 of passing it a buffer.
2620 * ocd.c (ocd_error): Pass error a constant format string.
2621 * remote-mips.c (mips_error): Use fputs_filtered.
2623 * solib-svr4.c (_initialize_svr4_solib): Update
2624 register_gdbarch_data call.
2625 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2627 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2628 (register_gdbarch_data): Delete "free" parameter. Update
2630 * gdbarch.h, gdbarch.c: Re-generate.
2631 * reggroups.c (_initialize_reggroup): Update.
2632 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2633 * frame-base.c (_initialize_frame_base): Update.
2634 * frame-unwind.c (_initialize_frame_unwind): Update.
2635 * user-regs.c (_initialize_user_regs): Update.
2636 * remote.c (_initialize_remote): Update.
2637 * regcache.c (_initialize_regcache): Update.
2639 * regcache.c (xfree_regcache_descr): Delete function.
2640 (_initialize_regcache): Update call to register_gdbarch_data.
2641 (init_regcache_descr, init_legacy_regcache_descr): Use
2642 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2644 * remote.c (free_remote_state): Delete function.
2645 (_initialize_remote): Update register_gdbarch_data.
2646 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2647 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2649 2003-08-04 Andrew Cagney <cagney@redhat.com>
2651 * reggroups.c (struct reggroup_el): Define.
2652 (struct reggroups): Delete field "nr_group". Replace array
2653 "group" with a "first" to "last" linked list.
2654 (reggroups_init): Update. Allocate using gdbarch's obstack.
2655 (reggroups_free): Delete function.
2656 (add_group): Update. Add "el" parameter.
2657 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2658 (default_groups): Update.
2659 (reggroup_next): Replace reggroups.
2660 (reggroups_dump): Update.
2661 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2662 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2663 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2665 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2667 * Makefile.in (tui-interp.o): Update dependencies.
2669 2003-08-04 David Carlton <carlton@kealia.com>
2671 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2672 to internal_error call.
2673 * source.c (forward_search_command): Add "%s" format argument.
2674 (reverse_search_command): Ditto.
2675 * top.c (quit_confirm): Ditto.
2676 * cli/cli-setshow.c (do_setshow_command): Ditto.
2677 * cp-valprint.c (cp_print_class_method): Replace
2678 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2679 (cp_print_class_member): Ditto.
2680 * event-top.c (command_line_handler): Ditto.
2681 * linux-proc.c (linux_info_proc_cmd): Ditto.
2682 * p-typeprint.c (pascal_type_print_base): Ditto.
2683 * p-valprint.c (pascal_object_print_class_method): Ditto.
2684 (pascal_object_print_class_member): Ditto.
2685 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2686 * remote.c (remote_cisco_section_offsets): Ditto.
2687 * top.c (command_line_input): Ditto.
2688 * utils.c (vwarning,error_stream,quit): Ditto.
2689 * valprint.c (print_floating,print_binary_chars)
2690 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2692 2003-08-04 Andrew Cagney <cagney@redhat.com>
2694 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2696 2003-08-02 Andrew Cagney <cagney@redhat.com>
2698 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2699 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2702 2003-08-02 Andrew Cagney <cagney@redhat.com>
2704 * Makefile.in: Update all dependencies and definitions.
2706 2003-08-02 Adam Fedor <fedor@gnu.org>
2708 * linespec.c (is_objc_method_format): New function
2709 (decode_line_1, locate_first_half): Use it.
2712 2003-08-01 Andrew Cagney <cagney@redhat.com>
2714 * NEWS: Mention that m32r is multi-arch.
2715 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2716 * configure.tgt: Recognize m32r-*-*.
2717 * config/m32r/tm-m32r.h: Delete file.
2718 * config/m32r/m32r.mt: New file.
2719 * m32r-rom.c (m32r_upload_command): Use hostent only when
2720 gethostname succeeds, in order to avoid a compilation
2722 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2725 2003-08-01 Michael Snyder <msnyder@redhat.com>
2727 * sh-tdep.c (sh_frame_align): New gdbarch method.
2728 (sh_gdbarch_init): Set up frame_align method.
2730 2003-07-31 Michael Snyder <msnyder@redhat.com>
2732 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2733 which is already covered by the new frames infrastructure.
2735 2003-07-31 Andrew Cagney <cagney@redhat.com>
2737 * user-regs.c (struct user_reg): Add "next" link.
2738 (struct user_regs): Replace "user" with "first" and "last" links.
2739 (append_user_reg): Add pre-allocated "reg" parameter.
2740 (builtin_user_regs): Provide initial value for "last".
2741 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2742 (user_regs_init): Allocate memory from the gdbarch obstack.
2743 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2744 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2746 (usernum_to_user_reg): New function.
2747 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2748 (value_of_user_reg): Use usernum_to_user_reg.
2749 (user_regs_free): Delete function.
2750 (_initialize_user_regs): Update register_gdbarch_data call.
2752 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2754 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2756 2003-07-30 Michael Snyder <msnyder@redhat.com>
2758 * value.h (value_being_returned): Add a struct_addr argument.
2759 * infcall.c (call_function_by_hand): Pass struct_addr to
2760 value_being_returned.
2761 * infcmd.c (print_return_value): Pass zero as struct_addr.
2762 * values.c (value_being_returned): If struct_addr is passed,
2763 use it instead of trying to recover it from the inferior.
2765 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2767 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2768 the prologue analyzer won't need to attempt to extract the pc
2769 value from the woefully incomplete dummy frame.
2770 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2771 possible. Disable code which modifies the frame.
2773 2003-07-28 Andrew Cagney <cagney@redhat.com>
2775 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2777 (annotate_breakpoints_table, annotate_record): Ditto.
2778 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2779 (annotate_field_name_end, annotate_field_value): Ditto.
2780 (annotate_field_end, annotate_frame_source_begin): Ditto.
2781 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2782 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2783 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2784 (annotate_frame_address_end, annotate_frame_address): Ditto.
2785 (annotate_frame_args, annotate_frame_end): Ditto.
2786 (annotate_frame_where, annotate_arg_begin): Ditto.
2787 (annotate_arg_name_end, annotate_arg_value): Ditto.
2788 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2789 (annotate_function_call, annotate_signal_name): Ditto.
2790 (annotate_signal_string, annotate_signal_name_end): Ditto.
2791 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2792 (annotate_value_begin, annotate_value_history_value): Ditto.
2793 (annotate_value_history_end, annotate_value_end): Ditto.
2794 (annotate_display_begin, annotate_display_number_end): Ditto.
2795 (annotate_display_format, annotate_display_expression): Ditto.
2796 (annotate_display_expression_end, annotate_display_value): Ditto.
2797 (annotate_display_end, annotate_array_section_begin): Ditto.
2798 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2799 (annotate_elt, annotate_array_section_end): Ditto.
2801 2003-07-28 Andrew Cagney <cagney@redhat.com>
2803 * regcache.c (struct regcache_descr): Update comments on
2805 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2806 sizeof_raw_register_valid_p.
2807 (init_regcache_descr): Set nr_raw_registers and
2808 sizeof_raw_register_valid_p before calling
2809 init_legacy_regcache_descr.
2811 2003-07-28 Andrew Cagney <cagney@redhat.com>
2813 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2816 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2818 * thread.c (info_threads_command): Use get_selected_frame ().
2819 Check that there is at least one non-sentinel frame.
2821 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2823 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2824 (m68hc11_pop_frame): Remove.
2825 (m68hc11_frame_saved_pc): Remove.
2826 (m68hc11_frame_chain): Remove.
2827 (m68hc11_frame_init_saved_regs): Remove.
2828 (m68hc11_init_extra_frame_info): Remove.
2829 (m68hc11_store_struct_return): Remove.
2830 (m68hc11_saved_pc_after_call): Remove.
2832 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2834 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2835 frame unwind information.
2836 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2837 and adapted for frame unwinding.
2838 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2839 (m68hc11_unwind_pc): New function.
2840 (m68hc11_frame_unwind_cache): New function to analyze frames.
2841 (m68hc11_frame_this_id): New function to create new frame struct.
2842 (m68hc11_frame_prev_register): New function to unwind a register from
2844 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2845 (m68hc11_frame_p): New function for the above.
2846 (m68hc11_frame_base_address): New function to return fp of frame.
2847 (m68hc11_frame_args_address): Update for frame.
2848 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2849 (m68hc11_unwind_sp): New function.
2850 (m68hc11_unwind_dummy_id): New function.
2851 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2854 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2856 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2857 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2858 when we are beyond the current pc.
2860 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2862 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2863 from m68hc11_push_arguments.
2864 (m68hc11_push_arguments): Remove.
2865 (m68hc11_push_return_address): Remove.
2866 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2867 handlers; remove deprecated_extra_stack_alignment_needed.
2869 2003-07-27 Andrew Cagney <cagney@redhat.com>
2871 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2872 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2873 REAL_PC and not the pointer.
2874 * hppa-hpux-tdep.c: Include frame.h
2876 2003-07-27 Andrew Cagney <cagney@redhat.com>
2878 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2879 GDB_MULTI_ACH_PARTIAL.
2881 2003-07-27 Andrew Cagney <cagney@redhat.com>
2883 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2884 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2885 operator at start and not end of line.
2886 (decode_prologue): Ditto.
2887 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2888 frame_unwind_register_unsigned instead of
2889 frame_unwind_unsigned_register.
2890 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2892 (m32r_push_dummy_call): Use register_size instead of
2894 (m32r_frame_sniffer): Replace m32r_frame_p.
2895 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2896 * m32r-rom.c (report_transfer_performance): Delete extern
2898 (m32r_load, m32r_upload_command): Use print_transfer_performance
2899 instead of report_transfer_performance.
2900 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2901 / add_show_from_set.
2903 2003-07-26 Andrew Cagney <cagney@redhat.com>
2905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2906 store_return_value and extract_struct_value_address.
2908 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2911 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2912 NULL, default to the section containing PC.
2914 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2916 * NEWS: Mention "regs" deprecated for m68hc11 too.
2918 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2919 (m68hc11_print_register): New function to print out one register.
2920 (m68hc11_print_registers_info): New function to print registers.
2921 (show_regs): Deprecate and use the above.
2922 (m68hc11_gdbarch_init): Install the print_registers_info.
2924 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2926 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2927 that we have a SIGTRAP before returning non-zero.
2929 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2930 Elena Zannoni <ezannoni@redhat.com>
2932 * linespec.c (decode_line_2): Avoid crash if
2933 find_function_start_sal() returns empty record.
2935 2003-07-23 Andreas Schwab <schwab@suse.de>
2937 * ia64-tdep.c (ia64_print_insn): New function.
2938 (ia64_gdbarch_init): Set print_insn to it.
2939 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2940 deprecated_tm_print_insn_info.
2942 2003-07-22 Michael Snyder <msnyder@redhat.com>
2944 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2945 handle 8-bit returns (long long).
2946 (h8300h_extract_return_value): Ditto.
2947 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2949 2003-07-22 Andrew Cagney <cagney@redhat.com>
2951 * gdbarch.c Include "gdb_obstack.h".
2952 (struct gdbarch): Add an "obstack".
2953 (alloc_gdbarch_data): Allocate the gdbarch data using
2954 GDBARCH_OBSTACK_CALLOC.
2955 (free_gdbarch_data): Delete function.
2956 (gdbarch_obstack_zalloc): New function.
2957 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2958 Assert that the architecture is not initialized.
2959 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2960 vector from the obstack.
2961 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2962 architecture obstack.
2963 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2964 (set_gdbarch_data): Assert that the data is not initialized.
2965 (struct gdbarch_data): Delete member "free".
2966 (register_gdbarch_data): Do not initialize "free".
2967 * gdbarch.h, gdbarch.c: Re-generate.
2969 2003-07-22 Andrew Cagney <cagney@redhat.com>
2971 * configure.in (build_warnings): Add -Wformat-nonliteral.
2972 * configure: Re-generate.
2974 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2976 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2978 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2980 * findvar.c (read_var_value): Remove case for thread local storage
2981 variables. It is now entirely handled by the dwarf2 location
2983 * printcmd.c (address_info): Ditto.
2984 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2986 (struct symbol): Remove objfile field, which was used by
2987 LOC_THREAD_LOCAL_STATIC only.
2988 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2989 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2990 usage of objfile pointer.
2991 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2992 thread local variables.
2993 Add include of objfiles.h.
2994 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2996 * Makefile.in (dwarf2loc.o): Update dependencies.
2998 2003-07-22 Andrew Cagney <cagney@redhat.com>
3000 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3002 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3003 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3004 (struct value): Add opaque declaration.
3005 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3007 2003-07-21 Andrew Cagney <cagney@redhat.com>
3009 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3010 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3012 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3014 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3015 regcache_cooked_read_unsigned instead of read_register.
3016 (m68hc11_saved_pc_after_call): Likewise.
3017 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3018 instead of write_register.
3019 (m68hc11_register_type): New function.
3020 (m68hc11_register_virtual_type): Remove.
3021 (m68hc11_store_return_value): Convert to use the regcache.
3022 (m68hc11_extract_struct_value_address): Likewise.
3023 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3024 m68hc11_register_type; undeprecate store_return_value and
3025 extract_struct_value_address.
3027 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3029 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3030 and translate to use regcache.
3031 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3033 2003-07-18 Andrew Cagney <cagney@redhat.com>
3035 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3036 * gdbarch.h, gdbarch.c: Re-generate.
3037 * i386-tdep.c (i386_gdbarch_init): Do not set
3038 DWARF2_BUILD_FRAME_INFO.
3039 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3041 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3042 DWARF2_BUILD_FRAME_INFO.
3044 2003-07-18 Andrew Cagney <cagney@redhat.com>
3046 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3047 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3049 2003-07-18 Andrew Cagney <cagney@redhat.com>
3051 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3052 frame_unwind_address_in_block, instead of frame_pc_unwind.
3053 (dwarf2_frame_cache): Ditto.
3055 2003-07-18 Andrew Cagney <cagney@redhat.com>
3057 * user-regs.h (struct gdbarch): Declare opaque.
3058 * ui-out.h (struct ui_file): Declare opaque.
3059 * dwarf2-frame.h (struct frame_info): Declare opaque.
3061 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3063 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3065 (procfs_meminfo): Change strerror to safe_strerror.
3066 (procfs_can_run): Remove K&R badness.
3068 2003-07-17 Michael Snyder <msnyder@redhat.com>
3070 * remote-sim.c: Comment typo fix.
3072 2003-07-17 Andrew Cagney <cagney@redhat.com>
3074 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3076 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3077 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3078 GDB_MULTI_ARCH_PARTIAL.
3080 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3082 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3083 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3084 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3086 2003-07-16 Theodore A. Roth <troth@openavr.org>
3088 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3090 (avr_frame_unwind_cache): Don't unwind FP for main.
3092 Save the computed prev_sp.
3093 (avr_saved_regs_unwinder): Remove function.
3094 (avr_frame_prev_register): Use PC unwind logic from
3095 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3097 2003-07-16 Andrew Cagney <cagney@redhat.com>
3099 * frame-base.h (frame_base_p_ftype): Delete definition.
3100 (frame_base_append_predicate): Delete declaration.
3101 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3102 (frame_unwind_append_predicate): Delete declaration.
3103 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3104 (append_predicate): Delete parameter "p".
3105 (frame_unwind_append_predicate): Delete function.
3106 (frame_unwind_append_sniffer): Update call to append_predicate.
3107 (frame_unwind_free): Delete function.
3108 (_initialize_frame_unwind): Pass NULL as "free" to
3109 register_gdbarch_data.
3110 (frame_unwind_init): Append the dummy_frame_sniffer.
3111 (frame_unwind_find_by_frame): Simplify.
3112 * frame-base.c (struct frame_base_table): Delete field "p".
3113 (append_predicate): Delete parameter "p".
3114 (frame_base_append_predicate): Delete function.
3115 (frame_base_append_sniffer): Update call to append_predicate.
3116 (frame_base_free): Delete function.
3117 (frame_base_find_by_frame): Simplify.
3118 (_initialize_frame_base): Pass NULL as "free" to
3119 register_gdbarch_data.
3120 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3121 (x86_64_sigtramp_frame_sniffer): Replace
3122 "x86_64_sigtramp_frame_p".
3123 (x86_64_init_abi): Set the frame unwind sniffers.
3124 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3125 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3126 (m68k_gdbarch_init): Set the frame unwind sniffers.
3127 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3128 "i386_sigtramp_frame_p".
3129 (i386_frame_sniffer): Replace "i386_frame_p".
3130 (i386_gdbarch_init): Set the frame unwind sniffers.
3131 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3132 (avr_gdbarch_init): Set the frame unwind sniffers.
3133 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3134 "alpha_sigtramp_frame_p"
3135 (alpha_heuristic_frame_sniffer): Replace
3136 "alpha_heuristic_frame_p".
3137 (alpha_gdbarch_init): Set the frame unwind sniffers.
3138 (alpha_dwarf2_init_abi): Ditto.
3139 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3140 "alpha_debug_frame_p".
3141 (alpha_mdebug_frame_base_sniffer): Replace
3142 "alpha_mdebug_frame_base_p".
3143 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3144 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3145 (d10v_gdbarch_init): Set the frame unwind sniffer.
3146 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3147 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3148 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3149 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3150 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3151 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3153 2003-07-16 Michael Snyder <msnyder@redhat.com>
3155 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3156 should go thru sh_dsp_register_sim_regno, else the dsp regs
3157 will not get the right values.
3159 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3161 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3162 deprecated_store_floating by call to store_typed_floating.
3163 (sh_sh4_register_convert_to_raw): Substitute call to
3164 deprecated_extract_floating by call to extract_typed_floating.
3166 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3168 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3170 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3172 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3173 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3174 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3176 (do_pseudo_register): Remove.
3177 (sh_push_dummy_code): New function.
3178 (sh64_store_struct_return): Rename from sh_store_struct_return.
3179 Only called for sh64 now.
3180 (sh_extract_struct_value_address): Regcache'ify.
3181 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3182 and accomodate new tasks.
3183 (sh64_push_return_address): Rename from sh_push_return_address.
3184 Only called for sh64 now.
3185 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3187 (sh3e_sh4_extract_return_value): Regcache'ify.
3188 (sh_default_store_return_value): Ditto.
3189 (sh3e_sh4_store_return_value): Ditto.
3190 (sh_default_register_byte): Remove.
3191 (sh_sh4_register_byte): Remove.
3192 (sh_default_register_raw_size): Remove.
3193 (sh_sh4_register_raw_size): Remove.
3194 (sh_register_virtual_size): Remove.
3195 (sh_sh3e_register_virtual_type): Remove.
3196 (sh_sh3e_register_type): New function.
3197 (sh_sh4_register_virtual_type): Remove.
3198 (sh_sh4_register_type): New function.
3199 (sh_default_register_virtual_type): Remove.
3200 (sh_default_register_type): New function.
3201 (do_fv_register_info): Add parameters to accomodate call from
3202 sh_print_registers_info.
3203 (do_dr_register_info): Ditto.
3204 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3205 Add parameters to accomodate call from sh_print_registers_info.
3206 (sh_do_fp_register): Ditto.
3207 (sh64_do_pseudo_register): Call do_dr_register_info,
3208 do_fv_register_info and sh_do_fp_register with default parameters.
3209 (sh_do_register): Add parameters to accomodate call from
3210 sh_print_registers_info.
3211 (sh_print_register): Ditto.
3212 (sh_print_registers_info): Rename from sh_do_registers_info.
3213 Add parameters to be used as gdbarch_print_registers_info
3214 implementation. Accomodate removed do_pseudo_register function
3216 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3217 function pointer. Call sh_print_register with default parameters.
3218 (sh64_do_registers_info): Call sh_print_registers_info instead of
3219 sh_do_registers_info.
3220 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3221 detection of deprecated vs. non-deprecated functionality.
3222 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3223 function pointer assignments by direct function calls.
3225 2003-07-15 Andrew Cagney <cagney@redhat.com>
3227 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3228 (frame_register_unwind, create_new_frame): Ditto.
3229 (legacy_get_prev_frame, get_frame_type): Ditto.
3230 (get_frame_base_address): Use frame_base_find_by_frame.
3231 (get_frame_locals_address): Use frame_base_find_by_frame.
3232 (get_frame_args_address): Use frame_base_find_by_frame.
3233 * frame-base.h (frame_base_sniffer_ftype): Declare.
3234 (frame_base_append_sniffer): Declare.
3235 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3236 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3237 (frame_base_append_sniffer): New function.
3238 (frame_base_append_predicate): Add a NULL sniffer.
3239 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3240 (struct frame_base_table): Add "sniffer".
3241 (frame_base_free): Free the "sniffer" table.
3242 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3243 (frame_unwind_append_sniffer): Declare.
3244 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3245 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3246 (struct frame_unwind_table): Add "sniffer", delete "middle".
3247 (append_predicate): Add "sniffer" parameter, append the sniffer.
3248 (frame_unwind_init): Update append_predicate call.
3249 (frame_unwind_append_sniffer): New function.
3250 (frame_unwind_append_predicate): Update append_predicate call.
3251 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3253 2003-07-15 Andrew Cagney <cagney@redhat.com>
3255 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3256 before code inhibiting repeated unwind attempts. Add to
3257 commentary on that test's problems.
3258 * blockframe.c (inside_main_func): Look for "main" in the minimal
3260 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3263 2003-07-15 Andrew Cagney <cagney@redhat.com>
3265 * complaints.c (struct explanation): Define.
3266 (struct complaints): Change type of "explanation" to "struct
3268 (symfile_explanations): Convert to a "struct explanation" table.
3269 (vcomplaint): Update.
3271 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3273 * x86-64-linux-nat.c (regmap): Removed.
3274 (supply_gregset, fill_gregset): Call
3275 x86_64_linux_(fill,supply)_gregset functions.
3276 * x86-64-linux-tdep.c (USER_*): New defines.
3277 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3278 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3280 (fetch_core_registers): Ditto.
3281 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3282 * x86-64-linux-tdep.h: New file.
3283 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3285 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3287 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3289 * x86-64-tdep.c (x86_64_store_return_value): Use
3290 regcache_cooked_write_part instead of regcache_cooked_write.
3292 * configure.host: Add x86_64-*-freebsd*.
3293 * configure.tgt: Add x86_64-*-freebsd*.
3294 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3295 * amd64fbsd-nat.c: New file.
3296 * amd64fbsd-tdep.c: New file.
3297 * config/i386/nm-fbsd64.h: New file.
3298 * config/i386/fbsd64.mh: New file.
3299 * config/i386/fbsd64.mt: New file.
3301 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3303 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3304 `sc_regs_offset' and `sc_fpregs_offset'.
3305 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3306 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3307 (alpha_sigtramp_register_address): Rewrite to use new members of
3308 `struct gdbarch_tdep'.
3309 (alpha_gdbarch_init): Initialize new members of struct
3311 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3312 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3313 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3314 (alphafbsd_pc_in_sigtramp): Implement.
3315 (alphafbsd_sigtramp_offset): New function.
3316 (alphafbsd_sigcontext_addr): New function.
3317 (alphafbsd_init_abi): Initialize signal trampoline related members
3318 of `struct gdbarch_tdep'.
3319 (_initialize_alphafbsd_tdep): Add prototype.
3321 2003-07-11 Theodore A. Roth <troth@openavr.org>
3323 * Makefile.in (install-only): Quote sed expression when generating
3326 2003-07-11 Richard Henderson <rth@redhat.com>
3328 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3329 * dwarf2-frame.c: Include complaints.h.
3330 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3331 variable initialization; return NULL on error.
3332 (decode_frame_entry): New.
3334 2003-07-11 Andrew Cagney <cagney@redhat.com>
3336 * frame.h (frame_address_in_block): Delete declaration.
3337 * blockframe.c (frame_address_in_block): Delete function.
3338 (get_frame_block): Use get_frame_address_in_block.
3339 (block_innermost_frame): Ditto.
3340 * stack.c (print_frame, backtrace_command_1): Ditto.
3342 * frame.h (get_frame_address_in_block): Declare.
3343 (frame_unwind_address_in_block): Declare.
3344 * frame.c (frame_unwind_address_in_block): New function.
3345 (get_frame_address_in_block): New function.
3347 2003-07-10 Andrew Cagney <cagney@redhat.com>
3349 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3350 pre-default. Note: re-generate has no effect.
3352 2003-07-10 Andrew Cagney <cagney@redhat.com>
3354 * gdbarch.sh: When a variable, but not a function, compare against
3355 0. Fix problem in previous patch.
3356 * gdbarch.c: Re-generate.
3358 2003-07-10 Andrew Cagney <cagney@redhat.com>
3360 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3361 functions against NULL, not 0.
3362 * gdbarch.c: Re-generate.
3364 2003-07-10 Fred Fish <fnf@ninemoons.com>
3366 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3367 null string instead of a null pointer.
3368 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3370 2003-07-09 Michael Snyder <msnyder@redhat.com>
3372 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3374 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3376 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3377 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3378 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3379 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3380 * x86-64-tdep.c: ... from here.
3382 2003-07-09 Andreas Schwab <schwab@suse.de>
3384 * m68k-tdep.h (enum struct_return): Define.
3385 (struct gdbarch_tdep): Add struct_return.
3386 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3387 bytes are padded to the right, not to the left. Pass struct value
3388 address in register %a1, not on stack.
3389 (m68k_use_struct_convention): New function.
3390 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3391 struct_return in tdep to pcc_struct_return.
3392 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3395 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3397 * somread.c (som_symfile_offsets): Fix compilation error.
3399 2003-07-09 Andrew Cagney <cagney@redhat.com>
3401 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3402 Add comments about the checks.
3404 2003-07-08 Andrew Cagney <cagney@redhat.com>
3406 * Makefile.in: Make dependency section headers consistent.
3407 (config_h): Move to $BUILD headers section.
3408 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3409 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3410 (ada-exp.tab.c): Move to YACC/LEX section.
3411 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3412 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3414 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3416 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3417 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3418 of strerror with safe_strerror, use ISO C function definitions,
3419 and replace instances of sprintf with snprintf.
3421 2003-07-07 Andrew Cagney <cagney@redhat.com>
3423 * frame.c (get_prev_frame): Enable check for identical frames.
3424 Update comments. Update error messages.
3426 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3428 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3430 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3432 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3433 sort_symtab_syms, no longer necessary.
3435 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3437 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3439 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3441 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3442 (mips_register_byte): Likewise.
3444 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3446 * Makefile.in (sparc_tdep_h): New.
3447 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3448 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3449 * sparc-linux-nat.c: Include "sparc-tdep.h".
3450 * sparc-nat.c: Likewise.
3451 * sparc-tdep.c: Likewise.
3452 * sparc64nbsd-nat.c: Likewise.
3453 * sparcnbsd-nat.c: Likewise.
3454 * sparcnbsd-tdep.c: Likewise.
3455 * sparc-tdep.h: New file.
3456 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3457 and sparc_npc_regnum.
3459 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3461 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3462 (mips_linux_cannot_store_register): List supported instead of
3463 unsupported registers.
3465 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3467 * disasm.c (dump_insns): Separate instructions from addresses.
3469 2003-07-07 Andreas Schwab <schwab@suse.de>
3471 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3473 * m68k-tdep.c (NUM_FREGS): Delete.
3474 (SIG_PC_FP_OFFSET): Delete.
3475 (TARGET_M68K): Delete.
3476 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3477 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3478 P_MOVEL_SP, P_MOVEML_SP): Define.
3479 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3481 (m68k_register_raw_size): Delete.
3482 (m68k_register_virtual_size): Delete.
3483 (m68k_register_type): Renamed from m68k_register_virtual_type and
3484 add gdbarch argument.
3485 (m68k_store_struct_return): Delete.
3486 (m68k_deprecated_extract_return_value): Delete.
3487 (m68k_deprecated_extract_struct_value_address): Delete.
3488 (m68k_frame_chain): Delete.
3489 (m68k_frame_saved_pc): Delete.
3490 (m68k_fix_call_dummy): Delete.
3491 (m68k_push_dummy_frame): Delete.
3492 (m68k_pop_frame): Delete.
3493 (m68k_extract_return_value): New function.
3494 (m68k_store_return_value): Rewrite using regcache.
3495 (m68k_extract_struct_value_address): Rewrite using regcache.
3496 (m68k_push_dummy_call): New function.
3497 (struct m68k_frame_cache): Define.
3498 (m68k_alloc_frame_cache): New function.
3499 (m68k_analyze_frame_setup): New function.
3500 (m68k_analyze_register_saves): New function.
3501 (m68k_analyze_prologue): New function.
3502 (m68k_skip_prologue): Rewrite using above functions.
3503 (m68k_unwind_pc): New function.
3504 (m68k_frame_cache): New function.
3505 (m68k_frame_this_id): New function.
3506 (m68k_frame_prev_register): New function.
3507 (m68k_frame_unwind): New variable.
3508 (m68k_frame_p): New function.
3509 (m68k_sigtramp_frame_cache): New function.
3510 (m68k_sigtramp_frame_this_id): New function.
3511 (m68k_sigtramp_frame_prev_register): New function.
3512 (m68k_sigtramp_frame_unwind): New variable.
3513 (m68k_sigtramp_frame_p): New function.
3514 (m68k_frame_base_address): New function.
3515 (m68k_frame_base): New function.
3516 (m68k_unwind_dummy_id): New function.
3517 (fill_gregset): Use regcache_collect.
3518 (fill_fpregset): Likewise.
3519 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3521 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3522 deprecated_init_frame_pc, deprecated_store_struct_return,
3523 deprecated_extract_return_value, deprecated_store_return_value,
3524 deprecated_frame_chain, deprecated_frame_saved_pc,
3525 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3526 deprecated_register_virtual_size,
3527 deprecated_max_register_raw_size,
3528 deprecated_max_register_virtual_size,
3529 deprecated_register_virtual_type, deprecated_register_size,
3530 deprecated_register_byte, deprecated_register_bytes,
3531 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3532 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3533 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3534 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3535 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3536 deprecated_push_dummy_frame, deprecated_pop_frame,
3537 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3538 only if SYSCALL_TRAP is defined. Set extract_return_value,
3539 store_return_value, extract_struct_value_address, register_type,
3540 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3542 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3543 M68K_MAX_REGISTER_SIZE): Define.
3544 (struct m68k_sigtramp_info): Define.
3545 (struct gdbarch_tdep): Add get_sigtramp_info.
3546 * m68klinux-nat.c (fetch_register): Use register_size instead of
3547 REGISTER_RAW_SIZE. Don't put assignment in if.
3548 (store_register): Likewise.
3549 (fetch_inferior_registers): Likewise.
3550 (store_inferior_registers): Likewise.
3551 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3552 (m68k_linux_frame_saved_pc): Delete.
3553 (m68k_linux_sigcontext_reg_offset,
3554 m68k_linux_ucontext_reg_offset): Define.
3555 (m68k_linux_get_sigtramp_info): New function.
3556 (m68k_linux_extract_return_value): Rewrite using regcache.
3557 (m68k_linux_store_return_value): Likewise.
3558 (m68k_linux_extract_struct_value_address): Likewise.
3559 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3560 Don't set deprecated_frame_saved_pc,
3561 deprecated_extract_return_value, deprecated_store_return_value,
3562 deprecated_extract_struct_value_address. Set
3563 extract_return_value, store_return_value,
3564 extract_struct_value_address.
3566 2003-07-07 Andrew Cagney <cagney@redhat.com>
3568 * expprint.c: Include "user-regs.h" instead of "frame.h".
3569 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3570 frame_map_regnum_to_name.
3571 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3572 (frame_map_name_to_regnum): Simplify, call
3573 user_reg_map_name_to_regnum.
3574 (frame_map_regnum_to_name): Simplify, call
3575 user_reg_map_regnum_to_name.
3576 (frame_register_unwind): Update.
3577 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3578 (_initialize_frame_reg): Call user_reg_add_builtin.
3579 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3580 (value_of_register): Use value_of_user_reg.
3581 * eval.c (evaluate_subexp_standard): Update.
3582 * parse.c (write_dollar_variable): Update.
3583 * d10v-tdep.c (d10v_print_registers_info): Update.
3584 * infcmd.c (registers_info): Update.
3585 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3586 (builtin_regs_h): Delete macro.
3587 (user_regs_h): Define.
3588 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3589 (builtin-regs.o): Delete target.
3590 (user-regs.o): Specify dependencies.
3591 (expprint.o): Update dependencies.
3592 (findvar.o): Update dependencies.
3593 (frame.o): Update dependencies.
3594 (std-regs.o): Update dependencies.
3596 2003-07-06 Christopher Faylor <cgf@redhat.com>
3598 * win32-nat.c (solib_symbols_add): Use one variable for all section
3599 address stuff. Pass variable rather than address of variable to
3600 safe_symbol_file_add.
3602 2003-07-06 Andreas Schwab <schwab@suse.de>
3604 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3606 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3608 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3610 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3612 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3614 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3616 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3617 * config/i386/nto.mh: New file.
3618 * config/i386/nm-nto.h: New file.
3619 * configure.host: Add i[3456]86-*-nto*.
3621 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3623 * remote-vx.c (vx_add_symbols): Fix compilation error.
3625 2003-07-03 Andrew Cagney <cagney@redhat.com>
3627 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3628 * gdbarch.h, gdbarch.c: Re-generate.
3629 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3630 (legacy_register_name): Declare.
3631 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3632 (REGISTER_NAME): Define.
3633 * sparc-tdep.c (legacy_register_name): New function.
3634 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3635 (REGISTER_NAME): Define.
3636 (hppa64_register_name): Declare.
3637 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3638 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3639 (hppa64_register_name): New function.
3640 (hppa_register_name): New function.
3641 * arch-utils.c (legacy_register_name): Delete.
3642 * arch-utils.h (legacy_register_name): Delete.
3644 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3646 * cli/cli-interp.c (cli_interpreter_resume): Update the
3647 cli_uiout's stream to gdb_stdout.
3649 2003-07-03 Andrew Cagney <cagney@redhat.com>
3651 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3653 * gdbarch.h, gdbarch.c: Re-generate.
3654 * regcache.c (init_regcache_descr): Use legacy code when either
3655 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3657 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3659 * NEWS: Move "set logging" entry into GDB 6.0 section.
3661 2003-07-02 Jim Blandy <jimb@redhat.com>
3663 * s390-tdep.c (struct frame_extra_info): new member:
3664 'stack_bought_valid'.
3665 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3666 initialize fextra_info->stack_bought.
3667 (s390_frameless_function_invocation): Don't trust the value of
3668 fextra_info_ptr->stack_bought unless
3669 fextra_info->stack_bought_valid is set.
3671 New S390 prologue analyzer.
3672 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3673 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3674 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3675 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3676 compute_x_addr, s390_on_stack, s390_store,
3677 s390_get_signal_frame_info): New functions.
3678 (S390_NUM_SPILL_SLOTS): New macro.
3679 (s390_get_frame_info): Rewritten.
3680 (is_arg_reg): Deleted.
3682 Break out the decoding of S/390 instructions into separate
3683 functions, to make it more legible, and easier to check
3685 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3686 is_rx, is_rxe): New functions.
3687 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3688 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3689 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3690 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3691 enums for opcode values. (Is this an improvement?)
3693 2003-07-02 Andrew Cagney <cagney@redhat.com>
3695 * i386-tdep.c: Revert change committed as part of trad-frame code
3698 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3700 * breakpoint.c (insert_catchpoint): Make static.
3702 2003-07-02 Andreas Schwab <schwab@suse.de>
3704 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3705 former ia64_push_arguments and ia64_push_return_address, and use
3706 regcache functions instead of read/write_register.
3707 (ia64_gdbarch_init): Set push_dummy_call instead of
3708 deprecated_push_arguments and deprecated_push_return_address.
3710 2003-07-01 Andreas Jaeger <aj@suse.de>
3712 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3714 Set %rax only to number of SSE registers used.
3716 2003-07-01 Andrew Cagney <cagney@redhat.com>
3718 * trad-frame.h: Update comments, a -1 .addr is reserved.
3719 (trad_frame_value_p, trad_frame_addr_p): Declare.
3720 (trad_frame_reg_p): Declare.
3721 (trad_frame_set_value): Rename trad_frame_register_value.
3722 (trad_frame_set_unknown): Declare.
3723 * trad-frame.c (trad_frame_realreg_p): New function.
3724 (trad_frame_addr_p, trad_frame_value_p): New function.
3725 (trad_frame_set_unknown): New function.
3726 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3727 (trad_frame_prev_register): Use trad_frame_realreg_p,
3728 trad_frame_addr_p and trad_frame_value_p.
3729 (trad_frame_set_value): Rename trad_frame_register_value.
3730 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3731 and trad_frame_set_value.
3733 2003-06-30 Jim Blandy <jimb@redhat.com>
3735 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3736 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3737 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3738 for 16 registers, and then 32 more bytes.
3739 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3741 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3742 Move up in the file, since it's now used by is_simple_arg.
3743 (is_simple_arg): Don't assume registers are four bytes long.
3744 Exclude all double arguments. Extended floats are not simple
3746 (is_power_of_two): New function.
3747 (pass_by_copy_ref): Call is_power_of_two, and check that the
3748 length fits in a register, rather than listing all the acceptable
3749 sizes. Extended floats are not passed by reference.
3750 (s390_push_arguments): Don't assume registers are four bytes long.
3751 Reserve an argument register to point to the buffer for structures
3752 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3753 S390_STACK_FRAME_OVERHEAD.
3755 2003-06-30 Andreas Schwab <schwab@suse.de>
3757 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3758 format error message.
3760 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3762 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3764 2003-06-30 David Carlton <carlton@kealia.com>
3766 Band-aid for PR c++/1245.
3767 * Makefile.in (cp-support.o): Depend on complaints_h.
3768 * cp-support.c: Include complaints.h. Add declaration for
3769 find_last_component.
3770 (cp_find_first_component): Separate code into
3771 cp_find_first_component_aux.
3772 (cp_find_first_component_aux): Call demangled_name_complaint.
3773 (demangled_name_complaint): New.
3775 2003-06-30 Andrew Cagney <cagney@redhat.com>
3777 * remote.c (remote_write_bytes): Explicitly compute and then use
3778 the payload size. Update comments to reflect. Fixes problem of
3779 GDB not sending small packets as found by Fred Fish.
3781 2003-06-30 Andrew Cagney <cagney@redhat.com>
3783 * remote.c (remote_async_wait): Fix -Wformat problem.
3785 2003-06-29 Andrew Cagney <cagney@redhat.com>
3787 * remote.c (remote_wait): Call error, and not warning, when the
3789 (remote_async_wait): Ditto.
3791 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3793 * sparc-tdep.c (sparc_y_regnum): Make external again.
3795 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3797 * cli/cli-logging.c (pop_output_files): Add void to function
3800 2003-06-29 Andrew Cagney <cagney@redhat.com>
3802 * frame.c (frame_register_unwind): Use unsigned char when dumping
3803 the buffer contents.
3805 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3807 * cli/cli-logging.c: New file.
3808 * cli-out.c (struct ui_out_data): Add original_stream.
3809 (cli_redirect): New function.
3810 (cli_ui_out_impl): Add cli_redirect.
3811 (cli_out_new): Initialize original_stream.
3812 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3813 (uo_redirect, ui_out_redirect): New.
3814 * ui-out.h (struct ui_out_impl): Add redirect member.
3815 (redirect_ftype): New.
3816 (ui_out_redirect): Add prototype.
3817 * Makefile.in: Add rules for cli-logging.c.
3818 * NEWS: Mention "set logging".
3820 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3822 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3824 2003-06-27 Andrew Cagney <cagney@redhat.com>
3826 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3827 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3828 * avr-tdep.c (avr_call_dummy_address): Delete function.
3829 (avr_gdbarch_init): Do not set call_dummy_address.
3831 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3833 * symfile.c (syms_from_objfile): Move variables to inner block.
3834 Move the checks for the non-mainline case a bit earlier to avoid
3835 doing some useless computations.
3837 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3839 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3841 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3843 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3846 2003-06-26 Michael Chastain <mec@shout.net>
3848 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3849 gdb/testsuite/gdb.c++/pr-1210.exp.
3851 2003-06-26 Andrew Cagney <cagney@redhat.com>
3853 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3854 altivec_expression.h and altivec_registers.h.
3856 2003-06-26 Andrew Cagney <cagney@redhat.com>
3858 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3859 info->mach when MIPS16. Patch suggested by Fred Fish.
3861 2003-06-26 Andrew Cagney <cagney@redhat.com>
3863 * utils.c (internal_vproblem): Print the problem to a reason
3864 buffer and then pass to query. Make the msg variable more local.
3866 2003-06-26 Andrew Cagney <cagney@redhat.com>
3868 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3869 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3870 * gdbarch.h, gdbarch.c: Re-generate.
3871 * frame-base.c (default_frame_args_address): Update. Use
3872 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3874 (default_frame_locals_address): Ditto for
3875 DEPRECATED_FRAME_LOCALS_ADDRESS.
3876 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3877 (vax_frame_num_args): Update.
3878 (vax_gdbarch_init): Update.
3879 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3880 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3881 * mcore-tdep.c (mcore_gdbarch_init): Update.
3882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3883 * ia64-tdep.c (ia64_gdbarch_init): Update.
3884 * symtab.h (address_class): Update comments.
3885 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3886 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3887 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3888 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3889 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3890 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3891 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3892 * alpha-mdebug-tdep.c: Update.
3893 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3895 2003-06-26 Andreas Jaeger <aj@suse.de>
3897 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3898 of SSE registers so that varargs functions work. Rework handling
3899 of passing arguments on the stack.
3900 (x86_64_store_return_value): Return double and float values in SSE
3903 2003-06-24 Michael Chastain <mec@shout.net>
3905 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3906 the "constructor breakpoints ignored" bug.
3908 2003-06-25 David Carlton <carlton@kealia.com>
3910 * MAINTAINERS: Update e-mail address.
3912 2003-06-24 Jim Blandy <jimb@redhat.com>
3914 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3916 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3918 (ppc_linux_init_abi): Register it as the
3919 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3921 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3922 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3925 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3926 (ppc64_standard_linkage_target): Use it.
3928 2003-06-23 Andrew Cagney <cagney@redhat.com>
3930 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3931 for 0 "int0" and 4 "int32" sized registers.
3932 * gdbtypes.c (builtin_type_int0): Define.
3933 (build_gdbtypes): Initialize builtin_type_int0.
3934 * gdbtypes.h (builtin_type_int0): Declare.
3936 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3939 as characters are unsigned.
3941 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3944 * dwarfread.c (struct_type): Skip static fields without crashing.
3946 2003-06-22 Andrew Cagney <cagney@redhat.com>
3948 GDB 6.0 branch created.
3950 * PROBLEMS: Update. Empty.
3953 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3955 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3956 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3958 2003-06-22 Andrew Cagney <cagney@redhat.com>
3960 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3961 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3964 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3966 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3969 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3971 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3972 argument of val_print.
3973 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3974 to the address argument of baseclass_offset or target_read_memory.
3975 Do add it to the argument of cp_print_value_fields.
3977 2003-06-21 Andrew Cagney <cagney@redhat.com>
3979 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3980 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3981 instead of 0..NUM_REGS.
3982 (mips_register_reggroup_p): New function.
3983 (mips_pseudo_register_write): New function.
3984 (mips_pseudo_register_read): New function.
3985 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3986 based on the register's type.
3987 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3989 (mips_get_saved_register): Simplify. Assert that REGNO is a
3991 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3992 (mips_register_type): Replace mips_register_virtual_type. Map
3993 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3995 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3996 that the register is cooked / virtual.
3997 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3998 Only get the extra info when needed.
3999 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4000 (mips32_heuristic_proc_desc): Fetch the cooked register.
4001 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4002 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4003 (mips_print_register): Use gdbarch_register_type, instead of
4004 REGISTER_VIRTUAL_TYPE.
4005 (print_gp_register_row): Use gdbarch_register_type, instead of
4006 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4007 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4008 Print the pseudo / cooked registers.
4009 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4010 Print the pseudo / cooked registers.
4011 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4012 REG_NUM is pseudo / cooked.
4013 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4014 (mips_n32n64_xfer_return_value): Ditto.
4015 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4016 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4017 (mips_register_sim_regno): New function.
4018 (mips_gdbarch_init): Set deprecated_register_byte,
4019 register_group_p, pseudo_register_write, pseudo_register_read,
4020 register_sim_regno, and num_pseudo_regs. Set register_type,
4021 instead of register_virtual_type.
4022 * Makefile.in (mips-tdep.o): Update dependencies.
4023 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4024 REGISTER_VIRTUAL_TYPE.
4025 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4026 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4027 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4028 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4029 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4031 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4033 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4034 * cli/cli-cmds.c: Include "gdb_vfork.h".
4035 (shell_escape): Use vfork.
4037 2003-06-21 Andrew Cagney <cagney@redhat.com>
4039 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4040 32 bit floating-point register saves.
4042 * frame.h (deprecated_unwind_get_saved_register): Delete.
4043 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4044 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4045 and deprecated_get_next_frame_hack instead of
4046 deprecated_unwind_get_saved_register.
4048 * mips-tdep.c (mips_dump_tdep): Do not print
4049 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4051 * frame.c (get_frame_register): New function.
4052 (frame_unwind_register_signed): New function.
4053 (get_frame_register_signed): New function.
4054 (frame_unwind_register_unsigned): New function.
4055 (get_frame_register_unsigned): New function.
4056 * frame.h: Add comments on naming schema.
4057 (get_frame_register, frame_unwind_register_signed): Declare.
4058 (get_frame_register_signed, get_frame_register_signed): Declare.
4059 (frame_unwind_register_unsigned): Declare.
4060 (get_frame_register_unsigned): Declare.
4062 2003-06-20 Theodore A. Roth <troth@openavr.org>
4064 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4066 2003-06-20 Theodore A. Roth <troth@openavr.org>
4068 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4069 (avr_read_sp): Ditto.
4071 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4073 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4074 * config/arm/nm-linux.h: Likewise.
4075 * config/arm/tm-linux.h: Likewise.
4076 * config/ia64/nm-linux.h: Likewise.
4077 * config/ia64/tm-ia64.h: Likewise.
4078 * config/s390/tm-linux.h: Likewise.
4079 * config/s390/tm-s390.h: Likewise.
4080 * s390-nat.c: Likewise.
4081 * s390-tdep.c: Likewise.
4083 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4084 * config/ia64/linux.mt: Likewise.
4085 * config/m68k/linux.mh: Likewise.
4086 * config/mips/linux.mt: Likewise.
4087 * config/powerpc/linux.mh: Likewise.
4088 * config/sh/linux.mt: Likewise.
4090 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4092 * solib.c (solib_open): Change tests for whether to search
4093 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4096 2003-06-19 Theodore A. Roth <troth@openavr.org>
4098 * avr-tdep.c (avr_frame_address): Delete function.
4099 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4100 set_gdbarch_frame_args_address.
4102 2003-06-19 Andrew Cagney <cagney@redhat.com>
4104 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4105 (REGISTER_CONVERT_FROM_TYPE): Delete.
4106 (mips_register_convert_to_type): Delete declaration.
4107 (mips_register_convert_from_type): Delete declaration.
4108 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4111 2003-06-19 Michael Snyder <msnyder@redhat.com>
4113 * linux-nat.h: New file.
4114 * linux-nat.c: Include linux-nat.h.
4115 * lin-lwp.c: Include linux-nat.h.
4116 Move struct lwp_info def to linux-nat.h.
4117 * linux-proc.c: Include linux-nat.h.
4118 (linux_make_note_section): Iterate over lwps instead of threads.
4119 (linux_do_thread_registers): Use lwp instead of merged pid.
4120 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4121 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4122 Add dependency on linux_nat_h.
4124 2003-06-19 Theodore A. Roth <troth@openavr.org>
4126 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4128 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4130 * varobj.c (get_type, get_target_type): Use check_typedef.
4132 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4134 * breakpoint.c (insert_catchpoint): Call internal_error.
4136 2003-06-19 Theodore A. Roth <troth@openavr.org>
4138 * avr-tdep.c (avr_push_dummy_code): Delete function.
4139 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4141 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4143 * arch-utils.c (default_prepare_to_proceed): Remove.
4144 (generic_prepare_to_proceed): Remove.
4145 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4146 (generic_prepare_to_proceed): Remove prototype.
4147 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4148 * gdbarch.c: Regenerate.
4149 * gdbarch.h: Regenerate.
4150 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4151 * hppah-nat.c (hppa_switched_threads): Remove.
4152 * infrun.c (prepare_to_proceed): New static function, copied from
4153 generic_prepare_to_proceed. Remove select_it argument.
4154 (proceed): Call prepare_to_proceed.
4155 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4157 (ptrace_wait): Don't set the removed variables.
4158 (hppa_switched_threads): Remove.
4159 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4160 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4161 (lin_lwp_prepare_to_proceed): Remove prototype.
4162 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4163 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4165 2003-06-18 Theodore A. Roth <troth@openavr.org>
4167 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4169 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4170 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4171 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4172 (AVR_PROLOGUE_*): Enumerate prologue types.
4173 (struct frame_extra_info): Remove.
4174 (struct avr_unwind_cache): Define.
4175 (avr_write_sp): Delete function.
4176 (avr_read_fp): Ditto.
4177 (avr_init_extra_frame_info): Ditto.
4178 (avr_pop_frame): Ditto.
4179 (avr_frame_saved_pc): Ditto.
4180 (avr_saved_pc_after_call): Ditto.
4181 (avr_push_return_address): Ditto.
4182 (avr_frame_chain): Ditto.
4183 (avr_store_struct_return): Ditto.
4184 (avr_push_arguments): Ditto.
4185 (avr_scan_prologue): Update comments. Changed to set up the info for
4186 cache unwinding. Now returns end of prologue PC.
4187 (avr_skip_prologue): Better handling of functions lacking a prologue
4188 by using avr_scan_prologue.
4189 (avr_scan_arg_moves): New function.
4190 (avr_saved_regs_unwinder): Ditto.
4191 (avr_frame_unwind_cache): Ditto.
4192 (avr_unwind_pc): Ditto.
4193 (avr_frame_this_id): Ditto.
4194 (avr_frame_prev_register): Ditto.
4195 (avr_frame_p): Ditto.
4196 (avr_frame_base_address ): Ditto.
4197 (avr_unwind_dummy_id): Ditto.
4198 (avr_push_dummy_code): Ditto.
4199 (push_stack_item): Ditto.
4200 (pop_stack_item): Ditto.
4201 (avr_push_dummy_call): Ditto.
4202 (struct stack_item): Define.
4203 (avr_frame_unwind): Declare structure.
4204 (avr_frame_base): Ditto.
4205 (avr_gdbarch_init): Remove calls to
4206 set_gdbarch_deprecated_init_frame_pc,
4207 set_gdbarch_deprecated_target_read_fp,
4208 set_gdbarch_deprecated_dummy_write_sp,
4209 set_gdbarch_deprecated_fp_regnum,
4210 set_gdbarch_deprecated_push_arguments,
4211 set_gdbarch_deprecated_push_return_address,
4212 set_gdbarch_deprecated_pop_frame,
4213 set_gdbarch_deprecated_store_struct_return,
4214 set_gdbarch_deprecated_frame_init_saved_regs,
4215 set_gdbarch_deprecated_init_extra_frame_info,
4216 set_gdbarch_deprecated_frame_chain,
4217 set_gdbarch_deprecated_frame_saved_pc,
4218 set_gdbarch_deprecated_saved_pc_after_call.
4219 Add calls to set_gdbarch_push_dummy_call,
4220 set_gdbarch_push_dummy_code,
4221 frame_unwind_append_predicate,
4222 frame_base_set_default,
4223 set_gdbarch_unwind_dummy_id,
4224 set_gdbarch_unwind_pc.
4227 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4229 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4230 registers for H8/300S.
4231 (h8300_print_registers_info): Ditto.
4232 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4234 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4236 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4237 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4238 (lin_lwp_wait): Likewise. Update comments.
4239 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4240 (pull_pid_from_list, linux_record_stopped_pid): New.
4242 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4244 * ada-lang.c (scan_discrim_bound): Name first argument.
4245 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4246 declared by ALL_BLOCK_SYMBOLS.
4248 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4250 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4251 ("regcache.h"): Include it.
4252 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4254 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4256 * NEWS: Mention gdbserver detach change and "disconnect" command.
4257 * infcmd.c (disconnect_command): New function.
4258 (_initialize_infcmd): Add ``disconnect'' command.
4259 * remote.c (remote_async_detach): Delete.
4260 (remote_detach): Merge remote_async_detach.
4261 (remote_disconnect): New.
4262 (init_remote_ops): Set to_disconnect.
4263 (init_remote_cisco_ops): Likewise.
4264 (init_remote_async_ops): Likewise. Use remote_detach.
4265 * target.c (cleanup_target): Default to_disconnect.
4266 (update_current_target): Inherit to_disconnect.
4267 (target_disconnect, debug_to_disconnect): New functions.
4268 (setup_target_debug): Set to_disconnect.
4269 * target.h (struct target_ops): Add to_disconnect.
4270 (target_disconnect): Add prototype.
4272 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4274 * breakpoint.c (insert_catchpoint): New function.
4275 (insert_breakpoints): Use catch_exceptions to call
4276 insert_catchpoint. Disable catchpoints if they fail to insert.
4278 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4280 * symfile.c (reread_symbols): Clear sym_private.
4282 2003-06-17 Andrew Cagney <cagney@redhat.com>
4284 * trad-frame.h (struct frame_info): Add opaque declaration.
4285 * remote-fileio.h (struct cmd_list_element): Add opaque
4287 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4290 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4292 * remote.c (remote_prepare_to_store): Replace call to
4293 deprecated_read_register_bytes with multiple regcache_raw_read
4296 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4298 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4299 (nto_find_and_open_solib): Likewise.
4300 (nto_init_solib_absolute_prefix): Likewise.
4301 (_initialize_nto_tdep): Fix indentation.
4303 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4305 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4307 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4309 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4311 2003-06-17 Jim Blandy <jimb@redhat.com>
4313 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4315 2003-06-16 Theodore A. Roth <troth@openavr.org>
4317 * avr-tdep.c (avr_extract_return_value): New function.
4318 (avr_gdbarch_init): Set extract_return_value method.
4320 2003-06-16 Andrew Cagney <cagney@redhat.com>
4322 * frame.h (deprecated_get_next_frame_hack): Declare.
4323 * frame.c (legacy_saved_regs_prev_register): Only require
4324 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4325 there are always saved regs.
4326 (deprecated_generic_get_saved_register): Do not require
4327 DEPRECATED_FRAME_INIT_SAVED_REGS.
4328 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4329 use frame ID unwind instead.
4330 (deprecated_get_next_frame_hack): New function.
4332 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4334 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4335 (h8300_push_dummy_call): ...this function. Some minor optimization.
4336 (h8300_push_return_address): Remove.
4337 (h8300_gdbarch_init): Remove calls to
4338 set_gdbarch_deprecated_dummy_write_sp,
4339 set_gdbarch_deprecated_push_arguments and
4340 set_gdbarch_deprecated_push_return_address.
4341 Add call to set_gdbarch_push_dummy_call.
4343 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4345 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4346 (E_PSEUDO_EXR_REGNUM): Ditto.
4347 (h8300_is_argument_spill): Check for instructions moving argument
4348 registers into safe registers.
4349 (h8300_skip_prologue): Check for stm instruction to push registers
4350 used for register variables onto stack.
4351 (gdb_print_insn_h8300): Remove.
4352 (h8300_examine_prologue): Add a comment.
4353 (h8300_register_name): Take pseudo registers into account.
4354 (h8300s_register_name): Ditto.
4355 (h8300sx_register_name): Ditto.
4356 (h8300_print_register): Ditto.
4357 (h8300_print_registers_info): Define "nice" printing order.
4358 (h8300_saved_pc_after_call): Take pseudo registers into account.
4359 (h8300_register_type): Ditto. Return type used for remote connection
4360 when requesting real CCR or EXR register, return actual type when
4361 requesting pseudo CCR or EXR.
4362 (h8300_pseudo_register_read): New function.
4363 (h8300_pseudo_register_write): Ditto.
4364 (h8300_dbg_reg_to_regnum): Ditto.
4365 (h8300s_dbg_reg_to_regnum): Ditto.
4366 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4367 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4368 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4369 set_gdbarch_print_insn architecture dependent.
4370 Call set_gdbarch_pseudo_register_read and
4371 set_gdbarch_pseudo_register_write.
4372 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4374 2003-06-16 Andrew Cagney <cagney@redhat.com>
4376 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4377 * gdbarch.h, gdbarch.c: Re-generate.
4378 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4379 * s390-tdep.c (s390_gdbarch_init): Update.
4380 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4381 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4382 * mips-tdep.c (mips_gdbarch_init): Update.
4383 * mcore-tdep.c (mcore_gdbarch_init): Update.
4384 * cris-tdep.c (cris_gdbarch_init): Update.
4385 * infcall.c (call_function_by_hand): Update.
4386 * ia64-tdep.c (ia64_push_arguments): Update comment.
4387 * frame.c (legacy_get_prev_frame): Do not assume
4388 SAVE_DUMMY_FRAME_TOS_P.
4389 * dummy-frame.c (find_dummy_frame): Update comment.
4391 2003-06-16 Andrew Cagney <cagney@redhat.com>
4393 * regcache.c (do_cooked_read): Do not use register_valid_p.
4395 2003-06-15 Theodore A. Roth <troth@openavr.org>
4397 * avr-tdep.c (avr_register_type): Remove a blank line.
4398 (avr_scan_prologue): Correct some comments.
4400 2003-06-15 Theodore A. Roth <troth@openavr.org>
4402 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4404 Properly scan prologues generated by gcc with the -mcall-prologues
4406 Add code to scan -mcall-prologues for mega devices.
4408 2003-06-15 Theodore A. Roth <troth@openavr.org>
4410 * avr-tdep.c (avr_register_byte): Delete function.
4411 (avr_register_raw_size): Delete function.
4412 (avr_register_virtual_size): Delete function.
4413 (avr_register_virtual_type): Delete function.
4414 (avr_register_type): New function.
4415 (avr_address_to_pointer): Remove unused code.
4416 (avr_read_fp): Need to read FP as two separate bytes due to change to
4417 avr_register_type() usage.
4418 (avr_gdbarch_init): Don't set deprecated_register_size.
4419 Don't set deprecated_register_bytes.
4420 Don't set deprecated_register_byte.
4421 Don't set deprecated_register_raw_size.
4422 Don't set deprecated_max_register_raw_size.
4423 Don't set deprecated_register_virtual_size.
4424 Don't set deprecated_max_register_virtual_size.
4425 Don't set deprecated_register_virtual_type.
4426 Set register_type method.
4428 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4430 * Makefile.in (linux-nat.o): Add rule.
4431 * linux-nat.c: New file.
4432 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4433 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4434 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4435 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4436 * config/arm/linux.mh (NATDEPFILES): Likewise.
4437 * config/i386/linux.mh (NATDEPFILES): Likewise.
4438 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4439 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4440 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4441 * config/mips/linux.mh (NATDEPFILES): Likewise.
4442 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4443 * config/s390/s390.mh (NATDEPFILES): Likewise.
4444 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4446 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4448 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4449 replace out-of-date comment.
4451 2003-06-15 Andrew Cagney <cagney@redhat.com>
4453 * rdi-share/host.h (Fail): Change to a varargs function.
4454 * remote-rdi.c (Fail): Update.
4456 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4458 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4459 (i386_convert_register_p, i386_register_to_value,
4460 i386_register_from_value): Handle types longer than 8 bytes.
4462 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4464 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4465 Move floating-point code to new function in i387-tdep.c.
4466 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4467 New functions containing code moved here from i386-tdep.c.
4468 * i387-tdep.h: Add opaque declaration for `struct type'.
4469 (i387_register_to_value, i387_value_to_register): New prototypes.
4470 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4471 (x86_64_init_abi): Set convert_register_p, register_to_value and
4472 value_to_register here.
4474 2003-06-14 Andrew Cagney <cagney@redhat.com>
4476 * mips-tdep.c (mips_register_to_value): Make static.
4477 (mips_value_to_register): Make static.
4478 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4479 * ia64-tdep.c (ia64_register_raw_size): Make static.
4480 (ia64_register_virtual_size): Make static.
4481 (ia64_register_byte): Make static.
4482 * i387-tdep.c: Include "i387-tdep.h".
4483 (print_387_control_word): Delete function.
4484 (print_387_status_word): Delete function.
4485 (print_387_status_bits): Delete function.
4486 (print_387_control_bits): Delete function.
4487 * Makefile.in (i387-tdep.o): Update dependencies.
4488 * rdi-share/host.h (Fail): Declare.
4489 * remote-rdi.c (Fail): Update to match declaration.
4491 2003-06-14 Andrew Cagney <cagney@redhat.com>
4493 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4494 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4495 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4496 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4497 * README: Delete reference to remote-array.
4498 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4499 (remote-array.o): Delete target.
4500 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4501 * remote-array.c: Delete file.
4503 2003-06-14 Andrew Cagney <cagney@redhat.com>
4504 Mark Kettenis <kettenis@gnu.org>
4506 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4507 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4508 parameter with "frame".
4509 * gdbarch.h, gdbarch.c: Re-generate.
4510 * frame.h (put_frame_register): Declare.
4511 * frame.c (put_frame_register): New function.
4512 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4513 (legacy_register_to_value): Rewrite, use "frame" to get the
4515 (legacy_value_to_register): Rewrite, use "frame" to find the
4516 register's location before storing.
4517 * arch-utils.h (legacy_convert_register_p): Update.
4518 (legacy_register_to_value, legacy_value_to_register): Update.
4519 * findvar.c (value_from_register): Rewrite, eliminate use of
4520 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4521 "frame" to REGISTER_TO_VALUE.
4522 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4523 lval_reg_frame_relative + lval_register branch of the switch. Do
4524 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4525 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4526 I386_EDI_REGNUM): New defines.
4527 (i386_next_regnum, i386_convert_register_p,
4528 i386_register_to_value, i386_value_to_register): New functions.
4529 (i386_register_convertible, i386_register_convert_to_virtual,
4530 i386_convert_to_raw): Remove functions.
4531 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4532 value_to_register instead of register_convertible,
4533 register_convert_to_virtual and register_convert_to_raw.
4534 * mips-tdep.c (mips_convert_register_p): New function.
4535 (mips_value_to_register): Replace mips_register_convert_from_type.
4536 (mips_register_to_value): Replace mips_register_convert_to_type.
4537 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4539 * alpha-tdep.c (alpha_convert_register_p): Update.
4540 (alpha_value_to_register): Update, store the register.
4541 (alpha_register_to_value): Update, fetch the register.
4543 2003-06-14 Theodore A. Roth <troth@openavr.org>
4545 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4546 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4547 Don't set deprecated_call_dummy_words.
4548 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4549 Don't set remote_translate_xfer_address.
4550 (avr_io_reg_read_command): Remove commented out debug printf.
4553 2003-06-14 Theodore A. Roth <troth@openavr.org>
4555 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4556 causes gdb to seg fault.
4558 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4560 * sparc-nat.c (fetch_inferior_registers): Correct
4561 a reference to "registers".
4563 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4565 * Makefile.in (exc_request_U_h): Define
4566 (exc_request_S_h): Likewise.
4567 (msg_reply_S_h): Likewise.
4568 (msg_U_h): Likewise.
4569 (notify_S_h): Likewise.
4570 (process_reply_S_h): Likewise.
4571 (gnu-nat.o): Depend on gdb_obstack_h
4572 * gnu-nat.c: Include "gdb_obstack.h".
4574 2003-06-13 Andrew Cagney <cagney@redhat.com>
4576 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4577 * gdbarch.h, gdbarch.c: Re-generate.
4579 2003-06-13 Andrew Cagney <cagney@redhat.com>
4581 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4582 when deprecated REGISTER macros can be deleted.
4583 * gdbarch.h, gdbarch.c: Re-generate.
4585 2003-06-13 Jim Blandy <jimb@redhat.com>
4587 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4588 Linux entry point symbols for _dl_debug_state, too.
4590 2003-06-13 Andrew Cagney <cagney@redhat.com>
4592 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4593 available, do not use the FP register, and always save the TOS.
4594 * dummy-frame.c (dummy_frame_this_id): Do not assert
4595 SAVE_DUMMY_FRAME_TOS.
4596 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4597 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4598 (i386_push_dummy_call): Add 8 to the returned SP.
4599 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4600 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4601 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4602 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4603 (x86_64_push_dummy_call): Return "sp + 16".
4604 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4605 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4606 save_dummy_frame_tos.
4608 2003-06-13 Jim Blandy <jimb@redhat.com>
4610 * frv-tdep.c (frv_use_struct_convention): Delete static
4611 declaration for function deleted in my change of 2003-06-12.
4613 2003-06-13 Theodore A. Roth <troth@openavr.org>
4615 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4616 (avr_pointer_to_address): Shift code addrs left 1 bit.
4617 (avr_convert_from_func_ptr_addr): Delete function since operation is
4618 better handled by avr_address_to_pointer and avr_pointer_to_address.
4619 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4621 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4623 From Kelley Cook <kelleycook@wideopenwest.com>:
4624 * configure.host: Accept i[34567]86 variants.
4625 * configure.tgt: Likewise.
4626 * nlm/configure.in: Likewise.
4627 * nlm/configure: Regenerated.
4629 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4631 * arm-tdep.c (solib-svr4.h): Dont' include it.
4632 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4633 * arm-linux-tdep.c: ... here. Make static.
4634 (arm_linux_init_abi): Register it.
4635 (solib-svr4.h): Include it.
4636 * Makefile.in: Update dependencies.
4637 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4638 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4640 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4642 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4643 indicate registers used for return values.
4644 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4645 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4647 (h8300_init_extra_frame_info): Ditto.
4648 (h8300_frame_locals_address): Removed.
4649 (h8300_frame_args_address): Removed.
4650 (h8300_extract_return_value): Use new regcache structure. Only care
4652 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4653 (h8300_store_return_value): Use new regcache structure. Only care
4655 (h8300h_store_return_value): Same function for 32 bit CPUs.
4656 (h8300_store_struct_return): Removed.
4657 (h8300_extract_struct_value_address): Use new regcache structure.
4658 (h8300h_extract_struct_value_address): Removed.
4659 (h8300_push_dummy_code): New function.
4660 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4661 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4662 set_gdbarch_store_return_value architecture dependent.
4663 Call set_gdbarch_push_dummy_code and
4664 set_gdbarch_extract_struct_value_address.
4665 Remove calls to set_gdbarch_frame_args_address,
4666 set_gdbarch_frame_locals_address,
4667 set_gdbarch_deprecated_store_struct_return,
4668 set_gdbarch_deprecated_extract_return_value,
4669 set_gdbarch_deprecated_extract_struct_value_address,
4670 set_gdbarch_deprecated_call_dummy_words and
4671 set_gdbarch_deprecated_sizeof_call_dummy_words.
4673 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4675 * h8300-tdep.c (h8300_register_byte): Remove.
4676 (h8300h_register_byte): Remove.
4677 (h8300_register_virtual_type): Remove. Substitute by...
4678 (h8300_register_type): New function.
4679 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4680 (h8300h_extract_struct_value_address): Ditto.
4681 (h8300_gdbarch_init): Drop calls to
4682 set_gdbarch_deprecated_register_byte and
4683 set_gdbarch_deprecated_register_virtual_type.
4684 Add call to set_gdbarch_register_type.
4686 2003-06-13 Andrew Cagney <cagney@redhat.com>
4688 * gdbarch.sh: Update comments on registers.
4689 (deprecated_register_byte): Rename register_byte.
4690 (deprecated_register_raw_size): Rename register_raw_size.
4691 (deprecated_register_virtual_size): Rename register_virtual_size.
4692 (deprecated_register_virtual_type): Rename register_virtual_type.
4693 * gdbarch.h, gdbarch.c: Re-generate.
4694 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4695 * vax-tdep.c (vax_gdbarch_init): Update.
4696 * v850-tdep.c (v850_gdbarch_init): Update.
4697 * sparc-tdep.c (sparc_gdbarch_init): Update.
4698 * sh-tdep.c (sh_gdbarch_init): Update.
4699 * s390-tdep.c (s390_gdbarch_init): Update.
4700 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4701 * ns32k-tdep.c: Update.
4702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4703 * mips-tdep.c (mips_gdbarch_init): Update.
4704 * mcore-tdep.c (mcore_gdbarch_init): Update.
4705 * m68k-tdep.c (m68k_gdbarch_init): Update.
4706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4707 * ia64-tdep.c (ia64_gdbarch_init): Update.
4708 * hppa-tdep.c (hppa_gdbarch_init): Update.
4709 * h8300-tdep.c (h8300_gdbarch_init): Update.
4710 * frv-tdep.c (frv_gdbarch_init): Update.
4711 * cris-tdep.c (cris_gdbarch_init): Update.
4712 * avr-tdep.c (avr_gdbarch_init): Update.
4713 * alpha-tdep.c (alpha_gdbarch_init): Update.
4714 * arm-tdep.c (arm_gdbarch_init): Update.
4716 2003-06-13 Andrew Cagney <cagney@redhat.com>
4718 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4719 mips_o32_use_struct_convention with always_use_struct_convention.
4721 2003-06-12 David Carlton <carlton@kealia.com>
4723 * cp-namespace.c (cp_set_block_scope): Comment out
4724 processing_has_namespace_info branch.
4726 2003-06-12 Jim Blandy <jimb@redhat.com>
4728 Recognize and skip 64-bit PowerPC Linux linkage functions.
4729 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4730 insn_pattern, insns_match_pattern, d_field, ds_field): New
4731 functions, macros, and types for working with PPC instructions.
4732 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4733 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4734 ppc64_skip_trampoline_code): New functions, variables, and macros
4735 for recognizing and skipping linkage functions.
4736 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4737 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4739 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4740 register offsets for both the 32- and 64-bit interfaces.
4742 Actually finish the job started by my change of 2003-05-29.
4743 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4744 other #definition of this.
4745 (ppc_linux_skip_trampoline_code): Remove declaration.
4746 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4748 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4751 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4752 'long' on ppc64-*-linux*.
4754 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4755 isn't #defined, assume the register doesn't exist: act as if
4756 tdep->ppc_mq_regnum were -1.
4758 * configure.host, configure.tgt: Add entries for
4759 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4761 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4764 * arch-utils.c (always_use_struct_convention): New function.
4765 * arch-utils.h (always_use_struct_convention): New prototype.
4766 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4767 (alpha_gdbarch_init): Register always_use_struct_convention,
4768 instead of alpha_use_struct_convention.
4769 * cris-tdep.c (cris_use_struct_convention): Delete.
4770 (cris_gdbarch_init): Register always_use_struct_convention,
4771 instead of cris_use_struct_convention.
4772 * frv-tdep.c (frv_use_struct_convention): Delete.
4773 (frv_gdbarch_init): Register always_use_struct_convention,
4774 instead of frv_use_struct_convention.
4775 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4776 (h8300_gdbarch_init): Register always_use_struct_convention,
4777 instead of h8300_use_struct_convention.
4778 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4779 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4780 instead of mips_o32_use_struct_convention.
4782 2003-06-12 Andrew Cagney <cagney@redhat.com>
4784 * wince.c: Include "mips-tdep.h".
4785 * mips-tdep.h (mips_next_pc): Declare.
4786 * mcore-tdep.c: Make more local functions static.
4787 * Makefile.in (wince.o): Update dependencies.
4789 2003-06-12 David Carlton <carlton@kealia.com>
4791 * symtab.c (lookup_symbol_aux_minsyms): Replace
4792 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4793 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4794 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4795 SYMBOL_NATURAL_NAME.
4797 2003-06-12 Andreas Schwab <schwab@suse.de>
4799 * Makefile.in (tuiDisassem.o): Update dependencies.
4801 2003-06-12 David Carlton <carlton@bactrian.org>
4803 * symtab.h: Delete declaration of make_symbol_overload_list.
4804 Add declaration of lookup_partial_symbol.
4805 * symtab.c (remove_params): Move to cp-support.c.
4806 (overload_list_add_symbol, make_symbol_overload_list)
4807 (sym_return_val_size, sym_return_val_index): Ditto.
4808 (lookup_partial_symbol): Make extern.
4809 * cp-support.h: Add declaration of make_symbol_overload_list.
4810 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4811 symtab.h, and block.h.
4812 (remove_params): Move here from symtab.c.
4813 (overload_list_add_symbol, make_symbol_overload_list)
4814 (sym_return_val_size, sym_return_val_index): Ditto.
4815 * valops.c: Include cp-support.h.
4816 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4817 frame_h, and block_h.
4818 (valops.o): Depend on cp_support_h.
4820 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4822 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4823 substitute by NUM_REGS throughout.
4824 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4825 (h8300s_register_name): New function for H8S registers.
4826 (h8300sx_register_name): Ditto for H8SX registers.
4827 (h8300_print_register): Revise register printing, avoid depending
4829 (h8300_register_byte): Only care for H8/300 registers.
4830 (h8300h_register_byte): New function for any other architecture.
4831 (h8300_register_raw_size): Remove.
4832 (h8300_register_virtual_type): Revise to return actually useful
4834 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4835 (h8300h_extract_struct_value_address): New function for any other
4837 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4838 set_gdbarch_register_name, set_gdbarch_register_byte,
4839 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4840 Remove calls to set_gdbarch_deprecated_register_size,
4841 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4842 set_gdbarch_deprecated_max_register_raw_size,
4843 set_gdbarch_register_virtual_size and
4844 set_gdbarch_deprecated_max_register_virtual_size entirely.
4845 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4846 set_gdbarch_long_double_bit.
4848 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4850 * doublest.c (convert_doublest_to_floatformat): When dealing
4851 with the implied integer bit, only alter mant_bits if we are
4852 processing a full 32 bits of mantissa.
4854 2003-06-11 David Carlton <carlton@bactrian.org>
4856 * dictionary.h: New.
4857 * dictionary.c: New.
4858 * block.h: Add opaque declaration for struct dictionary.
4859 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4861 (BLOCK_DICT): New macro.
4862 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4863 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4865 (ALL_BLOCK_SYMBOLS): Update definition.
4866 * Makefile.in (SFILES): Add dictionary.c.
4867 (dictionary_h): New.
4868 (COMMON_OBS): Add dictionary.o.
4869 (dictionary.o): New.
4870 (ada-lang.o): Depend on dictionary_h.
4871 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4872 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4873 (mi-cmd-stack.o): Ditto.
4874 (gdbtk-cmds.o): Update dependencies.
4875 (gdbtk-stack.o): Ditto.
4876 * ada-lang.c: Include dictionary.h.
4877 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4878 (fill_in_ada_prototype, debug_print_block): Ditto.
4879 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4880 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4882 * mdebugread.c: Include dictionary.h.
4883 (struct parse_stack): Delete 'maxsyms' member.
4884 (parse_symbol): Update calls to new_block. Delete calls to
4885 shrink_block. Use dictionary methods.
4886 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4887 Update calls to new_symtab. Don't maintain maxsyms data.
4888 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4889 (add_symbol): Just call dict_add_symbol.
4890 (new_symtab): Delete 'maxsyms' argument.
4891 (new_symtab): Update calls to new_block.
4892 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4893 (shrink_block): Delete function.
4894 (fixup_sigtramp): Update call to new_block. Add symbol via
4896 * jv-lang.c: Include dictionary.h.
4897 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4898 appropriately. Set class_symtab->free_func. Make sure the
4899 blockvector is big enough to hold two blocks.
4900 (add_class_symtab_symbol): Use dictionary methods.
4901 (free_class_block): New function.
4902 (type_from_class): Replace explicit iteration by
4904 * symtab.h (struct symtab): Replace 'free_ptr' method by
4906 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4908 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4910 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4911 Include dictionary.h.
4912 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4913 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4915 * objfiles.c: Include dictionary.h.
4916 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4917 * buildsym.c: Include dictionary.h.
4918 (finish_block): Use dictionary methods.
4919 (end_symtab): Set free_func to NULL, not free_ptr.
4920 * tracepoint.c: Include dictionary.h.
4921 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4922 (scope_info): Ditto.
4923 * stack.c: Include dictionary.h.
4924 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4925 (print_block_frame_labels, print_frame_arg_vars)
4926 (print_frame_args): Ditto.
4927 * symmisc.c (free_symtab_block): Use dictionary methods.
4928 (dump_symtab): Ditto.
4929 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4930 Include dictionary.h.
4931 * symfile.h: Delete declarations of sort_block_syms,
4933 * symfile.c (sort_block_syms): Delete.
4934 (sort_symtab_syms): Delete.
4935 * symtab.c: Include dictionary.h.
4936 (lookup_block_symbol): Use dictionary iterators.
4937 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4938 (search_symbols, make_symbol_completion_list): Ditto.
4939 (make_symbol_overload_list): Ditto.
4940 * valops.c (value_of_local): Use dict_empty.
4941 Include dictionary.h.
4943 2003-06-11 J. Brobecker <brobecker@gnat.com>
4945 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4947 2003-06-11 David Carlton <carlton@bactrian.org>
4949 * block.h (BLOCK_SHOULD_SORT): Delete.
4950 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4952 * ada-lang.c (ada_add_block_symbols): Ditto.
4953 * symfile.c (sort_block_syms): Delete.
4954 (sort_symtab_syms): Ditto.
4955 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4957 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4958 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4959 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4960 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4961 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4962 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4963 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4965 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4967 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4970 2003-06-11 Andrew Cagney <cagney@redhat.com>
4972 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4973 REGISTER_CONVERTIBLE.
4974 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4975 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4976 * gdbarch.h, gdbarch.c: Re-generate.
4977 * arch-utils.h (deprecated_register_convertible_not): Rename
4978 generic_register_convertible_not.
4979 * arch-utils.c (deprecated_register_convertible_not): Rename
4980 generic_register_convertible.
4981 (legacy_convert_register_p, legacy_register_to_value): Update.
4982 * sh-tdep.c (sh64_push_arguments): Update.
4983 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4984 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4985 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4986 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4987 * arch-utils.c (legacy_value_to_register): Update.
4988 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4989 (rs6000_register_convert_to_raw): Make parameter "from" const.
4990 * mips-tdep.c (mips_gdbarch_init): Update.
4991 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4992 * infcmd.c (default_print_registers_info): Update.
4993 * ia64-tdep.c (ia64_gdbarch_init): Update.
4994 (ia64_register_convert_to_raw): Make parameter "from" const.
4995 * i386-tdep.c (i386_gdbarch_init): Update.
4996 (i386_register_convert_to_raw): Update.
4998 2003-06-11 Andrew Cagney <cagney@redhat.com>
5000 * remote-fileio.c: Include "remote-fileio.h".
5001 * Makefile.in (remote-fileio.o): Update dependencies.
5002 (remote_fileio_h): Fix typo.
5004 2003-06-11 Andrew Cagney <cagney@redhat.com>
5006 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5007 (xstormy16_save_dummy_frame_tos): Make static.
5008 (_initialize_xstormy16_tdep): Add declaration.
5009 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5010 * v850-tdep.c: Make local functions static.
5011 (_initialize_v850_tdep): Add declaration.
5012 * sparc-tdep.c: Make local functions static.
5013 (_initialize_sparc_tdep): Add declaration.
5014 * sh-tdep.c: Make local functions static.
5015 (_initialize_sh_tdep): Add declaration.
5016 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5017 * s390-tdep.c: Make local functions static.
5018 (_initialize_s390_tdep): Add declaration.
5019 * dbxread.c (find_stab_function_addr): Make static.
5020 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5021 * ocd.c (_initialize_remote_ocd): Add declaration.
5022 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5023 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5024 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5025 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5026 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5027 * remote-array.c (_initialize_array): Add declaration.
5028 (_initialize_remote_monitors): Add declaration.
5029 * remote-mips.c: Make local functions static.
5030 (_initialize_remote_mips): Add declaration.
5031 * mcore-tdep.c: Make all local functions static.
5032 (_initialize_mcore_tdep): Add declaration.
5033 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5034 * abug-rom.c (_initialize_abug_rom): Add declaration.
5035 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5036 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5037 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5038 * remote-est.c (_initialize_est): Add declaration.
5039 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5040 (m68hc11_call_dummy_address): Make static.
5041 * ia64-tdep.c: Make local functions static.
5042 (_initialize_ia64_tdep): Add declaration.
5043 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5044 * monitor.c (monitor_wait_filter): Make static.
5045 (_initialize_remote_monitors): Add declaration.
5046 * remote-hms.c (_initialize_remote_hms): Add declaration.
5047 * remote-e7000.c (fetch_regs_from_dump): Make static.
5048 (expect_n): Make static.
5049 (_initialize_remote_e7000): Add declaration.
5050 * ser-e7kpc.c: Always include "defs.h".
5051 (_initialize_ser_e7000pc): Add declaration.
5052 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5053 * cris-tdep.c: Make all but one function static.
5054 (_initialize_cris_tdep): Add declaration.
5055 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5056 * solib.c (update_solib_list): Make static.
5057 (_initialize_solib): Add declaration.
5058 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5059 (_initialize_avr_tdep): Add declaration.
5060 * remote-rdi.c (voiddummy): Make static.
5061 (_initialize_remote_rdi): Add declaration.
5062 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5063 * remote-rdp.c (send_rdp): Make static.
5064 (_initialize_remote_rdp): Add declaration.
5065 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5067 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5069 * remote-fileio.c: Make ari happy.
5071 2003-06-10 J. Brobecker <brobecker@gnat.com>
5073 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5074 fetching the trailing bytes of the buffer we are about to write.
5076 2003-06-10 Andrew Cagney <cagney@redhat.com>
5078 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5079 * Makefile.in (remote-fileio.o): Update dependencies.
5080 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5081 include <setjmp.h>, or <sys/types.h> conditional on USG.
5082 (remote_fio_jmp_buf): Delete global variable.
5084 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5085 Martin M. Hunt <hunt@redhat.com>
5087 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5088 (SFILES): Add remote-fileio.c.
5089 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5090 dependencies for building remote.o.
5091 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5092 * remote-fileio.h: New header file defining remote File-I/O interface.
5093 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5094 static storage class.
5095 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5097 (_initialize_remote): Call initialize_remote_fileio().
5098 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5099 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5100 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5101 (captured_main): Initialize new ui_files.
5102 * ui-file.c: Add read and fgets input functions.
5103 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5104 (null_file_read): New function.
5105 (ui_file_read): New function.
5106 (set_ui_file_read): New function.
5107 (stdio_file_read): New function.
5108 * ui-file.h: New type ui_file_read_ftype.
5109 (set_ui_file_read): Declare.
5110 (ui_file_read): Declare.
5112 2003-06-09 Andrew Cagney <cagney@redhat.com>
5114 * frame.h (deprecated_unwind_get_saved_register): Rename
5115 generic_unwind_get_saved_register, update comments.
5116 * mips-tdep.c (mips_get_saved_register): Update.
5117 * frame.c (deprecated_unwind_get_saved_register): Update.
5119 2003-06-09 Andrew Cagney <cagney@redhat.com>
5121 * vax-tdep.c (vax_frame_locals_address): Delete function.
5122 (vax_gdbarch_init): Do not set frame_locals_address.
5123 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5124 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5125 * s390-tdep.c (s390_frame_args_address): Delete function.
5126 (s390_gdbarch_init): Do not set frame_args_address or
5127 frame_locals_address.
5128 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5129 (ns32k_gdbarch_init): Do not set frame_locals_address.
5130 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5131 (hppa_frame_locals_address): Delete function.
5132 (hppa_gdbarch_init): Do not set frame_args_address, or
5133 frame_locals_address.
5134 * arm-tdep.c (arm_frame_args_address): Delete.
5135 (arm_frame_locals_address): Delete.
5136 (arm_gdbarch_init): Do not set frame_args_address, or
5137 frame_locals_address.
5139 2003-06-09 Andrew Cagney <cagney@redhat.com>
5141 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5142 * gdbarch.h, gdbarch.c: Re-generate.
5143 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5144 * arch-utils.c (frame_num_args_unknown): Delete function.
5145 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5146 (frame_info): Use FRAME_NUM_ARGS_P.
5147 * arm-tdep.c (arm_frame_num_args): Delete function.
5148 (arm_gdbarch_init): Do not set frame_num_args.
5149 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5150 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5151 (hppa_gdbarch_init): Do not set frame_num_args.
5152 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5154 frame_num_args to default frame_num_args_unknown.
5155 * v850-tdep.c (v850_gdbarch_init): Ditto.
5156 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5157 * sh-tdep.c (sh_gdbarch_init): Ditto.
5158 * s390-tdep.c (s390_gdbarch_init): Ditto.
5159 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5160 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5161 * mips-tdep.c (mips_gdbarch_init): Ditto.
5162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5163 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5166 * i386-tdep.c (i386_gdbarch_init): Ditto.
5167 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5168 * frv-tdep.c (frv_gdbarch_init): Ditto.
5169 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5170 * cris-tdep.c (cris_gdbarch_init): Ditto.
5171 * avr-tdep.c (avr_gdbarch_init): Ditto.
5172 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5174 2003-06-09 Andrew Cagney <cagney@redhat.com>
5176 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5177 (print_frame_args): Moved to "stack.c".
5178 * stack.c: Include "gdb_assert.h".
5179 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5180 (print_frame_args): Moved from "printcmd.c".
5181 * frame.h (print_frame_args): Delete declaration.
5182 * Makefile.in (stack.o): Update dependencies.
5184 2003-06-08 Andrew Cagney <cagney@redhat.com>
5186 * frame.c (get_prev_frame): Remove reference to
5187 frame_args_address_correct in comments.
5188 * frame-base.c (default_frame_args_address): Delete code
5189 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5190 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5191 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5192 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5193 (vax_frame_args_address_correct): Delete declaration.
5195 2003-06-08 Andrew Cagney <cagney@redhat.com>
5197 * gdbarch.sh (UNWIND_SP): Add.
5198 * gdbarch.h, gdbarch.c: Re-generate.
5199 * frame.c (frame_sp_unwind): New function.
5200 (get_frame_sp): New function.
5201 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5202 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5203 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5205 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5206 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5208 2003-06-08 Andrew Cagney <cagney@redhat.com>
5210 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5213 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5214 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5215 * config/m68k/tm-sun3.h: Update.
5216 * config/m68k/tm-m68klynx.h: Update.
5217 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5219 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5220 trad_frame". Update comments.
5221 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5222 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5223 (trad_frame_register_value, trad_frame_prev_register): Update.
5225 2003-06-08 Andrew Cagney <cagney@redhat.com>
5227 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5228 from GCC's acinclude.m4.
5229 * configure.in: Check for getopt's delcaration.
5230 * aclocal.m4, config.in, configure: Re-generate.
5231 * main.c (error_init): Delete declaration.
5232 * defs.h (error_init): Declare.
5233 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5234 (rs6000_convert_from_func_ptr_addr): Make static.
5235 (_initialize_rs6000_tdep): Add declaration.
5236 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5237 (show_commands, set_verbose, show_history): Delete declaration.
5238 * top.h (set_verbose): Add declaration.
5239 (show_history, set_history, show_commands): Add declaration.
5240 (do_restore_instream_cleanup): Add declaration.
5241 * objc-lang.c (specialcmp): Make static.
5242 (print_object_command): Make static.
5243 (find_objc_msgsend): Make static.
5244 (find_objc_msgcall_submethod_helper): Make static.
5245 (find_objc_msgcall_submethod): Make static.
5246 (_initialize_objc_language): Add declaration.
5247 (find_implementation_from_class): Make static.
5248 (find_implementation): Make static.
5249 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5250 * objc-lang.h (lookup_struct_typedef): Add declaration.
5251 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5252 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5253 (do_restore_user_call_depth): Make static.
5254 (do_restore_instream_cleanup): Delete declaration.
5255 (dont_repeat): Delete declaration.
5256 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5257 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5258 * reggroups.c (_initialize_reggroup): Add declaration.
5259 * cp-support.c (_initialize_cp_support): Add declaration.
5260 * cp-abi.c (_initialize_cp_abi): Add declaration.
5261 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5262 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5263 (_initialize_gnu_v3_abi): Add declaration.
5264 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5265 (_initialize_gnu_v2_abi): Add declaration.
5266 * frame-base.c (_initialize_frame_base): Add declaration.
5267 * doublest.c (floatformat_from_length): Make static.
5268 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5269 * frame.c (create_sentinel_frame): Make static.
5270 (_initialize_frame): Add declaration.
5271 * top.c (do_catch_errors): Make static.
5272 (gdb_rl_operate_and_get_next_completion): Make static.
5273 * typeprint.c: Include "typeprint.h".
5274 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5275 (sentinel_frame_this_id): Make static.
5276 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5277 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5278 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5279 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5280 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5281 * maint.c (maintenance_print_architecture): Make static.
5282 * signals/signals.c (_initialize_signals): Add declaration.
5283 * std-regs.c (_initialize_frame_reg): Add declaration.
5284 * jv-exp.y (push_variable): ISO C definition.
5285 (push_qualified_expression_name): Ditto.
5286 * memattr.c (_initialize_mem): Add declaration.
5287 * remote.c (remote_check_watch_resources): Make static.
5288 (remote_stopped_by_watchpoint): Make static.
5289 (remote_stopped_data_address): Make static.
5290 * d10v-tdep.c (nr_dmap_regs): Make static.
5291 (a0_regnum): Make static.
5292 (d10v_frame_unwind_cache): Make static.
5293 (d10v_frame_p): Make static.
5294 * osabi.c (show_osabi): Make static.
5295 (_initialize_gdb_osabi): Add extern declaration.
5296 * gdbtypes.c (make_qualified_type): Make static.
5297 (safe_parse_type): Make static.
5298 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5299 * macrotab.c (macro_bcache_free): Make static.
5300 * interps.c (interp_set_quiet): Make static.
5301 (interpreter_exec_cmd): Make static.
5302 * stack.h (select_frame_command): New file.
5303 * stack.c: Include "stack.h".
5304 (select_frame_command_wrapper): Delete function.
5305 (select_frame_command): Make global.
5306 * infcall.c: Include "infcall.h".
5307 * linespec.c: Include "linespec.h".
5308 * symfile.c (sections_overlap): Make static.
5309 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5310 * charset.c (_initialize_charset): Add missing prototype.
5311 * regcache.c (init_legacy_regcache_descr): Make static.
5312 (do_regcache_xfree): Make static.
5313 (regcache_xfer_part): Make static.
5314 (_initialize_regcache): Add missing prototype.
5315 * breakpoint.c (parse_breakpoint_sals): Make static.
5316 (breakpoint_sals_to_pc): Make static.
5317 * interps.h (clear_interpreter_hooks): ISO C declaration.
5318 * Makefile.in (stack_h): Define.
5319 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5320 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5322 2003-06-08 Andrew Cagney <cagney@redhat.com>
5324 * Makefile.in (d10v-tdep.o): Update dependencies.
5325 (SFILES): Add trad-frame.c.
5326 (trad_frame_h): Define.
5327 (COMMON_OBS): Add trad-frame.o.
5328 (trad-frame.o): Specify dependencies.
5329 * d10v-tdep.c: Include "trad-frame.h".
5330 (saved_regs_unwinder): Delete function.
5331 (d10v_frame_prev_register): Use trad_frame_prev_register.
5332 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5333 trad_frame", delete "regs" and "prev_sp".
5334 (prologue_find_regs): Use trad-frame.
5335 * trad-frame.h, trad-frame.c: New files.
5337 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5339 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5341 2003-06-07 Adam Fedor <fedor@gnu.org>
5343 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5344 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5345 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5346 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5347 resolve_msgsend_super, resolve_msgsend_super_stret):
5350 2003-06-07 Andrew Cagney <cagney@redhat.com>
5352 * symfile.h: Re-indent, clean up comments.
5354 2003-06-07 Andrew Cagney <cagney@redhat.com>
5356 * inferior.h (deprecated_write_sp): Replace
5357 generic_target_write_sp.
5358 * regcache.c (deprecated_write_sp): Replace
5359 generic_target_write_sp.
5360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5361 * vax-tdep.c (vax_gdbarch_init): Update.
5362 * v850-tdep.c (v850_gdbarch_init): Update.
5363 * sparc-tdep.c (sparc_gdbarch_init): Update.
5364 * sh-tdep.c (sh_gdbarch_init): Update.
5365 * s390-tdep.c (s390_gdbarch_init): Update.
5366 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5367 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5368 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5369 * mcore-tdep.c (mcore_gdbarch_init): Update.
5370 * m68k-tdep.c (m68k_gdbarch_init): Update.
5371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5372 * ia64-tdep.c (ia64_gdbarch_init): Update.
5373 * h8300-tdep.c (h8300_gdbarch_init): Update.
5374 * frv-tdep.c (frv_gdbarch_init): Update.
5375 * cris-tdep.c (cris_gdbarch_init): Update.
5376 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5378 2003-06-07 Andrew Cagney <cagney@redhat.com>
5380 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5381 Assert that PC_REGNUM is valid.
5382 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5384 2003-06-07 Andrew Cagney <cagney@redhat.com>
5386 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5387 * gdbarch.h, gdbarch.c: Regenerate.
5388 * mn10300-tdep.c: Include "gdb_assert.h".
5389 (mn10300_read_fp): New function.
5390 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5391 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5392 * ia64-tdep.c: Include "gdb_assert.h".
5393 (ia64_read_fp): New function.
5394 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5395 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5396 * regcache.c (generic_target_read_sp): Delete function.
5397 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5398 * inferior.h (generic_target_read_sp): Delete declaration.
5399 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5400 generic_target_read_sp.
5401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5402 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5403 * sh-tdep.c (sh_gdbarch_init): Ditto.
5404 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5405 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5407 2003-06-07 Andrew Cagney <cagney@redhat.com>
5409 * gdbarch.sh: Comment each field of startup_gdbarch.
5410 * gdbarch.h, gdbarch.c: Re-generate.
5412 2003-06-07 Andrew Cagney <cagney@redhat.com>
5414 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5415 * gdbarch.h, gdbarch.c: Re-generate.
5416 * regcache.c: Update comments on read_pc et.al.
5417 (generic_target_read_pc): Delete function.
5418 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5419 * inferior.h (generic_target_read_pc): Delete declaration.
5420 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5421 generic_target_read_pc.
5422 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5423 * sh-tdep.c (sh_gdbarch_init): Ditto.
5424 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5427 2003-06-07 Andrew Cagney <cagney@redhat.com>
5429 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5430 "index" with "special_local_sect". Use strcmp instead of STREQ.
5431 Append period to coments.
5433 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5435 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5436 (elfstab_offset_sections): Likewise.
5437 * gdb-stabs.h (stab_section_info): Likewise.
5438 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5439 * objfiles.c (objfile_relocate): Likewise.
5440 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5441 * remote.c (get_offsets): Likewise.
5442 (remote_cisco_objfile_relocate): Likewise.
5443 * somread.c (som_symfile_offsets): Likewise.
5444 * symfile.c (alloc_section_addr_info): New function.
5445 (build_section_addr_info_from_section_tab): Use it.
5446 (free_section_addr_info): Adjust.
5447 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5448 (syms_from_objfile): Allocate local_addr dynamically.
5449 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5451 (add_symbol_file_command): Allocate sect_opts dynamically.
5452 (reread_symbols): Avoid use of SECT_OFF_MAX.
5453 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5454 (alloc_section_addr_info): Declare it.
5455 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5456 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5458 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5460 2003-06-06 Andrew Cagney <cagney@redhat.com>
5462 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5463 (d10v_frame_unwind_cache): Do not set "return_pc".
5465 2003-06-06 Michael Snyder <msnyder@redhat.com>
5467 * h8300-tdep.c: Make tidy (long lines).
5469 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5471 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5472 to regcache_collect().
5474 2003-06-05 J. Brobecker <brobecker@gnat.com>
5476 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5477 pc_in_sigtramp multiarch method.
5478 (hppa_hpux_som_init_abi): Use it.
5479 (hppa_hpux_elf_init_abi): Likewise.
5480 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5481 macro has been multiarched.
5482 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5483 macro here, as hppa64 isn't multiarched yet.
5485 2003-06-05 Andrew Cagney <cagney@redhat.com>
5487 * Makefile.in (value_h): Add $(frame_h).
5488 * value.h: Include "frame.h".
5489 (struct value): Replace "frame_addr" with "frame_id".
5490 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5491 * values.c (allocate_value): Use VALUE_FRAME_ID.
5492 (value_copy): Use VALUE_FRAME_ID.
5493 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5494 * valops.c (value_assign): Update. Use frame_find_by_id.
5496 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5498 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5501 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5503 * thread-db.c (check_event): For create/death event breakpoints,
5504 loop through all messages to ensure that we read the message
5505 corresponding to the breakpoint we are at.
5507 2003-06-04 Michael Snyder <msnyder@redhat.com>
5509 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5511 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5513 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5514 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5515 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5516 when handling .eh_frame sections.
5518 2003-06-04 J. Brobecker <brobecker@gnat.com>
5520 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5521 prepare_to_proceed procedure instead of the hppa-specific one.
5522 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5524 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5526 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5527 * config.in: Regenerated.
5528 * configure.in: Add test for syscall function and check for
5529 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5530 * configure: Regenerated.
5531 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5533 (kill_lwp): New function that uses tkill syscall or
5534 uses kill, depending on whether threading model is nptl or not.
5535 All callers of kill() changed to use kill_lwp().
5536 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5537 see if all threads have already exited in the nptl model.
5538 (stop_and_resume_callback): New callback function used by the
5539 lin_lwp_wait thread exit handling code.
5540 (stop_wait_callback): Check for threads already having exited and
5541 delete such threads fromt the lwp list when discovered.
5542 (stop_callback): Don't assert retcode of kill call.
5544 Roland McGrath <roland@redhat.com>
5545 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5548 2003-06-03 Richard Henderson <rth@redhat.com>
5550 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5551 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5552 (alpha_sigtramp_frame_prev_register): Likewise.
5553 (alpha_heuristic_frame_prev_register): Likewise.
5554 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5556 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5557 alpha-specific register id names.
5558 (alpha_mdebug_frame_unwind_cache): Likewise.
5559 (alpha_mdebug_frame_prev_register): Likewise.
5561 2003-06-03 Richard Henderson <rth@redhat.com>
5563 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5564 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5565 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5566 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5568 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5569 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5570 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5572 * alpha-linux-tdep.c: Remove unnecessary includes.
5573 * Makefile.in (alpha-linux-tdep.o): Update.
5575 2003-06-03 Richard Henderson <rth@redhat.com>
5577 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5578 (alphabsd_fill_fpreg): Likewise.
5580 2003-06-03 J. Brobecker <brobecker@gnat.com>
5582 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5583 references to struct frame_info fields by calls to the equivalent
5584 accessors. Necessary now that frame_info is opaque.
5586 2003-06-03 J. Brobecker <brobecker@gnat.com>
5588 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5589 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5590 structure, field no longer exists.
5592 2003-06-03 J. Brobecker <brobecker@gnat.com>
5594 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5595 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5597 2003-06-03 J. Brobecker <brobecker@gnat.com>
5599 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5600 references to struct frame_info fields by calls to the equivalent
5601 accessors. Necessary now that frame_info is opaque.
5603 2003-06-03 J. Brobecker <brobecker@gnat.com>
5605 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5606 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5607 structure, field no longer exists.
5609 2003-06-03 Theodore A. Roth <troth@openavr.org>
5611 * remote.c (init_remote_state): Compute sizeof_g_packet by
5612 accumulation of the size of all registers instead of blindly using
5613 DEPRECATED_REGISTER_BYTES.
5615 2003-06-03 Michael Snyder <msnyder@redhat.com>
5617 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5618 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5621 2003-06-03 J. Brobecker <brobecker@gnat.com>
5623 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5624 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5626 2003-06-03 Andrew Cagney <cagney@redhat.com>
5628 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5629 (sparc_convert_to_raw): Delete function.
5630 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5631 register_convert_to_virtual.
5633 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5635 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5636 layer if not dealing with a statically-linked threaded program.
5638 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5640 * solib.c (solib_open): Update comment to reflect actual search order.
5642 2003-06-03 Andrew Cagney <cagney@redhat.com>
5644 * frame.c (get_frame_memory_signed): New function.
5645 (get_frame_memory, get_frame_memory_unsigned): New function.
5646 (get_frame_arch): New function.
5647 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5648 (get_frame_memory, get_frame_unsigned_memory): Declare.
5649 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5650 get_frame_memory_unsigned and get_frame_arch.
5651 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5653 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5655 * MAINTAINERS (write after approval): Add myself.
5657 2003-06-03 Jim Blandy <jimb@redhat.com>
5659 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5660 elements of gregset_t are 64 bits each, but access registers
5661 are still 32 bits, so they're packed two per gregset_t
5662 element. Unpack/pack them properly.
5664 2003-06-02 David Carlton <carlton@bactrian.org>
5666 * linespec.c (find_methods): Break out code into
5667 add_matching_methods and add_constructors.
5668 (add_matching_methods): New.
5669 (add_constructors): Ditto.
5671 2003-06-02 Andrew Cagney <cagney@redhat.com>
5673 * sparc-tdep.c (sparc_print_registers): Delete call to
5674 REGISTER_CONVERTIBLE.
5675 (sparc_gdbarch_init): Do not set register_convertible.
5676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5677 * frv-tdep.c (frv_gdbarch_init): Ditto.
5678 * cris-tdep.c (cris_gdbarch_init): Ditto.
5680 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5682 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5683 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5684 (syms_from_objfile): Ditto.
5686 2003-06-03 Andreas Schwab <schwab@suse.de>
5688 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5689 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5691 2003-06-02 Richard Henderson <rth@redhat.com>
5693 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5694 a member of all_reggroup.
5696 2003-06-02 Richard Henderson <rth@redhat.com>
5698 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5699 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5700 (alpha_lds, alpha_sts): New.
5701 (alpha_convert_register_p): Change from _register_convertible.
5702 (alpha_register_to_value): Change from _convert_to_virtual;
5703 restructure and fail for type sizes other than 4 or 8.
5704 (alpha_value_to_register): Similarly.
5705 (alpha_extract_return_value): Use alpha_sts.
5706 (alpha_store_return_value): Use alpha_lds.
5707 (alpha_gdbarch_init): Update hooks.
5709 2003-06-02 Richard Henderson <rth@redhat.com>
5711 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5713 (alpha_sigtramp_register_address): Likewise.
5715 2003-06-02 Richard Henderson <rth@redhat.com>
5717 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5718 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5719 * alpha-tdep.h: Declare them.
5721 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5722 Remove zerobuf. Don't error on UNIQUE.
5723 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5724 (ALPHA_REGSET_UNIQUE): Provide default.
5725 (supply_gregset): Use alpha_supply_int_regs.
5726 (fill_gregset): Use alpha_fill_int_regs.
5727 (supply_fpregset): Use alpha_supply_fp_regs.
5728 (fill_fpregset): Use alpha_fill_fp_regs.
5729 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5730 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5731 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5732 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5733 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5734 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5736 2003-06-02 Richard Henderson <rth@redhat.com>
5738 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5740 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5741 (alpha_store_return_value): Likewise.
5743 2003-06-02 David Carlton <carlton@math.stanford.edu>
5745 * block.c (contained_in): Add 'const' to arguments.
5746 (block_function): Ditto.
5747 * block.h: Update declarations for block_function and
5750 2003-06-02 David Carlton <carlton@math.stanford.edu>
5752 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5753 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5754 * p-valprint.c (pascal_val_print): Ditto.
5755 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5757 2003-06-02 Richard Henderson <rth@redhat.com>
5759 * alpha-tdep.c (alpha_push_dummy_call): Use
5760 builtin_type_ieee_double_little instead of builtin_type_double.
5762 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5763 sign-extension of 32-bit values.
5764 (alpha_store_return_value): Similarly.
5766 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5767 (alpha_extract_return_value): Likewise.
5768 (alpha_store_return_value): Likewise.
5770 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5771 (alpha_store_return_value): Error on IEEE Quad floats.
5773 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5774 (alpha_extract_struct_value_address): Likewise.
5775 (alpha_store_return_value): Likewise.
5776 (alpha_store_struct_return): Remove.
5777 (alpha_gdbarch_init): Update hook registration to match.
5779 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5780 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5781 macros where appropriate.
5782 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5783 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5785 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5786 for SP, GP; void_func_ptr for PC; non-language-specific types
5788 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5790 2003-06-02 Richard Henderson <rth@redhat.com>
5792 * top.h (lim_at_start): Declare.
5793 * main.c (captured_main): Set it.
5794 * top.c (lim_at_start): Define.
5795 (command_loop): Use it instead of &environ.
5796 * event-top.c (command_handler): Likewise.
5798 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5800 * mipsnbsd-tdep.c: Update copyright years.
5801 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5803 2003-06-01 Richard Henderson <rth@redhat.com>
5805 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5806 (alpha-linux-tdep.o): Update dependencies.
5807 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5808 * alpha-mdebug-tdep.c: Remove unneeded includes.
5810 2003-06-01 Richard Henderson <rth@redhat.com>
5812 * alpha-tdep.c (alpha_register_reggroup_p): New.
5813 (alpha_gdbarch_init): Register it.
5815 2003-06-02 Andrew Cagney <cagney@redhat.com>
5817 * dwarfread.c: Eliminate "register"
5818 (decode_die_type): Eliminate assignment within "if".
5819 (struct_type, decode_array_element_type): Ditto.
5820 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5821 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5822 (decode_modified_type, completedieinfo): Ditto.
5823 * block.c: Eliminate "register".
5824 (blockvector_for_pc_sect): Eliminate assignment within "if".
5825 * cp-support.h (struct symbol): Opaque declaration.
5826 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5828 2003-06-01 Richard Henderson <rth@redhat.com>
5830 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5831 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5833 2003-06-01 Adam Fedor <fedor@gnu.org>
5835 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5836 * gdbarch.[ch]: Regenerate.
5837 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5838 (hppa_gdbarch_init): Set it in the gdbarch vector.
5839 * i386-tdep.c (i386_fetch_pointer_argument): New
5840 (i386_gdbarch_init): Set it into gdbarch.
5841 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5842 (rs6000_gdbarch_init): Set it in gdbarch.
5843 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5844 (sparc_gdbarch_init): Set it in gdbarch.
5846 2003-06-01 Andrew Cagney <cagney@redhat.com>
5848 * defs.h (extract_address): Delete declaration.
5849 * findvar.c (extract_address): Delete function.
5850 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5851 extract_address with the inline equivalent,
5852 extract_unsigned_integer.
5853 (xstormy16_extract_struct_value_address): Ditto.
5854 (xstormy16_pointer_to_address): Ditto.
5855 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5856 * v850-tdep.c (v850_push_arguments): Ditto.
5857 (v850_extract_return_value): Ditto.
5858 (v850_extract_struct_value_address): Ditto.
5859 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5860 (sparcnbsd_get_longjmp_target_64): Ditto.
5861 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5862 (get_longjmp_target): Ditto.
5863 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5864 (sh64_extract_struct_value_address): Ditto.
5865 (sh_push_arguments): Ditto.
5866 (sh64_push_arguments): Ditto.
5867 * remote-vxsparc.c (vx_read_register): Ditto.
5868 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5869 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5870 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5871 * mipsv4-nat.c (get_longjmp_target): Ditto.
5872 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5873 * mips-nat.c (get_longjmp_target): Ditto.
5874 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5875 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5876 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5877 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5878 * irix5-nat.c (get_longjmp_target): Ditto.
5879 * irix4-nat.c (get_longjmp_target): Ditto.
5880 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5881 (ia64_push_arguments): Ditto.
5882 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5883 * h8300-tdep.c (h8300_push_arguments): Ditto.
5884 (h8300_store_return_value): Ditto.
5885 (h8300_extract_struct_value_address): Ditto.
5886 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5887 (frv_push_arguments): Ditto.
5888 * avr-tdep.c (avr_pointer_to_address): Ditto.
5889 (avr_push_arguments): Ditto.
5890 * arm-tdep.c (arm_push_dummy_call): Ditto.
5891 (arm_get_longjmp_target): Ditto.
5892 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5893 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5894 (alpha_get_longjmp_target): Ditto.
5896 * solib-irix.c (extract_mips_address): Inline extract_address,
5897 replacing it with extract_signed_integer.
5898 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5899 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5900 (first_link_map_member, open_symbol_file_object): Ditto.
5901 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5902 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5903 (LM_NEXT, LM_NAME): Ditto.
5905 2003-06-01 Richard Henderson <rth@redhat.com>
5907 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5908 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5909 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5910 (alpha_cannot_store_register): Likewise.
5911 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5912 * alpha-nat.c (supply_gregset): Likewise.
5913 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5915 2003-06-01 Andrew Cagney <cagney@redhat.com>
5917 * infcall.c (call_function_by_hand): Update comment on
5918 DEPRECATED_DUMMY_WRITE_SP.
5920 * mips-tdep.c (mips_gdbarch_init): Do not set
5921 deprecated_dummy_write_sp.
5922 (mips_eabi_push_dummy_call): Set the SP register.
5923 (mips_o64_push_dummy_call): Set the SP register.
5924 (mips_o32_push_dummy_call): Set the SP register.
5925 (mips_n32n64_push_dummy_call): Set the SP register.
5927 2003-06-01 Richard Henderson <rth@redhat.com>
5929 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5930 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5931 (supply_gregset): Likewise.
5932 * alpha-tdep.c (alpha_store_return_value): Likewise.
5933 (alpha_get_longjmp_target): Likewise.
5934 (alpha_register_name): Constify array.
5935 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5936 deprecated_register_size, deprecated_register_bytes,
5937 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5938 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5939 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5941 2003-06-01 Richard Henderson <rth@redhat.com>
5943 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5944 from arg_reg_buffer to regcache to avoid double conversion.
5946 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5948 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5950 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5951 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5953 2003-06-01 Richard Henderson <rth@redhat.com>
5955 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5956 (decode_frame_entry): Set it. Skip FDE augmentation.
5958 2003-06-01 Richard Henderson <rth@redhat.com>
5960 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5961 not overlapping PC_REGNUM.
5963 2003-06-01 Richard Henderson <rth@redhat.com>
5965 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5966 alpha_push_arguments. Don't dump argument register data to
5967 the target stack. Fix float and 128-bit long double semantics.
5968 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5969 (alpha_fix_call_dummy): Remove.
5970 (alpha_call_dummy_words): Remove.
5971 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5973 2003-06-01 Richard Henderson <rth@redhat.com>
5975 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5977 2003-06-01 Andrew Cagney <cagney@redhat.com>
5979 * mips-tdep.c (is_mips16_addr): New function.
5980 (make_mips16_addr, unmake_mips16_addr): New functions.
5981 (pc_is_mips16, mips_fetch_instruction): Use.
5982 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5983 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5984 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5985 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5987 * config/mips/tm-mips.h: Update copyright.
5988 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5989 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5990 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5991 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5992 (TM_PRINT_INSN_MACH): Delete.
5993 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5995 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5996 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5997 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5998 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5999 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6000 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6001 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6002 mips*-*-riscos* and mips*-*-sysv* onto mips.
6003 * config/mips/mips64.mt: New file.
6004 * config/mips/mips.mt: New file.
6005 * config/mips/littlemips.mt: Delete file.
6006 * config/mips/decstation.mt: Delete file.
6007 * config/mips/vr4300el.mt: Delete file.
6008 * config/mips/vr5000el.mt: Delete file.
6009 * config/mips/vr5000.mt: Delete file.
6010 * config/mips/vr4100.mt: Delete file.
6011 * config/mips/vr4xxxel.mt: Delete file.
6012 * config/mips/vr4300.mt: Delete file.
6013 * config/mips/vr4xxx.mt: Delete file.
6014 * config/mips/bigmips.mt: Delete file.
6015 * config/mips/bigmips64.mt: Delete file.
6016 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6017 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6018 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6019 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6020 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6022 * config/mips/tm-irix3.h: Ditto.
6023 * config/mips/tm-mipsv4.h: Ditto.
6024 * config/mips/tm-embed.h: Ditto.
6025 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6027 * config/mips/tm-vr5000el.h: Delete file.
6028 * config/mips/tm-tx39l.h: Delete file.
6029 * config/mips/tm-vr4300el.h: Delete file.
6030 * config/mips/tm-vr4xxxel.h: Delete file.
6031 * config/mips/tm-vr4300.h: Delete file.
6032 * config/mips/tm-vr4100.h: Delete file.
6033 * config/mips/tm-vr4xxx.h: Delete file.
6034 * config/mips/tm-vr5000.h: Delete file.
6035 * config/mips/tm-embedl64.h: Delete file.
6036 * config/mips/tm-embedl.h: Delete file.
6037 * config/mips/tm-embed64.h: Delete file.
6038 * config/mips/tm-bigmips64.h: Delete file.
6039 * config/mips/tm-bigmips.h: Delete file.
6041 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6044 * shnbsd-nat.c: Include "sh-tdep.h".
6046 From Richard Henderson <rth@redhat.com>:
6047 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6049 2003-05-31 Andrew Cagney <cagney@redhat.com>
6051 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6052 forward declaration.
6053 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6054 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6055 (mips_find_saved_regs): Use set_reg_offset.
6056 (mips_frame_init_saved_regs): Delete function.
6057 (mips_pop_frame): Call mips_find_saved_regs instead of
6058 DEPRECATED_FRAME_INIT_SAVED_REGS.
6060 2003-05-31 Andrew Cagney <cagney@redhat.com>
6062 * mips-tdep.c (mips_gdbarch_init): Do not set
6063 deprecated_max_register_raw_size, register_virtual_size, and
6064 deprecated_max_register_virtual_size.
6066 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6068 * i386-tdep.c: Include "dwarf2-frame.h".
6069 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6070 * Makefile.in (i386-tdep.o): Update dependencies.
6072 * dwarf2-frame.c, dwarf2-frame.h: New files.
6073 * Makefile.in (SFILES): Add dwarf2-frame.c.
6074 (dwarf2_frame_h): Define.
6075 (COMMON_OBS): Add dwarf2-frame.o.
6076 (dwarf2-frame.o): Add dependencies.
6078 2003-05-31 Andreas Jaeger <aj@suse.de>
6080 * x86-64-linux-nat.c: Fix comment.
6082 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6084 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6087 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6088 have a sigcontext_addr handler.
6089 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6090 sigcontext_addr handler.
6092 2003-05-31 Andrew Cagney <cagney@redhat.com>
6094 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6095 (print_fp_register_row): Replace do_fp_register_row.
6096 (mips_print_fp_register): Add "file" and "frame" parameters.
6097 (mips_print_register): Add "file" and "frame" parameters.
6098 (mips_print_registers_info): Replace mips_do_registers_info.
6099 (mips_gdbarch_init): Set print_registers_info instead of
6100 deprecated_do_registers_info.
6101 (mips_read_fp_register_single): Add "frame" parameter.
6102 (mips_read_fp_register_double): Add "frame" parameter.
6104 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6106 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6107 Fixes a bug where GDB would print the wrong register names for
6108 targets without SSE.
6110 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6111 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6114 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6115 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6116 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6119 From Michal Ludvig <mludvig@suse.cz>:
6120 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6122 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6123 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6124 I386_ST0_REGNUM): Move here from...
6125 * i386-tdep.c: ... here.
6126 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6127 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6128 registers if possible.
6129 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6130 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6132 (i386bsd_sc_reg_offset): New variable.
6133 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6134 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6136 (i386fbsd_sc_reg_offset): New variable.
6137 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6139 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6141 (i386fbsd4_sc_reg_offset): New variable.
6142 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6143 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6145 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6146 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6147 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6149 (i386nbsd_sc_reg_offset): New variable.
6150 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6151 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6153 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6155 (i386obsd_sc_reg_offset): New variable.
6156 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6157 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6159 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6160 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6161 for frame pointer offset in `struct sigcontext'.
6163 2003-05-31 Andrew Cagney <cagney@redhat.com>
6165 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6166 architecture methods call_dummy_words, sizeof_call_dummy_words,
6167 push_return_address, store_struct_return, and fix_call_dummy. Set
6168 push_dummy_call instead of deprecated_push_arguments.
6169 (mips_store_struct_return): Delete function.
6170 (mips_fix_call_dummy): Delete function.
6171 (mips_push_return_address): Delete function.
6172 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6173 RA_REGNUM and T9_REGNUM.
6174 (mips_n32n64_push_dummy_call): Ditto for
6175 mips_n32n64_push_arguments.
6176 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6177 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6179 2003-05-31 Andrew Cagney <cagney@redhat.com>
6181 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6182 "dummy_addr" to "bp_addr".
6183 * infcall.c (call_function_by_hand): Pass "funaddr" to
6184 gdbarch_push_dummy_call.
6185 * gdbarch.h, gdbarch.c: Re-generate.
6186 * i386-tdep.c (i386_push_dummy_call): Update.
6187 * arm-tdep.c (arm_push_dummy_call): Update.
6188 * d10v-tdep.c (d10v_push_dummy_call): Update.
6190 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6192 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6193 variable declarations.
6194 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6195 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6196 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6197 x86_64_init_frame_pc, x86_64_init_frame_pc,
6198 x86_64_function_has_prologue): Remove prototypes.
6199 (X86_64_NUM_GREGS): New define.
6200 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6201 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6202 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6203 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6204 XMM1_REGNUM): Remove defines.
6205 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6206 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6207 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6208 X86_64_XMM1_REGNUM): New defines.
6209 (struct x86_64_register_info): Renamed from `struct
6210 register_info'. Remove `size' member.
6211 (x86_64_register_info_table): Remove variable.
6212 (x86_64_register_info): New variable.
6213 (X86_64_NUM_REGS): New define.
6214 (X86_64_NUM_GREGS): Remove define.
6215 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6216 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6218 (x86_54_dwarf2_reg_to_regnum): Remove function.
6219 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6220 (x86_64_dwarf_reg_to_regnum): New function.
6221 (x86_64_register_name): Rewrite.
6222 (x86_64_register_raw_size): Remove function.
6223 (x86_64_register_byte_table): Remove variable.
6224 (x86_64_register_byte): Remove function.
6225 (x86_64_register_virtual_type): Remove function.
6226 (x86_64_register_type): New function.
6227 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6228 x86_64_register_convert_to_raw): Remove functions.
6229 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6230 (x86_64_use_struct_convention): Make static. Adjust for renamed
6232 (x86_64_frame_init_saved_regs): Remove function.
6233 (x86_64_push_arguments): Make static. Change to accept a regcache
6235 (x86_64_store_return_value, x86_64_extract_return_value): Make
6236 static. Rewrite based on i386 counterparts.
6237 (x86_64_push_dummy_call): New function.
6238 (X86_64_NUM_SAVED_REGS): New define.
6239 (x86_64_register_number): Remove function.
6240 (x86_64_store_struct_return): Remove function.
6241 (x86_64_frameless_function_invocation,
6242 x86_64_function_has_prologue): Remove functions.
6243 (PROLOG_BUFSIZE): Remove define.
6244 (struct x86_64_frame_cache): New structure.
6245 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6246 x86_64_frame_cache, x86_64_frame_this_id,
6247 x86_64_frame_prev_register, x86_64_frame_p,
6248 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6249 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6251 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6253 (x86_64_skip_prologue): Rewrite in terms of
6254 x86_64_analyze_prologue.
6255 (x86_64_frame_base_address): New function.
6256 (x86_64_frame_base): New variable.
6257 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6258 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6259 set deprecated_fp_regnum, deprecated_register_size,
6260 deprecated_register_bytes, register_raw_size, register_byte,
6261 register_virtual_type, register_convertiable,
6262 register_convert_to_virtual, convert_to_raw,
6263 deprecated_get_saved_register, deprecated_target_read_fp,
6264 deprecated_push_arguments, deprecated_push_return_address,
6265 deprecated_pop_frame, deprecated_store_struct_return,
6266 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6267 frameless_function_invocation, deprecated_frame_saved_pc,
6268 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6269 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6270 deprecated_init_frame_pc and virtual_frame_pointer. Call
6271 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6272 and x86_64_frame_p. Call frame_base_set_default to register
6274 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6275 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6276 (_initialize_x86_64_tdep): Remove function.
6277 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6278 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6279 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6281 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6282 (x86_64_linux_sigcontext_addr): Rewrite.
6283 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6284 x86_64_linux_frame_saved_pc): Remove functions.
6285 (x86_64_linux_pc_in_sigtramp): Renamed from
6286 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6288 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6290 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6291 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6292 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6293 (x86_64_regmap): Rename to regmap.
6294 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6296 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6298 (x86_64_fxsave_offset): Remove function.
6299 (supply_fpregset): Simply call x86_64_supply_fxsave.
6300 (fill_fpregset): Simply call x86_64_fill_fxsave.
6301 (fetch_inferior_registers, store_inferior_registers): Avoid
6302 asignment in if-statement.
6303 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6304 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6305 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6306 (fetch_core_registers): Remove function.
6307 (linux_elf_core_fns): Remove.
6308 (offsetoff): Don't define.
6309 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6310 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6311 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6313 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6314 protection against multiple includes instead of NM_X86_64_h. Add
6315 various comments. Include "config/nm-linux.h". Don't include
6317 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6318 GET_THREAD_SIGNALS): Remove defines.
6319 (x86_64_register_u_addr, kernel_u_size,
6320 lin_thread_get_thread_signals): Remove prototypes.
6321 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6322 [HAVE_LINK_H]: Don't include "solib.h".
6323 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6324 * config/i386/tm-x86-64linux.h: Fix comments.
6325 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6326 x86-64-tdep.o): Update dependencies.
6328 2003-05-30 Andrew Cagney <cagney@redhat.com>
6330 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6331 Change parameter type to a "struct regcache *".
6333 * gdbarch.sh: Regardless of the multi-arch level, always define
6334 the macro when not already defined.
6335 * gdbarch.h, gdbarch.c: Re-generate.
6337 2003-05-30 Richard Henderson <rth@redhat.com>
6339 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6340 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6341 (alpha_mdebug_frame_this_id): Likewise.
6342 (alpha_mdebug_frame_prev_register): Likewise.
6343 (alpha_mdebug_frame_base_address): Likewise.
6344 (alpha_mdebug_frame_locals_address): Likewise.
6345 (alpha_mdebug_frame_args_address): Likewise.
6346 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6347 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6348 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6350 (alpha_heuristic_frame_this_id): Make static.
6351 (alpha_heuristic_frame_prev_register): Likewise.
6352 (alpha_heuristic_frame_base_address): Likewise.
6353 * alpha-tdep.h: Update.
6355 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6357 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6358 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6360 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6361 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6362 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6363 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6364 I386_ST0_REGNUM): New defines.
6365 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6366 codestream_get): Remove define.
6367 (codestream_next_addr, condestream_addr, condestream_buf,
6368 codestream_off, codestream_cnt): Remove variables.
6369 (codestream_fill, codestream_seek, codestream_read): Remove
6371 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6373 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6374 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6375 i386_frame_saved_pc, i386_saved_pc_after_call,
6376 i386_frame_num_args, i386_frame_init_saved_regs,
6377 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6378 i386_push_arguments): Remove functions.
6379 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6380 functionality. Use i386_analyze_prologue instead of
6381 i386_get_frame_setup.
6382 (I386_NUM_SAVED_REGS): New define.
6383 (struct i386_frame_cache): New structure.
6384 (i386_alloc_frame_cache, i386_analyze_struct_return,
6385 i386_skip_probe, i386_analyze_frame_setup,
6386 i386_analyze_register_saves, i386_analyze_prologue,
6387 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6388 i386_frame_prev_register, i386_sigtramp_frame_cache,
6389 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6390 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6391 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6393 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6395 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6396 I386_EAX_REGNUM and I386_EDX_REGNUM.
6397 (i386_extract_return_value, i386_store_return_value): Use
6398 I386_ST0_REGNUM where appropriate.
6399 (i386_extract_struct_value_address): Rewrite to use extract_address.
6400 (i386_svr4_pc_in_sigtramp): Add comment.
6401 (i386_svr4_sigcontext_addr): Rewrite.
6402 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6404 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6405 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6406 of new defines. Set push_dummy_call, don't set
6407 deprecated_push_arguments, deprecated_push_return_address,
6408 deprecated_pop_frame. Don't set parm_boundary. Don't set
6409 deprecated_frame_chain, deprecated_frame_saved_pc,
6410 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6411 save_dummy_frame_tos, unwind_pc. Call
6412 frame_unwind_append_predicate and frame_base_set_default. Don't
6413 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6414 Don't set frameless_function_invocation. Don't set
6415 deprecated_register_bytes, deprecated_register_size,
6416 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6417 * i386-linux-tdep.c: Fix formatting in some comments.
6418 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6419 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6420 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6421 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6422 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6423 redundant parentheses.
6424 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6425 (i386_linux_sigcontext_addr): Use it. Rewrite.
6426 (find_minsym_and_objfile): Change name of second argument.
6427 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6428 changed. Use frame_pc_unwind instead of
6429 DEPRECATED_SAVED_PC_AFTER_CALL.
6430 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6431 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6432 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6434 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6436 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6437 (_initialize_i386_cygwin_tdep): New prototype.
6438 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6439 deprecated_frame_chain_valid.
6440 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6441 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6442 Rely on the SVR4 defaults.
6443 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6444 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6446 2003-05-30 Andrew Cagney <cagney@redhat.com>
6448 * infcall.c (call_function_by_hand): Always call
6449 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6451 2003-05-30 Richard Henderson <rth@redhat.com>
6453 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6456 2003-05-29 Jim Blandy <jimb@redhat.com>
6458 Use gdbarch methods for solib stuff on PowerPC Linux.
6459 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6460 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6462 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6463 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6464 giving the same effect as the #definitions above.
6466 2003-05-29 Adam Fedor <fedor@gnu.org>
6468 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6469 (find_implementation_from_class): Replace it with the standard
6470 case i.e. do nothing.
6472 2003-05-29 Richard Henderson <rth@redhat.com>
6474 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6475 (alpha_linux_sigtramp_offset): Use it. Make static.
6476 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6477 update for new frame model.
6478 * alpha-mdebug-tdep.c: New file.
6479 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6480 (alpha_osf1_init_abi): Install it.
6481 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6482 (linked_proc_desc_table): Remove.
6483 (alpha_frame_past_sigtramp_frame): Remove.
6484 (alpha_dynamic_sigtramp_offset): Remove.
6485 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6486 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6487 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6488 (push_sigtramp_desc): Remove.
6489 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6490 (alpha_cannot_store_register): Likewise.
6491 (alpha_sigcontext_addr): Remove.
6492 (alpha_find_saved_regs): Remove.
6493 (alpha_frame_init_saved_regs): Remove.
6494 (alpha_init_frame_pc_first): Remove.
6495 (read_next_frame_reg): Remove.
6496 (alpha_frame_saved_pc): Remove.
6497 (alpha_saved_pc_after_call): Remove.
6498 (temp_proc_desc, temp_saved_regs): Remove.
6499 (alpha_about_to_return): Remove.
6500 (cached_proc_desc): Remove.
6501 (alpha_frame_chain): Remove.
6502 (alpha_print_extra_frame_info): Remove.
6503 (alpha_init_extra_frame_info): Remove.
6504 (alpha_frame_locals_address): Remove.
6505 (alpha_frame_args_address): Remove.
6506 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6507 (alpha_push_dummy_frame): Remove.
6508 (alpha_pop_frame): Remove.
6509 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6510 (alpha_read_insn): New.
6511 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6512 for different insn encodings.
6513 (alpha_in_lenient_prologue): Remove.
6514 (struct alpha_sigtramp_unwind_cache): New.
6515 (alpha_sigtramp_frame_unwind_cache): New.
6516 (alpha_sigtramp_register_address): New.
6517 (alpha_sigtramp_frame_this_id): New.
6518 (alpha_sigtramp_frame_prev_register): New.
6519 (alpha_sigtramp_frame_unwind): New.
6520 (alpha_sigtramp_frame_p): New.
6521 (struct alpha_heuristic_unwind_cache): New.
6522 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6523 don't count nop insns that occur between functions.
6524 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6525 heuristic_proc_desc, but without the mdebug wrapping.
6526 (alpha_heuristic_frame_this_id): New.
6527 (alpha_heuristic_frame_prev_register): New.
6528 (alpha_heuristic_frame_unwind): New.
6529 (alpha_heuristic_frame_p): New.
6530 (alpha_heuristic_frame_base_address): New.
6531 (alpha_heuristic_frame_base): New.
6532 (alpha_unwind_dummy_id): New.
6533 (alpha_unwind_pc): New.
6534 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6535 frame related deprecated initializations; install replacements.
6536 (alpha_dump_tdep): Remove.
6537 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6538 (alpha_read_insn, alpha_after_prologue,
6539 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6540 alpha_heuristic_frame_prev_register,
6541 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6542 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6543 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6544 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6546 2003-05-29 Andrew Cagney <cagney@redhat.com>
6548 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6549 dependant on the availability of ASSERT_FUNCTION.
6550 (ASSERT_FUNCTION): Do not define when there is no function name.
6552 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6554 From Jimi X <jimix@watson.ibm.com>:
6555 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6557 2003-05-28 Jim Blandy <jimb@redhat.com>
6559 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6560 argument to ptrace to int; the system headers should give it the
6561 right type, and pointers don't fit in ints on powerpc64-*-*.
6563 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6565 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6568 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6570 * stabsread.c (dbx_lookup_type): Make static.
6572 (add_undefined_type): Ditto.
6573 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6576 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6578 * hpread.c (hpread_has_name): Make static.
6579 (hpread_psymtab_to_symtab): Ditto.
6580 (file_exists): Ditto.
6581 (hpread_call_pxdb): Ditto.
6582 (hpread_pxdb_needed): Ditto.
6583 (hpread_quick_traverse): Ditto.
6584 (hpread_get_header): Ditto.
6585 (hpread_get_lntt): Ditto.
6586 (hpread_get_slt): Ditto.
6589 2003-05-25 Andreas Schwab <schwab@suse.de>
6591 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6592 stack_align and deprecated_extra_stack_alignment_needed.
6593 (m68k_stack_align): Delete.
6595 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6596 (m68k_register_virtual_size): Likewise.
6597 (altos_skip_prologue): Remove obsolete function.
6598 (isi_frame_num_args): Likewise.
6599 (news_frame_num_args): Likewise.
6600 (m68k_fix_call_dummy): Make static.
6601 (m68k_push_dummy_frame): Likewise.
6602 (m68k_pop_frame): Likewise.
6603 (m68k_skip_prologue): Likewise.
6604 (m68k_frame_init_saved_regs): Likewise.
6605 (m68k_saved_pc_after_call): Likewise.
6606 (m68k_get_longjmp_target): Make multi-arch.
6607 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6608 structure. Register m68k_get_longjmp_target if enabled.
6609 * m68k-tdep.h (struct gdbarch_tdep): Define.
6610 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6612 * Makefile.in (config.status): Also depend on configure.tgt
6614 (m68klinux-tdep.o): Update dependencies.
6615 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6616 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6617 (M68K_LINUX_JB_PC): Define.
6618 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6619 and take additional parameter.
6620 (m68k_linux_sigtramp_saved_pc): Update.
6621 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6622 m68k_linux_pc_in_sigtramp, in_plt_section,
6623 find_solib_trampoline_target.
6624 * config/m68k/tm-linux.h: Don't include any tm headers.
6625 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6626 (JB_ELEMENT_SIZE): Likewise.
6628 (GET_LONGJMP_TARGET): Likewise.
6629 (IN_SIGTRAMP): Likewise.
6630 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6632 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6634 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6635 (sparc32_push_arguments): Re-implement by calling
6636 sparc32_do_push_arguments.
6638 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6640 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6641 SPARC_O1_REGNUM): New defines.
6642 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6643 (sparc32_store_return_value): New function.
6644 (sparc_extract_struct_value_address): Rewrite to operate on a
6646 (sparc_gdbarch_init): Don't set
6647 deprecated_extract_struct_value_address. Set
6648 extract_struct_value_address instead. Don't set
6649 deprecated_extract_return_value and deprecated_store_return_value
6650 for 32-bit targets. Set extract_return_value and
6651 store_return_value instead.
6652 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6653 DEPRECTAED_EXTRACT_RETURN_VALUE,
6654 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6655 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6656 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6657 (sparc_store_return_value): Remove prototype.
6658 (sparc32_store_return_value): New prototype.
6659 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6662 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6664 * sparcnbsd-tdep.c: Include "gdb_string.h".
6666 2003-05-23 Andrew Cagney <cagney@redhat.com>
6668 * p-valprint.c (pascal_val_print): Replace extract_address with
6669 the inline equivalent extract_unsigned_integer.
6670 * jv-valprint.c (java_value_print): Ditto.
6671 * ada-valprint.c (ada_val_print_1): Ditto.
6672 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6674 2003-05-23 Theodore A. Roth <troth@openavr.org>
6676 * blockframe.c (frameless_look_for_prologue): Remove unused
6677 after_prologue variable.
6679 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6681 * blockframe.c (get_pc_function_start): Rewrite to avoid
6682 asignments in if-statements.
6684 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6686 Committed by Elena Zannoni <ezannoni@redhat.com>.
6687 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6688 files, don't relocate absolute symbols (and do use mst_abs).
6690 2003-05-23 Andrew Cagney <cagney@redhat.com>
6692 * objc-lang.c: Include "gdb_assert.h".
6693 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6694 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6695 (gdb_check, gdb_check_fatal): Delete functions.
6696 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6698 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6699 * Makefile.in (objc-lang.o): Update dependencies.
6701 2003-05-22 Ian Lance Taylor <ian@airs.com>
6703 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6704 with fprintf_filtered, not fprintf_unfiltered.
6706 2003-05-22 Andrew Cagney <cagney@redhat.com>
6708 * stack.c (frame_info): Inline extract_address, replacing it with
6709 extract_unsigned_integer.
6710 * findvar.c (unsigned_pointer_to_address): Ditto.
6711 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6712 * dwarf2expr.c (dwarf2_read_address): Ditto.
6713 * frame.c (frame_pc_unwind): Update comment.
6714 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6716 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6718 * infptrace.c (detach): Call print_sys_errmsg rather than
6719 perror_with_name to issue warning message when errno is non-zero
6720 after calling ptrace detach.
6722 2003-05-21 J. Brobecker <brobecker@gnat.com>
6724 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6725 macro definitions from here...
6726 * hppa-tdep.c: ...to there.
6728 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6730 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6731 register_ptrace_addr(). Fix all callers.
6733 2003-05-21 Andreas Schwab <schwab@suse.de>
6735 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6737 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6739 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6740 (_initialize_m68k_linux_tdep): New function.
6741 (m68k_linux_frame_saved_pc): Make static.
6742 (m68k_linux_extract_return_value): Likewise.
6743 (m68k_linux_store_return_value): Likewise.
6744 (m68k_linux_extract_struct_value_address): Likewise.
6745 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6747 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6748 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6749 (DEPRECATED_FRAME_SAVED_PC): Remove.
6751 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6753 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6754 regset numbering rather than our own.
6756 2003-05-19 David Carlton <carlton@bactrian.org>
6758 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6760 2003-05-19 David Carlton <carlton@bactrian.org>
6762 Partial fix for PR c++/827.
6763 * cp-support.h: Include symtab.h.
6764 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6765 * cp-namespace.c: Update contributors.
6766 (cp_lookup_symbol_nonlocal): New.
6767 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6768 (lookup_symbol_file): Ditto.
6769 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6770 * block.h: Declare block_scope, block_using, block_global_block.
6771 * block.c (block_scope): New.
6772 (block_using, block_global_block): Ditto.
6773 * Makefile.in (cp_support_h): Depend on symtab_h.
6774 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6776 2003-05-19 David Carlton <carlton@bactrian.org>
6778 * language.h (struct language_defn): Add 'la_value_of_this'
6779 and 'la_lookup_symbol_nonlocal' members.
6780 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6781 lookup_symbol_static, lookup_symbol_global,
6782 lookup_symbol_aux_block.
6783 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6784 if we should search fields of this and how to do static/global
6786 (lookup_symbol_aux_block): Make extern.
6787 (basic_lookup_symbol_nonlocal): New.
6788 (lookup_symbol_static, lookup_symbol_global): Ditto.
6789 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6790 'la_lookup_symbol_nonlocal' members.
6791 * c-lang.c (c_language_defn, cplus_language_defn)
6792 (asm_language_defn, minimal_language_defn): Ditto.
6793 * jv-lang.c (java_language_defn): Ditto.
6794 * language.c (unknown_language_defn, auto_language_defn)
6795 (local_language_defn): Ditto.
6796 * m2-lang.c (m2_language_defn): Ditto.
6797 * objc-lang.c (objc_language_defn): Ditto.
6798 * scm-lang.c (scm_language_defn): Ditto.
6799 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6800 * p-lang.c (pascal_language_defn): Ditto for both.
6801 * Makefile.in (f-lang.o): Depend on value_h.
6804 2003-05-19 David Carlton <carlton@bactrian.org>
6806 * block.h: Declare block_static_block.
6807 * block.c (block_static_block): New.
6808 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6809 lookup_symbol_aux_local, calling block_static_block instead.
6810 (lookup_symbol_aux_local): Delete 'static_block' argument.
6812 2003-05-19 David Carlton <carlton@bactrian.org>
6814 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6816 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6818 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6819 register numbers mapping.
6821 2003-05-18 Adam Fedor <fedor@gnu.org>
6823 * symtab.c (completion_list_objc_symbol): New function.
6824 (make_symbol_completion_list): Use it to add ObjC symbols
6825 when looking though the list.
6826 (language_search_unquoted_string): New function.
6827 (make_file_symbol_completion_list): Use it.
6829 2003-05-18 Andreas Schwab <schwab@suse.de>
6831 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6833 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6834 as m68k_linux_extract_return_value.
6835 (DEPRECATED_STORE_RETURN_VALUE): Define as
6836 m68k_linux_store_return_value.
6837 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6838 m68k_linux_extract_struct_value_address.
6839 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6840 get_next_frame, get_frame_base, get_frame_pc.
6841 (m68k_linux_frame_saved_pc): Use get_frame_base.
6842 (m68k_linux_extract_return_value): New function.
6843 (m68k_linux_store_return_value): New function.
6844 (m68k_linux_extract_struct_value_address): New function.
6845 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6847 * c-exp.y (typebase): Remove duplicate occurence of
6848 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6849 of lookup_signed_typename.
6851 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6853 * dwarf2loc.c (find_location_expression): Change type of second
6854 argument to `size_t *'.
6855 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6858 2003-05-18 David Carlton <carlton@bactrian.org>
6860 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6861 'linkage_name'. Add comment.
6862 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6864 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6865 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6866 (lookup_block_symbol): Ditto.
6868 2003-05-16 Andrew Cagney <cagney@redhat.com>
6870 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6871 * gdbarch.h, gdbarch.c: Re-generate.
6872 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6873 * TODO (REGISTER_BYTES): Delete reference.
6874 * alpha-tdep.c (alpha_gdbarch_init): Update.
6875 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6876 * x86-64-tdep.c (x86_64_init_abi): Update.
6877 * vax-tdep.c (vax_gdbarch_init): Update.
6878 * v850-tdep.c (v850_gdbarch_init): Update.
6879 * sparc-tdep.c (sparc_gdbarch_init): Update.
6880 * sh-tdep.c (sh_gdbarch_init): Update.
6881 * s390-tdep.c (s390_gdbarch_init): Update.
6882 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6883 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6884 (ns32k_gdbarch_init_32382): Update.
6885 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6886 * mcore-tdep.c (mcore_gdbarch_init): Update.
6887 * m68k-tdep.c (m68k_gdbarch_init): Update.
6888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6889 * ia64-tdep.c (ia64_gdbarch_init): Update.
6890 * i386-tdep.c (i386_gdbarch_init): Update.
6891 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6892 * hppa-tdep.c (hppa_gdbarch_init): Update.
6893 * h8300-tdep.c (h8300_gdbarch_init): Update.
6894 * frv-tdep.c (frv_gdbarch_init): Update.
6895 * cris-tdep.c (cris_gdbarch_init): Update.
6896 * avr-tdep.c (avr_gdbarch_init): Update.
6897 * arm-tdep.c (arm_gdbarch_init): Update.
6898 * sparc-tdep.c (sparc_pop_frame): Update.
6899 * rs6000-tdep.c (rs6000_pop_frame): Update.
6900 * remote.c (init_remote_state): Update.
6901 (remote_prepare_to_store): Update.
6902 * remote-vx.c (vx_prepare_to_store): Update.
6903 * remote-sds.c (sds_fetch_registers): Update.
6904 (sds_prepare_to_store): Update.
6905 * remote-array.c: Update.
6906 * regcache.c (init_legacy_regcache_descr): Update.
6907 (init_regcache_descr): Update.
6908 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6909 (mips_o64_extract_return_value): Update.
6910 * irix5-nat.c (fetch_core_registers): Update.
6911 * irix4-nat.c (fetch_core_registers): Update.
6912 * i386-tdep.h: Update.
6913 * hppa-tdep.c (pa_do_registers_info): Update.
6914 (pa_do_strcat_registers_info): Update.
6915 * cris-tdep.c (cris_register_bytes_ok): Update.
6916 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6917 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6918 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6919 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6920 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6921 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6922 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6923 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6924 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6925 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6926 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6927 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6928 (REGISTER_BYTES_OK): Update.
6929 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6930 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6932 2003-05-16 Ian Lance Taylor <ian@airs.com>
6934 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6935 (vax_print_insn, print_insn_arg): Remove static functions.
6936 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6937 print_insn_vax from opcodes library.
6938 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6940 2003-05-15 Andrew Cagney <cagney@redhat.com>
6942 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6943 * target.h (memory_breakpoint_from_pc): Delete declaration.
6944 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6945 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6946 * monitor.c (monitor_insert_breakpoint): Use
6947 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6948 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6949 * gdbarch.h, gdbarch.c: Re-generate.
6950 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6951 (sparc_gdbarch_init): Set breakpoint_from_pc to
6952 sparc_breakpoint_from_pc.
6953 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6954 (BREAKPOINT_FROM_PC): Define.
6955 (sparc_breakpoint_from_pc): Declare.
6956 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6957 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6958 (BREAKPOINT_FROM_PC): Define.
6959 (BREAKPOINT): Delete macro.
6960 * target.h: Update comment.
6961 * s390-tdep.c (s390_gdbarch_init): Update comments.
6962 * remote.c: Update comments.
6963 * remote-mips.c: Update comments.
6964 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6965 * mem-break.c: Update comment.
6966 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6967 (ia64_memory_insert_breakpoint): Update.
6968 * config/sparc/tm-sparc.h: Update comment.
6969 * config/pa/tm-hppa64.h: Update comment.
6970 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6971 (rs6000_breakpoint_from_pc): Update.
6972 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6973 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6974 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6975 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6976 (mips_breakpoint_from_pc): Update.
6977 (mips_dump_tdep): Update.
6979 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6980 * minsyms.c (lookup_minimal_symbol): Inline
6981 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6983 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6984 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6985 * p-lang.c (pascal_printstr): Ditto.
6986 * objc-lang.c (objc_printstr): Ditto.
6987 * m2-lang.c (m2_printstr): Ditto.
6988 * jv-valprint.c (java_print_value_fields): Ditto.
6989 * f-lang.c (f_printstr): Ditto.
6990 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6991 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6992 for repeat_count_threshold.
6993 * Makefile.in (cp-valprint.o): Update dependencies.
6995 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6997 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6998 (examine_prologue): Support looking through leaf functions, knowing
6999 they start with mov r2,r12. Support skipping over indirect stores
7000 of the input registers. Upon hitting a non-nop branch instruction
7001 or predicated instruction, bail out by setting lim_pc to the current
7002 pc value in the loop. At the end, if the lim_pc value is still
7003 beyond our calculated value and we have trust_limit set,
7004 use the lim_pc value.
7006 2003-05-15 Andrew Cagney <cagney@redhat.com>
7008 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7009 generic_find_dummy_frame.
7010 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7011 (deprecated_generic_find_dummy_frame): Update.
7012 (deprecated_read_register_dummy): Update.
7013 * frame.c (deprecated_generic_get_saved_register): Update.
7015 2003-05-15 Theodore A. Roth <troth@openavr.org>
7017 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7018 (avr_gdbarch_init): Set breakpoint_from_pc method.
7020 2003-05-15 Andrew Cagney <cagney@redhat.com>
7022 * regcache.c (build_regcache): Set deprecated_register_valid
7024 (deprecated_grub_regcache_for_register_valid): Delete function.
7025 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7028 2003-05-15 David Carlton <carlton@bactrian.org>
7030 Committed by Elena Zannoni <ezannoni@redhat.com>
7031 * symtab.c (lookup_symbol_aux): Delete calls to
7032 lookup_symbol_aux_minsyms.
7033 (lookup_symbol_aux_minsyms): Comment out function and
7034 prototype. Delete lookup by mangled name.
7036 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7038 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7039 correctly indicate an empty stack and ``stack_allocated'' to the
7040 indicate the number of elements initially allocated.
7041 (dwarf_expr_grow_stack): Simplify method for computing new
7042 stack size. Don't loop infinitely if ``stack_len'' is zero.
7043 (execute_stack_op): Move ``ctx->in_reg'' initialization
7044 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7045 be used in conjuction with DW_OP_piece. Revise error message
7048 2003-05-14 Theodore A. Roth <troth@openavr.org>
7050 * MAINTAINERS: Update my email address.
7051 * avr-tdep.c: Ditto.
7053 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7055 * symtab.h (enum domain_enum): Rename from namespace_enum.
7056 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7057 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7058 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7059 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7060 TYPES_NAMESPACE, METHODS_NAMESPACE.
7061 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7062 (struct symbol, struct partial_symbol): Rename field
7063 'namespace_enum namespace' to 'domain_enum domain'.
7064 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7065 Delete old define kludge for namespace.
7067 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7068 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7069 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7070 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7071 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7072 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7073 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7074 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7075 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7076 occurrences of the above.
7078 2003-05-14 Ian Lance Taylor <ian@airs.com>
7080 * Makefile.in (install-only): Use $(SHELL) when running
7083 2003-05-13 Ian Lance Taylor <ian@airs.com>
7085 * MAINTAINERS (write after approval): Add myself.
7087 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7088 second and third arguments.
7089 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7090 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7092 2003-05-13 Andrew Cagney <cagney@redhat.com>
7094 * defs.h (store_address): Delete declaration.
7095 findvar.c (store_address): Delete function.
7096 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7097 store_unsigned_integer.
7098 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7099 * v850-tdep.c (v850_push_arguments): Ditto.
7100 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7101 * sh-tdep.c (sh64_get_saved_register): Ditto.
7102 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7103 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7104 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7105 (mips_get_saved_register): Ditto.
7106 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7107 (find_func_descr, ia64_push_arguments): Ditto.
7108 * i386-tdep.c (i386_push_arguments): Ditto.
7109 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7110 * frv-tdep.c (frv_push_arguments): Ditto.
7111 * frame.c (legacy_saved_regs_prev_register): Ditto.
7112 (deprecated_generic_get_saved_register): Ditto.
7113 * findvar.c (unsigned_address_to_pointer): Ditto.
7114 * dwarf2read.c (dwarf2_const_value): Ditto.
7115 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7116 * alpha-tdep.c (alpha_push_arguments): Ditto.
7118 2003-05-12 J. Brobecker <brobecker@gnat.com>
7120 * NEWS: Mention that the hppa-hpux port has been partially
7121 multiarched (32bit ABIT only, so far).
7123 2003-05-11 Andrew Cagney <cagney@redhat.com>
7125 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7126 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7127 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7128 sim/testsuite/sim/arm/misaligned2.ms, and
7129 sim/testsuite/sim/arm/misaligned3.ms.
7130 * disasm.h (struct ui_file): Add opaque struct declaration.
7131 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7132 * frame.h (struct ui_file): Ditto.
7134 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7136 * value.h: Pretty print.
7138 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7140 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7142 2003-05-08 Andrew Cagney <cagney@redhat.com>
7144 * regcache.h (max_register_size): Delete declaration.
7145 * regcache.c (max_register_size): Delete function.
7146 (struct regcache_descr): Delete field "max_register_size".
7147 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7148 registers fit in MAX_REGISTER_SIZE.
7149 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7150 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7151 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7152 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7153 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7154 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7155 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7156 * dve3900-rom.c, hppa-tdep.c: Ditto.
7158 2003-05-08 David Carlton <carlton@math.stanford.edu>
7160 * valops.c (push_word): Fix typo.
7162 2003-05-08 Andrew Cagney <cagney@redhat.com>
7164 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7165 * gdbarch.h: Re-generate.
7166 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7167 (legacy_max_register_raw_size): Delete declaration.
7168 * regcache.c (legacy_max_register_raw_size): Delete function.
7169 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7170 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7171 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7172 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7173 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7174 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7175 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7176 * findvar.c, dwarf2cfi.c: Ditto.
7178 2003-05-08 Andrew Cagney <cagney@redhat.com>
7180 * mips-tdep.c (read_signed_register): New function, moved to here
7182 (read_signed_register_pid): Ditto.
7183 * regcache.c (read_signed_register_pid): Delete function, moved to
7185 (read_signed_register): Ditto.
7186 * regcache.h (read_signed_register): Delete declaration.
7187 (read_signed_register_pid): Delete declaration.
7189 2003-05-08 Andrew Cagney <cagney@redhat.com>
7191 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7192 * gdbarch.h: Re-generate.
7193 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7194 (legacy_max_register_virtual_size): Delete declaration.
7195 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7196 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7197 * tracepoint.c (memrange_sortmerge): Ditto.
7198 * sparc-tdep.c (sparc_print_registers): Ditto.
7199 * regcache.c (legacy_max_register_virtual_size): Delete function.
7201 2002-05-08 J. Brobecker <brobecker@gnat.com>
7203 * fork-child.c (escape_bang_in_quoted_argument): New function.
7204 (fork_inferior): Escape '!' characters in quoted arguments
7207 2003-05-08 J. Brobecker <brobecker@gnat.com>
7209 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7210 the language of the CU is not currently supported by GDB.
7212 2003-05-08 J. Brobecker <brobecker@gnat.com>
7214 * defs.h (language): Add language_minimal enum value.
7215 * c-lang.c (minimal_language_defn): New language definition.
7216 (_initialize_c_language): Add the new minimal language to the list
7217 of languages known to GDB.
7219 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7221 * frame.c (get_frame_type): Don't attempt to lazily initialize
7222 frame's unwinder for legacy frames.
7224 2003-05-07 Andrew Cagney <cagney@redhat.com>
7226 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7227 and "regcache" parameters.
7228 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7230 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7232 * dwarf2read.c (dwarf_decode_lines): Only use output of
7233 check_cu_functions() when calling record_line(). Do not update
7234 the current address.
7236 2003-05-07 Andrew Cagney <cagney@redhat.com>
7238 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7241 2003-05-07 Jim Blandy <jimb@redhat.com>
7243 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7244 'maint info symtabs' and 'maint info psymtabs'.
7245 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7246 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7247 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7248 Declarations updated.
7249 * maint.c (maintenance_list_command): Delete.
7250 (_initialize_maint_cmds): Update calls to add_cmd.
7251 * gdbcmd.h (maintenancelistlist): Delete declaration.
7252 * cli/cli-cmds.c (maintenancelistlist): Delete.
7253 (init_cmd_lists): Don't initialize it.
7254 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7256 2003-05-07 Andrew Cagney <cagney@redhat.com>
7258 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7260 (d10v_print_registers_info): Update.
7261 (d10v_dmap_register, d10v_imap_register): Delete functions.
7262 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7263 and "imap_register".
7264 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7265 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7266 * arch-utils.c (generic_remote_translate_xfer_address): Add
7267 "regcache" and "gdbarch" parameters.
7268 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7269 parameter. Change class to multi-arch.
7270 * gdbarch.h, gdbarch.c: Re-generate.
7271 * remote.c (remote_xfer_memory): Use
7272 gdbarch_remote_translate_xfer_address.
7274 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7276 * infrun.c (prev_pc): Move declaration ahead of proceed().
7277 (proceed): Refresh prev_pc value before resuming.
7278 (stop_stepping): Remove code to refresh prev_pc.
7280 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7282 * nto-tdep.c: Removed stray comment.
7284 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7286 * i386-nto-tdep.c: Fix old K&R function definitions.
7287 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7288 Also change add_show_from_set() call to add_setshow_cmd().
7289 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7291 2003-05-05 Andrew Cagney <cagney@redhat.com>
7293 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7294 (fprint_dummy_frames): New function.
7295 (maintenance_print_dummy_frames): New function.
7296 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7297 * frame.c (fprint_frame_id): Make global.
7298 * frame.h (fprint_frame_id): Declare.
7299 * Makefile.in (dummy-frame.o): Update dependencies.
7301 2003-05-05 Andrew Cagney <cagney@redhat.com>
7303 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7304 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7305 SIZEOF_CALL_DUMMY_WORDS.
7306 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7307 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7308 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7309 CALL_DUMMY_BREAKPOINT_OFFSET.
7310 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7311 CALL_DUMMY_START_OFFSET.
7312 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7313 * gdbarch.h, gdbarch.c: Re-generate.
7314 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7315 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7316 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7317 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7318 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7319 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7320 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7321 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7322 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7323 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7324 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7325 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7326 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7327 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7328 * config/sparc/tm-sparc.h: Update.
7330 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7332 * configure.tgt: Add i[3456]86-*-nto*.
7333 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7334 * nto-tdep.c: New file. Neutrino target support routines.
7335 * nto-tdep.h: New file. Neutrino target header.
7336 * config/tm-qnxnto.h: New file.
7337 * config/i386/i386nto.mt: New file.
7338 * config/i386/tm-i386nto.h: New file.
7340 2003-05-04 Andrew Cagney <cagney@redhat.com>
7342 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7343 (load_infrun_state): Ditto.
7344 (struct thread_info): Drop "prev_func_name" field.
7345 * thread.c (load_infrun_state): Update.
7346 (save_infrun_state): Update.
7347 * infrun.c (prev_func_name): Delete variable.
7348 (init_wait_for_inferior): Do not clear prev_func_name.
7349 (stop_stepping, keep_going, context_switch): Do not swap
7351 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7352 instead of PC_IN_SIGTRAMP.
7354 2003-05-04 Andrew Cagney <cagney@redhat.com>
7356 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7357 REGISTER_BYTE with register_offset_hack.
7358 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7359 that REGISTER_BYTE is consistent with the regcache.
7360 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7361 * gdbarch.h, gdbarch.c: Regenerate.
7363 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7365 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7366 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7368 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7370 2003-05-03 J. Brobecker <brobecker@gnat.com>
7372 From Thierry Schneider <tpschneider1@yahoo.com>
7373 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7374 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7375 (mi-cmd-symbol.o): Add rule.
7377 2003-05-03 Andrew Cagney <cagney@redhat.com>
7379 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7380 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7381 * gdbarch.h, gdbarch.c: Re-generate.
7382 * d10v-tdep.c (d10v_push_dummy_code): New function.
7383 (d10v_gdbarch_init): Set push_dummy_code.
7384 * infcall.c (legacy_push_dummy_code): New function.
7385 (generic_push_dummy_code): New function.
7386 (push_dummy_code): New function.
7387 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7388 instead of dummy_addr, to push_dummy_call. Move call to
7389 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7391 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7393 2003-05-03 Andrew Cagney <cagney@redhat.com>
7395 * disasm.h (print_insn): Declare.
7396 * disasm.c (init_gdb_disassemble_info): New function.
7397 (gdb_disassembly): Call init_gdb_disassemble_info.
7398 (gdb_print_insn): New function.
7399 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7400 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7401 * mcore-tdep.c: Include "disasm.h"
7402 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7403 * d10v-tdep.c: Include "disasm.h".
7404 (display_trace): Call gdb_print_insn, instead of print_insn.
7405 (print_insn): Delete function.
7406 * printcmd.c: Include "disasm.h".
7407 (print_insn): Delete function.
7408 (print_formatted): Call gdb_print_insn, instead of print_insn.
7409 * Makefile.in (printcmd.o): Update dependencies.
7410 (mcore-tdep.o, d10v-tdep.o): Ditto.
7412 2003-05-02 Andrew Cagney <cagney@redhat.com>
7414 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7415 PC_REGNUM, re-indent.
7416 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7417 PC_REGNUM isn't set.
7419 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7420 * gdbarch.h, gdbarch.c: Re-generate.
7421 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7422 register_virtual_size, pc_regnum, or register_bytes.
7423 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7424 (d10v_register_type): Use D10V_PC_REGNUM.
7425 (d10v_print_registers_info, d10v_read_pc): Ditto.
7426 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7427 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7429 2003-05-02 David Carlton <carlton@bactrian.org>
7431 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7432 the name with mstrsave.
7434 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7436 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7437 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7438 (host_charset_name, target_charset_name): New vars for use by
7440 (host_charset_enum, target_charset_enum): New enums for set/show
7442 (set_charset_sfunc, set_host_charset_sfunc,
7443 set_target_charset_sfunc): New functions.
7444 (set_host_charset, set_target_charset): Make static.
7445 (list_charsets, set_host_charset_command,
7446 set_target_charset_command): Delete functions.
7447 (show_charset_command): Rewrite as....
7448 (show_charset): Hook this up with the set/show command mechanism.
7449 (_initialize_charset): Change names of charsets to match the
7450 set/show enums. Use host_charset_name and target_charset_name.
7451 Use set/show mechanism for charset, host-charset, target-charset
7452 commands. Do not make 'show host-charset' and 'show
7453 target-charset' be aliases of 'show charset'.
7455 * charset.h (set_host_charset, set_target_charset): Don't export,
7456 they are not used outside the file.
7458 2003-05-01 Andrew Cagney <cagney@redhat.com>
7460 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7461 (gdb_disassembly): Make "di" non static, always initialize and
7462 cleanup. Always use dis_asm_read_memory.
7463 (gdb_dis_asm_read_memory): Delete function.
7465 2003-05-01 Andrew Cagney <cagney@redhat.com>
7467 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7468 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7470 2003-04-30 Andrew Cagney <cagney@redhat.com>
7472 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7473 "tm_print_insn_info".
7474 (TARGET_PRINT_INSN_INFO): Delete macro.
7475 (dis_asm_read_memory): Delete function declaration.
7476 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7477 (tm_print_insn_info): Delete variable definition.
7478 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7479 * gdbarch.h, gdbarch.c: Re-generate.
7480 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7481 "deprecated_tm_print_insn_info".
7482 * mcore-tdep.c (mcore_dump_insn): Ditto.
7483 * mips-tdep.c (mips_gdbarch_init): Ditto.
7484 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7485 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7486 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7487 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7488 instead of TARGET_PRINT_INSN_INFO, add comment.
7489 * s390-tdep.c (s390_get_frame_info): Instead of
7490 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7491 (s390_check_function_end, s390_is_sigreturn): Ditto.
7492 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7493 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7494 * disasm.c: Include "gdbcore.h".
7495 (_initialize_disasm): New function, initialize
7496 "deprecated_tm_print_insn_info".
7497 (deprecated_tm_print_insn_info): New variable.
7498 (dis_asm_read_memory): Moved from "corefile.c", made static.
7499 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7500 * Makefile.in (disasm.o): Update dependencies.
7502 2003-04-30 Andrew Cagney <cagney@redhat.com>
7504 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7506 2003-04-29 Adam Fedor <fedor@gnu.org>
7508 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7509 * infcall.c (find_function_addr): Make non-static.
7510 * infcall.h (find_function_addr): Declare.
7511 * Makefile.in (eval.o): Update dependencies.
7513 2003-04-28 Adam Fedor <fedor@gnu.org>
7515 * symtab.c (symbol_find_demangled_name): Check for and demangle
7517 (symbol_init_demangled_name): Init for language_objc as well.
7519 2003-04-28 Andrew Cagney <cagney@redhat.com>
7521 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7522 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7523 * gdbarch.h, gdbarch.c: Re-generate.
7524 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7525 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7526 * inferior.h (deprecated_read_fp): Rename read_fp.
7527 (generic_target_read_fp): Delete declaration.
7528 * regcache.c (generic_target_read_fp): Delete function.
7529 (deprecated_read_fp): Replace read_fp, use
7530 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7531 * d10v-tdep.c (d10v_read_fp): Delete function.
7532 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7534 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7535 deprecated_target_read_fp to generic_target_read_fp.
7536 * sh-tdep.c (sh_gdbarch_init): Ditto.
7537 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7539 * frv-tdep.c (frv_gdbarch_init): Ditto.
7541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7542 deprecated_fp_regnum.
7543 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7544 * vax-tdep.c (vax_gdbarch_init): Ditto.
7545 * v850-tdep.c (v850_gdbarch_init): Ditto.
7546 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7547 * sh-tdep.c (sh_gdbarch_init): Ditto.
7548 * s390-tdep.c (s390_gdbarch_init): Ditto.
7549 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7550 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7551 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7552 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7554 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7555 * i386-tdep.c (i386_gdbarch_init): Ditto.
7556 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7557 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7558 * frv-tdep.c (frv_gdbarch_init): Ditto.
7559 * cris-tdep.c (cris_gdbarch_init): Ditto.
7560 * avr-tdep.c (avr_gdbarch_init): Ditto.
7561 * arm-tdep.c (arm_gdbarch_init): Ditto.
7562 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7564 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7565 * v850-tdep.c (v850_gdbarch_init): Ditto.
7566 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7567 * sh-tdep.c (sh_gdbarch_init): Ditto.
7568 * s390-tdep.c (s390_gdbarch_init): Ditto.
7569 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7570 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7571 * mips-tdep.c (mips_gdbarch_init): Ditto.
7572 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7573 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7574 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7575 * frv-tdep.c (frv_gdbarch_init): Ditto.
7576 * avr-tdep.c (avr_gdbarch_init): Ditto.
7577 * arm-tdep.c (arm_gdbarch_init): Ditto.
7579 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7580 DEPRECATED_FP_REGNUM.
7581 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7582 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7583 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7584 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7585 (sparc32_register_virtual_type): Ditto.
7586 * sh-tdep.c (sh64_frame_chain): Ditto.
7587 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7588 (sh_nofp_frame_init_saved_regs): Ditto.
7589 (sh64_nofp_frame_init_saved_regs): Ditto.
7590 (sh_fp_frame_init_saved_regs): Ditto.
7591 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7592 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7593 * procfs.c (procfs_fetch_registers): Ditto.
7594 (procfs_store_registers): Ditto.
7595 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7596 (store_inferior_registers, fetch_core_registers): Ditto.
7597 (fetch_kcore_registers, clear_regs): Ditto.
7598 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7599 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7600 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7601 * nlm/i386.c (do_status): Ditto.
7602 * mipsv4-nat.c (supply_gregset): Ditto.
7603 * mips-tdep.c: Ditto for comments.
7604 * mips-nat.c (fetch_inferior_registers): Ditto.
7605 (store_inferior_registers, fetch_core_registers): Ditto.
7606 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7607 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7608 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7609 (i386_do_pop_frame, i386_register_type): Ditto.
7610 * hppa-tdep.c (hppa_frame_chain): Ditto.
7611 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7612 (hppa_pop_frame, hppa_read_fp): Ditto.
7613 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7614 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7615 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7616 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7617 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7618 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7619 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7620 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7621 * blockframe.c: Ditto for comments.
7622 * arch-utils.h: Ditto for comments.
7623 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7624 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7625 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7626 * alpha-tdep.h: Ditto for comments.
7627 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7628 (alpha_cannot_store_register): Ditto.
7629 (alpha_push_dummy_frame): Ditto.
7630 * alpha-nat.c (supply_gregset): Ditto.
7632 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7633 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7634 * config/sparc/tm-sparc.h: Update comment.
7636 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7637 deprecated_read_fp instead of TARGET_READ_FP.
7638 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7639 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7640 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7641 deprecated_read_fp instead of read_fp.
7642 * s390-tdep.c (s390_push_arguments): Ditto.
7643 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7644 * frame.h: Ditto in comments.
7645 * frame.c (legacy_get_prev_frame): Ditto.
7646 * dummy-frame.c (dummy_frame_this_id): Ditto.
7647 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7649 2003-04-28 Andrew Cagney <cagney@redhat.com>
7651 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7652 * gdbarch.h, gdbarch.c: Re-generate.
7653 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7654 * vax-tdep.c (_initialize_vax_tdep): Update.
7655 * v850-tdep.c (_initialize_v850_tdep): Update.
7656 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7657 * s390-tdep.c (_initialize_s390_tdep): Update.
7658 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7659 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7660 * mips-tdep.c (_initialize_mips_tdep): Update.
7661 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7662 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7663 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7664 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7665 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7666 * frv-tdep.c (_initialize_frv_tdep): Update.
7667 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7668 (_initialize_cris_tdep): Update.
7669 * arch-utils.c (legacy_print_insn): Update.
7670 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7672 2003-04-26 Adam Fedor <fedor@gnu.org>
7674 * linespec.c (decode_objc): New function to decode ObjC calls
7675 (decode_line_1): Check for ObjC calls (using decode_objc)
7676 * Makefile (linespec.o): Update dependencies.
7678 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7680 * breakpoint.h (struct breakpoint_ops): New.
7681 (struct breakpoint): Add ops member.
7683 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7684 (mention): Use new breakpoint ops member.
7685 (set_raw_breakpoint): Initialize ops field to NULL.
7686 (print_exception_catchpoint, print_one_exception_catchpoint)
7687 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7688 (gnu_v3_exception_catchpoint_ops): New.
7689 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7691 2003-04-25 Adam Fedor <fedor@gnu.org>
7693 * Makefile.in (COMMON_OBS): Add objc-lang.o
7695 2003-04-25 Andrew Cagney <cagney@redhat.com>
7697 * d10v-tdep.c (print_insn): Delete function.
7698 (display_trace): Use TARGET_PRINT_INSN.
7699 (_initialize_d10v_tdep): Do not set tm_print_insn.
7700 (d10v_gdbarch_init): Set print_insn.
7702 2003-04-25 Andrew Cagney <cagney@redhat.com>
7704 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7705 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7706 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7707 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7708 (nr_dmap_regs, a0_regnum): ... new functions.
7709 (d10v_print_registers_info): Use a0_regnum, use register_size.
7710 (d10v_register_byte): Delete function.
7711 (d10v_register_raw_size): Delete function.
7712 (d10v_register_type): Use a0_regnum.
7713 (d10v_print_registers_info): Use a0_regnum.
7714 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7715 (d10v_gdbarch_init): Do not set register_byte or
7716 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7717 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7719 (trace_command): Use XCALLOC.
7720 (print_insn): Delete reference to tm_print_insn.
7721 (saved_regs_unwinder): Use store_unsigned_integer instead of
7723 * frame.h (FRAME_OBSTACK_CALLOC): Define
7725 2003-04-25 David Carlton <carlton@bactrian.org>
7727 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7729 2003-04-24 Adam Fedor <fedor@gnu.org>
7731 * objc-lang.c: Include "valprint.h"
7732 * Makefile.in (objc-lang.o): Update dependencies.
7734 2003-04-24 Adam Fedor <fedor@gnu.org>
7736 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7737 architecture dependant compilation and mark as unimplemented
7738 (until they get put in the gdbarch vector).
7740 2003-04-23 David Carlton <carlton@bactrian.org>
7742 * cp-support.c (cp_find_first_component): Accept 'operator' in
7745 2003-04-23 Andrew Cagney <cagney@redhat.com>
7747 * infcall.c (call_function_by_hand): Eliminate redundant
7748 indentation. Move "saved_async" and "old_cleanups" to where they
7751 2003-04-23 Andrew Cagney <cagney@redhat.com>
7753 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7754 and "buffer". Move the "name" code to where it is needed.
7756 2003-04-23 Andrew Cagney <cagney@redhat.com>
7758 * infcall.c (call_function_by_hand): Move variables "start_sp",
7759 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7760 code to ON_STACK switch branch.
7762 2003-04-23 Andrew Cagney <cagney@redhat.com>
7764 * infcall.c (call_function_by_hand): Make declaration of "i",
7765 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7768 2003-04-23 Andrew Cagney <cagney@redhat.com>
7770 * infcall.c (call_function_by_hand): Delete variable
7771 "n_method_args". Localize "param_type"'s declaration to the loop
7772 that it is used. Reinstate code assigning to said variable -
7773 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7774 Rationalize code using "param_type".
7776 2003-04-22 Andrew Cagney <cagney@redhat.com>
7778 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7779 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7780 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7781 to DEPRECATED_PUSH_RETURN_ADDRESS.
7783 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7785 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7786 on the DWARF2 register number prior to fetching a register.
7788 2003-04-22 J. Brobecker <brobecker@gnat.com>
7790 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7791 Update all the tests using SOFT_FLOAT considering the fact that
7792 this macro was always set to 0.
7793 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7794 considering the fact that this macro was always set to 0.
7795 * hppa-tdep.h (hppa_store_return_value): Likewise.
7796 (hppa_extract_return_value): Likewise.
7798 2003-04-22 J. Brobecker <brobecker@gnat.com>
7800 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7801 the hppa-pro target only.
7803 2003-04-21 J. Brobecker <brobecker@gnat.com>
7805 Ongoing multi-arch conversion effort for HP/UX:
7806 * config/pa/tm-hppa.h: Move all macro that are no longer
7807 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7808 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7810 2003-04-21 J. Brobecker <brobecker@gnat.com>
7812 * config/pa/tm-hppa.h: Obsolete a section that was only used
7815 2003-04-21 J. Brobecker <brobecker@gnat.com>
7817 Ongoing multi-arch conversion for HP/UX.
7818 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7819 if already defined (allows hppa64 to stay non-multiarched for now).
7820 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7822 2003-04-21 Andrew Cagney <cagney@redhat.com>
7824 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7826 2003-04-21 Andrew Cagney <cagney@redhat.com>
7828 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7829 "i386_num_mmx_regs".
7831 2003-04-21 Andrew Cagney <cagney@redhat.com>
7833 * infcall.c: New file.
7834 * infcall.h: New file.
7835 * valarith.c: Include "infcall.h".
7836 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7837 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7838 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7839 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7840 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7841 (SFILES): Add "infcall.c"
7842 (COMMON_OBS): Add "infcall.o".
7843 (infcall.o): Specify dependencies.
7844 * value.h (call_function_by_hand): Delete declaration.
7845 * inferior.h (run_stack_dummy): Delete declaration.
7846 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7847 (run_stack_dummy): Move to "infcall.c", merged into
7848 call_function_by_hand.
7849 * valops.c (call_function_by_hand): Moved to "infcall.c".
7850 (find_function_addr, value_arg_coerce): Ditto.
7851 (unwindonsignal_p, coerce_float_to_double): Ditto.
7852 (_initialize_valops): Move "set/show coerce-float-to-double", and
7853 "set/show unwindonsignal" commands to "infcall.c".
7854 * v850-tdep.c, target.h: Update comments.
7855 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7856 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7857 (sh64_init_extra_frame_info): Update comments.
7858 * mn10300-tdep.c: Update comments.
7859 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7860 * config/sparc/tm-sparc.h: Update comments.
7861 * breakpoint.h: Update comments.
7862 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7863 * arm-tdep.c: Update comment.
7865 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7867 * i386-tdep.c (i386_num_register_names): New variable.
7868 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7869 (MM0_REGNUM): Remove redundant parentheses in define.
7870 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7871 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7872 i386_mxcsr_regnum_p): Remove redundant parentheses.
7873 (i386_register_name): Use i386_num_register_names.
7875 * i386-tdep.c (i386_extract_return_value,
7876 i386_store_return_value): Correct check for availability of
7877 floating-point registers.
7879 * i386-tdep.c (i386_frame_num_args): Remove function.
7880 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7882 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7883 mmx_regnum_to_fp_regnum. Adjust all callers.
7885 * i386-tdep.c (i386_get_longjmp_target): Use
7886 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7887 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7890 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7892 * core-regset.c: Update comments to reflect reality. Re-order
7894 (fetch_core_registers): Use switch instead of if. Remove
7895 redundant prototype.
7897 2003-04-18 Jim Blandy <jimb@redhat.com>
7899 * s390-tdep.c (s390_frame_align): New function.
7900 (s390_gdbarch_init): Register it with the gdbarch object.
7902 2003-04-17 Richard Henderson <rth@redhat.com>
7904 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7906 2003-04-17 Michael Snyder <msnyder@redhat.com>
7907 Karen Bennet <bennet@redhat.com>
7909 Committed by Elena Zannoni <ezannoni@redhat.com>
7910 * gdb_gcore.sh: New script to create a core dump of a process.
7912 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7914 * values.c (value_being_returned): Don't fetch the return
7915 value if the return type is void.
7917 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7919 * thread-db.c: Reindented.
7921 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7923 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7924 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7951 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7953 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7954 the size of ``long double'' to 16, instead of 8.
7956 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7958 * i386-linux-nat.c: Add some whitespace to make things more
7960 (fetch_register, store_register, fetch_inferior_registers,
7961 store_inferior_registers): Get rid of assignment in if-statement.
7962 (store_register): Fix typo in error message.
7964 2003-04-16 Andrew Cagney <cagney@redhat.com>
7966 * utils.c (xmmalloc): Always allocate something, matches
7967 libiberty/xmalloc's semantics.
7968 (xmrealloc, xmcalloc): Ditto.
7970 2003-04-16 Andrew Cagney <cagney@redhat.com>
7972 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7974 (get_frame_type): Initialize unwind and type when needed.
7975 (get_frame_id, frame_register_unwind): Ditto.
7977 2003-04-16 Andrew Cagney <cagney@redhat.com>
7979 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7981 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7982 * sparcl-stub.c: Obsolete file.
7983 * config/sparc/tm-sparclet.h: Obsolete file.
7984 * sparclet-stub.c: Obsolete file.
7985 * sparclet-rom.c: Obsolete file.
7986 * sparcl-tdep.c: Obsolete file.
7987 * config/sparc/tm-sparclite.h: Obsolete file.
7988 * config/sparc/sparclite.mt: Obsolete file.
7989 * config/sparc/sparclet.mt: Obsolete file.
7990 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7991 sparc86x-*-* obsolete.
7993 2003-04-15 David Carlton <carlton@math.stanford.edu>
7995 * Makefile.in (SFILES): Add cp-namespace.c.
7996 (COMMON_OBS): Add cp-namespace.o.
7997 (block.o): Depend on gdb_obstack_h and cp_support_h.
7998 (buildsym.o): Depend on cp_support_h.
7999 (cp-namespace.o): New.
8000 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8001 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8002 (dwarf2read.o): Depend on cp_support_h.
8003 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8004 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8005 processing_current_namespace.
8006 (read_namespace): Update processing_current_namespace; check for
8007 anonymous namespaces.
8008 (dwarf2_name): New function.
8009 (dwarf2_extension): Ditto.
8010 * cp-support.h: Update copyright, contributors.
8011 Add inclusion guards.
8012 Add opaque declaration for structs obstack, block, symbol.
8013 (struct using_direct): New struct.
8014 Add declarations for cp_find_first_component,
8015 cp_entire_prefix_len, processing_has_namespace_info,
8016 processing_current_namespace, cp_is_anonymous,
8017 cp_add_using_directive, cp_initialize_namespace,
8018 cp_finalize_namespace, cp_set_block_scope,
8019 cp_scan_for_anonymous_namespaces.
8020 * cp-namespace.c: New file.
8021 * cp-support.c: Update copyright.
8022 Include ctype.h, gdb_assert.h, gdbcmd.h.
8023 New variable maint_cplus_cmd_list.
8024 (cp_find_first_component): New function.
8025 (cp_entire_prefix_len, maint_cplus_command)
8026 (first_component_command, _initialize_cp_support): Ditto.
8027 * buildsym.c: Include cp-support.h.
8028 New variable using_list.
8029 (add_symbol_to_list): Check for anonymous namespaces.
8030 (finish_block): Set block's scope.
8031 (start_symtab): Initialize C++ namespace support.
8032 (end_symtab): Finalize C++ namespace support.
8033 * block.h: Add opaque declarations for structs
8034 block_namespace_info, using_direct, and obstack.
8035 Add declarations for block_set_scope and block_set_using.
8036 (struct block): Add 'language_specific' member.
8037 (BLOCK_NAMESPACE): New macro.
8038 * block.c: Include gdb_obstack.h and cp-support.h.
8039 (struct block_namespace_info): New struct.
8040 (block_set_scope): New function.
8041 (block_set_using, block_initialize_namespace): Ditto.
8043 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8045 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8046 (locate_base): Return early if there aren't any link map offsets.
8047 (svr4_solib_create_inferior_hook): Warn if shared library support
8050 2003-04-14 David Carlton <carlton@math.stanford.edu>
8052 * symtab.c (symbol_set_names): Add prefix when storing Java names
8053 in hash table. Fix for PR java/1039.
8055 2003-04-14 David Carlton <carlton@math.stanford.edu>
8057 * symtab.c (symbol_set_names): Rename 'name' arg to
8058 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8059 * symtab.h: Change 'name' argument in declaration of
8060 symbol_set_names to 'linkage_name'.
8061 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8063 2003-04-14 Andrew Cagney <cagney@redhat.com>
8065 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8066 return the fully sign-extended register value.
8067 (get_frame_pointer): Ditto.
8068 (mips_pop_frame): Initialize "proc_desc" after checking for a
8071 2003-04-14 Andrew Cagney <cagney@redhat.com>
8073 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8074 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8075 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8076 (mips_push_register): Delete function.
8077 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8080 2003-04-14 Jim Blandy <jimb@redhat.com>
8082 * symmisc.c: #include "gdb_regex.h".
8083 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8085 * maint.c (maintenance_list_command): New function.
8086 (_initialize_maint_cmds): Register the above as commands.
8087 * symtab.h (maintenance_list_symtabs,
8088 maintenance_list_psymtabs): New declarations.
8089 * cli/cli-cmds.c (maintenancelistlist): New variable.
8090 (init_cmd_lists): Initialize it.
8091 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8092 * gdbcmd.h (maintenancelistlist): New declaration.
8093 * Makefile.in (symmisc.o): Update dependencies.
8095 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8097 * s390-nat.c: Include asm/types.h for addr_t.
8099 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8101 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8102 actually incoming type.
8104 2003-04-13 Andrew Cagney <cagney@redhat.com>
8106 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8107 get_next_frame and get_frame_saved_regs.
8109 2003-04-13 Andrew Cagney <cagney@redhat.com>
8111 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8112 of gdbarch_num_regs.
8114 2003-04-13 Andrew Cagney <cagney@redhat.com>
8116 * frame.h: Mention what replaced what in "struct frame_info".
8117 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8118 deprecated_update_frame_base_hack and
8119 deprecated_update_frame_pc_hack.
8120 * hppa-tdep.c: Ditto.
8122 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8124 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8125 to read_reg and update its comment. Remove regnum member.
8126 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8127 Don't call read_reg when setting in_reg. Call read_reg to get
8128 the frame base if it's in a register. Return the register number
8129 on the stack instead of in the context. Remove extra arguments
8131 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8132 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8133 the register number on the expression stack.
8134 (needs_frame_read_reg): Remove extra arguments.
8136 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8138 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8140 (execute_stack_op): All callers updated.
8141 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8142 * dwarf2loc.c (find_location_expression): New function.
8143 (dwarf_expr_frame_base): Call it.
8144 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8145 (dwarf2_tracepoint_var_ref): New function, broken out from
8146 locexpr_tracepoint_var_ref.
8147 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8149 (loclist_read_variable, loclist_read_needs_frame): New functions.
8150 (loclist_describe_location, loclist_tracepoint_var_ref): New
8152 (dwarf2_loclist_funcs): New struct location_funcs.
8153 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8154 (struct dwarf2_locexpr_baton): Add comments.
8155 (dwarf2_loclist_funcs): New extern.
8156 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8157 base_address and base_known.
8158 (dwarf_loc_buffer): New variable.
8159 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8160 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8161 (dwarf2_has_info): Initialize dwarf_loc_offset.
8162 (dwarf2_build_psymtabs): Read in .debug_loc.
8163 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8165 (psymtab_to_symtab_1): Likewise. Move base address calculation
8167 (dwarf2_get_pc_bounds): ... here. Use the base address from
8169 (dwarf2_symbol_mark_computed): Handle location lists.
8171 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8173 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8174 if the linkage name demangled successfully.
8176 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8178 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8179 disassmbly_flavour): Removed.
8181 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8183 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8185 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8187 2003-04-12 Andrew Cagney <cagney@redhat.com>
8189 * frame.h (struct frame_info): Move definition from here ...
8190 * frame.c (struct frame_info): ... to here.
8192 2003-04-12 Andrew Cagney <cagney@redhat.com>
8194 * gdbthread.h (save_infrun_state): Delete parameter
8196 (struct thread_info): Delete field "prev_func_start".
8197 (load_infrun_state): Ditto.
8198 * thread.c (load_infrun_state, save_infrun_state): Update.
8199 * infrun.c (prev_func_start): Delete variable.
8200 (context_switch, init_wait_for_inferior): Update.
8201 (stop_stepping, keep_going): Update.
8203 2003-04-12 Andrew Cagney <cagney@redhat.com>
8205 * gdbarch.sh: Add missing opaque declarations.
8206 * gdbarch.h: Regnerate.
8207 * symtab.h: Add missing opaque declarations.
8208 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8209 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8210 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8211 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8212 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8213 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8214 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8215 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8216 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8217 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8218 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8219 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8220 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8222 2003-04-11 Andrew Cagney <cagney@redhat.com>
8224 * frame.c (get_frame_id): Return this frame's "id".
8225 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8227 (legacy_saved_regs_this_id): Replace function body with
8229 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8230 FRAME_OBSTACK_ZALLOC.
8231 (create_new_frame): Mark the frame ID as valid.
8233 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8235 * Makefile.in (libbfd_h): Added missing setting.
8236 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8237 according to the selected ABI.
8239 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8241 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8243 2003-04-11 Andrew Cagney <cagney@redhat.com>
8245 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8246 SAVED_PC_AFTER_CALL.
8247 * gdbarch.h, gdbarch.c: Regenerate.
8248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8249 * x86-64-tdep.c (x86_64_init_abi): Update.
8250 * vax-tdep.c (vax_gdbarch_init): Update.
8251 * v850-tdep.c (v850_gdbarch_init): Update.
8252 * sparc-tdep.c (sparc_gdbarch_init): Update.
8253 * sh-tdep.c (sh_gdbarch_init): Update.
8254 * s390-tdep.c (s390_gdbarch_init): Update.
8255 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8256 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8257 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8258 * mips-tdep.c (mips_gdbarch_init): Update.
8259 * mcore-tdep.c (mcore_gdbarch_init): Update.
8260 * m68k-tdep.c (m68k_gdbarch_init): Update.
8261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8262 * ia64-tdep.c (ia64_gdbarch_init): Update.
8263 (ia64_saved_pc_after_call): Update declaration.
8264 * i386ly-tdep.c (i386lynx_init_abi): Update.
8265 * i386-tdep.c (i386_gdbarch_init): Update.
8266 * hppa-tdep.c (hppa_gdbarch_init): Update.
8267 * h8300-tdep.c (h8300_gdbarch_init): Update.
8268 * frv-tdep.c (frv_gdbarch_init): Update.
8269 * cris-tdep.c (cris_gdbarch_init): Update.
8270 * avr-tdep.c (avr_gdbarch_init): Update.
8271 * arm-tdep.c (arm_gdbarch_init): Update.
8272 * alpha-tdep.c (alpha_gdbarch_init): Update.
8273 * ns32knbsd-nat.c (frame_num_args): Update.
8274 * ns32k-tdep.c (umax_frame_num_args): Update.
8275 * mips-tdep.c (mips_init_frame_pc_first): Update.
8276 * infrun.c (step_over_function): Update.
8277 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8278 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8279 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8280 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8281 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8282 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8283 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8284 * arch-utils.c (init_frame_pc_default): Update.
8285 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8286 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8289 2003-04-11 Andrew Cagney <cagney@redhat.com>
8291 * i387-tdep.c: Update copyright.
8292 (i387_to_double): Delete function.
8293 (double_to_i387): Delete function.
8295 2003-04-10 Andrew Cagney <cagney@redhat.com>
8297 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8298 frame's function's address. Simplify.
8299 (d10v_frame_unwind_cache): Check that the frame's function is
8302 2003-04-10 Jim Blandy <jimb@redhat.com>
8304 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8305 call to set_gdbarch_deprecated_push_arguments.
8307 2003-04-10 Andrew Cagney <cagney@redhat.com>
8309 * frame.c (fprint_frame_id): New function.
8310 (fprint_frame_type, fprint_frame): New function.
8311 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8312 (create_sentinel_frame, get_frame_id): Ditto.
8313 (frame_id_p, frame_id_eq): Ditto.
8314 (frame_id_inner, create_new_frame): Ditto.
8315 (legacy_get_prev_frame, get_prev_frame): Ditto.
8316 (deprecated_update_frame_pc_hack): Ditto.
8317 (frame_register_unwind): Ditto.
8318 (deprecated_update_frame_base_hack): Ditto.
8320 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8322 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8323 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8324 frame_chain function.
8325 * Makefile.in: Add dependencies due to above change.
8327 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8329 * blockframe.c (legacy_frame_chain_valid): Move call to
8330 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8333 2003-04-09 Andrew Cagney <cagney@redhat.com>
8335 * frame.h (struct frame_id): Replace "pc" and "base" with
8336 "stack_addr" and "code_addr". Update comments.
8337 (frame_id_build): Update parameter names and comment.
8338 (struct frame_info): Replace "id_p" and "id" with "this_id".
8339 * dummy-frame.c (dummy_frame_this_id): Update.
8340 * breakpoint.c (print_one_breakpoint): Update.
8341 * frame.c (get_frame_id): Update.
8342 (get_frame_base, frame_id_build): Update.
8343 (create_sentinel_frame, legacy_get_prev_frame): Update.
8344 (deprecated_update_frame_base_hack): Update.
8345 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8346 (frame_id_inner): Ditto.
8348 2003-04-09 Andrew Cagney <cagney@redhat.com>
8350 * defs.h (gdb_print_host_address): Make "addr" parameter a
8352 * utils.c (gdb_print_host_address): Update.
8354 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8356 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8357 register number for R0 is 0.
8359 2003-04-09 J. Brobecker <brobecker@gnat.com>
8361 * frame.h (struct gdbarch): Add opaque structure definition
8362 to avoid a compilation warning on LynxOS 4.0.
8364 2003-04-09 Andrew Cagney <cagney@redhat.com>
8366 * frame.h (struct frame_info): Delete field "pc". Replace
8367 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8369 * frame.c (frame_pc_unwind): Update.
8370 (create_sentinel_frame): Do not set "pc".
8371 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8372 (get_frame_pc): Call frame_pc_unwind.
8373 (deprecated_update_frame_pc_hack): Update.
8374 (create_new_frame): Use "pc" not "->pc".
8376 2003-04-09 Andrew Cagney <cagney@redhat.com>
8378 * frame.c (get_frame_id): Eliminate code updating "frame".
8379 (legacy_get_prev_frame): Ditto.
8380 (get_frame_base): Return id.base directly.
8381 (deprecated_update_frame_base_hack): Update "id.base".
8382 * frame.h (struct frame_info): Delete field "frame".
8384 2003-04-09 Andrew Cagney <cagney@redhat.com>
8386 * NEWS: Mention that the "Sequent family" is obsolete.
8387 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8388 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8389 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8390 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8391 * config/i386/tm-ptx4.h: Obsolete file.
8392 * config/i386/tm-ptx.h: Obsolete file.
8393 * symm-tdep.c: Obsolete file.
8394 * config/i386/symmetry.mt: Obsolete file.
8395 * config/i386/tm-symmetry.h: Obsolete file.
8396 * symm-nat.c: Obsolete file.
8397 * config/i386/nm-symmetry.h: Obsolete file.
8398 * config/i386/xm-symmetry.h: Obsolete file.
8399 * config/i386/symmetry.mh: Obsolete file.
8400 * config/i386/nm-ptx4.h: Obsolete file.
8401 * config/i386/ptx4.mh: Obsolete file.
8402 * config/i386/ptx.mt: Obsolete file.
8403 * config/i386/ptx.mh: Obsolete file.
8404 * config/i386/xm-ptx4.h: Obsolete file.
8405 * config/i386/xm-ptx.h: Obsolete file.
8407 2003-04-09 Andrew Cagney <cagney@redhat.com>
8409 Obsolete mips*-*-mach3*.
8410 * NEWS: Mention that mips*-*-mach3* is obsolete.
8411 * m3-nat.c: Obsolete file.
8412 * config/nm-m3.h: Obsolete file.
8413 * config/mips/tm-mipsm3.h: Obsolete file.
8414 * config/mips/mipsm3.mt: Obsolete file.
8415 * config/mips/mipsm3.mh: Obsolete file.
8416 * config/mips/xm-mipsm3.h: Obsolete file.
8417 * mipsm3-nat.c: Obsolete file.
8418 * configure.host: Obsolete mips-dec-mach3*.
8419 * configure.tgt: Obsolete mips*-*-mach3*.
8421 2003-04-09 Andrew Cagney <cagney@redhat.com>
8423 * doublest.h: Update copyright.
8424 (deprecated_store_floating, deprecated_extract_floating): Rename
8425 store_floating and extract_floating. Update comments.
8426 * doublest.c: Update copyright.
8427 (extract_floating_by_length): Replace extract_floating.
8428 (store_floating_by_length): Replace store_floating.
8429 (deprecated_extract_floating): New function.
8430 (deprecated_store_floating): New function.
8431 (extract_typed_floating): Call extract_floating_by_length.
8432 (store_typed_floating): Call store_floating_by_length.
8433 * x86-64-tdep.c (x86_64_store_return_value): Update.
8434 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8435 (sh64_extract_return_value): Update.
8436 (sh_sh4_register_convert_to_virtual): Update.
8437 (sh_sh64_register_convert_to_virtual): Update.
8438 (sh_sh4_register_convert_to_raw): Update.
8439 (sh_sh64_register_convert_to_raw): Update.
8440 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8441 (rs6000_register_convert_to_raw): Update.
8442 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8443 (ia64_register_convert_to_raw): Update.
8444 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8445 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8446 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8447 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8448 (alpha_register_convert_to_raw): Update.
8450 2003-04-08 Andrew Cagney <cagney@redhat.com>
8452 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8453 * gdbarch.h, gdbarch.c: Re-generate.
8454 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8455 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8456 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8457 conditionally, use frame_pc_unwind as an alternative. Add
8459 * arch-utils.c (init_frame_pc_default): Only call
8460 SAVED_PC_AFTER_CALL when available.
8462 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8464 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8465 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8466 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8467 (start_remote): Ditto.
8468 (handle_inferior_event): Ditto.
8469 (save_inferior_status): Ditto.
8470 (restore_inferior_status): Ditto.
8471 * infcmd.c (attach_command): Ditto.
8472 * fork-child.c (startup_inferior): Ditto.
8473 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8474 * alpha-tdep.c (heuristic_proc_start): Ditto.
8475 * mips-tdep.c (heuristic_proc_start): Ditto.
8476 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8477 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8478 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8479 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8480 * remote-vx.c (vx_create_inferior): Ditto.
8482 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8484 * infrun.c (stop_soon_quietly): Make it an enum, to better
8485 override the default behavior of handle_inferior_event.
8486 (clear_proceed_status): Update uses of stop_soon_quietly to
8487 reflect that it is now an enum.
8488 (start_remote): Ditto.
8489 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8490 is set to handle the new GNU/Linux kernel behavior for
8491 attach/sigstop. Update uses of stop_soon_quietly.
8492 * inferior.h (enum stop_kind): New enum.
8493 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8494 Reset normal handle_inferior_event behavior, afterwards.
8495 * fork-child.c (startup_inferior): Update.
8496 * alpha-tdep.c (heuristic_proc_start): Update.
8497 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8498 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8499 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8500 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8501 * remote-vx.c (vx_create_inferior): Update.
8502 * mips-tdep.c (heuristic_proc_start): Update.
8504 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8506 * disasm.c (dump_insns): Move variables inside loop, or they will
8507 be freed more than once, causing wild memory corruptions.
8508 (gdb_disassembly): Look for the substring "-thread",
8509 instead of "-threads" in the target name, to make sure to find
8510 the 'multi-thread' target. Also, make sure we do the right thing
8511 with the "core" target.
8513 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8515 * mips-tdep.c (mips_print_fp_register): New function, created from
8516 do_fp_register_row(). Registers are now (also) printed as hex.
8517 Only one register is printed per row.
8518 (mips_print_register, do_fp_register_row): Print floating point
8519 registers with mips_print_fp_register().
8521 2003-04-06 Andrew Cagney <cagney@redhat.com>
8523 * valprint.h (inspect_it): Add extern declaration.
8524 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8525 (selectors_info, classes_info): Ditto.
8526 (find_objc_msgcall): Fix indentation.
8527 (objc_printstr): Delete extern declarations.
8529 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8531 2003-04-06 Andrew Cagney <cagney@redhat.com>
8533 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8535 * frame.c (legacy_saved_regs_this_id): Update.
8536 (legacy_get_prev_frame): Update.
8537 * xstormy16-tdep.c: Update comment.
8538 * sparc-tdep.c (sparc_frame_chain): Update comment.
8539 * blockframe.c (legacy_frame_chain_valid): Update.
8541 2003-04-06 Andrew Cagney <cagney@redhat.com>
8543 * valprint.c (val_print_type_code_int): Delete #ifdef
8544 PRINT_TYPELESS_INTEGER code.
8546 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8547 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8548 multi-arch definition.
8549 * gdbarch.h: Re-generate.
8551 2003-04-05 Andrew Cagney <cagney@redhat.com>
8553 Eliminate FRAME_FIND_SAVED_REGS.
8554 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8555 Change FSR parameter to a pointer.
8556 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8557 Assume FSR parameter is a pointer.
8558 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8560 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8561 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8562 saved_regs a pointer.
8563 (hppa_frame_saved_pc): Ditto.
8564 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8565 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8567 (restore_pc_queue): Make fsr a pointer.
8568 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8569 (hppa_frame_chain): Make saved_regs a pointer, call
8570 hppa_frame_init_saved_regs.
8571 * sparc-tdep.c: Include "gdb_assert.h".
8572 (sparc_frame_find_saved_regs): Replace internal_error with
8574 * remote-vxsparc.c (vx_read_register): Delete reference to
8575 FRAME_FIND_SAVED_REGS.
8576 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8577 * gdbarch.h: Regenerate.
8578 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8579 (deprecated_get_frame_saved_regs): Delete declaration.
8580 (struct frame_saved_regs): Delete definition.
8581 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8582 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8583 (hppa_frame_find_saved_regs): Delete declaration.
8584 (FRAME_FIND_SAVED_REGS): Delete macro.
8585 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8586 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8587 FRAME_FIND_SAVED_REGS in comment.
8589 2003-04-05 Andrew Cagney <cagney@redhat.com>
8591 * frame.c (frame_func_unwind, get_frame_func): New functions.
8592 * frame.h (get_frame_func, frame_func_unwind): Declare.
8593 (struct frame_info): Add field "prev_func" for caching the
8594 previous frame's function address.
8595 * arm-tdep.c (arm_frameless_function_invocation): Combine
8596 get_pc_function_start and get_frame_pc into get_frame_func.
8597 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8598 (sh64_nofp_frame_init_saved_regs): Ditto.
8599 * s390-tdep.c (s390_function_start): Ditto.
8600 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8601 (rs6000_frameless_function_invocation): Ditto.
8602 (rs6000_frame_saved_pc): Ditto.
8603 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8604 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8605 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8606 (i386_frame_init_saved_regs): Ditto.
8607 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8608 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8609 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8610 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8611 * blockframe.c (frameless_look_for_prologue): Ditto.
8613 2003-04-05 Andrew Cagney <cagney@redhat.com>
8615 * frame.c (legacy_get_prev_frame): Link prev to next at the
8616 function start. Update comments.
8618 2003-04-05 Andrew Cagney <cagney@redhat.com>
8620 * frame.c (get_frame_id): Update comment.
8621 (legacy_get_prev_frame): Update comment.
8622 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8623 * gdbarch.h: Regenerate.
8624 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8625 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8627 2003-04-05 Andrew Cagney <cagney@redhat.com>
8629 * stack.c (print_frame_info): Use get_frame_pc.
8631 2003-04-04 Andrew Cagney <cagney@redhat.com>
8633 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8634 the frame's type from the unwinder.
8635 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8636 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8637 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8638 (get_frame_base_address): Use get_frame_type.
8639 (get_frame_locals_address, get_frame_args_address): Ditto.
8640 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8641 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8642 (struct frame_info): Add comment explaining why the frame contains
8644 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8645 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8646 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8648 * frame-unwind.h: Include "frame.h".
8649 (struct frame_unwind): Add "type" field.
8650 * Makefile.in (frame_unwind_h): Add $(frame_h).
8652 2003-04-04 Andrew Cagney <cagney@redhat.com>
8654 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8655 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8656 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8658 (d10v_unwind_dummy_id): Use frame_id_build.
8659 * frame.c (find_frame_sal): Use get_frame_pc.
8660 (create_new_frame): Use deprecated_update_frame_pc_hack and
8661 deprecated_update_frame_base_hack.
8662 (create_sentinel_frame): Add comment about ->pc going away.
8663 (get_prev_frame): Add comment about ->pc going away.
8664 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8665 frame_id_build, deprecated_update_frame_pc_hack and
8666 deprecated_update_frame_base_hack.
8667 (select_frame): Use get_frame_pc.
8668 (legacy_saved_regs_this_id): Use frame_id_build.
8670 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8672 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8673 signed integer case.
8674 (classify_argument): Handle enumerations and references.
8676 2003-04-04 Andrew Cagney <cagney@redhat.com>
8678 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8681 2003-04-01 Adam Fedor <fedor@gnu.org>
8683 * gdb/objc-lang.c (selectors_info): Replace calls to
8684 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8685 SYMBOL_NATURAL_NAME.
8686 (classes_info, find_methods): Likewise.
8688 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8690 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8691 ``mach'' to the value determined by bfd_default_set_arch_mach().
8693 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8695 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8696 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8697 (mi-cmd-file.o): Update dependencies.
8699 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8701 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8702 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8704 2003-04-01 Adam Fedor <fedor@gnu.org>
8706 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8707 * language.h (struct language_defn): Add la_demangle.
8708 (language_demangle): Declare.
8709 * language.c (language_demangle): New function.
8710 (unk_lang_demangle): Likewise.
8711 (unknown_language_defn, auto_language_defn, local_language_defn):
8712 Add ukn_lang_demangle.
8713 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8714 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8715 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8716 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8717 * jv-lang.c (java_demangle): New function
8718 (java_language_defn): Use it for la_demangle element.
8719 * objc-lang.c (objc_demangle): Add options argument
8720 (objc_language_defn): Use objc_demangle for la_demangle element.
8721 * maint.c (maintenance_demangle): Replace switch with
8722 call to language_demangle.
8723 * utils.c (fprintf_symbol_filtered): Likewise.
8725 2003-04-01 Andrew Cagney <cagney@redhat.com>
8727 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8728 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8729 PRINT_TYPELESS_INTEGER.
8730 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8731 PUSH_RETURN_ADDRESS.
8733 2003-04-01 Andrew Cagney <cagney@redhat.com>
8735 * Makefile.in (d10v-tdep.o): Update dependencies.
8736 * d10v-tdep.c: Include "frame-base.h".
8737 (d10v_frame_unwind): Make constant.
8738 (d10v_frame_base_address): New function.
8739 (d10v_frame_base): New variable.
8740 (d10v_gdbarch_init): Set frame_base default.
8741 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8743 (d10v_frame_unwind_cache): Set and use "prev_sp".
8744 (d10v_frame_this_id): Use the previous frame's inner most stack
8745 address and this frame's func address for the frame ID. Use
8746 frame_id_build. Don't analyze beyond the current instruction.
8748 2003-04-01 Andrew Cagney <cagney@redhat.com>
8750 * frame.h (get_frame_locals_address, get_frame_args_address):
8751 Refer to the base address, instead of the address of the first
8754 2003-04-01 Andrew Cagney <cagney@redhat.com>
8756 Add frame debug info addresses:
8757 * frame-base.c: New file.
8758 * frame-base.h: New file.
8759 * frame.h (struct frame_base): Add opaque declaration.
8760 (get_frame_base): Update comment.
8761 (get_frame_base_address): Declare.
8762 (get_frame_locals_address): Declare.
8763 (get_frame_args_address): Declare.
8764 (struct frame_info): Add "base" and "base_cache". Update
8765 comments on the unwinder.
8766 * frame.c: Include "frame-base.h".
8767 (get_frame_locals_address): New function.
8768 (get_frame_base_address): New function.
8769 (get_frame_args_address): New function.
8770 * findvar.c (read_var_value): Use get_frame_locals_address and
8771 get_frame_args_address.
8772 * stack.c (frame_info): Use get_frame_locals_address and
8773 get_frame_args_address.
8774 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8775 moved to "frame-base.c".
8776 * printcmd.c (print_frame_nameless_args): Ditto.
8777 * symtab.h (address_class): Update comments.
8778 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8779 get_frame_base_address.
8780 * dwarf2expr.c (execute_stack_op): Ditto.
8781 * Makefile.in (frame_base_h): Define.
8782 (frame.o): Update dependencies.
8783 (frame-base.o): Add dependencies.
8784 (SFILES): Add frame-base.c.
8785 (COMMON_OBS): Add frame-base.o.
8787 2003-04-01 Andrew Cagney <cagney@redhat.com>
8789 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8790 CALL_DUMMY_LENGTH): Ditto.
8791 * gdbarch.c: Re-generate.
8792 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8793 (CALL_DUMMY_LENGTH): Delete macro.
8794 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8795 * arm-tdep.c (arm_gdbarch_init): Ditto.
8796 * avr-tdep.c (avr_gdbarch_init): Ditto.
8797 * cris-tdep.c (cris_gdbarch_init): Ditto.
8798 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8799 * frv-tdep.c (frv_gdbarch_init): Ditto.
8800 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8801 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8802 * i386-tdep.c (i386_gdbarch_init): Ditto.
8803 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8805 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8806 * mips-tdep.c (mips_gdbarch_init): Ditto.
8807 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8808 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8809 * s390-tdep.c (s390_gdbarch_init): Ditto.
8810 * sh-tdep.c (sh_gdbarch_init): Ditto.
8811 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8812 * v850-tdep.c (v850_gdbarch_init): Ditto.
8813 * vax-tdep.c (vax_gdbarch_init): Ditto.
8814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8816 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8818 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8820 2003-04-01 Andrew Cagney <cagney@redhat.com>
8822 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8823 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8824 * gdbarch.h, gdbarch.c: Re-generate.
8825 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8826 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8827 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8828 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8829 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8830 * infcmd.c (run_stack_dummy): Simplify assuming
8831 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8832 * infrun.c (handle_inferior_event): Ditto.
8833 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8834 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8835 * arm-tdep.c (arm_gdbarch_init): Ditto.
8836 * avr-tdep.c (avr_gdbarch_init): Ditto.
8837 * cris-tdep.c (cris_gdbarch_init): Ditto.
8838 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8839 * frv-tdep.c (frv_gdbarch_init): Ditto.
8840 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8841 * i386-tdep.c (i386_gdbarch_init): Ditto.
8842 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8844 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8845 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8846 * mips-tdep.c (mips_gdbarch_init): Ditto.
8847 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8848 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8849 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8850 * s390-tdep.c (s390_gdbarch_init): Ditto.
8851 * sh-tdep.c (sh_gdbarch_init): Ditto.
8852 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8853 * v850-tdep.c (v850_gdbarch_init): Ditto.
8854 * vax-tdep.c (vax_gdbarch_init): Ditto.
8855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8857 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8859 * symfile.c (symfile_relocate_debug_section): Update call to
8860 bfd_simple_get_relocated_section_contents.
8862 2003-03-31 Andrew Cagney <cagney@redhat.com>
8864 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8865 * gdbarch.h, gdbarch.c: Regenerate.
8866 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8867 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8869 * frame.h (generic_fix_call_dummy): Delete declaration.
8870 * dummy-frame.h: Update comment.
8871 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8872 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8874 * sh-tdep.c (sh_gdbarch_init): Ditto.
8875 * s390-tdep.c (s390_gdbarch_init): Ditto.
8876 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8877 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8879 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8880 * i386-tdep.c (i386_gdbarch_init): Ditto.
8881 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8882 * frv-tdep.c (frv_gdbarch_init): Ditto.
8883 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8884 * cris-tdep.c (cris_gdbarch_init): Ditto.
8885 * avr-tdep.c (avr_gdbarch_init): Ditto.
8886 * arm-tdep.c (arm_gdbarch_init): Ditto.
8888 2003-03-31 J. Brobecker <brobecker@gnat.com>
8890 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8891 (INIT_FRAME_AP): Likewise.
8892 (EXTRA_FRAME_INFO): Likewise.
8894 2003-03-31 Andrew Cagney <cagney@redhat.com>
8896 * gdbarch.sh: Include "symfile.h".
8897 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8898 * gdbarch.h, gdbarch.c: Re-generate.
8899 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8901 call_dummy_address, the default is at entry_point_address.
8902 * v850-tdep.c (v850_gdbarch_init): Ditto.
8903 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8904 * sh-tdep.c (sh_gdbarch_init): Ditto.
8905 * s390-tdep.c (s390_gdbarch_init): Ditto.
8906 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8908 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8909 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8910 * i386-tdep.c (i386_gdbarch_init): Ditto.
8911 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8912 * frv-tdep.c (frv_gdbarch_init): Ditto.
8913 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8914 * cris-tdep.c (cris_gdbarch_init): Ditto.
8915 * arm-tdep.c (arm_gdbarch_init): Ditto.
8917 2003-03-31 Andrew Cagney <cagney@redhat.com>
8919 * gdbarch.sh (CALL_DUMMY_P): Delete.
8920 * gdbarch.h, gdbarch.c: Re-generate.
8921 * inferior.h (CALL_DUMMY_P): Delete macro.
8922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8923 * vax-tdep.c (vax_gdbarch_init): Update.
8924 * v850-tdep.c (v850_gdbarch_init): Update.
8925 * sparc-tdep.c (sparc_gdbarch_init): Update.
8926 * sh-tdep.c (sh_gdbarch_init): Update.
8927 * s390-tdep.c (s390_gdbarch_init): Update.
8928 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8929 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8930 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8931 * mips-tdep.c (mips_gdbarch_init): Update.
8932 * mcore-tdep.c (mcore_gdbarch_init): Update.
8933 * m68k-tdep.c (m68k_gdbarch_init): Update.
8934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8935 * ia64-tdep.c (ia64_gdbarch_init): Update.
8936 * i386-tdep.c (i386_gdbarch_init): Update.
8937 * h8300-tdep.c (h8300_gdbarch_init): Update.
8938 * frv-tdep.c (frv_gdbarch_init): Update.
8939 * d10v-tdep.c (d10v_gdbarch_init): Update.
8940 * cris-tdep.c (cris_gdbarch_init): Update.
8941 * breakpoint.c (deprecated_frame_in_dummy): Update.
8942 * avr-tdep.c (avr_gdbarch_init): Update.
8943 * alpha-tdep.c (alpha_gdbarch_init): Update.
8944 * arm-tdep.c (arm_gdbarch_init): Update.
8945 * dummy-frame.c (dummy_frame_this_id): Update comments.
8946 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8947 * frame.c (legacy_get_prev_frame): Ditto.
8948 * valops.c (call_function_by_hand): Delete function.
8949 (hand_function_call): Rename to call_function_by_hand
8951 2003-03-30 Andrew Cagney <cagney@redhat.com>
8953 2002-11-10 Klee Dienes <kdienes@apple.com>
8954 * value.h (struct value): Update comment.
8956 2003-03-30 Andrew Cagney <cagney@redhat.com>
8958 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8960 (d10v_gdbarch_init): Do not set fp_regnum.
8962 * frame.c (get_frame_base): Force ID initialization.
8963 (get_prev_frame): Move computation of the frame ID from here ...
8964 (get_frame_id): ... to here.
8965 (legacy_get_prev_frame): Mark the frame ID as valid.
8966 * frame.h (struct frame_info): Add field "id_p".
8968 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8970 * i386-tdep.c (i386_store_struct_return): Removed.
8971 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8973 2003-03-30 Andrew Cagney <cagney@redhat.com>
8975 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8976 * gdbarch.h, gdbarch.c: Regenerate.
8977 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8978 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8979 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8980 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8981 * i386-tdep.c (i386_gdbarch_init): Ditto.
8982 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8983 * cris-tdep.c (cris_gdbarch_init): Ditto.
8984 * vax-tdep.c (vax_gdbarch_init): Ditto.
8985 * s390-tdep.c (s390_gdbarch_init): Ditto.
8986 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8987 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8988 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8989 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8990 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8991 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8992 * sparc-tdep.c (sparc_gdbarch_init): Update.
8993 * sh-tdep.c (sh_gdbarch_init): Update.
8994 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8995 * mips-tdep.c (mips_gdbarch_init): Update.
8996 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8997 * ia64-tdep.c (ia64_gdbarch_init): Update.
8998 * frv-tdep.c (frv_gdbarch_init): Update.
8999 * avr-tdep.c (avr_gdbarch_init): Update.
9000 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9001 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9002 instead of when push_dummy_call is not available.
9004 2003-03-30 Andrew Cagney <cagney@redhat.com>
9006 * infttrace.c: Include "gdbthread.h".
9007 (parent_attach_all): Fix function signature.
9008 (call_ptrace): Update call.
9009 * Makefile.in (infttrace.o): Update dependencies.
9011 2003-03-30 Andrew Cagney <cagney@redhat.com>
9013 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9014 PUSH_RETURN_ADDRESS.
9015 * gdbarch.h, gdbarch.c: Regenerate.
9016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9017 * x86-64-tdep.c (x86_64_init_abi): Update.
9018 * v850-tdep.c (v850_gdbarch_init): Update.
9019 * sparc-tdep.c (sparc_gdbarch_init): Update.
9020 * sh-tdep.c (sh_gdbarch_init): Update.
9021 * s390-tdep.c (s390_gdbarch_init): Update.
9022 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9023 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9024 * mips-tdep.c (mips_gdbarch_init): Update.
9025 * mcore-tdep.c (mcore_gdbarch_init): Update.
9026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9027 * ia64-tdep.c (ia64_gdbarch_init): Update.
9028 * i386-tdep.c (i386_gdbarch_init): Update.
9029 * h8300-tdep.c (h8300_gdbarch_init): Update.
9030 * frv-tdep.c (frv_gdbarch_init): Update.
9031 * cris-tdep.c (cris_gdbarch_init): Update.
9032 * avr-tdep.c (avr_gdbarch_init): Update.
9033 * arm-tdep.c (arm_gdbarch_init): Update.
9034 * valops.c (hand_function_call): Update.
9036 2003-03-29 Andrew Cagney <cagney@redhat.com>
9038 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9039 sizeof_call_dummy_words.
9040 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9042 * gdbarch.h: Regenerate.
9044 2003-03-29 Andrew Cagney <cagney@redhat.com>
9046 * infttrace.h: New file.
9047 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9048 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9049 (hpread_read_doc_function_type): Detect an initialized type1.
9050 (hpread_quick_traverse): Initialize mod_name_string.
9051 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9052 (som_solib_get_solib_by_pc): Declare.
9053 (so_lib_thread_start_addr): Declare.
9054 (no_shared_libraries): Declare.
9055 * somread.c (init_import_symbols): Make static. Add forward
9057 * config/pa/nm-hppah.h: Include "infttrace.h" for
9059 (hppa_insert_hw_watchpoint): Declare.
9060 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9061 * hppah-nat.c: Include "gdb_string.h".
9062 (parent_attach_all): Delete extern declaration, moved to
9064 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9066 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9067 * Makefile.in (infttrace_h): Define.
9068 (hpread.o): Update dependencies.
9069 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9070 * hppa-hpux-tdep.c: Include "gdb_string.h".
9071 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9072 * infrun.c (handle_inferior_event): Always initialize
9073 stepped_after_stopped_by_watchpoint. Add default and remove
9074 fallthrough in switch statement.
9075 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9077 (hppa_remove_hw_watchpoint): Ditto.
9079 2003-03-29 Andrew Cagney <cagney@redhat.com>
9081 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9084 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9086 * arm-tdep.c (arm_push_arguments): Delete.
9087 (struct stack_item): New type.
9088 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9089 (arm_store_struct_return): Delte.
9090 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9091 arm_push_arguments or arm_store_struct_return.
9093 2003-03-28 Andrew Cagney <cagney@redhat.com>
9095 * Makefile.in (d10v-tdep.o): Update dependencies.
9096 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9097 * d10v-tdep.c: Include "remote.h".
9098 (target_resume_hook): Delete extern declaration.
9099 (target_wait_loop_hook): Ditto.
9100 (tdisassemble_command): Eliminate assignment in "if" conditional.
9101 (d10v_ts2_register_sim_regno): Eliminate call to
9102 legacy_register_sim_regno.
9103 (d10v_ts3_register_sim_regno): Ditto.
9105 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9107 * thread.c: Reindented.
9109 * linux-proc.c: Ditto.
9111 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9113 * MAINTAINERS (write after approval): Add myself.
9115 2003-03-27 Theodore A. Roth <troth@openavr.org>
9117 * objc-exp.y: Add missing semi-colons.
9119 2003-03-27 Andrew Cagney <cagney@redhat.com>
9121 * regcache.c (write_sp): Delete function and references.
9122 * inferior.h (write_sp): Delete declaration.
9123 * valops.c (hand_function_call): Replace write_sp with
9125 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9126 (sparc_pop_frame): Ditto.
9128 2003-03-27 Andrew Cagney <cagney@redhat.com>
9130 * NEWS: Mention removal of support for hppa*-*-bsd* and
9131 hppa*-*-osf* natives, and hppa*-*-pro* target.
9132 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9133 * config/pa/xm-pa.h: Obsolete file.
9134 * config/pa/xm-hppab.h: Obsolete file.
9135 * config/pa/nm-hppab.h: Obsolete file.
9136 * config/pa/tm-hppab.h: Obsolete file.
9137 * config/pa/tm-hppao.h: Obsolete file.
9138 * config/pa/nm-hppao.h: Obsolete file.
9139 * config/pa/tm-pro.h: Obsolete file.
9140 * config/pa/hppaosf.mt: Obsolete file.
9141 * config/pa/hppaosf.mh: Obsolete file.
9142 * config/pa/hppapro.mt: Obsolete file.
9143 * config/pa/hppabsd.mt: Obsolete file.
9144 * config/pa/hppabsd.mh: Obsolete file.
9145 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9146 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9149 2003-03-27 Andrew Cagney <cagney@redhat.com>
9151 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9152 push_arguments. Don't set push_return_address or write_sp.
9153 (d10v_push_dummy_call): Replace d10v_push_arguments.
9154 (d10v_push_return_address, d10v_write_sp): Delete function,
9155 handled by push_dummy_call.
9157 2003-03-26 Andrew Cagney <cagney@redhat.com>
9159 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9160 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9161 regcache and dummy_addr parameters.
9162 * gdbarch.h, gdbarch.c: Re-generate.
9163 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9164 available; assume it will handle stack alignment and return
9165 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9166 legacy_push_arguments.
9167 (legacy_push_arguments): Rename default_push_arguments.
9168 * value.h (legacy_push_arguments): Rename default_push_arguments.
9169 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9170 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9171 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9172 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9173 * config/i386/tm-symmetry.h: Update.
9174 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9175 * x86-64-tdep.c (x86_64_init_abi): Update.
9176 * v850-tdep.c (v850_gdbarch_init): Update.
9177 * sparc-tdep.c (sparc_gdbarch_init): Update.
9178 * sh-tdep.c (sh_gdbarch_init): Update.
9179 * s390-tdep.c (s390_gdbarch_init): Update.
9180 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9181 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9182 * mips-tdep.c (mips_gdbarch_init): Update.
9183 * mcore-tdep.c (mcore_gdbarch_init): Update.
9184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9185 * ia64-tdep.c (ia64_gdbarch_init): Update.
9186 * i386-tdep.c (i386_gdbarch_init): Update.
9187 * hppa-tdep.c (hppa_gdbarch_init): Update.
9188 * h8300-tdep.c (h8300_gdbarch_init): Update.
9189 * frv-tdep.c (frv_gdbarch_init): Update.
9190 * d10v-tdep.c (d10v_gdbarch_init): Update.
9191 * cris-tdep.c (cris_gdbarch_init): Update.
9192 * avr-tdep.c (avr_gdbarch_init): Update.
9193 * arm-tdep.c (arm_gdbarch_init): Update.
9194 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9195 * alpha-tdep.c (alpha_gdbarch_init): Update.
9197 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9199 * signals/signals.c (do_target_signal_to_host): Correct realtime
9202 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9204 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9205 (struct sal_chain, map_catch_names): Remove.
9206 (catch_exception_command_1): Don't call
9207 handle_gnu_4_16_catch_command.
9209 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9211 From Mark Dettinger <dettinge@de.ibm.com>:
9212 * dwarf2cfi.c (read_2u): Increment pointer by two.
9214 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9216 * signals/signals.c: Fix typos in last change.
9218 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9220 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9221 not already defined. Use __SIGRTMIN if available.
9222 (target_signal_from_host): Remove SIGRTMIN block.
9223 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9224 the signal is within the realtime range.
9226 2003-03-25 Adam Fedor <fedor@gnu.org>
9228 * Makefile.in (infrun.o): Add $(language_h)
9229 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9230 for language specific trampolines.
9231 * language.h (struct language_defn): Add skip_trampoline.
9232 (skip_language_trampoline): Declare.
9233 * language.c (unk_lang_trampoline, skip_language_trampoline):
9235 (unknown_language_defn, auto_language_defn, local_language_defn):
9236 Add ukn_lang_trampoline.
9237 * ada-lang.c (ada_language_defn): Add NULL for language
9238 specific skip_trampoline.
9239 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9240 scm-lang.c: Likewise.
9241 * objc-lang.c (objc_skip_trampoline): New function.
9242 (objc_language_defn): Add objc_skip_trampoline.
9244 2003-03-25 Andrew Cagney <cagney@redhat.com>
9246 * frame.c (get_prev_frame): Delay validating a frame's ID -
9247 non-NULL, didn't go backwards - until an attempt to unwind it to
9250 2003-03-25 Andrew Cagney <cagney@redhat.com>
9252 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9253 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9254 * gdbarch.h, gdbarch.c: Re-generate.
9255 * config/sparc/tm-sparc.h
9256 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9257 * sparc-tdep.c (sparc_gdbarch_init): Set
9258 deprecated_extra_stack_alignment_needed.
9259 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9260 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9261 extra_stack_alignment_needed.
9262 * v850-tdep.c (v850_gdbarch_init): Ditto.
9263 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9264 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9265 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9266 * cris-tdep.c (cris_gdbarch_init): Ditto.
9267 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9270 2003-03-25 Andrew Cagney <cagney@redhat.com>
9272 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9273 STORE_STRUCT_RETURN.
9274 * gdbarch.h, gdbarch.c: Regenerate.
9275 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9276 (d10v_push_arguments): Set the struct return register.
9277 (d10v_gdbarch_init): Update.
9278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9279 * x86-64-tdep.c (x86_64_init_abi): Update.
9280 * vax-tdep.c (vax_gdbarch_init): Update.
9281 * v850-tdep.c (v850_gdbarch_init): Update.
9282 * sparc-tdep.c (sparc_gdbarch_init): Update.
9283 * sh-tdep.c (sh_gdbarch_init): Update.
9284 * s390-tdep.c (s390_gdbarch_init): Update.
9285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9288 * mips-tdep.c (mips_gdbarch_init): Update.
9289 * mcore-tdep.c (mcore_gdbarch_init): Update.
9290 * m68k-tdep.c (m68k_gdbarch_init): Update.
9291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9292 * ia64-tdep.c (ia64_gdbarch_init): Update.
9293 * i386-tdep.c (i386_gdbarch_init): Update.
9294 * hppa-tdep.c (hppa_gdbarch_init): Update.
9295 * h8300-tdep.c (h8300_gdbarch_init): Update.
9296 * frv-tdep.c (frv_gdbarch_init): Update.
9297 * cris-tdep.c (cris_gdbarch_init): Update.
9298 * avr-tdep.c (avr_gdbarch_init): Update.
9299 * arm-tdep.c (arm_gdbarch_init): Update.
9300 * alpha-tdep.c (alpha_gdbarch_init): Update.
9302 2003-03-25 Andrew Cagney <cagney@redhat.com>
9304 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9305 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9306 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9307 * gdbarch.h, gdbarch.c: Regenerate.
9308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9309 call_dummy_stack_adjust_p.
9310 * vax-tdep.c (vax_gdbarch_init): Ditto.
9311 * v850-tdep.c (v850_gdbarch_init): Ditto.
9312 * sh-tdep.c (sh_gdbarch_init): Ditto.
9313 * s390-tdep.c (s390_gdbarch_init): Ditto.
9314 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9315 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9316 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9317 * mips-tdep.c (mips_gdbarch_init): Ditto.
9318 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9319 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9321 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9322 * i386-tdep.c (i386_gdbarch_init): Ditto.
9323 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9324 * frv-tdep.c (frv_gdbarch_init): Ditto.
9325 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9326 * cris-tdep.c (cris_gdbarch_init): Ditto.
9327 * avr-tdep.c (avr_gdbarch_init): Ditto.
9328 * arm-tdep.c (arm_gdbarch_init): Ditto.
9329 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9330 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9331 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9332 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9333 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9334 call_dummy_stack_adjust_p.
9335 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9336 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9337 * sparc-tdep.c (sparc32_push_arguments): Update.
9338 * valops.c (hand_function_call): Update.
9340 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9343 set_gdbarch_char_signed.
9345 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9348 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9350 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9352 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9353 (_initialize_arm_tdep): Don't set tm_print_insn.
9355 2003-03-24 Adam Fedor <fedor@gnu.org>
9357 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9358 * objc-lang.h: Add multiple inclusion protection.
9359 (start_msglist, add_msglist, end_msglist): Additional declarations.
9361 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9363 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9364 value was renamed to ARM_FLOAT_SOFT_FPA.
9366 2003-03-23 Andrew Cagney <cagney@redhat.com>
9368 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9369 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9370 * gdbarch.h, gdbarch.c: Regenerate.
9371 * valops.c (hand_function_call): Update.
9372 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9373 * frame.c (legacy_saved_regs_this_id): Update.
9374 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9375 * dummy-frame.h: Update.
9376 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9377 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9378 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9379 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9380 * config/m68k/tm-sun3.h: Update.
9381 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9383 * x86-64-tdep.c (x86_64_init_abi): Update.
9384 * vax-tdep.c (vax_gdbarch_init): Update.
9385 * v850-tdep.c (v850_gdbarch_init): Update.
9386 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9387 * sh-tdep.c (sh_gdbarch_init): Update.
9388 * s390-tdep.c (s390_gdbarch_init): Update.
9389 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9390 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9391 (frame_get_saved_regs): Update.
9392 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9393 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9395 * mips-tdep.c (mips_gdbarch_init): Update.
9396 * mcore-tdep.c (mcore_gdbarch_init): Update.
9397 * m68k-tdep.c (m68k_gdbarch_init): Update.
9398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9399 * ia64-tdep.c (ia64_gdbarch_init): Update.
9400 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9401 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9402 (i386_interix_back_one_frame): Update.
9403 * hppa-tdep.c (hppa_gdbarch_init): Update.
9404 (hppa_init_extra_frame_info): Update.
9405 * h8300-tdep.c (h8300_gdbarch_init): Update.
9406 * frv-tdep.c (frv_gdbarch_init): Update.
9407 * cris-tdep.c (cris_gdbarch_init): Update.
9408 * avr-tdep.c (avr_gdbarch_init): Update.
9409 * arm-tdep.c (arm_gdbarch_init): Update.
9410 * alpha-tdep.c (alpha_gdbarch_init): Update.
9412 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9414 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9415 (arm_get_fp_model): Declare.
9416 * arm-tdep.c (fp_model_strings): New string array.
9417 (arm_fp_model, current_fp_model): New variables.
9418 (arm_get_fp_model): New function.
9419 (arm_set_fp): New function.
9420 (set_fp_model_sfunc): New function.
9421 (show_fp_model): New function.
9422 (_initialize_arm_tdep): Add new command to set/show the FPU.
9423 (arm_extract_return_value): Use arm_get_fp_model.
9424 (arm_store_return_value): Likewise.
9425 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9426 to initialize the floating-point data types.
9427 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9430 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9432 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9433 the current setting of each value.
9434 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9435 new_set and new_show. Use add_setshow_cmd_full and
9436 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9437 commands and add new version as subcommands of "set/show arm".
9439 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9441 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9442 (set_arm_command, show_arm_command): New functions.
9443 (_initialize_arm_tdep): Add them.
9444 (num_disassembly_options): Renamed from num_flavor_options.
9445 (valid_disassembly_styles): Renamed from valid_flavors.
9446 (disassembly_style): Renamed from disassembly_flavor.
9447 (set_disassembly_style_sfunc): Renamed from
9448 set_disassembly_flavor_sfunc.
9449 (set_disassembly_style): Renamed from set_disassembly_flavor.
9450 (arm_othernames): Updated.
9451 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9452 command. Add "set/show arm disassembly" commands. Deprecate
9453 "othernames" command.
9455 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9457 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9458 (arm-tdep.o): Depend on elf_arm_h.
9460 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9462 * Makefile.in (coff_internal_h): Define.
9463 (arm-tdep.o): Update dependencies.
9465 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9467 * arm-tdep.c (prologue_cache): Delete.
9468 (check_prologue_cache, save_prologue_cache): Delete.
9469 (arm_scan_prologue): Don't check or update the prologue_cache.
9470 (arm_gdb_arch_init): Don't initialize it.
9471 (_initialize_arm_tdep): Likewise.
9473 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9475 * MAINTAINERS (tui): Maintainer of tui code.
9477 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9479 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9480 (i386-cygwin-tdep.o): Add dependencies.
9481 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9482 * i386-cygwin-tdep.c: New file.
9483 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9484 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9486 2003-03-20 Andrew Cagney <cagney@redhat.com>
9488 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9489 (handle_inferior_event): Remove code calling
9490 DYNAMIC_TRAMPOLINE_NEXTPC.
9492 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9493 already has a full path.
9495 * main.c (gdb_main): Return 1.
9496 (captured_main): Call error to report an invalid interpreter.
9498 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9499 * alpha-osf1-tdep.c: Include "gdb_string.h".
9501 2003-03-19 J. Brobecker <brobecker@gnat.com>
9503 Continuing work to convert the hppa targets to multiarch partial.
9505 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9506 method, now that hppa_push_dummy_frame has a conformant prototype.
9507 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9508 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9509 for the switch to multiarch partial.
9511 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9513 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9514 when iss is issNull.
9516 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9518 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9519 NUM_REGS bounds check.
9521 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9523 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9524 * mips-tdep.c (gdb_assert.h): Include.
9525 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9526 (mips_register_name): Handle integer registers explicitly. Add
9528 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9529 (mips_lsi33k_reg_names): Don't list integer registers; they're
9530 handled by mips_register_name() now.
9531 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9532 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9533 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9534 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9535 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9537 2003-03-18 Andrew Cagney <cagney@redhat.com>
9539 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9541 * gdbtypes.h (print_scalar_formatted): Update declaration.
9542 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9544 2003-03-18 J. Brobecker <brobecker@gnat.com>
9546 * infrun.c (observer.h): Add #include.
9547 (normal_stop): Add call to observer_notify_normal_stop.
9548 * Makefile.in (infrun.o): Add dependency on observer.h.
9550 2003-03-18 J. Brobecker <brobecker@gnat.com>
9552 Continuing work to convert the hppa targets to multiarch partial.
9553 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9554 parameter. Reformat comment.
9555 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9556 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9557 to match new profile.
9559 2003-03-18 J. Brobecker <brobecker@gnat.com>
9561 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9562 appear to be working in any case.
9564 2003-03-18 J. Brobecker <brobecker@gnat.com>
9566 * observer.c (observer_test_first_observer): New static variable.
9567 (observer_test_second_observer): Likewise.
9568 (observer_test_third_observer): Likewise.
9569 (observer_test_first_notification_function): New static function.
9570 (observer_test_second_notification_function): Likewise.
9571 (observer_test_third_notification_function): Likewise.
9573 2003-03-17 J. Brobecker <brobecker@gnat.com>
9575 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9576 * somsolib.c (gdb_assert.h): Likewise.
9577 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9578 (somsolib.o): Likewise.
9580 2003-03-17 Andrew Cagney <cagney@redhat.com>
9582 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9583 BFD. Simplify setting of di.endian.
9585 2003-03-17 Andrew Cagney <cagney@redhat.com>
9587 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9588 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9590 From Elena Zannoni <ezannoni@redhat.com>
9591 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9592 vector and floating-point parameters.
9593 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9595 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9597 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9599 * MAINTAINERS: Remove my name from several maintainership roles.
9601 2003-03-17 Andrew Cagney <cagney@redhat.com>
9603 Fix frame off-by-one bug.
9604 * frame-unwind.h (frame_this_id_ftype): Replace
9605 frame_unwind_id_ftype.
9606 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9607 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9608 with "prev_register".
9609 * frame-unwind.c (frame_unwind_find_by_pc): Return
9610 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9612 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9613 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9614 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9615 (dummy_frame_unwind): Update.
9616 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9617 sentinel_frame_register_unwind.
9618 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9619 (sentinel_frame_unwinder): Update.
9620 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9621 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9622 * frame.c (create_sentinel_frame): Update. Initialize
9623 "prologue_cache" instead of "unwind_cache".
9624 (frame_register_unwind): Call this frame's prev_register with the
9625 next frame and this frame's prologue cache.
9626 (get_prev_frame): Simplify. Always call prev frame's this_id with
9627 this frame and prev frame's prologue cache. Document that this
9628 call is shifted one to the left when compared to the
9629 frame_register_unwind call.
9630 (legacy_saved_regs_prev_register): Replace
9631 frame_saved_regs_register_unwind.
9632 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9633 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9634 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9635 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9636 (d10v_frame_unwind): Update.
9637 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9638 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9639 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9640 "saved_regs" with "this_saved_regs".
9642 2003-03-16 Andrew Cagney <cagney@redhat.com>
9644 * frame.c (frame_pop): Don't call target_store_registers. Fix
9645 problem reported by Mark Kettenis.
9647 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9649 * i386-tdep.c (i386_register_type): Renamed from
9650 i386_register_virtual_type. Adjust function signature.
9651 (i386_gdbarch_init): Set register_type instead of
9652 deprecated_max_register_raw_size,
9653 deprecated_max_register_virtual_size and register_virtual_type.
9655 2003-03-14 Andrew Cagney <cagney@redhat.com>
9657 * frame.c (get_prev_frame): When a legacy frame, always call
9658 legacy_get_prev_frame. Simplify unwind code using assumption that
9659 the unwinder is new.
9660 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9661 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9662 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9664 2003-03-14 Andrew Cagney <cagney@redhat.com>
9666 * frame.c (get_saved_register): Delete function.
9667 * frame.h (get_saved_register): Delete declaration.
9668 * xstormy16-tdep.c: Update comment.
9669 * regcache.h: Update comments.
9670 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9671 get_saved_register and extract_address, use
9672 frame_read_unsigned_register.
9673 (sparc_frame_saved_pc): Ditto.
9674 (sparc_get_saved_register): Instead of get_saved_register, use
9676 (sparc_pop_frame): Ditto.
9677 * findvar.c: Update comments.
9678 (value_of_register): Call frame_register instead of
9680 (value_from_register): Ditto.
9681 * config/sparc/tm-sparc.h: Update comment.
9682 * breakpoint.c: Update comment.
9684 2003-03-14 Andrew Cagney <cagney@redhat.com>
9686 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9688 * gdbarch.h, gdbarch.c: Re-generate.
9689 * frame.h: Update comments.
9690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9691 * x86-64-tdep.c (x86_64_init_abi): Update.
9692 * sparc-tdep.c (sparc_gdbarch_init): Update.
9693 * sh-tdep.c (sh_gdbarch_init): Update.
9694 * mips-tdep.c (mips_gdbarch_init): Update.
9695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9696 * cris-tdep.c (cris_gdbarch_init): Update.
9697 * ia64-tdep.c (ia64_gdbarch_init): Update.
9698 * frame.c (frame_register): Update.
9699 (get_saved_register): Update.
9700 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9702 2003-03-13 Andrew Cagney <cagney@redhat.com>
9704 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9705 * gdbarch.h, gdbarch.c: Regenerate.
9706 * valops.c (hand_function_call): Update comment.
9707 * stack.c (return_command): Update comment.
9708 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9709 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9710 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9711 * x86-64-tdep.c (x86_64_init_abi): Update.
9712 * vax-tdep.c (vax_gdbarch_init): Update.
9713 * v850-tdep.c (v850_gdbarch_init): Update.
9714 * sparc-tdep.c (sparc_gdbarch_init): Update.
9715 * sh-tdep.c (sh_gdbarch_init): Update.
9716 * s390-tdep.c (s390_gdbarch_init): Update.
9717 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9718 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9719 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9720 * mips-tdep.c (mips_gdbarch_init): Update.
9721 * mcore-tdep.c (mcore_gdbarch_init): Update.
9722 * m68k-tdep.c (m68k_gdbarch_init): Update.
9723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9724 * ia64-tdep.c (ia64_gdbarch_init): Update.
9725 * i386-tdep.c (i386_gdbarch_init): Update.
9726 * hppa-tdep.c (hppa_gdbarch_init): Update.
9727 * h8300-tdep.c (h8300_gdbarch_init): Update.
9728 * frv-tdep.c (frv_gdbarch_init): Update.
9729 * cris-tdep.c (cris_gdbarch_init): Update.
9730 * avr-tdep.c (avr_gdbarch_init): Update.
9731 * arm-tdep.c (arm_gdbarch_init): Update.
9732 * alpha-tdep.c (alpha_gdbarch_init): Update.
9734 2003-03-13 Andrew Cagney <cagney@redhat.com>
9736 * frame.c (legacy_frame_p): New function.
9737 (get_prev_frame): Use legacy_frame_p.
9738 * frame.h (legacy_frame_p): Declare.
9740 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9742 * MAINTAINERS (write after approval): Alphabetically
9745 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9747 * MAINTAINERS (write after approval): Add myself.
9749 2003-03-12 Andrew Cagney <cagney@redhat.com>
9751 * frame.c (get_prev_frame): Rename the frame parameter to
9753 (get_next_frame, legacy_get_prev_frame): Ditto.
9755 2003-03-12 Andrew Cagney <cagney@redhat.com>
9757 * frame.c (get_current_frame): Check target_has_registers before
9758 checking target_has_stack.
9759 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9760 instead of deprecated_selected_frame.
9761 * findvar.c (value_of_register): Pass "frame", not
9762 deprecated_selected_frame, to value_of_builtin_reg.
9764 2003-03-12 Andrew Cagney <cagney@redhat.com>
9766 * regcache.c (regcache_cooked_write_signed): New function.
9767 (regcache_cooked_write_unsigned): New function.
9768 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9769 (regcache_cooked_read_signed): Fix regnum in range assertion.
9770 * regcache.h (regcache_cooked_write_signed): Declare.
9771 (regcache_cooked_write_unsigned): Declare.
9773 2003-03-12 Andrew Cagney <cagney@redhat.com>
9775 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9776 * gdbarch.h, gdbarch.c: Re-generate.
9777 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9778 * x86-64-tdep.h: Update.
9779 * x86-64-tdep.c (x86_64_init_abi): Update.
9780 * v850-tdep.c (v850_gdbarch_init): Update.
9781 * sparc-tdep.c (sparc_gdbarch_init): Update.
9782 * sh-tdep.c (sh_gdbarch_init): Update.
9783 * s390-tdep.c (s390_gdbarch_init): Update.
9784 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9785 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9786 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9787 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9788 * mips-tdep.c (mips_gdbarch_init): Update.
9789 * mcore-tdep.c (mcore_gdbarch_init): Update.
9790 * m68k-tdep.c (m68k_gdbarch_init): Update.
9791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9792 * ia64-tdep.c (ia64_gdbarch_init): Update.
9793 * i386-tdep.c (i386_gdbarch_init): Update.
9794 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9795 * hppa-tdep.c (hppa_gdbarch_init): Update.
9796 * h8300-tdep.c (h8300_gdbarch_init): Update.
9797 * frv-tdep.c (frv_gdbarch_init): Update.
9798 * cris-tdep.c (cris_gdbarch_init): Update.
9799 * avr-tdep.c (avr_gdbarch_init): Update.
9800 * arm-tdep.c (arm_gdbarch_init): Update.
9801 * alpha-tdep.c (alpha_gdbarch_init): Update.
9802 * sh-tdep.c (sh_init_extra_frame_info): Update.
9803 (sh64_init_extra_frame_info): Update.
9804 * ns32knbsd-nat.c (frame_num_args): Update.
9805 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9806 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9807 (xstormy16_frame_chain_valid): Update.
9808 * vax-tdep.c (vax_saved_pc_after_call): Update.
9809 * v850-tdep.c (v850_frame_chain): Update.
9810 (v850_pop_frame): Update.
9811 (v850_init_extra_frame_info): Update.
9812 * sparc-tdep.c (setup_arbitrary_frame): Update.
9813 * ns32k-tdep.c (umax_frame_num_args): Update.
9814 * s390-tdep.c (s390_pop_frame_regular): Update.
9815 * mn10300-tdep.c (mn10300_frame_chain): Update.
9816 (mn10300_pop_frame_regular): Update.
9817 (mn10300_init_extra_frame_info): Update.
9818 * mips-tdep.c (mips_init_frame_pc_first): Update.
9819 (mips_frame_chain): Update.
9820 (mips_pop_frame): Update.
9821 * mcore-tdep.c (mcore_frame_chain): Update.
9822 (mcore_pop_frame): Update.
9823 (mcore_init_extra_frame_info): Update.
9824 * arch-utils.c (init_frame_pc_default): Update.
9825 * m68k-tdep.c (isi_frame_num_args): Update.
9826 (delta68_frame_num_args): Update.
9827 (news_frame_num_args): Update.
9828 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9829 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9830 (alpha_frame_chain): Update.
9831 (alpha_pop_frame): Update.
9832 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9833 (hppa_init_extra_frame_info): Update.
9834 (hppa_frame_chain): Update.
9835 (hppa_frame_chain_valid): Update.
9836 * cris-tdep.c (cris_init_extra_frame_info): Update.
9837 * avr-tdep.c (avr_init_extra_frame_info): Update.
9838 * arm-tdep.c (arm_frame_chain_valid): Update.
9839 (arm_init_extra_frame_info): Update.
9840 (arm_pop_frame): Update.
9841 * frame.c (frame_pc_unwind): Update.
9842 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9843 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9844 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9845 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9846 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9847 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9849 2003-03-12 Andrew Cagney <cagney@redhat.com>
9851 Eliminate the need for POP_FRAME.
9852 * frame.c (do_frame_unwind_register): New function.
9853 (frame_pop): When no POP_FRAME, pop the frame using register
9854 unwind and a scratch regcache.
9855 (frame_saved_regs_pop): Delete function.
9856 (trad_frame_unwinder): Update.
9857 * d10v-tdep.c (d10v_frame_pop): Delete function.
9858 (d10v_frame_unwind): Update.
9859 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9860 (sentinel_frame_unwinder): Update.
9861 * dummy-frame.c (dummy_frame_pop): Delete function.
9862 (dummy_frame_unwind): Update.
9863 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9864 (struct frame_unwind): Update.
9866 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9868 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9869 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9870 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9871 Do range checks on register number obtained from debugging info.
9872 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9873 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9874 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9876 (do_fp_register_row): Fix typo which caused double type to be
9877 used when attempting to unpack a float.
9879 2003-03-11 J. Brobecker <brobecker@gnat.com>
9881 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9883 2003-03-11 Andrew Cagney <cagney@redhat.com>
9885 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9886 frame. Problem found by Corinna Vinschen.
9888 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9890 * doublest.c (floatformat_from_length): Accept also
9891 the real size of 'long double' type.
9893 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9895 From Klee Dienes <kdienes@apple.com>:
9896 * breakpoint.c (bpstat_copy): Copy the command lines as well
9897 as the old value, to match what is freed in bpstat_clear.
9899 2003-03-10 David Carlton <carlton@math.stanford.edu>
9901 * minsyms.c (add_minsym_to_hash_table): Replace
9902 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9903 (compare_minimal_symbols, compact_minimal_symbols)
9904 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9905 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9906 of DEPRECATED_SYMBOL_MATCHES_NAME.
9907 (lookup_minimal_symbol_solib_trampoline): Ditto.
9909 2003-03-10 Andrew Cagney <cagney@redhat.com>
9911 * regcache.h (regcache_cooked_read_ftype): Define.
9912 (regcache_save, regcache_restore): Add a cooked_read parameter.
9913 * regcache.c (regcache_save, regcache_restore): Update.
9914 (do_cooked_read): New function.
9915 (regcache_cpy): Pass do_cooked_read to regcache_save and
9918 2003-03-10 Andrew Cagney <cagney@redhat.com>
9920 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9921 * gdbarch.h, gdbarch.c: Re-generate.
9922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9923 * x86-64-tdep.h: Update.
9924 * x86-64-tdep.c (x86_64_init_abi): Update.
9925 * v850-tdep.c (v850_gdbarch_init): Update.
9926 * sparc-tdep.c (sparc_gdbarch_init): Update.
9927 * sh-tdep.c (sh_gdbarch_init): Update.
9928 * s390-tdep.c (s390_gdbarch_init): Update.
9929 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9930 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9931 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9932 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9933 * mips-tdep.c (mips_gdbarch_init): Update.
9934 * mcore-tdep.c (mcore_gdbarch_init): Update.
9935 * m68k-tdep.c (m68k_gdbarch_init): Update.
9936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9937 * ia64-tdep.c (ia64_gdbarch_init): Update.
9938 * i386-tdep.c (i386_gdbarch_init): Update.
9939 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9940 * hppa-tdep.c (hppa_gdbarch_init): Update.
9941 * h8300-tdep.c (h8300_gdbarch_init): Update.
9942 * frv-tdep.c (frv_gdbarch_init): Update.
9943 * cris-tdep.c (cris_gdbarch_init): Update.
9944 * avr-tdep.c (avr_gdbarch_init): Update.
9945 * arm-tdep.c (arm_gdbarch_init): Update.
9946 * alpha-tdep.c (alpha_gdbarch_init): Update.
9947 * sh-tdep.c (sh_init_extra_frame_info): Update.
9948 (sh64_init_extra_frame_info): Update.
9949 * ns32knbsd-nat.c (frame_num_args): Update.
9950 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9951 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9952 (xstormy16_frame_chain_valid): Update.
9953 * vax-tdep.c (vax_saved_pc_after_call): Update.
9954 * v850-tdep.c (v850_frame_chain): Update.
9955 (v850_pop_frame): Update.
9956 (v850_init_extra_frame_info): Update.
9957 * sparc-tdep.c (setup_arbitrary_frame): Update.
9958 * ns32k-tdep.c (umax_frame_num_args): Update.
9959 * s390-tdep.c (s390_pop_frame_regular): Update.
9960 * mn10300-tdep.c (mn10300_frame_chain): Update.
9961 (mn10300_pop_frame_regular): Update.
9962 (mn10300_init_extra_frame_info): Update.
9963 * mips-tdep.c (mips_init_frame_pc_first): Update.
9964 (mips_frame_chain): Update.
9965 (mips_pop_frame): Update.
9966 * mcore-tdep.c (mcore_frame_chain): Update.
9967 (mcore_pop_frame): Update.
9968 (mcore_init_extra_frame_info): Update.
9969 * arch-utils.c (init_frame_pc_default): Update.
9970 * m68k-tdep.c (isi_frame_num_args): Update.
9971 (delta68_frame_num_args): Update.
9972 (news_frame_num_args): Update.
9973 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9974 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9975 (alpha_frame_chain): Update.
9976 (alpha_pop_frame): Update.
9977 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9978 (hppa_init_extra_frame_info): Update.
9979 (hppa_frame_chain): Update.
9980 (hppa_frame_chain_valid): Update.
9981 * cris-tdep.c (cris_init_extra_frame_info): Update.
9982 * avr-tdep.c (avr_init_extra_frame_info): Update.
9983 * arm-tdep.c (arm_frame_chain_valid): Update.
9984 (arm_init_extra_frame_info): Update.
9985 (arm_pop_frame): Update.
9986 * frame.c (frame_pc_unwind): Update.
9987 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9988 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9989 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9990 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9991 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9992 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9994 2003-03-10 Andrew Cagney <cagney@redhat.com>
9996 * gdbarch.sh (gdbarch_unwind_pc): New method.
9997 * gdbarch.h, gdbarch.c: Regenerate.
9998 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9999 but use read_pc and FRAME_SAVED_PC as fall backs.
10000 (frame_saved_regs_pc_unwind): Delete function.
10001 (trad_frame_unwinder): Update.
10002 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10003 (struct frame_unwind): Update.
10004 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10005 (dummy_frame_unwind): Update.
10006 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10007 (sentinel_frame_unwinder): Update.
10008 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10009 (d10v_frame_unwind): Update.
10010 (d10v_unwind_pc): New function.
10011 (d10v_gdbarch_init): Set unwind_pc.
10013 2003-03-10 Andrew Cagney <cagney@redhat.com>
10015 * gdbarch.h: Re-generate.
10017 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10019 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10022 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10024 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10026 2003-03-08 Andrew Cagney <cagney@redhat.com>
10028 * cli-out.c: Update copyright.
10029 (cli_out_data): Define typedef. Use instead of ui_out_data.
10031 2003-03-08 Andrew Cagney <cagney@redhat.com>
10033 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10036 2003-03-07 Andrew Cagney <cagney@redhat.com>
10038 * gdbarch.sh: Don't generate two macro definitions when an
10039 undefined macro taking no arguments.
10040 * gdbarch.h: Regenerate.
10042 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10044 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10045 (x86_64_unwind_dummy_id): New functions.
10046 (x86_64_init_abi): Register these two new functions.
10048 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10050 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10051 (x86_64_skip_prologue): Move prologue detection to
10053 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10055 2003-03-05 Andrew Cagney <cagney@redhat.com>
10057 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10058 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10059 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10060 to use unwind_dummy_id when a dummy frame.
10061 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10063 * gdbarch.h, gdbarch.c: Regneerate.
10065 2003-03-05 Andrew Cagney <cagney@redhat.com>
10067 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10068 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10069 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10072 2003-03-05 Andrew Cagney <cagney@redhat.com>
10074 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10075 (struct d10v_unwind_cache): Delete field "frameless". Replace
10076 "next_addr" with "sp_offset". Add "r11_offset".
10077 (d10v_frame_unwind_cache): Update.
10078 (prologue_find_regs): Update. When "mv r11, sp", save the
10079 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10080 RN was saved in r11_offset.
10082 2003-03-05 Andrew Cagney <cagney@redhat.com>
10084 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10085 cached PC value in the next frame.
10087 2003-03-05 Andrew Cagney <cagney@redhat.com>
10089 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10090 "id_unwind_cache" with "id".
10091 (frame_id_unwind): Delete declaration.
10092 * frame.c (frame_id_unwind): Delete function.
10093 (get_prev_frame): Call the frame id unwind method directly. Store
10094 the returned next frame's ID value in NEXT_FRAME. Note that there
10095 is a problem with the wrong unwind ID being called with the wrong
10098 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10100 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10102 2003-03-05 James Ingham <jingham@apple.com>
10103 Daniel Jacobowitz <drow@mvista.com>
10105 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10106 (auto_cp_abi): New variable.
10107 (current_cp_abi, num_cp_abis): Make static.
10108 (CP_ABI_MAX): Define.
10109 (cp_abis): Turn into an array.
10110 (value_virtual_fn_field): Fix formatting.
10111 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10113 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10114 (list_cp_abis, _initialize_cp_abi): New functions.
10115 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10116 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10117 switch_to_cp_abi. Update prototype for register_cp_abi.
10118 * Makefile.in (cp-abi.o): Update dependencies.
10119 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10120 instead of switch_to_cp_abi.
10121 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10123 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10125 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10127 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10129 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10130 * dwarf2loc.c: Include "regcache.h".
10131 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10133 * Makefile.in (dwarf2loc.o): Update dependencies.
10135 2003-03-04 Theodore A. Roth <troth@openavr.org>
10137 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10138 number of io registers reported by remote target is not a multiple of
10141 2003-03-04 David Carlton <carlton@math.stanford.edu>
10143 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10144 (lookup_symbol_aux_psymtabs): Update call to
10145 lookup_partial_symbol.
10146 (lookup_transparent_type, find_main_psymtab)
10147 (make_symbol_overload_list): Ditto.
10149 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10151 * MAINTAINERS (Write after approval): Update my email address.
10153 2003-03-03 Andrew Cagney <cagney@redhat.com>
10155 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10156 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10157 predicate. Replace MAX_REGISTER_RAW_SIZE.
10158 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10159 MAX_REGISTER_VIRTUAL_SIZE.
10160 * regcache.c (legacy_max_register_raw_size): New function.
10161 (legacy_max_register_virtual_size): New function.
10162 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10163 (MAX_REGISTER_RAW_SIZE): Define.
10164 (legacy_max_register_raw_size): Declare.
10165 (legacy_max_register_virtual_size): Declare.
10166 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10167 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10168 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10169 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10170 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10171 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10172 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10173 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10174 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10176 * vax-tdep.c (vax_gdbarch_init): Update.
10177 * v850-tdep.c (v850_gdbarch_init): Update.
10178 * sparc-tdep.c (sparc_gdbarch_init): Update.
10179 * sh-tdep.c (sh_gdbarch_init): Update.
10180 * s390-tdep.c (s390_gdbarch_init): Update.
10181 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10182 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10183 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10184 * mips-tdep.c (mips_gdbarch_init): Update.
10185 * mcore-tdep.c (mcore_gdbarch_init): Update.
10186 * m68k-tdep.c (m68k_gdbarch_init): Update.
10187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10188 * ia64-tdep.c (ia64_gdbarch_init): Update.
10189 * i386-tdep.c (i386_gdbarch_init): Update.
10190 * hppa-tdep.c (hppa_gdbarch_init): Update.
10191 * h8300-tdep.c (h8300_gdbarch_init): Update.
10192 * frv-tdep.c (frv_gdbarch_init): Update.
10193 * cris-tdep.c (cris_gdbarch_init): Update.
10194 * avr-tdep.c (avr_gdbarch_init): Update.
10195 * arm-tdep.c (arm_gdbarch_init): Update.
10196 * alpha-tdep.c (alpha_gdbarch_init): Update.
10197 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10198 max_register_raw_size or max_register_virtual_size.
10200 2003-03-03 David Carlton <carlton@math.stanford.edu>
10202 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10203 SYMBOL_MATCHES_NAME, add comment.
10204 (SYMBOL_MATCHES_NATURAL_NAME): New.
10205 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10206 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10207 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10208 * symtab.c (lookup_partial_symbol): Use
10209 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10211 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10212 SYMBOL_MATCHES_NAME.
10215 2003-03-03 David Carlton <carlton@math.stanford.edu>
10217 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10218 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10219 by regexp matching against SYMBOL_NATURAL_NAME.
10221 2003-03-03 David Carlton <carlton@math.stanford.edu>
10223 * linespec.c (find_method): Extract code into collect_methods.
10224 (collect_methods): New.
10226 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10228 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10231 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10232 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10234 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10236 * arch-utils.c (generic_register_byte): Fix to use the loop index
10237 and not regnum when summing the size of all registers up to regnum.
10239 2003-03-01 Andrew Cagney <cagney@redhat.com>
10241 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10242 FRAME_INIT_SAVED_REGS.
10243 * gdbarch.h, gdbarch.c: Regenerate.
10244 * stack.c (frame_info): Update.
10245 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10246 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10247 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10248 * ns32k-tdep.c (ns32k_pop_frame): Update.
10249 * mips-tdep.c (mips_pop_frame): Update.
10250 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10251 * ia64-tdep.c (ia64_frame_chain): Update.
10252 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10253 (ia64_frameless_function_invocation): Update.
10254 (ia64_init_extra_frame_info): Update.
10255 (ia64_pop_frame_regular): Update.
10256 * frame.h (struct frame_info): Update comment.
10257 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10258 * frame.c (frame_saved_regs_register_unwind): Update.
10259 (frame_saved_regs_register_unwind): Update.
10260 (deprecated_generic_get_saved_register): Update.
10261 * cris-tdep.c: Update comment.
10262 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10265 * x86-64-tdep.c (x86_64_init_abi): Update.
10266 * vax-tdep.c (vax_gdbarch_init): Update.
10267 * v850-tdep.c (v850_gdbarch_init): Update.
10268 * sparc-tdep.c (sparc_gdbarch_init): Update.
10269 * sh-tdep.c (sh_gdbarch_init): Update.
10270 * s390-tdep.c (s390_gdbarch_init): Update.
10271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10272 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10275 * mips-tdep.c (mips_gdbarch_init): Update.
10276 * mcore-tdep.c (mcore_gdbarch_init): Update.
10277 * m68k-tdep.c (m68k_gdbarch_init): Update.
10278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10279 * ia64-tdep.c (ia64_gdbarch_init): Update.
10280 * i386-tdep.c (i386_gdbarch_init): Update.
10281 * frv-tdep.c (frv_gdbarch_init): Update.
10282 * avr-tdep.c (avr_gdbarch_init): Update.
10283 * arm-tdep.c (arm_gdbarch_init): Update.
10284 * alpha-tdep.c (alpha_gdbarch_init): Update.
10286 2003-03-01 Andrew Cagney <cagney@redhat.com>
10288 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10289 option enum and switch. When no windows, set the interpreter to
10292 2003-03-01 Andrew Cagney <cagney@redhat.com>
10294 * main.c (captured_main): Replace magic option characters with an
10297 2003-03-01 Andrew Cagney <cagney@redhat.com>
10299 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10300 INIT_EXTRA_FRAME_INFO.
10301 * gdbarch.h, gdbarch.c: Regenerate.
10302 * arm-tdep.c: Update comments.
10303 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10304 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10305 * frame.h, avr-tdep.c: Ditto.
10306 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10307 (create_new_frame, legacy_get_prev_frame): Ditto.
10308 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10309 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10311 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10312 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10313 * v850-tdep.c (v850_gdbarch_init): Ditto.
10314 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10315 * sh-tdep.c (sh_gdbarch_init): Ditto.
10316 * s390-tdep.c (s390_gdbarch_init): Ditto.
10317 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10318 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10319 * mips-tdep.c (mips_gdbarch_init): Ditto.
10320 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10322 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10323 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10324 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10325 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10326 * frv-tdep.c (frv_gdbarch_init): Ditto.
10327 * cris-tdep.c (cris_gdbarch_init): Ditto.
10328 * avr-tdep.c (avr_gdbarch_init): Ditto.
10329 * arm-tdep.c (arm_gdbarch_init): Ditto.
10330 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10331 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10333 2003-03-01 Andrew Cagney <cagney@redhat.com>
10335 * gdbarch.sh (register_type): New function with predicate.
10336 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10337 * gdbarch.h, gdbarch.c: Re-generate.
10338 * arch-utils.c (generic_register_byte): Use generic_register_size.
10339 (generic_register_size): When available, use
10340 gdbarch_register_type.
10341 * regcache.c (init_regcache_descr): When available, initialize the
10342 register type array using gdbarch_register_type. If the
10343 architecture supplies gdbarch_register_type, do not use the legacy
10345 * d10v-tdep.c (d10v_register_type): Replace
10346 d10v_register_virtual_type.
10347 (d10v_gdbarch_init): Set register_type instead of
10348 register_virtual_type.
10350 2003-03-01 Andrew Cagney <cagney@redhat.com>
10352 * Makefile.in (ax-gdb.o): Update dependencies.
10353 * ax-gdb.c: Include "regcache.h".
10354 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10355 * findvar.c (value_of_register): Ditto.
10356 * infcmd.c (default_print_registers_info): Ditto.
10358 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10360 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10361 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10363 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10365 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10368 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10370 * Makefile.in (dwarf2loc.o): Update dependencies.
10371 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10372 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10373 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10374 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10375 (locexpr_tracepoint_var_ref): New function.
10376 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10378 2003-02-28 Andrew Cagney <cagney@redhat.com>
10380 * regcache.c (register_size): New function.
10381 * regcache.h (register_size): Declare
10382 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10383 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10385 2003-02-28 David Carlton <carlton@math.stanford.edu>
10387 * linespec.c (decode_compound): Extract code into find_method.
10388 (find_method): New.
10390 2003-02-28 J. Brobecker <brobecker@gnat.com>
10392 * Makefile.in: Add rules to build and link in observer.o.
10394 2003-02-27 J. Brobecker <brobecker@gnat.com>
10396 * observer.c: Minor comments edits.
10398 2003-02-27 J. Brobecker <brobecker@gnat.com>
10400 * observer.h, observer.c: New file.
10402 2003-02-27 Andrew Cagney <cagney@redhat.com>
10404 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10406 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10408 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10409 (M6812_OP_STS_EXT): Likewise.
10410 (m6811_prologue): Use the above to recognize prologue.
10411 (m6812_prologue): Likewise.
10413 2003-02-27 David Carlton <carlton@math.stanford.edu>
10415 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10417 (compare_psymbols): Ditto.
10418 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10420 2003-02-27 Michael Snyder <msnyder@redhat.com>
10422 * f-lang.c (build_fortran_types): New function.
10423 (_initialize_f_language): Gdbarch-register built-in fortran types.
10424 * doublest.c (extract_floating): Fix warning text.
10426 2003-02-27 Andrew Cagney <cagney@redhat.com>
10428 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10429 predicate. Replaces PUSH_DUMMY_FRAME.
10430 * gdbarch.h, gdbarch.c: Regnerate.
10431 * valops.c (hand_function_call): Update. Call
10432 generic_push_dummy_frame directly.
10433 * vax-tdep.c (vax_gdbarch_init): Update.
10434 * sparc-tdep.c (sparc_gdbarch_init): Update.
10435 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10436 * m68k-tdep.c (m68k_gdbarch_init): Update.
10437 * hppa-tdep.c (hppa_gdbarch_init): Update.
10438 * alpha-tdep.c (alpha_gdbarch_init): Update.
10439 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10440 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10441 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10443 push_dummy_frame to generic_push_dummy_frame.
10444 * v850-tdep.c (v850_gdbarch_init): Ditto.
10445 * sh-tdep.c (sh_gdbarch_init): Ditto.
10446 * s390-tdep.c (s390_gdbarch_init): Ditto.
10447 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10448 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10449 * mips-tdep.c (mips_gdbarch_init): Ditto.
10450 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10452 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10453 * i386-tdep.c (i386_gdbarch_init): Ditto.
10454 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10455 * frv-tdep.c (frv_gdbarch_init): Ditto.
10456 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10457 * cris-tdep.c (cris_gdbarch_init): Ditto.
10458 * avr-tdep.c (avr_gdbarch_init): Ditto.
10459 * arm-tdep.c (arm_gdbarch_init): Ditto.
10461 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10463 * mips-tdep.c (show_mips_abi): New function.
10464 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10465 command ``show mips abi''.
10467 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10469 From Elena Zannoni <ezannoni@redhat.com>
10470 * dbxread.c (process_one_symbol): Only record line 0 if one or
10471 more sline entries have been seen for the function.
10473 2003-02-26 Michael Chastain <mec@shout.net>
10475 * configure: Regenerate with autoconf 000227.
10477 2003-02-26 Michael Chastain <mec@shout.net>
10479 Close PR build/660.
10480 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10481 for old libc5/glibc.
10482 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10484 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10486 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10487 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10489 2003-02-26 Michael Chastain <mec@shout.net>
10491 * configure.in: New variable HAVE_UINTPTR_T.
10492 * configure, config.in: Regenerated.
10494 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10497 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10499 2003-02-25 Andrew Cagney <cagney@redhat.com>
10501 * frame.c (get_prev_frame): Add comment on check for
10502 inside_entry_func. Only check for inside_entry_file when not a
10503 dummy and not a sentinel. Check that the new frame is not inner
10506 2003-02-25 Andrew Cagney <cagney@redhat.com>
10508 * frame.c (frame_debug): New variable.
10509 (_initialize_frame): Add "set/show debug frame" command.
10510 (get_prev_frame): When frame_debug, print reason why unwind
10513 2003-02-25 Michael Chastain <mec@shout.net>
10515 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10516 to avoid uintptr_t definition problems.
10518 2003-02-25 David Carlton <carlton@math.stanford.edu>
10520 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10521 (SYMBOL_LINKAGE_NAME): Ditto.
10522 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10523 SYMBOL_LINKAGE_NAME.
10524 (struct general_symbol_info): Expand comment.
10525 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10526 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10527 (SYMBOL_MATCHES_REGEXP): Ditto.
10528 * symtab.c (symbol_natural_name): New function.
10529 * objfiles.h: Replace all uses of SYMBOL_NAME by
10530 DEPRECATED_SYMBOL_NAME.
10531 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10532 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10533 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10534 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10535 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10536 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10537 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10538 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10539 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10540 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10541 * ada-exp.y: Ditto.
10542 * ada-exp.y: Update copyright.
10543 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10544 * cp-valprint.c: Ditto.
10546 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10548 * infptrace.c (detach): Do not flag error if ptrace detach fails
10549 and errno is set to ESRCH.
10551 2003-02-24 Andrew Cagney <cagney@redhat.com>
10553 * infptrace.c (udot_info): Change type of udot_off to long. Use
10554 paddr when printing udot_off's value.
10556 2003-02-24 David Carlton <carlton@math.stanford.edu>
10558 * symtab.c (make_symbol_overload_list): Only read in partial
10559 symtabs containing a matching partial symbol.
10561 2003-02-24 David Carlton <carlton@math.stanford.edu>
10563 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10564 do the comparison, not strcmp.
10565 * symfile.c (compare_psymbols): Ditto.
10566 * defs.h: Declare strcmp_iw_ordered.
10567 * utils.c (strcmp_iw_ordered): New function.
10569 2003-02-24 Jim Blandy <jimb@redhat.com>
10571 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10572 support, shared libs): Remove my name from here, to better reflect
10575 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10577 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10578 (target_ops): Add to_have_continuable_watchpoint.
10579 * target.c (update_current_target): Add INHERIT line for
10580 to_have_continuable_watchpoint.
10581 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10582 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10583 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10584 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10586 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10588 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10591 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10593 * solib.c (solib_open): Call target defined search function after
10594 failing with solib-search-path.
10595 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10596 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10598 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10600 * MAINTAINERS: Add myself to Write After section.
10602 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10604 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10606 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10608 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10609 (m68hc11_add_reggroups): New function.
10610 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10611 (m68hc11_gdbarch_init): Install the reggroups.
10612 (_initialize_m68hc11_tdep): Initialize them.
10614 2003-02-21 James E Wilson <wilson@tuliptree.org>
10616 * MAINTAINERS: Update my email address.
10618 2003-02-21 David Carlton <carlton@math.stanford.edu>
10620 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10622 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10624 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10625 * symtab.h: Add opaque declarations of struct axs_value and
10627 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10628 (struct location_funcs): New type.
10629 (struct symbol): Add "loc" to aux_value.
10630 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10631 * dwarf2read.c: Include "dwarf2expr.h".
10632 (dwarf2_symbol_mark_computed): New function.
10633 (read_func_scope): Use it.
10634 (var_decode_location): New function.
10635 (new_symbol): Use it.
10636 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10638 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10639 (dwarf2expr_h, dwarf2loc_h): New variables.
10640 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10641 (dwarf2expr.o, dwarf2loc.o): New rules.
10642 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10643 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10645 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10646 * m2-exp.y (yylex): Likewise.
10647 * printcmd.c (address_info, print_frame_args): Likewise.
10648 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10649 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10650 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10651 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10652 * symtab.c (lookup_block_symbol): Likewise.
10654 2003-02-20 Adam Fedor <fedor@gnu.org>
10656 * symtab.h: Remove objc_specific struct
10657 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10658 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10659 Have language_objc use cplus_specific struct.
10661 2003-02-20 Tom Tromey <tromey@redhat.com>
10663 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10664 TYPE_NAME, when printing a String value. PR java/1075.
10666 2003-02-20 Adam Fedor <fedor@gnu.org>
10668 * objc-lang.h (find_methods): Remove declaration.
10669 * objc-lang.c (find_methods): Make static.
10671 2003-02-20 Christopher Faylor <cgf@redhat.com>
10673 * win32-nat.c (get_image_name): Check return value from
10675 (child_xfer_memory): Ditto.
10677 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10679 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10680 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10681 '${exec_prefix}' (in addition to the expansion thereof) as
10683 * configure: Rebuilt.
10685 2003-02-20 David Carlton <carlton@math.stanford.edu>
10687 * symtab.c (search_symbols): Revert the search_symbols part of my
10688 2002-12-23 patch. Add comment.
10690 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10692 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10693 * dbxread.c (elfstab_build_psymtabs): Don't call
10694 install_minimal_symbols.
10695 (stabsect_build_psymtabs): Likewise.
10696 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10698 * somread.c (som_symfile_read): Call install_minimal_symbols
10699 and do_cleanups earlier.
10700 * nlmread.c (nlm_symfile_read): Likewise.
10701 * mdebugread.c (elfmdebug_build_psymtabs): Call
10702 install_minimal_symbols and make appropriate cleanups.
10704 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10706 * solib.c (reload_shared_libraries): New function.
10707 (_initialize_solib): Add callbacks for ``set solib-search-path''
10708 and ``set solib-absolute-prefix''.
10710 2003-02-20 David Carlton <carlton@math.stanford.edu>
10712 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10714 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10715 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10716 * ada-typeprint.c (ada_typedef_print): Ditto.
10717 * ax-gdb.c (gen_var_ref): Ditto.
10718 * breakpoint.c (print_one_breakpoint): Ditto.
10719 * buildsym.c (finish_block): Ditto.
10720 * c-valprint.c (c_val_print): Ditto.
10721 * expprint.c (print_subexp): Ditto.
10722 * findvar.c (locate_var_value): Ditto.
10723 * infcmd.c (jump_command): Ditto.
10724 * linespec.c (decode_line_2, decode_compound): Ditto.
10725 * maint.c (maintenance_translate_address): Ditto.
10726 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10727 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10729 * p-valprint.c (pascal_val_print): Ditto.
10730 * stabsread.c (define_symbol): Ditto.
10731 * stack.c (print_frame, frame_info, print_block_frame_locals)
10732 (print_frame_arg_vars, return_command): Ditto.
10733 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10734 * symmisc.c (print_symbol): Ditto.
10735 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10736 (compare_search_syms, print_symbol_info, print_msymbol_info)
10737 (rbreak_command): Ditto.
10738 * tracepoint.c (tracepoints_info): Ditto.
10739 * typeprint.c (typedef_print): Ditto.
10740 * valops.c (value_of_variable, hand_function_call): Ditto.
10741 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10742 * ada-typeprint.c: Update Copyright.
10743 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10744 * tracepoint.c, cli/cli-cmds.c: Ditto.
10746 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10748 * frame.c (generic_unwind_get_saved_register): Make non-static.
10749 * frame.h (generic_unwind_get_saved_register): Declare.
10750 * mips-tdep.c (read_next_frame_reg): Fetch register from
10751 current regcache when frame is NULL.
10752 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10754 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10755 instead of frame_register_unwind().
10757 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10759 * remote-sim.c (gdbsim_insert_breakpoint)
10760 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10763 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10765 * remote.c (_initialize_remote): Add commands "set/show remote
10766 hardware-watchpoint-limit" and "set/show remote
10767 hardware-breakpoint-limit".
10768 (remote_hw_watchpoint_limit): Initialize to -1.
10769 (remote_hw_breakpoint_limit): Ditto.
10770 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10772 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10774 * coff-pe-read.c: New file - support reading of minimal symbols from a
10775 portable executable using the export table.
10776 * coff-pe-read.h: New file.
10777 * coffread.c: Include coff-pe-read.h.
10778 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10779 debugging symbols found.
10780 * Makefile.in (SFILES): Add coff-pe-read.o.
10781 (coff_pe_read_h): Define.
10782 (COMMON_OBS): Add coff-pe-read.o.
10783 (coffread.o): Add coff_pe_read_h dependency.
10784 (coff-pe-read.o): New target.
10786 2003-02-19 David Carlton <carlton@math.stanford.edu>
10788 * Makefile.in (SFILES): Add block.c.
10790 (COMMON_OBS): Add block.o.
10792 (x86-64-tdep.o): Add $(block_h).
10793 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10794 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10795 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10796 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10797 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10798 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10799 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10800 * value.h: Add opaque declaration for struct block.
10801 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10802 * ada-lang.h: Ditto.
10803 * x86-64-tdep.c: #include "block.h"
10804 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10805 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10806 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10807 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10808 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10809 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10810 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10811 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10812 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10813 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10814 * symtab.c (block_function): Ditto.
10815 (contained_in): Ditto.
10816 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10817 block.h. Add opaque declaration for struct block.
10818 * symtab.h: Move block_function and contained_in declarations to
10819 block.h. Add opaque declarations for struct block, struct
10821 (struct block): Move to block.h.
10822 (struct blockvector): Ditto.
10823 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10824 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10825 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10826 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10827 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10829 * block.c: New file.
10830 * block.h: New file.
10832 2003-02-19 Theodore A. Roth <troth@openavr.org>
10834 * avr-tdep.c (avr_extract_return_value): Remove function.
10835 (avr_store_return_value): Remove function.
10836 (avr_extract_struct_value_address): Remove function.
10837 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10839 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10841 * rs6000-tdep.c: Include "gdb_assert.h".
10842 (registers_e500): Add "acc" and "spefscr".
10843 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10844 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10845 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10847 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10849 2003-02-18 Keith Seitz <keiths@redhat.com>
10851 * Makefile.in: Add gdbtk-interps.c.
10853 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10855 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10856 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10858 2003-02-18 Andrew Cagney <cagney@redhat.com>
10860 * symtab.h (struct objfile): Add opaque declaration.
10862 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10864 From Jim Ingham <jingham@apple.com>:
10865 * dbxread.c (process_one_symbol): Use last_function_start rather
10866 than function_start_offset to find the real beginning of the
10867 current function. The latter is just the text section offset on
10868 some systems, the former is always the real function start.
10870 2003-02-17 Andrew Cagney <cagney@redhat.com>
10872 * configure.in: Revert ${target} != ${host}.
10874 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10876 * configure.in (Makefile): Use the test ${target} != ${host},
10877 instead of the absence of the "nm.h" file, to determine of the
10878 configuration non-native.
10879 * configure: Regenerate.
10881 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10883 From Brian Ford <ford@vss.fsi.com>
10885 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10886 conditionalize tui_active test.
10887 (lookup_cmd_1): Ditto.
10889 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10891 * configure.in: Add check for _etext.
10892 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10894 * config.in, configure: regenerated.
10896 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10898 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10900 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10902 * main.c (tui_version): Delete variable.
10903 (captured_main): When --tui, set interpreter_p to "tui" instead of
10904 enabling tui_version.
10905 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10907 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10908 * cli/cli-cmds.c (disassemble_command): Ditto.
10909 * defs.h (tui_version): Delete declaration.
10910 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10911 (tui-interp.o): Add rules.
10912 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10914 2003-02-14 Christopher Faylor <cgf@redhat.com>
10916 * win32-nat.c (register_loaded_dll): Correctly set address range for
10919 2003-02-12 Jason Molenda (jmolenda@apple.com)
10921 * symmisc.c (print_objfile_statistics): Include information about
10922 the number of psymtabs and symtabs in each object file.
10924 2003-02-13 Keith R Seitz <keiths@redhat.com>
10926 * main.h (struct captured_main_args): Add interpreter_p.
10927 * main.c (captured_main): Initialize interpreter_p from context.
10928 * gdb.c (main): Set interpreter_p argument.
10929 * Makefile.in (gdb.o): Add dependency for interps.h.
10931 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10933 * event-top.c (cli_command_loop): Delete declaration.
10934 (_initialize_event_loop): Delete function setting event_loop_hook.
10935 * event-top.h (cli_command_loop): Declare. Update copyright.
10936 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10937 * interps.c (current_interp_command_loop): When event_loop_p, call
10940 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10942 * interps.h (interp_command_loop_ftype): Change return type to
10945 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10947 * x86-64-tdep.c (x86_64_extract_return_value)
10948 (x86_64_store_return_value): Use regcache instead of regbuf.
10949 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10950 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10952 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10954 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10955 * aclocal.m4: Regenerate.
10956 * configure: Regenerate.
10958 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10959 TCL_LD_SEARCH_FLAGS.
10961 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10963 * dwarf2cfi.c: Reindented.
10965 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10967 * interps.c (clear_interpreter_hooks): Convert function definition
10970 2003-02-07 David Carlton <carlton@math.stanford.edu>
10972 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10974 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10976 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10977 (struct type): ...to here.
10978 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10980 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10981 (replace_type): Set length on all type variants for a given type.
10983 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10985 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10987 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10989 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10991 * Makefile.in (symm-nat.o): Update dependencies.
10992 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10993 (lynx-nat.o, ia64-linux-nat.): Ditto.
10994 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10995 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10996 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10998 * Makefile.in (inflow_h): Define.
10999 (procfs.o, inflow.o, procfs.o): Update dependencies.
11000 * inftarg.c (child_stop): Delete extern declaration of
11001 inferior_process_group. Include "inflow.h".
11002 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11003 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11004 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11005 (our_process_group, inferior_process_group): Extern declarations.
11007 * procfs.c: Include "gdb_assert.h".
11009 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11010 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11011 * jv-typeprint.c (java_type_print_base): Ditto.
11012 * typeprint.c (typedef_print): Eliminate STREQ.
11013 * cli/cli-script.c (define_command, define_command): Ditto.
11014 * main.c (captured_main): Ditto.
11015 * values.c (lookup_internalvar): Ditto.
11016 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11017 within `if' conditional.
11018 * linespec.c (decode_line_2): Ditto.
11019 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11020 (bfd_openw_with_cleanup): Ditto.
11022 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11024 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11025 legacy_extract_return_value and store_return_value to
11026 legacy_return_value.
11028 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11030 * win32-nat.c (get_relocated_section_addrs): New function. Find
11031 section load addresses for symbol handling in relocated DLLs.
11032 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11034 2003-02-05 Fred Fish <fnf@intrinsity.com>
11036 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11038 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11040 (angel_RDI_info): Ditto.
11041 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11043 (threads_continue_all_with_signals): Ditto.
11045 2003-02-05 Jim Ingham <jingham@apple.com>
11046 Keith Seitz <keiths@redhat.com>
11047 Elena Zannoni <ezannoni@redhat.com>
11048 Andrew Cagney <ac131313@redhat.com>
11050 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11051 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11052 (SUBDIR_MI_OBS): Add "mi-interp.o".
11053 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11054 (SFILES): Add "interps.c".
11055 (COMMON_OBS): Add "interps.o".
11056 (interps_h, mi_main_h): Define.
11057 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11058 (mi-main.o, main.o, event-top.o): Update dependencies.
11059 * cli/cli-interp.c: New file.
11060 * interps.h, interps.c: New files.
11061 * top.c: (gdb_init): Don't install the default interpreter, handed
11063 * main.c: Include "interps.h".
11064 (interpreter_p): Note that it should malloc'ed.
11065 (captured_command_loop): Call current_interp_command_loop.
11066 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11067 xfree and xstrdup when updating interpreter_p. Install the
11068 default interpreter. Add hack to stop mi1's copyright notice
11070 * event-top.h (gdb_setup_readline): Declare.
11071 (gdb_disable_readline): Declare.
11072 * event-top.c: Include "interps.h".
11073 (display_gdb_prompt): Call current_interp_display_prompt_p.
11074 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11075 gdb_stdlog, and gdb_stdtarg.
11076 (_initialize_event_loop): Don't call gdb_setup_readline.
11077 * cli-out.c (cli_out_set_stream): New function.
11078 * cli-out.h (cli_out_set_stream): Declare.
11080 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11082 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11083 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11084 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11085 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11086 config/i386/i386v42mp.mt: Removed.
11088 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11090 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11093 2003-02-05 Michael Chastain <mec@shout.net>
11095 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11096 2.12.1 and earlier versions.
11098 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11100 Remove orphaned hosts, targets and files.
11101 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11102 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11103 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11104 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11105 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11106 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11107 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11108 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11109 * config/sparc/tm-sp64sim.h: Delete.
11110 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11112 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11113 mips*-dec-mach3* targets.
11115 2003-02-04 Michael Chastain <mec@shout.net>
11117 * NEWS: Fix typo: sepcifying -> specifying.
11119 2003-02-04 Michael Chastain <mec@shout.net>
11121 * dwarfread.c: Add documentation on the state of dwarf-1,
11122 looking towards obsoletion.
11124 2003-02-03 Michael Chastain <mec@shout.net>
11126 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11127 gdb/testsuite/gdb.c++/pr-1023.exp.
11129 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11131 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11132 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11134 * utils.c (init_page_info): Delete reference to MPW in comments.
11135 * main.c (captured_main): Delete #ifdef MPW.
11137 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11139 * NEWS: Note that the m32r-*-elf* is obsolete.
11140 * monitor.c (monitor_expect): Obsolete reference to m32r.
11141 * configure.tgt: Mark m32r-*-elf* as obsolete.
11142 * MAINTAINERS: Mark m32k as obsolete.
11143 * m32r-rom.c: Obsolete file.
11144 * config/m32r/m32r.mt: Obsolete file.
11145 * config/m32r/tm-m32r.h: Obsolete file.
11146 * m32r-stub.c: Obsolete file.
11147 * m32r-tdep.c: Obsolete file.
11149 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11151 * NEWS: Mention that the z8k-zilog-none is obsolete.
11152 * MAINTAINERS: Mark z8k as obsolete.
11153 * configure.tgt: Obsolete the z8k-*-coff* target.
11154 * config/z8k/z8k.mt: Obsolete file.
11155 * config/z8k/tm-z8k.h: Obsolete file.
11156 * z8k-tdep.c: Obsolete file.
11158 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11160 * NEWS: Mention that the mn10200-elf is obsolete.
11161 * configure.tgt: Obsolete mn10200-*-* target.
11162 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11163 mention that the mn10200 is obsolete.
11164 * breakpoint.h: Ditto.
11165 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11166 * config/mn10200/mn10200.mt: Obsolete file.
11167 * config/mn10200/tm-mn10200.h: Obsolete file.
11168 * mn10200-tdep.c: Obsolete file.
11170 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11172 * MAINTAINERS: Mark h8500 as obsolete.
11173 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11174 * findvar.c (value_from_register): Ditto.
11175 * h8500-tdep.c: Mark file as obsolete.
11176 * config/h8500/h8500.mt: Ditto.
11177 * config/h8500/tm-h8500.h: Ditto.
11178 * NEWS: Mention that h8500 is obsolete.
11180 2003-02-04 David Carlton <carlton@math.stanford.edu>
11182 * objfiles.c (allocate_objfile): Always set name. Add comment at
11184 * jv-lang.c (get_dynamics_objfile): Add comment.
11186 2003-02-04 David Carlton <carlton@math.stanford.edu>
11188 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11189 * printcmd.c (build_address_symbolic): Replace uses of
11190 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11191 SYMBOL_NAME, and asm_demangle.
11194 2003-02-04 David Carlton <carlton@math.stanford.edu>
11196 * linespec.c (decode_compound): Extract code into
11198 (lookup_prefix_sym): New function.
11200 2003-02-04 David Carlton <carlton@math.stanford.edu>
11202 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11203 FLOAT_COERCION_BADNESS.
11204 * gdbtypes.c (rank_one_type): Replace all uses of
11205 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11207 2003-02-04 Jim Blandy <jimb@redhat.com>
11209 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11210 section, let dwarf_macinfo_section point to it, not
11213 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11215 Pointed out by Anton Blanchard <anton@samba.org>.
11216 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11217 (ppc_linux_at_sigtramp_return_path): Use it.
11219 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11221 * defs.h (streq): Add prototype.
11222 * utils.c (streq): New function.
11224 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11225 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11226 * mdebugread.c (new_symbol): Likewise.
11227 * stabsread.c (define_symbol): Likewise.
11228 * coffread.c (process_coff_symbol): Likewise.
11229 * dwarfread.c (new_symbol): Likewise.
11231 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11232 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11234 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11235 SYMBOL_INIT_DEMANGLED_NAME.
11236 * objfiles.c: Include "hashtab.h".
11237 (allocate_objfile): Call htab_set_functions_ex for the
11238 demangled_names_hash.
11239 (free_objfile): Call htab_delete for the demangled_names_hash.
11240 * objfiles.h (struct htab): Add declaration.
11241 (struct objfile): Add demangled_names_hash.
11242 * symfile.c: Include "hashtab.h".
11243 (reread_symbols): Call htab_delete for the demangled_names_hash.
11244 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11245 SYMBOL_NAME in the bcache.
11246 * symtab.c: Include "hashtab.h". Update comments.
11247 (create_demangled_names_hash, symbol_set_names): New functions.
11248 (symbol_find_demangled_name): New function, broken out from
11249 symbol_init_demangled_names.
11250 (symbol_init_demangled_names): Use it.
11251 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11252 (SYMBOL_SET_NAMES): New macro.
11253 (symbol_set_names): Add prototype.
11255 2003-02-03 Jim Blandy <jimb@redhat.com>
11257 Use a single, consistent representation for an empty minimal
11258 symbol table in an objfile.
11259 * objfiles.c (terminate_minimal_symbol_table): New function.
11260 (allocate_objfile): Call it.
11261 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11262 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11264 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11265 objfile has minimal symbols, compare minimal_symbol_count to zero,
11266 instead of comparing msymbols with NULL.
11267 * objfiles.c (have_minimal_symbols): Same.
11268 * solib-sunos.c (solib_add_common_symbols): Call
11269 terminate_minimal_symbol_table.
11270 * symfile.c (reread_symbols): Same.
11272 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11274 * s390-tdep.c (s390_address_class_type_flags)
11275 (s390_address_class_type_flags_to_name)
11276 (s390_address_class_name_to_type_flags): New functions.
11277 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11278 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11280 2003-02-03 Michael Snyder <msnyder@redhat.com>
11282 * arm-tdep.c: Fix spell-o in comment.
11284 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11286 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11287 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11288 error messages to contain BFD filename.
11290 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11292 Fix PR gdb/742 gdb/743 gdb/877
11293 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11294 (do_mixed_source_and_assembly): Use
11295 make_cleanup_ui_out_tuple_begin_end and
11296 make_cleanup_ui_out_tuple_begin_end.
11297 (do_mixed_source_and_assembly): Ditto.
11298 * thread.c (do_captured_list_thread_ids): Ditto.
11299 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11300 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11301 ui_out_tuple_end): Delete prototypes.
11302 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11303 ui_out_list_end, ui_out_tuple_end): Delete.
11305 From Kevin Buettner <kevinb@redhat.com>:
11306 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11307 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11308 (do_cleanup_table_end): New functions.
11309 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11310 Use cleanups to invoke_ui_out_tuple_end().
11311 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11312 * cli/cli-setshow.c (cmd_show_list): Use
11313 make_cleanup_ui_out_tuple_begin_end.
11315 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11317 * frame.c (frame_unwind_register): New function.
11318 (frame_unwind_unsigned_register): Use.
11319 (frame_unwind_signed_register): Use.
11320 (frame_read_register): New function.
11321 * frame.h (frame_unwind_register): Declare.
11322 (frame_read_register): Declare.
11324 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11325 and frame_unwind_register instead of read_memory, write_register
11326 and deprecated_write_register_bytes.
11328 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11330 * frame.h: Note that namelen can be negative.
11331 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11334 * NEWS: Mention that the d10v's `regs' command is deprecated.
11335 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11336 (d10v_print_registers_info): New function.
11337 (show_regs): Call d10v_print_registers_info.
11338 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11340 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11342 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11343 lost in the previous patch.
11345 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11347 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11348 * stack.c (print_frame_info_base): Output complete FRAME tuple
11349 for synthesized frames.
11351 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11353 * mips-nat.c (zerobuf): Delete.
11354 (fetch_inferior_registers): Alloc local zerobuf.
11355 (fetch_core_registers): Alloc local zerobuf.
11356 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11357 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11358 * thread-db.c (thread_db_store_registers): Ditto.
11359 * sh-tdep.c (sh_do_register): Ditto.
11360 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11361 * remote-sim.c (gdbsim_store_register): Ditto.
11362 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11363 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11364 * monitor.c (monitor_supply_register): Ditto.
11365 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11366 * mips-nat.c (fetch_inferior_registers): Ditto.
11367 * m68klinux-nat.c (fetch_register): Ditto.
11368 * lynx-nat.c (fetch_inferior_registers): Ditto.
11369 (fetch_inferior_registers): Ditto.
11370 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11371 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11372 (hpux_thread_store_registers): Ditto.
11373 * hppah-nat.c (fetch_register): Ditto.
11374 * hppab-nat.c (fetch_register): Ditto.
11375 * hppa-tdep.c (pa_register_look_aside): Ditto.
11376 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11377 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11379 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11381 * gdbarch.sh: Explictly specify all method levels. When a
11382 variable with an empty level, provide a non-multi-arch default.
11383 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11384 * gdbarch.h: Re-generate.
11385 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11386 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11388 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11390 * defs.h (host_pointer_to_address): Delete declaration.
11391 (address_to_host_pointer): Delete declaration.
11392 * utils.c (host_pointer_to_address): Delete function.
11393 (address_to_host_pointer): Delete function.
11394 * procfs.c (procfs_address_to_host_pointer): New function.
11395 * procfs.c (proc_set_watchpoint): Use.
11396 (procfs_can_use_hw_breakpoint): Update comments.
11397 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11398 (som_solib_add): Use.
11399 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11400 * hppa-tdep.c (unwind_command): Use.
11402 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11404 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11407 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11408 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11409 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11410 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11411 (define_symbol): Update.
11412 * symfile.c (generic_load): Remove references to nindy.
11413 * symtab.c: Remove references to nindy.
11415 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11417 * infcmd.c (print_float_info): Delete code conditional on
11419 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11420 * config/m68k/nm-apollo68b.h: Ditto.
11421 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11422 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11423 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11425 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11427 * config/i386/tm-i386os9k.h: Removed.
11429 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11430 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11431 they're identical to i[3456]86-*-sysv* now.
11432 * config/i386/i386v32.mh: Removed.
11433 * config/i386/xm-i386v32.h: Removed.
11434 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11436 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11438 * config/i386/i386dgux.mh: Removed.
11439 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11441 * configure.in: Fix typo.
11442 * configure: Regenerated.
11444 2003-01-31 David Carlton <carlton@math.stanford.edu>
11446 * dwarf2read.c (dwarf2_locate_sections): Set
11447 dwarf_ranges_section.
11449 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11451 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11452 * utils.c: Update comments documenting legitimate uses of PTR.
11454 * utils.c: Re-indent.
11456 * config/djgpp/fnchange.lst: Delete nindy files.
11457 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11458 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11459 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11460 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11461 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11462 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11463 * Makefile.in (init.c): Remove nindy references.
11464 (saber_gdb): Delete rule.
11465 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11466 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11468 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11469 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11470 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11471 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11472 nindy-share/stop.h.
11473 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11474 * saber.suppress: Delete file.
11476 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11478 * dbxread.c (stabs_data): New static variable.
11479 (fill_symbuf): Support an in-memory buffer for stabs data.
11480 (stabs_seek): New function.
11481 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11482 (read_ofile_symtab): Use stabs_seek.
11483 (elfstab_build_psymtabs): Take an asection* instead of
11484 an offset and size. Relocate the stabs data if necessary.
11485 Save the section* for dbx_psymtab_to_symtab.
11486 * dwarf2read.c: Add section variables for each debug section.
11487 (dwarf2_locate_sections): Fill them in.
11488 (dwarf2_read_section): Take an asection* argument.
11489 Relocate the section contents if necessary.
11490 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11491 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11492 it to dwarf2_read_section.
11493 (dwarf2_build_frame_info): Update callers.
11494 * elfread.c (elf_symfile_read): Update call to
11495 elfstab_build_psymtabs.
11496 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11497 (DBX_STAB_SECTION): New macro.
11498 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11499 * symfile.c (symfile_dummy_outputs): New function.
11500 (symfile_relocate_debug_section): New function.
11501 * symfile.h (symfile_relocate_debug_section): Add prototype.
11503 2003-01-31 Richard Henderson <rth@redhat.com>
11505 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11506 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11507 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11508 * alpha-tdep.c (alpha_register_name): Add "unique".
11509 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11510 (ALPHA_UNIQUE_REGNUM): New.
11511 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11513 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11515 * README: Remove reference to Ericsson 1800 monitor.
11516 * Makefile.in (remote-es.o): Delete rule.
11517 (ALLDEPFILES): Delete remote-es.c.
11518 * remote-es.c: Delete file.
11519 * config/m68k/es1800.mt: Delete file.
11520 * config/djgpp/fnchange.lst: Update.
11521 * configure.tgt: Delete m68*-ericsson-* target.
11523 2003-01-31 Adam Fedor <fedor@gnu.org>
11525 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11526 Remove duplicate/shadowing variable of same name.
11528 2003-01-30 Jim Blandy <jimb@redhat.com>
11530 * symfile.c (find_separate_debug_file): Assert that the objfile's
11531 directory name we compute ends with a slash, and then assume that
11532 that's so everywhere we use it.
11534 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11536 * valops.c (value_assign): Flush frame cache after stores to memory
11539 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11541 * Makefile.in (mon960-rom.o): Delete rule.
11542 * mon960-rom.c: Delete file.
11544 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11546 * d10v-tdep.c: Include "frame-unwind.h".
11547 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11549 (next_addr, uses_frame): Delete.
11550 (struct d10v_unwind_cache): Define.
11551 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11552 Use info instead of next_addr and uses_frame globals.
11553 (d10v_frame_init_saved_regs): Delete function.
11554 (d10v_init_extra_frame_info): Delete function.
11555 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11556 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11557 init_frame_pc or frame_saved_pc.
11558 (d10v_pop_frame): Delete function.
11559 (do_d10v_pop_frame): Delete function.
11560 (d10v_frame_chain): Delete function.
11561 (d10v_frame_chain_valid): Delete function.
11562 (d10v_frame_pc_unwind): New function.
11563 (d10v_frame_id_unwind): New function.
11564 (saved_regs_unwinder): New function.
11565 (d10v_frame_register_unwind): New function.
11566 (d10v_frame_pop): New function.
11567 (d10v_frame_unwind): New variable.
11568 (d10v_frame_p): New function.
11569 (d10v_frame_saved_pc): Delete function.
11570 * Makefile.in (d10v-tdep.o): Update dependencies.
11572 2003-01-30 J. Brobecker <brobecker@gnat.com>
11574 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11575 causing some regressions due to a change in the default value
11578 2003-01-29 Richard Henderson <rth@redhat.com>
11579 Elena Zannoni <ezannoni@redhat.com>
11580 Daniel Jacobowitz <drow@mvista.com>
11583 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11585 (RANGES_SECTION): New.
11586 (dwarf_ranges_buffer): New variable.
11587 (struct comp_unit_head): Add member "die".
11588 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11589 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11590 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11591 (dwarf2_locate_sections): Likewise.
11592 (dwarf2_build_psymtabs): Read .debug_ranges.
11593 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11594 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11595 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11596 Look for DW_AT_ranges and return the bounding box.
11598 2003-01-29 Brian Ford <ford@vss.fsi.com>
11600 * win32-nat.c (cygwin_pid): Removed as unused.
11601 (child_attach): Try fall back to Cygwin pid.
11603 2003-01-29 Jim Blandy <jimb@redhat.com>
11605 * objfiles.h (struct objfile): Doc fix.
11607 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11609 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11610 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11611 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11612 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11613 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11614 (FRAME_SAVED_PC): Change to a function with predicate.
11615 * gdbarch.h, gdbarch.c: Re-generate.
11617 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11619 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11621 * complaints.c (complain): Delete function.
11622 * complaints.h (struct deprecated_complaint): Delete definition.
11623 (complain): Delete declaration.
11625 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11627 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11630 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11632 * sentinel-frame.h, sentinel-frame.c: New files.
11633 * Makefile.in (frame.o): Update dependencies.
11634 (SFILES): Add sentinel-frame.c.
11635 (sentinel_frame_h): Define.
11636 (COMMON_OBS): Add sentinel-frame.o.
11637 (sentinel-frame.o): Specify dependencies.
11638 * frame.c: Include "sentinel-frame.h".
11639 (frame_register_unwind): Rewrite assuming that there is always a a
11641 (frame_register, generic_unwind_get_saved_register): Ditto.
11642 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11643 (create_sentinel_frame, unwind_to_current_frame): New functions.
11644 (get_current_frame): Rewrite using create_sentinel_frame and
11645 unwind_to_current_frame. When possible, always create a frame.
11646 (create_new_frame): Set next to the sentinel frame.
11647 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11648 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11649 ID cache when necessary.
11650 (frame_saved_regs_id_unwind): Use frame_relative_level.
11651 (deprecated_generic_get_saved_register): Use frame_relative_level,
11652 get_frame_saved_regs, get_frame_pc, get_frame_base and
11654 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11657 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11659 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11661 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11663 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11664 (maintenance_set_profile_cmd): Use error () instead of warning ().
11666 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11668 * configure.in: Check that -pg works if using --enable-profiling.
11669 Check for monstartup and _mcleanup regardless of --enable-profiling.
11670 * maint.c: Check for monstartup and _mcleanup before using them.
11671 * config.in: Regenerated.
11672 * configure: Regenerated.
11674 2003-01-24 Nick Clifton <nickc@redhat.com>
11676 * Add sh2e support:
11678 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11680 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11681 (sh2e_show_regs): New.
11682 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11683 * config/sh/tm-sh.h: Added sh2e to comments.
11685 2003-01-23 Jim Blandy <jimb@redhat.com>
11687 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11688 symbols found)" message here; we haven't checked for a separate
11689 debug info file yet, so we don't know yet.
11690 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11691 we've looked everywhere. Also, there's no need to print a special
11692 message when we're loading the separate debug info file: the one
11693 symbol_file_add prints is fine.
11695 2003-01-23 Alexander Larsson <alexl@redhat.com>
11696 Jim Blandy <jimb@redhat.com>
11698 Add support for executables whose debug info has been separated
11699 out into a separate file, leaving only a link behind.
11700 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11701 and separate_debug_objfile_backlink.
11702 (put_objfile_before): New declaration.
11703 * symfile.c: #include "filenames.h".
11704 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11705 debug info in a separate file, read that, too. Save the addrs
11706 argument, so we can use it again to read the separated debug info;
11707 syms_from_objfile modifies the table we pass it.
11708 (reread_symbols): After re-reading an objfile, call
11709 reread_separate_symbols to refresh its separate debug info
11710 objfile, if it has one.
11711 (reread_separate_symbols, find_separate_debug_file,
11712 get_debug_link_info, separate_debug_file_exists): New functions.
11713 (debug_file_directory): New global var.
11714 (_initialize_symfile): Initialize debug_file_directory, and
11715 provide the new `set debug-file-directory' command to let the user
11717 * objfiles.c (free_objfile): If this objfile has its debug info in
11718 a separate objfile, free that one too. If this is itself a
11719 separate debug info objfile, clear our parent's backlink.
11720 (put_objfile_before): New function.
11721 * utils.c (gnu_debuglink_crc32): New function.
11722 * defs.h (gnu_debuglink_crc32): New declaration.
11723 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11724 * configure.in: Handle --with-separate-debug-dir config option.
11725 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11726 * acconfig.h (DEBUGDIR): New macro.
11727 * configure, aclocal.m4, config.in: Regenerated.
11729 2003-01-22 Jim Blandy <jimb@redhat.com>
11731 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11732 like the old symbol_file_add, but taking new arguments: you can
11733 now pass in either a `struct section_addr_info' list to say where
11734 each section is loaded, or a `struct section_offsets' table. Pass
11735 these new arguments through to syms_from_objfile as appropriate.
11736 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11737 with the appropriate quiescent values for the new arguments.
11739 * symfile.c: #include "gdb_assert.h".
11740 (syms_from_objfile): Add the ability to pass in a section offset
11741 table directly, as an alternative to the section_addr_info table.
11742 Document arguments better.
11743 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11744 * symfile.h (syms_from_objfile): Update declaration.
11745 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11747 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11749 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11751 Original patch by Tom Tromey <tromey@cygnus.com> and
11752 Jason Molenda <jmolenda@apple.com>.
11753 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11754 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11755 * NEWS: Mention profiling.
11756 * configure.in (--enable-gdbtk): Fix typo.
11757 (--enable-profiling): New. Set PROFILE_CFLAGS.
11758 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11760 (profiling_state): New variable.
11761 (mcleanup_wrapper): New function.
11762 (_initialize_maint): Remove NOTYET, fix call to
11763 add_setshow_boolean_cmd for "maint set profile".
11764 * configure: Regenerated.
11766 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11768 * Makefile.in (install-gdbtk): Install PNG images too.
11770 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11772 * exec.c (text_start): Delete global variable.
11773 (exec_file_attach): Make text_start local to the function.
11774 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11775 * valops.c (hand_function_call): Delete code that handles
11776 BEFORE_TEXT_END and AFTER_TEXT_END.
11777 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11778 of CALL_DUMMY_LOCATION.
11779 * gdbarch.c: Regenerate.
11780 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11781 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11782 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11783 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11784 (text_end): Delete extern declaration.
11786 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11788 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11789 * blockframe.c (backtrace_below_main): Move to "frame.c".
11790 (frame_chain_valid): Delete check for backtrace_below_main.
11791 (_initialize_blockframe): Delete initialization, move ``set
11792 backtrace-below-main'' command to "frame.c".
11793 (do_flush_frames_sfunc): Delete function.
11794 * frame.c: Include "command.h" and "gdbcmd.h".
11795 (frame_type_from_pc): New function.
11796 (create_new_frame): Use frame_type_from_pc.
11797 (legacy_get_prev_frame): New function.
11798 (get_prev_frame): Rewrite. When an old style frame, call
11799 legacy_get_prev_frame. Otherwize, unwind the PC first.
11800 (_initialize_frame): Add ``set backtrace-below-main'' command.
11801 * Makefile.in (frame.o): Update dependencies.
11803 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11805 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11806 DEPRECATED_REGISTERS_INFO.
11808 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11810 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11811 Maintainers'. Update `Various Maintainers'.
11813 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11815 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11816 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11817 Suppress actual parameters when `-'.
11818 * gdbarch.h, gdbarch.c: Regenerate.
11820 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11822 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11823 code handling dummy frames.
11825 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11827 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11828 (struct frame_unwind): Add field pop.
11829 * frame.h (frame_pop): Declare.
11830 * frame.c (frame_saved_regs_pop): New function.
11831 (trad_frame_unwinder): Add frame_saved_regs_pop.
11832 (frame_pop): New function.
11833 * dummy-frame.c (dummy_frame_pop): New function.
11834 (discard_innermost_dummy): New function.
11835 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11836 (dummy_frame_unwind): Add dummy_frame_pop.
11837 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11838 * valops.c (hand_function_call): Ditto.
11839 * stack.c (return_command): Ditto.
11841 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11843 * cris-tdep.c: Fix function declaration indentation.
11844 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11845 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11846 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11847 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11848 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11849 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11851 2003-01-18 Michael Chastain <mec@shout.net>
11853 * README (Unpacking and Installation -- quick overview):
11854 Warn against ".../gdb-5.3/gdb/configure".
11856 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11858 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11859 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11860 (struct frame_unwind): Declare opaque.
11861 (dummy_frame_p): Declare function.
11862 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11863 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11864 * dummy-frame.c: Include "frame-unwind.h".
11865 (dummy_frame_p): New function.
11866 (dummy_frame_unwind): New variable.
11867 * frame.c: Include "frame-unwind.h".
11868 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11869 to use the new unwind field.
11870 (set_unwind_by_pc): Delete function.
11871 (create_new_frame, get_prev_frame): Set unwind field using
11872 frame_unwind_find_by_pc.
11873 (trad_frame_unwind, trad_frame_unwinder): New variables.
11874 * frame.h (trad_frame_unwind): Declare variable.
11875 (frame_id_unwind_ftype): Delete declaration.
11876 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11877 (struct frame_unwind): Declare opaque.
11878 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11879 register_unwind with a single unwind pointer.
11880 * frame-unwind.h, frame-unwind.c: New files.
11881 * Makefile.in (SFILES): Add frame-unwind.c.
11882 (frame_unwind_h): Define.
11883 (COMMON_OBS): Add frame-unwind.o.
11884 (frame-unwind.o): Specify dependencies.
11885 (frame.o, dummy-frame.o): Update dependencies.
11887 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11889 * ada-valprint.c: Eliminate PTR.
11890 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11891 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11892 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11893 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11894 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11895 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11896 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11898 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11900 * main.c (captured_main): Don't use PTR.
11901 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11902 * gdbtypes.c (lookup_primitive_typename): Ditto.
11903 (lookup_struct_elt_type): Ditto.
11904 * f-valprint.c (info_common_command): Ditto.
11905 (list_all_visible_commons): Ditto.
11906 * jv-typeprint.c (java_type_print_base): Ditto.
11908 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11909 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11910 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11911 i386-interix-nat.c and i386-interix-tdep.c. Rename
11912 m68klinux-nat.c and m68klinux-tdep.c. Rename
11913 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11914 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11915 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11916 * main.c (captured_main): Use xfree, not free.
11918 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11920 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11921 ID back using a parameter.
11922 * frame.c (frame_id_unwind): Update call.
11923 (frame_saved_regs_id_unwind): Update.
11924 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11925 * dummy-frame.h (struct frame_id): Add opaque declaration.
11926 (dummy_frame_id_unwind): Update declaration.
11928 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11930 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11932 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11934 * MAINTAINERS (Stephen P. Smith): Updated email address.
11936 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11939 * breakpoint.c (until_break_command): Add new argument. Use it to
11940 decide whether to stop only at the current frame or not.
11941 * breakpoint.h (until_break_command): Update prototype.
11942 * infcmd.c (until_command): Add new argument to until_break_command
11944 (advance_command): New function.
11945 (_initialize_infcmd): Update help string for 'until' command.
11946 Add new 'advance' command.
11948 2003-01-14 David Carlton <carlton@math.stanford.edu>
11950 * linespec.c (decode_line_1): Normalize comments.
11951 (set_flags): Ditto.
11952 (locate_first_half): Ditto.
11953 (decode_compound): Ditto.
11954 (symtab_from_filename): Ditto.
11955 (decode_all_digits): Ditto.
11956 (decode_dollar): Ditto.
11957 (find_methods): Ditto.
11958 (find_toplevel_char): Ditto.
11960 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11962 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11963 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11964 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11965 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11966 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11967 * language.c, language.h, m32r-tdep.c: Update copyright.
11968 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11969 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11970 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11971 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11972 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11973 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11975 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11977 * stabsread.h (process_later, resolve_cfront_continuation):
11979 Update copyright years.
11980 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11981 Update copyright year.
11982 * dbxread.c(struct cont_elem): Obsolete.
11983 (process_later, process_now): Obsolete functions.
11984 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11985 Update copyright year.
11986 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11987 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11988 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11989 (parse_partial_symbols): Obsolete cfront support.
11991 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11993 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11994 read_cfront_baseclasses, read_cfront_member_functions,
11995 resolve_cfront_continuation,read_cfront_static_fields,
11996 copy_cfront_struct_fields): Obsolete functions.
11997 (define_symbol, read_one_struct_field): Obsolete cfront support.
11998 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11999 Update Copyright year.
12001 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12003 * stack.c (print_frame_info, print_stack_frame_base_stub,
12004 print_stack_frame_base, show_and_print_stack_frame_stub,
12005 show_and_print_stack_frame, print_only_stack_frame_stub,
12006 print_only_stack_frame): Delete functions.
12007 (print_stack_frame_stub): Call print_frame_info instead of
12008 print_frame_info_base.
12009 (print_frame_info_base): Rename to print_frame_info.
12010 (backtrace_command_1): Call print_frame_info, instead of
12011 print_frame_info_base.
12012 (current_frame_command): Call print_stack_frame, instead of
12013 print_only_stack_frame.
12014 (frame_command): Call print_stack_frame, instead of
12015 show_and_print_stack_frame.
12016 (up_command): Ditto.
12017 (down_command): Ditto.
12018 * frame.h (print_only_stack_frame): Delete prototype.
12019 * infrun.c (normal_stop): Call print_stack_frame, instead of
12020 show_and_print_stack_frame.
12021 * thread.c (info_threads_command): Call print_stack_frame, instead
12022 of print_only_stack_frame.
12024 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12026 * README (Graphical interface to GDB): Update URL. Point at
12029 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12032 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12034 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12037 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12039 * thread-db.c (attach_thread): Prototype.
12040 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12041 thread information (ti), and valid flags (th_valid, ti_valid).
12042 (attach_thread): Move target_pid_to_str call to after the thread
12043 is added to GDB's list. Initialize the cache.
12044 (thread_get_info_callback, thread_db_map_id2thr)
12045 (thread_db_get_info): New functions.
12046 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12047 (thread_db_store_registers, thread_db_thread_alive)
12048 (thread_db_get_thread_local_address): Use them.
12049 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12050 of calling error() for threads in unknown state.
12052 (clear_lwpid_callback): New function.
12053 (thread_db_resume): Use it to clear the cache.
12055 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12057 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12058 (resume_callback): Remove dead code.
12060 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12062 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12064 * gdbarch.h, gdbarch.c: Regenerate.
12065 * stack.c (frame_info): Only initialize the saved registers when
12066 FRAME_INIT_SAVED_REGS_P.
12067 * frame.c (frame_saved_regs_register_unwind): Assert
12068 FRAME_INIT_SAVED_REGS_P.
12069 (deprecated_generic_get_saved_register): Ditto.
12071 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12073 * source.c (openp): Squelch warning about "filename".
12075 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12077 * source.c (openp): If the file does not exist don't necessarily
12080 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12083 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12084 (integer_types_same_name_p): New function.
12085 (rank_one_type): Use it.
12086 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12088 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12090 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12092 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12093 * configure.in: Add --with-sysroot.
12094 * configure: Regenerated.
12095 * main.c (gdb_sysroot): New variable.
12096 (captured_main): Initialize gdb_sysroot.
12097 * defs.h (gdb_sysroot): New extern declaration.
12098 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12100 2003-01-12 Michael Chastain <mec@shout.net>
12102 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12104 2003-01-12 Michael Chastain <mec@shout.net>
12106 * top.c (print_gdb_version): Bump copyright year to 2003.
12108 2003-01-12 David Carlton <carlton@bactrian.org>
12110 * linespec.c (symtab_from_filename): Rename variable 's' to
12113 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12115 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12117 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12119 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12121 * d10v-tdep.c: Include "gdb_assert.h".
12122 (d10v_store_return_value): Rewrite to match current interface.
12123 (d10v_extract_struct_value_address): Ditto.
12124 (d10v_extract_return_value): Ditto.
12125 (d10v_gdbarch_init): Set store_restore_value,
12126 extract_struct_value_address and extract_return_value.
12128 2003-01-12 J. Brobecker <brobecker@gnat.com>
12130 * hpread.c (set_namestring): New procedure replacing the
12131 SET_NAMESTRING macro.
12132 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12133 by calls to set_namestring.
12135 2003-01-11 J. Brobecker <brobecker@gnat.com>
12137 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12138 a compilation warning.
12139 (hpread_process_one_debug_symbol): Likewise.
12141 2003-01-10 David Carlton <carlton@math.stanford.edu>
12143 * linespec.c (decode_line_1): Rename variable 's' to
12145 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12146 (decode_dollar): Ditto.
12147 (decode_variable): Ditto.
12148 (symbol_found): Ditto.
12150 2003-01-09 Michael Chastain <mec@shout.net>
12152 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12154 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12156 * win32-nat.c (set_process_privilege): New function.
12157 (child_attach): Call set_process_privilege() to enable the
12158 SE_DEBUG_NAME user privilege if available in process token.
12160 2003-01-10 J. Brobecker <brobecker@gnat.com>
12162 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12163 compilation error in the previous revision.
12165 2003-01-09 David Carlton <carlton@math.stanford.edu>
12167 * linespec.c: Update copyright.
12169 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12171 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12172 than inferior_ptid.
12173 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12175 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12177 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12179 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12180 (frame_saved_regs_zalloc): Update.
12181 (frame_saved_regs_register_unwind): Update.
12182 (create_new_frame): Update.
12183 (get_prev_frame): Update.
12184 (frame_extra_info_zalloc): Update.
12185 (deprecated_get_frame_saved_regs): Update.
12186 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12187 * cris-tdep.c: Update comment.
12189 * somsolib.h: Fix function indentation.
12190 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12191 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12192 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12193 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12194 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12196 * infrun.c (follow_fork): Use ISO C definition.
12197 * expprint.c (print_subexp): Use xfree instead of free.
12198 * charset.c: Include "gdb_string.h" instead of <string.h>.
12199 (register_iconv_charsets): Use ISO C definition.
12200 (host_charset, target_charset): Ditto.
12201 * Makefile.in (charset.o): Update dependencies.
12202 (mi-cmd-env.o): Update dependencies.
12204 2003-01-08 Andrew Cagney <cagney@redhat.com>
12206 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12209 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12211 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12212 build directories. Save edited gdb output in Mbuild.log. If a
12213 build fails, remove any final GDB executable.
12215 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12217 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12218 replacing hex constants with function names and stripping leading
12219 file name directory prefixes.
12221 2003-01-08 Andrew Cagney <cagney@redhat.com>
12223 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12226 2003-01-08 David Carlton <carlton@math.stanford.edu>
12228 * linespec.c (decode_line_1): Move code into decode_variable.
12229 (decode_variable): New function.
12231 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12233 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12235 2003-01-08 Andrew Cagney <cagney@redhat.com>
12237 * cris-tdep.c (cris_frame_init_saved_regs): Use
12238 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12240 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12241 (sh64_nofp_frame_init_saved_regs): Ditto.
12242 (sh_fp_frame_init_saved_regs): Ditto.
12243 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12244 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12245 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12246 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12248 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12250 * minsyms.c (lookup_minimal_symbol): Update comment.
12251 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12252 (lookup_minimal_symbol_solib_trampoline): Likewise.
12254 2003-01-08 Andrew Cagney <cagney@redhat.com>
12256 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12257 frame_relative_level.
12259 * alpha-tdep.c: Use get_frame_extra_info.
12260 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12261 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12262 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12263 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12265 * alpha-tdep.c: Use get_next_frame.
12266 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12267 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12268 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12269 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12270 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12271 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12272 * xstormy16-tdep.c: Ditto.
12274 2003-01-07 Andrew Cagney <cagney@redhat.com>
12276 * alpha-tdep.c: Use get_frame_base.
12277 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12278 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12279 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12280 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12281 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12282 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12283 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12284 * config/sparc/tm-sparc.h: Ditto.
12286 2003-01-07 Andrew Cagney <cagney@redhat.com>
12288 * frame.c (deprecated_get_frame_context): New function.
12289 (deprecated_set_frame_context): New function.
12290 * frame.h (deprecated_get_frame_context): Declare.
12291 (deprecated_set_frame_context): Declare.
12292 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12293 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12295 2003-01-07 Andrew Cagney <cagney@redhat.com>
12297 * frame.c (deprecated_set_frame_next_hack): New function.
12298 (deprecated_set_frame_prev_hack): New function.
12299 * frame.h (deprecated_set_frame_next_hack): Declare.
12300 (deprecated_set_frame_prev_hack): Declare.
12301 * mcore-tdep.c (analyze_dummy_frame): Use
12302 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12303 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12305 2003-01-07 David Carlton <carlton@math.stanford.edu>
12307 * linespec.c (decode_line_1): Move code into decode_dollar.
12308 (decode_dollar): New function.
12310 2003-01-07 Andrew Cagney <cagney@redhat.com>
12312 * arm-tdep.c (arm_init_extra_frame_info): Use
12313 deprecated_update_frame_base_hack.
12314 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12315 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12316 (fix_frame_pointer): Ditto.
12317 (mn10300_analyze_prologue): Ditto.
12319 2003-01-07 Andrew Cagney <cagney@redhat.com>
12321 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12322 extra_info using frame_extra_info_zalloc.
12323 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12324 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12325 (sh64_init_extra_frame_info): Ditto.
12326 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12327 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12328 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12329 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12330 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12331 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12332 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12333 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12334 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12335 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12336 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12337 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12339 * mn10300-tdep.c (analyze_dummy_frame): Use
12340 deprecated_set_frame_extra_info_hack.
12341 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12343 2003-01-07 J. Brobecker <brobecker@gnat.com>
12345 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12346 class is not scText. These do not define "real" procedures.
12347 (parse_partial_symbols): Likewise.
12349 2003-01-06 Michael Snyder <msnyder@redhat.com>
12351 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12353 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12355 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12356 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12357 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12358 deprecated_frame_xmalloc_with_cleanup.
12359 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12360 deprecated_frame_xmalloc.
12361 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12362 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12364 2003-01-06 Andrew Cagney <cagney@redhat.com>
12366 * x86-64-linux-tdep.c: Include "osabi.h".
12367 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12369 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12371 2003-01-06 Andrew Cagney <cagney@redhat.com>
12373 * MAINTAINERS (Target Instruction Set Architectures): Update
12374 arm-elf. Can be built with -Werror, has been multiarched.
12376 * value.h (unpack_long): Make buffer parameter constant.
12377 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12378 * scm-lang.h (scm_parse): Ditto.
12379 * defs.h (extract_typed_address, extract_address): Ditto.
12380 (extract_long_unsigned_integer): Ditto.
12381 * inferior.h (unsigned_pointer_to_address): Ditto.
12382 (signed_pointer_to_address): Ditto.
12383 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12384 * gdbarch.h, gdbarch.c: Regenerate.
12385 * findvar.c (extract_long_unsigned_integer): Update.
12386 (extract_address): Update.
12387 (extract_typed_address): Update.
12388 (unsigned_pointer_to_address): Update.
12389 * values.c (unpack_long): Update.
12390 (unpack_double): Update.
12391 (unpack_pointer): Update.
12392 (unpack_field_as_long): Update.
12393 * d10v-tdep.c (d10v_pointer_to_address): Update.
12394 * avr-tdep.c (avr_pointer_to_address): Update.
12395 * scm-lang.c (scm_unpack): Update.
12396 * findvar.c (signed_pointer_to_address): Update.
12398 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12400 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12401 since it is in i386-tdep.c.
12403 2003-01-06 J. Brobecker <brobecker@gnat.com>
12405 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12406 failure introduced in the previous change.
12408 2003-01-05 Michael Chastain <mec@shout.net>
12410 * README: Remove references to deleted remote-*.c files:
12411 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12412 remote-nrom.c, remote-os9k.c, remote-udi.c.
12414 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12416 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12417 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12418 i386_get_longjmp_target.
12420 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12422 * arm-tdep.c (prologue_cache): Change to a pointer.
12423 (_initialize_arm_tdep): Allocate prologue_cache.
12424 (check_prologue_cache): Update.
12425 (save_prologue_cache): Update.
12426 (arm_gdbarch_init): Update.
12428 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12430 * stabsread.c (update_method_name_from_physname): Call complaint()
12433 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12435 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12436 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12437 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12439 * blockframe.c: Include "gdbcmd.h" and "command.h".
12440 (backtrace_below_main): New variable.
12441 (file_frame_chain_valid, func_frame_chain_valid)
12442 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12443 (generic_func_frame_chain_valid): Remove functions.
12444 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12445 (_initialize_blockframe): New function.
12446 * Makefile.in (blockframe.o): Update dependencies.
12447 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12448 comment. Call frame_chain_valid ().
12449 * frame.h: Remove old prototypes. Add prototype for
12450 frame_chain_valid and update comments to match.
12451 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12452 Remove old comment.
12453 * gdbarch.h: Regenerated.
12454 * gdbarch.c: Regenerated.
12456 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12457 set_gdbarch_frame_chain_valid.
12458 * avr-tdep.c (avr_gdbarch_init): Likewise.
12459 * cris-tdep.c (cris_gdbarch_init): Likewise.
12460 * frv-tdep.c (frv_gdbarch_init): Likewise.
12461 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12462 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12463 (i386_nw_init_abi): Likewise.
12464 (i386_gdbarch_init): Likewise.
12465 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12467 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12468 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12469 * mips-tdep.c (mips_gdbarch_init): Likewise.
12470 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12471 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12472 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12473 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12474 * s390-tdep.c (s390_gdbarch_init): Likewise.
12475 * sh-tdep.c (sh_gdbarch_init): Likewise.
12476 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12477 * v850-tdep.c (v850_gdbarch_init): Likewise.
12478 * vax-tdep.c (vax_gdbarch_init): Likewise.
12479 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12481 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12482 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12483 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12484 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12485 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12486 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12487 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12488 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12490 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12492 * Makefile.in (acconfig_h): Remove incorrect macro.
12493 (config_h): Define.
12494 (osabi.o): Update dependencies.
12495 * configure.tgt: Set gdb_osabi based on target triplet.
12496 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12497 * configure: Regenerated.
12498 * config.in: Regenerated.
12499 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12500 (GDB_OSABI_DEFAULT): Define if not already defined.
12501 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12502 (set_osabi_string): New variables.
12503 (gdbarch_register_osabi): Add new OS ABI to
12504 gdb_osabi_available_names.
12505 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12506 (set_osabi, show_osabi): New functions.
12507 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12509 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12511 * arch-utils.c (gdbarch_info_init): Set osabi to
12512 GDB_OSABI_UNINITIALIZED.
12513 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12514 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12515 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12516 * gdbarch.c: Regenerated.
12517 * gdbarch.h: Regenerated.
12518 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12520 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12521 * osabi.h (enum gdb_osabi): Move to defs.h.
12522 (gdbarch_init_osabi): Update prototype.
12523 * defs.h (enum gdb_osabi): Moved here.
12524 * Makefile.in: Update dependencies.
12526 * alpha-tdep.h: Don't include "osabi.h".
12527 (struct gdbarch_tdep): Remove osabi member.
12528 * alpha-tdep.c: Include "osabi.h".
12529 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12530 iterate over arches. Update call to gdbarch_init_osabi.
12531 (alpha_dump_tdep): Don't dump osabi.
12532 * alpha-linux-tdep.c: Include "osabi.h".
12533 * alpha-osf1-tdep.c: Include "osabi.h".
12534 * alphafbsd-tdep.c: Include "osabi.h".
12535 * alphanbsd-tdep.c: Include "osabi.h".
12537 * arm-tdep.h: Don't include "osabi.h".
12538 (struct gdbarch_tdep): Remove osabi member.
12539 * arm-tdep.c: Include "osabi.h".
12540 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12541 iterate over arches. Update call to gdbarch_init_osabi.
12542 (arm_dump_tdep): Don't dump osabi.
12543 * arm-linux-tdep.c: Include "osabi.h".
12544 * armnbsd-tdep.c: Include "osabi.h".
12546 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12547 Update call to gdbarch_init_osabi.
12549 * i386-tdep.h: Don't include "osabi.h".
12550 (struct gdbarch_tdep): Remove osabi member.
12551 * i386-tdep.c: Include "osabi.h".
12552 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12553 iterate over arches. Update call to gdbarch_init_osabi.
12554 (i386_dump_tdep): Don't dump osabi.
12555 * i386-linux-tdep.c: Include "osabi.h".
12556 * i386-sol2-tdep.c: Include "osabi.h".
12557 * i386bsd-tdep.c: Include "osabi.h".
12558 * i386gnu-tdep.c: Include "osabi.h".
12559 * i386ly-tdep.c: Include "osabi.h".
12560 * i386nbsd-tdep.c: Include "osabi.h".
12561 * i386obsd-tdep.c: Include "osabi.h".
12563 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12564 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12565 check osabi when iterating over arches. Update call to
12566 gdbarch_init_osabi.
12567 (mips_dump_tdep): Don't dump osabi.
12569 * ns32k-tdep.h: Don't include "osabi.h".
12570 (struct gdbarch_tdep): Remove.
12571 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12572 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12573 allocate tdep. Update call to gdbarch_init_osabi.
12574 (ns32k_dump_tdep): Remove.
12575 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12576 * ns32knbsd-tdep.c: Include "osabi.h".
12578 * ppc-tdep.h: Don't include "osabi.h".
12579 (struct gdbarch_tdep): Remove osabi member.
12580 * rs6000-tdep.c: Include "osabi.h".
12581 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12582 osabi when iterating over arches. Update call to
12583 gdbarch_init_osabi.
12584 (rs6000_dump_tdep): Don't dump osabi.
12585 * ppc-linux-tdep.c: Include "osabi.h".
12586 * ppcnbsd-tdep.c: Include "osabi.h".
12588 * sh-tdep.h: Don't include "osabi.h".
12589 (struct gdbarch_tdep): Remove osabi member.
12590 * sh-tdep.c: Include "osabi.h".
12591 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12592 iterate over arches. Update call to gdbarch_init_osabi.
12593 (sh_dump_tdep): Don't dump osabi.
12594 * shnbsd-tdep.c: Include "osabi.h".
12596 * sparc-tdep.c: Include "osabi.h".
12597 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12598 iterate over arches. Update call to gdbarch_init_osabi.
12599 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12602 * vax-tdep.h: Don't include "osabi.h".
12603 (struct gdbarch_tdep): Remove.
12604 * vax-tdep.c: Include "osabi.h".
12605 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12606 iterate over arches. Don't allocate tdep. Update call
12607 to gdbarch_init_osabi.
12608 (vax_dump_tdep): Remove.
12609 (_initialize_vax_tdep): Update call to gdbarch_register.
12611 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12613 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12615 (breakpoint_re_set_one): Don't fetch the value for a disabled
12618 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12620 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12621 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12622 (COERCE_FLOAT_TO_DOUBLE): Remove.
12623 * gdbarch.c: Regenerate.
12624 * gdbarch.h: Regenerate.
12625 * Makefile.in: Remove value_h from gdbarch_h.
12626 * valops.c (coerce_float_to_double): New variable.
12627 (default_coerce_float_to_double): Remove.
12628 (standard_coerce_float_to_double): Remove.
12629 (value_arg_coerce): Use coerce_float_to_double.
12630 (_initialize_valops): Add "set coerce-float-to-double".
12631 * value.h (default_coerce_float_to_double): Remove prototype.
12632 (standard_coerce_float_to_double): Remove prototype.
12634 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12636 * mdebugread.c (parse_symbol): Likewise.
12637 * stabsread.c (define_symbol): Mark all functions as prototyped.
12639 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12640 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12641 set_gdbarch_coerce_float_to_double.
12642 * arm-tdep.c (arm_gdbarch_init): Likewise.
12643 * frv-tdep.c (frv_gdbarch_init): Likewise.
12644 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12645 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12646 * mips-tdep.c (mips_gdbarch_init): Likewise.
12647 (mips_coerce_float_to_double): Remove.
12648 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12649 (rs6000_coerce_float_to_double): Remove.
12650 * s390-tdep.c (s390_gdbarch_init): Likewise.
12651 * sh-tdep.c (sh_gdbarch_init): Likewise.
12652 (sh_coerce_float_to_double): Remove.
12653 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12654 (sparc_coerce_float_to_double): Remove.
12655 * v850-tdep.c (v850_gdbarch_init): Likewise.
12656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12657 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12658 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12659 (hppa_coerce_float_to_double): Remove prototype.
12660 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12662 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12664 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12666 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12668 Suggested by Stewart Brown <sb24@avaya.com>:
12669 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12670 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12671 (c_type_print_varspec_suffix): Likewise.
12673 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12675 * configure.in: Don't set and AC_SUBST SUBDIRS.
12676 * configure: Regenerated.
12678 * configure.in: Remove code dealing with shared libraries.
12679 * Makefile.in: Remove HLDFLAGS and HLDENV.
12680 * configure: Regenerated.
12682 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12684 * frame.c (deprecated_frame_xmalloc): New function.
12685 (deprecated_set_frame_saved_regs_hack): New function.
12686 (deprecated_set_frame_extra_info_hack): New function.
12687 * frame.h (deprecated_frame_xmalloc): Declare.
12688 (deprecated_set_frame_saved_regs_hack): Declare.
12689 (deprecated_set_frame_extra_info_hack): Declare.
12691 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12693 * configure.in: Move code that provides the --enable-gdbtk option
12694 right after the code that handles the --enable-tui option, and
12695 polish it somewhat.
12696 * configure: Regenerated.
12698 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12699 AC_CHECK_FUNCS and remove the old check for pread64.
12700 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12701 * acconfig.h (_GNU_SOURCE): Add.
12702 (HAVE_PREAD64): Remove.
12703 * configure, aclocal.m4, config.in: Regenerated.
12705 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12707 * alpha-tdep.c: Use get_frame_saved_regs.
12708 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12709 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12710 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12711 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12712 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12714 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12716 * configure.in: Remove all use of the SUBDIRS variable; add
12717 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12718 code providing the --enable-multi-ice option, and move it right in
12719 front of the code that checks whether gdbserver is supported.
12721 * configure: Regenerated.
12722 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12725 2003-01-03 Andrew Cagney <cagney@redhat.com>
12727 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12728 * avr-tdep.c, cris-tdep.c: Ditto.
12729 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12730 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12732 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12734 * configure.in: Remove --enable-netrom option.
12735 * configure: Regenerated.
12737 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12739 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12740 declaration for `struct re_pattern_buffer' instead.
12741 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12743 2003-01-03 J. Brobecker <brobecker@gnat.com>
12745 * mdebugread.c (parse_symbol): Count until the stEnd matching
12746 the structure name.
12748 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12750 * configure.in: Remove --with-cpu option.
12751 subscripts. Remove evil changequotes here.
12752 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12753 * config.in, configure: Regenerated.
12755 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12756 * configure.in: Cleanup section that sources GDB and BFD configure
12757 subscripts. Remove evil changequotes here.
12758 * config.in, configure: Regenerated.
12760 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12762 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12763 frame accessor methods.
12764 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12765 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12766 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12767 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12768 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12769 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12770 * z8k-tdep.c: Ditto.
12772 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12774 * configure.in: Remove UI_OUT configuration code.
12775 * ada-lang.c: Update assuming UI_OUT is always true.
12776 * Makefile.in (UIOUT_CFLAGS): Remove.
12777 * configure: Regenerated.
12778 * TODO: Remove blurb about elimination of -DUI_OUT.
12780 * configure.in: Move code that provides the --enable-gdbcli,
12781 --enable-gdbmi options right before the code that handles the
12782 --enable-tui option. Polish a bit.
12783 * configure: Regenerated.
12785 * configure.in: Rewrite check for GNU regex and the
12786 --without-included regex option, and move it into the "Checks for
12787 library functions" section. This makes us use the system regex
12788 again by default on systems with version 2 of the GNU C library.
12789 This was apparently broken.
12790 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12791 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12792 * config.in, configure: Regenerated.
12794 * configure.in: Move code that provides the --enable-tui option
12795 before the "Checks for libraries" section. Polish the code
12796 somewhat and set need_curses to yes if we build the TUI. Rewrite
12797 code that looks for a library providing termcap functionality to
12798 match more closely what's done in the Readline library, and move
12799 it into to the "Checks for libraries" section.
12800 * configure: Regenerated.
12801 * Makefile.in (TERMCAP): Remove variable.
12802 * config/i386/go32.mh (TERMCAP): Remove variable.
12804 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12806 * MAINTAINERS: Mention gdb_mbuild.sh.
12807 * gdb_mbuild.sh: Rewrite.
12809 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12811 * configure.in: Fix typo in last change.
12812 * config.in, configure: Regenerated.
12814 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12816 * valarith.c (value_binop): Delete obsolete code and comments.
12817 * configure.host: Ditto.
12818 * buildsym.h (make_blockvector): Ditto.
12819 * buildsym.c (make_blockvector): Ditto.
12820 * defs.h (enum language): Ditto.
12821 (chill_demangle): Ditto.
12822 * elfread.c (elf_symtab_read): Ditto.
12823 * dwarfread.c (CHILL_PRODUCER): Ditto.
12824 (set_cu_language): Ditto.
12825 (handle_producer): Ditto.
12826 * expprint.c (print_subexp): Ditto.
12827 * gdbtypes.c (chill_varying_type): Ditto.
12828 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12829 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12830 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12831 (chill_varying_type): Ditto.
12832 * language.h (_LANG_chill): Ditto.
12833 * language.c (binop_result_type, integral_type): Ditto.
12834 (character_type, string_type, structured_type): Ditto.
12835 (lang_bool_type, binop_type_check): Ditto.
12836 * stabsread.h (os9k_stabs): Ditto.
12837 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12838 (define_symbol, read_type, read_struct_fields): Ditto.
12839 (read_array_type, read_enum_type, read_huge_number): Ditto.
12840 (read_range_type, start_stabs): Ditto.
12841 * symfile.c (init_filename_language_table): Ditto.
12842 (add_psymbol_with_dem_name_to_list): Ditto.
12843 * symtab.c (symbol_init_language_specific): Ditto.
12844 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12845 * symtab.h (struct general_symbol_info): Ditto.
12846 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12847 * typeprint.c (typedef_print): Ditto.
12848 * utils.c (fprintf_symbol_filtered): Ditto.
12849 * valops.c (value_cast, search_struct_field, value_slice): Delete
12851 (varying_to_slice): Delete function.
12852 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12853 (varying_to_slice): Delete declaration.
12854 * MAINTAINERS: Update.
12856 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12858 * configure.in: Reorganize "Checks for library functions section"
12859 a bit. Remove check for `btowc' and `isascii' functions.
12860 * configure: Regenerated.
12862 * acconfig.h (_MSE_INT_H): Remove.
12863 * configure.in: Create "Checks for header files" section, and move
12864 appropriate tests there. Don't check for objlist.h, wchar.h,
12865 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12866 misdetection fix. Also add "Checks for types", "Checks for
12867 compiler characteristics" and "Checks for library functions"
12869 * config.in, configure: Regenerated.
12871 * configure.in: Create "Checks for programs" section, and move
12872 appropriate tests there.
12874 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12876 * configure.in: Create "Checks for libraries" section, and move
12877 appropriate tests there. Cleanup check for wctype in libw. Use
12878 AC_SEARCH_LIBS to see whether we need libsocket.
12879 * configure: Regenerated.
12881 For older changes see ChangeLog-2002
12887 version-control: never