1 2003-10-06 Andrew Cagney <cagney@redhat.com>
3 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
4 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
5 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
6 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
8 2003-10-06 David Lecomber <dsl@sources.redhat.com>
10 * f-valprint.c: Reformatting
12 2003-10-06 Mark Kettenis <kettenis@gnu.org>
14 * x86-64-tdep.c: Remove duplicate comment.
16 * x86-64-tdep.c (x86_64_store_return_value): Don't use
17 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
18 names for return values. This fixes a bug since we looked at %rbx
21 2003-10-05 Mark Kettenis <kettenis@gnu.org>
23 * x86-64-tdep.c: Include "regset.h".
25 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
26 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
28 * i386-tdep.c: Include "regset.h".
29 (i386_supply_gregset): New function.
30 (i386_supply_fpregset): New function.
31 (i386_gdbarch_init): Initialze register set-related members of
33 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
34 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
36 2003-10-03 Andrew Cagney <cagney@redhat.com>
38 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
39 set extract_return_value, store_return_value and
40 use_struct_convention to ppc64_sysv_abi_extract_return_value,
41 ppc64_sysv_abi_store_return_value and
42 ppc64_sysv_abi_use_struct_convention.
43 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
44 (ppc64_sysv_abi_store_return_value): Declare.
45 (ppc64_sysv_abi_use_struct_convention): Declare.
46 * ppc-sysv-tdep.c (enum return_value_convention): Define.
47 (ppc64_sysv_abi_extract_return_value): New function.
48 (ppc64_sysv_abi_store_return_value): New function.
49 (ppc64_sysv_abi_use_struct_convention): New function.
50 (ppc64_sysv_abi_return_value): New function.
52 2003-10-03 Andrew Cagney <cagney@redhat.com>
54 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
55 convert a descriptor to a function when it's in the ".opd"
58 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
60 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
61 reg_size to keep GCC silent.
63 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
65 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
66 base for DW_EH_PE_textrel encodings.
67 (read_encoded_value): Add a DW_EH_PE_textrel case.
68 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
71 2003-10-03 Mark Kettenis <kettenis@gnu.org>
73 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
75 2003-10-02 Andrew Cagney <cagney@redhat.com>
77 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
79 * gdbarch.h, gdbarch.c: Re-generate.
80 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
81 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
82 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
83 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
84 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
85 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
86 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
87 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
88 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
89 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
90 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
91 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
92 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
93 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
94 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
95 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
97 2003-10-02 Jim Blandy <jimb@redhat.com>
99 * dwarf2read.c (struct die_info): Doc fix.
101 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
103 * sh-tdep.c: Running thru gdb_indent.sh.
105 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
107 * sh-tdep.c (sh_justify_value_in_reg): New function.
108 (sh_stack_allocsize): Ditto.
109 (flt_argreg_array): New array used for floating point argument
111 (sh_init_flt_argreg): New function.
112 (sh_next_flt_argreg): Ditto.
113 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
114 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
115 Fix argument passing strategy.
116 (sh_push_dummy_call_nofpu): Ditto.
118 2003-10-01 Andrew Cagney <cagney@redhat.com>
120 * value.h (register_value_being_returned): Declare. Replace
121 "value_being_returned".
122 * infcall.c (call_function_by_hand): Use
123 register_value_being_returned.
124 * infcmd.c (print_return_value): Call
125 "register_value_being_returned", handle struct return locally.
126 * values.c (register_value_being_returned): New function. Replace
127 "value_being_returned".
129 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
131 * linux-proc.c (linux_do_registers): New function.
132 (linux_make_note_section): Use linux_do_registers in case of
133 single threaded inferior programs.
135 2003-10-01 Andrew Cagney <cagney@redhat.com>
137 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
138 use STRUCT_ADDR. When not using "struct return convention", pass
139 "0" to "value_being_returned". Add FIXMEs.
140 * infcmd.c (print_return_value): Pass an explicit 0/1 to
141 value_being_returned. Add comments.
142 * values.c (value_being_returned): Add fixme.
143 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
144 (hppa_value_returned_from_stack): Add FIXME.
146 2003-09-30 David Carlton <carlton@kealia.com>
148 * dwarf2read.c (struct die_info): Add 'parent' field; replace
149 'has_children' and 'next' by 'child' and 'sibling'.
150 (read_comp_unit): Rework algorithm, breaking body into
151 read_die_and_children and read_die_and_siblings.
152 (read_die_and_children, read_die_and_siblings): New.
153 (read_full_die): Add 'has_children' argument; set it instead of
154 the die's 'has_children' field. Minor formatting cleanup.
155 (free_die_list): Use die->child and die->sibling instead of
157 (dump_die_list): Ditto.
158 (sibling_die): Use die->sibling.
159 (psymtab_to_symtab_1): Use die's 'child' field in place of its
160 'has_children' and 'next' fields.
161 (process_die, read_file_scope, read_func_scope)
162 (read_lexical_block_scope, read_structure_scope)
163 (read_enumeration, read_array_type, read_common_block)
164 (read_namespace, read_subroutine_type, dump_die): Ditto.
166 2003-09-30 Andrew Cagney <cagney@redhat.com>
168 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
171 2003-09-30 Andrew Cagney <cagney@redhat.com>
173 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
174 REGISTER_VIRTUAL_SIZE.
175 * gdbarch.h, gdbarch.c: Regenerate.
176 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
177 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
178 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
180 2003-09-29 Andrew Cagney <cagney@redhat.com>
182 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
183 DEPRECATED_REGISTER_VIRTUAL_TYPE.
184 * gdbarch.h, gdbarch.c: Regenerate.
185 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
186 * sh64-tdep.c, sparc-tdep.c: Update.
188 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
189 * remote-vxmips.c (vx_read_register): Ditto.
190 * remote-vx68.c (vx_read_register): Ditto.
191 * gnu-nat.c (inf_validate_procs): Ditto.
193 2003-09-29 J. Brobecker <brobecker@gnat.com>
195 * infcall.c (call_function_by_hand): Fix build failure
196 introduced in the previous change to this file.
198 2003-09-29 Andrew Cagney <cagney@redhat.com>
200 * NEWS: Mention Objective-C.
202 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
204 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
205 test if the register has been saved on the stack.
206 (arm_scan_prologue_cache): When analysing the instruction
207 "str lr, [sp, #-4]", save the address where lr has been stored.
209 2003-09-28 Andrew Cagney <cagney@redhat.com>
211 * frame.c (frame_read_unsigned_register): Delete function.
212 * frame.h (frame_read_unsigned_register): Delete declaration.
213 * sparc-tdep.c (sparc_init_extra_frame_info): Use
214 get_frame_register_unsigned.
215 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
216 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
217 * d10v-tdep.c (d10v_print_registers_info): Ditto.
219 * frame.h (frame_read_register): Delete declaration.
220 * frame.c (frame_read_register): Delete function.
221 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
222 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
223 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
224 * mips-tdep.c (mips_register_to_value): Ditto.
225 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
226 * d10v-tdep.c (d10v_print_registers_info): Ditto.
228 * frame.c (frame_read_signed_register): Delete function.
229 (frame_read_unsigned_register): Update comments.
230 * frame.h (frame_read_signed_register): Delete declaration.
231 * h8300-tdep.c (h8300_print_register): Use
232 get_frame_register_signed.
233 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
235 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
236 Rename VALUE_RETURNED_FROM_STACK.
237 * infcmd.c (print_return_value): Update.
238 * infcall.c (call_function_by_hand): Update.
240 2003-09-28 Mark Kettenis <kettenis@gnu.org>
242 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
243 regcache argument and reverse the order of the other two
244 arguments. Remove local regcache variable. Determine
245 architecture from REGCACHE. Update comments.
246 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
247 reverse the order of the other two arguments. Remove local
248 regcache variable. Determine architecture from REGCACHE. Update
250 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
251 prototypes. Update comments.
252 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
254 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
256 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
257 * i386-interix-nat.c (supply_fpregset): Update.
258 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
259 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
260 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
261 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
262 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
264 * i386obsd-tdep.c (fetch_core_registers): Update.
265 * i386v4-nat.c (supply_fpregset): Update.
266 * x86-64-linux-nat.c (supply_fpregset): Update.
267 * x86-64-linux-tdep.c (fetch_core_registers): Update.
269 2003-09-27 Mark Kettenis <kettenis@gnu.org>
271 * i386-tdep.h: Put opaque declarations in alphabetical
272 order. Remove spurious whitespace.
273 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
274 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
275 * i386-tdep.c (MM0_REGNUM): Remove define.
276 (i386_mmx_regnum_p): Add gdbarch argument.
277 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
278 Rewrite using new macro definitions for FPU/SSE registers.
279 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
280 definitions from i387-tdep.h.
281 (i386_register_name): Update.
282 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
283 new macro definitions for FPU/SSE registers.
284 (i386_extract_return_value): Determine whether floating-point
285 registers are present by examining REGCACHE's architecture.
286 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
287 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
289 (i386_register_type): Update.
290 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
291 definitions for FPU registers. Use REGCACHE's architecture to
292 determine the appropriate register numbers.
293 (i386_pseudo_register_read, i386_pseudo_register_write,
294 i386_register_reggroup_p): Update.
295 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
297 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
298 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
299 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
300 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
301 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
302 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
304 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
305 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
306 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
307 definitions for FPU/SSE registers.
308 (FXSAVE_MXCSR_ADDR): New define.
309 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
311 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
312 (I387_ST0_REGNUM): Define.
314 * regcache.h (get_regcache_arch): New prototype.
315 * regcache.c (get_regcache_arch): New function.
317 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
320 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
321 Initialize using ARRAY_SIZE.
323 2003-09-27 Andrew Cagney <cagney@redhat.com>
325 * arch-utils.c (deprecated_init_frame_pc_default): Rename
326 "init_frame_pc_default".
327 * arch-utils.h (deprecated_init_frame_pc_default): Update.
328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
329 * vax-tdep.c (vax_gdbarch_init): Update.
330 * v850-tdep.c (v850_gdbarch_init): Update.
331 * sh64-tdep.c (sh64_gdbarch_init): Update.
332 * s390-tdep.c (s390_gdbarch_init): Update.
333 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
334 * mcore-tdep.c (mcore_gdbarch_init): Update.
335 * h8300-tdep.c (h8300_gdbarch_init): Update.
336 * cris-tdep.c (cris_gdbarch_init): Update.
337 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
339 2003-09-26 Mark Kettenis <kettenis@gnu.org>
341 * regset.h: New file.
342 * Makefile.in (regset_h): Add.
344 2003-09-25 Andrew Cagney <cagney@redhat.com>
346 * frame.h (deprecated_frame_saved_regs): Rename
347 get_frame_saved_regs.
348 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
349 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
350 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
351 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
352 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
354 2003-09-25 Andrew Cagney <cagney@redhat.com>
356 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
357 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
359 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
360 arm*-*-* do not use the new frame code.
362 2003-09-25 David Carlton <carlton@kealia.com>
364 * c-exp.y: Remove 'register' declarations.
365 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
367 2003-09-25 David Carlton <carlton@kealia.com>
369 * c-exp.y: Include cp-support.h. Add qualified_type.
370 (yylex): Delete nested type hack; add comments.
371 * cp-namespace.c (cp_lookup_nested_type): New function.
372 * cp-support.h: Declare cp_lookup_nested_type.
373 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
374 instead of value_struct_elt_for_reference.
375 * valops.c: Include cp-support.h.
376 (value_aggregate_elt): New function.
377 (value_namespace_elt): Ditto.
378 (value_struct_elt_for_reference): Make static.
379 * value.h: Delete declaration of value_struct_elt_for_reference;
380 add declaration for value_aggregate_elt.
381 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
384 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
386 * stack.c: Include "reggroups.h".
387 (frame_info): Only display registers in all_reggroup.
388 * Makefile.in (stack.o): Update dependencies.
390 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
392 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
393 "add ip, sp #n" in the prologue.
394 (arm_scan_prologue): Ditto.
396 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
398 * MAINTAINERS (write after approval): Add myself.
400 2003-09-25 Andreas Schwab <schwab@suse.de>
402 * m68k-tdep.c: Include "dwarf2-frame.h".
403 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
404 * Makefile.in (m68k-tdep.o): Update dependencies.
406 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
408 * sh-tdep.c (struct frame_extra_info): Remove.
409 (struct sh_frame_cache): New structure.
410 (GET_SOURCE_REG): New macro extracting source register of an opcode.
411 (GET_TARGET_REG): Ditto but target register.
412 (GET_PUSHED_REG): Remove.
413 (IS_MOV_ARG_TO_REG): New macro.
414 (IS_MOV_ARG_TO_IND_R14): New macro.
415 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
416 (IS_MOVW_PCREL_TO_REG): New macro.
417 (IS_MOVL_PCREL_TO_REG): New macro.
418 (IS_SUB_REG_FROM_SP): New macro.
419 (IS_ARG_MOV): Remove.
420 (IS_MOV_TO_R14): Remove.
421 (IS_RESTORE_FP): New macro.
424 (IS_MOV_FP_SP): New macro.
425 (IS_ADD_REG_TO_FP): New macro.
426 (IS_ADD_IMM_FP): New macro.
427 (sh_skip_prologue_hard_way): Remove.
428 (sh_saved_pc_after_call): Remove.
429 (sh_frame_chain): Remove.
430 (sh_find_callers_reg): Remove.
431 (sh_nofp_frame_init_saved_regs): Remove.
432 (sh_fp_frame_init_saved_regs): Remove.
433 (sh_init_extra_frame_info): Remove.
434 (sh_analyze_prologue): New function.
435 (sh_skip_prologue): Remove deprecated code. Rely on new function
436 sh_analyze_prologue when after_prologue fails.
437 (sh_frame_saved_pc): Remove.
438 (sh_alloc_frame_cache): New function.
439 (sh_frame_cache): Ditto.
440 (sh_frame_prev_register): Ditto.
441 (sh_frame_this_id): Ditto.
442 (sh_frame_unwind): New structure defining the heuristic frame
444 (sh_frame_sniffer): New function.
445 (sh_unwind_sp): Ditto.
446 (sh_unwind_pc): Ditto.
447 (sh_unwind_dummy_id): Ditto.
448 (sh_frame_base_address): Ditto.
449 (sh_frame_base): New structure defining new frame base code.
450 (sh_in_function_epilogue_p): New function.
451 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
452 code and to call all new code instead. Initialize dwarf2 and
453 heuristic frame sniffer.
455 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
457 * parser-defs.h (struct exp_descriptor): New definition, containing
458 language-specific info for printing, prefixifying, dumping, and
459 evaluating expressions.
460 (exp_descriptor_standard): Declare new variable.
461 (print_subexp): Make global and declare here (from expprint.c).
462 (dump_subexp): Ditto.
463 (dump_subexp_body_standard): Declare.
464 (operator_length_standard): Declare.
465 (op_name_standard): Declare.
466 (print_subexp): Declare.
467 (print_subexp_standard): Declare.
469 * language.h (struct language_defn): Add la_exp_desc field to hold
470 pointer to table for language-specific operators.
471 Remove evaluate_exp field, which is now in struct exp_descriptor.
473 * parse.c (operator_length): Move most code to new
474 operator_length_standard function. Use language-specific information.
475 (operator_length_standard): New function taking most code from
477 (exp_descriptor_standard): New constant.
479 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
480 and OP_EXTENDED_LAST.
482 * expprint.c (print_subexp): Use language-specific print_subexp.
483 Make global; remove static declaration.
484 Move most code to print_subexp_standard.
485 (print_subexp_standard): New function, containing code formerly in
487 (op_name): Add expression to argument signature.
488 Use langauge-specific op_name.
489 Move most code to op_name_standard.
490 (op_name_standard): New function, containing code formerly in op_name.
491 (dump_subexp): Use new version of op_name function.
492 Use language-specific dump_subexp_body, and move most existing code to
493 dump_subexp_body_standard.
494 (dump_raw_expression): Use new op_name interface.
495 (dump_subexp_body): Move most code to dump_subexp_body_standard.
496 (dump_subexp_body_standard): New function, containing code formerly
499 * language.c (unknown_language): Add default la_exp_desc field and
500 remove evaluate_exp field.
501 (auto_language): Ditto.
502 (local_language): Ditto.
503 * f-lang.c (f_language_defn): Ditto.
504 * c-lang.c (c_language_defn): Ditto.
505 (cplus_language_defn): Ditto.
506 (asm_language_defn): Ditto.
507 (minimal_language_defn): Ditto.
508 * p-lang.c (pascal_language_defn): Ditto.
509 * m2-lang.c (m2_language_defn): Ditto.
510 * objc-lang.c (objc_language_defn): Ditto.
512 * jv-lang.c (exp_descriptor_java): New variable, containing
513 Java-specific expression evaluator.
514 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
516 * scm-lang.c (exp_descriptor_scm): New variable, containing
517 Scheme-specific expression evaluator.
518 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
520 * objc-lang.c (print_object_command): Take evaluate_exp from the
523 * Makefile.in (eval.o): Add dependency on parser-defs.h.
525 * eval.c: Include parser-defs.h for the full declaration of
527 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
529 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
531 * parser-defs.h (operator_length): Declare.
533 * parse.c (length_of_subexp): Use operator_length to get operator
534 lengths and arities for operators.
535 Move most code to new operator_length function.
536 (operator_length): New function absorbing most code from
538 (prefixify_subexp): Remove large case and use operator_length instead.
539 (parse_exp_1): Use renamings:
540 dump_prefix_expression => dump_raw_expression and
541 dump_postfix_expression => dump_prefix_expression.
543 * expression.h (dump_prefix_expression): Rename to ...
544 (dump_raw_expression): New name.
545 (dump_postfix_expression): Rename to ...
546 (dump_prefix_expression): New name.
548 * expprint.c (dump_subexp): Make global. Add comment.
549 Move most existing code to dump_subexp_body.
550 (dump_subexp_body): New function.
551 (dump_prefix_expression): Rename to dump_raw_expression.
552 Remove attempt to print the expression via print_expression: it can't
553 work before the expression is prefixified.
554 (dump_raw_expression): Renamed from dump_prefix_expression.
555 (dump_postfix_expression): Rename to dump_prefix_expression, since
557 Remove 'note' parameter, since this routine must be used on
558 prefixified expression.
559 (dump_prefix_expression): Renamed from dump_postfix_expression.
561 2003-09-22 Jim Blandy <jimb@redhat.com>
563 * dwarf2read.c (read_array_type): When building the type for an
564 array of unspecified length, make sure to choose the upper bound
565 so that the array's total length comes out to be zero --- that's
566 how we represent such arrays.
568 2003-09-22 Michael Chastain <mec@shout.net>
570 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
572 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
574 * top.c (quit_force): Fix indirect call to quit_target so
575 a struct qt_args pointer is passed.
577 2003-09-22 Andrew Cagney <cagney@redhat.com>
579 * arch-utils.h (init_frame_pc_noop): Delete declaration.
580 * arch-utils.c (init_frame_pc_noop): Delete function.
581 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
583 * mips-tdep.c (mips_gdbarch_init): Ditto.
584 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
585 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
587 (DEPRECATED_INIT_FRAME_PC): Delete macro.
588 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
590 (DEPRECATED_INIT_FRAME_PC): Delete macro.
592 2003-09-22 Anthony Green <green@redhat.com>
594 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
597 2003-09-20 Andrew Cagney <cagney@redhat.com>
599 * breakpoint.c: Eliminate ARGSUSED.
600 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
601 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
602 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
603 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
604 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
605 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
606 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
607 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
608 * wince.c, remote-vx.c: Ditto.
610 * cli/cli-script.c: Remove "register" attributes.
611 * config/pa/tm-hppa.h: Ditto.
612 * cli/cli-decode.c: Ditto.
613 * cli/cli-cmds.c: Ditto.
615 2003-09-19 Andrew Cagney <cagney@redhat.com>
617 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
618 DEPRECATED_NPC_REGNUM.
619 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
621 2003-09-19 Christopher Faylor <cgf@redhat.com>
623 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
625 2003-09-19 Jim Blandy <jimb@redhat.com>
627 * macrotab.c (macro_include): Use the correct comparison to find
628 the appropriate place for this inclusion in the list.
630 2003-09-19 Andrew Cagney <cagney@redhat.com>
632 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
633 (DEPRECATED_HPUX_TEXT_END): Define.
634 (deprecated_hpux_text_end): Declare.
635 (struct target_ops): Declare opaque.
636 * hppah-nat.c (text_end): Make static.
637 (deprecated_hpux_text_end): New function.
638 * exec.c (text_end): Delete global variable.
639 (NEED_TEXT_START_END): Do not define.
640 (exec_file_attach): Replace code computing "text_end" code with
641 call to DEPRECATED_HPUX_TEXT_END.
643 2003-09-19 Andrew Cagney <cagney@redhat.com>
645 * utils.c (align_up, align_down): New functions.
646 * defs.h (align_up, align_down): Declare.
647 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
648 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
650 (round_up, round_down): Delete functions.
651 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
653 (ROUND_DOWN, ROUND_UP): Delete macros.
654 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
655 * h8300-tdep.c: Replace "round_up" and "round_down" with
656 "align_up" and "align_down".
657 (round_up, round_down): Delete macros.
658 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
660 (ROUND_UP, ROUND_DOWN): Delete macros.
662 2003-09-18 J. Brobecker <brobecker@gnat.com>
664 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
665 hard-coded constant. Use the proper machine name instead.
667 2003-09-17 Andrew Cagney <cagney@redhat.com>
669 * sparc-tdep.c (legacy_register_name): Delete function.
670 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
671 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
672 * infcmd.c (gdb_register_name): Delete variable.
673 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
674 REGISTER_NAME and "tm.h".
675 * gdbarch.h, gdbarch.c: Regenerate.
676 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
677 REGISTER_NAMES in comments.
678 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
679 * m68klinux-nat.c (regmap): Ditto.
681 2003-09-17 Jim Blandy <jimb@redhat.com>
683 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
685 2003-09-17 Andrew Cagney <cagney@redhat.com>
687 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
688 (ppcnbsd_init_abi): Set "use_struct_convention" to
689 "ppcnbsd_use_struct_convention".
691 2003-09-17 Mark Kettenis <kettenis@gnu.org>
693 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
694 * gdbarch.h, gdbarch.c: Regenerate.
695 (stabs_argument_has_addr): New architecture method.
696 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
697 * arch-utils.c: Include "buildsym.h".
698 (default_stabs_argument_has_addr): New function.
699 * stabsread.c (define_symbol): Use stabs_argument_has_addr
700 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
702 2003-09-17 Andrew Cagney <cagney@redhat.com>
704 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
705 * gdbarch.h, gdbarch.c: Regenerate.
706 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
707 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
708 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
709 * sparcnbsd-tdep.c: Update.
711 2003-09-17 Andrew Cagney <cagney@redhat.com>
713 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
714 * gdbarch.h, gdbarch.c: Regenerate.
715 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
716 * d10v-tdep.c, frame.c: Update.
717 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
718 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
719 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
720 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
721 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
722 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
723 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
724 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
725 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
726 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
727 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
728 * config/pa/nm-hppah.h: Update.
730 2003-09-16 Andrew Cagney <cagney@redhat.com>
732 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
733 "use_struct_convention" to "ppc_linux_use_struct_convention".
734 (ppc_linux_use_struct_convention): New function.
735 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
736 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
737 "rs6000_use_struct_convention".
738 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
740 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
743 2003-09-16 Andrew Cagney <cagney@redhat.com>
745 * buildsym.c: Remove more occurances of "register".
746 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
747 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
748 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
749 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
750 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
751 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
752 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
753 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
755 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
757 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
758 numbers to enumeration values.
759 * sh-tdep.c: Accomodate above change.
760 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
761 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
762 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
763 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
764 (IS_FPUSH): Rename from IS_FMOV.
765 (sh_extract_struct_value_address): Remove useless comment.
766 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
767 instead of own local values.
768 (sh_dump_tdep): Remove.
769 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
770 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
772 2003-09-15 Andrew Cagney <cagney@redhat.com>
774 * doublest.c (convert_floatformat_to_doublest): No longer need to
775 cast "exp_bias" to an int. Reverts 2002-12-04 change.
777 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
779 * values.c (unpack_double): Call floatformat_is_valid.
781 2003-09-15 Mark Kettenis <kettenis@gnu.org>
783 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
784 ps_strings into a long.
786 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
787 _initialize_am64fbsd_nat.
789 2003-09-15 Kevin Buettner <kevinb@redhat.com>
791 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
792 associated with DW_AT_ranges attribute is out of bounds.
794 2003-09-15 David Lecomber <dsl@sources.redhat.com>
796 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
798 2003-09-14 Michael Chastain <mec@shout.net>
800 * config/m68k/nm-apollo68v.h: Delete.
801 * config/m68k/xm-apollo68v.h: Delete.
803 2003-09-14 Andrew Cagney <cagney@redhat.com>
805 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
806 * dcache.c: Update copyrights and descriptions.
807 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
809 2003-09-14 Andrew Cagney <cagney@redhat.com>
811 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
812 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
814 2003-09-14 Andrew Cagney <cagney@redhat.com>
816 * alpha-nat.c: Remove some occurances of "register".
817 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
818 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
819 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
820 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
821 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
822 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
823 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
824 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
825 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
826 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
827 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
828 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
829 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
830 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
831 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
832 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
833 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
834 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
835 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
836 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
837 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
838 * values.c, vax-tdep.c, xcoffread.c: Ditto.
840 2003-09-13 Andrew Cagney <cagney@redhat.com>
842 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
843 * ppc-tdep.h (struct regcache): Declare opaque.
844 * objfiles.h (struct objfile_data): Declare opaque.
845 * cp-support.h (struct objfile): Declare opaque.
846 * linux-nat.h (target_waitstatus): Declare opaque.
848 2003-09-14 Mark Kettenis <kettenis@gnu.org>
850 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
851 (stabs_argument_has_addr): New architecture method.
852 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
853 * arch-utils.c: Include "buildsym.h".
854 (default_stabs_argument_has_addr): New function.
855 * stabsread.c (define_symbol): Use stabs_argument_has_addr
856 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
858 * cris-tdep.c (cris_gdbarch_init): Set
859 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
860 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
861 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
862 * mips-tdep.c (mips_gdbarch_init): Likewise.
863 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
864 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
866 2003-09-13 Andrew Cagney <cagney@redhat.com>
868 * values.c (using_struct_return): Delete "function" and "funcaddr"
870 * value.h (using_struct_return): Update declaration.
871 * infcmd.c (finish_command_continuation): Update.
872 (finish_command): Update.
873 * infcall.c (call_function_by_hand): Update.
874 * eval.c (evaluate_subexp_standard): Update.
876 2003-09-13 Christopher Faylor <cgf@redhat.com>
878 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
879 SSE registers since gdb will not operate correctly without this.
880 Restore include file ordering munged in previous change.
881 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
883 2003-09-13 Mark Kettenis <kettenis@gnu.org>
885 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
887 * gdbarch.c, gdbarch.h: Updated.
888 * infcall.c (call_function_by_hand): Update.
889 * stabsread.c (define_symbol): Updated.
891 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
893 2003-09-12 Christopher Faylor <cgf@redhat.com>
895 * win32-nat.c: Reorganize so that defines used by target headers are
896 actually defined by the system headers.
897 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
898 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
900 2003-09-12 Jim Blandy <jimb@redhat.com>
902 * dbxread.c (read_dbx_symtab): Don't report an internal error if
903 the file has no .data, .bss, or .rodata sections. Instead wait
904 until we see a variable alleged to live in one of those sections.
906 * dbxread.c (read_dbx_symtab): If we have no .data section and no
907 .bss section, presume that any variables we find live in the
910 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
911 offsets for global and static variables.
913 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
914 symbol types are, by definition, in the .data section, so it is
915 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
916 If there is no .data section, there should be no N_DATA or N_DATA
919 2003-09-12 Mark Kettenis <kettenis@gnu.org>
921 * amd64fbsd-tdep.c: Fix sigtramp recognition.
922 (amd64fbsd_sigcontext_addr): Rewrite.
923 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
925 (amd64fbsd_sc_reg_offset): Initialize with correct values.
926 (amd64fbsd_init_abi): Fix typo.
928 2003-09-12 Andrew Cagney <cagney@redhat.com>
930 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
931 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
933 2003-09-12 Andrew Cagney <cagney@redhat.com>
935 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
936 "entry_file_highpc". Update comments.
937 * defs.h (deprecated_inside_entry_file): Rename
939 * blockframe.c (deprecated_inside_entry_file): Rename
941 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
942 * vax-tdep.c (vax_frame_chain): Update.
943 * sh64-tdep.c (sh64_frame_chain): Update.
944 * sh-tdep.c (sh_frame_chain): Update.
945 * rs6000-tdep.c (rs6000_frame_chain): Update.
946 * ns32k-tdep.c (ns32k_frame_chain): Update.
947 * mips-tdep.c (mips_frame_chain): Update.
948 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
949 * m32r-tdep.c (m32r_frame_this_id): Update.
950 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
951 * frv-tdep.c (frv_frame_this_id): Update.
952 * d10v-tdep.c (d10v_frame_this_id): Update.
953 * cris-tdep.c (cris_frame_chain): Update.
954 * blockframe.c (legacy_frame_chain_valid): Update.
955 * avr-tdep.c (avr_frame_this_id): Update.
956 * arm-tdep.c (arm_prologue_this_id): Update.
957 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
958 * objfiles.c (objfile_relocate): Update.
959 * mipsread.c (mipscoff_symfile_read): Update.
960 (mipscoff_symfile_read): Update.
961 * mdebugread.c (parse_partial_symbols): Update.
962 * dwarfread.c (read_file_scope): Update.
963 * dwarf2read.c (read_file_scope): Update.
964 * dbxread.c (read_dbx_symtab): Update.
965 (read_dbx_symtab): Update.
966 * coffread.c (complete_symtab): Update.
968 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
970 * top.c (quit_target): New static helper function.
971 (quit_force): Moved code to quit_target(). Call quit_target()
972 via catch_errors() to catch errors during quit.
974 2003-09-11 David Carlton <carlton@kealia.com>
976 * buildsym.c (finish_block): Use allocate_block to allocate the
978 * mdebugread.c (new_block): Add FIXME.
980 2003-09-11 David Carlton <carlton@kealia.com>
982 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
983 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
984 (recursive_dump_type): Ditto.
985 * printcmd.c (print_formatted): Ditto.
986 * typeprint.c (print_type_scalar): Ditto.
987 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
988 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
989 * cp-support.h: Declare cp_check_possible_namespace_symbols,
990 maint_cplus_cmd_list.
991 * cp-support.c: Make maint_cplus_cmd_list extern.
992 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
994 (lookup_symbol_file): Look in possible namespace blocks when
996 (initialize_namespace_symtab): New.
997 (get_possible_namespace_block, free_namespace_block)
998 (check_possible_namespace_symbols)
999 (check_possible_namespace_symbols_loop)
1000 (check_one_possible_namespace_symbol)
1001 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1002 (_initialize_cp_namespace): Ditto.
1003 * block.h: Declare allocate_block.
1004 * block.c (allocate_block): New.
1005 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1007 * symfile.h: Update declaration of add_psymbol_to_list.
1008 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1010 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1011 scan_partial_symbols_call.
1012 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1014 (add_partial_symbol): If necessary, scan mangled names for names
1016 (add_partial_namespace): Add NAMESPACE argument; generate partial
1017 symbols associated to namespaces.
1018 (add_partial_enumeration): Add NAMESPACE argument.
1019 (new_symbol): Allow namespace syms.
1020 (read_namespace): Generate namespace syms.
1021 * objfiles.h: Add opaque declaration of struct symtab.
1022 (struct objfile): Add cp_namespace_symtab member.
1023 * objfiles.c (allocate_objfile): Set
1024 objfile->cp_namespace_symtab.
1025 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1026 dictionary_h, command_h.
1028 2003-09-11 Andrew Cagney <cagney@redhat.com>
1030 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1031 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1032 near the function's end.
1033 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1034 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1035 regcache_raw_write_signed to set SP_REGNUM.
1037 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1039 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1040 orig_addrs is set up properly.
1042 2003-09-11 Andrew Cagney <cagney@redhat.com>
1044 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1045 * gdbarch.h, gdbarch.c: Re-generate.
1046 * infcall.c (call_function_by_hand): Update.
1047 * hppa-tdep.c (hppa_push_arguments): Update.
1048 * ada-lang.c (place_on_stack): Update.
1049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1050 * sparc-tdep.c (sparc_gdbarch_init): Update.
1051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1052 * hppa-tdep.c (hppa_gdbarch_init): Update.
1053 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1056 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1058 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1059 register do need a frame.
1061 2003-09-11 Andrew Cagney <cagney@redhat.com>
1063 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1064 buildable since GDB 5.0.
1065 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1066 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1067 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1068 * irix4-nat.c: Delete file.
1069 * config/mips/irix4.mh: Delete file.
1070 * config/mips/irix3.mh: Delete file.
1071 * config/mips/irix3.mt: Delete file.
1072 * config/mips/tm-irix3.h: Delete file.
1073 * config/mips/nm-irix3.h: Delete file.
1074 * config/mips/xm-irix3.h: Delete file.
1075 * config/mips/nm-irix4.h: Delete file.
1076 * config/mips/xm-irix4.h: Delete file.
1077 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1079 2003-09-10 J. Brobecker <brobecker@gnat.com>
1081 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1082 * Makefile.in (hppa-tdep.o): Update dependencies.
1084 2003-09-10 James E Wilson <wilson@specifixinc.com>
1086 * MAINTAINERS: Change my e-mail address. Move to paper trail
1089 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1091 * MAINTAINERS (frv): New ISA entry.
1093 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1095 * frv-tdep.c (dis-asm.h): Include.
1096 * Makefile.in (frv-tdep.o): Update dependencies.
1098 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1100 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1101 Fix typo for high range of floating registers.
1103 2003-09-09 David Carlton <carlton@kealia.com>
1105 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1106 highpc initialization here out of scan_partial_symbols.
1107 (scan_partial_symbols): Restructure into a recursive version,
1108 calling add_partial_namespace and add_partial_enumeration when
1110 (add_partial_namespace): New.
1111 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1113 2003-09-09 Andrew Cagney <cagney@redhat.com>
1115 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1116 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1117 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1118 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1120 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1121 (rs6000_push_dummy_call): Set the "TOC" register.
1123 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1124 methods "max_register_raw_size", "max_register_virtual_size" or
1125 "register_virtual_size".
1127 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1129 * MAINTAINERS: Update my e-mail address.
1131 2003-09-09 Andrew Cagney <cagney@redhat.com>
1133 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1134 (rs6000_push_dummy_call): Store the struct return address.
1135 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1137 2003-09-09 Andrew Cagney <cagney@redhat.com>
1139 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1140 "ppc_sysv_abi_push_arguments".
1141 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1142 "ppc_sysv_abi_push_arguments".
1143 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1144 instead of "push_arguments".
1145 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1147 2003-09-09 Andrew Cagney <cagney@redhat.com>
1149 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1150 instead of CALL_DUMMY_ADDRESS.
1152 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1154 * p-lang.c: Eliminate "register".
1156 * expprint.c: Ditto.
1159 * language.c: Ditto.
1162 * scm-lang.c: Ditto.
1163 * objc-lang.c: Ditto.
1165 2003-09-09 Nick Clifton <nickc@redhat.com>
1167 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1169 2003-09-04 Andrew Cagney <cagney@redhat.com>
1171 * avr-tdep.c: Include "dis-asm.h".
1172 * cris-tdep.c: Include "dis-asm.h".
1173 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1174 instead of corresponding typedef.
1175 * h8300-tdep.c: Include "dis-asm.h".
1176 * ia64-tdep.c: Include "dis-asm.h".
1177 * i386-tdep.c: Include "dis-asm.h".
1178 (i386_print_insn): Use "struct disassemble_info" instead of
1179 corresponding typedef.
1180 * m68k-tdep.c: Include "dis-asm.h".
1181 * mcore-tdep.c: Include "dis-asm.h".
1182 * mips-tdep.c: Include "dis-asm.h".
1183 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1184 instead of corresponding typedef.
1185 * ns32k-tdep.c: Include "dis-asm.h".
1186 * s390-tdep.c: Include "dis-asm.h".
1187 * sparc-tdep.c: Include "dis-asm.h".
1188 * vax-tdep.c: Include "dis-asm.h".
1189 * v850-tdep.c: Include "dis-asm.h".
1190 * mn10300-tdep.c: Include "dis-asm.h".
1191 * rs6000-tdep.c: Include "dis-asm.h".
1192 * xstormy16-tdep.c: Include "dis-asm.h".
1193 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1194 print_insn_xstormy16.
1195 * Makefile.in (v850-tdep.o): Update dependencies.
1196 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1197 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1198 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1199 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1200 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1201 (gdbarch_h): Remove $(dis_asm_h).
1202 * disasm.c: Include "dis-asm.h".
1203 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1204 corresponding typedef.
1205 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1206 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1207 * gdbarch.sh: Do not include "dis-asm.h".
1208 (struct disassemble_info): Declare opaque.
1209 (TARGET_PRINT_INSN): Update declaration.
1210 * gdbarch.h, gdbarch.c: Re-generate.
1212 2003-09-08 Andrew Cagney <cagney@redhat.com>
1214 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1215 CALL_DUMMY_ADDRESS, change to a predicate.
1216 * gdbarch.h, gdbarch.c: Re-generate.
1217 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1218 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1219 * infcall.c (call_function_by_hand): Ditto.
1220 * sparc-tdep.c (sparc_push_return_address): Ditto.
1221 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1222 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1223 CALL_DUMMY_ADDRESS with entry_point_address.
1224 * v850-tdep.c (v850_push_return_address): Ditto.
1225 * s390-tdep.c (s390_push_return_address): Ditto.
1226 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1227 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1228 * mcore-tdep.c (mcore_push_return_address): Ditto.
1229 * cris-tdep.c (cris_push_return_address): Ditto.
1230 * arm-tdep.c (arm_push_return_address): Ditto.
1232 2003-09-08 Andrew Cagney <cagney@redhat.com>
1234 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1235 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1236 and REG_UNMODIFIED to REG_SAME_VALUE.
1237 (execute_cfa_program): Update.
1238 (dwarf2_frame_cache): Update. Initialize table to
1239 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1241 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1243 2003-09-08 Andrew Cagney <cagney@redhat.com>
1245 * gnu-nat.c: Remove "inline" function attribute.
1246 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1248 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1250 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1253 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1255 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1256 (frame_extra_info): Rename this struct to frv_unwind_cache.
1257 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1258 Add fields ``prev_sp'' and ``base''.
1259 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1260 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1261 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1263 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1264 Revise all callers. Fill in the unwind cache argument and make
1265 other adjustments to account for new frame mechanisms.
1266 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1267 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1268 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1269 (frv_frame_unwind, frv_frame_base): New structs.
1270 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1271 additional arguments expected by this method and adjust function
1273 (frv_gdbarch_init): Remove calls to the following functions:
1274 set_gdbarch_deprecated_init_frame_pc(),
1275 set_gdbarch_deprecated_saved_pc_after_call(),
1276 set_gdbarch_deprecated_frame_chain(),
1277 set_gdbarch_deprecated_frame_saved_pc(),
1278 set_gdbarch_deprecated_frame_init_saved_regs(),
1279 set_gdbarch_deprecated_push_arguments(),
1280 set_gdbarch_deprecated_push_return_address(),
1281 set_gdbarch_deprecated_pop_frame(),
1282 set_gdbarch_deprecated_call_dummy_words(),
1283 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1284 set_gdbarch_deprecated_init_extra_frame_info(),
1285 set_gdbarch_deprecated_dummy_write_sp(), and
1286 set_gdbarch_deprecated_pc_in_call_dummy().
1287 Add calls to the following functions:
1288 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1289 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1290 frame_base_set_default().
1291 * Makefile.in (frv-tdep.o): Update dependencies.
1293 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1295 * dwarf2-frame.c (read_encoded_value): Add support for
1296 DW_EH_PE_aligned encoding.
1298 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1300 * infrun.c (normal_stop): Don't print a message if the inferior
1303 2003-09-08 Jim Blandy <jimb@redhat.com>
1305 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1306 * dbxread.c: #include "gdb_assert.h".
1307 (read_dbx_symtab): If the objfile has no .data section, use the
1308 section index for the .bss section instead.
1310 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1312 * frame.c (deprecated_safe_get_selected_frame): New function.
1313 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1314 * findvar.c (read_var_value): Call it.
1316 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1318 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1319 (sh64-tdep.o): Add dependencies.
1320 * configure.tgt: Add FIXME to sh-*-linux*.
1321 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1322 (sh_gdbarch_init): Always set correct sh_show_regs function
1323 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1324 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1325 * sh64-tdep.c: New file, containing all sh64 related code from
1327 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1328 * config/sh/linux.mt (TDEPFILES): Ditto.
1329 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1330 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1331 * config/sh/wince.mt (TDEPFILES): Ditto.
1333 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1335 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1336 (stop_wait_callback): Handle !lp->signalled also.
1337 (lin_lwp_has_pending, flush_callback): New functions.
1338 (lin_lwp_wait): Call flush_callback.
1339 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1340 (linux_proc_pending_signals): New function.
1341 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1343 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1345 From Nick Kelsey <nickk@ubicom.com>:
1346 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1347 when the stop PC is at the beginning of a function also.
1349 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1351 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1352 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1354 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1356 * sol-thread.c: Include "gdb_string.h".
1358 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1360 * gcore.c: Reorder include files in alphabetical order. Include
1361 "gdb_assert.h". Various coding style fixes.
1362 (derive_stack_segment, derive_heap_segment): Replace check for
1363 non-null BOTTOM and TOP with gdb_assert.
1364 (derive_heap_segment): Replace check for successful creation of
1365 ZERO with gdb_assert.
1366 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1368 2003-09-04 Andrew Cagney <cagney@redhat.com>
1370 * thread-db.c (verbose_dlsym): New function.
1371 (thread_db_load): Use verbose_dlsym
1372 (thread_db_new_objfile): Print that libthread_db was loaded, and
1373 that thread debugging was enabled.
1375 2003-09-04 Andrew Cagney <cagney@redhat.com>
1377 * configure.tgt: Add "mips64*-*-*" target. Delete
1378 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1379 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1380 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1381 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1382 mips*-sony-*, and mips64*-*-elf* targets.
1383 * config/mips/embedl.mt: Delete file.
1384 * config/mips/embedl64.mt: Delete file.
1385 * config/mips/mips.mt: Delete file.
1386 * config/mips/mips64.mt: Delete file.
1387 * config/mips/tm-embed.h: Delete file.
1388 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1389 * config/mips/embed64.mt: Delete out-of-date comment.
1391 2003-09-04 Andrew Cagney <cagney@redhat.com>
1393 * hppa-tdep.c (hppa_gdbarch_init): Set
1394 "have_nonsteppable_watchpoint".
1395 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1396 * mips-tdep.c (mips_dump_tdep): Do not print
1397 HAVE_NONSTEPPABLE_WATCHPOINT.
1398 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1399 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1400 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1401 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1403 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1405 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1406 unused code. Add comment.
1408 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1410 * breakpoint.c (watchpoint_check): Check for pc being in an
1411 epilogue if watchpoint frame couldn't be found.
1413 2003-09-04 Andrew Cagney <cagney@redhat.com>
1415 * Makefile.in: Re-generate all dependencies.
1417 2003-09-03 Andrew Cagney <cagney@redhat.com>
1419 * arch-utils.h (legacy_print_insn): Delete declaration.
1420 * arch-utils.c (legacy_print_insn): Delete function.
1421 * disasm.c (deprecated_tm_print_insn_info): Delete.
1422 (_initialize_disasm): Delete function, contained code initializing
1423 deprecated_tm_print_insn_info.
1424 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1425 (deprecated_tm_print_insn_info): Delete.
1426 (TARGET_PRINT_INSN): Do not provide a default.
1427 * gdbarch.h, gdbarch.c: Re-generate.
1429 2003-09-03 Andrew Cagney <cagney@redhat.com>
1431 * disasm.c (fprintf_disasm): New function.
1432 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1433 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1434 reverts 2003-08-14 change.
1435 (_initialize_disasm): Call "init_disassemble_info", instead of
1436 INIT_DISASSEMBLE_INFO_NO_ARCH.
1438 2003-09-03 Michael Snyder <msnyder@redhat.com>
1440 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1442 2003-09-03 Andrew Cagney <cagney@redhat.com>
1444 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1445 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1446 * symfile.c (syms_from_objfile): Update.
1447 (reread_symbols): `Update
1448 * exec.c (exec_file_attach): Update.
1449 (exec_file_attach): Update.
1450 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1452 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1454 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1456 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1458 (arm_get_cache): Delete macro.
1459 (struct arm_prologue_cache): Update comments. Make saved_regs into
1460 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1462 (thumb_scan_prologue): Update for cache changes. Don't call
1463 DEPRECATED_PC_IN_CALL_DUMMY.
1464 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1465 argument and use it in desperation search for our prologue. Do not
1466 search past the specified PC.
1467 (arm_make_prologue_cache): Simplify.
1469 (arm_prologue_this_id, arm_prologue_prev_register)
1470 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1471 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1472 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1473 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1474 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1476 (arm_frame_chain_valid, arm_find_callers_reg)
1477 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1478 (arm_pop_frame): Delete obsolete methods.
1479 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1481 (arm_gdbarch_init): Update for new frame methods. Register prologue
1482 and sigtramp unwinders. Set the default frame base method.
1484 * Makefile.in (arm-tdep.o): Update dependencies.
1485 * varobj.c (find_frame_addr_in_frame_chain): Call
1486 get_frame_base_address.
1487 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1489 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1491 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1492 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1493 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1494 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1495 Take NEXT_FRAME and CACHE arguments. Call
1496 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1497 Set unwound_pc in CACHE instead of modifying the frame argument.
1498 Don't bother checking the frame type when looking for sigtramp
1500 (arm_make_prologue_cache, arm_frame_chain)
1501 (arm_init_extra_frame_info): New functions.
1503 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1505 * arm-tdep.c (arm_get_cache): Define.
1506 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1507 unwound_sp, unwound_pc, and saved_regs.
1508 (thumb_scan_prologue): Take a cache instead of the frame.
1509 (arm_scan_prologue): Likewise.
1510 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1511 instead of a temporary frame.
1512 (arm_init_extra_frame_info): Allocate and use a cache.
1513 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1515 2003-09-03 Andrew Cagney <cagney@redhat.com>
1517 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1518 * config/mips/wince.mt (TM_CLIBS): Ditto.
1519 * config/sh/wince.mt (TM_CLIBS): Ditto.
1520 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1521 * config/sparc/sp64.mt (CC): Delete.
1523 2003-09-03 Andrew Cagney <cagney@redhat.com>
1525 * defs.h: Do not include "arch-utils.h".
1526 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1527 GDB_MULTI_ARCH_PURE.
1528 * configure.in (GDB_MULTI_ARCH): Do not define.
1529 * configure, config.in: Regenerate.
1530 * configure.tgt: Do not set variable "gdb_multi_arch".
1531 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1532 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1533 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1534 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1535 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1536 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1537 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1538 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1539 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1540 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1541 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1542 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1543 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1544 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1545 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1546 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1547 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1548 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1550 2003-08-30 Michael Chastain <mec@shout.net>
1552 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1553 * config/m68k/nm-hp300hpux.h: Delete.
1554 * config/m68k/tm-hp300hpux.h: Delete.
1555 * config/m68k/xm-hp300hpux.h: Delete.
1556 * config/m68k/xm-hp300bsd.h: Delete.
1557 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1558 tm-hp300hpux.h, xm-hp300hpux.h.
1559 * somsolib.c: Remove comment about hp300 shared libraries.
1561 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1563 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1564 Only define PTRACE_GET_THREAD_AREA is not already defined.
1565 Various style fixes in code and comments and some additional
1566 spelling fixes in comments. Move after functions dealing with
1568 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1571 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1572 frame_unwind_register_unsigned instead of
1573 frame_unwind_unsigned_register.
1575 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1577 * configure.in: Search for gethostbyname in libnsl.
1578 * configure: Regenerated.
1580 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1582 * configure.in: Remove redundant AC_MSG_RESULT in check for
1583 uintptr_t in stdint.h.
1584 * configure: Regenerated.
1586 * amd64-nat.h (struct regcache): Add opaque declaration.
1588 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1589 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1590 Change "register array" to "register cache" in comments.
1591 (x86_64_linux_gregset64_reg_offset): New variable.
1592 (GETREGS_SUPPLIES): Remove macro.
1593 (supply_gregset): Call amd64_supply_native_gregset instead of
1594 x86_64_linux_supply_gregset.
1595 (fill_gregset): Rename `regno' to `regnum'. Call
1596 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1597 (store_regs): Rename `regno' to `regnum'.
1598 (store_fpregs): Rename `regno' to `regnum'.
1599 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1600 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1601 Reorganize function a bit.
1602 (store_inferior_registers): Rename `regno' to `regnum'. Use
1603 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1604 Reorganize function a bit.
1605 (_initialize_x86_64_linux_nat): New function.
1606 * config/i386/x86-64linux.mh.
1608 2003-08-29 Andrew Cagney <cagney@redhat.com>
1610 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1611 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1612 (target_remove_watchpoint): Delete macro.
1613 (target_insert_watchpoint): Delete macro.
1614 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1615 (remote_mips_stopped_by_watchpoint): Delete declaration.
1616 (remote_mips_remove_watchpoint): Delete declaration.
1617 (remote_mips_set_watchpoint): Delete declaration.
1618 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1619 * remote-mips.c (_initialize_remote_mips): Set
1620 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1621 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1622 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1623 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1624 (mips_stopped_by_watchpoint): Rename
1625 remote_mips_stopped_by_watchpoint.
1626 (mips_can_hardware_watchpoint): Rename
1627 remote_mips_can_use_hardware_watchpoint, update function
1630 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1632 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1633 USER_DS. We haven't given them a register number yet.
1635 * amd64-nat.h: New file.
1636 * amd64-nat.c: New file.
1637 * amd64fbsd-nat.c: Include "amd64-nat.h".
1638 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1639 (amd64fbsd32_r_reg_offset): New variable.
1640 (supply_gregset): Simply call amd64_supply_native_gregset.
1641 (fill_gregset): Rename `regno' to `regnum'. Simply call
1642 amd64_collect_native_gregset.
1643 (fill_fpregset): Rename `regno' to `regnum'.
1644 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1645 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1646 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1647 `fpregset_t'. Call amd64_supply_native_gregset instead of
1648 supply_gregset. Call x86_64_supply_fxsave instead of
1650 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1651 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1652 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1653 `fpregset_t'. Call amd64_collect_native_gregset instead of
1654 fill_gregset. Call x86_64_collect_fxsave instead of
1656 (_initialize_am64fbsd_nat): Initialize
1657 amd64_native_gregset32_reg_offset and
1658 amd64_native_gregset64_reg_offset.
1659 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1661 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1662 null pointer. Fix typo in comment.
1664 * regcache.c (supply_register): Reimplement to call
1665 regcache_raw_supply.
1666 (regcache_collect): Reimplement by calling regcache_raw_collect.
1668 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1670 * regcache.c (register_buffer): Consitify first argument.
1671 (regcache_raw_supply, regcache_raw_collect): New
1674 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1676 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1677 by Nathan J. Williams.
1679 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1681 * lin-lwp.c (wait_lwp): New function, copied from
1682 stop_wait_callback. Clean up.
1683 (stop_wait_callback): Use wait_lwp.
1685 2003-08-28 Andrew Cagney <cagney@redhat.com>
1687 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1688 flavour and disassembler options.
1689 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1690 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1691 deprecated_tm_print_insn_info.
1693 2003-08-27 Andrew Cagney <cagney@redhat.com>
1695 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1696 Use target_read_memory.
1697 (s390_get_frame_info): Update. Do not reference
1698 deprecated_tm_print_insn_info.
1699 (s390_check_function_end, s390_is_sigreturn): Ditto.
1701 2003-08-27 Andrew Cagney <cagney@redhat.com>
1703 * Makefile.in (cris-tdep.o): Update dependencies.
1704 * cris-tdep.c: Include "gdb_assert.h".
1705 (cris_gdbarch_init): Set print_insn.
1706 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1707 (cris_delayed_get_disassembler): Simplify, directly call the
1708 disassembler returned by cris_get_disassembler.
1709 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1710 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1711 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1712 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1713 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1714 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1715 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1716 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1717 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1718 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1719 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1720 (gdb_print_insn_sparc): Delete function.
1721 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1722 deprecated_tm_print_insn_info.
1723 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1724 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1725 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1727 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1728 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1729 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1730 (s390_gdbarch_init): Set print_insn.
1732 2003-08-27 Andrew Cagney <cagney@redhat.com>
1734 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1735 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1736 * infcall.c (call_function_by_hand): Convert the entry point
1737 address into a code address.
1739 2003-08-27 Andrew Cagney <cagney@redhat.com>
1741 * dsrec.c: Include "gdb_string.h".
1742 * Makefile.in (dsrec.o): Update dependencies.
1744 2003-08-27 Michael Chastain <mec@shout.net>
1746 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1748 2003-08-27 Andrew Cagney <cagney@redhat.com>
1750 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1751 (alpha_osf1_init_abi): Do not set call_dummy_address.
1753 2003-08-27 David Carlton <carlton@kealia.com>
1755 From Randolph Chung <tausq@debian.org>:
1756 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1757 compiles with -Wformat-nonliteral -Werror.
1759 2003-08-26 Jim Blandy <jimb@redhat.com>
1761 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1762 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1763 bfd_lookup_symbol, since we only want symbols in code sections.
1764 (look_for_base): Pass zero as the SECT_FLAGS argument to
1765 bfd_lookup_symbol, since we're not concerned about which section
1768 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1770 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1771 we are frameless or the return address register is already known.
1773 2003-08-26 Andrew Cagney <cagney@redhat.com>
1775 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1776 in size. Add comments.
1778 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1780 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1781 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1783 2003-08-26 Jason Merrill <jason@redhat.com>
1785 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1786 case out of #ifdef MIPS block.
1788 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1791 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1792 available before calling SECT_OFF_TEXT.
1793 * PROBLEMS: Remove description of java/1322.
1795 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1797 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1798 bof, and nat0-nat127 as pseudo-registers.
1799 (ia64_frame_cache): New struct used to cache frame info.
1800 (ia64_register_reggroup_p): New routine used to override default
1801 register grouping so registers without names are still saved and
1803 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1805 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1806 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1807 (ia64_alloc_frame_cache): New routine to create a new
1809 (examine_prologue): Change prototype to add next_frame pointer.
1810 Assume frameless until otherwise proven. Verify that the cfm for
1811 current frame matches the cfm that should occur for the prologues
1812 alloc insn and if equal, mark as not frameless. At end of routine,
1813 if not frameless, calculate registers for the previous frame and store
1814 in the cache, if a cache is provided.
1815 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1816 and pass 0 for next_frame.
1817 (ia64_store_return_value): Change to use convert_typed_floating()
1818 instead of calling ia64_convert_to_raw().
1819 (ia64_extract_return_value): Change to use convert_typed_floating()
1820 instead of calling ia64_convert_to_virtual().
1821 (ia64_frame_cache): New routine to support new frame model.
1822 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1823 (ia64_frame_sniffer): Ditto.
1824 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1825 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1826 (ia64_sigtramp_frame_prev_register): Ditto.
1827 (ia64_sigtramp_frame_sniffer): Ditto.
1828 (ia64_frame_base_address): Ditto.
1829 (ia64_extract_struct_value_address): Change to issue error message.
1830 (ia64_frame_align): New routine to align sp.
1831 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1832 (ia64_push_arguments): Removed. Logic moved to
1833 ia64_push_dummy_call().
1834 (ia64_push_return_address): Ditto.
1835 (ia64_unwind_dummy_id): New function.
1836 (ia64_unwind_pc): Ditto.
1837 (ia64_convert_register_p): Ditto.
1838 (ia64_register_to_value): Ditto.
1839 (ia64_value_to_register): Ditto.
1840 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1841 (ia64_register_byte, ia64_register_raw_size): Ditto.
1842 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1843 (ia64_saved_pc_after_call): Ditto.
1844 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1845 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1846 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1847 (ia64_register_convert_to_raw): Ditto.
1848 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1849 (ia64_init_extra_frame_info): Ditto.
1850 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1851 (ia64_gdbarch_init): Remove registering of deprecated functions that
1852 are no longer used. Add registration of new gdbarch functions.
1853 Remove registering deprecated_write_sp. Replace
1854 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1855 Delete set_gdbarch_deprecated_register_convertible(),
1856 set_gdbarch_deprecated_register_convert_to_virtual(), and
1857 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1858 set_gdbarch_deprecated_register_size(),
1859 set_gdbarch_deprecated_register_bytes(),
1860 set_gdbarch_pcregnum(),
1861 set_gdbarch_deprecated_register_byte(),
1862 set_gdbarch_deprecated_register_raw_size(),
1863 set_gdbarch_deprecated_max_register_raw_size(),
1864 set_gdbarch_deprecated_register_virtual_size(),
1865 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1866 Replace set_gdbarch_deprecated_extract_return_value() with
1867 set_gdbarch_extract_return_value(). Remove calls to:
1868 set_gdbarch_deprecated_saved_pc_after_call();
1869 set_gdbarch_deprecated_frame_chain(),
1870 set_gdbarch_deprecated_frame_saved_pc(),
1871 set_gdbarch_deprecated_frame_init_saved_regs(),
1872 set_gdbarch_deprecated_get_saved_register(),
1873 set_gdbarch_deprecated_call_dummy_words(),
1874 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1875 set_gdbarch_deprecated_init_extra_frame_info(),
1876 set_gdbarch_deprecated_frame_args_address(),
1877 set_gdbarch_deprecated_frame_locals_address(),
1878 and set_gdbarch_deprecated_dummy_write_sp().
1879 Add set_gdbarch_convert_register_p(),
1880 set_gdbarch_register_to_value(),
1881 set_gdbarch_value_to_register(),
1882 set_gdbarch_push_dummy_call(),
1883 set_gdbarch_frame_align(),
1884 set_gdbarch_unwind_dummy_id(),
1885 set_gdbarch_unwind_pc(),
1886 frame_unwind_append_sniffer(),
1887 frame_unwind_append_sniffer(),
1888 and frame_base_set_default().
1890 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1892 * configure.tgt: Document need for special "mipsisa64" handling.
1893 (mipsisa64*-*-linux64): Handle as target linux64.
1894 (mipsisa64*-*-*): Handle as target embed64.
1896 2003-08-18 Michael Chastain <mec@shout.net>
1898 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1901 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1903 * i387-tdep.h: Update copyright date.
1904 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1906 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1907 CFLAGS games to reflect reality.
1909 2003-08-24 Andrew Cagney <cagney@redhat.com>
1911 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1912 GDB_MULTI_ARCH is always non-zero.
1913 * osabi.c (_initialize_gdb_osabi): Ditto.
1914 (gdbarch_init_osabi): Ditto.
1915 * sparc-tdep.c: Ditto for #if code.
1917 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1919 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1921 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1923 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1924 x86_64_supply_fxsave.
1925 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1926 x86_64_supply_fxsave.
1927 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1928 x86_64_supply_fxsave.
1930 2003-08-23 Andreas Jaeger <aj@suse.de>
1932 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1935 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1937 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1938 i387_supply_register.
1939 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1940 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1942 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1944 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1946 * i386bsd-nat.c (supply_fpregset): Adjust call to
1948 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1949 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1951 (store_inferior_registers): Remove extraneous whitespace. Call
1952 i387_fill_fsave instead of fill_fpregset.
1953 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1954 (supply_fpregset): Likewise.
1955 * i386v4-nat.c (supply_fpregset): Adjust call to
1957 * i386-interix-nat.c (supply_fpregset): Adjust call to
1959 * i386-linux-nat.c (supply_fpregset): Adjust call to
1961 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1962 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1963 i387supply_fsave and i387_supply_fxsave.
1964 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1965 Incorporate code from `i387_supply_register.
1966 (i387_supply_register): Remove.
1967 (i387_supply_fxsave): Add `regnum' argument.
1969 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1971 (i387_supply_register): remove prototype.
1974 2003-08-22 Michael Chastain <mec@shout.net>
1976 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1977 Add lines for files in gdb/testsuite/gdb.cp/* that are
1978 still not 8.3 unique.
1980 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1982 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1983 TYPE_VPTR_FIELDNO is valid.
1985 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1987 * utils.c (set_width_command): Remove prototypes.
1988 (set_screen_size): New prototype.
1989 (init_page_info): Simplify by fetching the screen size from
1990 Readline. Call set_screen_size.
1991 (set_screen_size): New function.
1992 (set_width): Add missing whitespace in comment.
1993 (set_width_command): Call set_screen_size.
1994 (set_height_command): New function.
1995 (initialize_utils): Fix formatting. Make "set height" command
1996 call set_height_command. Remove redundant code that turns off
1997 pagination if output isn't a terminal. Remove redundant call to
2000 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2002 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2003 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2004 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2005 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2007 (sparc64_register_info): Give the reister with number
2008 SPARC64_STATE_REGNUM a name.
2009 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2011 (sparc64_push_dummy_call): Take BIAS into account when checking
2013 (sparc_software_single_step): Remove assertions that check whether
2014 NPC and NNPC were zero.
2015 (sparc_supply_rwindow): Make public. Merge functionality with
2016 sparc64_supply_rwindow.
2017 (sparc_fill_rwindow): Make public. Merge functionality with
2018 sparc64_fill_rwindow.
2019 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2020 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2021 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2022 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2023 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2025 * reggroups.c: Add whitespace after declarations of local
2026 variables in functions.
2028 2003-08-21 Michael Chastain <mec@shout.net>
2030 * gdbtypes.h: Change array bound type from an int to enum.
2032 2003-08-21 Andrew Cagney <cagney@redhat.com>
2034 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2035 * config/sparc/tm-sparc.h: Ditto.
2036 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2038 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2040 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2042 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2043 (register_objfile_data, set_objfile_data, objfile_data): New
2045 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2047 (allocate_objfile): Call objfile_alloc_data.
2048 (free_objfile): Call objfile_free_data.
2049 (struct objfile_data): New.
2050 (struct objfile_data_registration): New.
2051 (struct objfile_data_registry): New.
2052 (objfile_data_registry): New variable.
2053 (register_objfile_data): New function.
2054 (objfile_alloc_data, objfile_free_data): New functions.
2055 (set_objfile_data, objfile_data): New functions.
2056 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2057 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2058 (_initialize_dwarf2_frame): New function and prototype.
2060 2003-08-21 Andrew Cagney <cagney@redhat.com>
2062 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2063 a specific architecture.
2064 * arch-utils.h (set_architecture_from_arch_mach): Delete
2066 (target_architecture_hook): Delete declaration.
2067 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2068 (default_float_format): Assume GDB_MULTI_ARCH.
2069 (default_double_format): Assume GDB_MULTI_ARCH.
2070 (set_endian_from_file): Delete function.
2071 (arch_ok): Delete function.
2072 (set_arch): Delete function.
2073 (set_architecture_from_arch_mach): Delete function.
2074 (set_architecture_from_file): Delete function.
2075 (set_architecture): Assume GDB_MULTI_ARCH.
2076 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2078 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2080 Rewrite FreeBSD/sparc64 native configuration.
2081 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2082 * sparc64fbsd-nat.c: New file.
2083 * sparc64fbsd-tdep.c: New file.
2084 * sparc64-tdep.c sparc64-tdep.h: New files.
2085 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2086 sparc64fbsd-tdep.o): New dependencies.
2087 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2088 and sparc64fbsd-tdep.c.
2089 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2090 * config/sparc/fbsd.mh: Remove copyright notice.
2091 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2093 * config/sparc/fbsd.mt: Remove copyright notice.
2094 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2095 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2096 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2097 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2098 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2099 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2100 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2101 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2103 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2104 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2106 2003-08-21 Michael Chastain <mec@shout.net>
2108 * symtab.h: Add doco on the space critical structures and
2109 some measurements of space usage.
2111 2003-08-21 Michael Snyder <msnyder@redhat.com>
2113 * tracepoint.c (trace_dump_command): Trace break address
2114 is subject to DECR_PC_AFTER_BREAK.
2115 (set_traceframe_context): Make "trace_line" an int.
2116 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2118 2003-08-20 Michael Snyder <msnyder@redhat.com>
2120 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2121 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2122 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2124 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2125 functions, replace sh_push_dummy_call.
2126 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2128 2003-08-20 Michael Chastain <mec@shout.net>
2130 * gdbtypes.h (struct main_type): Rearrange to save space.
2132 2003-08-20 Michael Snyder <msnyder@redhat.com>
2134 * trad-frame.c: Comment typo fix.
2136 2003-08-20 Michael Snyder <msnyder@redhat.com>
2137 Kevin Buettner <kevinb@redhat.com>
2139 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2140 (frv_frame_init_saved_regs): Add declaration.
2141 (frame_extra_info): Add new field ``saved_regs''.
2142 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2143 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2144 Update frame related code.
2145 (frv_extract_struct_value_address): Adjust formatting.
2146 * Makefile.in (frv-tdep.o): Update dependencies.
2147 * config/frv/tm-frv.h (target_insert_watchpoint)
2148 (target_remove_watchpoint, target_insert_hw_breakpoint)
2149 (target_remove_hw_breakpoint): Delete these macros.
2150 (remote_insert_watchpoint, remote_remove_watchpoint)
2151 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2154 2003-08-20 Michael Chastain <mec@shout.net>
2156 * defs.h (ENUM_BITFIELD): New macro.
2157 * symtab.h (ENUM_BITFIELD): Use it.
2158 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2160 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2162 * MAINTAINERS (write after approval): Add myself.
2164 2003-08-18 Andrew Cagney <cagney@redhat.com>
2166 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2167 * gdbarch.h, gdbarch.c: Re-generate.
2168 * infcall.c (call_function_by_hand): Adjust the SP by
2169 frame_red_zone_size before allocating any stack space.
2170 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2171 * x86-64-tdep.c (x86_64_frame_align): New function.
2172 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2174 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2175 Remove code adjusting SP so that it skips over the Red Zone.
2177 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2179 * NEWS (New native configurations): Mention FreeBSD/amd64.
2181 2003-08-18 Andrew Cagney <cagney@redhat.com>
2183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2184 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2186 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2188 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2190 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2192 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2194 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2196 * i386-linux-nat.c: Include "linux-nat.h".
2197 (child_post_startup_inferior): New function.
2199 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2201 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2202 at the start of a frameless function. This probably fixes PR
2205 2003-08-17 Michael Chastain <mec@shout.net>
2207 * symfile.c (find_sym_fns): Remove special case for apollo target.
2209 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2211 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2212 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2213 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2214 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2215 (linux_supports_tracevforkdone): New function.
2216 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2218 (child_follow_fork): Handle vfork.
2219 (linux_handle_extended_wait): Likewise. Also handle exec.
2220 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2221 * NEWS: Mention fork tracing.
2223 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2225 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2227 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2229 * Makefile.in (i386-linux-nat.o): Update dependencies.
2230 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2231 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2232 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2233 * i386-linux-nat.c: Include "linux-nat.h".
2234 (child_post_startup_inferior): New function.
2235 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2236 * infptrace.c (kill_inferior): Wrap in #ifdef.
2237 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2238 attaching to each LWP.
2239 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2240 (init_lin_lwp_ops): Fill in some more operations.
2241 * linux-nat.h (linux_enable_event_reporting)
2242 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2244 * linux-nat.c (linux_enable_event_reporting): New function.
2245 (child_post_attach, linux_child_post_startup_inferior)
2246 (child_post_startup_inferior, child_follow_fork)
2247 (linux_handle_extended_wait, kill_inferior): New functions.
2249 2003-08-16 Andrew Cagney <cagney@redhat.com>
2251 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2252 * gdbarch.h, gdbarch.c: Re-generate.
2254 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2256 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2258 2003-08-16 Andrew Cagney <cagney@redhat.com>
2260 * NEWS: Mention that "set prompt-escape-char" was deleted.
2261 * top.c (get_prompt_1): Delete function.
2262 (gdb_prompt_escape):
2263 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2264 prompt-escape-char" command.
2265 (MAX_PROMPT_SIZE): Delete macro.
2266 (get_prompt): Simplify, do not call get_prompt_1.
2268 2003-08-16 Andrew Cagney <cagney@redhat.com>
2270 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2271 -Werror. -Wformat-nonliteral problems.
2273 2003-08-15 J. Brobecker <brobecker@gnat.com>
2275 Further multiarching work mostly for hppa64-*-hpux11:
2276 * hppa-tdep.h: New file.
2277 * hppa-tdep.c: #include hppa-tdep.c.
2278 (hppa32_num_regs): Renamed from hppa_num_regs.
2279 (hppa64_num_regs): New constant.
2280 (hppa64_call_dummy_breakpoint_offset): New constant.
2281 (hppa32_call_dummy_length): New constant.
2282 (hppa64_call_dummy_length): New constant.
2283 (hppa32_stack_align): Make name 32bit explicit.
2284 (hppa32_register_virtual_type): Likewise.
2285 (hppa32_extract_return_value): Likewise.
2286 (hppa32_use_struct_convention): Likewise.
2287 (hppa32_store_return_value): Likewise.
2288 (hppa64_register_virtual_type): New function.
2289 (hppa64_extract_return_value): New function.
2290 (hppa64_use_struct_convention): New function.
2291 (hppa64_store_return_value): New function.
2292 (hppa_frame_locals_address): Remove declaration, function does
2294 (hppa_register_byte): Add support for PA64 ABI.
2295 (hppa_gdbarch_init): Add support for PA64 ABI.
2296 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2297 Make name 32bit explicit.
2298 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2299 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2300 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2301 (hppa64_hpux_frame_base_before_sigtramp): New function.
2302 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2303 * config/pa/tm-hppa64.h: Remove macros that are no longer
2304 necessary now that the gdbarch vector is properly setup.
2305 Transform some macros into function calls. Some minor cleanup.
2306 * config/pa/tm-hppah.h: Update function calls in macros
2307 following the function renaming in hppa-hpux-tdep.c.
2308 * Makefile.in (hppa_tdep_h): New variable.
2309 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2311 2003-08-14 Michael Snyder <msnyder@redhat.com>
2313 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2315 2003-08-13 J. Brobecker <brobecker@gnat.com>
2317 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2318 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2321 2003-08-13 Michael Snyder <msnyder@redhat.com>
2323 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2324 (frv_saved_pc_after_call): Use deprecated ftype.
2325 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2326 (frv_remote_translate_xfer_address): Remove.
2327 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2329 2003-08-13 J. Brobecker <brobecker@gnat.com>
2331 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2332 initialization after the common gdbarch initialization, not before.
2334 2003-08-13 J. Brobecker <brobecker@gnat.com>
2336 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2337 (ADDR_BITS_REMOVE): Remove, redundant.
2339 2003-08-13 J. Brobecker <brobecker@gnat.com>
2341 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2342 gdbarch method to clear the 2 low bits of text addresses.
2344 2003-08-12 Andrew Cagney <cagney@redhat.com>
2346 * Makefile.in (dsrec.o): Update dependencies.
2347 * dsrec.c: Include "gdb_assert.h".
2348 (make_srec): Use snprintf instead of sprintf, use a literal format
2351 2003-08-12 Andrew Cagney <cagney@redhat.com>
2353 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2354 FRAME_OBSTACK_ZALLOC.
2356 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2358 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2361 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2363 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2364 amd64fbsd_sc_reg_offset): Add extern declarations.
2365 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2368 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2370 * MAINTAINERS (write after approval): Update my mail address.
2372 2003-08-10 Andrew Cagney <cagney@redhat.com>
2374 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2376 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2378 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2379 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2380 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2381 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2382 i386bsd_sc_reg_offset): Add extern declarations.
2383 * i386obsd-nat.c: Include "i386-tdep.h"
2384 (_initialize_i386obsd_nat): Remove extern declarations.
2385 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2387 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2390 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2391 instead of frame_read_register.
2392 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2393 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2395 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2396 instead of frame_unwind_unsigned_register. Use
2397 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2398 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2399 instead of read_register. Use builtin_type_void_data_ptr instead
2400 of builtin_type_void_func_ptr when extracting the address of the
2402 (i386_extract_return_value, i386_store_return_value,
2403 i386_pseudo_register_read, i386_pseudo_register_write): Use
2404 register_size instead REGISTER_RAW_SIZE.
2406 2003-08-10 Andrew Cagney <cagney@redhat.com>
2408 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2409 sprintf. Make "name" constant.
2411 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2413 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2414 instead of frame_read_register.
2415 (i387_print_float_info): Use get_frame_register and
2416 get_frame_register_unsigned instead of frame_register_read.
2418 * i386fbsd-nat.c: Include "i386-tdep.h".
2419 (child_resume): Make `eflags' an ULONGEST. Use
2420 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2421 instead of register_read and register_write.
2423 * i386bsd-nat.c (fetch_inferior_registers,
2424 store_inferior_registers): Don't use && at the end of a line.
2425 (_initialize_i386bsd_nat): Fix typo.
2427 * frame.c (_initialize_frame): Add missing backslash.
2429 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2430 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2431 and supply_register instead of manipulating the register buffer
2434 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2435 * config/i386/nm-i386sol2.h
2436 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2438 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2439 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2440 instructions that GCC likes to mingle into the prologue. Fixes
2441 gdb/1253 and gdb/1255.
2443 2003-08-09 Andrew Cagney <cagney@redhat.com>
2446 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2447 * command.h (add_setshow_uinteger_cmd): Declare.
2448 * frame.c (set_backtrace_cmd): New function.
2449 (show_backtrace_cmd): New function.
2450 * frame.c (_initialize_frame): Replace "set/show
2451 backtrace-below-main" with "set/show backtrace past-main". Add
2452 command "set/show backtrace limit".
2453 (backtrace_past_main): Rename "backtrace_below_main".
2454 (backtrace_limit): New variable.
2455 (get_prev_frame): Update. Check the backtrace_limit.
2457 2003-08-09 Andrew Cagney <cagney@redhat.com>
2459 * defs.h (xstrprintf): Declare.
2460 * utils.c (xstrprintf): New function.
2461 * breakpoint.c (insert_breakpoints): Replace sprintf and
2462 non-literal format strings, with xstrprintf and cleanups.
2463 (delete_breakpoint,breakpoint_re_set): Ditto.
2464 (commands_command, insert_breakpoints): Ditto.
2465 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2466 (break_at_finish_command_1): Ditto.
2468 2003-08-09 Andrew Cagney <cagney@redhat.com>
2470 * MAINTAINERS (language support): List Adam Fedor as Objective C
2473 2003-08-08 J. Brobecker <brobecker@gnat.com>
2475 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2476 are now multiarched.
2478 2003-08-08 J. Brobecker <brobecker@gnat.com>
2480 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2481 longer necessary now that hppa64 is partially multiarch'ed.
2483 2003-08-08 Andrew Cagney <cagney@redhat.com>
2485 * interps.c (interp_set): Check for a NULL "old_interp".
2487 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2489 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2490 (install-only): Support DESTDIR.
2491 (uninstall): Likewise.
2492 (install-gdbtk): Likewise.
2494 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2496 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2497 contains something meaningful at all times.
2499 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2501 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2503 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2505 * MAINTAINERS (write after approval): Added self.
2507 2003-08-07 Andrew Cagney <cagney@redhat.com>
2509 * inferior.h (AT_SYMBOL): Define.
2510 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2511 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2512 * mips-tdep.c (mips_call_dummy_address): Delete function.
2513 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2514 set call_dummy_address.
2516 2003-08-07 Andrew Cagney <cagney@redhat.com>
2518 * language.c (op_error): Delete function.
2519 (binop_type_check): Delete function.
2520 * language.h (type_op_error, range_op_error): Delete macros.
2521 (op_error): Delete declaration.
2523 2003-08-07 Andrew Cagney <cagney@redhat.com>
2525 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2527 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2529 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2530 (x86_64_push_arguments): Skip the red zone.
2532 2003-08-05 Andrew Cagney <cagney@redhat.com>
2534 * reggroups.c (reggroup_next): Check for the final entry.
2536 2003-08-04 Andrew Cagney <cagney@redhat.com>
2538 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2539 * cli/cli-script.c (define_command): Call query directly, instead
2540 of passing it a buffer.
2541 * ocd.c (ocd_error): Pass error a constant format string.
2542 * remote-mips.c (mips_error): Use fputs_filtered.
2544 * solib-svr4.c (_initialize_svr4_solib): Update
2545 register_gdbarch_data call.
2546 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2548 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2549 (register_gdbarch_data): Delete "free" parameter. Update
2551 * gdbarch.h, gdbarch.c: Re-generate.
2552 * reggroups.c (_initialize_reggroup): Update.
2553 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2554 * frame-base.c (_initialize_frame_base): Update.
2555 * frame-unwind.c (_initialize_frame_unwind): Update.
2556 * user-regs.c (_initialize_user_regs): Update.
2557 * remote.c (_initialize_remote): Update.
2558 * regcache.c (_initialize_regcache): Update.
2560 * regcache.c (xfree_regcache_descr): Delete function.
2561 (_initialize_regcache): Update call to register_gdbarch_data.
2562 (init_regcache_descr, init_legacy_regcache_descr): Use
2563 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2565 * remote.c (free_remote_state): Delete function.
2566 (_initialize_remote): Update register_gdbarch_data.
2567 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2568 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2570 2003-08-04 Andrew Cagney <cagney@redhat.com>
2572 * reggroups.c (struct reggroup_el): Define.
2573 (struct reggroups): Delete field "nr_group". Replace array
2574 "group" with a "first" to "last" linked list.
2575 (reggroups_init): Update. Allocate using gdbarch's obstack.
2576 (reggroups_free): Delete function.
2577 (add_group): Update. Add "el" parameter.
2578 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2579 (default_groups): Update.
2580 (reggroup_next): Replace reggroups.
2581 (reggroups_dump): Update.
2582 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2583 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2584 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2586 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2588 * Makefile.in (tui-interp.o): Update dependencies.
2590 2003-08-04 David Carlton <carlton@kealia.com>
2592 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2593 to internal_error call.
2594 * source.c (forward_search_command): Add "%s" format argument.
2595 (reverse_search_command): Ditto.
2596 * top.c (quit_confirm): Ditto.
2597 * cli/cli-setshow.c (do_setshow_command): Ditto.
2598 * cp-valprint.c (cp_print_class_method): Replace
2599 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2600 (cp_print_class_member): Ditto.
2601 * event-top.c (command_line_handler): Ditto.
2602 * linux-proc.c (linux_info_proc_cmd): Ditto.
2603 * p-typeprint.c (pascal_type_print_base): Ditto.
2604 * p-valprint.c (pascal_object_print_class_method): Ditto.
2605 (pascal_object_print_class_member): Ditto.
2606 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2607 * remote.c (remote_cisco_section_offsets): Ditto.
2608 * top.c (command_line_input): Ditto.
2609 * utils.c (vwarning,error_stream,quit): Ditto.
2610 * valprint.c (print_floating,print_binary_chars)
2611 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2613 2003-08-04 Andrew Cagney <cagney@redhat.com>
2615 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2617 2003-08-02 Andrew Cagney <cagney@redhat.com>
2619 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2620 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2623 2003-08-02 Andrew Cagney <cagney@redhat.com>
2625 * Makefile.in: Update all dependencies and definitions.
2627 2003-08-02 Adam Fedor <fedor@gnu.org>
2629 * linespec.c (is_objc_method_format): New function
2630 (decode_line_1, locate_first_half): Use it.
2633 2003-08-01 Andrew Cagney <cagney@redhat.com>
2635 * NEWS: Mention that m32r is multi-arch.
2636 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2637 * configure.tgt: Recognize m32r-*-*.
2638 * config/m32r/tm-m32r.h: Delete file.
2639 * config/m32r/m32r.mt: New file.
2640 * m32r-rom.c (m32r_upload_command): Use hostent only when
2641 gethostname succeeds, in order to avoid a compilation
2643 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2646 2003-08-01 Michael Snyder <msnyder@redhat.com>
2648 * sh-tdep.c (sh_frame_align): New gdbarch method.
2649 (sh_gdbarch_init): Set up frame_align method.
2651 2003-07-31 Michael Snyder <msnyder@redhat.com>
2653 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2654 which is already covered by the new frames infrastructure.
2656 2003-07-31 Andrew Cagney <cagney@redhat.com>
2658 * user-regs.c (struct user_reg): Add "next" link.
2659 (struct user_regs): Replace "user" with "first" and "last" links.
2660 (append_user_reg): Add pre-allocated "reg" parameter.
2661 (builtin_user_regs): Provide initial value for "last".
2662 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2663 (user_regs_init): Allocate memory from the gdbarch obstack.
2664 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2665 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2667 (usernum_to_user_reg): New function.
2668 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2669 (value_of_user_reg): Use usernum_to_user_reg.
2670 (user_regs_free): Delete function.
2671 (_initialize_user_regs): Update register_gdbarch_data call.
2673 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2675 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2677 2003-07-30 Michael Snyder <msnyder@redhat.com>
2679 * value.h (value_being_returned): Add a struct_addr argument.
2680 * infcall.c (call_function_by_hand): Pass struct_addr to
2681 value_being_returned.
2682 * infcmd.c (print_return_value): Pass zero as struct_addr.
2683 * values.c (value_being_returned): If struct_addr is passed,
2684 use it instead of trying to recover it from the inferior.
2686 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2688 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2689 the prologue analyzer won't need to attempt to extract the pc
2690 value from the woefully incomplete dummy frame.
2691 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2692 possible. Disable code which modifies the frame.
2694 2003-07-28 Andrew Cagney <cagney@redhat.com>
2696 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2698 (annotate_breakpoints_table, annotate_record): Ditto.
2699 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2700 (annotate_field_name_end, annotate_field_value): Ditto.
2701 (annotate_field_end, annotate_frame_source_begin): Ditto.
2702 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2703 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2704 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2705 (annotate_frame_address_end, annotate_frame_address): Ditto.
2706 (annotate_frame_args, annotate_frame_end): Ditto.
2707 (annotate_frame_where, annotate_arg_begin): Ditto.
2708 (annotate_arg_name_end, annotate_arg_value): Ditto.
2709 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2710 (annotate_function_call, annotate_signal_name): Ditto.
2711 (annotate_signal_string, annotate_signal_name_end): Ditto.
2712 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2713 (annotate_value_begin, annotate_value_history_value): Ditto.
2714 (annotate_value_history_end, annotate_value_end): Ditto.
2715 (annotate_display_begin, annotate_display_number_end): Ditto.
2716 (annotate_display_format, annotate_display_expression): Ditto.
2717 (annotate_display_expression_end, annotate_display_value): Ditto.
2718 (annotate_display_end, annotate_array_section_begin): Ditto.
2719 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2720 (annotate_elt, annotate_array_section_end): Ditto.
2722 2003-07-28 Andrew Cagney <cagney@redhat.com>
2724 * regcache.c (struct regcache_descr): Update comments on
2726 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2727 sizeof_raw_register_valid_p.
2728 (init_regcache_descr): Set nr_raw_registers and
2729 sizeof_raw_register_valid_p before calling
2730 init_legacy_regcache_descr.
2732 2003-07-28 Andrew Cagney <cagney@redhat.com>
2734 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2737 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2739 * thread.c (info_threads_command): Use get_selected_frame ().
2740 Check that there is at least one non-sentinel frame.
2742 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2744 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2745 (m68hc11_pop_frame): Remove.
2746 (m68hc11_frame_saved_pc): Remove.
2747 (m68hc11_frame_chain): Remove.
2748 (m68hc11_frame_init_saved_regs): Remove.
2749 (m68hc11_init_extra_frame_info): Remove.
2750 (m68hc11_store_struct_return): Remove.
2751 (m68hc11_saved_pc_after_call): Remove.
2753 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2755 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2756 frame unwind information.
2757 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2758 and adapted for frame unwinding.
2759 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2760 (m68hc11_unwind_pc): New function.
2761 (m68hc11_frame_unwind_cache): New function to analyze frames.
2762 (m68hc11_frame_this_id): New function to create new frame struct.
2763 (m68hc11_frame_prev_register): New function to unwind a register from
2765 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2766 (m68hc11_frame_p): New function for the above.
2767 (m68hc11_frame_base_address): New function to return fp of frame.
2768 (m68hc11_frame_args_address): Update for frame.
2769 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2770 (m68hc11_unwind_sp): New function.
2771 (m68hc11_unwind_dummy_id): New function.
2772 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2775 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2777 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2778 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2779 when we are beyond the current pc.
2781 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2783 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2784 from m68hc11_push_arguments.
2785 (m68hc11_push_arguments): Remove.
2786 (m68hc11_push_return_address): Remove.
2787 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2788 handlers; remove deprecated_extra_stack_alignment_needed.
2790 2003-07-27 Andrew Cagney <cagney@redhat.com>
2792 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2793 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2794 REAL_PC and not the pointer.
2795 * hppa-hpux-tdep.c: Include frame.h
2797 2003-07-27 Andrew Cagney <cagney@redhat.com>
2799 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2800 GDB_MULTI_ACH_PARTIAL.
2802 2003-07-27 Andrew Cagney <cagney@redhat.com>
2804 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2805 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2806 operator at start and not end of line.
2807 (decode_prologue): Ditto.
2808 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2809 frame_unwind_register_unsigned instead of
2810 frame_unwind_unsigned_register.
2811 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2813 (m32r_push_dummy_call): Use register_size instead of
2815 (m32r_frame_sniffer): Replace m32r_frame_p.
2816 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2817 * m32r-rom.c (report_transfer_performance): Delete extern
2819 (m32r_load, m32r_upload_command): Use print_transfer_performance
2820 instead of report_transfer_performance.
2821 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2822 / add_show_from_set.
2824 2003-07-26 Andrew Cagney <cagney@redhat.com>
2826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2827 store_return_value and extract_struct_value_address.
2829 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2832 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2833 NULL, default to the section containing PC.
2835 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2837 * NEWS: Mention "regs" deprecated for m68hc11 too.
2839 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2840 (m68hc11_print_register): New function to print out one register.
2841 (m68hc11_print_registers_info): New function to print registers.
2842 (show_regs): Deprecate and use the above.
2843 (m68hc11_gdbarch_init): Install the print_registers_info.
2845 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2847 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2848 that we have a SIGTRAP before returning non-zero.
2850 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2851 Elena Zannoni <ezannoni@redhat.com>
2853 * linespec.c (decode_line_2): Avoid crash if
2854 find_function_start_sal() returns empty record.
2856 2003-07-23 Andreas Schwab <schwab@suse.de>
2858 * ia64-tdep.c (ia64_print_insn): New function.
2859 (ia64_gdbarch_init): Set print_insn to it.
2860 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2861 deprecated_tm_print_insn_info.
2863 2003-07-22 Michael Snyder <msnyder@redhat.com>
2865 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2866 handle 8-bit returns (long long).
2867 (h8300h_extract_return_value): Ditto.
2868 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2870 2003-07-22 Andrew Cagney <cagney@redhat.com>
2872 * gdbarch.c Include "gdb_obstack.h".
2873 (struct gdbarch): Add an "obstack".
2874 (alloc_gdbarch_data): Allocate the gdbarch data using
2875 GDBARCH_OBSTACK_CALLOC.
2876 (free_gdbarch_data): Delete function.
2877 (gdbarch_obstack_zalloc): New function.
2878 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2879 Assert that the architecture is not initialized.
2880 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2881 vector from the obstack.
2882 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2883 architecture obstack.
2884 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2885 (set_gdbarch_data): Assert that the data is not initialized.
2886 (struct gdbarch_data): Delete member "free".
2887 (register_gdbarch_data): Do not initialize "free".
2888 * gdbarch.h, gdbarch.c: Re-generate.
2890 2003-07-22 Andrew Cagney <cagney@redhat.com>
2892 * configure.in (build_warnings): Add -Wformat-nonliteral.
2893 * configure: Re-generate.
2895 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2897 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2899 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2901 * findvar.c (read_var_value): Remove case for thread local storage
2902 variables. It is now entirely handled by the dwarf2 location
2904 * printcmd.c (address_info): Ditto.
2905 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2907 (struct symbol): Remove objfile field, which was used by
2908 LOC_THREAD_LOCAL_STATIC only.
2909 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2910 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2911 usage of objfile pointer.
2912 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2913 thread local variables.
2914 Add include of objfiles.h.
2915 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2917 * Makefile.in (dwarf2loc.o): Update dependencies.
2919 2003-07-22 Andrew Cagney <cagney@redhat.com>
2921 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2923 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2924 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2925 (struct value): Add opaque declaration.
2926 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2928 2003-07-21 Andrew Cagney <cagney@redhat.com>
2930 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2931 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2933 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2935 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2936 regcache_cooked_read_unsigned instead of read_register.
2937 (m68hc11_saved_pc_after_call): Likewise.
2938 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2939 instead of write_register.
2940 (m68hc11_register_type): New function.
2941 (m68hc11_register_virtual_type): Remove.
2942 (m68hc11_store_return_value): Convert to use the regcache.
2943 (m68hc11_extract_struct_value_address): Likewise.
2944 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2945 m68hc11_register_type; undeprecate store_return_value and
2946 extract_struct_value_address.
2948 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2950 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2951 and translate to use regcache.
2952 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2954 2003-07-18 Andrew Cagney <cagney@redhat.com>
2956 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2957 * gdbarch.h, gdbarch.c: Re-generate.
2958 * i386-tdep.c (i386_gdbarch_init): Do not set
2959 DWARF2_BUILD_FRAME_INFO.
2960 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2962 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2963 DWARF2_BUILD_FRAME_INFO.
2965 2003-07-18 Andrew Cagney <cagney@redhat.com>
2967 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2968 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2970 2003-07-18 Andrew Cagney <cagney@redhat.com>
2972 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2973 frame_unwind_address_in_block, instead of frame_pc_unwind.
2974 (dwarf2_frame_cache): Ditto.
2976 2003-07-18 Andrew Cagney <cagney@redhat.com>
2978 * user-regs.h (struct gdbarch): Declare opaque.
2979 * ui-out.h (struct ui_file): Declare opaque.
2980 * dwarf2-frame.h (struct frame_info): Declare opaque.
2982 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2984 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2986 (procfs_meminfo): Change strerror to safe_strerror.
2987 (procfs_can_run): Remove K&R badness.
2989 2003-07-17 Michael Snyder <msnyder@redhat.com>
2991 * remote-sim.c: Comment typo fix.
2993 2003-07-17 Andrew Cagney <cagney@redhat.com>
2995 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2997 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2998 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2999 GDB_MULTI_ARCH_PARTIAL.
3001 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3003 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3004 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3005 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3007 2003-07-16 Theodore A. Roth <troth@openavr.org>
3009 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3011 (avr_frame_unwind_cache): Don't unwind FP for main.
3013 Save the computed prev_sp.
3014 (avr_saved_regs_unwinder): Remove function.
3015 (avr_frame_prev_register): Use PC unwind logic from
3016 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3018 2003-07-16 Andrew Cagney <cagney@redhat.com>
3020 * frame-base.h (frame_base_p_ftype): Delete definition.
3021 (frame_base_append_predicate): Delete declaration.
3022 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3023 (frame_unwind_append_predicate): Delete declaration.
3024 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3025 (append_predicate): Delete parameter "p".
3026 (frame_unwind_append_predicate): Delete function.
3027 (frame_unwind_append_sniffer): Update call to append_predicate.
3028 (frame_unwind_free): Delete function.
3029 (_initialize_frame_unwind): Pass NULL as "free" to
3030 register_gdbarch_data.
3031 (frame_unwind_init): Append the dummy_frame_sniffer.
3032 (frame_unwind_find_by_frame): Simplify.
3033 * frame-base.c (struct frame_base_table): Delete field "p".
3034 (append_predicate): Delete parameter "p".
3035 (frame_base_append_predicate): Delete function.
3036 (frame_base_append_sniffer): Update call to append_predicate.
3037 (frame_base_free): Delete function.
3038 (frame_base_find_by_frame): Simplify.
3039 (_initialize_frame_base): Pass NULL as "free" to
3040 register_gdbarch_data.
3041 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3042 (x86_64_sigtramp_frame_sniffer): Replace
3043 "x86_64_sigtramp_frame_p".
3044 (x86_64_init_abi): Set the frame unwind sniffers.
3045 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3046 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3047 (m68k_gdbarch_init): Set the frame unwind sniffers.
3048 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3049 "i386_sigtramp_frame_p".
3050 (i386_frame_sniffer): Replace "i386_frame_p".
3051 (i386_gdbarch_init): Set the frame unwind sniffers.
3052 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3053 (avr_gdbarch_init): Set the frame unwind sniffers.
3054 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3055 "alpha_sigtramp_frame_p"
3056 (alpha_heuristic_frame_sniffer): Replace
3057 "alpha_heuristic_frame_p".
3058 (alpha_gdbarch_init): Set the frame unwind sniffers.
3059 (alpha_dwarf2_init_abi): Ditto.
3060 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3061 "alpha_debug_frame_p".
3062 (alpha_mdebug_frame_base_sniffer): Replace
3063 "alpha_mdebug_frame_base_p".
3064 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3065 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3066 (d10v_gdbarch_init): Set the frame unwind sniffer.
3067 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3068 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3069 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3070 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3071 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3072 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3074 2003-07-16 Michael Snyder <msnyder@redhat.com>
3076 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3077 should go thru sh_dsp_register_sim_regno, else the dsp regs
3078 will not get the right values.
3080 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3082 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3083 deprecated_store_floating by call to store_typed_floating.
3084 (sh_sh4_register_convert_to_raw): Substitute call to
3085 deprecated_extract_floating by call to extract_typed_floating.
3087 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3089 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3091 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3093 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3094 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3095 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3097 (do_pseudo_register): Remove.
3098 (sh_push_dummy_code): New function.
3099 (sh64_store_struct_return): Rename from sh_store_struct_return.
3100 Only called for sh64 now.
3101 (sh_extract_struct_value_address): Regcache'ify.
3102 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3103 and accomodate new tasks.
3104 (sh64_push_return_address): Rename from sh_push_return_address.
3105 Only called for sh64 now.
3106 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3108 (sh3e_sh4_extract_return_value): Regcache'ify.
3109 (sh_default_store_return_value): Ditto.
3110 (sh3e_sh4_store_return_value): Ditto.
3111 (sh_default_register_byte): Remove.
3112 (sh_sh4_register_byte): Remove.
3113 (sh_default_register_raw_size): Remove.
3114 (sh_sh4_register_raw_size): Remove.
3115 (sh_register_virtual_size): Remove.
3116 (sh_sh3e_register_virtual_type): Remove.
3117 (sh_sh3e_register_type): New function.
3118 (sh_sh4_register_virtual_type): Remove.
3119 (sh_sh4_register_type): New function.
3120 (sh_default_register_virtual_type): Remove.
3121 (sh_default_register_type): New function.
3122 (do_fv_register_info): Add parameters to accomodate call from
3123 sh_print_registers_info.
3124 (do_dr_register_info): Ditto.
3125 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3126 Add parameters to accomodate call from sh_print_registers_info.
3127 (sh_do_fp_register): Ditto.
3128 (sh64_do_pseudo_register): Call do_dr_register_info,
3129 do_fv_register_info and sh_do_fp_register with default parameters.
3130 (sh_do_register): Add parameters to accomodate call from
3131 sh_print_registers_info.
3132 (sh_print_register): Ditto.
3133 (sh_print_registers_info): Rename from sh_do_registers_info.
3134 Add parameters to be used as gdbarch_print_registers_info
3135 implementation. Accomodate removed do_pseudo_register function
3137 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3138 function pointer. Call sh_print_register with default parameters.
3139 (sh64_do_registers_info): Call sh_print_registers_info instead of
3140 sh_do_registers_info.
3141 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3142 detection of deprecated vs. non-deprecated functionality.
3143 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3144 function pointer assignments by direct function calls.
3146 2003-07-15 Andrew Cagney <cagney@redhat.com>
3148 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3149 (frame_register_unwind, create_new_frame): Ditto.
3150 (legacy_get_prev_frame, get_frame_type): Ditto.
3151 (get_frame_base_address): Use frame_base_find_by_frame.
3152 (get_frame_locals_address): Use frame_base_find_by_frame.
3153 (get_frame_args_address): Use frame_base_find_by_frame.
3154 * frame-base.h (frame_base_sniffer_ftype): Declare.
3155 (frame_base_append_sniffer): Declare.
3156 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3157 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3158 (frame_base_append_sniffer): New function.
3159 (frame_base_append_predicate): Add a NULL sniffer.
3160 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3161 (struct frame_base_table): Add "sniffer".
3162 (frame_base_free): Free the "sniffer" table.
3163 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3164 (frame_unwind_append_sniffer): Declare.
3165 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3166 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3167 (struct frame_unwind_table): Add "sniffer", delete "middle".
3168 (append_predicate): Add "sniffer" parameter, append the sniffer.
3169 (frame_unwind_init): Update append_predicate call.
3170 (frame_unwind_append_sniffer): New function.
3171 (frame_unwind_append_predicate): Update append_predicate call.
3172 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3174 2003-07-15 Andrew Cagney <cagney@redhat.com>
3176 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3177 before code inhibiting repeated unwind attempts. Add to
3178 commentary on that test's problems.
3179 * blockframe.c (inside_main_func): Look for "main" in the minimal
3181 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3184 2003-07-15 Andrew Cagney <cagney@redhat.com>
3186 * complaints.c (struct explanation): Define.
3187 (struct complaints): Change type of "explanation" to "struct
3189 (symfile_explanations): Convert to a "struct explanation" table.
3190 (vcomplaint): Update.
3192 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3194 * x86-64-linux-nat.c (regmap): Removed.
3195 (supply_gregset, fill_gregset): Call
3196 x86_64_linux_(fill,supply)_gregset functions.
3197 * x86-64-linux-tdep.c (USER_*): New defines.
3198 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3199 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3201 (fetch_core_registers): Ditto.
3202 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3203 * x86-64-linux-tdep.h: New file.
3204 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3206 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3208 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3210 * x86-64-tdep.c (x86_64_store_return_value): Use
3211 regcache_cooked_write_part instead of regcache_cooked_write.
3213 * configure.host: Add x86_64-*-freebsd*.
3214 * configure.tgt: Add x86_64-*-freebsd*.
3215 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3216 * amd64fbsd-nat.c: New file.
3217 * amd64fbsd-tdep.c: New file.
3218 * config/i386/nm-fbsd64.h: New file.
3219 * config/i386/fbsd64.mh: New file.
3220 * config/i386/fbsd64.mt: New file.
3222 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3224 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3225 `sc_regs_offset' and `sc_fpregs_offset'.
3226 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3227 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3228 (alpha_sigtramp_register_address): Rewrite to use new members of
3229 `struct gdbarch_tdep'.
3230 (alpha_gdbarch_init): Initialize new members of struct
3232 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3233 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3234 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3235 (alphafbsd_pc_in_sigtramp): Implement.
3236 (alphafbsd_sigtramp_offset): New function.
3237 (alphafbsd_sigcontext_addr): New function.
3238 (alphafbsd_init_abi): Initialize signal trampoline related members
3239 of `struct gdbarch_tdep'.
3240 (_initialize_alphafbsd_tdep): Add prototype.
3242 2003-07-11 Theodore A. Roth <troth@openavr.org>
3244 * Makefile.in (install-only): Quote sed expression when generating
3247 2003-07-11 Richard Henderson <rth@redhat.com>
3249 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3250 * dwarf2-frame.c: Include complaints.h.
3251 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3252 variable initialization; return NULL on error.
3253 (decode_frame_entry): New.
3255 2003-07-11 Andrew Cagney <cagney@redhat.com>
3257 * frame.h (frame_address_in_block): Delete declaration.
3258 * blockframe.c (frame_address_in_block): Delete function.
3259 (get_frame_block): Use get_frame_address_in_block.
3260 (block_innermost_frame): Ditto.
3261 * stack.c (print_frame, backtrace_command_1): Ditto.
3263 * frame.h (get_frame_address_in_block): Declare.
3264 (frame_unwind_address_in_block): Declare.
3265 * frame.c (frame_unwind_address_in_block): New function.
3266 (get_frame_address_in_block): New function.
3268 2003-07-10 Andrew Cagney <cagney@redhat.com>
3270 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3271 pre-default. Note: re-generate has no effect.
3273 2003-07-10 Andrew Cagney <cagney@redhat.com>
3275 * gdbarch.sh: When a variable, but not a function, compare against
3276 0. Fix problem in previous patch.
3277 * gdbarch.c: Re-generate.
3279 2003-07-10 Andrew Cagney <cagney@redhat.com>
3281 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3282 functions against NULL, not 0.
3283 * gdbarch.c: Re-generate.
3285 2003-07-10 Fred Fish <fnf@ninemoons.com>
3287 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3288 null string instead of a null pointer.
3289 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3291 2003-07-09 Michael Snyder <msnyder@redhat.com>
3293 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3295 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3297 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3298 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3299 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3300 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3301 * x86-64-tdep.c: ... from here.
3303 2003-07-09 Andreas Schwab <schwab@suse.de>
3305 * m68k-tdep.h (enum struct_return): Define.
3306 (struct gdbarch_tdep): Add struct_return.
3307 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3308 bytes are padded to the right, not to the left. Pass struct value
3309 address in register %a1, not on stack.
3310 (m68k_use_struct_convention): New function.
3311 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3312 struct_return in tdep to pcc_struct_return.
3313 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3316 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3318 * somread.c (som_symfile_offsets): Fix compilation error.
3320 2003-07-09 Andrew Cagney <cagney@redhat.com>
3322 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3323 Add comments about the checks.
3325 2003-07-08 Andrew Cagney <cagney@redhat.com>
3327 * Makefile.in: Make dependency section headers consistent.
3328 (config_h): Move to $BUILD headers section.
3329 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3330 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3331 (ada-exp.tab.c): Move to YACC/LEX section.
3332 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3333 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3335 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3337 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3338 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3339 of strerror with safe_strerror, use ISO C function definitions,
3340 and replace instances of sprintf with snprintf.
3342 2003-07-07 Andrew Cagney <cagney@redhat.com>
3344 * frame.c (get_prev_frame): Enable check for identical frames.
3345 Update comments. Update error messages.
3347 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3349 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3351 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3353 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3354 sort_symtab_syms, no longer necessary.
3356 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3358 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3360 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3362 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3363 (mips_register_byte): Likewise.
3365 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3367 * Makefile.in (sparc_tdep_h): New.
3368 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3369 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3370 * sparc-linux-nat.c: Include "sparc-tdep.h".
3371 * sparc-nat.c: Likewise.
3372 * sparc-tdep.c: Likewise.
3373 * sparc64nbsd-nat.c: Likewise.
3374 * sparcnbsd-nat.c: Likewise.
3375 * sparcnbsd-tdep.c: Likewise.
3376 * sparc-tdep.h: New file.
3377 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3378 and sparc_npc_regnum.
3380 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3382 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3383 (mips_linux_cannot_store_register): List supported instead of
3384 unsupported registers.
3386 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3388 * disasm.c (dump_insns): Separate instructions from addresses.
3390 2003-07-07 Andreas Schwab <schwab@suse.de>
3392 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3394 * m68k-tdep.c (NUM_FREGS): Delete.
3395 (SIG_PC_FP_OFFSET): Delete.
3396 (TARGET_M68K): Delete.
3397 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3398 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3399 P_MOVEL_SP, P_MOVEML_SP): Define.
3400 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3402 (m68k_register_raw_size): Delete.
3403 (m68k_register_virtual_size): Delete.
3404 (m68k_register_type): Renamed from m68k_register_virtual_type and
3405 add gdbarch argument.
3406 (m68k_store_struct_return): Delete.
3407 (m68k_deprecated_extract_return_value): Delete.
3408 (m68k_deprecated_extract_struct_value_address): Delete.
3409 (m68k_frame_chain): Delete.
3410 (m68k_frame_saved_pc): Delete.
3411 (m68k_fix_call_dummy): Delete.
3412 (m68k_push_dummy_frame): Delete.
3413 (m68k_pop_frame): Delete.
3414 (m68k_extract_return_value): New function.
3415 (m68k_store_return_value): Rewrite using regcache.
3416 (m68k_extract_struct_value_address): Rewrite using regcache.
3417 (m68k_push_dummy_call): New function.
3418 (struct m68k_frame_cache): Define.
3419 (m68k_alloc_frame_cache): New function.
3420 (m68k_analyze_frame_setup): New function.
3421 (m68k_analyze_register_saves): New function.
3422 (m68k_analyze_prologue): New function.
3423 (m68k_skip_prologue): Rewrite using above functions.
3424 (m68k_unwind_pc): New function.
3425 (m68k_frame_cache): New function.
3426 (m68k_frame_this_id): New function.
3427 (m68k_frame_prev_register): New function.
3428 (m68k_frame_unwind): New variable.
3429 (m68k_frame_p): New function.
3430 (m68k_sigtramp_frame_cache): New function.
3431 (m68k_sigtramp_frame_this_id): New function.
3432 (m68k_sigtramp_frame_prev_register): New function.
3433 (m68k_sigtramp_frame_unwind): New variable.
3434 (m68k_sigtramp_frame_p): New function.
3435 (m68k_frame_base_address): New function.
3436 (m68k_frame_base): New function.
3437 (m68k_unwind_dummy_id): New function.
3438 (fill_gregset): Use regcache_collect.
3439 (fill_fpregset): Likewise.
3440 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3442 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3443 deprecated_init_frame_pc, deprecated_store_struct_return,
3444 deprecated_extract_return_value, deprecated_store_return_value,
3445 deprecated_frame_chain, deprecated_frame_saved_pc,
3446 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3447 deprecated_register_virtual_size,
3448 deprecated_max_register_raw_size,
3449 deprecated_max_register_virtual_size,
3450 deprecated_register_virtual_type, deprecated_register_size,
3451 deprecated_register_byte, deprecated_register_bytes,
3452 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3453 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3454 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3455 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3456 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3457 deprecated_push_dummy_frame, deprecated_pop_frame,
3458 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3459 only if SYSCALL_TRAP is defined. Set extract_return_value,
3460 store_return_value, extract_struct_value_address, register_type,
3461 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3463 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3464 M68K_MAX_REGISTER_SIZE): Define.
3465 (struct m68k_sigtramp_info): Define.
3466 (struct gdbarch_tdep): Add get_sigtramp_info.
3467 * m68klinux-nat.c (fetch_register): Use register_size instead of
3468 REGISTER_RAW_SIZE. Don't put assignment in if.
3469 (store_register): Likewise.
3470 (fetch_inferior_registers): Likewise.
3471 (store_inferior_registers): Likewise.
3472 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3473 (m68k_linux_frame_saved_pc): Delete.
3474 (m68k_linux_sigcontext_reg_offset,
3475 m68k_linux_ucontext_reg_offset): Define.
3476 (m68k_linux_get_sigtramp_info): New function.
3477 (m68k_linux_extract_return_value): Rewrite using regcache.
3478 (m68k_linux_store_return_value): Likewise.
3479 (m68k_linux_extract_struct_value_address): Likewise.
3480 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3481 Don't set deprecated_frame_saved_pc,
3482 deprecated_extract_return_value, deprecated_store_return_value,
3483 deprecated_extract_struct_value_address. Set
3484 extract_return_value, store_return_value,
3485 extract_struct_value_address.
3487 2003-07-07 Andrew Cagney <cagney@redhat.com>
3489 * expprint.c: Include "user-regs.h" instead of "frame.h".
3490 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3491 frame_map_regnum_to_name.
3492 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3493 (frame_map_name_to_regnum): Simplify, call
3494 user_reg_map_name_to_regnum.
3495 (frame_map_regnum_to_name): Simplify, call
3496 user_reg_map_regnum_to_name.
3497 (frame_register_unwind): Update.
3498 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3499 (_initialize_frame_reg): Call user_reg_add_builtin.
3500 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3501 (value_of_register): Use value_of_user_reg.
3502 * eval.c (evaluate_subexp_standard): Update.
3503 * parse.c (write_dollar_variable): Update.
3504 * d10v-tdep.c (d10v_print_registers_info): Update.
3505 * infcmd.c (registers_info): Update.
3506 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3507 (builtin_regs_h): Delete macro.
3508 (user_regs_h): Define.
3509 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3510 (builtin-regs.o): Delete target.
3511 (user-regs.o): Specify dependencies.
3512 (expprint.o): Update dependencies.
3513 (findvar.o): Update dependencies.
3514 (frame.o): Update dependencies.
3515 (std-regs.o): Update dependencies.
3517 2003-07-06 Christopher Faylor <cgf@redhat.com>
3519 * win32-nat.c (solib_symbols_add): Use one variable for all section
3520 address stuff. Pass variable rather than address of variable to
3521 safe_symbol_file_add.
3523 2003-07-06 Andreas Schwab <schwab@suse.de>
3525 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3527 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3529 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3531 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3533 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3535 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3537 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3538 * config/i386/nto.mh: New file.
3539 * config/i386/nm-nto.h: New file.
3540 * configure.host: Add i[3456]86-*-nto*.
3542 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3544 * remote-vx.c (vx_add_symbols): Fix compilation error.
3546 2003-07-03 Andrew Cagney <cagney@redhat.com>
3548 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3549 * gdbarch.h, gdbarch.c: Re-generate.
3550 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3551 (legacy_register_name): Declare.
3552 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3553 (REGISTER_NAME): Define.
3554 * sparc-tdep.c (legacy_register_name): New function.
3555 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3556 (REGISTER_NAME): Define.
3557 (hppa64_register_name): Declare.
3558 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3559 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3560 (hppa64_register_name): New function.
3561 (hppa_register_name): New function.
3562 * arch-utils.c (legacy_register_name): Delete.
3563 * arch-utils.h (legacy_register_name): Delete.
3565 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3567 * cli/cli-interp.c (cli_interpreter_resume): Update the
3568 cli_uiout's stream to gdb_stdout.
3570 2003-07-03 Andrew Cagney <cagney@redhat.com>
3572 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3574 * gdbarch.h, gdbarch.c: Re-generate.
3575 * regcache.c (init_regcache_descr): Use legacy code when either
3576 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3578 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3580 * NEWS: Move "set logging" entry into GDB 6.0 section.
3582 2003-07-02 Jim Blandy <jimb@redhat.com>
3584 * s390-tdep.c (struct frame_extra_info): new member:
3585 'stack_bought_valid'.
3586 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3587 initialize fextra_info->stack_bought.
3588 (s390_frameless_function_invocation): Don't trust the value of
3589 fextra_info_ptr->stack_bought unless
3590 fextra_info->stack_bought_valid is set.
3592 New S390 prologue analyzer.
3593 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3594 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3595 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3596 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3597 compute_x_addr, s390_on_stack, s390_store,
3598 s390_get_signal_frame_info): New functions.
3599 (S390_NUM_SPILL_SLOTS): New macro.
3600 (s390_get_frame_info): Rewritten.
3601 (is_arg_reg): Deleted.
3603 Break out the decoding of S/390 instructions into separate
3604 functions, to make it more legible, and easier to check
3606 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3607 is_rx, is_rxe): New functions.
3608 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3609 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3610 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3611 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3612 enums for opcode values. (Is this an improvement?)
3614 2003-07-02 Andrew Cagney <cagney@redhat.com>
3616 * i386-tdep.c: Revert change committed as part of trad-frame code
3619 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3621 * breakpoint.c (insert_catchpoint): Make static.
3623 2003-07-02 Andreas Schwab <schwab@suse.de>
3625 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3626 former ia64_push_arguments and ia64_push_return_address, and use
3627 regcache functions instead of read/write_register.
3628 (ia64_gdbarch_init): Set push_dummy_call instead of
3629 deprecated_push_arguments and deprecated_push_return_address.
3631 2003-07-01 Andreas Jaeger <aj@suse.de>
3633 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3635 Set %rax only to number of SSE registers used.
3637 2003-07-01 Andrew Cagney <cagney@redhat.com>
3639 * trad-frame.h: Update comments, a -1 .addr is reserved.
3640 (trad_frame_value_p, trad_frame_addr_p): Declare.
3641 (trad_frame_reg_p): Declare.
3642 (trad_frame_set_value): Rename trad_frame_register_value.
3643 (trad_frame_set_unknown): Declare.
3644 * trad-frame.c (trad_frame_realreg_p): New function.
3645 (trad_frame_addr_p, trad_frame_value_p): New function.
3646 (trad_frame_set_unknown): New function.
3647 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3648 (trad_frame_prev_register): Use trad_frame_realreg_p,
3649 trad_frame_addr_p and trad_frame_value_p.
3650 (trad_frame_set_value): Rename trad_frame_register_value.
3651 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3652 and trad_frame_set_value.
3654 2003-06-30 Jim Blandy <jimb@redhat.com>
3656 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3657 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3658 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3659 for 16 registers, and then 32 more bytes.
3660 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3662 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3663 Move up in the file, since it's now used by is_simple_arg.
3664 (is_simple_arg): Don't assume registers are four bytes long.
3665 Exclude all double arguments. Extended floats are not simple
3667 (is_power_of_two): New function.
3668 (pass_by_copy_ref): Call is_power_of_two, and check that the
3669 length fits in a register, rather than listing all the acceptable
3670 sizes. Extended floats are not passed by reference.
3671 (s390_push_arguments): Don't assume registers are four bytes long.
3672 Reserve an argument register to point to the buffer for structures
3673 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3674 S390_STACK_FRAME_OVERHEAD.
3676 2003-06-30 Andreas Schwab <schwab@suse.de>
3678 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3679 format error message.
3681 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3683 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3685 2003-06-30 David Carlton <carlton@kealia.com>
3687 Band-aid for PR c++/1245.
3688 * Makefile.in (cp-support.o): Depend on complaints_h.
3689 * cp-support.c: Include complaints.h. Add declaration for
3690 find_last_component.
3691 (cp_find_first_component): Separate code into
3692 cp_find_first_component_aux.
3693 (cp_find_first_component_aux): Call demangled_name_complaint.
3694 (demangled_name_complaint): New.
3696 2003-06-30 Andrew Cagney <cagney@redhat.com>
3698 * remote.c (remote_write_bytes): Explicitly compute and then use
3699 the payload size. Update comments to reflect. Fixes problem of
3700 GDB not sending small packets as found by Fred Fish.
3702 2003-06-30 Andrew Cagney <cagney@redhat.com>
3704 * remote.c (remote_async_wait): Fix -Wformat problem.
3706 2003-06-29 Andrew Cagney <cagney@redhat.com>
3708 * remote.c (remote_wait): Call error, and not warning, when the
3710 (remote_async_wait): Ditto.
3712 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3714 * sparc-tdep.c (sparc_y_regnum): Make external again.
3716 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3718 * cli/cli-logging.c (pop_output_files): Add void to function
3721 2003-06-29 Andrew Cagney <cagney@redhat.com>
3723 * frame.c (frame_register_unwind): Use unsigned char when dumping
3724 the buffer contents.
3726 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3728 * cli/cli-logging.c: New file.
3729 * cli-out.c (struct ui_out_data): Add original_stream.
3730 (cli_redirect): New function.
3731 (cli_ui_out_impl): Add cli_redirect.
3732 (cli_out_new): Initialize original_stream.
3733 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3734 (uo_redirect, ui_out_redirect): New.
3735 * ui-out.h (struct ui_out_impl): Add redirect member.
3736 (redirect_ftype): New.
3737 (ui_out_redirect): Add prototype.
3738 * Makefile.in: Add rules for cli-logging.c.
3739 * NEWS: Mention "set logging".
3741 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3743 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3745 2003-06-27 Andrew Cagney <cagney@redhat.com>
3747 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3748 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3749 * avr-tdep.c (avr_call_dummy_address): Delete function.
3750 (avr_gdbarch_init): Do not set call_dummy_address.
3752 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3754 * symfile.c (syms_from_objfile): Move variables to inner block.
3755 Move the checks for the non-mainline case a bit earlier to avoid
3756 doing some useless computations.
3758 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3760 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3762 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3764 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3767 2003-06-26 Michael Chastain <mec@shout.net>
3769 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3770 gdb/testsuite/gdb.c++/pr-1210.exp.
3772 2003-06-26 Andrew Cagney <cagney@redhat.com>
3774 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3775 altivec_expression.h and altivec_registers.h.
3777 2003-06-26 Andrew Cagney <cagney@redhat.com>
3779 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3780 info->mach when MIPS16. Patch suggested by Fred Fish.
3782 2003-06-26 Andrew Cagney <cagney@redhat.com>
3784 * utils.c (internal_vproblem): Print the problem to a reason
3785 buffer and then pass to query. Make the msg variable more local.
3787 2003-06-26 Andrew Cagney <cagney@redhat.com>
3789 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3790 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3791 * gdbarch.h, gdbarch.c: Re-generate.
3792 * frame-base.c (default_frame_args_address): Update. Use
3793 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3795 (default_frame_locals_address): Ditto for
3796 DEPRECATED_FRAME_LOCALS_ADDRESS.
3797 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3798 (vax_frame_num_args): Update.
3799 (vax_gdbarch_init): Update.
3800 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3801 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3802 * mcore-tdep.c (mcore_gdbarch_init): Update.
3803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3804 * ia64-tdep.c (ia64_gdbarch_init): Update.
3805 * symtab.h (address_class): Update comments.
3806 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3807 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3808 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3809 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3810 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3811 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3812 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3813 * alpha-mdebug-tdep.c: Update.
3814 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3816 2003-06-26 Andreas Jaeger <aj@suse.de>
3818 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3819 of SSE registers so that varargs functions work. Rework handling
3820 of passing arguments on the stack.
3821 (x86_64_store_return_value): Return double and float values in SSE
3824 2003-06-24 Michael Chastain <mec@shout.net>
3826 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3827 the "constructor breakpoints ignored" bug.
3829 2003-06-25 David Carlton <carlton@kealia.com>
3831 * MAINTAINERS: Update e-mail address.
3833 2003-06-24 Jim Blandy <jimb@redhat.com>
3835 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3837 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3839 (ppc_linux_init_abi): Register it as the
3840 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3842 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3843 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3846 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3847 (ppc64_standard_linkage_target): Use it.
3849 2003-06-23 Andrew Cagney <cagney@redhat.com>
3851 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3852 for 0 "int0" and 4 "int32" sized registers.
3853 * gdbtypes.c (builtin_type_int0): Define.
3854 (build_gdbtypes): Initialize builtin_type_int0.
3855 * gdbtypes.h (builtin_type_int0): Declare.
3857 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3860 as characters are unsigned.
3862 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3865 * dwarfread.c (struct_type): Skip static fields without crashing.
3867 2003-06-22 Andrew Cagney <cagney@redhat.com>
3869 GDB 6.0 branch created.
3871 * PROBLEMS: Update. Empty.
3874 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3876 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3877 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3879 2003-06-22 Andrew Cagney <cagney@redhat.com>
3881 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3882 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3885 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3887 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3890 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3892 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3893 argument of val_print.
3894 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3895 to the address argument of baseclass_offset or target_read_memory.
3896 Do add it to the argument of cp_print_value_fields.
3898 2003-06-21 Andrew Cagney <cagney@redhat.com>
3900 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3901 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3902 instead of 0..NUM_REGS.
3903 (mips_register_reggroup_p): New function.
3904 (mips_pseudo_register_write): New function.
3905 (mips_pseudo_register_read): New function.
3906 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3907 based on the register's type.
3908 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3910 (mips_get_saved_register): Simplify. Assert that REGNO is a
3912 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3913 (mips_register_type): Replace mips_register_virtual_type. Map
3914 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3916 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3917 that the register is cooked / virtual.
3918 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3919 Only get the extra info when needed.
3920 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3921 (mips32_heuristic_proc_desc): Fetch the cooked register.
3922 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3923 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3924 (mips_print_register): Use gdbarch_register_type, instead of
3925 REGISTER_VIRTUAL_TYPE.
3926 (print_gp_register_row): Use gdbarch_register_type, instead of
3927 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3928 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3929 Print the pseudo / cooked registers.
3930 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3931 Print the pseudo / cooked registers.
3932 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3933 REG_NUM is pseudo / cooked.
3934 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3935 (mips_n32n64_xfer_return_value): Ditto.
3936 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3937 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3938 (mips_register_sim_regno): New function.
3939 (mips_gdbarch_init): Set deprecated_register_byte,
3940 register_group_p, pseudo_register_write, pseudo_register_read,
3941 register_sim_regno, and num_pseudo_regs. Set register_type,
3942 instead of register_virtual_type.
3943 * Makefile.in (mips-tdep.o): Update dependencies.
3944 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3945 REGISTER_VIRTUAL_TYPE.
3946 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3947 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3948 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3949 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3950 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3952 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3954 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3955 * cli/cli-cmds.c: Include "gdb_vfork.h".
3956 (shell_escape): Use vfork.
3958 2003-06-21 Andrew Cagney <cagney@redhat.com>
3960 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3961 32 bit floating-point register saves.
3963 * frame.h (deprecated_unwind_get_saved_register): Delete.
3964 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3965 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3966 and deprecated_get_next_frame_hack instead of
3967 deprecated_unwind_get_saved_register.
3969 * mips-tdep.c (mips_dump_tdep): Do not print
3970 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3972 * frame.c (get_frame_register): New function.
3973 (frame_unwind_register_signed): New function.
3974 (get_frame_register_signed): New function.
3975 (frame_unwind_register_unsigned): New function.
3976 (get_frame_register_unsigned): New function.
3977 * frame.h: Add comments on naming schema.
3978 (get_frame_register, frame_unwind_register_signed): Declare.
3979 (get_frame_register_signed, get_frame_register_signed): Declare.
3980 (frame_unwind_register_unsigned): Declare.
3981 (get_frame_register_unsigned): Declare.
3983 2003-06-20 Theodore A. Roth <troth@openavr.org>
3985 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3987 2003-06-20 Theodore A. Roth <troth@openavr.org>
3989 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3990 (avr_read_sp): Ditto.
3992 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3994 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3995 * config/arm/nm-linux.h: Likewise.
3996 * config/arm/tm-linux.h: Likewise.
3997 * config/ia64/nm-linux.h: Likewise.
3998 * config/ia64/tm-ia64.h: Likewise.
3999 * config/s390/tm-linux.h: Likewise.
4000 * config/s390/tm-s390.h: Likewise.
4001 * s390-nat.c: Likewise.
4002 * s390-tdep.c: Likewise.
4004 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4005 * config/ia64/linux.mt: Likewise.
4006 * config/m68k/linux.mh: Likewise.
4007 * config/mips/linux.mt: Likewise.
4008 * config/powerpc/linux.mh: Likewise.
4009 * config/sh/linux.mt: Likewise.
4011 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4013 * solib.c (solib_open): Change tests for whether to search
4014 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4017 2003-06-19 Theodore A. Roth <troth@openavr.org>
4019 * avr-tdep.c (avr_frame_address): Delete function.
4020 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4021 set_gdbarch_frame_args_address.
4023 2003-06-19 Andrew Cagney <cagney@redhat.com>
4025 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4026 (REGISTER_CONVERT_FROM_TYPE): Delete.
4027 (mips_register_convert_to_type): Delete declaration.
4028 (mips_register_convert_from_type): Delete declaration.
4029 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4032 2003-06-19 Michael Snyder <msnyder@redhat.com>
4034 * linux-nat.h: New file.
4035 * linux-nat.c: Include linux-nat.h.
4036 * lin-lwp.c: Include linux-nat.h.
4037 Move struct lwp_info def to linux-nat.h.
4038 * linux-proc.c: Include linux-nat.h.
4039 (linux_make_note_section): Iterate over lwps instead of threads.
4040 (linux_do_thread_registers): Use lwp instead of merged pid.
4041 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4042 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4043 Add dependency on linux_nat_h.
4045 2003-06-19 Theodore A. Roth <troth@openavr.org>
4047 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4049 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4051 * varobj.c (get_type, get_target_type): Use check_typedef.
4053 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4055 * breakpoint.c (insert_catchpoint): Call internal_error.
4057 2003-06-19 Theodore A. Roth <troth@openavr.org>
4059 * avr-tdep.c (avr_push_dummy_code): Delete function.
4060 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4062 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4064 * arch-utils.c (default_prepare_to_proceed): Remove.
4065 (generic_prepare_to_proceed): Remove.
4066 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4067 (generic_prepare_to_proceed): Remove prototype.
4068 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4069 * gdbarch.c: Regenerate.
4070 * gdbarch.h: Regenerate.
4071 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4072 * hppah-nat.c (hppa_switched_threads): Remove.
4073 * infrun.c (prepare_to_proceed): New static function, copied from
4074 generic_prepare_to_proceed. Remove select_it argument.
4075 (proceed): Call prepare_to_proceed.
4076 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4078 (ptrace_wait): Don't set the removed variables.
4079 (hppa_switched_threads): Remove.
4080 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4081 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4082 (lin_lwp_prepare_to_proceed): Remove prototype.
4083 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4084 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4086 2003-06-18 Theodore A. Roth <troth@openavr.org>
4088 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4090 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4091 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4092 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4093 (AVR_PROLOGUE_*): Enumerate prologue types.
4094 (struct frame_extra_info): Remove.
4095 (struct avr_unwind_cache): Define.
4096 (avr_write_sp): Delete function.
4097 (avr_read_fp): Ditto.
4098 (avr_init_extra_frame_info): Ditto.
4099 (avr_pop_frame): Ditto.
4100 (avr_frame_saved_pc): Ditto.
4101 (avr_saved_pc_after_call): Ditto.
4102 (avr_push_return_address): Ditto.
4103 (avr_frame_chain): Ditto.
4104 (avr_store_struct_return): Ditto.
4105 (avr_push_arguments): Ditto.
4106 (avr_scan_prologue): Update comments. Changed to set up the info for
4107 cache unwinding. Now returns end of prologue PC.
4108 (avr_skip_prologue): Better handling of functions lacking a prologue
4109 by using avr_scan_prologue.
4110 (avr_scan_arg_moves): New function.
4111 (avr_saved_regs_unwinder): Ditto.
4112 (avr_frame_unwind_cache): Ditto.
4113 (avr_unwind_pc): Ditto.
4114 (avr_frame_this_id): Ditto.
4115 (avr_frame_prev_register): Ditto.
4116 (avr_frame_p): Ditto.
4117 (avr_frame_base_address ): Ditto.
4118 (avr_unwind_dummy_id): Ditto.
4119 (avr_push_dummy_code): Ditto.
4120 (push_stack_item): Ditto.
4121 (pop_stack_item): Ditto.
4122 (avr_push_dummy_call): Ditto.
4123 (struct stack_item): Define.
4124 (avr_frame_unwind): Declare structure.
4125 (avr_frame_base): Ditto.
4126 (avr_gdbarch_init): Remove calls to
4127 set_gdbarch_deprecated_init_frame_pc,
4128 set_gdbarch_deprecated_target_read_fp,
4129 set_gdbarch_deprecated_dummy_write_sp,
4130 set_gdbarch_deprecated_fp_regnum,
4131 set_gdbarch_deprecated_push_arguments,
4132 set_gdbarch_deprecated_push_return_address,
4133 set_gdbarch_deprecated_pop_frame,
4134 set_gdbarch_deprecated_store_struct_return,
4135 set_gdbarch_deprecated_frame_init_saved_regs,
4136 set_gdbarch_deprecated_init_extra_frame_info,
4137 set_gdbarch_deprecated_frame_chain,
4138 set_gdbarch_deprecated_frame_saved_pc,
4139 set_gdbarch_deprecated_saved_pc_after_call.
4140 Add calls to set_gdbarch_push_dummy_call,
4141 set_gdbarch_push_dummy_code,
4142 frame_unwind_append_predicate,
4143 frame_base_set_default,
4144 set_gdbarch_unwind_dummy_id,
4145 set_gdbarch_unwind_pc.
4148 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4150 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4151 registers for H8/300S.
4152 (h8300_print_registers_info): Ditto.
4153 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4155 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4157 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4158 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4159 (lin_lwp_wait): Likewise. Update comments.
4160 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4161 (pull_pid_from_list, linux_record_stopped_pid): New.
4163 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4165 * ada-lang.c (scan_discrim_bound): Name first argument.
4166 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4167 declared by ALL_BLOCK_SYMBOLS.
4169 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4171 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4172 ("regcache.h"): Include it.
4173 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4175 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4177 * NEWS: Mention gdbserver detach change and "disconnect" command.
4178 * infcmd.c (disconnect_command): New function.
4179 (_initialize_infcmd): Add ``disconnect'' command.
4180 * remote.c (remote_async_detach): Delete.
4181 (remote_detach): Merge remote_async_detach.
4182 (remote_disconnect): New.
4183 (init_remote_ops): Set to_disconnect.
4184 (init_remote_cisco_ops): Likewise.
4185 (init_remote_async_ops): Likewise. Use remote_detach.
4186 * target.c (cleanup_target): Default to_disconnect.
4187 (update_current_target): Inherit to_disconnect.
4188 (target_disconnect, debug_to_disconnect): New functions.
4189 (setup_target_debug): Set to_disconnect.
4190 * target.h (struct target_ops): Add to_disconnect.
4191 (target_disconnect): Add prototype.
4193 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4195 * breakpoint.c (insert_catchpoint): New function.
4196 (insert_breakpoints): Use catch_exceptions to call
4197 insert_catchpoint. Disable catchpoints if they fail to insert.
4199 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4201 * symfile.c (reread_symbols): Clear sym_private.
4203 2003-06-17 Andrew Cagney <cagney@redhat.com>
4205 * trad-frame.h (struct frame_info): Add opaque declaration.
4206 * remote-fileio.h (struct cmd_list_element): Add opaque
4208 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4211 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4213 * remote.c (remote_prepare_to_store): Replace call to
4214 deprecated_read_register_bytes with multiple regcache_raw_read
4217 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4219 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4220 (nto_find_and_open_solib): Likewise.
4221 (nto_init_solib_absolute_prefix): Likewise.
4222 (_initialize_nto_tdep): Fix indentation.
4224 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4226 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4228 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4230 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4232 2003-06-17 Jim Blandy <jimb@redhat.com>
4234 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4236 2003-06-16 Theodore A. Roth <troth@openavr.org>
4238 * avr-tdep.c (avr_extract_return_value): New function.
4239 (avr_gdbarch_init): Set extract_return_value method.
4241 2003-06-16 Andrew Cagney <cagney@redhat.com>
4243 * frame.h (deprecated_get_next_frame_hack): Declare.
4244 * frame.c (legacy_saved_regs_prev_register): Only require
4245 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4246 there are always saved regs.
4247 (deprecated_generic_get_saved_register): Do not require
4248 DEPRECATED_FRAME_INIT_SAVED_REGS.
4249 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4250 use frame ID unwind instead.
4251 (deprecated_get_next_frame_hack): New function.
4253 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4255 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4256 (h8300_push_dummy_call): ...this function. Some minor optimization.
4257 (h8300_push_return_address): Remove.
4258 (h8300_gdbarch_init): Remove calls to
4259 set_gdbarch_deprecated_dummy_write_sp,
4260 set_gdbarch_deprecated_push_arguments and
4261 set_gdbarch_deprecated_push_return_address.
4262 Add call to set_gdbarch_push_dummy_call.
4264 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4266 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4267 (E_PSEUDO_EXR_REGNUM): Ditto.
4268 (h8300_is_argument_spill): Check for instructions moving argument
4269 registers into safe registers.
4270 (h8300_skip_prologue): Check for stm instruction to push registers
4271 used for register variables onto stack.
4272 (gdb_print_insn_h8300): Remove.
4273 (h8300_examine_prologue): Add a comment.
4274 (h8300_register_name): Take pseudo registers into account.
4275 (h8300s_register_name): Ditto.
4276 (h8300sx_register_name): Ditto.
4277 (h8300_print_register): Ditto.
4278 (h8300_print_registers_info): Define "nice" printing order.
4279 (h8300_saved_pc_after_call): Take pseudo registers into account.
4280 (h8300_register_type): Ditto. Return type used for remote connection
4281 when requesting real CCR or EXR register, return actual type when
4282 requesting pseudo CCR or EXR.
4283 (h8300_pseudo_register_read): New function.
4284 (h8300_pseudo_register_write): Ditto.
4285 (h8300_dbg_reg_to_regnum): Ditto.
4286 (h8300s_dbg_reg_to_regnum): Ditto.
4287 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4288 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4289 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4290 set_gdbarch_print_insn architecture dependent.
4291 Call set_gdbarch_pseudo_register_read and
4292 set_gdbarch_pseudo_register_write.
4293 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4295 2003-06-16 Andrew Cagney <cagney@redhat.com>
4297 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4298 * gdbarch.h, gdbarch.c: Re-generate.
4299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4300 * s390-tdep.c (s390_gdbarch_init): Update.
4301 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4302 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4303 * mips-tdep.c (mips_gdbarch_init): Update.
4304 * mcore-tdep.c (mcore_gdbarch_init): Update.
4305 * cris-tdep.c (cris_gdbarch_init): Update.
4306 * infcall.c (call_function_by_hand): Update.
4307 * ia64-tdep.c (ia64_push_arguments): Update comment.
4308 * frame.c (legacy_get_prev_frame): Do not assume
4309 SAVE_DUMMY_FRAME_TOS_P.
4310 * dummy-frame.c (find_dummy_frame): Update comment.
4312 2003-06-16 Andrew Cagney <cagney@redhat.com>
4314 * regcache.c (do_cooked_read): Do not use register_valid_p.
4316 2003-06-15 Theodore A. Roth <troth@openavr.org>
4318 * avr-tdep.c (avr_register_type): Remove a blank line.
4319 (avr_scan_prologue): Correct some comments.
4321 2003-06-15 Theodore A. Roth <troth@openavr.org>
4323 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4325 Properly scan prologues generated by gcc with the -mcall-prologues
4327 Add code to scan -mcall-prologues for mega devices.
4329 2003-06-15 Theodore A. Roth <troth@openavr.org>
4331 * avr-tdep.c (avr_register_byte): Delete function.
4332 (avr_register_raw_size): Delete function.
4333 (avr_register_virtual_size): Delete function.
4334 (avr_register_virtual_type): Delete function.
4335 (avr_register_type): New function.
4336 (avr_address_to_pointer): Remove unused code.
4337 (avr_read_fp): Need to read FP as two separate bytes due to change to
4338 avr_register_type() usage.
4339 (avr_gdbarch_init): Don't set deprecated_register_size.
4340 Don't set deprecated_register_bytes.
4341 Don't set deprecated_register_byte.
4342 Don't set deprecated_register_raw_size.
4343 Don't set deprecated_max_register_raw_size.
4344 Don't set deprecated_register_virtual_size.
4345 Don't set deprecated_max_register_virtual_size.
4346 Don't set deprecated_register_virtual_type.
4347 Set register_type method.
4349 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4351 * Makefile.in (linux-nat.o): Add rule.
4352 * linux-nat.c: New file.
4353 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4354 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4355 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4356 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4357 * config/arm/linux.mh (NATDEPFILES): Likewise.
4358 * config/i386/linux.mh (NATDEPFILES): Likewise.
4359 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4360 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4361 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4362 * config/mips/linux.mh (NATDEPFILES): Likewise.
4363 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4364 * config/s390/s390.mh (NATDEPFILES): Likewise.
4365 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4367 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4369 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4370 replace out-of-date comment.
4372 2003-06-15 Andrew Cagney <cagney@redhat.com>
4374 * rdi-share/host.h (Fail): Change to a varargs function.
4375 * remote-rdi.c (Fail): Update.
4377 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4379 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4380 (i386_convert_register_p, i386_register_to_value,
4381 i386_register_from_value): Handle types longer than 8 bytes.
4383 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4385 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4386 Move floating-point code to new function in i387-tdep.c.
4387 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4388 New functions containing code moved here from i386-tdep.c.
4389 * i387-tdep.h: Add opaque declaration for `struct type'.
4390 (i387_register_to_value, i387_value_to_register): New prototypes.
4391 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4392 (x86_64_init_abi): Set convert_register_p, register_to_value and
4393 value_to_register here.
4395 2003-06-14 Andrew Cagney <cagney@redhat.com>
4397 * mips-tdep.c (mips_register_to_value): Make static.
4398 (mips_value_to_register): Make static.
4399 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4400 * ia64-tdep.c (ia64_register_raw_size): Make static.
4401 (ia64_register_virtual_size): Make static.
4402 (ia64_register_byte): Make static.
4403 * i387-tdep.c: Include "i387-tdep.h".
4404 (print_387_control_word): Delete function.
4405 (print_387_status_word): Delete function.
4406 (print_387_status_bits): Delete function.
4407 (print_387_control_bits): Delete function.
4408 * Makefile.in (i387-tdep.o): Update dependencies.
4409 * rdi-share/host.h (Fail): Declare.
4410 * remote-rdi.c (Fail): Update to match declaration.
4412 2003-06-14 Andrew Cagney <cagney@redhat.com>
4414 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4415 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4416 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4417 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4418 * README: Delete reference to remote-array.
4419 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4420 (remote-array.o): Delete target.
4421 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4422 * remote-array.c: Delete file.
4424 2003-06-14 Andrew Cagney <cagney@redhat.com>
4425 Mark Kettenis <kettenis@gnu.org>
4427 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4428 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4429 parameter with "frame".
4430 * gdbarch.h, gdbarch.c: Re-generate.
4431 * frame.h (put_frame_register): Declare.
4432 * frame.c (put_frame_register): New function.
4433 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4434 (legacy_register_to_value): Rewrite, use "frame" to get the
4436 (legacy_value_to_register): Rewrite, use "frame" to find the
4437 register's location before storing.
4438 * arch-utils.h (legacy_convert_register_p): Update.
4439 (legacy_register_to_value, legacy_value_to_register): Update.
4440 * findvar.c (value_from_register): Rewrite, eliminate use of
4441 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4442 "frame" to REGISTER_TO_VALUE.
4443 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4444 lval_reg_frame_relative + lval_register branch of the switch. Do
4445 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4446 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4447 I386_EDI_REGNUM): New defines.
4448 (i386_next_regnum, i386_convert_register_p,
4449 i386_register_to_value, i386_value_to_register): New functions.
4450 (i386_register_convertible, i386_register_convert_to_virtual,
4451 i386_convert_to_raw): Remove functions.
4452 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4453 value_to_register instead of register_convertible,
4454 register_convert_to_virtual and register_convert_to_raw.
4455 * mips-tdep.c (mips_convert_register_p): New function.
4456 (mips_value_to_register): Replace mips_register_convert_from_type.
4457 (mips_register_to_value): Replace mips_register_convert_to_type.
4458 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4460 * alpha-tdep.c (alpha_convert_register_p): Update.
4461 (alpha_value_to_register): Update, store the register.
4462 (alpha_register_to_value): Update, fetch the register.
4464 2003-06-14 Theodore A. Roth <troth@openavr.org>
4466 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4467 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4468 Don't set deprecated_call_dummy_words.
4469 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4470 Don't set remote_translate_xfer_address.
4471 (avr_io_reg_read_command): Remove commented out debug printf.
4474 2003-06-14 Theodore A. Roth <troth@openavr.org>
4476 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4477 causes gdb to seg fault.
4479 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4481 * sparc-nat.c (fetch_inferior_registers): Correct
4482 a reference to "registers".
4484 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4486 * Makefile.in (exc_request_U_h): Define
4487 (exc_request_S_h): Likewise.
4488 (msg_reply_S_h): Likewise.
4489 (msg_U_h): Likewise.
4490 (notify_S_h): Likewise.
4491 (process_reply_S_h): Likewise.
4492 (gnu-nat.o): Depend on gdb_obstack_h
4493 * gnu-nat.c: Include "gdb_obstack.h".
4495 2003-06-13 Andrew Cagney <cagney@redhat.com>
4497 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4498 * gdbarch.h, gdbarch.c: Re-generate.
4500 2003-06-13 Andrew Cagney <cagney@redhat.com>
4502 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4503 when deprecated REGISTER macros can be deleted.
4504 * gdbarch.h, gdbarch.c: Re-generate.
4506 2003-06-13 Jim Blandy <jimb@redhat.com>
4508 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4509 Linux entry point symbols for _dl_debug_state, too.
4511 2003-06-13 Andrew Cagney <cagney@redhat.com>
4513 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4514 available, do not use the FP register, and always save the TOS.
4515 * dummy-frame.c (dummy_frame_this_id): Do not assert
4516 SAVE_DUMMY_FRAME_TOS.
4517 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4518 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4519 (i386_push_dummy_call): Add 8 to the returned SP.
4520 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4521 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4522 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4523 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4524 (x86_64_push_dummy_call): Return "sp + 16".
4525 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4526 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4527 save_dummy_frame_tos.
4529 2003-06-13 Jim Blandy <jimb@redhat.com>
4531 * frv-tdep.c (frv_use_struct_convention): Delete static
4532 declaration for function deleted in my change of 2003-06-12.
4534 2003-06-13 Theodore A. Roth <troth@openavr.org>
4536 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4537 (avr_pointer_to_address): Shift code addrs left 1 bit.
4538 (avr_convert_from_func_ptr_addr): Delete function since operation is
4539 better handled by avr_address_to_pointer and avr_pointer_to_address.
4540 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4542 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4544 From Kelley Cook <kelleycook@wideopenwest.com>:
4545 * configure.host: Accept i[34567]86 variants.
4546 * configure.tgt: Likewise.
4547 * nlm/configure.in: Likewise.
4548 * nlm/configure: Regenerated.
4550 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4552 * arm-tdep.c (solib-svr4.h): Dont' include it.
4553 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4554 * arm-linux-tdep.c: ... here. Make static.
4555 (arm_linux_init_abi): Register it.
4556 (solib-svr4.h): Include it.
4557 * Makefile.in: Update dependencies.
4558 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4559 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4561 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4563 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4564 indicate registers used for return values.
4565 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4566 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4568 (h8300_init_extra_frame_info): Ditto.
4569 (h8300_frame_locals_address): Removed.
4570 (h8300_frame_args_address): Removed.
4571 (h8300_extract_return_value): Use new regcache structure. Only care
4573 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4574 (h8300_store_return_value): Use new regcache structure. Only care
4576 (h8300h_store_return_value): Same function for 32 bit CPUs.
4577 (h8300_store_struct_return): Removed.
4578 (h8300_extract_struct_value_address): Use new regcache structure.
4579 (h8300h_extract_struct_value_address): Removed.
4580 (h8300_push_dummy_code): New function.
4581 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4582 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4583 set_gdbarch_store_return_value architecture dependent.
4584 Call set_gdbarch_push_dummy_code and
4585 set_gdbarch_extract_struct_value_address.
4586 Remove calls to set_gdbarch_frame_args_address,
4587 set_gdbarch_frame_locals_address,
4588 set_gdbarch_deprecated_store_struct_return,
4589 set_gdbarch_deprecated_extract_return_value,
4590 set_gdbarch_deprecated_extract_struct_value_address,
4591 set_gdbarch_deprecated_call_dummy_words and
4592 set_gdbarch_deprecated_sizeof_call_dummy_words.
4594 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4596 * h8300-tdep.c (h8300_register_byte): Remove.
4597 (h8300h_register_byte): Remove.
4598 (h8300_register_virtual_type): Remove. Substitute by...
4599 (h8300_register_type): New function.
4600 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4601 (h8300h_extract_struct_value_address): Ditto.
4602 (h8300_gdbarch_init): Drop calls to
4603 set_gdbarch_deprecated_register_byte and
4604 set_gdbarch_deprecated_register_virtual_type.
4605 Add call to set_gdbarch_register_type.
4607 2003-06-13 Andrew Cagney <cagney@redhat.com>
4609 * gdbarch.sh: Update comments on registers.
4610 (deprecated_register_byte): Rename register_byte.
4611 (deprecated_register_raw_size): Rename register_raw_size.
4612 (deprecated_register_virtual_size): Rename register_virtual_size.
4613 (deprecated_register_virtual_type): Rename register_virtual_type.
4614 * gdbarch.h, gdbarch.c: Re-generate.
4615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4616 * vax-tdep.c (vax_gdbarch_init): Update.
4617 * v850-tdep.c (v850_gdbarch_init): Update.
4618 * sparc-tdep.c (sparc_gdbarch_init): Update.
4619 * sh-tdep.c (sh_gdbarch_init): Update.
4620 * s390-tdep.c (s390_gdbarch_init): Update.
4621 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4622 * ns32k-tdep.c: Update.
4623 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4624 * mips-tdep.c (mips_gdbarch_init): Update.
4625 * mcore-tdep.c (mcore_gdbarch_init): Update.
4626 * m68k-tdep.c (m68k_gdbarch_init): Update.
4627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4628 * ia64-tdep.c (ia64_gdbarch_init): Update.
4629 * hppa-tdep.c (hppa_gdbarch_init): Update.
4630 * h8300-tdep.c (h8300_gdbarch_init): Update.
4631 * frv-tdep.c (frv_gdbarch_init): Update.
4632 * cris-tdep.c (cris_gdbarch_init): Update.
4633 * avr-tdep.c (avr_gdbarch_init): Update.
4634 * alpha-tdep.c (alpha_gdbarch_init): Update.
4635 * arm-tdep.c (arm_gdbarch_init): Update.
4637 2003-06-13 Andrew Cagney <cagney@redhat.com>
4639 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4640 mips_o32_use_struct_convention with always_use_struct_convention.
4642 2003-06-12 David Carlton <carlton@kealia.com>
4644 * cp-namespace.c (cp_set_block_scope): Comment out
4645 processing_has_namespace_info branch.
4647 2003-06-12 Jim Blandy <jimb@redhat.com>
4649 Recognize and skip 64-bit PowerPC Linux linkage functions.
4650 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4651 insn_pattern, insns_match_pattern, d_field, ds_field): New
4652 functions, macros, and types for working with PPC instructions.
4653 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4654 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4655 ppc64_skip_trampoline_code): New functions, variables, and macros
4656 for recognizing and skipping linkage functions.
4657 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4658 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4660 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4661 register offsets for both the 32- and 64-bit interfaces.
4663 Actually finish the job started by my change of 2003-05-29.
4664 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4665 other #definition of this.
4666 (ppc_linux_skip_trampoline_code): Remove declaration.
4667 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4669 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4672 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4673 'long' on ppc64-*-linux*.
4675 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4676 isn't #defined, assume the register doesn't exist: act as if
4677 tdep->ppc_mq_regnum were -1.
4679 * configure.host, configure.tgt: Add entries for
4680 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4682 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4685 * arch-utils.c (always_use_struct_convention): New function.
4686 * arch-utils.h (always_use_struct_convention): New prototype.
4687 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4688 (alpha_gdbarch_init): Register always_use_struct_convention,
4689 instead of alpha_use_struct_convention.
4690 * cris-tdep.c (cris_use_struct_convention): Delete.
4691 (cris_gdbarch_init): Register always_use_struct_convention,
4692 instead of cris_use_struct_convention.
4693 * frv-tdep.c (frv_use_struct_convention): Delete.
4694 (frv_gdbarch_init): Register always_use_struct_convention,
4695 instead of frv_use_struct_convention.
4696 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4697 (h8300_gdbarch_init): Register always_use_struct_convention,
4698 instead of h8300_use_struct_convention.
4699 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4700 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4701 instead of mips_o32_use_struct_convention.
4703 2003-06-12 Andrew Cagney <cagney@redhat.com>
4705 * wince.c: Include "mips-tdep.h".
4706 * mips-tdep.h (mips_next_pc): Declare.
4707 * mcore-tdep.c: Make more local functions static.
4708 * Makefile.in (wince.o): Update dependencies.
4710 2003-06-12 David Carlton <carlton@kealia.com>
4712 * symtab.c (lookup_symbol_aux_minsyms): Replace
4713 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4714 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4715 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4716 SYMBOL_NATURAL_NAME.
4718 2003-06-12 Andreas Schwab <schwab@suse.de>
4720 * Makefile.in (tuiDisassem.o): Update dependencies.
4722 2003-06-12 David Carlton <carlton@bactrian.org>
4724 * symtab.h: Delete declaration of make_symbol_overload_list.
4725 Add declaration of lookup_partial_symbol.
4726 * symtab.c (remove_params): Move to cp-support.c.
4727 (overload_list_add_symbol, make_symbol_overload_list)
4728 (sym_return_val_size, sym_return_val_index): Ditto.
4729 (lookup_partial_symbol): Make extern.
4730 * cp-support.h: Add declaration of make_symbol_overload_list.
4731 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4732 symtab.h, and block.h.
4733 (remove_params): Move here from symtab.c.
4734 (overload_list_add_symbol, make_symbol_overload_list)
4735 (sym_return_val_size, sym_return_val_index): Ditto.
4736 * valops.c: Include cp-support.h.
4737 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4738 frame_h, and block_h.
4739 (valops.o): Depend on cp_support_h.
4741 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4743 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4744 substitute by NUM_REGS throughout.
4745 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4746 (h8300s_register_name): New function for H8S registers.
4747 (h8300sx_register_name): Ditto for H8SX registers.
4748 (h8300_print_register): Revise register printing, avoid depending
4750 (h8300_register_byte): Only care for H8/300 registers.
4751 (h8300h_register_byte): New function for any other architecture.
4752 (h8300_register_raw_size): Remove.
4753 (h8300_register_virtual_type): Revise to return actually useful
4755 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4756 (h8300h_extract_struct_value_address): New function for any other
4758 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4759 set_gdbarch_register_name, set_gdbarch_register_byte,
4760 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4761 Remove calls to set_gdbarch_deprecated_register_size,
4762 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4763 set_gdbarch_deprecated_max_register_raw_size,
4764 set_gdbarch_register_virtual_size and
4765 set_gdbarch_deprecated_max_register_virtual_size entirely.
4766 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4767 set_gdbarch_long_double_bit.
4769 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4771 * doublest.c (convert_doublest_to_floatformat): When dealing
4772 with the implied integer bit, only alter mant_bits if we are
4773 processing a full 32 bits of mantissa.
4775 2003-06-11 David Carlton <carlton@bactrian.org>
4777 * dictionary.h: New.
4778 * dictionary.c: New.
4779 * block.h: Add opaque declaration for struct dictionary.
4780 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4782 (BLOCK_DICT): New macro.
4783 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4784 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4786 (ALL_BLOCK_SYMBOLS): Update definition.
4787 * Makefile.in (SFILES): Add dictionary.c.
4788 (dictionary_h): New.
4789 (COMMON_OBS): Add dictionary.o.
4790 (dictionary.o): New.
4791 (ada-lang.o): Depend on dictionary_h.
4792 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4793 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4794 (mi-cmd-stack.o): Ditto.
4795 (gdbtk-cmds.o): Update dependencies.
4796 (gdbtk-stack.o): Ditto.
4797 * ada-lang.c: Include dictionary.h.
4798 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4799 (fill_in_ada_prototype, debug_print_block): Ditto.
4800 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4801 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4803 * mdebugread.c: Include dictionary.h.
4804 (struct parse_stack): Delete 'maxsyms' member.
4805 (parse_symbol): Update calls to new_block. Delete calls to
4806 shrink_block. Use dictionary methods.
4807 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4808 Update calls to new_symtab. Don't maintain maxsyms data.
4809 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4810 (add_symbol): Just call dict_add_symbol.
4811 (new_symtab): Delete 'maxsyms' argument.
4812 (new_symtab): Update calls to new_block.
4813 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4814 (shrink_block): Delete function.
4815 (fixup_sigtramp): Update call to new_block. Add symbol via
4817 * jv-lang.c: Include dictionary.h.
4818 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4819 appropriately. Set class_symtab->free_func. Make sure the
4820 blockvector is big enough to hold two blocks.
4821 (add_class_symtab_symbol): Use dictionary methods.
4822 (free_class_block): New function.
4823 (type_from_class): Replace explicit iteration by
4825 * symtab.h (struct symtab): Replace 'free_ptr' method by
4827 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4829 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4831 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4832 Include dictionary.h.
4833 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4834 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4836 * objfiles.c: Include dictionary.h.
4837 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4838 * buildsym.c: Include dictionary.h.
4839 (finish_block): Use dictionary methods.
4840 (end_symtab): Set free_func to NULL, not free_ptr.
4841 * tracepoint.c: Include dictionary.h.
4842 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4843 (scope_info): Ditto.
4844 * stack.c: Include dictionary.h.
4845 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4846 (print_block_frame_labels, print_frame_arg_vars)
4847 (print_frame_args): Ditto.
4848 * symmisc.c (free_symtab_block): Use dictionary methods.
4849 (dump_symtab): Ditto.
4850 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4851 Include dictionary.h.
4852 * symfile.h: Delete declarations of sort_block_syms,
4854 * symfile.c (sort_block_syms): Delete.
4855 (sort_symtab_syms): Delete.
4856 * symtab.c: Include dictionary.h.
4857 (lookup_block_symbol): Use dictionary iterators.
4858 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4859 (search_symbols, make_symbol_completion_list): Ditto.
4860 (make_symbol_overload_list): Ditto.
4861 * valops.c (value_of_local): Use dict_empty.
4862 Include dictionary.h.
4864 2003-06-11 J. Brobecker <brobecker@gnat.com>
4866 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4868 2003-06-11 David Carlton <carlton@bactrian.org>
4870 * block.h (BLOCK_SHOULD_SORT): Delete.
4871 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4873 * ada-lang.c (ada_add_block_symbols): Ditto.
4874 * symfile.c (sort_block_syms): Delete.
4875 (sort_symtab_syms): Ditto.
4876 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4878 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4879 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4880 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4881 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4882 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4883 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4884 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4886 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4888 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4891 2003-06-11 Andrew Cagney <cagney@redhat.com>
4893 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4894 REGISTER_CONVERTIBLE.
4895 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4896 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4897 * gdbarch.h, gdbarch.c: Re-generate.
4898 * arch-utils.h (deprecated_register_convertible_not): Rename
4899 generic_register_convertible_not.
4900 * arch-utils.c (deprecated_register_convertible_not): Rename
4901 generic_register_convertible.
4902 (legacy_convert_register_p, legacy_register_to_value): Update.
4903 * sh-tdep.c (sh64_push_arguments): Update.
4904 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4905 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4906 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4907 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4908 * arch-utils.c (legacy_value_to_register): Update.
4909 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4910 (rs6000_register_convert_to_raw): Make parameter "from" const.
4911 * mips-tdep.c (mips_gdbarch_init): Update.
4912 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4913 * infcmd.c (default_print_registers_info): Update.
4914 * ia64-tdep.c (ia64_gdbarch_init): Update.
4915 (ia64_register_convert_to_raw): Make parameter "from" const.
4916 * i386-tdep.c (i386_gdbarch_init): Update.
4917 (i386_register_convert_to_raw): Update.
4919 2003-06-11 Andrew Cagney <cagney@redhat.com>
4921 * remote-fileio.c: Include "remote-fileio.h".
4922 * Makefile.in (remote-fileio.o): Update dependencies.
4923 (remote_fileio_h): Fix typo.
4925 2003-06-11 Andrew Cagney <cagney@redhat.com>
4927 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4928 (xstormy16_save_dummy_frame_tos): Make static.
4929 (_initialize_xstormy16_tdep): Add declaration.
4930 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4931 * v850-tdep.c: Make local functions static.
4932 (_initialize_v850_tdep): Add declaration.
4933 * sparc-tdep.c: Make local functions static.
4934 (_initialize_sparc_tdep): Add declaration.
4935 * sh-tdep.c: Make local functions static.
4936 (_initialize_sh_tdep): Add declaration.
4937 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4938 * s390-tdep.c: Make local functions static.
4939 (_initialize_s390_tdep): Add declaration.
4940 * dbxread.c (find_stab_function_addr): Make static.
4941 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4942 * ocd.c (_initialize_remote_ocd): Add declaration.
4943 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4944 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4945 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4946 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4947 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4948 * remote-array.c (_initialize_array): Add declaration.
4949 (_initialize_remote_monitors): Add declaration.
4950 * remote-mips.c: Make local functions static.
4951 (_initialize_remote_mips): Add declaration.
4952 * mcore-tdep.c: Make all local functions static.
4953 (_initialize_mcore_tdep): Add declaration.
4954 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4955 * abug-rom.c (_initialize_abug_rom): Add declaration.
4956 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4957 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4958 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4959 * remote-est.c (_initialize_est): Add declaration.
4960 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4961 (m68hc11_call_dummy_address): Make static.
4962 * ia64-tdep.c: Make local functions static.
4963 (_initialize_ia64_tdep): Add declaration.
4964 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4965 * monitor.c (monitor_wait_filter): Make static.
4966 (_initialize_remote_monitors): Add declaration.
4967 * remote-hms.c (_initialize_remote_hms): Add declaration.
4968 * remote-e7000.c (fetch_regs_from_dump): Make static.
4969 (expect_n): Make static.
4970 (_initialize_remote_e7000): Add declaration.
4971 * ser-e7kpc.c: Always include "defs.h".
4972 (_initialize_ser_e7000pc): Add declaration.
4973 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4974 * cris-tdep.c: Make all but one function static.
4975 (_initialize_cris_tdep): Add declaration.
4976 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4977 * solib.c (update_solib_list): Make static.
4978 (_initialize_solib): Add declaration.
4979 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4980 (_initialize_avr_tdep): Add declaration.
4981 * remote-rdi.c (voiddummy): Make static.
4982 (_initialize_remote_rdi): Add declaration.
4983 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4984 * remote-rdp.c (send_rdp): Make static.
4985 (_initialize_remote_rdp): Add declaration.
4986 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4988 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4990 * remote-fileio.c: Make ari happy.
4992 2003-06-10 J. Brobecker <brobecker@gnat.com>
4994 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4995 fetching the trailing bytes of the buffer we are about to write.
4997 2003-06-10 Andrew Cagney <cagney@redhat.com>
4999 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5000 * Makefile.in (remote-fileio.o): Update dependencies.
5001 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5002 include <setjmp.h>, or <sys/types.h> conditional on USG.
5003 (remote_fio_jmp_buf): Delete global variable.
5005 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5006 Martin M. Hunt <hunt@redhat.com>
5008 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5009 (SFILES): Add remote-fileio.c.
5010 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5011 dependencies for building remote.o.
5012 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5013 * remote-fileio.h: New header file defining remote File-I/O interface.
5014 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5015 static storage class.
5016 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5018 (_initialize_remote): Call initialize_remote_fileio().
5019 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5020 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5021 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5022 (captured_main): Initialize new ui_files.
5023 * ui-file.c: Add read and fgets input functions.
5024 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5025 (null_file_read): New function.
5026 (ui_file_read): New function.
5027 (set_ui_file_read): New function.
5028 (stdio_file_read): New function.
5029 * ui-file.h: New type ui_file_read_ftype.
5030 (set_ui_file_read): Declare.
5031 (ui_file_read): Declare.
5033 2003-06-09 Andrew Cagney <cagney@redhat.com>
5035 * frame.h (deprecated_unwind_get_saved_register): Rename
5036 generic_unwind_get_saved_register, update comments.
5037 * mips-tdep.c (mips_get_saved_register): Update.
5038 * frame.c (deprecated_unwind_get_saved_register): Update.
5040 2003-06-09 Andrew Cagney <cagney@redhat.com>
5042 * vax-tdep.c (vax_frame_locals_address): Delete function.
5043 (vax_gdbarch_init): Do not set frame_locals_address.
5044 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5045 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5046 * s390-tdep.c (s390_frame_args_address): Delete function.
5047 (s390_gdbarch_init): Do not set frame_args_address or
5048 frame_locals_address.
5049 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5050 (ns32k_gdbarch_init): Do not set frame_locals_address.
5051 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5052 (hppa_frame_locals_address): Delete function.
5053 (hppa_gdbarch_init): Do not set frame_args_address, or
5054 frame_locals_address.
5055 * arm-tdep.c (arm_frame_args_address): Delete.
5056 (arm_frame_locals_address): Delete.
5057 (arm_gdbarch_init): Do not set frame_args_address, or
5058 frame_locals_address.
5060 2003-06-09 Andrew Cagney <cagney@redhat.com>
5062 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5063 * gdbarch.h, gdbarch.c: Re-generate.
5064 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5065 * arch-utils.c (frame_num_args_unknown): Delete function.
5066 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5067 (frame_info): Use FRAME_NUM_ARGS_P.
5068 * arm-tdep.c (arm_frame_num_args): Delete function.
5069 (arm_gdbarch_init): Do not set frame_num_args.
5070 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5071 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5072 (hppa_gdbarch_init): Do not set frame_num_args.
5073 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5075 frame_num_args to default frame_num_args_unknown.
5076 * v850-tdep.c (v850_gdbarch_init): Ditto.
5077 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5078 * sh-tdep.c (sh_gdbarch_init): Ditto.
5079 * s390-tdep.c (s390_gdbarch_init): Ditto.
5080 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5081 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5082 * mips-tdep.c (mips_gdbarch_init): Ditto.
5083 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5084 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5086 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5087 * i386-tdep.c (i386_gdbarch_init): Ditto.
5088 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5089 * frv-tdep.c (frv_gdbarch_init): Ditto.
5090 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5091 * cris-tdep.c (cris_gdbarch_init): Ditto.
5092 * avr-tdep.c (avr_gdbarch_init): Ditto.
5093 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5095 2003-06-09 Andrew Cagney <cagney@redhat.com>
5097 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5098 (print_frame_args): Moved to "stack.c".
5099 * stack.c: Include "gdb_assert.h".
5100 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5101 (print_frame_args): Moved from "printcmd.c".
5102 * frame.h (print_frame_args): Delete declaration.
5103 * Makefile.in (stack.o): Update dependencies.
5105 2003-06-08 Andrew Cagney <cagney@redhat.com>
5107 * frame.c (get_prev_frame): Remove reference to
5108 frame_args_address_correct in comments.
5109 * frame-base.c (default_frame_args_address): Delete code
5110 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5111 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5112 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5113 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5114 (vax_frame_args_address_correct): Delete declaration.
5116 2003-06-08 Andrew Cagney <cagney@redhat.com>
5118 * gdbarch.sh (UNWIND_SP): Add.
5119 * gdbarch.h, gdbarch.c: Re-generate.
5120 * frame.c (frame_sp_unwind): New function.
5121 (get_frame_sp): New function.
5122 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5123 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5124 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5126 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5127 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5129 2003-06-08 Andrew Cagney <cagney@redhat.com>
5131 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5134 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5135 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5136 * config/m68k/tm-sun3.h: Update.
5137 * config/m68k/tm-m68klynx.h: Update.
5138 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5140 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5141 trad_frame". Update comments.
5142 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5143 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5144 (trad_frame_register_value, trad_frame_prev_register): Update.
5146 2003-06-08 Andrew Cagney <cagney@redhat.com>
5148 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5149 from GCC's acinclude.m4.
5150 * configure.in: Check for getopt's delcaration.
5151 * aclocal.m4, config.in, configure: Re-generate.
5152 * main.c (error_init): Delete declaration.
5153 * defs.h (error_init): Declare.
5154 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5155 (rs6000_convert_from_func_ptr_addr): Make static.
5156 (_initialize_rs6000_tdep): Add declaration.
5157 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5158 (show_commands, set_verbose, show_history): Delete declaration.
5159 * top.h (set_verbose): Add declaration.
5160 (show_history, set_history, show_commands): Add declaration.
5161 (do_restore_instream_cleanup): Add declaration.
5162 * objc-lang.c (specialcmp): Make static.
5163 (print_object_command): Make static.
5164 (find_objc_msgsend): Make static.
5165 (find_objc_msgcall_submethod_helper): Make static.
5166 (find_objc_msgcall_submethod): Make static.
5167 (_initialize_objc_language): Add declaration.
5168 (find_implementation_from_class): Make static.
5169 (find_implementation): Make static.
5170 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5171 * objc-lang.h (lookup_struct_typedef): Add declaration.
5172 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5173 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5174 (do_restore_user_call_depth): Make static.
5175 (do_restore_instream_cleanup): Delete declaration.
5176 (dont_repeat): Delete declaration.
5177 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5178 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5179 * reggroups.c (_initialize_reggroup): Add declaration.
5180 * cp-support.c (_initialize_cp_support): Add declaration.
5181 * cp-abi.c (_initialize_cp_abi): Add declaration.
5182 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5183 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5184 (_initialize_gnu_v3_abi): Add declaration.
5185 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5186 (_initialize_gnu_v2_abi): Add declaration.
5187 * frame-base.c (_initialize_frame_base): Add declaration.
5188 * doublest.c (floatformat_from_length): Make static.
5189 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5190 * frame.c (create_sentinel_frame): Make static.
5191 (_initialize_frame): Add declaration.
5192 * top.c (do_catch_errors): Make static.
5193 (gdb_rl_operate_and_get_next_completion): Make static.
5194 * typeprint.c: Include "typeprint.h".
5195 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5196 (sentinel_frame_this_id): Make static.
5197 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5198 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5199 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5200 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5201 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5202 * maint.c (maintenance_print_architecture): Make static.
5203 * signals/signals.c (_initialize_signals): Add declaration.
5204 * std-regs.c (_initialize_frame_reg): Add declaration.
5205 * jv-exp.y (push_variable): ISO C definition.
5206 (push_qualified_expression_name): Ditto.
5207 * memattr.c (_initialize_mem): Add declaration.
5208 * remote.c (remote_check_watch_resources): Make static.
5209 (remote_stopped_by_watchpoint): Make static.
5210 (remote_stopped_data_address): Make static.
5211 * d10v-tdep.c (nr_dmap_regs): Make static.
5212 (a0_regnum): Make static.
5213 (d10v_frame_unwind_cache): Make static.
5214 (d10v_frame_p): Make static.
5215 * osabi.c (show_osabi): Make static.
5216 (_initialize_gdb_osabi): Add extern declaration.
5217 * gdbtypes.c (make_qualified_type): Make static.
5218 (safe_parse_type): Make static.
5219 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5220 * macrotab.c (macro_bcache_free): Make static.
5221 * interps.c (interp_set_quiet): Make static.
5222 (interpreter_exec_cmd): Make static.
5223 * stack.h (select_frame_command): New file.
5224 * stack.c: Include "stack.h".
5225 (select_frame_command_wrapper): Delete function.
5226 (select_frame_command): Make global.
5227 * infcall.c: Include "infcall.h".
5228 * linespec.c: Include "linespec.h".
5229 * symfile.c (sections_overlap): Make static.
5230 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5231 * charset.c (_initialize_charset): Add missing prototype.
5232 * regcache.c (init_legacy_regcache_descr): Make static.
5233 (do_regcache_xfree): Make static.
5234 (regcache_xfer_part): Make static.
5235 (_initialize_regcache): Add missing prototype.
5236 * breakpoint.c (parse_breakpoint_sals): Make static.
5237 (breakpoint_sals_to_pc): Make static.
5238 * interps.h (clear_interpreter_hooks): ISO C declaration.
5239 * Makefile.in (stack_h): Define.
5240 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5241 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5243 2003-06-08 Andrew Cagney <cagney@redhat.com>
5245 * Makefile.in (d10v-tdep.o): Update dependencies.
5246 (SFILES): Add trad-frame.c.
5247 (trad_frame_h): Define.
5248 (COMMON_OBS): Add trad-frame.o.
5249 (trad-frame.o): Specify dependencies.
5250 * d10v-tdep.c: Include "trad-frame.h".
5251 (saved_regs_unwinder): Delete function.
5252 (d10v_frame_prev_register): Use trad_frame_prev_register.
5253 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5254 trad_frame", delete "regs" and "prev_sp".
5255 (prologue_find_regs): Use trad-frame.
5256 * trad-frame.h, trad-frame.c: New files.
5258 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5260 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5262 2003-06-07 Adam Fedor <fedor@gnu.org>
5264 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5265 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5266 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5267 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5268 resolve_msgsend_super, resolve_msgsend_super_stret):
5271 2003-06-07 Andrew Cagney <cagney@redhat.com>
5273 * symfile.h: Re-indent, clean up comments.
5275 2003-06-07 Andrew Cagney <cagney@redhat.com>
5277 * inferior.h (deprecated_write_sp): Replace
5278 generic_target_write_sp.
5279 * regcache.c (deprecated_write_sp): Replace
5280 generic_target_write_sp.
5281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5282 * vax-tdep.c (vax_gdbarch_init): Update.
5283 * v850-tdep.c (v850_gdbarch_init): Update.
5284 * sparc-tdep.c (sparc_gdbarch_init): Update.
5285 * sh-tdep.c (sh_gdbarch_init): Update.
5286 * s390-tdep.c (s390_gdbarch_init): Update.
5287 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5288 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5289 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5290 * mcore-tdep.c (mcore_gdbarch_init): Update.
5291 * m68k-tdep.c (m68k_gdbarch_init): Update.
5292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5293 * ia64-tdep.c (ia64_gdbarch_init): Update.
5294 * h8300-tdep.c (h8300_gdbarch_init): Update.
5295 * frv-tdep.c (frv_gdbarch_init): Update.
5296 * cris-tdep.c (cris_gdbarch_init): Update.
5297 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5299 2003-06-07 Andrew Cagney <cagney@redhat.com>
5301 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5302 Assert that PC_REGNUM is valid.
5303 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5305 2003-06-07 Andrew Cagney <cagney@redhat.com>
5307 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5308 * gdbarch.h, gdbarch.c: Regenerate.
5309 * mn10300-tdep.c: Include "gdb_assert.h".
5310 (mn10300_read_fp): New function.
5311 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5312 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5313 * ia64-tdep.c: Include "gdb_assert.h".
5314 (ia64_read_fp): New function.
5315 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5316 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5317 * regcache.c (generic_target_read_sp): Delete function.
5318 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5319 * inferior.h (generic_target_read_sp): Delete declaration.
5320 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5321 generic_target_read_sp.
5322 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5323 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5324 * sh-tdep.c (sh_gdbarch_init): Ditto.
5325 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5326 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5328 2003-06-07 Andrew Cagney <cagney@redhat.com>
5330 * gdbarch.sh: Comment each field of startup_gdbarch.
5331 * gdbarch.h, gdbarch.c: Re-generate.
5333 2003-06-07 Andrew Cagney <cagney@redhat.com>
5335 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5336 * gdbarch.h, gdbarch.c: Re-generate.
5337 * regcache.c: Update comments on read_pc et.al.
5338 (generic_target_read_pc): Delete function.
5339 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5340 * inferior.h (generic_target_read_pc): Delete declaration.
5341 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5342 generic_target_read_pc.
5343 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5344 * sh-tdep.c (sh_gdbarch_init): Ditto.
5345 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5348 2003-06-07 Andrew Cagney <cagney@redhat.com>
5350 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5351 "index" with "special_local_sect". Use strcmp instead of STREQ.
5352 Append period to coments.
5354 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5356 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5357 (elfstab_offset_sections): Likewise.
5358 * gdb-stabs.h (stab_section_info): Likewise.
5359 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5360 * objfiles.c (objfile_relocate): Likewise.
5361 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5362 * remote.c (get_offsets): Likewise.
5363 (remote_cisco_objfile_relocate): Likewise.
5364 * somread.c (som_symfile_offsets): Likewise.
5365 * symfile.c (alloc_section_addr_info): New function.
5366 (build_section_addr_info_from_section_tab): Use it.
5367 (free_section_addr_info): Adjust.
5368 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5369 (syms_from_objfile): Allocate local_addr dynamically.
5370 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5372 (add_symbol_file_command): Allocate sect_opts dynamically.
5373 (reread_symbols): Avoid use of SECT_OFF_MAX.
5374 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5375 (alloc_section_addr_info): Declare it.
5376 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5377 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5379 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5381 2003-06-06 Andrew Cagney <cagney@redhat.com>
5383 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5384 (d10v_frame_unwind_cache): Do not set "return_pc".
5386 2003-06-06 Michael Snyder <msnyder@redhat.com>
5388 * h8300-tdep.c: Make tidy (long lines).
5390 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5392 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5393 to regcache_collect().
5395 2003-06-05 J. Brobecker <brobecker@gnat.com>
5397 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5398 pc_in_sigtramp multiarch method.
5399 (hppa_hpux_som_init_abi): Use it.
5400 (hppa_hpux_elf_init_abi): Likewise.
5401 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5402 macro has been multiarched.
5403 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5404 macro here, as hppa64 isn't multiarched yet.
5406 2003-06-05 Andrew Cagney <cagney@redhat.com>
5408 * Makefile.in (value_h): Add $(frame_h).
5409 * value.h: Include "frame.h".
5410 (struct value): Replace "frame_addr" with "frame_id".
5411 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5412 * values.c (allocate_value): Use VALUE_FRAME_ID.
5413 (value_copy): Use VALUE_FRAME_ID.
5414 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5415 * valops.c (value_assign): Update. Use frame_find_by_id.
5417 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5419 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5422 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5424 * thread-db.c (check_event): For create/death event breakpoints,
5425 loop through all messages to ensure that we read the message
5426 corresponding to the breakpoint we are at.
5428 2003-06-04 Michael Snyder <msnyder@redhat.com>
5430 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5432 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5434 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5435 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5436 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5437 when handling .eh_frame sections.
5439 2003-06-04 J. Brobecker <brobecker@gnat.com>
5441 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5442 prepare_to_proceed procedure instead of the hppa-specific one.
5443 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5445 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5447 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5448 * config.in: Regenerated.
5449 * configure.in: Add test for syscall function and check for
5450 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5451 * configure: Regenerated.
5452 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5454 (kill_lwp): New function that uses tkill syscall or
5455 uses kill, depending on whether threading model is nptl or not.
5456 All callers of kill() changed to use kill_lwp().
5457 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5458 see if all threads have already exited in the nptl model.
5459 (stop_and_resume_callback): New callback function used by the
5460 lin_lwp_wait thread exit handling code.
5461 (stop_wait_callback): Check for threads already having exited and
5462 delete such threads fromt the lwp list when discovered.
5463 (stop_callback): Don't assert retcode of kill call.
5465 Roland McGrath <roland@redhat.com>
5466 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5469 2003-06-03 Richard Henderson <rth@redhat.com>
5471 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5472 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5473 (alpha_sigtramp_frame_prev_register): Likewise.
5474 (alpha_heuristic_frame_prev_register): Likewise.
5475 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5477 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5478 alpha-specific register id names.
5479 (alpha_mdebug_frame_unwind_cache): Likewise.
5480 (alpha_mdebug_frame_prev_register): Likewise.
5482 2003-06-03 Richard Henderson <rth@redhat.com>
5484 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5485 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5486 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5487 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5489 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5490 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5491 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5493 * alpha-linux-tdep.c: Remove unnecessary includes.
5494 * Makefile.in (alpha-linux-tdep.o): Update.
5496 2003-06-03 Richard Henderson <rth@redhat.com>
5498 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5499 (alphabsd_fill_fpreg): Likewise.
5501 2003-06-03 J. Brobecker <brobecker@gnat.com>
5503 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5504 references to struct frame_info fields by calls to the equivalent
5505 accessors. Necessary now that frame_info is opaque.
5507 2003-06-03 J. Brobecker <brobecker@gnat.com>
5509 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5510 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5511 structure, field no longer exists.
5513 2003-06-03 J. Brobecker <brobecker@gnat.com>
5515 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5516 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5518 2003-06-03 J. Brobecker <brobecker@gnat.com>
5520 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5521 references to struct frame_info fields by calls to the equivalent
5522 accessors. Necessary now that frame_info is opaque.
5524 2003-06-03 J. Brobecker <brobecker@gnat.com>
5526 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5527 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5528 structure, field no longer exists.
5530 2003-06-03 Theodore A. Roth <troth@openavr.org>
5532 * remote.c (init_remote_state): Compute sizeof_g_packet by
5533 accumulation of the size of all registers instead of blindly using
5534 DEPRECATED_REGISTER_BYTES.
5536 2003-06-03 Michael Snyder <msnyder@redhat.com>
5538 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5539 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5542 2003-06-03 J. Brobecker <brobecker@gnat.com>
5544 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5545 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5547 2003-06-03 Andrew Cagney <cagney@redhat.com>
5549 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5550 (sparc_convert_to_raw): Delete function.
5551 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5552 register_convert_to_virtual.
5554 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5556 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5557 layer if not dealing with a statically-linked threaded program.
5559 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5561 * solib.c (solib_open): Update comment to reflect actual search order.
5563 2003-06-03 Andrew Cagney <cagney@redhat.com>
5565 * frame.c (get_frame_memory_signed): New function.
5566 (get_frame_memory, get_frame_memory_unsigned): New function.
5567 (get_frame_arch): New function.
5568 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5569 (get_frame_memory, get_frame_unsigned_memory): Declare.
5570 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5571 get_frame_memory_unsigned and get_frame_arch.
5572 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5574 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5576 * MAINTAINERS (write after approval): Add myself.
5578 2003-06-03 Jim Blandy <jimb@redhat.com>
5580 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5581 elements of gregset_t are 64 bits each, but access registers
5582 are still 32 bits, so they're packed two per gregset_t
5583 element. Unpack/pack them properly.
5585 2003-06-02 David Carlton <carlton@bactrian.org>
5587 * linespec.c (find_methods): Break out code into
5588 add_matching_methods and add_constructors.
5589 (add_matching_methods): New.
5590 (add_constructors): Ditto.
5592 2003-06-02 Andrew Cagney <cagney@redhat.com>
5594 * sparc-tdep.c (sparc_print_registers): Delete call to
5595 REGISTER_CONVERTIBLE.
5596 (sparc_gdbarch_init): Do not set register_convertible.
5597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5598 * frv-tdep.c (frv_gdbarch_init): Ditto.
5599 * cris-tdep.c (cris_gdbarch_init): Ditto.
5601 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5603 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5604 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5605 (syms_from_objfile): Ditto.
5607 2003-06-03 Andreas Schwab <schwab@suse.de>
5609 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5610 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5612 2003-06-02 Richard Henderson <rth@redhat.com>
5614 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5615 a member of all_reggroup.
5617 2003-06-02 Richard Henderson <rth@redhat.com>
5619 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5620 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5621 (alpha_lds, alpha_sts): New.
5622 (alpha_convert_register_p): Change from _register_convertible.
5623 (alpha_register_to_value): Change from _convert_to_virtual;
5624 restructure and fail for type sizes other than 4 or 8.
5625 (alpha_value_to_register): Similarly.
5626 (alpha_extract_return_value): Use alpha_sts.
5627 (alpha_store_return_value): Use alpha_lds.
5628 (alpha_gdbarch_init): Update hooks.
5630 2003-06-02 Richard Henderson <rth@redhat.com>
5632 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5634 (alpha_sigtramp_register_address): Likewise.
5636 2003-06-02 Richard Henderson <rth@redhat.com>
5638 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5639 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5640 * alpha-tdep.h: Declare them.
5642 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5643 Remove zerobuf. Don't error on UNIQUE.
5644 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5645 (ALPHA_REGSET_UNIQUE): Provide default.
5646 (supply_gregset): Use alpha_supply_int_regs.
5647 (fill_gregset): Use alpha_fill_int_regs.
5648 (supply_fpregset): Use alpha_supply_fp_regs.
5649 (fill_fpregset): Use alpha_fill_fp_regs.
5650 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5651 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5652 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5653 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5654 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5655 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5657 2003-06-02 Richard Henderson <rth@redhat.com>
5659 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5661 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5662 (alpha_store_return_value): Likewise.
5664 2003-06-02 David Carlton <carlton@math.stanford.edu>
5666 * block.c (contained_in): Add 'const' to arguments.
5667 (block_function): Ditto.
5668 * block.h: Update declarations for block_function and
5671 2003-06-02 David Carlton <carlton@math.stanford.edu>
5673 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5674 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5675 * p-valprint.c (pascal_val_print): Ditto.
5676 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5678 2003-06-02 Richard Henderson <rth@redhat.com>
5680 * alpha-tdep.c (alpha_push_dummy_call): Use
5681 builtin_type_ieee_double_little instead of builtin_type_double.
5683 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5684 sign-extension of 32-bit values.
5685 (alpha_store_return_value): Similarly.
5687 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5688 (alpha_extract_return_value): Likewise.
5689 (alpha_store_return_value): Likewise.
5691 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5692 (alpha_store_return_value): Error on IEEE Quad floats.
5694 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5695 (alpha_extract_struct_value_address): Likewise.
5696 (alpha_store_return_value): Likewise.
5697 (alpha_store_struct_return): Remove.
5698 (alpha_gdbarch_init): Update hook registration to match.
5700 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5701 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5702 macros where appropriate.
5703 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5704 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5706 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5707 for SP, GP; void_func_ptr for PC; non-language-specific types
5709 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5711 2003-06-02 Richard Henderson <rth@redhat.com>
5713 * top.h (lim_at_start): Declare.
5714 * main.c (captured_main): Set it.
5715 * top.c (lim_at_start): Define.
5716 (command_loop): Use it instead of &environ.
5717 * event-top.c (command_handler): Likewise.
5719 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5721 * mipsnbsd-tdep.c: Update copyright years.
5722 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5724 2003-06-01 Richard Henderson <rth@redhat.com>
5726 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5727 (alpha-linux-tdep.o): Update dependencies.
5728 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5729 * alpha-mdebug-tdep.c: Remove unneeded includes.
5731 2003-06-01 Richard Henderson <rth@redhat.com>
5733 * alpha-tdep.c (alpha_register_reggroup_p): New.
5734 (alpha_gdbarch_init): Register it.
5736 2003-06-02 Andrew Cagney <cagney@redhat.com>
5738 * dwarfread.c: Eliminate "register"
5739 (decode_die_type): Eliminate assignment within "if".
5740 (struct_type, decode_array_element_type): Ditto.
5741 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5742 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5743 (decode_modified_type, completedieinfo): Ditto.
5744 * block.c: Eliminate "register".
5745 (blockvector_for_pc_sect): Eliminate assignment within "if".
5746 * cp-support.h (struct symbol): Opaque declaration.
5747 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5749 2003-06-01 Richard Henderson <rth@redhat.com>
5751 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5752 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5754 2003-06-01 Adam Fedor <fedor@gnu.org>
5756 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5757 * gdbarch.[ch]: Regenerate.
5758 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5759 (hppa_gdbarch_init): Set it in the gdbarch vector.
5760 * i386-tdep.c (i386_fetch_pointer_argument): New
5761 (i386_gdbarch_init): Set it into gdbarch.
5762 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5763 (rs6000_gdbarch_init): Set it in gdbarch.
5764 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5765 (sparc_gdbarch_init): Set it in gdbarch.
5767 2003-06-01 Andrew Cagney <cagney@redhat.com>
5769 * defs.h (extract_address): Delete declaration.
5770 * findvar.c (extract_address): Delete function.
5771 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5772 extract_address with the inline equivalent,
5773 extract_unsigned_integer.
5774 (xstormy16_extract_struct_value_address): Ditto.
5775 (xstormy16_pointer_to_address): Ditto.
5776 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5777 * v850-tdep.c (v850_push_arguments): Ditto.
5778 (v850_extract_return_value): Ditto.
5779 (v850_extract_struct_value_address): Ditto.
5780 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5781 (sparcnbsd_get_longjmp_target_64): Ditto.
5782 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5783 (get_longjmp_target): Ditto.
5784 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5785 (sh64_extract_struct_value_address): Ditto.
5786 (sh_push_arguments): Ditto.
5787 (sh64_push_arguments): Ditto.
5788 * remote-vxsparc.c (vx_read_register): Ditto.
5789 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5790 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5791 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5792 * mipsv4-nat.c (get_longjmp_target): Ditto.
5793 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5794 * mips-nat.c (get_longjmp_target): Ditto.
5795 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5796 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5797 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5798 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5799 * irix5-nat.c (get_longjmp_target): Ditto.
5800 * irix4-nat.c (get_longjmp_target): Ditto.
5801 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5802 (ia64_push_arguments): Ditto.
5803 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5804 * h8300-tdep.c (h8300_push_arguments): Ditto.
5805 (h8300_store_return_value): Ditto.
5806 (h8300_extract_struct_value_address): Ditto.
5807 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5808 (frv_push_arguments): Ditto.
5809 * avr-tdep.c (avr_pointer_to_address): Ditto.
5810 (avr_push_arguments): Ditto.
5811 * arm-tdep.c (arm_push_dummy_call): Ditto.
5812 (arm_get_longjmp_target): Ditto.
5813 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5814 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5815 (alpha_get_longjmp_target): Ditto.
5817 * solib-irix.c (extract_mips_address): Inline extract_address,
5818 replacing it with extract_signed_integer.
5819 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5820 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5821 (first_link_map_member, open_symbol_file_object): Ditto.
5822 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5823 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5824 (LM_NEXT, LM_NAME): Ditto.
5826 2003-06-01 Richard Henderson <rth@redhat.com>
5828 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5829 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5830 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5831 (alpha_cannot_store_register): Likewise.
5832 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5833 * alpha-nat.c (supply_gregset): Likewise.
5834 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5836 2003-06-01 Andrew Cagney <cagney@redhat.com>
5838 * infcall.c (call_function_by_hand): Update comment on
5839 DEPRECATED_DUMMY_WRITE_SP.
5841 * mips-tdep.c (mips_gdbarch_init): Do not set
5842 deprecated_dummy_write_sp.
5843 (mips_eabi_push_dummy_call): Set the SP register.
5844 (mips_o64_push_dummy_call): Set the SP register.
5845 (mips_o32_push_dummy_call): Set the SP register.
5846 (mips_n32n64_push_dummy_call): Set the SP register.
5848 2003-06-01 Richard Henderson <rth@redhat.com>
5850 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5851 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5852 (supply_gregset): Likewise.
5853 * alpha-tdep.c (alpha_store_return_value): Likewise.
5854 (alpha_get_longjmp_target): Likewise.
5855 (alpha_register_name): Constify array.
5856 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5857 deprecated_register_size, deprecated_register_bytes,
5858 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5859 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5860 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5862 2003-06-01 Richard Henderson <rth@redhat.com>
5864 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5865 from arg_reg_buffer to regcache to avoid double conversion.
5867 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5869 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5871 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5872 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5874 2003-06-01 Richard Henderson <rth@redhat.com>
5876 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5877 (decode_frame_entry): Set it. Skip FDE augmentation.
5879 2003-06-01 Richard Henderson <rth@redhat.com>
5881 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5882 not overlapping PC_REGNUM.
5884 2003-06-01 Richard Henderson <rth@redhat.com>
5886 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5887 alpha_push_arguments. Don't dump argument register data to
5888 the target stack. Fix float and 128-bit long double semantics.
5889 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5890 (alpha_fix_call_dummy): Remove.
5891 (alpha_call_dummy_words): Remove.
5892 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5894 2003-06-01 Richard Henderson <rth@redhat.com>
5896 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5898 2003-06-01 Andrew Cagney <cagney@redhat.com>
5900 * mips-tdep.c (is_mips16_addr): New function.
5901 (make_mips16_addr, unmake_mips16_addr): New functions.
5902 (pc_is_mips16, mips_fetch_instruction): Use.
5903 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5904 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5905 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5906 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5908 * config/mips/tm-mips.h: Update copyright.
5909 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5910 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5911 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5912 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5913 (TM_PRINT_INSN_MACH): Delete.
5914 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5916 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5917 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5918 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5919 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5920 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5921 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5922 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5923 mips*-*-riscos* and mips*-*-sysv* onto mips.
5924 * config/mips/mips64.mt: New file.
5925 * config/mips/mips.mt: New file.
5926 * config/mips/littlemips.mt: Delete file.
5927 * config/mips/decstation.mt: Delete file.
5928 * config/mips/vr4300el.mt: Delete file.
5929 * config/mips/vr5000el.mt: Delete file.
5930 * config/mips/vr5000.mt: Delete file.
5931 * config/mips/vr4100.mt: Delete file.
5932 * config/mips/vr4xxxel.mt: Delete file.
5933 * config/mips/vr4300.mt: Delete file.
5934 * config/mips/vr4xxx.mt: Delete file.
5935 * config/mips/bigmips.mt: Delete file.
5936 * config/mips/bigmips64.mt: Delete file.
5937 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5938 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5939 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5940 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5941 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5943 * config/mips/tm-irix3.h: Ditto.
5944 * config/mips/tm-mipsv4.h: Ditto.
5945 * config/mips/tm-embed.h: Ditto.
5946 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5948 * config/mips/tm-vr5000el.h: Delete file.
5949 * config/mips/tm-tx39l.h: Delete file.
5950 * config/mips/tm-vr4300el.h: Delete file.
5951 * config/mips/tm-vr4xxxel.h: Delete file.
5952 * config/mips/tm-vr4300.h: Delete file.
5953 * config/mips/tm-vr4100.h: Delete file.
5954 * config/mips/tm-vr4xxx.h: Delete file.
5955 * config/mips/tm-vr5000.h: Delete file.
5956 * config/mips/tm-embedl64.h: Delete file.
5957 * config/mips/tm-embedl.h: Delete file.
5958 * config/mips/tm-embed64.h: Delete file.
5959 * config/mips/tm-bigmips64.h: Delete file.
5960 * config/mips/tm-bigmips.h: Delete file.
5962 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5965 * shnbsd-nat.c: Include "sh-tdep.h".
5967 From Richard Henderson <rth@redhat.com>:
5968 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5970 2003-05-31 Andrew Cagney <cagney@redhat.com>
5972 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5973 forward declaration.
5974 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5975 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5976 (mips_find_saved_regs): Use set_reg_offset.
5977 (mips_frame_init_saved_regs): Delete function.
5978 (mips_pop_frame): Call mips_find_saved_regs instead of
5979 DEPRECATED_FRAME_INIT_SAVED_REGS.
5981 2003-05-31 Andrew Cagney <cagney@redhat.com>
5983 * mips-tdep.c (mips_gdbarch_init): Do not set
5984 deprecated_max_register_raw_size, register_virtual_size, and
5985 deprecated_max_register_virtual_size.
5987 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5989 * i386-tdep.c: Include "dwarf2-frame.h".
5990 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5991 * Makefile.in (i386-tdep.o): Update dependencies.
5993 * dwarf2-frame.c, dwarf2-frame.h: New files.
5994 * Makefile.in (SFILES): Add dwarf2-frame.c.
5995 (dwarf2_frame_h): Define.
5996 (COMMON_OBS): Add dwarf2-frame.o.
5997 (dwarf2-frame.o): Add dependencies.
5999 2003-05-31 Andreas Jaeger <aj@suse.de>
6001 * x86-64-linux-nat.c: Fix comment.
6003 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6005 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6008 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6009 have a sigcontext_addr handler.
6010 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6011 sigcontext_addr handler.
6013 2003-05-31 Andrew Cagney <cagney@redhat.com>
6015 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6016 (print_fp_register_row): Replace do_fp_register_row.
6017 (mips_print_fp_register): Add "file" and "frame" parameters.
6018 (mips_print_register): Add "file" and "frame" parameters.
6019 (mips_print_registers_info): Replace mips_do_registers_info.
6020 (mips_gdbarch_init): Set print_registers_info instead of
6021 deprecated_do_registers_info.
6022 (mips_read_fp_register_single): Add "frame" parameter.
6023 (mips_read_fp_register_double): Add "frame" parameter.
6025 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6027 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6028 Fixes a bug where GDB would print the wrong register names for
6029 targets without SSE.
6031 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6032 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6035 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6036 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6037 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6040 From Michal Ludvig <mludvig@suse.cz>:
6041 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6043 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6044 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6045 I386_ST0_REGNUM): Move here from...
6046 * i386-tdep.c: ... here.
6047 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6048 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6049 registers if possible.
6050 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6051 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6053 (i386bsd_sc_reg_offset): New variable.
6054 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6055 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6057 (i386fbsd_sc_reg_offset): New variable.
6058 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6060 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6062 (i386fbsd4_sc_reg_offset): New variable.
6063 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6064 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6066 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6067 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6068 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6070 (i386nbsd_sc_reg_offset): New variable.
6071 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6072 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6074 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6076 (i386obsd_sc_reg_offset): New variable.
6077 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6078 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6080 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6081 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6082 for frame pointer offset in `struct sigcontext'.
6084 2003-05-31 Andrew Cagney <cagney@redhat.com>
6086 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6087 architecture methods call_dummy_words, sizeof_call_dummy_words,
6088 push_return_address, store_struct_return, and fix_call_dummy. Set
6089 push_dummy_call instead of deprecated_push_arguments.
6090 (mips_store_struct_return): Delete function.
6091 (mips_fix_call_dummy): Delete function.
6092 (mips_push_return_address): Delete function.
6093 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6094 RA_REGNUM and T9_REGNUM.
6095 (mips_n32n64_push_dummy_call): Ditto for
6096 mips_n32n64_push_arguments.
6097 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6098 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6100 2003-05-31 Andrew Cagney <cagney@redhat.com>
6102 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6103 "dummy_addr" to "bp_addr".
6104 * infcall.c (call_function_by_hand): Pass "funaddr" to
6105 gdbarch_push_dummy_call.
6106 * gdbarch.h, gdbarch.c: Re-generate.
6107 * i386-tdep.c (i386_push_dummy_call): Update.
6108 * arm-tdep.c (arm_push_dummy_call): Update.
6109 * d10v-tdep.c (d10v_push_dummy_call): Update.
6111 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6113 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6114 variable declarations.
6115 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6116 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6117 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6118 x86_64_init_frame_pc, x86_64_init_frame_pc,
6119 x86_64_function_has_prologue): Remove prototypes.
6120 (X86_64_NUM_GREGS): New define.
6121 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6122 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6123 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6124 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6125 XMM1_REGNUM): Remove defines.
6126 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6127 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6128 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6129 X86_64_XMM1_REGNUM): New defines.
6130 (struct x86_64_register_info): Renamed from `struct
6131 register_info'. Remove `size' member.
6132 (x86_64_register_info_table): Remove variable.
6133 (x86_64_register_info): New variable.
6134 (X86_64_NUM_REGS): New define.
6135 (X86_64_NUM_GREGS): Remove define.
6136 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6137 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6139 (x86_54_dwarf2_reg_to_regnum): Remove function.
6140 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6141 (x86_64_dwarf_reg_to_regnum): New function.
6142 (x86_64_register_name): Rewrite.
6143 (x86_64_register_raw_size): Remove function.
6144 (x86_64_register_byte_table): Remove variable.
6145 (x86_64_register_byte): Remove function.
6146 (x86_64_register_virtual_type): Remove function.
6147 (x86_64_register_type): New function.
6148 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6149 x86_64_register_convert_to_raw): Remove functions.
6150 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6151 (x86_64_use_struct_convention): Make static. Adjust for renamed
6153 (x86_64_frame_init_saved_regs): Remove function.
6154 (x86_64_push_arguments): Make static. Change to accept a regcache
6156 (x86_64_store_return_value, x86_64_extract_return_value): Make
6157 static. Rewrite based on i386 counterparts.
6158 (x86_64_push_dummy_call): New function.
6159 (X86_64_NUM_SAVED_REGS): New define.
6160 (x86_64_register_number): Remove function.
6161 (x86_64_store_struct_return): Remove function.
6162 (x86_64_frameless_function_invocation,
6163 x86_64_function_has_prologue): Remove functions.
6164 (PROLOG_BUFSIZE): Remove define.
6165 (struct x86_64_frame_cache): New structure.
6166 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6167 x86_64_frame_cache, x86_64_frame_this_id,
6168 x86_64_frame_prev_register, x86_64_frame_p,
6169 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6170 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6172 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6174 (x86_64_skip_prologue): Rewrite in terms of
6175 x86_64_analyze_prologue.
6176 (x86_64_frame_base_address): New function.
6177 (x86_64_frame_base): New variable.
6178 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6179 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6180 set deprecated_fp_regnum, deprecated_register_size,
6181 deprecated_register_bytes, register_raw_size, register_byte,
6182 register_virtual_type, register_convertiable,
6183 register_convert_to_virtual, convert_to_raw,
6184 deprecated_get_saved_register, deprecated_target_read_fp,
6185 deprecated_push_arguments, deprecated_push_return_address,
6186 deprecated_pop_frame, deprecated_store_struct_return,
6187 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6188 frameless_function_invocation, deprecated_frame_saved_pc,
6189 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6190 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6191 deprecated_init_frame_pc and virtual_frame_pointer. Call
6192 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6193 and x86_64_frame_p. Call frame_base_set_default to register
6195 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6196 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6197 (_initialize_x86_64_tdep): Remove function.
6198 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6199 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6200 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6202 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6203 (x86_64_linux_sigcontext_addr): Rewrite.
6204 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6205 x86_64_linux_frame_saved_pc): Remove functions.
6206 (x86_64_linux_pc_in_sigtramp): Renamed from
6207 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6209 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6211 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6212 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6213 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6214 (x86_64_regmap): Rename to regmap.
6215 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6217 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6219 (x86_64_fxsave_offset): Remove function.
6220 (supply_fpregset): Simply call x86_64_supply_fxsave.
6221 (fill_fpregset): Simply call x86_64_fill_fxsave.
6222 (fetch_inferior_registers, store_inferior_registers): Avoid
6223 asignment in if-statement.
6224 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6225 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6226 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6227 (fetch_core_registers): Remove function.
6228 (linux_elf_core_fns): Remove.
6229 (offsetoff): Don't define.
6230 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6231 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6232 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6234 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6235 protection against multiple includes instead of NM_X86_64_h. Add
6236 various comments. Include "config/nm-linux.h". Don't include
6238 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6239 GET_THREAD_SIGNALS): Remove defines.
6240 (x86_64_register_u_addr, kernel_u_size,
6241 lin_thread_get_thread_signals): Remove prototypes.
6242 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6243 [HAVE_LINK_H]: Don't include "solib.h".
6244 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6245 * config/i386/tm-x86-64linux.h: Fix comments.
6246 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6247 x86-64-tdep.o): Update dependencies.
6249 2003-05-30 Andrew Cagney <cagney@redhat.com>
6251 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6252 Change parameter type to a "struct regcache *".
6254 * gdbarch.sh: Regardless of the multi-arch level, always define
6255 the macro when not already defined.
6256 * gdbarch.h, gdbarch.c: Re-generate.
6258 2003-05-30 Richard Henderson <rth@redhat.com>
6260 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6261 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6262 (alpha_mdebug_frame_this_id): Likewise.
6263 (alpha_mdebug_frame_prev_register): Likewise.
6264 (alpha_mdebug_frame_base_address): Likewise.
6265 (alpha_mdebug_frame_locals_address): Likewise.
6266 (alpha_mdebug_frame_args_address): Likewise.
6267 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6268 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6269 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6271 (alpha_heuristic_frame_this_id): Make static.
6272 (alpha_heuristic_frame_prev_register): Likewise.
6273 (alpha_heuristic_frame_base_address): Likewise.
6274 * alpha-tdep.h: Update.
6276 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6278 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6279 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6281 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6282 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6283 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6284 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6285 I386_ST0_REGNUM): New defines.
6286 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6287 codestream_get): Remove define.
6288 (codestream_next_addr, condestream_addr, condestream_buf,
6289 codestream_off, codestream_cnt): Remove variables.
6290 (codestream_fill, codestream_seek, codestream_read): Remove
6292 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6294 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6295 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6296 i386_frame_saved_pc, i386_saved_pc_after_call,
6297 i386_frame_num_args, i386_frame_init_saved_regs,
6298 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6299 i386_push_arguments): Remove functions.
6300 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6301 functionality. Use i386_analyze_prologue instead of
6302 i386_get_frame_setup.
6303 (I386_NUM_SAVED_REGS): New define.
6304 (struct i386_frame_cache): New structure.
6305 (i386_alloc_frame_cache, i386_analyze_struct_return,
6306 i386_skip_probe, i386_analyze_frame_setup,
6307 i386_analyze_register_saves, i386_analyze_prologue,
6308 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6309 i386_frame_prev_register, i386_sigtramp_frame_cache,
6310 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6311 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6312 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6314 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6316 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6317 I386_EAX_REGNUM and I386_EDX_REGNUM.
6318 (i386_extract_return_value, i386_store_return_value): Use
6319 I386_ST0_REGNUM where appropriate.
6320 (i386_extract_struct_value_address): Rewrite to use extract_address.
6321 (i386_svr4_pc_in_sigtramp): Add comment.
6322 (i386_svr4_sigcontext_addr): Rewrite.
6323 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6325 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6326 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6327 of new defines. Set push_dummy_call, don't set
6328 deprecated_push_arguments, deprecated_push_return_address,
6329 deprecated_pop_frame. Don't set parm_boundary. Don't set
6330 deprecated_frame_chain, deprecated_frame_saved_pc,
6331 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6332 save_dummy_frame_tos, unwind_pc. Call
6333 frame_unwind_append_predicate and frame_base_set_default. Don't
6334 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6335 Don't set frameless_function_invocation. Don't set
6336 deprecated_register_bytes, deprecated_register_size,
6337 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6338 * i386-linux-tdep.c: Fix formatting in some comments.
6339 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6340 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6341 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6342 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6343 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6344 redundant parentheses.
6345 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6346 (i386_linux_sigcontext_addr): Use it. Rewrite.
6347 (find_minsym_and_objfile): Change name of second argument.
6348 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6349 changed. Use frame_pc_unwind instead of
6350 DEPRECATED_SAVED_PC_AFTER_CALL.
6351 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6352 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6353 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6355 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6357 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6358 (_initialize_i386_cygwin_tdep): New prototype.
6359 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6360 deprecated_frame_chain_valid.
6361 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6362 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6363 Rely on the SVR4 defaults.
6364 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6365 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6367 2003-05-30 Andrew Cagney <cagney@redhat.com>
6369 * infcall.c (call_function_by_hand): Always call
6370 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6372 2003-05-30 Richard Henderson <rth@redhat.com>
6374 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6377 2003-05-29 Jim Blandy <jimb@redhat.com>
6379 Use gdbarch methods for solib stuff on PowerPC Linux.
6380 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6381 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6383 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6384 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6385 giving the same effect as the #definitions above.
6387 2003-05-29 Adam Fedor <fedor@gnu.org>
6389 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6390 (find_implementation_from_class): Replace it with the standard
6391 case i.e. do nothing.
6393 2003-05-29 Richard Henderson <rth@redhat.com>
6395 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6396 (alpha_linux_sigtramp_offset): Use it. Make static.
6397 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6398 update for new frame model.
6399 * alpha-mdebug-tdep.c: New file.
6400 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6401 (alpha_osf1_init_abi): Install it.
6402 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6403 (linked_proc_desc_table): Remove.
6404 (alpha_frame_past_sigtramp_frame): Remove.
6405 (alpha_dynamic_sigtramp_offset): Remove.
6406 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6407 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6408 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6409 (push_sigtramp_desc): Remove.
6410 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6411 (alpha_cannot_store_register): Likewise.
6412 (alpha_sigcontext_addr): Remove.
6413 (alpha_find_saved_regs): Remove.
6414 (alpha_frame_init_saved_regs): Remove.
6415 (alpha_init_frame_pc_first): Remove.
6416 (read_next_frame_reg): Remove.
6417 (alpha_frame_saved_pc): Remove.
6418 (alpha_saved_pc_after_call): Remove.
6419 (temp_proc_desc, temp_saved_regs): Remove.
6420 (alpha_about_to_return): Remove.
6421 (cached_proc_desc): Remove.
6422 (alpha_frame_chain): Remove.
6423 (alpha_print_extra_frame_info): Remove.
6424 (alpha_init_extra_frame_info): Remove.
6425 (alpha_frame_locals_address): Remove.
6426 (alpha_frame_args_address): Remove.
6427 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6428 (alpha_push_dummy_frame): Remove.
6429 (alpha_pop_frame): Remove.
6430 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6431 (alpha_read_insn): New.
6432 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6433 for different insn encodings.
6434 (alpha_in_lenient_prologue): Remove.
6435 (struct alpha_sigtramp_unwind_cache): New.
6436 (alpha_sigtramp_frame_unwind_cache): New.
6437 (alpha_sigtramp_register_address): New.
6438 (alpha_sigtramp_frame_this_id): New.
6439 (alpha_sigtramp_frame_prev_register): New.
6440 (alpha_sigtramp_frame_unwind): New.
6441 (alpha_sigtramp_frame_p): New.
6442 (struct alpha_heuristic_unwind_cache): New.
6443 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6444 don't count nop insns that occur between functions.
6445 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6446 heuristic_proc_desc, but without the mdebug wrapping.
6447 (alpha_heuristic_frame_this_id): New.
6448 (alpha_heuristic_frame_prev_register): New.
6449 (alpha_heuristic_frame_unwind): New.
6450 (alpha_heuristic_frame_p): New.
6451 (alpha_heuristic_frame_base_address): New.
6452 (alpha_heuristic_frame_base): New.
6453 (alpha_unwind_dummy_id): New.
6454 (alpha_unwind_pc): New.
6455 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6456 frame related deprecated initializations; install replacements.
6457 (alpha_dump_tdep): Remove.
6458 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6459 (alpha_read_insn, alpha_after_prologue,
6460 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6461 alpha_heuristic_frame_prev_register,
6462 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6463 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6464 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6465 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6467 2003-05-29 Andrew Cagney <cagney@redhat.com>
6469 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6470 dependant on the availability of ASSERT_FUNCTION.
6471 (ASSERT_FUNCTION): Do not define when there is no function name.
6473 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6475 From Jimi X <jimix@watson.ibm.com>:
6476 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6478 2003-05-28 Jim Blandy <jimb@redhat.com>
6480 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6481 argument to ptrace to int; the system headers should give it the
6482 right type, and pointers don't fit in ints on powerpc64-*-*.
6484 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6486 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6489 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6491 * stabsread.c (dbx_lookup_type): Make static.
6493 (add_undefined_type): Ditto.
6494 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6497 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6499 * hpread.c (hpread_has_name): Make static.
6500 (hpread_psymtab_to_symtab): Ditto.
6501 (file_exists): Ditto.
6502 (hpread_call_pxdb): Ditto.
6503 (hpread_pxdb_needed): Ditto.
6504 (hpread_quick_traverse): Ditto.
6505 (hpread_get_header): Ditto.
6506 (hpread_get_lntt): Ditto.
6507 (hpread_get_slt): Ditto.
6510 2003-05-25 Andreas Schwab <schwab@suse.de>
6512 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6513 stack_align and deprecated_extra_stack_alignment_needed.
6514 (m68k_stack_align): Delete.
6516 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6517 (m68k_register_virtual_size): Likewise.
6518 (altos_skip_prologue): Remove obsolete function.
6519 (isi_frame_num_args): Likewise.
6520 (news_frame_num_args): Likewise.
6521 (m68k_fix_call_dummy): Make static.
6522 (m68k_push_dummy_frame): Likewise.
6523 (m68k_pop_frame): Likewise.
6524 (m68k_skip_prologue): Likewise.
6525 (m68k_frame_init_saved_regs): Likewise.
6526 (m68k_saved_pc_after_call): Likewise.
6527 (m68k_get_longjmp_target): Make multi-arch.
6528 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6529 structure. Register m68k_get_longjmp_target if enabled.
6530 * m68k-tdep.h (struct gdbarch_tdep): Define.
6531 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6533 * Makefile.in (config.status): Also depend on configure.tgt
6535 (m68klinux-tdep.o): Update dependencies.
6536 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6537 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6538 (M68K_LINUX_JB_PC): Define.
6539 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6540 and take additional parameter.
6541 (m68k_linux_sigtramp_saved_pc): Update.
6542 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6543 m68k_linux_pc_in_sigtramp, in_plt_section,
6544 find_solib_trampoline_target.
6545 * config/m68k/tm-linux.h: Don't include any tm headers.
6546 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6547 (JB_ELEMENT_SIZE): Likewise.
6549 (GET_LONGJMP_TARGET): Likewise.
6550 (IN_SIGTRAMP): Likewise.
6551 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6553 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6555 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6556 (sparc32_push_arguments): Re-implement by calling
6557 sparc32_do_push_arguments.
6559 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6561 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6562 SPARC_O1_REGNUM): New defines.
6563 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6564 (sparc32_store_return_value): New function.
6565 (sparc_extract_struct_value_address): Rewrite to operate on a
6567 (sparc_gdbarch_init): Don't set
6568 deprecated_extract_struct_value_address. Set
6569 extract_struct_value_address instead. Don't set
6570 deprecated_extract_return_value and deprecated_store_return_value
6571 for 32-bit targets. Set extract_return_value and
6572 store_return_value instead.
6573 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6574 DEPRECTAED_EXTRACT_RETURN_VALUE,
6575 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6576 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6577 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6578 (sparc_store_return_value): Remove prototype.
6579 (sparc32_store_return_value): New prototype.
6580 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6583 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6585 * sparcnbsd-tdep.c: Include "gdb_string.h".
6587 2003-05-23 Andrew Cagney <cagney@redhat.com>
6589 * p-valprint.c (pascal_val_print): Replace extract_address with
6590 the inline equivalent extract_unsigned_integer.
6591 * jv-valprint.c (java_value_print): Ditto.
6592 * ada-valprint.c (ada_val_print_1): Ditto.
6593 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6595 2003-05-23 Theodore A. Roth <troth@openavr.org>
6597 * blockframe.c (frameless_look_for_prologue): Remove unused
6598 after_prologue variable.
6600 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6602 * blockframe.c (get_pc_function_start): Rewrite to avoid
6603 asignments in if-statements.
6605 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6607 Committed by Elena Zannoni <ezannoni@redhat.com>.
6608 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6609 files, don't relocate absolute symbols (and do use mst_abs).
6611 2003-05-23 Andrew Cagney <cagney@redhat.com>
6613 * objc-lang.c: Include "gdb_assert.h".
6614 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6615 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6616 (gdb_check, gdb_check_fatal): Delete functions.
6617 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6619 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6620 * Makefile.in (objc-lang.o): Update dependencies.
6622 2003-05-22 Ian Lance Taylor <ian@airs.com>
6624 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6625 with fprintf_filtered, not fprintf_unfiltered.
6627 2003-05-22 Andrew Cagney <cagney@redhat.com>
6629 * stack.c (frame_info): Inline extract_address, replacing it with
6630 extract_unsigned_integer.
6631 * findvar.c (unsigned_pointer_to_address): Ditto.
6632 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6633 * dwarf2expr.c (dwarf2_read_address): Ditto.
6634 * frame.c (frame_pc_unwind): Update comment.
6635 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6637 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6639 * infptrace.c (detach): Call print_sys_errmsg rather than
6640 perror_with_name to issue warning message when errno is non-zero
6641 after calling ptrace detach.
6643 2003-05-21 J. Brobecker <brobecker@gnat.com>
6645 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6646 macro definitions from here...
6647 * hppa-tdep.c: ...to there.
6649 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6651 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6652 register_ptrace_addr(). Fix all callers.
6654 2003-05-21 Andreas Schwab <schwab@suse.de>
6656 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6658 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6660 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6661 (_initialize_m68k_linux_tdep): New function.
6662 (m68k_linux_frame_saved_pc): Make static.
6663 (m68k_linux_extract_return_value): Likewise.
6664 (m68k_linux_store_return_value): Likewise.
6665 (m68k_linux_extract_struct_value_address): Likewise.
6666 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6668 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6669 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6670 (DEPRECATED_FRAME_SAVED_PC): Remove.
6672 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6674 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6675 regset numbering rather than our own.
6677 2003-05-19 David Carlton <carlton@bactrian.org>
6679 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6681 2003-05-19 David Carlton <carlton@bactrian.org>
6683 Partial fix for PR c++/827.
6684 * cp-support.h: Include symtab.h.
6685 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6686 * cp-namespace.c: Update contributors.
6687 (cp_lookup_symbol_nonlocal): New.
6688 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6689 (lookup_symbol_file): Ditto.
6690 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6691 * block.h: Declare block_scope, block_using, block_global_block.
6692 * block.c (block_scope): New.
6693 (block_using, block_global_block): Ditto.
6694 * Makefile.in (cp_support_h): Depend on symtab_h.
6695 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6697 2003-05-19 David Carlton <carlton@bactrian.org>
6699 * language.h (struct language_defn): Add 'la_value_of_this'
6700 and 'la_lookup_symbol_nonlocal' members.
6701 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6702 lookup_symbol_static, lookup_symbol_global,
6703 lookup_symbol_aux_block.
6704 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6705 if we should search fields of this and how to do static/global
6707 (lookup_symbol_aux_block): Make extern.
6708 (basic_lookup_symbol_nonlocal): New.
6709 (lookup_symbol_static, lookup_symbol_global): Ditto.
6710 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6711 'la_lookup_symbol_nonlocal' members.
6712 * c-lang.c (c_language_defn, cplus_language_defn)
6713 (asm_language_defn, minimal_language_defn): Ditto.
6714 * jv-lang.c (java_language_defn): Ditto.
6715 * language.c (unknown_language_defn, auto_language_defn)
6716 (local_language_defn): Ditto.
6717 * m2-lang.c (m2_language_defn): Ditto.
6718 * objc-lang.c (objc_language_defn): Ditto.
6719 * scm-lang.c (scm_language_defn): Ditto.
6720 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6721 * p-lang.c (pascal_language_defn): Ditto for both.
6722 * Makefile.in (f-lang.o): Depend on value_h.
6725 2003-05-19 David Carlton <carlton@bactrian.org>
6727 * block.h: Declare block_static_block.
6728 * block.c (block_static_block): New.
6729 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6730 lookup_symbol_aux_local, calling block_static_block instead.
6731 (lookup_symbol_aux_local): Delete 'static_block' argument.
6733 2003-05-19 David Carlton <carlton@bactrian.org>
6735 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6737 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6739 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6740 register numbers mapping.
6742 2003-05-18 Adam Fedor <fedor@gnu.org>
6744 * symtab.c (completion_list_objc_symbol): New function.
6745 (make_symbol_completion_list): Use it to add ObjC symbols
6746 when looking though the list.
6747 (language_search_unquoted_string): New function.
6748 (make_file_symbol_completion_list): Use it.
6750 2003-05-18 Andreas Schwab <schwab@suse.de>
6752 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6754 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6755 as m68k_linux_extract_return_value.
6756 (DEPRECATED_STORE_RETURN_VALUE): Define as
6757 m68k_linux_store_return_value.
6758 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6759 m68k_linux_extract_struct_value_address.
6760 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6761 get_next_frame, get_frame_base, get_frame_pc.
6762 (m68k_linux_frame_saved_pc): Use get_frame_base.
6763 (m68k_linux_extract_return_value): New function.
6764 (m68k_linux_store_return_value): New function.
6765 (m68k_linux_extract_struct_value_address): New function.
6766 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6768 * c-exp.y (typebase): Remove duplicate occurence of
6769 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6770 of lookup_signed_typename.
6772 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6774 * dwarf2loc.c (find_location_expression): Change type of second
6775 argument to `size_t *'.
6776 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6779 2003-05-18 David Carlton <carlton@bactrian.org>
6781 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6782 'linkage_name'. Add comment.
6783 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6785 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6786 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6787 (lookup_block_symbol): Ditto.
6789 2003-05-16 Andrew Cagney <cagney@redhat.com>
6791 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6792 * gdbarch.h, gdbarch.c: Re-generate.
6793 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6794 * TODO (REGISTER_BYTES): Delete reference.
6795 * alpha-tdep.c (alpha_gdbarch_init): Update.
6796 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6797 * x86-64-tdep.c (x86_64_init_abi): Update.
6798 * vax-tdep.c (vax_gdbarch_init): Update.
6799 * v850-tdep.c (v850_gdbarch_init): Update.
6800 * sparc-tdep.c (sparc_gdbarch_init): Update.
6801 * sh-tdep.c (sh_gdbarch_init): Update.
6802 * s390-tdep.c (s390_gdbarch_init): Update.
6803 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6804 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6805 (ns32k_gdbarch_init_32382): Update.
6806 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6807 * mcore-tdep.c (mcore_gdbarch_init): Update.
6808 * m68k-tdep.c (m68k_gdbarch_init): Update.
6809 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6810 * ia64-tdep.c (ia64_gdbarch_init): Update.
6811 * i386-tdep.c (i386_gdbarch_init): Update.
6812 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6813 * hppa-tdep.c (hppa_gdbarch_init): Update.
6814 * h8300-tdep.c (h8300_gdbarch_init): Update.
6815 * frv-tdep.c (frv_gdbarch_init): Update.
6816 * cris-tdep.c (cris_gdbarch_init): Update.
6817 * avr-tdep.c (avr_gdbarch_init): Update.
6818 * arm-tdep.c (arm_gdbarch_init): Update.
6819 * sparc-tdep.c (sparc_pop_frame): Update.
6820 * rs6000-tdep.c (rs6000_pop_frame): Update.
6821 * remote.c (init_remote_state): Update.
6822 (remote_prepare_to_store): Update.
6823 * remote-vx.c (vx_prepare_to_store): Update.
6824 * remote-sds.c (sds_fetch_registers): Update.
6825 (sds_prepare_to_store): Update.
6826 * remote-array.c: Update.
6827 * regcache.c (init_legacy_regcache_descr): Update.
6828 (init_regcache_descr): Update.
6829 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6830 (mips_o64_extract_return_value): Update.
6831 * irix5-nat.c (fetch_core_registers): Update.
6832 * irix4-nat.c (fetch_core_registers): Update.
6833 * i386-tdep.h: Update.
6834 * hppa-tdep.c (pa_do_registers_info): Update.
6835 (pa_do_strcat_registers_info): Update.
6836 * cris-tdep.c (cris_register_bytes_ok): Update.
6837 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6838 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6839 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6840 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6841 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6842 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6843 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6844 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6845 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6846 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6847 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6848 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6849 (REGISTER_BYTES_OK): Update.
6850 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6851 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6853 2003-05-16 Ian Lance Taylor <ian@airs.com>
6855 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6856 (vax_print_insn, print_insn_arg): Remove static functions.
6857 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6858 print_insn_vax from opcodes library.
6859 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6861 2003-05-15 Andrew Cagney <cagney@redhat.com>
6863 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6864 * target.h (memory_breakpoint_from_pc): Delete declaration.
6865 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6866 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6867 * monitor.c (monitor_insert_breakpoint): Use
6868 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6869 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6870 * gdbarch.h, gdbarch.c: Re-generate.
6871 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6872 (sparc_gdbarch_init): Set breakpoint_from_pc to
6873 sparc_breakpoint_from_pc.
6874 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6875 (BREAKPOINT_FROM_PC): Define.
6876 (sparc_breakpoint_from_pc): Declare.
6877 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6878 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6879 (BREAKPOINT_FROM_PC): Define.
6880 (BREAKPOINT): Delete macro.
6881 * target.h: Update comment.
6882 * s390-tdep.c (s390_gdbarch_init): Update comments.
6883 * remote.c: Update comments.
6884 * remote-mips.c: Update comments.
6885 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6886 * mem-break.c: Update comment.
6887 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6888 (ia64_memory_insert_breakpoint): Update.
6889 * config/sparc/tm-sparc.h: Update comment.
6890 * config/pa/tm-hppa64.h: Update comment.
6891 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6892 (rs6000_breakpoint_from_pc): Update.
6893 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6894 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6895 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6896 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6897 (mips_breakpoint_from_pc): Update.
6898 (mips_dump_tdep): Update.
6900 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6901 * minsyms.c (lookup_minimal_symbol): Inline
6902 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6904 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6905 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6906 * p-lang.c (pascal_printstr): Ditto.
6907 * objc-lang.c (objc_printstr): Ditto.
6908 * m2-lang.c (m2_printstr): Ditto.
6909 * jv-valprint.c (java_print_value_fields): Ditto.
6910 * f-lang.c (f_printstr): Ditto.
6911 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6912 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6913 for repeat_count_threshold.
6914 * Makefile.in (cp-valprint.o): Update dependencies.
6916 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6918 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6919 (examine_prologue): Support looking through leaf functions, knowing
6920 they start with mov r2,r12. Support skipping over indirect stores
6921 of the input registers. Upon hitting a non-nop branch instruction
6922 or predicated instruction, bail out by setting lim_pc to the current
6923 pc value in the loop. At the end, if the lim_pc value is still
6924 beyond our calculated value and we have trust_limit set,
6925 use the lim_pc value.
6927 2003-05-15 Andrew Cagney <cagney@redhat.com>
6929 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6930 generic_find_dummy_frame.
6931 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6932 (deprecated_generic_find_dummy_frame): Update.
6933 (deprecated_read_register_dummy): Update.
6934 * frame.c (deprecated_generic_get_saved_register): Update.
6936 2003-05-15 Theodore A. Roth <troth@openavr.org>
6938 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6939 (avr_gdbarch_init): Set breakpoint_from_pc method.
6941 2003-05-15 Andrew Cagney <cagney@redhat.com>
6943 * regcache.c (build_regcache): Set deprecated_register_valid
6945 (deprecated_grub_regcache_for_register_valid): Delete function.
6946 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6949 2003-05-15 David Carlton <carlton@bactrian.org>
6951 Committed by Elena Zannoni <ezannoni@redhat.com>
6952 * symtab.c (lookup_symbol_aux): Delete calls to
6953 lookup_symbol_aux_minsyms.
6954 (lookup_symbol_aux_minsyms): Comment out function and
6955 prototype. Delete lookup by mangled name.
6957 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6959 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6960 correctly indicate an empty stack and ``stack_allocated'' to the
6961 indicate the number of elements initially allocated.
6962 (dwarf_expr_grow_stack): Simplify method for computing new
6963 stack size. Don't loop infinitely if ``stack_len'' is zero.
6964 (execute_stack_op): Move ``ctx->in_reg'' initialization
6965 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6966 be used in conjuction with DW_OP_piece. Revise error message
6969 2003-05-14 Theodore A. Roth <troth@openavr.org>
6971 * MAINTAINERS: Update my email address.
6972 * avr-tdep.c: Ditto.
6974 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6976 * symtab.h (enum domain_enum): Rename from namespace_enum.
6977 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6978 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6979 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6980 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6981 TYPES_NAMESPACE, METHODS_NAMESPACE.
6982 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6983 (struct symbol, struct partial_symbol): Rename field
6984 'namespace_enum namespace' to 'domain_enum domain'.
6985 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6986 Delete old define kludge for namespace.
6988 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6989 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6990 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6991 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6992 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6993 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6994 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6995 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6996 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6997 occurrences of the above.
6999 2003-05-14 Ian Lance Taylor <ian@airs.com>
7001 * Makefile.in (install-only): Use $(SHELL) when running
7004 2003-05-13 Ian Lance Taylor <ian@airs.com>
7006 * MAINTAINERS (write after approval): Add myself.
7008 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7009 second and third arguments.
7010 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7011 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7013 2003-05-13 Andrew Cagney <cagney@redhat.com>
7015 * defs.h (store_address): Delete declaration.
7016 findvar.c (store_address): Delete function.
7017 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7018 store_unsigned_integer.
7019 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7020 * v850-tdep.c (v850_push_arguments): Ditto.
7021 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7022 * sh-tdep.c (sh64_get_saved_register): Ditto.
7023 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7024 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7025 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7026 (mips_get_saved_register): Ditto.
7027 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7028 (find_func_descr, ia64_push_arguments): Ditto.
7029 * i386-tdep.c (i386_push_arguments): Ditto.
7030 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7031 * frv-tdep.c (frv_push_arguments): Ditto.
7032 * frame.c (legacy_saved_regs_prev_register): Ditto.
7033 (deprecated_generic_get_saved_register): Ditto.
7034 * findvar.c (unsigned_address_to_pointer): Ditto.
7035 * dwarf2read.c (dwarf2_const_value): Ditto.
7036 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7037 * alpha-tdep.c (alpha_push_arguments): Ditto.
7039 2003-05-12 J. Brobecker <brobecker@gnat.com>
7041 * NEWS: Mention that the hppa-hpux port has been partially
7042 multiarched (32bit ABIT only, so far).
7044 2003-05-11 Andrew Cagney <cagney@redhat.com>
7046 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7047 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7048 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7049 sim/testsuite/sim/arm/misaligned2.ms, and
7050 sim/testsuite/sim/arm/misaligned3.ms.
7051 * disasm.h (struct ui_file): Add opaque struct declaration.
7052 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7053 * frame.h (struct ui_file): Ditto.
7055 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7057 * value.h: Pretty print.
7059 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7061 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7063 2003-05-08 Andrew Cagney <cagney@redhat.com>
7065 * regcache.h (max_register_size): Delete declaration.
7066 * regcache.c (max_register_size): Delete function.
7067 (struct regcache_descr): Delete field "max_register_size".
7068 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7069 registers fit in MAX_REGISTER_SIZE.
7070 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7071 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7072 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7073 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7074 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7075 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7076 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7077 * dve3900-rom.c, hppa-tdep.c: Ditto.
7079 2003-05-08 David Carlton <carlton@math.stanford.edu>
7081 * valops.c (push_word): Fix typo.
7083 2003-05-08 Andrew Cagney <cagney@redhat.com>
7085 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7086 * gdbarch.h: Re-generate.
7087 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7088 (legacy_max_register_raw_size): Delete declaration.
7089 * regcache.c (legacy_max_register_raw_size): Delete function.
7090 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7091 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7092 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7093 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7094 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7095 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7096 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7097 * findvar.c, dwarf2cfi.c: Ditto.
7099 2003-05-08 Andrew Cagney <cagney@redhat.com>
7101 * mips-tdep.c (read_signed_register): New function, moved to here
7103 (read_signed_register_pid): Ditto.
7104 * regcache.c (read_signed_register_pid): Delete function, moved to
7106 (read_signed_register): Ditto.
7107 * regcache.h (read_signed_register): Delete declaration.
7108 (read_signed_register_pid): Delete declaration.
7110 2003-05-08 Andrew Cagney <cagney@redhat.com>
7112 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7113 * gdbarch.h: Re-generate.
7114 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7115 (legacy_max_register_virtual_size): Delete declaration.
7116 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7117 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7118 * tracepoint.c (memrange_sortmerge): Ditto.
7119 * sparc-tdep.c (sparc_print_registers): Ditto.
7120 * regcache.c (legacy_max_register_virtual_size): Delete function.
7122 2002-05-08 J. Brobecker <brobecker@gnat.com>
7124 * fork-child.c (escape_bang_in_quoted_argument): New function.
7125 (fork_inferior): Escape '!' characters in quoted arguments
7128 2003-05-08 J. Brobecker <brobecker@gnat.com>
7130 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7131 the language of the CU is not currently supported by GDB.
7133 2003-05-08 J. Brobecker <brobecker@gnat.com>
7135 * defs.h (language): Add language_minimal enum value.
7136 * c-lang.c (minimal_language_defn): New language definition.
7137 (_initialize_c_language): Add the new minimal language to the list
7138 of languages known to GDB.
7140 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7142 * frame.c (get_frame_type): Don't attempt to lazily initialize
7143 frame's unwinder for legacy frames.
7145 2003-05-07 Andrew Cagney <cagney@redhat.com>
7147 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7148 and "regcache" parameters.
7149 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7151 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7153 * dwarf2read.c (dwarf_decode_lines): Only use output of
7154 check_cu_functions() when calling record_line(). Do not update
7155 the current address.
7157 2003-05-07 Andrew Cagney <cagney@redhat.com>
7159 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7162 2003-05-07 Jim Blandy <jimb@redhat.com>
7164 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7165 'maint info symtabs' and 'maint info psymtabs'.
7166 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7167 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7168 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7169 Declarations updated.
7170 * maint.c (maintenance_list_command): Delete.
7171 (_initialize_maint_cmds): Update calls to add_cmd.
7172 * gdbcmd.h (maintenancelistlist): Delete declaration.
7173 * cli/cli-cmds.c (maintenancelistlist): Delete.
7174 (init_cmd_lists): Don't initialize it.
7175 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7177 2003-05-07 Andrew Cagney <cagney@redhat.com>
7179 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7181 (d10v_print_registers_info): Update.
7182 (d10v_dmap_register, d10v_imap_register): Delete functions.
7183 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7184 and "imap_register".
7185 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7186 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7187 * arch-utils.c (generic_remote_translate_xfer_address): Add
7188 "regcache" and "gdbarch" parameters.
7189 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7190 parameter. Change class to multi-arch.
7191 * gdbarch.h, gdbarch.c: Re-generate.
7192 * remote.c (remote_xfer_memory): Use
7193 gdbarch_remote_translate_xfer_address.
7195 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7197 * infrun.c (prev_pc): Move declaration ahead of proceed().
7198 (proceed): Refresh prev_pc value before resuming.
7199 (stop_stepping): Remove code to refresh prev_pc.
7201 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7203 * nto-tdep.c: Removed stray comment.
7205 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7207 * i386-nto-tdep.c: Fix old K&R function definitions.
7208 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7209 Also change add_show_from_set() call to add_setshow_cmd().
7210 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7212 2003-05-05 Andrew Cagney <cagney@redhat.com>
7214 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7215 (fprint_dummy_frames): New function.
7216 (maintenance_print_dummy_frames): New function.
7217 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7218 * frame.c (fprint_frame_id): Make global.
7219 * frame.h (fprint_frame_id): Declare.
7220 * Makefile.in (dummy-frame.o): Update dependencies.
7222 2003-05-05 Andrew Cagney <cagney@redhat.com>
7224 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7225 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7226 SIZEOF_CALL_DUMMY_WORDS.
7227 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7228 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7229 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7230 CALL_DUMMY_BREAKPOINT_OFFSET.
7231 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7232 CALL_DUMMY_START_OFFSET.
7233 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7234 * gdbarch.h, gdbarch.c: Re-generate.
7235 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7236 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7237 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7238 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7239 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7240 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7241 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7242 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7243 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7244 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7245 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7246 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7247 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7248 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7249 * config/sparc/tm-sparc.h: Update.
7251 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7253 * configure.tgt: Add i[3456]86-*-nto*.
7254 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7255 * nto-tdep.c: New file. Neutrino target support routines.
7256 * nto-tdep.h: New file. Neutrino target header.
7257 * config/tm-qnxnto.h: New file.
7258 * config/i386/i386nto.mt: New file.
7259 * config/i386/tm-i386nto.h: New file.
7261 2003-05-04 Andrew Cagney <cagney@redhat.com>
7263 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7264 (load_infrun_state): Ditto.
7265 (struct thread_info): Drop "prev_func_name" field.
7266 * thread.c (load_infrun_state): Update.
7267 (save_infrun_state): Update.
7268 * infrun.c (prev_func_name): Delete variable.
7269 (init_wait_for_inferior): Do not clear prev_func_name.
7270 (stop_stepping, keep_going, context_switch): Do not swap
7272 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7273 instead of PC_IN_SIGTRAMP.
7275 2003-05-04 Andrew Cagney <cagney@redhat.com>
7277 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7278 REGISTER_BYTE with register_offset_hack.
7279 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7280 that REGISTER_BYTE is consistent with the regcache.
7281 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7282 * gdbarch.h, gdbarch.c: Regenerate.
7284 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7286 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7287 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7289 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7291 2003-05-03 J. Brobecker <brobecker@gnat.com>
7293 From Thierry Schneider <tpschneider1@yahoo.com>
7294 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7295 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7296 (mi-cmd-symbol.o): Add rule.
7298 2003-05-03 Andrew Cagney <cagney@redhat.com>
7300 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7301 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7302 * gdbarch.h, gdbarch.c: Re-generate.
7303 * d10v-tdep.c (d10v_push_dummy_code): New function.
7304 (d10v_gdbarch_init): Set push_dummy_code.
7305 * infcall.c (legacy_push_dummy_code): New function.
7306 (generic_push_dummy_code): New function.
7307 (push_dummy_code): New function.
7308 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7309 instead of dummy_addr, to push_dummy_call. Move call to
7310 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7312 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7314 2003-05-03 Andrew Cagney <cagney@redhat.com>
7316 * disasm.h (print_insn): Declare.
7317 * disasm.c (init_gdb_disassemble_info): New function.
7318 (gdb_disassembly): Call init_gdb_disassemble_info.
7319 (gdb_print_insn): New function.
7320 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7321 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7322 * mcore-tdep.c: Include "disasm.h"
7323 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7324 * d10v-tdep.c: Include "disasm.h".
7325 (display_trace): Call gdb_print_insn, instead of print_insn.
7326 (print_insn): Delete function.
7327 * printcmd.c: Include "disasm.h".
7328 (print_insn): Delete function.
7329 (print_formatted): Call gdb_print_insn, instead of print_insn.
7330 * Makefile.in (printcmd.o): Update dependencies.
7331 (mcore-tdep.o, d10v-tdep.o): Ditto.
7333 2003-05-02 Andrew Cagney <cagney@redhat.com>
7335 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7336 PC_REGNUM, re-indent.
7337 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7338 PC_REGNUM isn't set.
7340 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7341 * gdbarch.h, gdbarch.c: Re-generate.
7342 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7343 register_virtual_size, pc_regnum, or register_bytes.
7344 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7345 (d10v_register_type): Use D10V_PC_REGNUM.
7346 (d10v_print_registers_info, d10v_read_pc): Ditto.
7347 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7348 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7350 2003-05-02 David Carlton <carlton@bactrian.org>
7352 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7353 the name with mstrsave.
7355 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7357 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7358 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7359 (host_charset_name, target_charset_name): New vars for use by
7361 (host_charset_enum, target_charset_enum): New enums for set/show
7363 (set_charset_sfunc, set_host_charset_sfunc,
7364 set_target_charset_sfunc): New functions.
7365 (set_host_charset, set_target_charset): Make static.
7366 (list_charsets, set_host_charset_command,
7367 set_target_charset_command): Delete functions.
7368 (show_charset_command): Rewrite as....
7369 (show_charset): Hook this up with the set/show command mechanism.
7370 (_initialize_charset): Change names of charsets to match the
7371 set/show enums. Use host_charset_name and target_charset_name.
7372 Use set/show mechanism for charset, host-charset, target-charset
7373 commands. Do not make 'show host-charset' and 'show
7374 target-charset' be aliases of 'show charset'.
7376 * charset.h (set_host_charset, set_target_charset): Don't export,
7377 they are not used outside the file.
7379 2003-05-01 Andrew Cagney <cagney@redhat.com>
7381 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7382 (gdb_disassembly): Make "di" non static, always initialize and
7383 cleanup. Always use dis_asm_read_memory.
7384 (gdb_dis_asm_read_memory): Delete function.
7386 2003-05-01 Andrew Cagney <cagney@redhat.com>
7388 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7389 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7391 2003-04-30 Andrew Cagney <cagney@redhat.com>
7393 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7394 "tm_print_insn_info".
7395 (TARGET_PRINT_INSN_INFO): Delete macro.
7396 (dis_asm_read_memory): Delete function declaration.
7397 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7398 (tm_print_insn_info): Delete variable definition.
7399 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7400 * gdbarch.h, gdbarch.c: Re-generate.
7401 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7402 "deprecated_tm_print_insn_info".
7403 * mcore-tdep.c (mcore_dump_insn): Ditto.
7404 * mips-tdep.c (mips_gdbarch_init): Ditto.
7405 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7406 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7407 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7408 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7409 instead of TARGET_PRINT_INSN_INFO, add comment.
7410 * s390-tdep.c (s390_get_frame_info): Instead of
7411 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7412 (s390_check_function_end, s390_is_sigreturn): Ditto.
7413 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7414 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7415 * disasm.c: Include "gdbcore.h".
7416 (_initialize_disasm): New function, initialize
7417 "deprecated_tm_print_insn_info".
7418 (deprecated_tm_print_insn_info): New variable.
7419 (dis_asm_read_memory): Moved from "corefile.c", made static.
7420 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7421 * Makefile.in (disasm.o): Update dependencies.
7423 2003-04-30 Andrew Cagney <cagney@redhat.com>
7425 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7427 2003-04-29 Adam Fedor <fedor@gnu.org>
7429 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7430 * infcall.c (find_function_addr): Make non-static.
7431 * infcall.h (find_function_addr): Declare.
7432 * Makefile.in (eval.o): Update dependencies.
7434 2003-04-28 Adam Fedor <fedor@gnu.org>
7436 * symtab.c (symbol_find_demangled_name): Check for and demangle
7438 (symbol_init_demangled_name): Init for language_objc as well.
7440 2003-04-28 Andrew Cagney <cagney@redhat.com>
7442 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7443 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7444 * gdbarch.h, gdbarch.c: Re-generate.
7445 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7446 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7447 * inferior.h (deprecated_read_fp): Rename read_fp.
7448 (generic_target_read_fp): Delete declaration.
7449 * regcache.c (generic_target_read_fp): Delete function.
7450 (deprecated_read_fp): Replace read_fp, use
7451 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7452 * d10v-tdep.c (d10v_read_fp): Delete function.
7453 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7455 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7456 deprecated_target_read_fp to generic_target_read_fp.
7457 * sh-tdep.c (sh_gdbarch_init): Ditto.
7458 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7460 * frv-tdep.c (frv_gdbarch_init): Ditto.
7462 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7463 deprecated_fp_regnum.
7464 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7465 * vax-tdep.c (vax_gdbarch_init): Ditto.
7466 * v850-tdep.c (v850_gdbarch_init): Ditto.
7467 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7468 * sh-tdep.c (sh_gdbarch_init): Ditto.
7469 * s390-tdep.c (s390_gdbarch_init): Ditto.
7470 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7471 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7472 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7473 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7475 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7476 * i386-tdep.c (i386_gdbarch_init): Ditto.
7477 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7478 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7479 * frv-tdep.c (frv_gdbarch_init): Ditto.
7480 * cris-tdep.c (cris_gdbarch_init): Ditto.
7481 * avr-tdep.c (avr_gdbarch_init): Ditto.
7482 * arm-tdep.c (arm_gdbarch_init): Ditto.
7483 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7485 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7486 * v850-tdep.c (v850_gdbarch_init): Ditto.
7487 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7488 * sh-tdep.c (sh_gdbarch_init): Ditto.
7489 * s390-tdep.c (s390_gdbarch_init): Ditto.
7490 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7491 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7492 * mips-tdep.c (mips_gdbarch_init): Ditto.
7493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7494 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7495 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7496 * frv-tdep.c (frv_gdbarch_init): Ditto.
7497 * avr-tdep.c (avr_gdbarch_init): Ditto.
7498 * arm-tdep.c (arm_gdbarch_init): Ditto.
7500 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7501 DEPRECATED_FP_REGNUM.
7502 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7503 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7504 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7505 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7506 (sparc32_register_virtual_type): Ditto.
7507 * sh-tdep.c (sh64_frame_chain): Ditto.
7508 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7509 (sh_nofp_frame_init_saved_regs): Ditto.
7510 (sh64_nofp_frame_init_saved_regs): Ditto.
7511 (sh_fp_frame_init_saved_regs): Ditto.
7512 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7513 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7514 * procfs.c (procfs_fetch_registers): Ditto.
7515 (procfs_store_registers): Ditto.
7516 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7517 (store_inferior_registers, fetch_core_registers): Ditto.
7518 (fetch_kcore_registers, clear_regs): Ditto.
7519 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7520 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7521 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7522 * nlm/i386.c (do_status): Ditto.
7523 * mipsv4-nat.c (supply_gregset): Ditto.
7524 * mips-tdep.c: Ditto for comments.
7525 * mips-nat.c (fetch_inferior_registers): Ditto.
7526 (store_inferior_registers, fetch_core_registers): Ditto.
7527 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7528 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7529 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7530 (i386_do_pop_frame, i386_register_type): Ditto.
7531 * hppa-tdep.c (hppa_frame_chain): Ditto.
7532 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7533 (hppa_pop_frame, hppa_read_fp): Ditto.
7534 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7535 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7536 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7537 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7538 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7539 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7540 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7541 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7542 * blockframe.c: Ditto for comments.
7543 * arch-utils.h: Ditto for comments.
7544 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7545 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7546 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7547 * alpha-tdep.h: Ditto for comments.
7548 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7549 (alpha_cannot_store_register): Ditto.
7550 (alpha_push_dummy_frame): Ditto.
7551 * alpha-nat.c (supply_gregset): Ditto.
7553 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7554 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7555 * config/sparc/tm-sparc.h: Update comment.
7557 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7558 deprecated_read_fp instead of TARGET_READ_FP.
7559 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7560 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7561 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7562 deprecated_read_fp instead of read_fp.
7563 * s390-tdep.c (s390_push_arguments): Ditto.
7564 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7565 * frame.h: Ditto in comments.
7566 * frame.c (legacy_get_prev_frame): Ditto.
7567 * dummy-frame.c (dummy_frame_this_id): Ditto.
7568 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7570 2003-04-28 Andrew Cagney <cagney@redhat.com>
7572 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7573 * gdbarch.h, gdbarch.c: Re-generate.
7574 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7575 * vax-tdep.c (_initialize_vax_tdep): Update.
7576 * v850-tdep.c (_initialize_v850_tdep): Update.
7577 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7578 * s390-tdep.c (_initialize_s390_tdep): Update.
7579 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7580 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7581 * mips-tdep.c (_initialize_mips_tdep): Update.
7582 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7583 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7584 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7585 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7586 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7587 * frv-tdep.c (_initialize_frv_tdep): Update.
7588 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7589 (_initialize_cris_tdep): Update.
7590 * arch-utils.c (legacy_print_insn): Update.
7591 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7593 2003-04-26 Adam Fedor <fedor@gnu.org>
7595 * linespec.c (decode_objc): New function to decode ObjC calls
7596 (decode_line_1): Check for ObjC calls (using decode_objc)
7597 * Makefile (linespec.o): Update dependencies.
7599 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7601 * breakpoint.h (struct breakpoint_ops): New.
7602 (struct breakpoint): Add ops member.
7604 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7605 (mention): Use new breakpoint ops member.
7606 (set_raw_breakpoint): Initialize ops field to NULL.
7607 (print_exception_catchpoint, print_one_exception_catchpoint)
7608 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7609 (gnu_v3_exception_catchpoint_ops): New.
7610 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7612 2003-04-25 Adam Fedor <fedor@gnu.org>
7614 * Makefile.in (COMMON_OBS): Add objc-lang.o
7616 2003-04-25 Andrew Cagney <cagney@redhat.com>
7618 * d10v-tdep.c (print_insn): Delete function.
7619 (display_trace): Use TARGET_PRINT_INSN.
7620 (_initialize_d10v_tdep): Do not set tm_print_insn.
7621 (d10v_gdbarch_init): Set print_insn.
7623 2003-04-25 Andrew Cagney <cagney@redhat.com>
7625 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7626 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7627 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7628 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7629 (nr_dmap_regs, a0_regnum): ... new functions.
7630 (d10v_print_registers_info): Use a0_regnum, use register_size.
7631 (d10v_register_byte): Delete function.
7632 (d10v_register_raw_size): Delete function.
7633 (d10v_register_type): Use a0_regnum.
7634 (d10v_print_registers_info): Use a0_regnum.
7635 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7636 (d10v_gdbarch_init): Do not set register_byte or
7637 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7638 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7640 (trace_command): Use XCALLOC.
7641 (print_insn): Delete reference to tm_print_insn.
7642 (saved_regs_unwinder): Use store_unsigned_integer instead of
7644 * frame.h (FRAME_OBSTACK_CALLOC): Define
7646 2003-04-25 David Carlton <carlton@bactrian.org>
7648 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7650 2003-04-24 Adam Fedor <fedor@gnu.org>
7652 * objc-lang.c: Include "valprint.h"
7653 * Makefile.in (objc-lang.o): Update dependencies.
7655 2003-04-24 Adam Fedor <fedor@gnu.org>
7657 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7658 architecture dependant compilation and mark as unimplemented
7659 (until they get put in the gdbarch vector).
7661 2003-04-23 David Carlton <carlton@bactrian.org>
7663 * cp-support.c (cp_find_first_component): Accept 'operator' in
7666 2003-04-23 Andrew Cagney <cagney@redhat.com>
7668 * infcall.c (call_function_by_hand): Eliminate redundant
7669 indentation. Move "saved_async" and "old_cleanups" to where they
7672 2003-04-23 Andrew Cagney <cagney@redhat.com>
7674 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7675 and "buffer". Move the "name" code to where it is needed.
7677 2003-04-23 Andrew Cagney <cagney@redhat.com>
7679 * infcall.c (call_function_by_hand): Move variables "start_sp",
7680 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7681 code to ON_STACK switch branch.
7683 2003-04-23 Andrew Cagney <cagney@redhat.com>
7685 * infcall.c (call_function_by_hand): Make declaration of "i",
7686 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7689 2003-04-23 Andrew Cagney <cagney@redhat.com>
7691 * infcall.c (call_function_by_hand): Delete variable
7692 "n_method_args". Localize "param_type"'s declaration to the loop
7693 that it is used. Reinstate code assigning to said variable -
7694 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7695 Rationalize code using "param_type".
7697 2003-04-22 Andrew Cagney <cagney@redhat.com>
7699 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7700 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7701 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7702 to DEPRECATED_PUSH_RETURN_ADDRESS.
7704 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7706 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7707 on the DWARF2 register number prior to fetching a register.
7709 2003-04-22 J. Brobecker <brobecker@gnat.com>
7711 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7712 Update all the tests using SOFT_FLOAT considering the fact that
7713 this macro was always set to 0.
7714 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7715 considering the fact that this macro was always set to 0.
7716 * hppa-tdep.h (hppa_store_return_value): Likewise.
7717 (hppa_extract_return_value): Likewise.
7719 2003-04-22 J. Brobecker <brobecker@gnat.com>
7721 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7722 the hppa-pro target only.
7724 2003-04-21 J. Brobecker <brobecker@gnat.com>
7726 Ongoing multi-arch conversion effort for HP/UX:
7727 * config/pa/tm-hppa.h: Move all macro that are no longer
7728 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7729 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7731 2003-04-21 J. Brobecker <brobecker@gnat.com>
7733 * config/pa/tm-hppa.h: Obsolete a section that was only used
7736 2003-04-21 J. Brobecker <brobecker@gnat.com>
7738 Ongoing multi-arch conversion for HP/UX.
7739 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7740 if already defined (allows hppa64 to stay non-multiarched for now).
7741 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7743 2003-04-21 Andrew Cagney <cagney@redhat.com>
7745 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7747 2003-04-21 Andrew Cagney <cagney@redhat.com>
7749 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7750 "i386_num_mmx_regs".
7752 2003-04-21 Andrew Cagney <cagney@redhat.com>
7754 * infcall.c: New file.
7755 * infcall.h: New file.
7756 * valarith.c: Include "infcall.h".
7757 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7758 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7759 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7760 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7761 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7762 (SFILES): Add "infcall.c"
7763 (COMMON_OBS): Add "infcall.o".
7764 (infcall.o): Specify dependencies.
7765 * value.h (call_function_by_hand): Delete declaration.
7766 * inferior.h (run_stack_dummy): Delete declaration.
7767 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7768 (run_stack_dummy): Move to "infcall.c", merged into
7769 call_function_by_hand.
7770 * valops.c (call_function_by_hand): Moved to "infcall.c".
7771 (find_function_addr, value_arg_coerce): Ditto.
7772 (unwindonsignal_p, coerce_float_to_double): Ditto.
7773 (_initialize_valops): Move "set/show coerce-float-to-double", and
7774 "set/show unwindonsignal" commands to "infcall.c".
7775 * v850-tdep.c, target.h: Update comments.
7776 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7777 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7778 (sh64_init_extra_frame_info): Update comments.
7779 * mn10300-tdep.c: Update comments.
7780 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7781 * config/sparc/tm-sparc.h: Update comments.
7782 * breakpoint.h: Update comments.
7783 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7784 * arm-tdep.c: Update comment.
7786 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7788 * i386-tdep.c (i386_num_register_names): New variable.
7789 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7790 (MM0_REGNUM): Remove redundant parentheses in define.
7791 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7792 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7793 i386_mxcsr_regnum_p): Remove redundant parentheses.
7794 (i386_register_name): Use i386_num_register_names.
7796 * i386-tdep.c (i386_extract_return_value,
7797 i386_store_return_value): Correct check for availability of
7798 floating-point registers.
7800 * i386-tdep.c (i386_frame_num_args): Remove function.
7801 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7803 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7804 mmx_regnum_to_fp_regnum. Adjust all callers.
7806 * i386-tdep.c (i386_get_longjmp_target): Use
7807 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7808 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7811 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7813 * core-regset.c: Update comments to reflect reality. Re-order
7815 (fetch_core_registers): Use switch instead of if. Remove
7816 redundant prototype.
7818 2003-04-18 Jim Blandy <jimb@redhat.com>
7820 * s390-tdep.c (s390_frame_align): New function.
7821 (s390_gdbarch_init): Register it with the gdbarch object.
7823 2003-04-17 Richard Henderson <rth@redhat.com>
7825 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7827 2003-04-17 Michael Snyder <msnyder@redhat.com>
7828 Karen Bennet <bennet@redhat.com>
7830 Committed by Elena Zannoni <ezannoni@redhat.com>
7831 * gdb_gcore.sh: New script to create a core dump of a process.
7833 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7835 * values.c (value_being_returned): Don't fetch the return
7836 value if the return type is void.
7838 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7840 * thread-db.c: Reindented.
7842 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7844 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7845 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7872 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7874 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7875 the size of ``long double'' to 16, instead of 8.
7877 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7879 * i386-linux-nat.c: Add some whitespace to make things more
7881 (fetch_register, store_register, fetch_inferior_registers,
7882 store_inferior_registers): Get rid of assignment in if-statement.
7883 (store_register): Fix typo in error message.
7885 2003-04-16 Andrew Cagney <cagney@redhat.com>
7887 * utils.c (xmmalloc): Always allocate something, matches
7888 libiberty/xmalloc's semantics.
7889 (xmrealloc, xmcalloc): Ditto.
7891 2003-04-16 Andrew Cagney <cagney@redhat.com>
7893 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7895 (get_frame_type): Initialize unwind and type when needed.
7896 (get_frame_id, frame_register_unwind): Ditto.
7898 2003-04-16 Andrew Cagney <cagney@redhat.com>
7900 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7902 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7903 * sparcl-stub.c: Obsolete file.
7904 * config/sparc/tm-sparclet.h: Obsolete file.
7905 * sparclet-stub.c: Obsolete file.
7906 * sparclet-rom.c: Obsolete file.
7907 * sparcl-tdep.c: Obsolete file.
7908 * config/sparc/tm-sparclite.h: Obsolete file.
7909 * config/sparc/sparclite.mt: Obsolete file.
7910 * config/sparc/sparclet.mt: Obsolete file.
7911 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7912 sparc86x-*-* obsolete.
7914 2003-04-15 David Carlton <carlton@math.stanford.edu>
7916 * Makefile.in (SFILES): Add cp-namespace.c.
7917 (COMMON_OBS): Add cp-namespace.o.
7918 (block.o): Depend on gdb_obstack_h and cp_support_h.
7919 (buildsym.o): Depend on cp_support_h.
7920 (cp-namespace.o): New.
7921 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7922 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7923 (dwarf2read.o): Depend on cp_support_h.
7924 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7925 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7926 processing_current_namespace.
7927 (read_namespace): Update processing_current_namespace; check for
7928 anonymous namespaces.
7929 (dwarf2_name): New function.
7930 (dwarf2_extension): Ditto.
7931 * cp-support.h: Update copyright, contributors.
7932 Add inclusion guards.
7933 Add opaque declaration for structs obstack, block, symbol.
7934 (struct using_direct): New struct.
7935 Add declarations for cp_find_first_component,
7936 cp_entire_prefix_len, processing_has_namespace_info,
7937 processing_current_namespace, cp_is_anonymous,
7938 cp_add_using_directive, cp_initialize_namespace,
7939 cp_finalize_namespace, cp_set_block_scope,
7940 cp_scan_for_anonymous_namespaces.
7941 * cp-namespace.c: New file.
7942 * cp-support.c: Update copyright.
7943 Include ctype.h, gdb_assert.h, gdbcmd.h.
7944 New variable maint_cplus_cmd_list.
7945 (cp_find_first_component): New function.
7946 (cp_entire_prefix_len, maint_cplus_command)
7947 (first_component_command, _initialize_cp_support): Ditto.
7948 * buildsym.c: Include cp-support.h.
7949 New variable using_list.
7950 (add_symbol_to_list): Check for anonymous namespaces.
7951 (finish_block): Set block's scope.
7952 (start_symtab): Initialize C++ namespace support.
7953 (end_symtab): Finalize C++ namespace support.
7954 * block.h: Add opaque declarations for structs
7955 block_namespace_info, using_direct, and obstack.
7956 Add declarations for block_set_scope and block_set_using.
7957 (struct block): Add 'language_specific' member.
7958 (BLOCK_NAMESPACE): New macro.
7959 * block.c: Include gdb_obstack.h and cp-support.h.
7960 (struct block_namespace_info): New struct.
7961 (block_set_scope): New function.
7962 (block_set_using, block_initialize_namespace): Ditto.
7964 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7966 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7967 (locate_base): Return early if there aren't any link map offsets.
7968 (svr4_solib_create_inferior_hook): Warn if shared library support
7971 2003-04-14 David Carlton <carlton@math.stanford.edu>
7973 * symtab.c (symbol_set_names): Add prefix when storing Java names
7974 in hash table. Fix for PR java/1039.
7976 2003-04-14 David Carlton <carlton@math.stanford.edu>
7978 * symtab.c (symbol_set_names): Rename 'name' arg to
7979 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7980 * symtab.h: Change 'name' argument in declaration of
7981 symbol_set_names to 'linkage_name'.
7982 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7984 2003-04-14 Andrew Cagney <cagney@redhat.com>
7986 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7987 return the fully sign-extended register value.
7988 (get_frame_pointer): Ditto.
7989 (mips_pop_frame): Initialize "proc_desc" after checking for a
7992 2003-04-14 Andrew Cagney <cagney@redhat.com>
7994 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7995 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7996 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7997 (mips_push_register): Delete function.
7998 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8001 2003-04-14 Jim Blandy <jimb@redhat.com>
8003 * symmisc.c: #include "gdb_regex.h".
8004 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8006 * maint.c (maintenance_list_command): New function.
8007 (_initialize_maint_cmds): Register the above as commands.
8008 * symtab.h (maintenance_list_symtabs,
8009 maintenance_list_psymtabs): New declarations.
8010 * cli/cli-cmds.c (maintenancelistlist): New variable.
8011 (init_cmd_lists): Initialize it.
8012 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8013 * gdbcmd.h (maintenancelistlist): New declaration.
8014 * Makefile.in (symmisc.o): Update dependencies.
8016 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8018 * s390-nat.c: Include asm/types.h for addr_t.
8020 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8022 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8023 actually incoming type.
8025 2003-04-13 Andrew Cagney <cagney@redhat.com>
8027 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8028 get_next_frame and get_frame_saved_regs.
8030 2003-04-13 Andrew Cagney <cagney@redhat.com>
8032 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8033 of gdbarch_num_regs.
8035 2003-04-13 Andrew Cagney <cagney@redhat.com>
8037 * frame.h: Mention what replaced what in "struct frame_info".
8038 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8039 deprecated_update_frame_base_hack and
8040 deprecated_update_frame_pc_hack.
8041 * hppa-tdep.c: Ditto.
8043 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8045 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8046 to read_reg and update its comment. Remove regnum member.
8047 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8048 Don't call read_reg when setting in_reg. Call read_reg to get
8049 the frame base if it's in a register. Return the register number
8050 on the stack instead of in the context. Remove extra arguments
8052 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8053 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8054 the register number on the expression stack.
8055 (needs_frame_read_reg): Remove extra arguments.
8057 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8059 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8061 (execute_stack_op): All callers updated.
8062 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8063 * dwarf2loc.c (find_location_expression): New function.
8064 (dwarf_expr_frame_base): Call it.
8065 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8066 (dwarf2_tracepoint_var_ref): New function, broken out from
8067 locexpr_tracepoint_var_ref.
8068 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8070 (loclist_read_variable, loclist_read_needs_frame): New functions.
8071 (loclist_describe_location, loclist_tracepoint_var_ref): New
8073 (dwarf2_loclist_funcs): New struct location_funcs.
8074 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8075 (struct dwarf2_locexpr_baton): Add comments.
8076 (dwarf2_loclist_funcs): New extern.
8077 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8078 base_address and base_known.
8079 (dwarf_loc_buffer): New variable.
8080 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8081 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8082 (dwarf2_has_info): Initialize dwarf_loc_offset.
8083 (dwarf2_build_psymtabs): Read in .debug_loc.
8084 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8086 (psymtab_to_symtab_1): Likewise. Move base address calculation
8088 (dwarf2_get_pc_bounds): ... here. Use the base address from
8090 (dwarf2_symbol_mark_computed): Handle location lists.
8092 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8094 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8095 if the linkage name demangled successfully.
8097 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8099 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8100 disassmbly_flavour): Removed.
8102 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8104 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8106 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8108 2003-04-12 Andrew Cagney <cagney@redhat.com>
8110 * frame.h (struct frame_info): Move definition from here ...
8111 * frame.c (struct frame_info): ... to here.
8113 2003-04-12 Andrew Cagney <cagney@redhat.com>
8115 * gdbthread.h (save_infrun_state): Delete parameter
8117 (struct thread_info): Delete field "prev_func_start".
8118 (load_infrun_state): Ditto.
8119 * thread.c (load_infrun_state, save_infrun_state): Update.
8120 * infrun.c (prev_func_start): Delete variable.
8121 (context_switch, init_wait_for_inferior): Update.
8122 (stop_stepping, keep_going): Update.
8124 2003-04-12 Andrew Cagney <cagney@redhat.com>
8126 * gdbarch.sh: Add missing opaque declarations.
8127 * gdbarch.h: Regnerate.
8128 * symtab.h: Add missing opaque declarations.
8129 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8130 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8131 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8132 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8133 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8134 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8135 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8136 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8137 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8138 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8139 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8140 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8141 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8143 2003-04-11 Andrew Cagney <cagney@redhat.com>
8145 * frame.c (get_frame_id): Return this frame's "id".
8146 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8148 (legacy_saved_regs_this_id): Replace function body with
8150 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8151 FRAME_OBSTACK_ZALLOC.
8152 (create_new_frame): Mark the frame ID as valid.
8154 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8156 * Makefile.in (libbfd_h): Added missing setting.
8157 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8158 according to the selected ABI.
8160 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8162 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8164 2003-04-11 Andrew Cagney <cagney@redhat.com>
8166 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8167 SAVED_PC_AFTER_CALL.
8168 * gdbarch.h, gdbarch.c: Regenerate.
8169 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8170 * x86-64-tdep.c (x86_64_init_abi): Update.
8171 * vax-tdep.c (vax_gdbarch_init): Update.
8172 * v850-tdep.c (v850_gdbarch_init): Update.
8173 * sparc-tdep.c (sparc_gdbarch_init): Update.
8174 * sh-tdep.c (sh_gdbarch_init): Update.
8175 * s390-tdep.c (s390_gdbarch_init): Update.
8176 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8177 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8178 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8179 * mips-tdep.c (mips_gdbarch_init): Update.
8180 * mcore-tdep.c (mcore_gdbarch_init): Update.
8181 * m68k-tdep.c (m68k_gdbarch_init): Update.
8182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8183 * ia64-tdep.c (ia64_gdbarch_init): Update.
8184 (ia64_saved_pc_after_call): Update declaration.
8185 * i386ly-tdep.c (i386lynx_init_abi): Update.
8186 * i386-tdep.c (i386_gdbarch_init): Update.
8187 * hppa-tdep.c (hppa_gdbarch_init): Update.
8188 * h8300-tdep.c (h8300_gdbarch_init): Update.
8189 * frv-tdep.c (frv_gdbarch_init): Update.
8190 * cris-tdep.c (cris_gdbarch_init): Update.
8191 * avr-tdep.c (avr_gdbarch_init): Update.
8192 * arm-tdep.c (arm_gdbarch_init): Update.
8193 * alpha-tdep.c (alpha_gdbarch_init): Update.
8194 * ns32knbsd-nat.c (frame_num_args): Update.
8195 * ns32k-tdep.c (umax_frame_num_args): Update.
8196 * mips-tdep.c (mips_init_frame_pc_first): Update.
8197 * infrun.c (step_over_function): Update.
8198 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8199 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8200 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8201 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8202 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8203 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8204 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8205 * arch-utils.c (init_frame_pc_default): Update.
8206 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8207 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8210 2003-04-11 Andrew Cagney <cagney@redhat.com>
8212 * i387-tdep.c: Update copyright.
8213 (i387_to_double): Delete function.
8214 (double_to_i387): Delete function.
8216 2003-04-10 Andrew Cagney <cagney@redhat.com>
8218 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8219 frame's function's address. Simplify.
8220 (d10v_frame_unwind_cache): Check that the frame's function is
8223 2003-04-10 Jim Blandy <jimb@redhat.com>
8225 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8226 call to set_gdbarch_deprecated_push_arguments.
8228 2003-04-10 Andrew Cagney <cagney@redhat.com>
8230 * frame.c (fprint_frame_id): New function.
8231 (fprint_frame_type, fprint_frame): New function.
8232 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8233 (create_sentinel_frame, get_frame_id): Ditto.
8234 (frame_id_p, frame_id_eq): Ditto.
8235 (frame_id_inner, create_new_frame): Ditto.
8236 (legacy_get_prev_frame, get_prev_frame): Ditto.
8237 (deprecated_update_frame_pc_hack): Ditto.
8238 (frame_register_unwind): Ditto.
8239 (deprecated_update_frame_base_hack): Ditto.
8241 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8243 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8244 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8245 frame_chain function.
8246 * Makefile.in: Add dependencies due to above change.
8248 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8250 * blockframe.c (legacy_frame_chain_valid): Move call to
8251 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8254 2003-04-09 Andrew Cagney <cagney@redhat.com>
8256 * frame.h (struct frame_id): Replace "pc" and "base" with
8257 "stack_addr" and "code_addr". Update comments.
8258 (frame_id_build): Update parameter names and comment.
8259 (struct frame_info): Replace "id_p" and "id" with "this_id".
8260 * dummy-frame.c (dummy_frame_this_id): Update.
8261 * breakpoint.c (print_one_breakpoint): Update.
8262 * frame.c (get_frame_id): Update.
8263 (get_frame_base, frame_id_build): Update.
8264 (create_sentinel_frame, legacy_get_prev_frame): Update.
8265 (deprecated_update_frame_base_hack): Update.
8266 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8267 (frame_id_inner): Ditto.
8269 2003-04-09 Andrew Cagney <cagney@redhat.com>
8271 * defs.h (gdb_print_host_address): Make "addr" parameter a
8273 * utils.c (gdb_print_host_address): Update.
8275 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8277 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8278 register number for R0 is 0.
8280 2003-04-09 J. Brobecker <brobecker@gnat.com>
8282 * frame.h (struct gdbarch): Add opaque structure definition
8283 to avoid a compilation warning on LynxOS 4.0.
8285 2003-04-09 Andrew Cagney <cagney@redhat.com>
8287 * frame.h (struct frame_info): Delete field "pc". Replace
8288 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8290 * frame.c (frame_pc_unwind): Update.
8291 (create_sentinel_frame): Do not set "pc".
8292 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8293 (get_frame_pc): Call frame_pc_unwind.
8294 (deprecated_update_frame_pc_hack): Update.
8295 (create_new_frame): Use "pc" not "->pc".
8297 2003-04-09 Andrew Cagney <cagney@redhat.com>
8299 * frame.c (get_frame_id): Eliminate code updating "frame".
8300 (legacy_get_prev_frame): Ditto.
8301 (get_frame_base): Return id.base directly.
8302 (deprecated_update_frame_base_hack): Update "id.base".
8303 * frame.h (struct frame_info): Delete field "frame".
8305 2003-04-09 Andrew Cagney <cagney@redhat.com>
8307 * NEWS: Mention that the "Sequent family" is obsolete.
8308 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8309 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8310 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8311 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8312 * config/i386/tm-ptx4.h: Obsolete file.
8313 * config/i386/tm-ptx.h: Obsolete file.
8314 * symm-tdep.c: Obsolete file.
8315 * config/i386/symmetry.mt: Obsolete file.
8316 * config/i386/tm-symmetry.h: Obsolete file.
8317 * symm-nat.c: Obsolete file.
8318 * config/i386/nm-symmetry.h: Obsolete file.
8319 * config/i386/xm-symmetry.h: Obsolete file.
8320 * config/i386/symmetry.mh: Obsolete file.
8321 * config/i386/nm-ptx4.h: Obsolete file.
8322 * config/i386/ptx4.mh: Obsolete file.
8323 * config/i386/ptx.mt: Obsolete file.
8324 * config/i386/ptx.mh: Obsolete file.
8325 * config/i386/xm-ptx4.h: Obsolete file.
8326 * config/i386/xm-ptx.h: Obsolete file.
8328 2003-04-09 Andrew Cagney <cagney@redhat.com>
8330 Obsolete mips*-*-mach3*.
8331 * NEWS: Mention that mips*-*-mach3* is obsolete.
8332 * m3-nat.c: Obsolete file.
8333 * config/nm-m3.h: Obsolete file.
8334 * config/mips/tm-mipsm3.h: Obsolete file.
8335 * config/mips/mipsm3.mt: Obsolete file.
8336 * config/mips/mipsm3.mh: Obsolete file.
8337 * config/mips/xm-mipsm3.h: Obsolete file.
8338 * mipsm3-nat.c: Obsolete file.
8339 * configure.host: Obsolete mips-dec-mach3*.
8340 * configure.tgt: Obsolete mips*-*-mach3*.
8342 2003-04-09 Andrew Cagney <cagney@redhat.com>
8344 * doublest.h: Update copyright.
8345 (deprecated_store_floating, deprecated_extract_floating): Rename
8346 store_floating and extract_floating. Update comments.
8347 * doublest.c: Update copyright.
8348 (extract_floating_by_length): Replace extract_floating.
8349 (store_floating_by_length): Replace store_floating.
8350 (deprecated_extract_floating): New function.
8351 (deprecated_store_floating): New function.
8352 (extract_typed_floating): Call extract_floating_by_length.
8353 (store_typed_floating): Call store_floating_by_length.
8354 * x86-64-tdep.c (x86_64_store_return_value): Update.
8355 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8356 (sh64_extract_return_value): Update.
8357 (sh_sh4_register_convert_to_virtual): Update.
8358 (sh_sh64_register_convert_to_virtual): Update.
8359 (sh_sh4_register_convert_to_raw): Update.
8360 (sh_sh64_register_convert_to_raw): Update.
8361 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8362 (rs6000_register_convert_to_raw): Update.
8363 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8364 (ia64_register_convert_to_raw): Update.
8365 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8366 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8367 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8368 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8369 (alpha_register_convert_to_raw): Update.
8371 2003-04-08 Andrew Cagney <cagney@redhat.com>
8373 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8374 * gdbarch.h, gdbarch.c: Re-generate.
8375 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8376 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8377 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8378 conditionally, use frame_pc_unwind as an alternative. Add
8380 * arch-utils.c (init_frame_pc_default): Only call
8381 SAVED_PC_AFTER_CALL when available.
8383 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8385 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8386 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8387 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8388 (start_remote): Ditto.
8389 (handle_inferior_event): Ditto.
8390 (save_inferior_status): Ditto.
8391 (restore_inferior_status): Ditto.
8392 * infcmd.c (attach_command): Ditto.
8393 * fork-child.c (startup_inferior): Ditto.
8394 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8395 * alpha-tdep.c (heuristic_proc_start): Ditto.
8396 * mips-tdep.c (heuristic_proc_start): Ditto.
8397 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8398 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8399 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8400 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8401 * remote-vx.c (vx_create_inferior): Ditto.
8403 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8405 * infrun.c (stop_soon_quietly): Make it an enum, to better
8406 override the default behavior of handle_inferior_event.
8407 (clear_proceed_status): Update uses of stop_soon_quietly to
8408 reflect that it is now an enum.
8409 (start_remote): Ditto.
8410 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8411 is set to handle the new GNU/Linux kernel behavior for
8412 attach/sigstop. Update uses of stop_soon_quietly.
8413 * inferior.h (enum stop_kind): New enum.
8414 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8415 Reset normal handle_inferior_event behavior, afterwards.
8416 * fork-child.c (startup_inferior): Update.
8417 * alpha-tdep.c (heuristic_proc_start): Update.
8418 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8419 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8420 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8421 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8422 * remote-vx.c (vx_create_inferior): Update.
8423 * mips-tdep.c (heuristic_proc_start): Update.
8425 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8427 * disasm.c (dump_insns): Move variables inside loop, or they will
8428 be freed more than once, causing wild memory corruptions.
8429 (gdb_disassembly): Look for the substring "-thread",
8430 instead of "-threads" in the target name, to make sure to find
8431 the 'multi-thread' target. Also, make sure we do the right thing
8432 with the "core" target.
8434 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8436 * mips-tdep.c (mips_print_fp_register): New function, created from
8437 do_fp_register_row(). Registers are now (also) printed as hex.
8438 Only one register is printed per row.
8439 (mips_print_register, do_fp_register_row): Print floating point
8440 registers with mips_print_fp_register().
8442 2003-04-06 Andrew Cagney <cagney@redhat.com>
8444 * valprint.h (inspect_it): Add extern declaration.
8445 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8446 (selectors_info, classes_info): Ditto.
8447 (find_objc_msgcall): Fix indentation.
8448 (objc_printstr): Delete extern declarations.
8450 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8452 2003-04-06 Andrew Cagney <cagney@redhat.com>
8454 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8456 * frame.c (legacy_saved_regs_this_id): Update.
8457 (legacy_get_prev_frame): Update.
8458 * xstormy16-tdep.c: Update comment.
8459 * sparc-tdep.c (sparc_frame_chain): Update comment.
8460 * blockframe.c (legacy_frame_chain_valid): Update.
8462 2003-04-06 Andrew Cagney <cagney@redhat.com>
8464 * valprint.c (val_print_type_code_int): Delete #ifdef
8465 PRINT_TYPELESS_INTEGER code.
8467 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8468 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8469 multi-arch definition.
8470 * gdbarch.h: Re-generate.
8472 2003-04-05 Andrew Cagney <cagney@redhat.com>
8474 Eliminate FRAME_FIND_SAVED_REGS.
8475 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8476 Change FSR parameter to a pointer.
8477 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8478 Assume FSR parameter is a pointer.
8479 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8481 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8482 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8483 saved_regs a pointer.
8484 (hppa_frame_saved_pc): Ditto.
8485 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8486 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8488 (restore_pc_queue): Make fsr a pointer.
8489 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8490 (hppa_frame_chain): Make saved_regs a pointer, call
8491 hppa_frame_init_saved_regs.
8492 * sparc-tdep.c: Include "gdb_assert.h".
8493 (sparc_frame_find_saved_regs): Replace internal_error with
8495 * remote-vxsparc.c (vx_read_register): Delete reference to
8496 FRAME_FIND_SAVED_REGS.
8497 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8498 * gdbarch.h: Regenerate.
8499 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8500 (deprecated_get_frame_saved_regs): Delete declaration.
8501 (struct frame_saved_regs): Delete definition.
8502 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8503 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8504 (hppa_frame_find_saved_regs): Delete declaration.
8505 (FRAME_FIND_SAVED_REGS): Delete macro.
8506 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8507 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8508 FRAME_FIND_SAVED_REGS in comment.
8510 2003-04-05 Andrew Cagney <cagney@redhat.com>
8512 * frame.c (frame_func_unwind, get_frame_func): New functions.
8513 * frame.h (get_frame_func, frame_func_unwind): Declare.
8514 (struct frame_info): Add field "prev_func" for caching the
8515 previous frame's function address.
8516 * arm-tdep.c (arm_frameless_function_invocation): Combine
8517 get_pc_function_start and get_frame_pc into get_frame_func.
8518 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8519 (sh64_nofp_frame_init_saved_regs): Ditto.
8520 * s390-tdep.c (s390_function_start): Ditto.
8521 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8522 (rs6000_frameless_function_invocation): Ditto.
8523 (rs6000_frame_saved_pc): Ditto.
8524 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8525 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8526 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8527 (i386_frame_init_saved_regs): Ditto.
8528 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8529 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8530 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8531 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8532 * blockframe.c (frameless_look_for_prologue): Ditto.
8534 2003-04-05 Andrew Cagney <cagney@redhat.com>
8536 * frame.c (legacy_get_prev_frame): Link prev to next at the
8537 function start. Update comments.
8539 2003-04-05 Andrew Cagney <cagney@redhat.com>
8541 * frame.c (get_frame_id): Update comment.
8542 (legacy_get_prev_frame): Update comment.
8543 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8544 * gdbarch.h: Regenerate.
8545 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8546 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8548 2003-04-05 Andrew Cagney <cagney@redhat.com>
8550 * stack.c (print_frame_info): Use get_frame_pc.
8552 2003-04-04 Andrew Cagney <cagney@redhat.com>
8554 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8555 the frame's type from the unwinder.
8556 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8557 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8558 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8559 (get_frame_base_address): Use get_frame_type.
8560 (get_frame_locals_address, get_frame_args_address): Ditto.
8561 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8562 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8563 (struct frame_info): Add comment explaining why the frame contains
8565 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8566 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8567 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8569 * frame-unwind.h: Include "frame.h".
8570 (struct frame_unwind): Add "type" field.
8571 * Makefile.in (frame_unwind_h): Add $(frame_h).
8573 2003-04-04 Andrew Cagney <cagney@redhat.com>
8575 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8576 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8577 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8579 (d10v_unwind_dummy_id): Use frame_id_build.
8580 * frame.c (find_frame_sal): Use get_frame_pc.
8581 (create_new_frame): Use deprecated_update_frame_pc_hack and
8582 deprecated_update_frame_base_hack.
8583 (create_sentinel_frame): Add comment about ->pc going away.
8584 (get_prev_frame): Add comment about ->pc going away.
8585 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8586 frame_id_build, deprecated_update_frame_pc_hack and
8587 deprecated_update_frame_base_hack.
8588 (select_frame): Use get_frame_pc.
8589 (legacy_saved_regs_this_id): Use frame_id_build.
8591 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8593 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8594 signed integer case.
8595 (classify_argument): Handle enumerations and references.
8597 2003-04-04 Andrew Cagney <cagney@redhat.com>
8599 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8602 2003-04-01 Adam Fedor <fedor@gnu.org>
8604 * gdb/objc-lang.c (selectors_info): Replace calls to
8605 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8606 SYMBOL_NATURAL_NAME.
8607 (classes_info, find_methods): Likewise.
8609 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8611 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8612 ``mach'' to the value determined by bfd_default_set_arch_mach().
8614 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8616 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8617 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8618 (mi-cmd-file.o): Update dependencies.
8620 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8622 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8623 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8625 2003-04-01 Adam Fedor <fedor@gnu.org>
8627 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8628 * language.h (struct language_defn): Add la_demangle.
8629 (language_demangle): Declare.
8630 * language.c (language_demangle): New function.
8631 (unk_lang_demangle): Likewise.
8632 (unknown_language_defn, auto_language_defn, local_language_defn):
8633 Add ukn_lang_demangle.
8634 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8635 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8636 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8637 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8638 * jv-lang.c (java_demangle): New function
8639 (java_language_defn): Use it for la_demangle element.
8640 * objc-lang.c (objc_demangle): Add options argument
8641 (objc_language_defn): Use objc_demangle for la_demangle element.
8642 * maint.c (maintenance_demangle): Replace switch with
8643 call to language_demangle.
8644 * utils.c (fprintf_symbol_filtered): Likewise.
8646 2003-04-01 Andrew Cagney <cagney@redhat.com>
8648 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8649 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8650 PRINT_TYPELESS_INTEGER.
8651 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8652 PUSH_RETURN_ADDRESS.
8654 2003-04-01 Andrew Cagney <cagney@redhat.com>
8656 * Makefile.in (d10v-tdep.o): Update dependencies.
8657 * d10v-tdep.c: Include "frame-base.h".
8658 (d10v_frame_unwind): Make constant.
8659 (d10v_frame_base_address): New function.
8660 (d10v_frame_base): New variable.
8661 (d10v_gdbarch_init): Set frame_base default.
8662 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8664 (d10v_frame_unwind_cache): Set and use "prev_sp".
8665 (d10v_frame_this_id): Use the previous frame's inner most stack
8666 address and this frame's func address for the frame ID. Use
8667 frame_id_build. Don't analyze beyond the current instruction.
8669 2003-04-01 Andrew Cagney <cagney@redhat.com>
8671 * frame.h (get_frame_locals_address, get_frame_args_address):
8672 Refer to the base address, instead of the address of the first
8675 2003-04-01 Andrew Cagney <cagney@redhat.com>
8677 Add frame debug info addresses:
8678 * frame-base.c: New file.
8679 * frame-base.h: New file.
8680 * frame.h (struct frame_base): Add opaque declaration.
8681 (get_frame_base): Update comment.
8682 (get_frame_base_address): Declare.
8683 (get_frame_locals_address): Declare.
8684 (get_frame_args_address): Declare.
8685 (struct frame_info): Add "base" and "base_cache". Update
8686 comments on the unwinder.
8687 * frame.c: Include "frame-base.h".
8688 (get_frame_locals_address): New function.
8689 (get_frame_base_address): New function.
8690 (get_frame_args_address): New function.
8691 * findvar.c (read_var_value): Use get_frame_locals_address and
8692 get_frame_args_address.
8693 * stack.c (frame_info): Use get_frame_locals_address and
8694 get_frame_args_address.
8695 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8696 moved to "frame-base.c".
8697 * printcmd.c (print_frame_nameless_args): Ditto.
8698 * symtab.h (address_class): Update comments.
8699 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8700 get_frame_base_address.
8701 * dwarf2expr.c (execute_stack_op): Ditto.
8702 * Makefile.in (frame_base_h): Define.
8703 (frame.o): Update dependencies.
8704 (frame-base.o): Add dependencies.
8705 (SFILES): Add frame-base.c.
8706 (COMMON_OBS): Add frame-base.o.
8708 2003-04-01 Andrew Cagney <cagney@redhat.com>
8710 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8711 CALL_DUMMY_LENGTH): Ditto.
8712 * gdbarch.c: Re-generate.
8713 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8714 (CALL_DUMMY_LENGTH): Delete macro.
8715 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8716 * arm-tdep.c (arm_gdbarch_init): Ditto.
8717 * avr-tdep.c (avr_gdbarch_init): Ditto.
8718 * cris-tdep.c (cris_gdbarch_init): Ditto.
8719 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8720 * frv-tdep.c (frv_gdbarch_init): Ditto.
8721 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8722 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8723 * i386-tdep.c (i386_gdbarch_init): Ditto.
8724 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8726 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8727 * mips-tdep.c (mips_gdbarch_init): Ditto.
8728 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8729 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8730 * s390-tdep.c (s390_gdbarch_init): Ditto.
8731 * sh-tdep.c (sh_gdbarch_init): Ditto.
8732 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8733 * v850-tdep.c (v850_gdbarch_init): Ditto.
8734 * vax-tdep.c (vax_gdbarch_init): Ditto.
8735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8737 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8739 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8741 2003-04-01 Andrew Cagney <cagney@redhat.com>
8743 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8744 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8745 * gdbarch.h, gdbarch.c: Re-generate.
8746 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8747 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8748 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8749 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8750 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8751 * infcmd.c (run_stack_dummy): Simplify assuming
8752 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8753 * infrun.c (handle_inferior_event): Ditto.
8754 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8755 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8756 * arm-tdep.c (arm_gdbarch_init): Ditto.
8757 * avr-tdep.c (avr_gdbarch_init): Ditto.
8758 * cris-tdep.c (cris_gdbarch_init): Ditto.
8759 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8760 * frv-tdep.c (frv_gdbarch_init): Ditto.
8761 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8762 * i386-tdep.c (i386_gdbarch_init): Ditto.
8763 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8765 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8766 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8767 * mips-tdep.c (mips_gdbarch_init): Ditto.
8768 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8769 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8770 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8771 * s390-tdep.c (s390_gdbarch_init): Ditto.
8772 * sh-tdep.c (sh_gdbarch_init): Ditto.
8773 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8774 * v850-tdep.c (v850_gdbarch_init): Ditto.
8775 * vax-tdep.c (vax_gdbarch_init): Ditto.
8776 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8778 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8780 * symfile.c (symfile_relocate_debug_section): Update call to
8781 bfd_simple_get_relocated_section_contents.
8783 2003-03-31 Andrew Cagney <cagney@redhat.com>
8785 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8786 * gdbarch.h, gdbarch.c: Regenerate.
8787 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8788 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8790 * frame.h (generic_fix_call_dummy): Delete declaration.
8791 * dummy-frame.h: Update comment.
8792 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8793 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8795 * sh-tdep.c (sh_gdbarch_init): Ditto.
8796 * s390-tdep.c (s390_gdbarch_init): Ditto.
8797 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8798 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8799 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8800 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8801 * i386-tdep.c (i386_gdbarch_init): Ditto.
8802 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8803 * frv-tdep.c (frv_gdbarch_init): Ditto.
8804 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8805 * cris-tdep.c (cris_gdbarch_init): Ditto.
8806 * avr-tdep.c (avr_gdbarch_init): Ditto.
8807 * arm-tdep.c (arm_gdbarch_init): Ditto.
8809 2003-03-31 J. Brobecker <brobecker@gnat.com>
8811 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8812 (INIT_FRAME_AP): Likewise.
8813 (EXTRA_FRAME_INFO): Likewise.
8815 2003-03-31 Andrew Cagney <cagney@redhat.com>
8817 * gdbarch.sh: Include "symfile.h".
8818 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8819 * gdbarch.h, gdbarch.c: Re-generate.
8820 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8822 call_dummy_address, the default is at entry_point_address.
8823 * v850-tdep.c (v850_gdbarch_init): Ditto.
8824 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8825 * sh-tdep.c (sh_gdbarch_init): Ditto.
8826 * s390-tdep.c (s390_gdbarch_init): Ditto.
8827 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8828 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8829 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8830 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8831 * i386-tdep.c (i386_gdbarch_init): Ditto.
8832 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8833 * frv-tdep.c (frv_gdbarch_init): Ditto.
8834 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8835 * cris-tdep.c (cris_gdbarch_init): Ditto.
8836 * arm-tdep.c (arm_gdbarch_init): Ditto.
8838 2003-03-31 Andrew Cagney <cagney@redhat.com>
8840 * gdbarch.sh (CALL_DUMMY_P): Delete.
8841 * gdbarch.h, gdbarch.c: Re-generate.
8842 * inferior.h (CALL_DUMMY_P): Delete macro.
8843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8844 * vax-tdep.c (vax_gdbarch_init): Update.
8845 * v850-tdep.c (v850_gdbarch_init): Update.
8846 * sparc-tdep.c (sparc_gdbarch_init): Update.
8847 * sh-tdep.c (sh_gdbarch_init): Update.
8848 * s390-tdep.c (s390_gdbarch_init): Update.
8849 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8850 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8851 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8852 * mips-tdep.c (mips_gdbarch_init): Update.
8853 * mcore-tdep.c (mcore_gdbarch_init): Update.
8854 * m68k-tdep.c (m68k_gdbarch_init): Update.
8855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8856 * ia64-tdep.c (ia64_gdbarch_init): Update.
8857 * i386-tdep.c (i386_gdbarch_init): Update.
8858 * h8300-tdep.c (h8300_gdbarch_init): Update.
8859 * frv-tdep.c (frv_gdbarch_init): Update.
8860 * d10v-tdep.c (d10v_gdbarch_init): Update.
8861 * cris-tdep.c (cris_gdbarch_init): Update.
8862 * breakpoint.c (deprecated_frame_in_dummy): Update.
8863 * avr-tdep.c (avr_gdbarch_init): Update.
8864 * alpha-tdep.c (alpha_gdbarch_init): Update.
8865 * arm-tdep.c (arm_gdbarch_init): Update.
8866 * dummy-frame.c (dummy_frame_this_id): Update comments.
8867 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8868 * frame.c (legacy_get_prev_frame): Ditto.
8869 * valops.c (call_function_by_hand): Delete function.
8870 (hand_function_call): Rename to call_function_by_hand
8872 2003-03-30 Andrew Cagney <cagney@redhat.com>
8874 2002-11-10 Klee Dienes <kdienes@apple.com>
8875 * value.h (struct value): Update comment.
8877 2003-03-30 Andrew Cagney <cagney@redhat.com>
8879 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8881 (d10v_gdbarch_init): Do not set fp_regnum.
8883 * frame.c (get_frame_base): Force ID initialization.
8884 (get_prev_frame): Move computation of the frame ID from here ...
8885 (get_frame_id): ... to here.
8886 (legacy_get_prev_frame): Mark the frame ID as valid.
8887 * frame.h (struct frame_info): Add field "id_p".
8889 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8891 * i386-tdep.c (i386_store_struct_return): Removed.
8892 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8894 2003-03-30 Andrew Cagney <cagney@redhat.com>
8896 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8897 * gdbarch.h, gdbarch.c: Regenerate.
8898 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8900 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8901 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8902 * i386-tdep.c (i386_gdbarch_init): Ditto.
8903 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8904 * cris-tdep.c (cris_gdbarch_init): Ditto.
8905 * vax-tdep.c (vax_gdbarch_init): Ditto.
8906 * s390-tdep.c (s390_gdbarch_init): Ditto.
8907 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8908 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8909 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8910 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8911 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8912 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8913 * sparc-tdep.c (sparc_gdbarch_init): Update.
8914 * sh-tdep.c (sh_gdbarch_init): Update.
8915 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8916 * mips-tdep.c (mips_gdbarch_init): Update.
8917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8918 * ia64-tdep.c (ia64_gdbarch_init): Update.
8919 * frv-tdep.c (frv_gdbarch_init): Update.
8920 * avr-tdep.c (avr_gdbarch_init): Update.
8921 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8922 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8923 instead of when push_dummy_call is not available.
8925 2003-03-30 Andrew Cagney <cagney@redhat.com>
8927 * infttrace.c: Include "gdbthread.h".
8928 (parent_attach_all): Fix function signature.
8929 (call_ptrace): Update call.
8930 * Makefile.in (infttrace.o): Update dependencies.
8932 2003-03-30 Andrew Cagney <cagney@redhat.com>
8934 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8935 PUSH_RETURN_ADDRESS.
8936 * gdbarch.h, gdbarch.c: Regenerate.
8937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8938 * x86-64-tdep.c (x86_64_init_abi): Update.
8939 * v850-tdep.c (v850_gdbarch_init): Update.
8940 * sparc-tdep.c (sparc_gdbarch_init): Update.
8941 * sh-tdep.c (sh_gdbarch_init): Update.
8942 * s390-tdep.c (s390_gdbarch_init): Update.
8943 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8944 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8945 * mips-tdep.c (mips_gdbarch_init): Update.
8946 * mcore-tdep.c (mcore_gdbarch_init): Update.
8947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8948 * ia64-tdep.c (ia64_gdbarch_init): Update.
8949 * i386-tdep.c (i386_gdbarch_init): Update.
8950 * h8300-tdep.c (h8300_gdbarch_init): Update.
8951 * frv-tdep.c (frv_gdbarch_init): Update.
8952 * cris-tdep.c (cris_gdbarch_init): Update.
8953 * avr-tdep.c (avr_gdbarch_init): Update.
8954 * arm-tdep.c (arm_gdbarch_init): Update.
8955 * valops.c (hand_function_call): Update.
8957 2003-03-29 Andrew Cagney <cagney@redhat.com>
8959 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8960 sizeof_call_dummy_words.
8961 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8963 * gdbarch.h: Regenerate.
8965 2003-03-29 Andrew Cagney <cagney@redhat.com>
8967 * infttrace.h: New file.
8968 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8969 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8970 (hpread_read_doc_function_type): Detect an initialized type1.
8971 (hpread_quick_traverse): Initialize mod_name_string.
8972 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8973 (som_solib_get_solib_by_pc): Declare.
8974 (so_lib_thread_start_addr): Declare.
8975 (no_shared_libraries): Declare.
8976 * somread.c (init_import_symbols): Make static. Add forward
8978 * config/pa/nm-hppah.h: Include "infttrace.h" for
8980 (hppa_insert_hw_watchpoint): Declare.
8981 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8982 * hppah-nat.c: Include "gdb_string.h".
8983 (parent_attach_all): Delete extern declaration, moved to
8985 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8987 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8988 * Makefile.in (infttrace_h): Define.
8989 (hpread.o): Update dependencies.
8990 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8991 * hppa-hpux-tdep.c: Include "gdb_string.h".
8992 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8993 * infrun.c (handle_inferior_event): Always initialize
8994 stepped_after_stopped_by_watchpoint. Add default and remove
8995 fallthrough in switch statement.
8996 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8998 (hppa_remove_hw_watchpoint): Ditto.
9000 2003-03-29 Andrew Cagney <cagney@redhat.com>
9002 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9005 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9007 * arm-tdep.c (arm_push_arguments): Delete.
9008 (struct stack_item): New type.
9009 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9010 (arm_store_struct_return): Delte.
9011 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9012 arm_push_arguments or arm_store_struct_return.
9014 2003-03-28 Andrew Cagney <cagney@redhat.com>
9016 * Makefile.in (d10v-tdep.o): Update dependencies.
9017 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9018 * d10v-tdep.c: Include "remote.h".
9019 (target_resume_hook): Delete extern declaration.
9020 (target_wait_loop_hook): Ditto.
9021 (tdisassemble_command): Eliminate assignment in "if" conditional.
9022 (d10v_ts2_register_sim_regno): Eliminate call to
9023 legacy_register_sim_regno.
9024 (d10v_ts3_register_sim_regno): Ditto.
9026 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9028 * thread.c: Reindented.
9030 * linux-proc.c: Ditto.
9032 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9034 * MAINTAINERS (write after approval): Add myself.
9036 2003-03-27 Theodore A. Roth <troth@openavr.org>
9038 * objc-exp.y: Add missing semi-colons.
9040 2003-03-27 Andrew Cagney <cagney@redhat.com>
9042 * regcache.c (write_sp): Delete function and references.
9043 * inferior.h (write_sp): Delete declaration.
9044 * valops.c (hand_function_call): Replace write_sp with
9046 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9047 (sparc_pop_frame): Ditto.
9049 2003-03-27 Andrew Cagney <cagney@redhat.com>
9051 * NEWS: Mention removal of support for hppa*-*-bsd* and
9052 hppa*-*-osf* natives, and hppa*-*-pro* target.
9053 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9054 * config/pa/xm-pa.h: Obsolete file.
9055 * config/pa/xm-hppab.h: Obsolete file.
9056 * config/pa/nm-hppab.h: Obsolete file.
9057 * config/pa/tm-hppab.h: Obsolete file.
9058 * config/pa/tm-hppao.h: Obsolete file.
9059 * config/pa/nm-hppao.h: Obsolete file.
9060 * config/pa/tm-pro.h: Obsolete file.
9061 * config/pa/hppaosf.mt: Obsolete file.
9062 * config/pa/hppaosf.mh: Obsolete file.
9063 * config/pa/hppapro.mt: Obsolete file.
9064 * config/pa/hppabsd.mt: Obsolete file.
9065 * config/pa/hppabsd.mh: Obsolete file.
9066 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9067 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9070 2003-03-27 Andrew Cagney <cagney@redhat.com>
9072 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9073 push_arguments. Don't set push_return_address or write_sp.
9074 (d10v_push_dummy_call): Replace d10v_push_arguments.
9075 (d10v_push_return_address, d10v_write_sp): Delete function,
9076 handled by push_dummy_call.
9078 2003-03-26 Andrew Cagney <cagney@redhat.com>
9080 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9081 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9082 regcache and dummy_addr parameters.
9083 * gdbarch.h, gdbarch.c: Re-generate.
9084 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9085 available; assume it will handle stack alignment and return
9086 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9087 legacy_push_arguments.
9088 (legacy_push_arguments): Rename default_push_arguments.
9089 * value.h (legacy_push_arguments): Rename default_push_arguments.
9090 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9091 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9092 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9093 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9094 * config/i386/tm-symmetry.h: Update.
9095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9096 * x86-64-tdep.c (x86_64_init_abi): Update.
9097 * v850-tdep.c (v850_gdbarch_init): Update.
9098 * sparc-tdep.c (sparc_gdbarch_init): Update.
9099 * sh-tdep.c (sh_gdbarch_init): Update.
9100 * s390-tdep.c (s390_gdbarch_init): Update.
9101 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9102 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9103 * mips-tdep.c (mips_gdbarch_init): Update.
9104 * mcore-tdep.c (mcore_gdbarch_init): Update.
9105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9106 * ia64-tdep.c (ia64_gdbarch_init): Update.
9107 * i386-tdep.c (i386_gdbarch_init): Update.
9108 * hppa-tdep.c (hppa_gdbarch_init): Update.
9109 * h8300-tdep.c (h8300_gdbarch_init): Update.
9110 * frv-tdep.c (frv_gdbarch_init): Update.
9111 * d10v-tdep.c (d10v_gdbarch_init): Update.
9112 * cris-tdep.c (cris_gdbarch_init): Update.
9113 * avr-tdep.c (avr_gdbarch_init): Update.
9114 * arm-tdep.c (arm_gdbarch_init): Update.
9115 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9116 * alpha-tdep.c (alpha_gdbarch_init): Update.
9118 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9120 * signals/signals.c (do_target_signal_to_host): Correct realtime
9123 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9125 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9126 (struct sal_chain, map_catch_names): Remove.
9127 (catch_exception_command_1): Don't call
9128 handle_gnu_4_16_catch_command.
9130 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9132 From Mark Dettinger <dettinge@de.ibm.com>:
9133 * dwarf2cfi.c (read_2u): Increment pointer by two.
9135 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9137 * signals/signals.c: Fix typos in last change.
9139 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9141 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9142 not already defined. Use __SIGRTMIN if available.
9143 (target_signal_from_host): Remove SIGRTMIN block.
9144 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9145 the signal is within the realtime range.
9147 2003-03-25 Adam Fedor <fedor@gnu.org>
9149 * Makefile.in (infrun.o): Add $(language_h)
9150 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9151 for language specific trampolines.
9152 * language.h (struct language_defn): Add skip_trampoline.
9153 (skip_language_trampoline): Declare.
9154 * language.c (unk_lang_trampoline, skip_language_trampoline):
9156 (unknown_language_defn, auto_language_defn, local_language_defn):
9157 Add ukn_lang_trampoline.
9158 * ada-lang.c (ada_language_defn): Add NULL for language
9159 specific skip_trampoline.
9160 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9161 scm-lang.c: Likewise.
9162 * objc-lang.c (objc_skip_trampoline): New function.
9163 (objc_language_defn): Add objc_skip_trampoline.
9165 2003-03-25 Andrew Cagney <cagney@redhat.com>
9167 * frame.c (get_prev_frame): Delay validating a frame's ID -
9168 non-NULL, didn't go backwards - until an attempt to unwind it to
9171 2003-03-25 Andrew Cagney <cagney@redhat.com>
9173 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9174 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9175 * gdbarch.h, gdbarch.c: Re-generate.
9176 * config/sparc/tm-sparc.h
9177 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9178 * sparc-tdep.c (sparc_gdbarch_init): Set
9179 deprecated_extra_stack_alignment_needed.
9180 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9181 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9182 extra_stack_alignment_needed.
9183 * v850-tdep.c (v850_gdbarch_init): Ditto.
9184 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9185 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9186 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9187 * cris-tdep.c (cris_gdbarch_init): Ditto.
9188 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9191 2003-03-25 Andrew Cagney <cagney@redhat.com>
9193 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9194 STORE_STRUCT_RETURN.
9195 * gdbarch.h, gdbarch.c: Regenerate.
9196 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9197 (d10v_push_arguments): Set the struct return register.
9198 (d10v_gdbarch_init): Update.
9199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9200 * x86-64-tdep.c (x86_64_init_abi): Update.
9201 * vax-tdep.c (vax_gdbarch_init): Update.
9202 * v850-tdep.c (v850_gdbarch_init): Update.
9203 * sparc-tdep.c (sparc_gdbarch_init): Update.
9204 * sh-tdep.c (sh_gdbarch_init): Update.
9205 * s390-tdep.c (s390_gdbarch_init): Update.
9206 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9207 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9208 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9209 * mips-tdep.c (mips_gdbarch_init): Update.
9210 * mcore-tdep.c (mcore_gdbarch_init): Update.
9211 * m68k-tdep.c (m68k_gdbarch_init): Update.
9212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9213 * ia64-tdep.c (ia64_gdbarch_init): Update.
9214 * i386-tdep.c (i386_gdbarch_init): Update.
9215 * hppa-tdep.c (hppa_gdbarch_init): Update.
9216 * h8300-tdep.c (h8300_gdbarch_init): Update.
9217 * frv-tdep.c (frv_gdbarch_init): Update.
9218 * cris-tdep.c (cris_gdbarch_init): Update.
9219 * avr-tdep.c (avr_gdbarch_init): Update.
9220 * arm-tdep.c (arm_gdbarch_init): Update.
9221 * alpha-tdep.c (alpha_gdbarch_init): Update.
9223 2003-03-25 Andrew Cagney <cagney@redhat.com>
9225 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9226 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9227 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9228 * gdbarch.h, gdbarch.c: Regenerate.
9229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9230 call_dummy_stack_adjust_p.
9231 * vax-tdep.c (vax_gdbarch_init): Ditto.
9232 * v850-tdep.c (v850_gdbarch_init): Ditto.
9233 * sh-tdep.c (sh_gdbarch_init): Ditto.
9234 * s390-tdep.c (s390_gdbarch_init): Ditto.
9235 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9236 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9238 * mips-tdep.c (mips_gdbarch_init): Ditto.
9239 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9240 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9242 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9243 * i386-tdep.c (i386_gdbarch_init): Ditto.
9244 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9245 * frv-tdep.c (frv_gdbarch_init): Ditto.
9246 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9247 * cris-tdep.c (cris_gdbarch_init): Ditto.
9248 * avr-tdep.c (avr_gdbarch_init): Ditto.
9249 * arm-tdep.c (arm_gdbarch_init): Ditto.
9250 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9251 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9252 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9253 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9254 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9255 call_dummy_stack_adjust_p.
9256 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9257 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9258 * sparc-tdep.c (sparc32_push_arguments): Update.
9259 * valops.c (hand_function_call): Update.
9261 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9264 set_gdbarch_char_signed.
9266 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9269 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9271 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9273 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9274 (_initialize_arm_tdep): Don't set tm_print_insn.
9276 2003-03-24 Adam Fedor <fedor@gnu.org>
9278 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9279 * objc-lang.h: Add multiple inclusion protection.
9280 (start_msglist, add_msglist, end_msglist): Additional declarations.
9282 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9284 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9285 value was renamed to ARM_FLOAT_SOFT_FPA.
9287 2003-03-23 Andrew Cagney <cagney@redhat.com>
9289 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9290 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9291 * gdbarch.h, gdbarch.c: Regenerate.
9292 * valops.c (hand_function_call): Update.
9293 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9294 * frame.c (legacy_saved_regs_this_id): Update.
9295 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9296 * dummy-frame.h: Update.
9297 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9298 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9299 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9300 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9301 * config/m68k/tm-sun3.h: Update.
9302 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9304 * x86-64-tdep.c (x86_64_init_abi): Update.
9305 * vax-tdep.c (vax_gdbarch_init): Update.
9306 * v850-tdep.c (v850_gdbarch_init): Update.
9307 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9308 * sh-tdep.c (sh_gdbarch_init): Update.
9309 * s390-tdep.c (s390_gdbarch_init): Update.
9310 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9311 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9312 (frame_get_saved_regs): Update.
9313 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9314 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9315 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9316 * mips-tdep.c (mips_gdbarch_init): Update.
9317 * mcore-tdep.c (mcore_gdbarch_init): Update.
9318 * m68k-tdep.c (m68k_gdbarch_init): Update.
9319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9320 * ia64-tdep.c (ia64_gdbarch_init): Update.
9321 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9322 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9323 (i386_interix_back_one_frame): Update.
9324 * hppa-tdep.c (hppa_gdbarch_init): Update.
9325 (hppa_init_extra_frame_info): Update.
9326 * h8300-tdep.c (h8300_gdbarch_init): Update.
9327 * frv-tdep.c (frv_gdbarch_init): Update.
9328 * cris-tdep.c (cris_gdbarch_init): Update.
9329 * avr-tdep.c (avr_gdbarch_init): Update.
9330 * arm-tdep.c (arm_gdbarch_init): Update.
9331 * alpha-tdep.c (alpha_gdbarch_init): Update.
9333 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9335 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9336 (arm_get_fp_model): Declare.
9337 * arm-tdep.c (fp_model_strings): New string array.
9338 (arm_fp_model, current_fp_model): New variables.
9339 (arm_get_fp_model): New function.
9340 (arm_set_fp): New function.
9341 (set_fp_model_sfunc): New function.
9342 (show_fp_model): New function.
9343 (_initialize_arm_tdep): Add new command to set/show the FPU.
9344 (arm_extract_return_value): Use arm_get_fp_model.
9345 (arm_store_return_value): Likewise.
9346 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9347 to initialize the floating-point data types.
9348 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9351 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9353 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9354 the current setting of each value.
9355 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9356 new_set and new_show. Use add_setshow_cmd_full and
9357 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9358 commands and add new version as subcommands of "set/show arm".
9360 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9362 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9363 (set_arm_command, show_arm_command): New functions.
9364 (_initialize_arm_tdep): Add them.
9365 (num_disassembly_options): Renamed from num_flavor_options.
9366 (valid_disassembly_styles): Renamed from valid_flavors.
9367 (disassembly_style): Renamed from disassembly_flavor.
9368 (set_disassembly_style_sfunc): Renamed from
9369 set_disassembly_flavor_sfunc.
9370 (set_disassembly_style): Renamed from set_disassembly_flavor.
9371 (arm_othernames): Updated.
9372 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9373 command. Add "set/show arm disassembly" commands. Deprecate
9374 "othernames" command.
9376 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9378 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9379 (arm-tdep.o): Depend on elf_arm_h.
9381 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9383 * Makefile.in (coff_internal_h): Define.
9384 (arm-tdep.o): Update dependencies.
9386 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9388 * arm-tdep.c (prologue_cache): Delete.
9389 (check_prologue_cache, save_prologue_cache): Delete.
9390 (arm_scan_prologue): Don't check or update the prologue_cache.
9391 (arm_gdb_arch_init): Don't initialize it.
9392 (_initialize_arm_tdep): Likewise.
9394 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9396 * MAINTAINERS (tui): Maintainer of tui code.
9398 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9400 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9401 (i386-cygwin-tdep.o): Add dependencies.
9402 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9403 * i386-cygwin-tdep.c: New file.
9404 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9405 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9407 2003-03-20 Andrew Cagney <cagney@redhat.com>
9409 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9410 (handle_inferior_event): Remove code calling
9411 DYNAMIC_TRAMPOLINE_NEXTPC.
9413 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9414 already has a full path.
9416 * main.c (gdb_main): Return 1.
9417 (captured_main): Call error to report an invalid interpreter.
9419 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9420 * alpha-osf1-tdep.c: Include "gdb_string.h".
9422 2003-03-19 J. Brobecker <brobecker@gnat.com>
9424 Continuing work to convert the hppa targets to multiarch partial.
9426 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9427 method, now that hppa_push_dummy_frame has a conformant prototype.
9428 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9429 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9430 for the switch to multiarch partial.
9432 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9434 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9435 when iss is issNull.
9437 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9439 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9440 NUM_REGS bounds check.
9442 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9444 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9445 * mips-tdep.c (gdb_assert.h): Include.
9446 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9447 (mips_register_name): Handle integer registers explicitly. Add
9449 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9450 (mips_lsi33k_reg_names): Don't list integer registers; they're
9451 handled by mips_register_name() now.
9452 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9453 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9454 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9455 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9456 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9458 2003-03-18 Andrew Cagney <cagney@redhat.com>
9460 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9462 * gdbtypes.h (print_scalar_formatted): Update declaration.
9463 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9465 2003-03-18 J. Brobecker <brobecker@gnat.com>
9467 * infrun.c (observer.h): Add #include.
9468 (normal_stop): Add call to observer_notify_normal_stop.
9469 * Makefile.in (infrun.o): Add dependency on observer.h.
9471 2003-03-18 J. Brobecker <brobecker@gnat.com>
9473 Continuing work to convert the hppa targets to multiarch partial.
9474 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9475 parameter. Reformat comment.
9476 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9477 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9478 to match new profile.
9480 2003-03-18 J. Brobecker <brobecker@gnat.com>
9482 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9483 appear to be working in any case.
9485 2003-03-18 J. Brobecker <brobecker@gnat.com>
9487 * observer.c (observer_test_first_observer): New static variable.
9488 (observer_test_second_observer): Likewise.
9489 (observer_test_third_observer): Likewise.
9490 (observer_test_first_notification_function): New static function.
9491 (observer_test_second_notification_function): Likewise.
9492 (observer_test_third_notification_function): Likewise.
9494 2003-03-17 J. Brobecker <brobecker@gnat.com>
9496 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9497 * somsolib.c (gdb_assert.h): Likewise.
9498 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9499 (somsolib.o): Likewise.
9501 2003-03-17 Andrew Cagney <cagney@redhat.com>
9503 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9504 BFD. Simplify setting of di.endian.
9506 2003-03-17 Andrew Cagney <cagney@redhat.com>
9508 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9509 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9511 From Elena Zannoni <ezannoni@redhat.com>
9512 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9513 vector and floating-point parameters.
9514 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9516 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9518 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9520 * MAINTAINERS: Remove my name from several maintainership roles.
9522 2003-03-17 Andrew Cagney <cagney@redhat.com>
9524 Fix frame off-by-one bug.
9525 * frame-unwind.h (frame_this_id_ftype): Replace
9526 frame_unwind_id_ftype.
9527 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9528 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9529 with "prev_register".
9530 * frame-unwind.c (frame_unwind_find_by_pc): Return
9531 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9533 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9534 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9535 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9536 (dummy_frame_unwind): Update.
9537 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9538 sentinel_frame_register_unwind.
9539 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9540 (sentinel_frame_unwinder): Update.
9541 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9542 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9543 * frame.c (create_sentinel_frame): Update. Initialize
9544 "prologue_cache" instead of "unwind_cache".
9545 (frame_register_unwind): Call this frame's prev_register with the
9546 next frame and this frame's prologue cache.
9547 (get_prev_frame): Simplify. Always call prev frame's this_id with
9548 this frame and prev frame's prologue cache. Document that this
9549 call is shifted one to the left when compared to the
9550 frame_register_unwind call.
9551 (legacy_saved_regs_prev_register): Replace
9552 frame_saved_regs_register_unwind.
9553 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9554 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9555 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9556 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9557 (d10v_frame_unwind): Update.
9558 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9559 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9560 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9561 "saved_regs" with "this_saved_regs".
9563 2003-03-16 Andrew Cagney <cagney@redhat.com>
9565 * frame.c (frame_pop): Don't call target_store_registers. Fix
9566 problem reported by Mark Kettenis.
9568 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9570 * i386-tdep.c (i386_register_type): Renamed from
9571 i386_register_virtual_type. Adjust function signature.
9572 (i386_gdbarch_init): Set register_type instead of
9573 deprecated_max_register_raw_size,
9574 deprecated_max_register_virtual_size and register_virtual_type.
9576 2003-03-14 Andrew Cagney <cagney@redhat.com>
9578 * frame.c (get_prev_frame): When a legacy frame, always call
9579 legacy_get_prev_frame. Simplify unwind code using assumption that
9580 the unwinder is new.
9581 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9582 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9583 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9585 2003-03-14 Andrew Cagney <cagney@redhat.com>
9587 * frame.c (get_saved_register): Delete function.
9588 * frame.h (get_saved_register): Delete declaration.
9589 * xstormy16-tdep.c: Update comment.
9590 * regcache.h: Update comments.
9591 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9592 get_saved_register and extract_address, use
9593 frame_read_unsigned_register.
9594 (sparc_frame_saved_pc): Ditto.
9595 (sparc_get_saved_register): Instead of get_saved_register, use
9597 (sparc_pop_frame): Ditto.
9598 * findvar.c: Update comments.
9599 (value_of_register): Call frame_register instead of
9601 (value_from_register): Ditto.
9602 * config/sparc/tm-sparc.h: Update comment.
9603 * breakpoint.c: Update comment.
9605 2003-03-14 Andrew Cagney <cagney@redhat.com>
9607 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9609 * gdbarch.h, gdbarch.c: Re-generate.
9610 * frame.h: Update comments.
9611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9612 * x86-64-tdep.c (x86_64_init_abi): Update.
9613 * sparc-tdep.c (sparc_gdbarch_init): Update.
9614 * sh-tdep.c (sh_gdbarch_init): Update.
9615 * mips-tdep.c (mips_gdbarch_init): Update.
9616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9617 * cris-tdep.c (cris_gdbarch_init): Update.
9618 * ia64-tdep.c (ia64_gdbarch_init): Update.
9619 * frame.c (frame_register): Update.
9620 (get_saved_register): Update.
9621 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9623 2003-03-13 Andrew Cagney <cagney@redhat.com>
9625 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9626 * gdbarch.h, gdbarch.c: Regenerate.
9627 * valops.c (hand_function_call): Update comment.
9628 * stack.c (return_command): Update comment.
9629 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9630 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9631 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9632 * x86-64-tdep.c (x86_64_init_abi): Update.
9633 * vax-tdep.c (vax_gdbarch_init): Update.
9634 * v850-tdep.c (v850_gdbarch_init): Update.
9635 * sparc-tdep.c (sparc_gdbarch_init): Update.
9636 * sh-tdep.c (sh_gdbarch_init): Update.
9637 * s390-tdep.c (s390_gdbarch_init): Update.
9638 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9639 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9640 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9641 * mips-tdep.c (mips_gdbarch_init): Update.
9642 * mcore-tdep.c (mcore_gdbarch_init): Update.
9643 * m68k-tdep.c (m68k_gdbarch_init): Update.
9644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9645 * ia64-tdep.c (ia64_gdbarch_init): Update.
9646 * i386-tdep.c (i386_gdbarch_init): Update.
9647 * hppa-tdep.c (hppa_gdbarch_init): Update.
9648 * h8300-tdep.c (h8300_gdbarch_init): Update.
9649 * frv-tdep.c (frv_gdbarch_init): Update.
9650 * cris-tdep.c (cris_gdbarch_init): Update.
9651 * avr-tdep.c (avr_gdbarch_init): Update.
9652 * arm-tdep.c (arm_gdbarch_init): Update.
9653 * alpha-tdep.c (alpha_gdbarch_init): Update.
9655 2003-03-13 Andrew Cagney <cagney@redhat.com>
9657 * frame.c (legacy_frame_p): New function.
9658 (get_prev_frame): Use legacy_frame_p.
9659 * frame.h (legacy_frame_p): Declare.
9661 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9663 * MAINTAINERS (write after approval): Alphabetically
9666 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9668 * MAINTAINERS (write after approval): Add myself.
9670 2003-03-12 Andrew Cagney <cagney@redhat.com>
9672 * frame.c (get_prev_frame): Rename the frame parameter to
9674 (get_next_frame, legacy_get_prev_frame): Ditto.
9676 2003-03-12 Andrew Cagney <cagney@redhat.com>
9678 * frame.c (get_current_frame): Check target_has_registers before
9679 checking target_has_stack.
9680 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9681 instead of deprecated_selected_frame.
9682 * findvar.c (value_of_register): Pass "frame", not
9683 deprecated_selected_frame, to value_of_builtin_reg.
9685 2003-03-12 Andrew Cagney <cagney@redhat.com>
9687 * regcache.c (regcache_cooked_write_signed): New function.
9688 (regcache_cooked_write_unsigned): New function.
9689 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9690 (regcache_cooked_read_signed): Fix regnum in range assertion.
9691 * regcache.h (regcache_cooked_write_signed): Declare.
9692 (regcache_cooked_write_unsigned): Declare.
9694 2003-03-12 Andrew Cagney <cagney@redhat.com>
9696 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9697 * gdbarch.h, gdbarch.c: Re-generate.
9698 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9699 * x86-64-tdep.h: Update.
9700 * x86-64-tdep.c (x86_64_init_abi): Update.
9701 * v850-tdep.c (v850_gdbarch_init): Update.
9702 * sparc-tdep.c (sparc_gdbarch_init): Update.
9703 * sh-tdep.c (sh_gdbarch_init): Update.
9704 * s390-tdep.c (s390_gdbarch_init): Update.
9705 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9706 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9707 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9708 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9709 * mips-tdep.c (mips_gdbarch_init): Update.
9710 * mcore-tdep.c (mcore_gdbarch_init): Update.
9711 * m68k-tdep.c (m68k_gdbarch_init): Update.
9712 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9713 * ia64-tdep.c (ia64_gdbarch_init): Update.
9714 * i386-tdep.c (i386_gdbarch_init): Update.
9715 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9716 * hppa-tdep.c (hppa_gdbarch_init): Update.
9717 * h8300-tdep.c (h8300_gdbarch_init): Update.
9718 * frv-tdep.c (frv_gdbarch_init): Update.
9719 * cris-tdep.c (cris_gdbarch_init): Update.
9720 * avr-tdep.c (avr_gdbarch_init): Update.
9721 * arm-tdep.c (arm_gdbarch_init): Update.
9722 * alpha-tdep.c (alpha_gdbarch_init): Update.
9723 * sh-tdep.c (sh_init_extra_frame_info): Update.
9724 (sh64_init_extra_frame_info): Update.
9725 * ns32knbsd-nat.c (frame_num_args): Update.
9726 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9727 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9728 (xstormy16_frame_chain_valid): Update.
9729 * vax-tdep.c (vax_saved_pc_after_call): Update.
9730 * v850-tdep.c (v850_frame_chain): Update.
9731 (v850_pop_frame): Update.
9732 (v850_init_extra_frame_info): Update.
9733 * sparc-tdep.c (setup_arbitrary_frame): Update.
9734 * ns32k-tdep.c (umax_frame_num_args): Update.
9735 * s390-tdep.c (s390_pop_frame_regular): Update.
9736 * mn10300-tdep.c (mn10300_frame_chain): Update.
9737 (mn10300_pop_frame_regular): Update.
9738 (mn10300_init_extra_frame_info): Update.
9739 * mips-tdep.c (mips_init_frame_pc_first): Update.
9740 (mips_frame_chain): Update.
9741 (mips_pop_frame): Update.
9742 * mcore-tdep.c (mcore_frame_chain): Update.
9743 (mcore_pop_frame): Update.
9744 (mcore_init_extra_frame_info): Update.
9745 * arch-utils.c (init_frame_pc_default): Update.
9746 * m68k-tdep.c (isi_frame_num_args): Update.
9747 (delta68_frame_num_args): Update.
9748 (news_frame_num_args): Update.
9749 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9750 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9751 (alpha_frame_chain): Update.
9752 (alpha_pop_frame): Update.
9753 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9754 (hppa_init_extra_frame_info): Update.
9755 (hppa_frame_chain): Update.
9756 (hppa_frame_chain_valid): Update.
9757 * cris-tdep.c (cris_init_extra_frame_info): Update.
9758 * avr-tdep.c (avr_init_extra_frame_info): Update.
9759 * arm-tdep.c (arm_frame_chain_valid): Update.
9760 (arm_init_extra_frame_info): Update.
9761 (arm_pop_frame): Update.
9762 * frame.c (frame_pc_unwind): Update.
9763 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9764 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9765 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9766 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9767 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9768 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9770 2003-03-12 Andrew Cagney <cagney@redhat.com>
9772 Eliminate the need for POP_FRAME.
9773 * frame.c (do_frame_unwind_register): New function.
9774 (frame_pop): When no POP_FRAME, pop the frame using register
9775 unwind and a scratch regcache.
9776 (frame_saved_regs_pop): Delete function.
9777 (trad_frame_unwinder): Update.
9778 * d10v-tdep.c (d10v_frame_pop): Delete function.
9779 (d10v_frame_unwind): Update.
9780 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9781 (sentinel_frame_unwinder): Update.
9782 * dummy-frame.c (dummy_frame_pop): Delete function.
9783 (dummy_frame_unwind): Update.
9784 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9785 (struct frame_unwind): Update.
9787 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9789 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9790 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9791 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9792 Do range checks on register number obtained from debugging info.
9793 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9794 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9795 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9797 (do_fp_register_row): Fix typo which caused double type to be
9798 used when attempting to unpack a float.
9800 2003-03-11 J. Brobecker <brobecker@gnat.com>
9802 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9804 2003-03-11 Andrew Cagney <cagney@redhat.com>
9806 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9807 frame. Problem found by Corinna Vinschen.
9809 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9811 * doublest.c (floatformat_from_length): Accept also
9812 the real size of 'long double' type.
9814 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9816 From Klee Dienes <kdienes@apple.com>:
9817 * breakpoint.c (bpstat_copy): Copy the command lines as well
9818 as the old value, to match what is freed in bpstat_clear.
9820 2003-03-10 David Carlton <carlton@math.stanford.edu>
9822 * minsyms.c (add_minsym_to_hash_table): Replace
9823 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9824 (compare_minimal_symbols, compact_minimal_symbols)
9825 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9826 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9827 of DEPRECATED_SYMBOL_MATCHES_NAME.
9828 (lookup_minimal_symbol_solib_trampoline): Ditto.
9830 2003-03-10 Andrew Cagney <cagney@redhat.com>
9832 * regcache.h (regcache_cooked_read_ftype): Define.
9833 (regcache_save, regcache_restore): Add a cooked_read parameter.
9834 * regcache.c (regcache_save, regcache_restore): Update.
9835 (do_cooked_read): New function.
9836 (regcache_cpy): Pass do_cooked_read to regcache_save and
9839 2003-03-10 Andrew Cagney <cagney@redhat.com>
9841 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9842 * gdbarch.h, gdbarch.c: Re-generate.
9843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9844 * x86-64-tdep.h: Update.
9845 * x86-64-tdep.c (x86_64_init_abi): Update.
9846 * v850-tdep.c (v850_gdbarch_init): Update.
9847 * sparc-tdep.c (sparc_gdbarch_init): Update.
9848 * sh-tdep.c (sh_gdbarch_init): Update.
9849 * s390-tdep.c (s390_gdbarch_init): Update.
9850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9851 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9852 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9853 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9854 * mips-tdep.c (mips_gdbarch_init): Update.
9855 * mcore-tdep.c (mcore_gdbarch_init): Update.
9856 * m68k-tdep.c (m68k_gdbarch_init): Update.
9857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9858 * ia64-tdep.c (ia64_gdbarch_init): Update.
9859 * i386-tdep.c (i386_gdbarch_init): Update.
9860 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9861 * hppa-tdep.c (hppa_gdbarch_init): Update.
9862 * h8300-tdep.c (h8300_gdbarch_init): Update.
9863 * frv-tdep.c (frv_gdbarch_init): Update.
9864 * cris-tdep.c (cris_gdbarch_init): Update.
9865 * avr-tdep.c (avr_gdbarch_init): Update.
9866 * arm-tdep.c (arm_gdbarch_init): Update.
9867 * alpha-tdep.c (alpha_gdbarch_init): Update.
9868 * sh-tdep.c (sh_init_extra_frame_info): Update.
9869 (sh64_init_extra_frame_info): Update.
9870 * ns32knbsd-nat.c (frame_num_args): Update.
9871 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9872 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9873 (xstormy16_frame_chain_valid): Update.
9874 * vax-tdep.c (vax_saved_pc_after_call): Update.
9875 * v850-tdep.c (v850_frame_chain): Update.
9876 (v850_pop_frame): Update.
9877 (v850_init_extra_frame_info): Update.
9878 * sparc-tdep.c (setup_arbitrary_frame): Update.
9879 * ns32k-tdep.c (umax_frame_num_args): Update.
9880 * s390-tdep.c (s390_pop_frame_regular): Update.
9881 * mn10300-tdep.c (mn10300_frame_chain): Update.
9882 (mn10300_pop_frame_regular): Update.
9883 (mn10300_init_extra_frame_info): Update.
9884 * mips-tdep.c (mips_init_frame_pc_first): Update.
9885 (mips_frame_chain): Update.
9886 (mips_pop_frame): Update.
9887 * mcore-tdep.c (mcore_frame_chain): Update.
9888 (mcore_pop_frame): Update.
9889 (mcore_init_extra_frame_info): Update.
9890 * arch-utils.c (init_frame_pc_default): Update.
9891 * m68k-tdep.c (isi_frame_num_args): Update.
9892 (delta68_frame_num_args): Update.
9893 (news_frame_num_args): Update.
9894 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9895 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9896 (alpha_frame_chain): Update.
9897 (alpha_pop_frame): Update.
9898 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9899 (hppa_init_extra_frame_info): Update.
9900 (hppa_frame_chain): Update.
9901 (hppa_frame_chain_valid): Update.
9902 * cris-tdep.c (cris_init_extra_frame_info): Update.
9903 * avr-tdep.c (avr_init_extra_frame_info): Update.
9904 * arm-tdep.c (arm_frame_chain_valid): Update.
9905 (arm_init_extra_frame_info): Update.
9906 (arm_pop_frame): Update.
9907 * frame.c (frame_pc_unwind): Update.
9908 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9909 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9910 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9911 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9912 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9913 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9915 2003-03-10 Andrew Cagney <cagney@redhat.com>
9917 * gdbarch.sh (gdbarch_unwind_pc): New method.
9918 * gdbarch.h, gdbarch.c: Regenerate.
9919 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9920 but use read_pc and FRAME_SAVED_PC as fall backs.
9921 (frame_saved_regs_pc_unwind): Delete function.
9922 (trad_frame_unwinder): Update.
9923 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9924 (struct frame_unwind): Update.
9925 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9926 (dummy_frame_unwind): Update.
9927 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9928 (sentinel_frame_unwinder): Update.
9929 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9930 (d10v_frame_unwind): Update.
9931 (d10v_unwind_pc): New function.
9932 (d10v_gdbarch_init): Set unwind_pc.
9934 2003-03-10 Andrew Cagney <cagney@redhat.com>
9936 * gdbarch.h: Re-generate.
9938 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9940 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9943 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9945 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9947 2003-03-08 Andrew Cagney <cagney@redhat.com>
9949 * cli-out.c: Update copyright.
9950 (cli_out_data): Define typedef. Use instead of ui_out_data.
9952 2003-03-08 Andrew Cagney <cagney@redhat.com>
9954 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9957 2003-03-07 Andrew Cagney <cagney@redhat.com>
9959 * gdbarch.sh: Don't generate two macro definitions when an
9960 undefined macro taking no arguments.
9961 * gdbarch.h: Regenerate.
9963 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9965 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9966 (x86_64_unwind_dummy_id): New functions.
9967 (x86_64_init_abi): Register these two new functions.
9969 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9971 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9972 (x86_64_skip_prologue): Move prologue detection to
9974 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9976 2003-03-05 Andrew Cagney <cagney@redhat.com>
9978 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9979 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9980 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9981 to use unwind_dummy_id when a dummy frame.
9982 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9984 * gdbarch.h, gdbarch.c: Regneerate.
9986 2003-03-05 Andrew Cagney <cagney@redhat.com>
9988 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9989 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9990 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9993 2003-03-05 Andrew Cagney <cagney@redhat.com>
9995 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9996 (struct d10v_unwind_cache): Delete field "frameless". Replace
9997 "next_addr" with "sp_offset". Add "r11_offset".
9998 (d10v_frame_unwind_cache): Update.
9999 (prologue_find_regs): Update. When "mv r11, sp", save the
10000 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10001 RN was saved in r11_offset.
10003 2003-03-05 Andrew Cagney <cagney@redhat.com>
10005 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10006 cached PC value in the next frame.
10008 2003-03-05 Andrew Cagney <cagney@redhat.com>
10010 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10011 "id_unwind_cache" with "id".
10012 (frame_id_unwind): Delete declaration.
10013 * frame.c (frame_id_unwind): Delete function.
10014 (get_prev_frame): Call the frame id unwind method directly. Store
10015 the returned next frame's ID value in NEXT_FRAME. Note that there
10016 is a problem with the wrong unwind ID being called with the wrong
10019 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10021 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10023 2003-03-05 James Ingham <jingham@apple.com>
10024 Daniel Jacobowitz <drow@mvista.com>
10026 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10027 (auto_cp_abi): New variable.
10028 (current_cp_abi, num_cp_abis): Make static.
10029 (CP_ABI_MAX): Define.
10030 (cp_abis): Turn into an array.
10031 (value_virtual_fn_field): Fix formatting.
10032 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10034 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10035 (list_cp_abis, _initialize_cp_abi): New functions.
10036 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10037 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10038 switch_to_cp_abi. Update prototype for register_cp_abi.
10039 * Makefile.in (cp-abi.o): Update dependencies.
10040 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10041 instead of switch_to_cp_abi.
10042 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10044 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10046 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10048 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10050 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10051 * dwarf2loc.c: Include "regcache.h".
10052 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10054 * Makefile.in (dwarf2loc.o): Update dependencies.
10056 2003-03-04 Theodore A. Roth <troth@openavr.org>
10058 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10059 number of io registers reported by remote target is not a multiple of
10062 2003-03-04 David Carlton <carlton@math.stanford.edu>
10064 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10065 (lookup_symbol_aux_psymtabs): Update call to
10066 lookup_partial_symbol.
10067 (lookup_transparent_type, find_main_psymtab)
10068 (make_symbol_overload_list): Ditto.
10070 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10072 * MAINTAINERS (Write after approval): Update my email address.
10074 2003-03-03 Andrew Cagney <cagney@redhat.com>
10076 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10077 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10078 predicate. Replace MAX_REGISTER_RAW_SIZE.
10079 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10080 MAX_REGISTER_VIRTUAL_SIZE.
10081 * regcache.c (legacy_max_register_raw_size): New function.
10082 (legacy_max_register_virtual_size): New function.
10083 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10084 (MAX_REGISTER_RAW_SIZE): Define.
10085 (legacy_max_register_raw_size): Declare.
10086 (legacy_max_register_virtual_size): Declare.
10087 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10088 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10089 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10090 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10091 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10092 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10093 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10094 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10095 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10097 * vax-tdep.c (vax_gdbarch_init): Update.
10098 * v850-tdep.c (v850_gdbarch_init): Update.
10099 * sparc-tdep.c (sparc_gdbarch_init): Update.
10100 * sh-tdep.c (sh_gdbarch_init): Update.
10101 * s390-tdep.c (s390_gdbarch_init): Update.
10102 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10103 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10104 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10105 * mips-tdep.c (mips_gdbarch_init): Update.
10106 * mcore-tdep.c (mcore_gdbarch_init): Update.
10107 * m68k-tdep.c (m68k_gdbarch_init): Update.
10108 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10109 * ia64-tdep.c (ia64_gdbarch_init): Update.
10110 * i386-tdep.c (i386_gdbarch_init): Update.
10111 * hppa-tdep.c (hppa_gdbarch_init): Update.
10112 * h8300-tdep.c (h8300_gdbarch_init): Update.
10113 * frv-tdep.c (frv_gdbarch_init): Update.
10114 * cris-tdep.c (cris_gdbarch_init): Update.
10115 * avr-tdep.c (avr_gdbarch_init): Update.
10116 * arm-tdep.c (arm_gdbarch_init): Update.
10117 * alpha-tdep.c (alpha_gdbarch_init): Update.
10118 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10119 max_register_raw_size or max_register_virtual_size.
10121 2003-03-03 David Carlton <carlton@math.stanford.edu>
10123 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10124 SYMBOL_MATCHES_NAME, add comment.
10125 (SYMBOL_MATCHES_NATURAL_NAME): New.
10126 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10127 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10128 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10129 * symtab.c (lookup_partial_symbol): Use
10130 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10132 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10133 SYMBOL_MATCHES_NAME.
10136 2003-03-03 David Carlton <carlton@math.stanford.edu>
10138 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10139 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10140 by regexp matching against SYMBOL_NATURAL_NAME.
10142 2003-03-03 David Carlton <carlton@math.stanford.edu>
10144 * linespec.c (find_method): Extract code into collect_methods.
10145 (collect_methods): New.
10147 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10149 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10152 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10153 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10155 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10157 * arch-utils.c (generic_register_byte): Fix to use the loop index
10158 and not regnum when summing the size of all registers up to regnum.
10160 2003-03-01 Andrew Cagney <cagney@redhat.com>
10162 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10163 FRAME_INIT_SAVED_REGS.
10164 * gdbarch.h, gdbarch.c: Regenerate.
10165 * stack.c (frame_info): Update.
10166 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10167 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10168 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10169 * ns32k-tdep.c (ns32k_pop_frame): Update.
10170 * mips-tdep.c (mips_pop_frame): Update.
10171 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10172 * ia64-tdep.c (ia64_frame_chain): Update.
10173 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10174 (ia64_frameless_function_invocation): Update.
10175 (ia64_init_extra_frame_info): Update.
10176 (ia64_pop_frame_regular): Update.
10177 * frame.h (struct frame_info): Update comment.
10178 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10179 * frame.c (frame_saved_regs_register_unwind): Update.
10180 (frame_saved_regs_register_unwind): Update.
10181 (deprecated_generic_get_saved_register): Update.
10182 * cris-tdep.c: Update comment.
10183 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10186 * x86-64-tdep.c (x86_64_init_abi): Update.
10187 * vax-tdep.c (vax_gdbarch_init): Update.
10188 * v850-tdep.c (v850_gdbarch_init): Update.
10189 * sparc-tdep.c (sparc_gdbarch_init): Update.
10190 * sh-tdep.c (sh_gdbarch_init): Update.
10191 * s390-tdep.c (s390_gdbarch_init): Update.
10192 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10193 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10194 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10195 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10196 * mips-tdep.c (mips_gdbarch_init): Update.
10197 * mcore-tdep.c (mcore_gdbarch_init): Update.
10198 * m68k-tdep.c (m68k_gdbarch_init): Update.
10199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10200 * ia64-tdep.c (ia64_gdbarch_init): Update.
10201 * i386-tdep.c (i386_gdbarch_init): Update.
10202 * frv-tdep.c (frv_gdbarch_init): Update.
10203 * avr-tdep.c (avr_gdbarch_init): Update.
10204 * arm-tdep.c (arm_gdbarch_init): Update.
10205 * alpha-tdep.c (alpha_gdbarch_init): Update.
10207 2003-03-01 Andrew Cagney <cagney@redhat.com>
10209 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10210 option enum and switch. When no windows, set the interpreter to
10213 2003-03-01 Andrew Cagney <cagney@redhat.com>
10215 * main.c (captured_main): Replace magic option characters with an
10218 2003-03-01 Andrew Cagney <cagney@redhat.com>
10220 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10221 INIT_EXTRA_FRAME_INFO.
10222 * gdbarch.h, gdbarch.c: Regenerate.
10223 * arm-tdep.c: Update comments.
10224 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10225 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10226 * frame.h, avr-tdep.c: Ditto.
10227 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10228 (create_new_frame, legacy_get_prev_frame): Ditto.
10229 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10230 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10232 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10233 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10234 * v850-tdep.c (v850_gdbarch_init): Ditto.
10235 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10236 * sh-tdep.c (sh_gdbarch_init): Ditto.
10237 * s390-tdep.c (s390_gdbarch_init): Ditto.
10238 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10239 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10240 * mips-tdep.c (mips_gdbarch_init): Ditto.
10241 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10243 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10244 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10245 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10246 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10247 * frv-tdep.c (frv_gdbarch_init): Ditto.
10248 * cris-tdep.c (cris_gdbarch_init): Ditto.
10249 * avr-tdep.c (avr_gdbarch_init): Ditto.
10250 * arm-tdep.c (arm_gdbarch_init): Ditto.
10251 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10252 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10254 2003-03-01 Andrew Cagney <cagney@redhat.com>
10256 * gdbarch.sh (register_type): New function with predicate.
10257 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10258 * gdbarch.h, gdbarch.c: Re-generate.
10259 * arch-utils.c (generic_register_byte): Use generic_register_size.
10260 (generic_register_size): When available, use
10261 gdbarch_register_type.
10262 * regcache.c (init_regcache_descr): When available, initialize the
10263 register type array using gdbarch_register_type. If the
10264 architecture supplies gdbarch_register_type, do not use the legacy
10266 * d10v-tdep.c (d10v_register_type): Replace
10267 d10v_register_virtual_type.
10268 (d10v_gdbarch_init): Set register_type instead of
10269 register_virtual_type.
10271 2003-03-01 Andrew Cagney <cagney@redhat.com>
10273 * Makefile.in (ax-gdb.o): Update dependencies.
10274 * ax-gdb.c: Include "regcache.h".
10275 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10276 * findvar.c (value_of_register): Ditto.
10277 * infcmd.c (default_print_registers_info): Ditto.
10279 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10281 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10282 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10284 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10286 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10289 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10291 * Makefile.in (dwarf2loc.o): Update dependencies.
10292 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10293 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10294 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10295 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10296 (locexpr_tracepoint_var_ref): New function.
10297 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10299 2003-02-28 Andrew Cagney <cagney@redhat.com>
10301 * regcache.c (register_size): New function.
10302 * regcache.h (register_size): Declare
10303 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10304 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10306 2003-02-28 David Carlton <carlton@math.stanford.edu>
10308 * linespec.c (decode_compound): Extract code into find_method.
10309 (find_method): New.
10311 2003-02-28 J. Brobecker <brobecker@gnat.com>
10313 * Makefile.in: Add rules to build and link in observer.o.
10315 2003-02-27 J. Brobecker <brobecker@gnat.com>
10317 * observer.c: Minor comments edits.
10319 2003-02-27 J. Brobecker <brobecker@gnat.com>
10321 * observer.h, observer.c: New file.
10323 2003-02-27 Andrew Cagney <cagney@redhat.com>
10325 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10327 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10329 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10330 (M6812_OP_STS_EXT): Likewise.
10331 (m6811_prologue): Use the above to recognize prologue.
10332 (m6812_prologue): Likewise.
10334 2003-02-27 David Carlton <carlton@math.stanford.edu>
10336 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10338 (compare_psymbols): Ditto.
10339 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10341 2003-02-27 Michael Snyder <msnyder@redhat.com>
10343 * f-lang.c (build_fortran_types): New function.
10344 (_initialize_f_language): Gdbarch-register built-in fortran types.
10345 * doublest.c (extract_floating): Fix warning text.
10347 2003-02-27 Andrew Cagney <cagney@redhat.com>
10349 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10350 predicate. Replaces PUSH_DUMMY_FRAME.
10351 * gdbarch.h, gdbarch.c: Regnerate.
10352 * valops.c (hand_function_call): Update. Call
10353 generic_push_dummy_frame directly.
10354 * vax-tdep.c (vax_gdbarch_init): Update.
10355 * sparc-tdep.c (sparc_gdbarch_init): Update.
10356 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10357 * m68k-tdep.c (m68k_gdbarch_init): Update.
10358 * hppa-tdep.c (hppa_gdbarch_init): Update.
10359 * alpha-tdep.c (alpha_gdbarch_init): Update.
10360 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10361 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10362 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10363 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10364 push_dummy_frame to generic_push_dummy_frame.
10365 * v850-tdep.c (v850_gdbarch_init): Ditto.
10366 * sh-tdep.c (sh_gdbarch_init): Ditto.
10367 * s390-tdep.c (s390_gdbarch_init): Ditto.
10368 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10369 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10370 * mips-tdep.c (mips_gdbarch_init): Ditto.
10371 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10373 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10374 * i386-tdep.c (i386_gdbarch_init): Ditto.
10375 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10376 * frv-tdep.c (frv_gdbarch_init): Ditto.
10377 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10378 * cris-tdep.c (cris_gdbarch_init): Ditto.
10379 * avr-tdep.c (avr_gdbarch_init): Ditto.
10380 * arm-tdep.c (arm_gdbarch_init): Ditto.
10382 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10384 * mips-tdep.c (show_mips_abi): New function.
10385 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10386 command ``show mips abi''.
10388 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10390 From Elena Zannoni <ezannoni@redhat.com>
10391 * dbxread.c (process_one_symbol): Only record line 0 if one or
10392 more sline entries have been seen for the function.
10394 2003-02-26 Michael Chastain <mec@shout.net>
10396 * configure: Regenerate with autoconf 000227.
10398 2003-02-26 Michael Chastain <mec@shout.net>
10400 Close PR build/660.
10401 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10402 for old libc5/glibc.
10403 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10405 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10407 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10408 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10410 2003-02-26 Michael Chastain <mec@shout.net>
10412 * configure.in: New variable HAVE_UINTPTR_T.
10413 * configure, config.in: Regenerated.
10415 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10418 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10420 2003-02-25 Andrew Cagney <cagney@redhat.com>
10422 * frame.c (get_prev_frame): Add comment on check for
10423 inside_entry_func. Only check for inside_entry_file when not a
10424 dummy and not a sentinel. Check that the new frame is not inner
10427 2003-02-25 Andrew Cagney <cagney@redhat.com>
10429 * frame.c (frame_debug): New variable.
10430 (_initialize_frame): Add "set/show debug frame" command.
10431 (get_prev_frame): When frame_debug, print reason why unwind
10434 2003-02-25 Michael Chastain <mec@shout.net>
10436 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10437 to avoid uintptr_t definition problems.
10439 2003-02-25 David Carlton <carlton@math.stanford.edu>
10441 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10442 (SYMBOL_LINKAGE_NAME): Ditto.
10443 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10444 SYMBOL_LINKAGE_NAME.
10445 (struct general_symbol_info): Expand comment.
10446 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10447 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10448 (SYMBOL_MATCHES_REGEXP): Ditto.
10449 * symtab.c (symbol_natural_name): New function.
10450 * objfiles.h: Replace all uses of SYMBOL_NAME by
10451 DEPRECATED_SYMBOL_NAME.
10452 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10453 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10454 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10455 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10456 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10457 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10458 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10459 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10460 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10461 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10462 * ada-exp.y: Ditto.
10463 * ada-exp.y: Update copyright.
10464 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10465 * cp-valprint.c: Ditto.
10467 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10469 * infptrace.c (detach): Do not flag error if ptrace detach fails
10470 and errno is set to ESRCH.
10472 2003-02-24 Andrew Cagney <cagney@redhat.com>
10474 * infptrace.c (udot_info): Change type of udot_off to long. Use
10475 paddr when printing udot_off's value.
10477 2003-02-24 David Carlton <carlton@math.stanford.edu>
10479 * symtab.c (make_symbol_overload_list): Only read in partial
10480 symtabs containing a matching partial symbol.
10482 2003-02-24 David Carlton <carlton@math.stanford.edu>
10484 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10485 do the comparison, not strcmp.
10486 * symfile.c (compare_psymbols): Ditto.
10487 * defs.h: Declare strcmp_iw_ordered.
10488 * utils.c (strcmp_iw_ordered): New function.
10490 2003-02-24 Jim Blandy <jimb@redhat.com>
10492 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10493 support, shared libs): Remove my name from here, to better reflect
10496 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10498 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10499 (target_ops): Add to_have_continuable_watchpoint.
10500 * target.c (update_current_target): Add INHERIT line for
10501 to_have_continuable_watchpoint.
10502 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10503 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10504 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10505 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10507 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10509 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10512 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10514 * solib.c (solib_open): Call target defined search function after
10515 failing with solib-search-path.
10516 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10517 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10519 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10521 * MAINTAINERS: Add myself to Write After section.
10523 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10525 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10527 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10529 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10530 (m68hc11_add_reggroups): New function.
10531 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10532 (m68hc11_gdbarch_init): Install the reggroups.
10533 (_initialize_m68hc11_tdep): Initialize them.
10535 2003-02-21 James E Wilson <wilson@tuliptree.org>
10537 * MAINTAINERS: Update my email address.
10539 2003-02-21 David Carlton <carlton@math.stanford.edu>
10541 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10543 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10545 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10546 * symtab.h: Add opaque declarations of struct axs_value and
10548 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10549 (struct location_funcs): New type.
10550 (struct symbol): Add "loc" to aux_value.
10551 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10552 * dwarf2read.c: Include "dwarf2expr.h".
10553 (dwarf2_symbol_mark_computed): New function.
10554 (read_func_scope): Use it.
10555 (var_decode_location): New function.
10556 (new_symbol): Use it.
10557 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10559 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10560 (dwarf2expr_h, dwarf2loc_h): New variables.
10561 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10562 (dwarf2expr.o, dwarf2loc.o): New rules.
10563 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10564 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10566 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10567 * m2-exp.y (yylex): Likewise.
10568 * printcmd.c (address_info, print_frame_args): Likewise.
10569 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10570 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10571 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10572 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10573 * symtab.c (lookup_block_symbol): Likewise.
10575 2003-02-20 Adam Fedor <fedor@gnu.org>
10577 * symtab.h: Remove objc_specific struct
10578 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10579 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10580 Have language_objc use cplus_specific struct.
10582 2003-02-20 Tom Tromey <tromey@redhat.com>
10584 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10585 TYPE_NAME, when printing a String value. PR java/1075.
10587 2003-02-20 Adam Fedor <fedor@gnu.org>
10589 * objc-lang.h (find_methods): Remove declaration.
10590 * objc-lang.c (find_methods): Make static.
10592 2003-02-20 Christopher Faylor <cgf@redhat.com>
10594 * win32-nat.c (get_image_name): Check return value from
10596 (child_xfer_memory): Ditto.
10598 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10600 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10601 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10602 '${exec_prefix}' (in addition to the expansion thereof) as
10604 * configure: Rebuilt.
10606 2003-02-20 David Carlton <carlton@math.stanford.edu>
10608 * symtab.c (search_symbols): Revert the search_symbols part of my
10609 2002-12-23 patch. Add comment.
10611 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10613 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10614 * dbxread.c (elfstab_build_psymtabs): Don't call
10615 install_minimal_symbols.
10616 (stabsect_build_psymtabs): Likewise.
10617 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10619 * somread.c (som_symfile_read): Call install_minimal_symbols
10620 and do_cleanups earlier.
10621 * nlmread.c (nlm_symfile_read): Likewise.
10622 * mdebugread.c (elfmdebug_build_psymtabs): Call
10623 install_minimal_symbols and make appropriate cleanups.
10625 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10627 * solib.c (reload_shared_libraries): New function.
10628 (_initialize_solib): Add callbacks for ``set solib-search-path''
10629 and ``set solib-absolute-prefix''.
10631 2003-02-20 David Carlton <carlton@math.stanford.edu>
10633 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10635 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10636 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10637 * ada-typeprint.c (ada_typedef_print): Ditto.
10638 * ax-gdb.c (gen_var_ref): Ditto.
10639 * breakpoint.c (print_one_breakpoint): Ditto.
10640 * buildsym.c (finish_block): Ditto.
10641 * c-valprint.c (c_val_print): Ditto.
10642 * expprint.c (print_subexp): Ditto.
10643 * findvar.c (locate_var_value): Ditto.
10644 * infcmd.c (jump_command): Ditto.
10645 * linespec.c (decode_line_2, decode_compound): Ditto.
10646 * maint.c (maintenance_translate_address): Ditto.
10647 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10648 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10650 * p-valprint.c (pascal_val_print): Ditto.
10651 * stabsread.c (define_symbol): Ditto.
10652 * stack.c (print_frame, frame_info, print_block_frame_locals)
10653 (print_frame_arg_vars, return_command): Ditto.
10654 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10655 * symmisc.c (print_symbol): Ditto.
10656 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10657 (compare_search_syms, print_symbol_info, print_msymbol_info)
10658 (rbreak_command): Ditto.
10659 * tracepoint.c (tracepoints_info): Ditto.
10660 * typeprint.c (typedef_print): Ditto.
10661 * valops.c (value_of_variable, hand_function_call): Ditto.
10662 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10663 * ada-typeprint.c: Update Copyright.
10664 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10665 * tracepoint.c, cli/cli-cmds.c: Ditto.
10667 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10669 * frame.c (generic_unwind_get_saved_register): Make non-static.
10670 * frame.h (generic_unwind_get_saved_register): Declare.
10671 * mips-tdep.c (read_next_frame_reg): Fetch register from
10672 current regcache when frame is NULL.
10673 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10675 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10676 instead of frame_register_unwind().
10678 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10680 * remote-sim.c (gdbsim_insert_breakpoint)
10681 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10684 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10686 * remote.c (_initialize_remote): Add commands "set/show remote
10687 hardware-watchpoint-limit" and "set/show remote
10688 hardware-breakpoint-limit".
10689 (remote_hw_watchpoint_limit): Initialize to -1.
10690 (remote_hw_breakpoint_limit): Ditto.
10691 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10693 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10695 * coff-pe-read.c: New file - support reading of minimal symbols from a
10696 portable executable using the export table.
10697 * coff-pe-read.h: New file.
10698 * coffread.c: Include coff-pe-read.h.
10699 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10700 debugging symbols found.
10701 * Makefile.in (SFILES): Add coff-pe-read.o.
10702 (coff_pe_read_h): Define.
10703 (COMMON_OBS): Add coff-pe-read.o.
10704 (coffread.o): Add coff_pe_read_h dependency.
10705 (coff-pe-read.o): New target.
10707 2003-02-19 David Carlton <carlton@math.stanford.edu>
10709 * Makefile.in (SFILES): Add block.c.
10711 (COMMON_OBS): Add block.o.
10713 (x86-64-tdep.o): Add $(block_h).
10714 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10715 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10716 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10717 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10718 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10719 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10720 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10721 * value.h: Add opaque declaration for struct block.
10722 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10723 * ada-lang.h: Ditto.
10724 * x86-64-tdep.c: #include "block.h"
10725 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10726 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10727 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10728 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10729 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10730 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10731 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10732 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10733 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10734 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10735 * symtab.c (block_function): Ditto.
10736 (contained_in): Ditto.
10737 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10738 block.h. Add opaque declaration for struct block.
10739 * symtab.h: Move block_function and contained_in declarations to
10740 block.h. Add opaque declarations for struct block, struct
10742 (struct block): Move to block.h.
10743 (struct blockvector): Ditto.
10744 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10745 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10746 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10747 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10748 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10750 * block.c: New file.
10751 * block.h: New file.
10753 2003-02-19 Theodore A. Roth <troth@openavr.org>
10755 * avr-tdep.c (avr_extract_return_value): Remove function.
10756 (avr_store_return_value): Remove function.
10757 (avr_extract_struct_value_address): Remove function.
10758 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10760 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10762 * rs6000-tdep.c: Include "gdb_assert.h".
10763 (registers_e500): Add "acc" and "spefscr".
10764 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10765 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10766 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10768 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10770 2003-02-18 Keith Seitz <keiths@redhat.com>
10772 * Makefile.in: Add gdbtk-interps.c.
10774 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10776 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10777 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10779 2003-02-18 Andrew Cagney <cagney@redhat.com>
10781 * symtab.h (struct objfile): Add opaque declaration.
10783 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10785 From Jim Ingham <jingham@apple.com>:
10786 * dbxread.c (process_one_symbol): Use last_function_start rather
10787 than function_start_offset to find the real beginning of the
10788 current function. The latter is just the text section offset on
10789 some systems, the former is always the real function start.
10791 2003-02-17 Andrew Cagney <cagney@redhat.com>
10793 * configure.in: Revert ${target} != ${host}.
10795 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10797 * configure.in (Makefile): Use the test ${target} != ${host},
10798 instead of the absence of the "nm.h" file, to determine of the
10799 configuration non-native.
10800 * configure: Regenerate.
10802 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10804 From Brian Ford <ford@vss.fsi.com>
10806 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10807 conditionalize tui_active test.
10808 (lookup_cmd_1): Ditto.
10810 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10812 * configure.in: Add check for _etext.
10813 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10815 * config.in, configure: regenerated.
10817 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10819 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10821 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10823 * main.c (tui_version): Delete variable.
10824 (captured_main): When --tui, set interpreter_p to "tui" instead of
10825 enabling tui_version.
10826 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10828 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10829 * cli/cli-cmds.c (disassemble_command): Ditto.
10830 * defs.h (tui_version): Delete declaration.
10831 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10832 (tui-interp.o): Add rules.
10833 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10835 2003-02-14 Christopher Faylor <cgf@redhat.com>
10837 * win32-nat.c (register_loaded_dll): Correctly set address range for
10840 2003-02-12 Jason Molenda (jmolenda@apple.com)
10842 * symmisc.c (print_objfile_statistics): Include information about
10843 the number of psymtabs and symtabs in each object file.
10845 2003-02-13 Keith R Seitz <keiths@redhat.com>
10847 * main.h (struct captured_main_args): Add interpreter_p.
10848 * main.c (captured_main): Initialize interpreter_p from context.
10849 * gdb.c (main): Set interpreter_p argument.
10850 * Makefile.in (gdb.o): Add dependency for interps.h.
10852 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10854 * event-top.c (cli_command_loop): Delete declaration.
10855 (_initialize_event_loop): Delete function setting event_loop_hook.
10856 * event-top.h (cli_command_loop): Declare. Update copyright.
10857 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10858 * interps.c (current_interp_command_loop): When event_loop_p, call
10861 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10863 * interps.h (interp_command_loop_ftype): Change return type to
10866 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10868 * x86-64-tdep.c (x86_64_extract_return_value)
10869 (x86_64_store_return_value): Use regcache instead of regbuf.
10870 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10871 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10873 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10875 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10876 * aclocal.m4: Regenerate.
10877 * configure: Regenerate.
10879 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10880 TCL_LD_SEARCH_FLAGS.
10882 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10884 * dwarf2cfi.c: Reindented.
10886 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10888 * interps.c (clear_interpreter_hooks): Convert function definition
10891 2003-02-07 David Carlton <carlton@math.stanford.edu>
10893 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10895 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10897 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10898 (struct type): ...to here.
10899 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10901 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10902 (replace_type): Set length on all type variants for a given type.
10904 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10906 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10908 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10910 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10912 * Makefile.in (symm-nat.o): Update dependencies.
10913 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10914 (lynx-nat.o, ia64-linux-nat.): Ditto.
10915 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10916 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10917 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10919 * Makefile.in (inflow_h): Define.
10920 (procfs.o, inflow.o, procfs.o): Update dependencies.
10921 * inftarg.c (child_stop): Delete extern declaration of
10922 inferior_process_group. Include "inflow.h".
10923 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10924 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10925 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10926 (our_process_group, inferior_process_group): Extern declarations.
10928 * procfs.c: Include "gdb_assert.h".
10930 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10931 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10932 * jv-typeprint.c (java_type_print_base): Ditto.
10933 * typeprint.c (typedef_print): Eliminate STREQ.
10934 * cli/cli-script.c (define_command, define_command): Ditto.
10935 * main.c (captured_main): Ditto.
10936 * values.c (lookup_internalvar): Ditto.
10937 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10938 within `if' conditional.
10939 * linespec.c (decode_line_2): Ditto.
10940 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10941 (bfd_openw_with_cleanup): Ditto.
10943 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10945 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10946 legacy_extract_return_value and store_return_value to
10947 legacy_return_value.
10949 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10951 * win32-nat.c (get_relocated_section_addrs): New function. Find
10952 section load addresses for symbol handling in relocated DLLs.
10953 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10955 2003-02-05 Fred Fish <fnf@intrinsity.com>
10957 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10959 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10961 (angel_RDI_info): Ditto.
10962 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10964 (threads_continue_all_with_signals): Ditto.
10966 2003-02-05 Jim Ingham <jingham@apple.com>
10967 Keith Seitz <keiths@redhat.com>
10968 Elena Zannoni <ezannoni@redhat.com>
10969 Andrew Cagney <ac131313@redhat.com>
10971 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10972 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10973 (SUBDIR_MI_OBS): Add "mi-interp.o".
10974 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10975 (SFILES): Add "interps.c".
10976 (COMMON_OBS): Add "interps.o".
10977 (interps_h, mi_main_h): Define.
10978 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10979 (mi-main.o, main.o, event-top.o): Update dependencies.
10980 * cli/cli-interp.c: New file.
10981 * interps.h, interps.c: New files.
10982 * top.c: (gdb_init): Don't install the default interpreter, handed
10984 * main.c: Include "interps.h".
10985 (interpreter_p): Note that it should malloc'ed.
10986 (captured_command_loop): Call current_interp_command_loop.
10987 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10988 xfree and xstrdup when updating interpreter_p. Install the
10989 default interpreter. Add hack to stop mi1's copyright notice
10991 * event-top.h (gdb_setup_readline): Declare.
10992 (gdb_disable_readline): Declare.
10993 * event-top.c: Include "interps.h".
10994 (display_gdb_prompt): Call current_interp_display_prompt_p.
10995 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10996 gdb_stdlog, and gdb_stdtarg.
10997 (_initialize_event_loop): Don't call gdb_setup_readline.
10998 * cli-out.c (cli_out_set_stream): New function.
10999 * cli-out.h (cli_out_set_stream): Declare.
11001 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11003 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11004 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11005 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11006 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11007 config/i386/i386v42mp.mt: Removed.
11009 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11011 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11014 2003-02-05 Michael Chastain <mec@shout.net>
11016 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11017 2.12.1 and earlier versions.
11019 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11021 Remove orphaned hosts, targets and files.
11022 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11023 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11024 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11025 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11026 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11027 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11028 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11029 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11030 * config/sparc/tm-sp64sim.h: Delete.
11031 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11033 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11034 mips*-dec-mach3* targets.
11036 2003-02-04 Michael Chastain <mec@shout.net>
11038 * NEWS: Fix typo: sepcifying -> specifying.
11040 2003-02-04 Michael Chastain <mec@shout.net>
11042 * dwarfread.c: Add documentation on the state of dwarf-1,
11043 looking towards obsoletion.
11045 2003-02-03 Michael Chastain <mec@shout.net>
11047 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11048 gdb/testsuite/gdb.c++/pr-1023.exp.
11050 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11052 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11053 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11055 * utils.c (init_page_info): Delete reference to MPW in comments.
11056 * main.c (captured_main): Delete #ifdef MPW.
11058 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11060 * NEWS: Note that the m32r-*-elf* is obsolete.
11061 * monitor.c (monitor_expect): Obsolete reference to m32r.
11062 * configure.tgt: Mark m32r-*-elf* as obsolete.
11063 * MAINTAINERS: Mark m32k as obsolete.
11064 * m32r-rom.c: Obsolete file.
11065 * config/m32r/m32r.mt: Obsolete file.
11066 * config/m32r/tm-m32r.h: Obsolete file.
11067 * m32r-stub.c: Obsolete file.
11068 * m32r-tdep.c: Obsolete file.
11070 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11072 * NEWS: Mention that the z8k-zilog-none is obsolete.
11073 * MAINTAINERS: Mark z8k as obsolete.
11074 * configure.tgt: Obsolete the z8k-*-coff* target.
11075 * config/z8k/z8k.mt: Obsolete file.
11076 * config/z8k/tm-z8k.h: Obsolete file.
11077 * z8k-tdep.c: Obsolete file.
11079 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11081 * NEWS: Mention that the mn10200-elf is obsolete.
11082 * configure.tgt: Obsolete mn10200-*-* target.
11083 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11084 mention that the mn10200 is obsolete.
11085 * breakpoint.h: Ditto.
11086 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11087 * config/mn10200/mn10200.mt: Obsolete file.
11088 * config/mn10200/tm-mn10200.h: Obsolete file.
11089 * mn10200-tdep.c: Obsolete file.
11091 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11093 * MAINTAINERS: Mark h8500 as obsolete.
11094 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11095 * findvar.c (value_from_register): Ditto.
11096 * h8500-tdep.c: Mark file as obsolete.
11097 * config/h8500/h8500.mt: Ditto.
11098 * config/h8500/tm-h8500.h: Ditto.
11099 * NEWS: Mention that h8500 is obsolete.
11101 2003-02-04 David Carlton <carlton@math.stanford.edu>
11103 * objfiles.c (allocate_objfile): Always set name. Add comment at
11105 * jv-lang.c (get_dynamics_objfile): Add comment.
11107 2003-02-04 David Carlton <carlton@math.stanford.edu>
11109 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11110 * printcmd.c (build_address_symbolic): Replace uses of
11111 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11112 SYMBOL_NAME, and asm_demangle.
11115 2003-02-04 David Carlton <carlton@math.stanford.edu>
11117 * linespec.c (decode_compound): Extract code into
11119 (lookup_prefix_sym): New function.
11121 2003-02-04 David Carlton <carlton@math.stanford.edu>
11123 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11124 FLOAT_COERCION_BADNESS.
11125 * gdbtypes.c (rank_one_type): Replace all uses of
11126 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11128 2003-02-04 Jim Blandy <jimb@redhat.com>
11130 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11131 section, let dwarf_macinfo_section point to it, not
11134 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11136 Pointed out by Anton Blanchard <anton@samba.org>.
11137 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11138 (ppc_linux_at_sigtramp_return_path): Use it.
11140 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11142 * defs.h (streq): Add prototype.
11143 * utils.c (streq): New function.
11145 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11146 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11147 * mdebugread.c (new_symbol): Likewise.
11148 * stabsread.c (define_symbol): Likewise.
11149 * coffread.c (process_coff_symbol): Likewise.
11150 * dwarfread.c (new_symbol): Likewise.
11152 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11153 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11155 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11156 SYMBOL_INIT_DEMANGLED_NAME.
11157 * objfiles.c: Include "hashtab.h".
11158 (allocate_objfile): Call htab_set_functions_ex for the
11159 demangled_names_hash.
11160 (free_objfile): Call htab_delete for the demangled_names_hash.
11161 * objfiles.h (struct htab): Add declaration.
11162 (struct objfile): Add demangled_names_hash.
11163 * symfile.c: Include "hashtab.h".
11164 (reread_symbols): Call htab_delete for the demangled_names_hash.
11165 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11166 SYMBOL_NAME in the bcache.
11167 * symtab.c: Include "hashtab.h". Update comments.
11168 (create_demangled_names_hash, symbol_set_names): New functions.
11169 (symbol_find_demangled_name): New function, broken out from
11170 symbol_init_demangled_names.
11171 (symbol_init_demangled_names): Use it.
11172 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11173 (SYMBOL_SET_NAMES): New macro.
11174 (symbol_set_names): Add prototype.
11176 2003-02-03 Jim Blandy <jimb@redhat.com>
11178 Use a single, consistent representation for an empty minimal
11179 symbol table in an objfile.
11180 * objfiles.c (terminate_minimal_symbol_table): New function.
11181 (allocate_objfile): Call it.
11182 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11183 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11185 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11186 objfile has minimal symbols, compare minimal_symbol_count to zero,
11187 instead of comparing msymbols with NULL.
11188 * objfiles.c (have_minimal_symbols): Same.
11189 * solib-sunos.c (solib_add_common_symbols): Call
11190 terminate_minimal_symbol_table.
11191 * symfile.c (reread_symbols): Same.
11193 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11195 * s390-tdep.c (s390_address_class_type_flags)
11196 (s390_address_class_type_flags_to_name)
11197 (s390_address_class_name_to_type_flags): New functions.
11198 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11199 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11201 2003-02-03 Michael Snyder <msnyder@redhat.com>
11203 * arm-tdep.c: Fix spell-o in comment.
11205 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11207 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11208 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11209 error messages to contain BFD filename.
11211 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11213 Fix PR gdb/742 gdb/743 gdb/877
11214 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11215 (do_mixed_source_and_assembly): Use
11216 make_cleanup_ui_out_tuple_begin_end and
11217 make_cleanup_ui_out_tuple_begin_end.
11218 (do_mixed_source_and_assembly): Ditto.
11219 * thread.c (do_captured_list_thread_ids): Ditto.
11220 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11221 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11222 ui_out_tuple_end): Delete prototypes.
11223 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11224 ui_out_list_end, ui_out_tuple_end): Delete.
11226 From Kevin Buettner <kevinb@redhat.com>:
11227 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11228 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11229 (do_cleanup_table_end): New functions.
11230 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11231 Use cleanups to invoke_ui_out_tuple_end().
11232 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11233 * cli/cli-setshow.c (cmd_show_list): Use
11234 make_cleanup_ui_out_tuple_begin_end.
11236 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11238 * frame.c (frame_unwind_register): New function.
11239 (frame_unwind_unsigned_register): Use.
11240 (frame_unwind_signed_register): Use.
11241 (frame_read_register): New function.
11242 * frame.h (frame_unwind_register): Declare.
11243 (frame_read_register): Declare.
11245 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11246 and frame_unwind_register instead of read_memory, write_register
11247 and deprecated_write_register_bytes.
11249 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11251 * frame.h: Note that namelen can be negative.
11252 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11255 * NEWS: Mention that the d10v's `regs' command is deprecated.
11256 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11257 (d10v_print_registers_info): New function.
11258 (show_regs): Call d10v_print_registers_info.
11259 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11261 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11263 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11264 lost in the previous patch.
11266 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11268 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11269 * stack.c (print_frame_info_base): Output complete FRAME tuple
11270 for synthesized frames.
11272 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11274 * mips-nat.c (zerobuf): Delete.
11275 (fetch_inferior_registers): Alloc local zerobuf.
11276 (fetch_core_registers): Alloc local zerobuf.
11277 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11278 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11279 * thread-db.c (thread_db_store_registers): Ditto.
11280 * sh-tdep.c (sh_do_register): Ditto.
11281 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11282 * remote-sim.c (gdbsim_store_register): Ditto.
11283 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11284 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11285 * monitor.c (monitor_supply_register): Ditto.
11286 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11287 * mips-nat.c (fetch_inferior_registers): Ditto.
11288 * m68klinux-nat.c (fetch_register): Ditto.
11289 * lynx-nat.c (fetch_inferior_registers): Ditto.
11290 (fetch_inferior_registers): Ditto.
11291 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11292 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11293 (hpux_thread_store_registers): Ditto.
11294 * hppah-nat.c (fetch_register): Ditto.
11295 * hppab-nat.c (fetch_register): Ditto.
11296 * hppa-tdep.c (pa_register_look_aside): Ditto.
11297 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11298 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11300 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11302 * gdbarch.sh: Explictly specify all method levels. When a
11303 variable with an empty level, provide a non-multi-arch default.
11304 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11305 * gdbarch.h: Re-generate.
11306 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11307 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11309 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11311 * defs.h (host_pointer_to_address): Delete declaration.
11312 (address_to_host_pointer): Delete declaration.
11313 * utils.c (host_pointer_to_address): Delete function.
11314 (address_to_host_pointer): Delete function.
11315 * procfs.c (procfs_address_to_host_pointer): New function.
11316 * procfs.c (proc_set_watchpoint): Use.
11317 (procfs_can_use_hw_breakpoint): Update comments.
11318 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11319 (som_solib_add): Use.
11320 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11321 * hppa-tdep.c (unwind_command): Use.
11323 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11325 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11328 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11329 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11330 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11331 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11332 (define_symbol): Update.
11333 * symfile.c (generic_load): Remove references to nindy.
11334 * symtab.c: Remove references to nindy.
11336 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11338 * infcmd.c (print_float_info): Delete code conditional on
11340 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11341 * config/m68k/nm-apollo68b.h: Ditto.
11342 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11343 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11344 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11346 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11348 * config/i386/tm-i386os9k.h: Removed.
11350 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11351 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11352 they're identical to i[3456]86-*-sysv* now.
11353 * config/i386/i386v32.mh: Removed.
11354 * config/i386/xm-i386v32.h: Removed.
11355 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11357 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11359 * config/i386/i386dgux.mh: Removed.
11360 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11362 * configure.in: Fix typo.
11363 * configure: Regenerated.
11365 2003-01-31 David Carlton <carlton@math.stanford.edu>
11367 * dwarf2read.c (dwarf2_locate_sections): Set
11368 dwarf_ranges_section.
11370 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11372 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11373 * utils.c: Update comments documenting legitimate uses of PTR.
11375 * utils.c: Re-indent.
11377 * config/djgpp/fnchange.lst: Delete nindy files.
11378 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11379 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11380 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11381 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11382 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11383 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11384 * Makefile.in (init.c): Remove nindy references.
11385 (saber_gdb): Delete rule.
11386 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11387 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11389 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11390 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11391 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11392 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11393 nindy-share/stop.h.
11394 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11395 * saber.suppress: Delete file.
11397 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11399 * dbxread.c (stabs_data): New static variable.
11400 (fill_symbuf): Support an in-memory buffer for stabs data.
11401 (stabs_seek): New function.
11402 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11403 (read_ofile_symtab): Use stabs_seek.
11404 (elfstab_build_psymtabs): Take an asection* instead of
11405 an offset and size. Relocate the stabs data if necessary.
11406 Save the section* for dbx_psymtab_to_symtab.
11407 * dwarf2read.c: Add section variables for each debug section.
11408 (dwarf2_locate_sections): Fill them in.
11409 (dwarf2_read_section): Take an asection* argument.
11410 Relocate the section contents if necessary.
11411 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11412 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11413 it to dwarf2_read_section.
11414 (dwarf2_build_frame_info): Update callers.
11415 * elfread.c (elf_symfile_read): Update call to
11416 elfstab_build_psymtabs.
11417 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11418 (DBX_STAB_SECTION): New macro.
11419 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11420 * symfile.c (symfile_dummy_outputs): New function.
11421 (symfile_relocate_debug_section): New function.
11422 * symfile.h (symfile_relocate_debug_section): Add prototype.
11424 2003-01-31 Richard Henderson <rth@redhat.com>
11426 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11427 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11428 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11429 * alpha-tdep.c (alpha_register_name): Add "unique".
11430 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11431 (ALPHA_UNIQUE_REGNUM): New.
11432 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11434 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11436 * README: Remove reference to Ericsson 1800 monitor.
11437 * Makefile.in (remote-es.o): Delete rule.
11438 (ALLDEPFILES): Delete remote-es.c.
11439 * remote-es.c: Delete file.
11440 * config/m68k/es1800.mt: Delete file.
11441 * config/djgpp/fnchange.lst: Update.
11442 * configure.tgt: Delete m68*-ericsson-* target.
11444 2003-01-31 Adam Fedor <fedor@gnu.org>
11446 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11447 Remove duplicate/shadowing variable of same name.
11449 2003-01-30 Jim Blandy <jimb@redhat.com>
11451 * symfile.c (find_separate_debug_file): Assert that the objfile's
11452 directory name we compute ends with a slash, and then assume that
11453 that's so everywhere we use it.
11455 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11457 * valops.c (value_assign): Flush frame cache after stores to memory
11460 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11462 * Makefile.in (mon960-rom.o): Delete rule.
11463 * mon960-rom.c: Delete file.
11465 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11467 * d10v-tdep.c: Include "frame-unwind.h".
11468 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11470 (next_addr, uses_frame): Delete.
11471 (struct d10v_unwind_cache): Define.
11472 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11473 Use info instead of next_addr and uses_frame globals.
11474 (d10v_frame_init_saved_regs): Delete function.
11475 (d10v_init_extra_frame_info): Delete function.
11476 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11477 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11478 init_frame_pc or frame_saved_pc.
11479 (d10v_pop_frame): Delete function.
11480 (do_d10v_pop_frame): Delete function.
11481 (d10v_frame_chain): Delete function.
11482 (d10v_frame_chain_valid): Delete function.
11483 (d10v_frame_pc_unwind): New function.
11484 (d10v_frame_id_unwind): New function.
11485 (saved_regs_unwinder): New function.
11486 (d10v_frame_register_unwind): New function.
11487 (d10v_frame_pop): New function.
11488 (d10v_frame_unwind): New variable.
11489 (d10v_frame_p): New function.
11490 (d10v_frame_saved_pc): Delete function.
11491 * Makefile.in (d10v-tdep.o): Update dependencies.
11493 2003-01-30 J. Brobecker <brobecker@gnat.com>
11495 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11496 causing some regressions due to a change in the default value
11499 2003-01-29 Richard Henderson <rth@redhat.com>
11500 Elena Zannoni <ezannoni@redhat.com>
11501 Daniel Jacobowitz <drow@mvista.com>
11504 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11506 (RANGES_SECTION): New.
11507 (dwarf_ranges_buffer): New variable.
11508 (struct comp_unit_head): Add member "die".
11509 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11510 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11511 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11512 (dwarf2_locate_sections): Likewise.
11513 (dwarf2_build_psymtabs): Read .debug_ranges.
11514 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11515 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11516 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11517 Look for DW_AT_ranges and return the bounding box.
11519 2003-01-29 Brian Ford <ford@vss.fsi.com>
11521 * win32-nat.c (cygwin_pid): Removed as unused.
11522 (child_attach): Try fall back to Cygwin pid.
11524 2003-01-29 Jim Blandy <jimb@redhat.com>
11526 * objfiles.h (struct objfile): Doc fix.
11528 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11530 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11531 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11532 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11533 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11534 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11535 (FRAME_SAVED_PC): Change to a function with predicate.
11536 * gdbarch.h, gdbarch.c: Re-generate.
11538 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11540 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11542 * complaints.c (complain): Delete function.
11543 * complaints.h (struct deprecated_complaint): Delete definition.
11544 (complain): Delete declaration.
11546 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11548 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11551 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11553 * sentinel-frame.h, sentinel-frame.c: New files.
11554 * Makefile.in (frame.o): Update dependencies.
11555 (SFILES): Add sentinel-frame.c.
11556 (sentinel_frame_h): Define.
11557 (COMMON_OBS): Add sentinel-frame.o.
11558 (sentinel-frame.o): Specify dependencies.
11559 * frame.c: Include "sentinel-frame.h".
11560 (frame_register_unwind): Rewrite assuming that there is always a a
11562 (frame_register, generic_unwind_get_saved_register): Ditto.
11563 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11564 (create_sentinel_frame, unwind_to_current_frame): New functions.
11565 (get_current_frame): Rewrite using create_sentinel_frame and
11566 unwind_to_current_frame. When possible, always create a frame.
11567 (create_new_frame): Set next to the sentinel frame.
11568 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11569 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11570 ID cache when necessary.
11571 (frame_saved_regs_id_unwind): Use frame_relative_level.
11572 (deprecated_generic_get_saved_register): Use frame_relative_level,
11573 get_frame_saved_regs, get_frame_pc, get_frame_base and
11575 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11578 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11580 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11582 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11584 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11585 (maintenance_set_profile_cmd): Use error () instead of warning ().
11587 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11589 * configure.in: Check that -pg works if using --enable-profiling.
11590 Check for monstartup and _mcleanup regardless of --enable-profiling.
11591 * maint.c: Check for monstartup and _mcleanup before using them.
11592 * config.in: Regenerated.
11593 * configure: Regenerated.
11595 2003-01-24 Nick Clifton <nickc@redhat.com>
11597 * Add sh2e support:
11599 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11601 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11602 (sh2e_show_regs): New.
11603 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11604 * config/sh/tm-sh.h: Added sh2e to comments.
11606 2003-01-23 Jim Blandy <jimb@redhat.com>
11608 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11609 symbols found)" message here; we haven't checked for a separate
11610 debug info file yet, so we don't know yet.
11611 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11612 we've looked everywhere. Also, there's no need to print a special
11613 message when we're loading the separate debug info file: the one
11614 symbol_file_add prints is fine.
11616 2003-01-23 Alexander Larsson <alexl@redhat.com>
11617 Jim Blandy <jimb@redhat.com>
11619 Add support for executables whose debug info has been separated
11620 out into a separate file, leaving only a link behind.
11621 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11622 and separate_debug_objfile_backlink.
11623 (put_objfile_before): New declaration.
11624 * symfile.c: #include "filenames.h".
11625 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11626 debug info in a separate file, read that, too. Save the addrs
11627 argument, so we can use it again to read the separated debug info;
11628 syms_from_objfile modifies the table we pass it.
11629 (reread_symbols): After re-reading an objfile, call
11630 reread_separate_symbols to refresh its separate debug info
11631 objfile, if it has one.
11632 (reread_separate_symbols, find_separate_debug_file,
11633 get_debug_link_info, separate_debug_file_exists): New functions.
11634 (debug_file_directory): New global var.
11635 (_initialize_symfile): Initialize debug_file_directory, and
11636 provide the new `set debug-file-directory' command to let the user
11638 * objfiles.c (free_objfile): If this objfile has its debug info in
11639 a separate objfile, free that one too. If this is itself a
11640 separate debug info objfile, clear our parent's backlink.
11641 (put_objfile_before): New function.
11642 * utils.c (gnu_debuglink_crc32): New function.
11643 * defs.h (gnu_debuglink_crc32): New declaration.
11644 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11645 * configure.in: Handle --with-separate-debug-dir config option.
11646 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11647 * acconfig.h (DEBUGDIR): New macro.
11648 * configure, aclocal.m4, config.in: Regenerated.
11650 2003-01-22 Jim Blandy <jimb@redhat.com>
11652 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11653 like the old symbol_file_add, but taking new arguments: you can
11654 now pass in either a `struct section_addr_info' list to say where
11655 each section is loaded, or a `struct section_offsets' table. Pass
11656 these new arguments through to syms_from_objfile as appropriate.
11657 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11658 with the appropriate quiescent values for the new arguments.
11660 * symfile.c: #include "gdb_assert.h".
11661 (syms_from_objfile): Add the ability to pass in a section offset
11662 table directly, as an alternative to the section_addr_info table.
11663 Document arguments better.
11664 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11665 * symfile.h (syms_from_objfile): Update declaration.
11666 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11668 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11670 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11672 Original patch by Tom Tromey <tromey@cygnus.com> and
11673 Jason Molenda <jmolenda@apple.com>.
11674 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11675 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11676 * NEWS: Mention profiling.
11677 * configure.in (--enable-gdbtk): Fix typo.
11678 (--enable-profiling): New. Set PROFILE_CFLAGS.
11679 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11681 (profiling_state): New variable.
11682 (mcleanup_wrapper): New function.
11683 (_initialize_maint): Remove NOTYET, fix call to
11684 add_setshow_boolean_cmd for "maint set profile".
11685 * configure: Regenerated.
11687 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11689 * Makefile.in (install-gdbtk): Install PNG images too.
11691 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11693 * exec.c (text_start): Delete global variable.
11694 (exec_file_attach): Make text_start local to the function.
11695 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11696 * valops.c (hand_function_call): Delete code that handles
11697 BEFORE_TEXT_END and AFTER_TEXT_END.
11698 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11699 of CALL_DUMMY_LOCATION.
11700 * gdbarch.c: Regenerate.
11701 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11702 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11703 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11704 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11705 (text_end): Delete extern declaration.
11707 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11709 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11710 * blockframe.c (backtrace_below_main): Move to "frame.c".
11711 (frame_chain_valid): Delete check for backtrace_below_main.
11712 (_initialize_blockframe): Delete initialization, move ``set
11713 backtrace-below-main'' command to "frame.c".
11714 (do_flush_frames_sfunc): Delete function.
11715 * frame.c: Include "command.h" and "gdbcmd.h".
11716 (frame_type_from_pc): New function.
11717 (create_new_frame): Use frame_type_from_pc.
11718 (legacy_get_prev_frame): New function.
11719 (get_prev_frame): Rewrite. When an old style frame, call
11720 legacy_get_prev_frame. Otherwize, unwind the PC first.
11721 (_initialize_frame): Add ``set backtrace-below-main'' command.
11722 * Makefile.in (frame.o): Update dependencies.
11724 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11726 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11727 DEPRECATED_REGISTERS_INFO.
11729 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11731 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11732 Maintainers'. Update `Various Maintainers'.
11734 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11736 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11737 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11738 Suppress actual parameters when `-'.
11739 * gdbarch.h, gdbarch.c: Regenerate.
11741 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11743 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11744 code handling dummy frames.
11746 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11748 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11749 (struct frame_unwind): Add field pop.
11750 * frame.h (frame_pop): Declare.
11751 * frame.c (frame_saved_regs_pop): New function.
11752 (trad_frame_unwinder): Add frame_saved_regs_pop.
11753 (frame_pop): New function.
11754 * dummy-frame.c (dummy_frame_pop): New function.
11755 (discard_innermost_dummy): New function.
11756 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11757 (dummy_frame_unwind): Add dummy_frame_pop.
11758 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11759 * valops.c (hand_function_call): Ditto.
11760 * stack.c (return_command): Ditto.
11762 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11764 * cris-tdep.c: Fix function declaration indentation.
11765 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11766 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11767 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11768 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11769 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11770 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11772 2003-01-18 Michael Chastain <mec@shout.net>
11774 * README (Unpacking and Installation -- quick overview):
11775 Warn against ".../gdb-5.3/gdb/configure".
11777 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11779 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11780 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11781 (struct frame_unwind): Declare opaque.
11782 (dummy_frame_p): Declare function.
11783 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11784 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11785 * dummy-frame.c: Include "frame-unwind.h".
11786 (dummy_frame_p): New function.
11787 (dummy_frame_unwind): New variable.
11788 * frame.c: Include "frame-unwind.h".
11789 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11790 to use the new unwind field.
11791 (set_unwind_by_pc): Delete function.
11792 (create_new_frame, get_prev_frame): Set unwind field using
11793 frame_unwind_find_by_pc.
11794 (trad_frame_unwind, trad_frame_unwinder): New variables.
11795 * frame.h (trad_frame_unwind): Declare variable.
11796 (frame_id_unwind_ftype): Delete declaration.
11797 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11798 (struct frame_unwind): Declare opaque.
11799 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11800 register_unwind with a single unwind pointer.
11801 * frame-unwind.h, frame-unwind.c: New files.
11802 * Makefile.in (SFILES): Add frame-unwind.c.
11803 (frame_unwind_h): Define.
11804 (COMMON_OBS): Add frame-unwind.o.
11805 (frame-unwind.o): Specify dependencies.
11806 (frame.o, dummy-frame.o): Update dependencies.
11808 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11810 * ada-valprint.c: Eliminate PTR.
11811 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11812 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11813 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11814 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11815 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11816 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11817 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11819 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11821 * main.c (captured_main): Don't use PTR.
11822 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11823 * gdbtypes.c (lookup_primitive_typename): Ditto.
11824 (lookup_struct_elt_type): Ditto.
11825 * f-valprint.c (info_common_command): Ditto.
11826 (list_all_visible_commons): Ditto.
11827 * jv-typeprint.c (java_type_print_base): Ditto.
11829 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11830 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11831 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11832 i386-interix-nat.c and i386-interix-tdep.c. Rename
11833 m68klinux-nat.c and m68klinux-tdep.c. Rename
11834 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11835 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11836 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11837 * main.c (captured_main): Use xfree, not free.
11839 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11841 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11842 ID back using a parameter.
11843 * frame.c (frame_id_unwind): Update call.
11844 (frame_saved_regs_id_unwind): Update.
11845 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11846 * dummy-frame.h (struct frame_id): Add opaque declaration.
11847 (dummy_frame_id_unwind): Update declaration.
11849 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11851 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11853 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11855 * MAINTAINERS (Stephen P. Smith): Updated email address.
11857 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11860 * breakpoint.c (until_break_command): Add new argument. Use it to
11861 decide whether to stop only at the current frame or not.
11862 * breakpoint.h (until_break_command): Update prototype.
11863 * infcmd.c (until_command): Add new argument to until_break_command
11865 (advance_command): New function.
11866 (_initialize_infcmd): Update help string for 'until' command.
11867 Add new 'advance' command.
11869 2003-01-14 David Carlton <carlton@math.stanford.edu>
11871 * linespec.c (decode_line_1): Normalize comments.
11872 (set_flags): Ditto.
11873 (locate_first_half): Ditto.
11874 (decode_compound): Ditto.
11875 (symtab_from_filename): Ditto.
11876 (decode_all_digits): Ditto.
11877 (decode_dollar): Ditto.
11878 (find_methods): Ditto.
11879 (find_toplevel_char): Ditto.
11881 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11883 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11884 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11885 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11886 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11887 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11888 * language.c, language.h, m32r-tdep.c: Update copyright.
11889 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11890 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11891 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11892 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11893 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11894 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11896 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11898 * stabsread.h (process_later, resolve_cfront_continuation):
11900 Update copyright years.
11901 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11902 Update copyright year.
11903 * dbxread.c(struct cont_elem): Obsolete.
11904 (process_later, process_now): Obsolete functions.
11905 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11906 Update copyright year.
11907 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11908 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11909 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11910 (parse_partial_symbols): Obsolete cfront support.
11912 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11914 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11915 read_cfront_baseclasses, read_cfront_member_functions,
11916 resolve_cfront_continuation,read_cfront_static_fields,
11917 copy_cfront_struct_fields): Obsolete functions.
11918 (define_symbol, read_one_struct_field): Obsolete cfront support.
11919 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11920 Update Copyright year.
11922 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11924 * stack.c (print_frame_info, print_stack_frame_base_stub,
11925 print_stack_frame_base, show_and_print_stack_frame_stub,
11926 show_and_print_stack_frame, print_only_stack_frame_stub,
11927 print_only_stack_frame): Delete functions.
11928 (print_stack_frame_stub): Call print_frame_info instead of
11929 print_frame_info_base.
11930 (print_frame_info_base): Rename to print_frame_info.
11931 (backtrace_command_1): Call print_frame_info, instead of
11932 print_frame_info_base.
11933 (current_frame_command): Call print_stack_frame, instead of
11934 print_only_stack_frame.
11935 (frame_command): Call print_stack_frame, instead of
11936 show_and_print_stack_frame.
11937 (up_command): Ditto.
11938 (down_command): Ditto.
11939 * frame.h (print_only_stack_frame): Delete prototype.
11940 * infrun.c (normal_stop): Call print_stack_frame, instead of
11941 show_and_print_stack_frame.
11942 * thread.c (info_threads_command): Call print_stack_frame, instead
11943 of print_only_stack_frame.
11945 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11947 * README (Graphical interface to GDB): Update URL. Point at
11950 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11953 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11955 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11958 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11960 * thread-db.c (attach_thread): Prototype.
11961 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11962 thread information (ti), and valid flags (th_valid, ti_valid).
11963 (attach_thread): Move target_pid_to_str call to after the thread
11964 is added to GDB's list. Initialize the cache.
11965 (thread_get_info_callback, thread_db_map_id2thr)
11966 (thread_db_get_info): New functions.
11967 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11968 (thread_db_store_registers, thread_db_thread_alive)
11969 (thread_db_get_thread_local_address): Use them.
11970 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11971 of calling error() for threads in unknown state.
11973 (clear_lwpid_callback): New function.
11974 (thread_db_resume): Use it to clear the cache.
11976 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11978 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11979 (resume_callback): Remove dead code.
11981 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11983 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11985 * gdbarch.h, gdbarch.c: Regenerate.
11986 * stack.c (frame_info): Only initialize the saved registers when
11987 FRAME_INIT_SAVED_REGS_P.
11988 * frame.c (frame_saved_regs_register_unwind): Assert
11989 FRAME_INIT_SAVED_REGS_P.
11990 (deprecated_generic_get_saved_register): Ditto.
11992 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11994 * source.c (openp): Squelch warning about "filename".
11996 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11998 * source.c (openp): If the file does not exist don't necessarily
12001 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12004 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12005 (integer_types_same_name_p): New function.
12006 (rank_one_type): Use it.
12007 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12009 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12011 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12013 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12014 * configure.in: Add --with-sysroot.
12015 * configure: Regenerated.
12016 * main.c (gdb_sysroot): New variable.
12017 (captured_main): Initialize gdb_sysroot.
12018 * defs.h (gdb_sysroot): New extern declaration.
12019 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12021 2003-01-12 Michael Chastain <mec@shout.net>
12023 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12025 2003-01-12 Michael Chastain <mec@shout.net>
12027 * top.c (print_gdb_version): Bump copyright year to 2003.
12029 2003-01-12 David Carlton <carlton@bactrian.org>
12031 * linespec.c (symtab_from_filename): Rename variable 's' to
12034 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12036 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12038 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12040 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12042 * d10v-tdep.c: Include "gdb_assert.h".
12043 (d10v_store_return_value): Rewrite to match current interface.
12044 (d10v_extract_struct_value_address): Ditto.
12045 (d10v_extract_return_value): Ditto.
12046 (d10v_gdbarch_init): Set store_restore_value,
12047 extract_struct_value_address and extract_return_value.
12049 2003-01-12 J. Brobecker <brobecker@gnat.com>
12051 * hpread.c (set_namestring): New procedure replacing the
12052 SET_NAMESTRING macro.
12053 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12054 by calls to set_namestring.
12056 2003-01-11 J. Brobecker <brobecker@gnat.com>
12058 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12059 a compilation warning.
12060 (hpread_process_one_debug_symbol): Likewise.
12062 2003-01-10 David Carlton <carlton@math.stanford.edu>
12064 * linespec.c (decode_line_1): Rename variable 's' to
12066 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12067 (decode_dollar): Ditto.
12068 (decode_variable): Ditto.
12069 (symbol_found): Ditto.
12071 2003-01-09 Michael Chastain <mec@shout.net>
12073 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12075 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12077 * win32-nat.c (set_process_privilege): New function.
12078 (child_attach): Call set_process_privilege() to enable the
12079 SE_DEBUG_NAME user privilege if available in process token.
12081 2003-01-10 J. Brobecker <brobecker@gnat.com>
12083 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12084 compilation error in the previous revision.
12086 2003-01-09 David Carlton <carlton@math.stanford.edu>
12088 * linespec.c: Update copyright.
12090 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12092 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12093 than inferior_ptid.
12094 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12096 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12098 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12100 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12101 (frame_saved_regs_zalloc): Update.
12102 (frame_saved_regs_register_unwind): Update.
12103 (create_new_frame): Update.
12104 (get_prev_frame): Update.
12105 (frame_extra_info_zalloc): Update.
12106 (deprecated_get_frame_saved_regs): Update.
12107 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12108 * cris-tdep.c: Update comment.
12110 * somsolib.h: Fix function indentation.
12111 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12112 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12113 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12114 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12115 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12117 * infrun.c (follow_fork): Use ISO C definition.
12118 * expprint.c (print_subexp): Use xfree instead of free.
12119 * charset.c: Include "gdb_string.h" instead of <string.h>.
12120 (register_iconv_charsets): Use ISO C definition.
12121 (host_charset, target_charset): Ditto.
12122 * Makefile.in (charset.o): Update dependencies.
12123 (mi-cmd-env.o): Update dependencies.
12125 2003-01-08 Andrew Cagney <cagney@redhat.com>
12127 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12130 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12132 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12133 build directories. Save edited gdb output in Mbuild.log. If a
12134 build fails, remove any final GDB executable.
12136 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12138 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12139 replacing hex constants with function names and stripping leading
12140 file name directory prefixes.
12142 2003-01-08 Andrew Cagney <cagney@redhat.com>
12144 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12147 2003-01-08 David Carlton <carlton@math.stanford.edu>
12149 * linespec.c (decode_line_1): Move code into decode_variable.
12150 (decode_variable): New function.
12152 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12154 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12156 2003-01-08 Andrew Cagney <cagney@redhat.com>
12158 * cris-tdep.c (cris_frame_init_saved_regs): Use
12159 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12161 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12162 (sh64_nofp_frame_init_saved_regs): Ditto.
12163 (sh_fp_frame_init_saved_regs): Ditto.
12164 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12165 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12166 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12167 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12169 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12171 * minsyms.c (lookup_minimal_symbol): Update comment.
12172 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12173 (lookup_minimal_symbol_solib_trampoline): Likewise.
12175 2003-01-08 Andrew Cagney <cagney@redhat.com>
12177 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12178 frame_relative_level.
12180 * alpha-tdep.c: Use get_frame_extra_info.
12181 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12182 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12183 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12184 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12186 * alpha-tdep.c: Use get_next_frame.
12187 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12188 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12189 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12190 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12191 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12192 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12193 * xstormy16-tdep.c: Ditto.
12195 2003-01-07 Andrew Cagney <cagney@redhat.com>
12197 * alpha-tdep.c: Use get_frame_base.
12198 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12199 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12200 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12201 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12202 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12203 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12204 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12205 * config/sparc/tm-sparc.h: Ditto.
12207 2003-01-07 Andrew Cagney <cagney@redhat.com>
12209 * frame.c (deprecated_get_frame_context): New function.
12210 (deprecated_set_frame_context): New function.
12211 * frame.h (deprecated_get_frame_context): Declare.
12212 (deprecated_set_frame_context): Declare.
12213 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12214 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12216 2003-01-07 Andrew Cagney <cagney@redhat.com>
12218 * frame.c (deprecated_set_frame_next_hack): New function.
12219 (deprecated_set_frame_prev_hack): New function.
12220 * frame.h (deprecated_set_frame_next_hack): Declare.
12221 (deprecated_set_frame_prev_hack): Declare.
12222 * mcore-tdep.c (analyze_dummy_frame): Use
12223 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12224 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12226 2003-01-07 David Carlton <carlton@math.stanford.edu>
12228 * linespec.c (decode_line_1): Move code into decode_dollar.
12229 (decode_dollar): New function.
12231 2003-01-07 Andrew Cagney <cagney@redhat.com>
12233 * arm-tdep.c (arm_init_extra_frame_info): Use
12234 deprecated_update_frame_base_hack.
12235 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12236 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12237 (fix_frame_pointer): Ditto.
12238 (mn10300_analyze_prologue): Ditto.
12240 2003-01-07 Andrew Cagney <cagney@redhat.com>
12242 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12243 extra_info using frame_extra_info_zalloc.
12244 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12245 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12246 (sh64_init_extra_frame_info): Ditto.
12247 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12248 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12249 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12250 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12251 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12252 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12253 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12254 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12255 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12256 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12257 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12258 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12260 * mn10300-tdep.c (analyze_dummy_frame): Use
12261 deprecated_set_frame_extra_info_hack.
12262 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12264 2003-01-07 J. Brobecker <brobecker@gnat.com>
12266 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12267 class is not scText. These do not define "real" procedures.
12268 (parse_partial_symbols): Likewise.
12270 2003-01-06 Michael Snyder <msnyder@redhat.com>
12272 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12274 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12276 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12277 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12278 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12279 deprecated_frame_xmalloc_with_cleanup.
12280 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12281 deprecated_frame_xmalloc.
12282 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12283 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12285 2003-01-06 Andrew Cagney <cagney@redhat.com>
12287 * x86-64-linux-tdep.c: Include "osabi.h".
12288 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12290 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12292 2003-01-06 Andrew Cagney <cagney@redhat.com>
12294 * MAINTAINERS (Target Instruction Set Architectures): Update
12295 arm-elf. Can be built with -Werror, has been multiarched.
12297 * value.h (unpack_long): Make buffer parameter constant.
12298 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12299 * scm-lang.h (scm_parse): Ditto.
12300 * defs.h (extract_typed_address, extract_address): Ditto.
12301 (extract_long_unsigned_integer): Ditto.
12302 * inferior.h (unsigned_pointer_to_address): Ditto.
12303 (signed_pointer_to_address): Ditto.
12304 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12305 * gdbarch.h, gdbarch.c: Regenerate.
12306 * findvar.c (extract_long_unsigned_integer): Update.
12307 (extract_address): Update.
12308 (extract_typed_address): Update.
12309 (unsigned_pointer_to_address): Update.
12310 * values.c (unpack_long): Update.
12311 (unpack_double): Update.
12312 (unpack_pointer): Update.
12313 (unpack_field_as_long): Update.
12314 * d10v-tdep.c (d10v_pointer_to_address): Update.
12315 * avr-tdep.c (avr_pointer_to_address): Update.
12316 * scm-lang.c (scm_unpack): Update.
12317 * findvar.c (signed_pointer_to_address): Update.
12319 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12321 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12322 since it is in i386-tdep.c.
12324 2003-01-06 J. Brobecker <brobecker@gnat.com>
12326 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12327 failure introduced in the previous change.
12329 2003-01-05 Michael Chastain <mec@shout.net>
12331 * README: Remove references to deleted remote-*.c files:
12332 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12333 remote-nrom.c, remote-os9k.c, remote-udi.c.
12335 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12337 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12338 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12339 i386_get_longjmp_target.
12341 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12343 * arm-tdep.c (prologue_cache): Change to a pointer.
12344 (_initialize_arm_tdep): Allocate prologue_cache.
12345 (check_prologue_cache): Update.
12346 (save_prologue_cache): Update.
12347 (arm_gdbarch_init): Update.
12349 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12351 * stabsread.c (update_method_name_from_physname): Call complaint()
12354 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12356 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12357 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12358 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12360 * blockframe.c: Include "gdbcmd.h" and "command.h".
12361 (backtrace_below_main): New variable.
12362 (file_frame_chain_valid, func_frame_chain_valid)
12363 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12364 (generic_func_frame_chain_valid): Remove functions.
12365 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12366 (_initialize_blockframe): New function.
12367 * Makefile.in (blockframe.o): Update dependencies.
12368 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12369 comment. Call frame_chain_valid ().
12370 * frame.h: Remove old prototypes. Add prototype for
12371 frame_chain_valid and update comments to match.
12372 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12373 Remove old comment.
12374 * gdbarch.h: Regenerated.
12375 * gdbarch.c: Regenerated.
12377 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12378 set_gdbarch_frame_chain_valid.
12379 * avr-tdep.c (avr_gdbarch_init): Likewise.
12380 * cris-tdep.c (cris_gdbarch_init): Likewise.
12381 * frv-tdep.c (frv_gdbarch_init): Likewise.
12382 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12383 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12384 (i386_nw_init_abi): Likewise.
12385 (i386_gdbarch_init): Likewise.
12386 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12388 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12389 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12390 * mips-tdep.c (mips_gdbarch_init): Likewise.
12391 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12392 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12393 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12394 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12395 * s390-tdep.c (s390_gdbarch_init): Likewise.
12396 * sh-tdep.c (sh_gdbarch_init): Likewise.
12397 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12398 * v850-tdep.c (v850_gdbarch_init): Likewise.
12399 * vax-tdep.c (vax_gdbarch_init): Likewise.
12400 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12402 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12403 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12404 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12405 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12406 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12407 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12408 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12409 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12411 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12413 * Makefile.in (acconfig_h): Remove incorrect macro.
12414 (config_h): Define.
12415 (osabi.o): Update dependencies.
12416 * configure.tgt: Set gdb_osabi based on target triplet.
12417 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12418 * configure: Regenerated.
12419 * config.in: Regenerated.
12420 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12421 (GDB_OSABI_DEFAULT): Define if not already defined.
12422 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12423 (set_osabi_string): New variables.
12424 (gdbarch_register_osabi): Add new OS ABI to
12425 gdb_osabi_available_names.
12426 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12427 (set_osabi, show_osabi): New functions.
12428 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12430 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12432 * arch-utils.c (gdbarch_info_init): Set osabi to
12433 GDB_OSABI_UNINITIALIZED.
12434 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12435 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12436 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12437 * gdbarch.c: Regenerated.
12438 * gdbarch.h: Regenerated.
12439 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12441 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12442 * osabi.h (enum gdb_osabi): Move to defs.h.
12443 (gdbarch_init_osabi): Update prototype.
12444 * defs.h (enum gdb_osabi): Moved here.
12445 * Makefile.in: Update dependencies.
12447 * alpha-tdep.h: Don't include "osabi.h".
12448 (struct gdbarch_tdep): Remove osabi member.
12449 * alpha-tdep.c: Include "osabi.h".
12450 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12451 iterate over arches. Update call to gdbarch_init_osabi.
12452 (alpha_dump_tdep): Don't dump osabi.
12453 * alpha-linux-tdep.c: Include "osabi.h".
12454 * alpha-osf1-tdep.c: Include "osabi.h".
12455 * alphafbsd-tdep.c: Include "osabi.h".
12456 * alphanbsd-tdep.c: Include "osabi.h".
12458 * arm-tdep.h: Don't include "osabi.h".
12459 (struct gdbarch_tdep): Remove osabi member.
12460 * arm-tdep.c: Include "osabi.h".
12461 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12462 iterate over arches. Update call to gdbarch_init_osabi.
12463 (arm_dump_tdep): Don't dump osabi.
12464 * arm-linux-tdep.c: Include "osabi.h".
12465 * armnbsd-tdep.c: Include "osabi.h".
12467 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12468 Update call to gdbarch_init_osabi.
12470 * i386-tdep.h: Don't include "osabi.h".
12471 (struct gdbarch_tdep): Remove osabi member.
12472 * i386-tdep.c: Include "osabi.h".
12473 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12474 iterate over arches. Update call to gdbarch_init_osabi.
12475 (i386_dump_tdep): Don't dump osabi.
12476 * i386-linux-tdep.c: Include "osabi.h".
12477 * i386-sol2-tdep.c: Include "osabi.h".
12478 * i386bsd-tdep.c: Include "osabi.h".
12479 * i386gnu-tdep.c: Include "osabi.h".
12480 * i386ly-tdep.c: Include "osabi.h".
12481 * i386nbsd-tdep.c: Include "osabi.h".
12482 * i386obsd-tdep.c: Include "osabi.h".
12484 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12485 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12486 check osabi when iterating over arches. Update call to
12487 gdbarch_init_osabi.
12488 (mips_dump_tdep): Don't dump osabi.
12490 * ns32k-tdep.h: Don't include "osabi.h".
12491 (struct gdbarch_tdep): Remove.
12492 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12493 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12494 allocate tdep. Update call to gdbarch_init_osabi.
12495 (ns32k_dump_tdep): Remove.
12496 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12497 * ns32knbsd-tdep.c: Include "osabi.h".
12499 * ppc-tdep.h: Don't include "osabi.h".
12500 (struct gdbarch_tdep): Remove osabi member.
12501 * rs6000-tdep.c: Include "osabi.h".
12502 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12503 osabi when iterating over arches. Update call to
12504 gdbarch_init_osabi.
12505 (rs6000_dump_tdep): Don't dump osabi.
12506 * ppc-linux-tdep.c: Include "osabi.h".
12507 * ppcnbsd-tdep.c: Include "osabi.h".
12509 * sh-tdep.h: Don't include "osabi.h".
12510 (struct gdbarch_tdep): Remove osabi member.
12511 * sh-tdep.c: Include "osabi.h".
12512 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12513 iterate over arches. Update call to gdbarch_init_osabi.
12514 (sh_dump_tdep): Don't dump osabi.
12515 * shnbsd-tdep.c: Include "osabi.h".
12517 * sparc-tdep.c: Include "osabi.h".
12518 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12519 iterate over arches. Update call to gdbarch_init_osabi.
12520 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12523 * vax-tdep.h: Don't include "osabi.h".
12524 (struct gdbarch_tdep): Remove.
12525 * vax-tdep.c: Include "osabi.h".
12526 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12527 iterate over arches. Don't allocate tdep. Update call
12528 to gdbarch_init_osabi.
12529 (vax_dump_tdep): Remove.
12530 (_initialize_vax_tdep): Update call to gdbarch_register.
12532 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12534 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12536 (breakpoint_re_set_one): Don't fetch the value for a disabled
12539 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12541 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12542 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12543 (COERCE_FLOAT_TO_DOUBLE): Remove.
12544 * gdbarch.c: Regenerate.
12545 * gdbarch.h: Regenerate.
12546 * Makefile.in: Remove value_h from gdbarch_h.
12547 * valops.c (coerce_float_to_double): New variable.
12548 (default_coerce_float_to_double): Remove.
12549 (standard_coerce_float_to_double): Remove.
12550 (value_arg_coerce): Use coerce_float_to_double.
12551 (_initialize_valops): Add "set coerce-float-to-double".
12552 * value.h (default_coerce_float_to_double): Remove prototype.
12553 (standard_coerce_float_to_double): Remove prototype.
12555 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12557 * mdebugread.c (parse_symbol): Likewise.
12558 * stabsread.c (define_symbol): Mark all functions as prototyped.
12560 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12561 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12562 set_gdbarch_coerce_float_to_double.
12563 * arm-tdep.c (arm_gdbarch_init): Likewise.
12564 * frv-tdep.c (frv_gdbarch_init): Likewise.
12565 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12566 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12567 * mips-tdep.c (mips_gdbarch_init): Likewise.
12568 (mips_coerce_float_to_double): Remove.
12569 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12570 (rs6000_coerce_float_to_double): Remove.
12571 * s390-tdep.c (s390_gdbarch_init): Likewise.
12572 * sh-tdep.c (sh_gdbarch_init): Likewise.
12573 (sh_coerce_float_to_double): Remove.
12574 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12575 (sparc_coerce_float_to_double): Remove.
12576 * v850-tdep.c (v850_gdbarch_init): Likewise.
12577 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12578 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12579 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12580 (hppa_coerce_float_to_double): Remove prototype.
12581 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12583 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12585 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12587 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12589 Suggested by Stewart Brown <sb24@avaya.com>:
12590 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12591 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12592 (c_type_print_varspec_suffix): Likewise.
12594 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12596 * configure.in: Don't set and AC_SUBST SUBDIRS.
12597 * configure: Regenerated.
12599 * configure.in: Remove code dealing with shared libraries.
12600 * Makefile.in: Remove HLDFLAGS and HLDENV.
12601 * configure: Regenerated.
12603 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12605 * frame.c (deprecated_frame_xmalloc): New function.
12606 (deprecated_set_frame_saved_regs_hack): New function.
12607 (deprecated_set_frame_extra_info_hack): New function.
12608 * frame.h (deprecated_frame_xmalloc): Declare.
12609 (deprecated_set_frame_saved_regs_hack): Declare.
12610 (deprecated_set_frame_extra_info_hack): Declare.
12612 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12614 * configure.in: Move code that provides the --enable-gdbtk option
12615 right after the code that handles the --enable-tui option, and
12616 polish it somewhat.
12617 * configure: Regenerated.
12619 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12620 AC_CHECK_FUNCS and remove the old check for pread64.
12621 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12622 * acconfig.h (_GNU_SOURCE): Add.
12623 (HAVE_PREAD64): Remove.
12624 * configure, aclocal.m4, config.in: Regenerated.
12626 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12628 * alpha-tdep.c: Use get_frame_saved_regs.
12629 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12630 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12631 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12632 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12633 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12635 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12637 * configure.in: Remove all use of the SUBDIRS variable; add
12638 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12639 code providing the --enable-multi-ice option, and move it right in
12640 front of the code that checks whether gdbserver is supported.
12642 * configure: Regenerated.
12643 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12646 2003-01-03 Andrew Cagney <cagney@redhat.com>
12648 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12649 * avr-tdep.c, cris-tdep.c: Ditto.
12650 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12651 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12653 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12655 * configure.in: Remove --enable-netrom option.
12656 * configure: Regenerated.
12658 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12660 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12661 declaration for `struct re_pattern_buffer' instead.
12662 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12664 2003-01-03 J. Brobecker <brobecker@gnat.com>
12666 * mdebugread.c (parse_symbol): Count until the stEnd matching
12667 the structure name.
12669 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12671 * configure.in: Remove --with-cpu option.
12672 subscripts. Remove evil changequotes here.
12673 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12674 * config.in, configure: Regenerated.
12676 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12677 * configure.in: Cleanup section that sources GDB and BFD configure
12678 subscripts. Remove evil changequotes here.
12679 * config.in, configure: Regenerated.
12681 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12683 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12684 frame accessor methods.
12685 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12686 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12687 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12688 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12689 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12690 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12691 * z8k-tdep.c: Ditto.
12693 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12695 * configure.in: Remove UI_OUT configuration code.
12696 * ada-lang.c: Update assuming UI_OUT is always true.
12697 * Makefile.in (UIOUT_CFLAGS): Remove.
12698 * configure: Regenerated.
12699 * TODO: Remove blurb about elimination of -DUI_OUT.
12701 * configure.in: Move code that provides the --enable-gdbcli,
12702 --enable-gdbmi options right before the code that handles the
12703 --enable-tui option. Polish a bit.
12704 * configure: Regenerated.
12706 * configure.in: Rewrite check for GNU regex and the
12707 --without-included regex option, and move it into the "Checks for
12708 library functions" section. This makes us use the system regex
12709 again by default on systems with version 2 of the GNU C library.
12710 This was apparently broken.
12711 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12712 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12713 * config.in, configure: Regenerated.
12715 * configure.in: Move code that provides the --enable-tui option
12716 before the "Checks for libraries" section. Polish the code
12717 somewhat and set need_curses to yes if we build the TUI. Rewrite
12718 code that looks for a library providing termcap functionality to
12719 match more closely what's done in the Readline library, and move
12720 it into to the "Checks for libraries" section.
12721 * configure: Regenerated.
12722 * Makefile.in (TERMCAP): Remove variable.
12723 * config/i386/go32.mh (TERMCAP): Remove variable.
12725 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12727 * MAINTAINERS: Mention gdb_mbuild.sh.
12728 * gdb_mbuild.sh: Rewrite.
12730 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12732 * configure.in: Fix typo in last change.
12733 * config.in, configure: Regenerated.
12735 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12737 * valarith.c (value_binop): Delete obsolete code and comments.
12738 * configure.host: Ditto.
12739 * buildsym.h (make_blockvector): Ditto.
12740 * buildsym.c (make_blockvector): Ditto.
12741 * defs.h (enum language): Ditto.
12742 (chill_demangle): Ditto.
12743 * elfread.c (elf_symtab_read): Ditto.
12744 * dwarfread.c (CHILL_PRODUCER): Ditto.
12745 (set_cu_language): Ditto.
12746 (handle_producer): Ditto.
12747 * expprint.c (print_subexp): Ditto.
12748 * gdbtypes.c (chill_varying_type): Ditto.
12749 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12750 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12751 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12752 (chill_varying_type): Ditto.
12753 * language.h (_LANG_chill): Ditto.
12754 * language.c (binop_result_type, integral_type): Ditto.
12755 (character_type, string_type, structured_type): Ditto.
12756 (lang_bool_type, binop_type_check): Ditto.
12757 * stabsread.h (os9k_stabs): Ditto.
12758 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12759 (define_symbol, read_type, read_struct_fields): Ditto.
12760 (read_array_type, read_enum_type, read_huge_number): Ditto.
12761 (read_range_type, start_stabs): Ditto.
12762 * symfile.c (init_filename_language_table): Ditto.
12763 (add_psymbol_with_dem_name_to_list): Ditto.
12764 * symtab.c (symbol_init_language_specific): Ditto.
12765 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12766 * symtab.h (struct general_symbol_info): Ditto.
12767 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12768 * typeprint.c (typedef_print): Ditto.
12769 * utils.c (fprintf_symbol_filtered): Ditto.
12770 * valops.c (value_cast, search_struct_field, value_slice): Delete
12772 (varying_to_slice): Delete function.
12773 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12774 (varying_to_slice): Delete declaration.
12775 * MAINTAINERS: Update.
12777 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12779 * configure.in: Reorganize "Checks for library functions section"
12780 a bit. Remove check for `btowc' and `isascii' functions.
12781 * configure: Regenerated.
12783 * acconfig.h (_MSE_INT_H): Remove.
12784 * configure.in: Create "Checks for header files" section, and move
12785 appropriate tests there. Don't check for objlist.h, wchar.h,
12786 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12787 misdetection fix. Also add "Checks for types", "Checks for
12788 compiler characteristics" and "Checks for library functions"
12790 * config.in, configure: Regenerated.
12792 * configure.in: Create "Checks for programs" section, and move
12793 appropriate tests there.
12795 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12797 * configure.in: Create "Checks for libraries" section, and move
12798 appropriate tests there. Cleanup check for wctype in libw. Use
12799 AC_SEARCH_LIBS to see whether we need libsocket.
12800 * configure: Regenerated.
12802 For older changes see ChangeLog-2002
12808 version-control: never