1 2003-10-01 Andrew Cagney <cagney@redhat.com>
3 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
4 use STRUCT_ADDR. When not using "struct return convention", pass
5 "0" to "value_being_returned". Add FIXMEs.
6 * infcmd.c (print_return_value): Pass an explicit 0/1 to
7 value_being_returned. Add comments.
8 * values.c (value_being_returned): Add fixme.
9 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
10 (hppa_value_returned_from_stack): Add FIXME.
12 2003-09-30 David Carlton <carlton@kealia.com>
14 * dwarf2read.c (struct die_info): Add 'parent' field; replace
15 'has_children' and 'next' by 'child' and 'sibling'.
16 (read_comp_unit): Rework algorithm, breaking body into
17 read_die_and_children and read_die_and_siblings.
18 (read_die_and_children, read_die_and_siblings): New.
19 (read_full_die): Add 'has_children' argument; set it instead of
20 the die's 'has_children' field. Minor formatting cleanup.
21 (free_die_list): Use die->child and die->sibling instead of
23 (dump_die_list): Ditto.
24 (sibling_die): Use die->sibling.
25 (psymtab_to_symtab_1): Use die's 'child' field in place of its
26 'has_children' and 'next' fields.
27 (process_die, read_file_scope, read_func_scope)
28 (read_lexical_block_scope, read_structure_scope)
29 (read_enumeration, read_array_type, read_common_block)
30 (read_namespace, read_subroutine_type, dump_die): Ditto.
32 2003-09-30 Andrew Cagney <cagney@redhat.com>
34 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
37 2003-09-30 Andrew Cagney <cagney@redhat.com>
39 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
40 REGISTER_VIRTUAL_SIZE.
41 * gdbarch.h, gdbarch.c: Regenerate.
42 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
43 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
44 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
46 2003-09-29 Andrew Cagney <cagney@redhat.com>
48 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
49 DEPRECATED_REGISTER_VIRTUAL_TYPE.
50 * gdbarch.h, gdbarch.c: Regenerate.
51 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
52 * sh64-tdep.c, sparc-tdep.c: Update.
54 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
55 * remote-vxmips.c (vx_read_register): Ditto.
56 * remote-vx68.c (vx_read_register): Ditto.
57 * gnu-nat.c (inf_validate_procs): Ditto.
59 2003-09-29 J. Brobecker <brobecker@gnat.com>
61 * infcall.c (call_function_by_hand): Fix build failure
62 introduced in the previous change to this file.
64 2003-09-29 Andrew Cagney <cagney@redhat.com>
66 * NEWS: Mention Objective-C.
68 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
70 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
71 test if the register has been saved on the stack.
72 (arm_scan_prologue_cache): When analysing the instruction
73 "str lr, [sp, #-4]", save the address where lr has been stored.
75 2003-09-28 Andrew Cagney <cagney@redhat.com>
77 * frame.c (frame_read_unsigned_register): Delete function.
78 * frame.h (frame_read_unsigned_register): Delete declaration.
79 * sparc-tdep.c (sparc_init_extra_frame_info): Use
80 get_frame_register_unsigned.
81 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
82 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
83 * d10v-tdep.c (d10v_print_registers_info): Ditto.
85 * frame.h (frame_read_register): Delete declaration.
86 * frame.c (frame_read_register): Delete function.
87 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
88 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
89 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
90 * mips-tdep.c (mips_register_to_value): Ditto.
91 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
92 * d10v-tdep.c (d10v_print_registers_info): Ditto.
94 * frame.c (frame_read_signed_register): Delete function.
95 (frame_read_unsigned_register): Update comments.
96 * frame.h (frame_read_signed_register): Delete declaration.
97 * h8300-tdep.c (h8300_print_register): Use
98 get_frame_register_signed.
99 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
101 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
102 Rename VALUE_RETURNED_FROM_STACK.
103 * infcmd.c (print_return_value): Update.
104 * infcall.c (call_function_by_hand): Update.
106 2003-09-28 Mark Kettenis <kettenis@gnu.org>
108 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
109 regcache argument and reverse the order of the other two
110 arguments. Remove local regcache variable. Determine
111 architecture from REGCACHE. Update comments.
112 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
113 reverse the order of the other two arguments. Remove local
114 regcache variable. Determine architecture from REGCACHE. Update
116 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
117 prototypes. Update comments.
118 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
120 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
122 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
123 * i386-interix-nat.c (supply_fpregset): Update.
124 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
125 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
126 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
127 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
128 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
130 * i386obsd-tdep.c (fetch_core_registers): Update.
131 * i386v4-nat.c (supply_fpregset): Update.
132 * x86-64-linux-nat.c (supply_fpregset): Update.
133 * x86-64-linux-tdep.c (fetch_core_registers): Update.
135 2003-09-27 Mark Kettenis <kettenis@gnu.org>
137 * i386-tdep.h: Put opaque declarations in alphabetical
138 order. Remove spurious whitespace.
139 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
140 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
141 * i386-tdep.c (MM0_REGNUM): Remove define.
142 (i386_mmx_regnum_p): Add gdbarch argument.
143 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
144 Rewrite using new macro definitions for FPU/SSE registers.
145 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
146 definitions from i387-tdep.h.
147 (i386_register_name): Update.
148 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
149 new macro definitions for FPU/SSE registers.
150 (i386_extract_return_value): Determine whether floating-point
151 registers are present by examining REGCACHE's architecture.
152 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
153 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
155 (i386_register_type): Update.
156 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
157 definitions for FPU registers. Use REGCACHE's architecture to
158 determine the appropriate register numbers.
159 (i386_pseudo_register_read, i386_pseudo_register_write,
160 i386_register_reggroup_p): Update.
161 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
163 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
164 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
165 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
166 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
167 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
168 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
170 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
171 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
172 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
173 definitions for FPU/SSE registers.
174 (FXSAVE_MXCSR_ADDR): New define.
175 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
177 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
178 (I387_ST0_REGNUM): Define.
180 * regcache.h (get_regcache_arch): New prototype.
181 * regcache.c (get_regcache_arch): New function.
183 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
186 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
187 Initialize using ARRAY_SIZE.
189 2003-09-27 Andrew Cagney <cagney@redhat.com>
191 * arch-utils.c (deprecated_init_frame_pc_default): Rename
192 "init_frame_pc_default".
193 * arch-utils.h (deprecated_init_frame_pc_default): Update.
194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
195 * vax-tdep.c (vax_gdbarch_init): Update.
196 * v850-tdep.c (v850_gdbarch_init): Update.
197 * sh64-tdep.c (sh64_gdbarch_init): Update.
198 * s390-tdep.c (s390_gdbarch_init): Update.
199 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
200 * mcore-tdep.c (mcore_gdbarch_init): Update.
201 * h8300-tdep.c (h8300_gdbarch_init): Update.
202 * cris-tdep.c (cris_gdbarch_init): Update.
203 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
205 2003-09-26 Mark Kettenis <kettenis@gnu.org>
207 * regset.h: New file.
208 * Makefile.in (regset_h): Add.
210 2003-09-25 Andrew Cagney <cagney@redhat.com>
212 * frame.h (deprecated_frame_saved_regs): Rename
213 get_frame_saved_regs.
214 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
215 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
216 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
217 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
218 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
220 2003-09-25 Andrew Cagney <cagney@redhat.com>
222 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
223 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
225 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
226 arm*-*-* do not use the new frame code.
228 2003-09-25 David Carlton <carlton@kealia.com>
230 * c-exp.y: Remove 'register' declarations.
231 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
233 2003-09-25 David Carlton <carlton@kealia.com>
235 * c-exp.y: Include cp-support.h. Add qualified_type.
236 (yylex): Delete nested type hack; add comments.
237 * cp-namespace.c (cp_lookup_nested_type): New function.
238 * cp-support.h: Declare cp_lookup_nested_type.
239 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
240 instead of value_struct_elt_for_reference.
241 * valops.c: Include cp-support.h.
242 (value_aggregate_elt): New function.
243 (value_namespace_elt): Ditto.
244 (value_struct_elt_for_reference): Make static.
245 * value.h: Delete declaration of value_struct_elt_for_reference;
246 add declaration for value_aggregate_elt.
247 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
250 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
252 * stack.c: Include "reggroups.h".
253 (frame_info): Only display registers in all_reggroup.
254 * Makefile.in (stack.o): Update dependencies.
256 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
258 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
259 "add ip, sp #n" in the prologue.
260 (arm_scan_prologue): Ditto.
262 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
264 * MAINTAINERS (write after approval): Add myself.
266 2003-09-25 Andreas Schwab <schwab@suse.de>
268 * m68k-tdep.c: Include "dwarf2-frame.h".
269 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
270 * Makefile.in (m68k-tdep.o): Update dependencies.
272 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
274 * sh-tdep.c (struct frame_extra_info): Remove.
275 (struct sh_frame_cache): New structure.
276 (GET_SOURCE_REG): New macro extracting source register of an opcode.
277 (GET_TARGET_REG): Ditto but target register.
278 (GET_PUSHED_REG): Remove.
279 (IS_MOV_ARG_TO_REG): New macro.
280 (IS_MOV_ARG_TO_IND_R14): New macro.
281 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
282 (IS_MOVW_PCREL_TO_REG): New macro.
283 (IS_MOVL_PCREL_TO_REG): New macro.
284 (IS_SUB_REG_FROM_SP): New macro.
285 (IS_ARG_MOV): Remove.
286 (IS_MOV_TO_R14): Remove.
287 (IS_RESTORE_FP): New macro.
290 (IS_MOV_FP_SP): New macro.
291 (IS_ADD_REG_TO_FP): New macro.
292 (IS_ADD_IMM_FP): New macro.
293 (sh_skip_prologue_hard_way): Remove.
294 (sh_saved_pc_after_call): Remove.
295 (sh_frame_chain): Remove.
296 (sh_find_callers_reg): Remove.
297 (sh_nofp_frame_init_saved_regs): Remove.
298 (sh_fp_frame_init_saved_regs): Remove.
299 (sh_init_extra_frame_info): Remove.
300 (sh_analyze_prologue): New function.
301 (sh_skip_prologue): Remove deprecated code. Rely on new function
302 sh_analyze_prologue when after_prologue fails.
303 (sh_frame_saved_pc): Remove.
304 (sh_alloc_frame_cache): New function.
305 (sh_frame_cache): Ditto.
306 (sh_frame_prev_register): Ditto.
307 (sh_frame_this_id): Ditto.
308 (sh_frame_unwind): New structure defining the heuristic frame
310 (sh_frame_sniffer): New function.
311 (sh_unwind_sp): Ditto.
312 (sh_unwind_pc): Ditto.
313 (sh_unwind_dummy_id): Ditto.
314 (sh_frame_base_address): Ditto.
315 (sh_frame_base): New structure defining new frame base code.
316 (sh_in_function_epilogue_p): New function.
317 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
318 code and to call all new code instead. Initialize dwarf2 and
319 heuristic frame sniffer.
321 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
323 * parser-defs.h (struct exp_descriptor): New definition, containing
324 language-specific info for printing, prefixifying, dumping, and
325 evaluating expressions.
326 (exp_descriptor_standard): Declare new variable.
327 (print_subexp): Make global and declare here (from expprint.c).
328 (dump_subexp): Ditto.
329 (dump_subexp_body_standard): Declare.
330 (operator_length_standard): Declare.
331 (op_name_standard): Declare.
332 (print_subexp): Declare.
333 (print_subexp_standard): Declare.
335 * language.h (struct language_defn): Add la_exp_desc field to hold
336 pointer to table for language-specific operators.
337 Remove evaluate_exp field, which is now in struct exp_descriptor.
339 * parse.c (operator_length): Move most code to new
340 operator_length_standard function. Use language-specific information.
341 (operator_length_standard): New function taking most code from
343 (exp_descriptor_standard): New constant.
345 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
346 and OP_EXTENDED_LAST.
348 * expprint.c (print_subexp): Use language-specific print_subexp.
349 Make global; remove static declaration.
350 Move most code to print_subexp_standard.
351 (print_subexp_standard): New function, containing code formerly in
353 (op_name): Add expression to argument signature.
354 Use langauge-specific op_name.
355 Move most code to op_name_standard.
356 (op_name_standard): New function, containing code formerly in op_name.
357 (dump_subexp): Use new version of op_name function.
358 Use language-specific dump_subexp_body, and move most existing code to
359 dump_subexp_body_standard.
360 (dump_raw_expression): Use new op_name interface.
361 (dump_subexp_body): Move most code to dump_subexp_body_standard.
362 (dump_subexp_body_standard): New function, containing code formerly
365 * language.c (unknown_language): Add default la_exp_desc field and
366 remove evaluate_exp field.
367 (auto_language): Ditto.
368 (local_language): Ditto.
369 * f-lang.c (f_language_defn): Ditto.
370 * c-lang.c (c_language_defn): Ditto.
371 (cplus_language_defn): Ditto.
372 (asm_language_defn): Ditto.
373 (minimal_language_defn): Ditto.
374 * p-lang.c (pascal_language_defn): Ditto.
375 * m2-lang.c (m2_language_defn): Ditto.
376 * objc-lang.c (objc_language_defn): Ditto.
378 * jv-lang.c (exp_descriptor_java): New variable, containing
379 Java-specific expression evaluator.
380 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
382 * scm-lang.c (exp_descriptor_scm): New variable, containing
383 Scheme-specific expression evaluator.
384 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
386 * objc-lang.c (print_object_command): Take evaluate_exp from the
389 * Makefile.in (eval.o): Add dependency on parser-defs.h.
391 * eval.c: Include parser-defs.h for the full declaration of
393 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
395 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
397 * parser-defs.h (operator_length): Declare.
399 * parse.c (length_of_subexp): Use operator_length to get operator
400 lengths and arities for operators.
401 Move most code to new operator_length function.
402 (operator_length): New function absorbing most code from
404 (prefixify_subexp): Remove large case and use operator_length instead.
405 (parse_exp_1): Use renamings:
406 dump_prefix_expression => dump_raw_expression and
407 dump_postfix_expression => dump_prefix_expression.
409 * expression.h (dump_prefix_expression): Rename to ...
410 (dump_raw_expression): New name.
411 (dump_postfix_expression): Rename to ...
412 (dump_prefix_expression): New name.
414 * expprint.c (dump_subexp): Make global. Add comment.
415 Move most existing code to dump_subexp_body.
416 (dump_subexp_body): New function.
417 (dump_prefix_expression): Rename to dump_raw_expression.
418 Remove attempt to print the expression via print_expression: it can't
419 work before the expression is prefixified.
420 (dump_raw_expression): Renamed from dump_prefix_expression.
421 (dump_postfix_expression): Rename to dump_prefix_expression, since
423 Remove 'note' parameter, since this routine must be used on
424 prefixified expression.
425 (dump_prefix_expression): Renamed from dump_postfix_expression.
427 2003-09-22 Jim Blandy <jimb@redhat.com>
429 * dwarf2read.c (read_array_type): When building the type for an
430 array of unspecified length, make sure to choose the upper bound
431 so that the array's total length comes out to be zero --- that's
432 how we represent such arrays.
434 2003-09-22 Michael Chastain <mec@shout.net>
436 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
438 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
440 * top.c (quit_force): Fix indirect call to quit_target so
441 a struct qt_args pointer is passed.
443 2003-09-22 Andrew Cagney <cagney@redhat.com>
445 * arch-utils.h (init_frame_pc_noop): Delete declaration.
446 * arch-utils.c (init_frame_pc_noop): Delete function.
447 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
449 * mips-tdep.c (mips_gdbarch_init): Ditto.
450 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
451 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
453 (DEPRECATED_INIT_FRAME_PC): Delete macro.
454 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
456 (DEPRECATED_INIT_FRAME_PC): Delete macro.
458 2003-09-22 Anthony Green <green@redhat.com>
460 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
463 2003-09-20 Andrew Cagney <cagney@redhat.com>
465 * breakpoint.c: Eliminate ARGSUSED.
466 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
467 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
468 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
469 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
470 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
471 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
472 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
473 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
474 * wince.c, remote-vx.c: Ditto.
476 * cli/cli-script.c: Remove "register" attributes.
477 * config/pa/tm-hppa.h: Ditto.
478 * cli/cli-decode.c: Ditto.
479 * cli/cli-cmds.c: Ditto.
481 2003-09-19 Andrew Cagney <cagney@redhat.com>
483 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
484 DEPRECATED_NPC_REGNUM.
485 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
487 2003-09-19 Christopher Faylor <cgf@redhat.com>
489 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
491 2003-09-19 Jim Blandy <jimb@redhat.com>
493 * macrotab.c (macro_include): Use the correct comparison to find
494 the appropriate place for this inclusion in the list.
496 2003-09-19 Andrew Cagney <cagney@redhat.com>
498 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
499 (DEPRECATED_HPUX_TEXT_END): Define.
500 (deprecated_hpux_text_end): Declare.
501 (struct target_ops): Declare opaque.
502 * hppah-nat.c (text_end): Make static.
503 (deprecated_hpux_text_end): New function.
504 * exec.c (text_end): Delete global variable.
505 (NEED_TEXT_START_END): Do not define.
506 (exec_file_attach): Replace code computing "text_end" code with
507 call to DEPRECATED_HPUX_TEXT_END.
509 2003-09-19 Andrew Cagney <cagney@redhat.com>
511 * utils.c (align_up, align_down): New functions.
512 * defs.h (align_up, align_down): Declare.
513 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
514 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
516 (round_up, round_down): Delete functions.
517 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
519 (ROUND_DOWN, ROUND_UP): Delete macros.
520 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
521 * h8300-tdep.c: Replace "round_up" and "round_down" with
522 "align_up" and "align_down".
523 (round_up, round_down): Delete macros.
524 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
526 (ROUND_UP, ROUND_DOWN): Delete macros.
528 2003-09-18 J. Brobecker <brobecker@gnat.com>
530 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
531 hard-coded constant. Use the proper machine name instead.
533 2003-09-17 Andrew Cagney <cagney@redhat.com>
535 * sparc-tdep.c (legacy_register_name): Delete function.
536 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
537 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
538 * infcmd.c (gdb_register_name): Delete variable.
539 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
540 REGISTER_NAME and "tm.h".
541 * gdbarch.h, gdbarch.c: Regenerate.
542 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
543 REGISTER_NAMES in comments.
544 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
545 * m68klinux-nat.c (regmap): Ditto.
547 2003-09-17 Jim Blandy <jimb@redhat.com>
549 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
551 2003-09-17 Andrew Cagney <cagney@redhat.com>
553 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
554 (ppcnbsd_init_abi): Set "use_struct_convention" to
555 "ppcnbsd_use_struct_convention".
557 2003-09-17 Mark Kettenis <kettenis@gnu.org>
559 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
560 * gdbarch.h, gdbarch.c: Regenerate.
561 (stabs_argument_has_addr): New architecture method.
562 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
563 * arch-utils.c: Include "buildsym.h".
564 (default_stabs_argument_has_addr): New function.
565 * stabsread.c (define_symbol): Use stabs_argument_has_addr
566 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
568 2003-09-17 Andrew Cagney <cagney@redhat.com>
570 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
571 * gdbarch.h, gdbarch.c: Regenerate.
572 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
573 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
574 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
575 * sparcnbsd-tdep.c: Update.
577 2003-09-17 Andrew Cagney <cagney@redhat.com>
579 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
580 * gdbarch.h, gdbarch.c: Regenerate.
581 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
582 * d10v-tdep.c, frame.c: Update.
583 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
584 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
585 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
586 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
587 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
588 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
589 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
590 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
591 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
592 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
593 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
594 * config/pa/nm-hppah.h: Update.
596 2003-09-16 Andrew Cagney <cagney@redhat.com>
598 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
599 "use_struct_convention" to "ppc_linux_use_struct_convention".
600 (ppc_linux_use_struct_convention): New function.
601 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
602 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
603 "rs6000_use_struct_convention".
604 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
606 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
609 2003-09-16 Andrew Cagney <cagney@redhat.com>
611 * buildsym.c: Remove more occurances of "register".
612 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
613 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
614 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
615 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
616 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
617 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
618 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
619 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
621 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
623 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
624 numbers to enumeration values.
625 * sh-tdep.c: Accomodate above change.
626 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
627 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
628 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
629 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
630 (IS_FPUSH): Rename from IS_FMOV.
631 (sh_extract_struct_value_address): Remove useless comment.
632 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
633 instead of own local values.
634 (sh_dump_tdep): Remove.
635 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
636 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
638 2003-09-15 Andrew Cagney <cagney@redhat.com>
640 * doublest.c (convert_floatformat_to_doublest): No longer need to
641 cast "exp_bias" to an int. Reverts 2002-12-04 change.
643 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
645 * values.c (unpack_double): Call floatformat_is_valid.
647 2003-09-15 Mark Kettenis <kettenis@gnu.org>
649 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
650 ps_strings into a long.
652 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
653 _initialize_am64fbsd_nat.
655 2003-09-15 Kevin Buettner <kevinb@redhat.com>
657 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
658 associated with DW_AT_ranges attribute is out of bounds.
660 2003-09-15 David Lecomber <dsl@sources.redhat.com>
662 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
664 2003-09-14 Michael Chastain <mec@shout.net>
666 * config/m68k/nm-apollo68v.h: Delete.
667 * config/m68k/xm-apollo68v.h: Delete.
669 2003-09-14 Andrew Cagney <cagney@redhat.com>
671 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
672 * dcache.c: Update copyrights and descriptions.
673 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
675 2003-09-14 Andrew Cagney <cagney@redhat.com>
677 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
678 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
680 2003-09-14 Andrew Cagney <cagney@redhat.com>
682 * alpha-nat.c: Remove some occurances of "register".
683 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
684 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
685 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
686 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
687 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
688 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
689 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
690 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
691 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
692 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
693 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
694 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
695 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
696 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
697 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
698 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
699 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
700 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
701 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
702 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
703 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
704 * values.c, vax-tdep.c, xcoffread.c: Ditto.
706 2003-09-13 Andrew Cagney <cagney@redhat.com>
708 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
709 * ppc-tdep.h (struct regcache): Declare opaque.
710 * objfiles.h (struct objfile_data): Declare opaque.
711 * cp-support.h (struct objfile): Declare opaque.
712 * linux-nat.h (target_waitstatus): Declare opaque.
714 2003-09-14 Mark Kettenis <kettenis@gnu.org>
716 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
717 (stabs_argument_has_addr): New architecture method.
718 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
719 * arch-utils.c: Include "buildsym.h".
720 (default_stabs_argument_has_addr): New function.
721 * stabsread.c (define_symbol): Use stabs_argument_has_addr
722 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
724 * cris-tdep.c (cris_gdbarch_init): Set
725 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
726 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
727 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
728 * mips-tdep.c (mips_gdbarch_init): Likewise.
729 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
730 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
732 2003-09-13 Andrew Cagney <cagney@redhat.com>
734 * values.c (using_struct_return): Delete "function" and "funcaddr"
736 * value.h (using_struct_return): Update declaration.
737 * infcmd.c (finish_command_continuation): Update.
738 (finish_command): Update.
739 * infcall.c (call_function_by_hand): Update.
740 * eval.c (evaluate_subexp_standard): Update.
742 2003-09-13 Christopher Faylor <cgf@redhat.com>
744 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
745 SSE registers since gdb will not operate correctly without this.
746 Restore include file ordering munged in previous change.
747 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
749 2003-09-13 Mark Kettenis <kettenis@gnu.org>
751 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
753 * gdbarch.c, gdbarch.h: Updated.
754 * infcall.c (call_function_by_hand): Update.
755 * stabsread.c (define_symbol): Updated.
757 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
759 2003-09-12 Christopher Faylor <cgf@redhat.com>
761 * win32-nat.c: Reorganize so that defines used by target headers are
762 actually defined by the system headers.
763 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
764 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
766 2003-09-12 Jim Blandy <jimb@redhat.com>
768 * dbxread.c (read_dbx_symtab): Don't report an internal error if
769 the file has no .data, .bss, or .rodata sections. Instead wait
770 until we see a variable alleged to live in one of those sections.
772 * dbxread.c (read_dbx_symtab): If we have no .data section and no
773 .bss section, presume that any variables we find live in the
776 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
777 offsets for global and static variables.
779 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
780 symbol types are, by definition, in the .data section, so it is
781 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
782 If there is no .data section, there should be no N_DATA or N_DATA
785 2003-09-12 Mark Kettenis <kettenis@gnu.org>
787 * amd64fbsd-tdep.c: Fix sigtramp recognition.
788 (amd64fbsd_sigcontext_addr): Rewrite.
789 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
791 (amd64fbsd_sc_reg_offset): Initialize with correct values.
792 (amd64fbsd_init_abi): Fix typo.
794 2003-09-12 Andrew Cagney <cagney@redhat.com>
796 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
797 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
799 2003-09-12 Andrew Cagney <cagney@redhat.com>
801 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
802 "entry_file_highpc". Update comments.
803 * defs.h (deprecated_inside_entry_file): Rename
805 * blockframe.c (deprecated_inside_entry_file): Rename
807 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
808 * vax-tdep.c (vax_frame_chain): Update.
809 * sh64-tdep.c (sh64_frame_chain): Update.
810 * sh-tdep.c (sh_frame_chain): Update.
811 * rs6000-tdep.c (rs6000_frame_chain): Update.
812 * ns32k-tdep.c (ns32k_frame_chain): Update.
813 * mips-tdep.c (mips_frame_chain): Update.
814 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
815 * m32r-tdep.c (m32r_frame_this_id): Update.
816 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
817 * frv-tdep.c (frv_frame_this_id): Update.
818 * d10v-tdep.c (d10v_frame_this_id): Update.
819 * cris-tdep.c (cris_frame_chain): Update.
820 * blockframe.c (legacy_frame_chain_valid): Update.
821 * avr-tdep.c (avr_frame_this_id): Update.
822 * arm-tdep.c (arm_prologue_this_id): Update.
823 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
824 * objfiles.c (objfile_relocate): Update.
825 * mipsread.c (mipscoff_symfile_read): Update.
826 (mipscoff_symfile_read): Update.
827 * mdebugread.c (parse_partial_symbols): Update.
828 * dwarfread.c (read_file_scope): Update.
829 * dwarf2read.c (read_file_scope): Update.
830 * dbxread.c (read_dbx_symtab): Update.
831 (read_dbx_symtab): Update.
832 * coffread.c (complete_symtab): Update.
834 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
836 * top.c (quit_target): New static helper function.
837 (quit_force): Moved code to quit_target(). Call quit_target()
838 via catch_errors() to catch errors during quit.
840 2003-09-11 David Carlton <carlton@kealia.com>
842 * buildsym.c (finish_block): Use allocate_block to allocate the
844 * mdebugread.c (new_block): Add FIXME.
846 2003-09-11 David Carlton <carlton@kealia.com>
848 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
849 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
850 (recursive_dump_type): Ditto.
851 * printcmd.c (print_formatted): Ditto.
852 * typeprint.c (print_type_scalar): Ditto.
853 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
854 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
855 * cp-support.h: Declare cp_check_possible_namespace_symbols,
856 maint_cplus_cmd_list.
857 * cp-support.c: Make maint_cplus_cmd_list extern.
858 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
860 (lookup_symbol_file): Look in possible namespace blocks when
862 (initialize_namespace_symtab): New.
863 (get_possible_namespace_block, free_namespace_block)
864 (check_possible_namespace_symbols)
865 (check_possible_namespace_symbols_loop)
866 (check_one_possible_namespace_symbol)
867 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
868 (_initialize_cp_namespace): Ditto.
869 * block.h: Declare allocate_block.
870 * block.c (allocate_block): New.
871 * jv-lang.c (get_java_class_symtab): Allocate blocks via
873 * symfile.h: Update declaration of add_psymbol_to_list.
874 * symfile.c (add_psymbol_to_list): Return the partial symbol in
876 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
877 scan_partial_symbols_call.
878 (scan_partial_symbols): Add NAMESPACE argument; update calls to
880 (add_partial_symbol): If necessary, scan mangled names for names
882 (add_partial_namespace): Add NAMESPACE argument; generate partial
883 symbols associated to namespaces.
884 (add_partial_enumeration): Add NAMESPACE argument.
885 (new_symbol): Allow namespace syms.
886 (read_namespace): Generate namespace syms.
887 * objfiles.h: Add opaque declaration of struct symtab.
888 (struct objfile): Add cp_namespace_symtab member.
889 * objfiles.c (allocate_objfile): Set
890 objfile->cp_namespace_symtab.
891 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
892 dictionary_h, command_h.
894 2003-09-11 Andrew Cagney <cagney@redhat.com>
896 * rs6000-tdep.c (rs6000_push_dummy_call): Use
897 regcache_raw_write_signed to set SP_REGNUM, move the operation to
898 near the function's end.
899 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
900 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
901 regcache_raw_write_signed to set SP_REGNUM.
903 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
905 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
906 orig_addrs is set up properly.
908 2003-09-11 Andrew Cagney <cagney@redhat.com>
910 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
911 * gdbarch.h, gdbarch.c: Re-generate.
912 * infcall.c (call_function_by_hand): Update.
913 * hppa-tdep.c (hppa_push_arguments): Update.
914 * ada-lang.c (place_on_stack): Update.
915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
916 * sparc-tdep.c (sparc_gdbarch_init): Update.
917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
918 * hppa-tdep.c (hppa_gdbarch_init): Update.
919 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
922 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
924 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
925 register do need a frame.
927 2003-09-11 Andrew Cagney <cagney@redhat.com>
929 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
930 buildable since GDB 5.0.
931 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
932 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
933 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
934 * irix4-nat.c: Delete file.
935 * config/mips/irix4.mh: Delete file.
936 * config/mips/irix3.mh: Delete file.
937 * config/mips/irix3.mt: Delete file.
938 * config/mips/tm-irix3.h: Delete file.
939 * config/mips/nm-irix3.h: Delete file.
940 * config/mips/xm-irix3.h: Delete file.
941 * config/mips/nm-irix4.h: Delete file.
942 * config/mips/xm-irix4.h: Delete file.
943 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
945 2003-09-10 J. Brobecker <brobecker@gnat.com>
947 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
948 * Makefile.in (hppa-tdep.o): Update dependencies.
950 2003-09-10 James E Wilson <wilson@specifixinc.com>
952 * MAINTAINERS: Change my e-mail address. Move to paper trail
955 2003-09-10 Kevin Buettner <kevinb@redhat.com>
957 * MAINTAINERS (frv): New ISA entry.
959 2003-09-10 Kevin Buettner <kevinb@redhat.com>
961 * frv-tdep.c (dis-asm.h): Include.
962 * Makefile.in (frv-tdep.o): Update dependencies.
964 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
966 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
967 Fix typo for high range of floating registers.
969 2003-09-09 David Carlton <carlton@kealia.com>
971 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
972 highpc initialization here out of scan_partial_symbols.
973 (scan_partial_symbols): Restructure into a recursive version,
974 calling add_partial_namespace and add_partial_enumeration when
976 (add_partial_namespace): New.
977 (add_partial_enumeration, locate_pdi_sibling): Ditto.
979 2003-09-09 Andrew Cagney <cagney@redhat.com>
981 * rs6000-tdep.c (ppc_push_return_address): Delete function.
982 (rs6000_push_dummy_call): Set LR to BP_ADDR.
983 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
984 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
986 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
987 (rs6000_push_dummy_call): Set the "TOC" register.
989 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
990 methods "max_register_raw_size", "max_register_virtual_size" or
991 "register_virtual_size".
993 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
995 * MAINTAINERS: Update my e-mail address.
997 2003-09-09 Andrew Cagney <cagney@redhat.com>
999 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1000 (rs6000_push_dummy_call): Store the struct return address.
1001 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1003 2003-09-09 Andrew Cagney <cagney@redhat.com>
1005 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1006 "ppc_sysv_abi_push_arguments".
1007 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1008 "ppc_sysv_abi_push_arguments".
1009 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1010 instead of "push_arguments".
1011 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1013 2003-09-09 Andrew Cagney <cagney@redhat.com>
1015 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1016 instead of CALL_DUMMY_ADDRESS.
1018 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1020 * p-lang.c: Eliminate "register".
1022 * expprint.c: Ditto.
1025 * language.c: Ditto.
1028 * scm-lang.c: Ditto.
1029 * objc-lang.c: Ditto.
1031 2003-09-09 Nick Clifton <nickc@redhat.com>
1033 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1035 2003-09-04 Andrew Cagney <cagney@redhat.com>
1037 * avr-tdep.c: Include "dis-asm.h".
1038 * cris-tdep.c: Include "dis-asm.h".
1039 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1040 instead of corresponding typedef.
1041 * h8300-tdep.c: Include "dis-asm.h".
1042 * ia64-tdep.c: Include "dis-asm.h".
1043 * i386-tdep.c: Include "dis-asm.h".
1044 (i386_print_insn): Use "struct disassemble_info" instead of
1045 corresponding typedef.
1046 * m68k-tdep.c: Include "dis-asm.h".
1047 * mcore-tdep.c: Include "dis-asm.h".
1048 * mips-tdep.c: Include "dis-asm.h".
1049 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1050 instead of corresponding typedef.
1051 * ns32k-tdep.c: Include "dis-asm.h".
1052 * s390-tdep.c: Include "dis-asm.h".
1053 * sparc-tdep.c: Include "dis-asm.h".
1054 * vax-tdep.c: Include "dis-asm.h".
1055 * v850-tdep.c: Include "dis-asm.h".
1056 * mn10300-tdep.c: Include "dis-asm.h".
1057 * rs6000-tdep.c: Include "dis-asm.h".
1058 * xstormy16-tdep.c: Include "dis-asm.h".
1059 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1060 print_insn_xstormy16.
1061 * Makefile.in (v850-tdep.o): Update dependencies.
1062 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1063 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1064 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1065 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1066 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1067 (gdbarch_h): Remove $(dis_asm_h).
1068 * disasm.c: Include "dis-asm.h".
1069 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1070 corresponding typedef.
1071 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1072 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1073 * gdbarch.sh: Do not include "dis-asm.h".
1074 (struct disassemble_info): Declare opaque.
1075 (TARGET_PRINT_INSN): Update declaration.
1076 * gdbarch.h, gdbarch.c: Re-generate.
1078 2003-09-08 Andrew Cagney <cagney@redhat.com>
1080 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1081 CALL_DUMMY_ADDRESS, change to a predicate.
1082 * gdbarch.h, gdbarch.c: Re-generate.
1083 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1084 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1085 * infcall.c (call_function_by_hand): Ditto.
1086 * sparc-tdep.c (sparc_push_return_address): Ditto.
1087 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1088 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1089 CALL_DUMMY_ADDRESS with entry_point_address.
1090 * v850-tdep.c (v850_push_return_address): Ditto.
1091 * s390-tdep.c (s390_push_return_address): Ditto.
1092 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1093 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1094 * mcore-tdep.c (mcore_push_return_address): Ditto.
1095 * cris-tdep.c (cris_push_return_address): Ditto.
1096 * arm-tdep.c (arm_push_return_address): Ditto.
1098 2003-09-08 Andrew Cagney <cagney@redhat.com>
1100 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1101 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1102 and REG_UNMODIFIED to REG_SAME_VALUE.
1103 (execute_cfa_program): Update.
1104 (dwarf2_frame_cache): Update. Initialize table to
1105 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1107 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1109 2003-09-08 Andrew Cagney <cagney@redhat.com>
1111 * gnu-nat.c: Remove "inline" function attribute.
1112 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1114 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1116 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1119 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1121 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1122 (frame_extra_info): Rename this struct to frv_unwind_cache.
1123 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1124 Add fields ``prev_sp'' and ``base''.
1125 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1126 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1127 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1129 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1130 Revise all callers. Fill in the unwind cache argument and make
1131 other adjustments to account for new frame mechanisms.
1132 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1133 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1134 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1135 (frv_frame_unwind, frv_frame_base): New structs.
1136 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1137 additional arguments expected by this method and adjust function
1139 (frv_gdbarch_init): Remove calls to the following functions:
1140 set_gdbarch_deprecated_init_frame_pc(),
1141 set_gdbarch_deprecated_saved_pc_after_call(),
1142 set_gdbarch_deprecated_frame_chain(),
1143 set_gdbarch_deprecated_frame_saved_pc(),
1144 set_gdbarch_deprecated_frame_init_saved_regs(),
1145 set_gdbarch_deprecated_push_arguments(),
1146 set_gdbarch_deprecated_push_return_address(),
1147 set_gdbarch_deprecated_pop_frame(),
1148 set_gdbarch_deprecated_call_dummy_words(),
1149 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1150 set_gdbarch_deprecated_init_extra_frame_info(),
1151 set_gdbarch_deprecated_dummy_write_sp(), and
1152 set_gdbarch_deprecated_pc_in_call_dummy().
1153 Add calls to the following functions:
1154 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1155 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1156 frame_base_set_default().
1157 * Makefile.in (frv-tdep.o): Update dependencies.
1159 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1161 * dwarf2-frame.c (read_encoded_value): Add support for
1162 DW_EH_PE_aligned encoding.
1164 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1166 * infrun.c (normal_stop): Don't print a message if the inferior
1169 2003-09-08 Jim Blandy <jimb@redhat.com>
1171 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1172 * dbxread.c: #include "gdb_assert.h".
1173 (read_dbx_symtab): If the objfile has no .data section, use the
1174 section index for the .bss section instead.
1176 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1178 * frame.c (deprecated_safe_get_selected_frame): New function.
1179 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1180 * findvar.c (read_var_value): Call it.
1182 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1184 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1185 (sh64-tdep.o): Add dependencies.
1186 * configure.tgt: Add FIXME to sh-*-linux*.
1187 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1188 (sh_gdbarch_init): Always set correct sh_show_regs function
1189 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1190 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1191 * sh64-tdep.c: New file, containing all sh64 related code from
1193 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1194 * config/sh/linux.mt (TDEPFILES): Ditto.
1195 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1196 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1197 * config/sh/wince.mt (TDEPFILES): Ditto.
1199 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1201 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1202 (stop_wait_callback): Handle !lp->signalled also.
1203 (lin_lwp_has_pending, flush_callback): New functions.
1204 (lin_lwp_wait): Call flush_callback.
1205 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1206 (linux_proc_pending_signals): New function.
1207 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1209 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1211 From Nick Kelsey <nickk@ubicom.com>:
1212 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1213 when the stop PC is at the beginning of a function also.
1215 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1217 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1218 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1220 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1222 * sol-thread.c: Include "gdb_string.h".
1224 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1226 * gcore.c: Reorder include files in alphabetical order. Include
1227 "gdb_assert.h". Various coding style fixes.
1228 (derive_stack_segment, derive_heap_segment): Replace check for
1229 non-null BOTTOM and TOP with gdb_assert.
1230 (derive_heap_segment): Replace check for successful creation of
1231 ZERO with gdb_assert.
1232 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1234 2003-09-04 Andrew Cagney <cagney@redhat.com>
1236 * thread-db.c (verbose_dlsym): New function.
1237 (thread_db_load): Use verbose_dlsym
1238 (thread_db_new_objfile): Print that libthread_db was loaded, and
1239 that thread debugging was enabled.
1241 2003-09-04 Andrew Cagney <cagney@redhat.com>
1243 * configure.tgt: Add "mips64*-*-*" target. Delete
1244 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1245 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1246 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1247 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1248 mips*-sony-*, and mips64*-*-elf* targets.
1249 * config/mips/embedl.mt: Delete file.
1250 * config/mips/embedl64.mt: Delete file.
1251 * config/mips/mips.mt: Delete file.
1252 * config/mips/mips64.mt: Delete file.
1253 * config/mips/tm-embed.h: Delete file.
1254 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1255 * config/mips/embed64.mt: Delete out-of-date comment.
1257 2003-09-04 Andrew Cagney <cagney@redhat.com>
1259 * hppa-tdep.c (hppa_gdbarch_init): Set
1260 "have_nonsteppable_watchpoint".
1261 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1262 * mips-tdep.c (mips_dump_tdep): Do not print
1263 HAVE_NONSTEPPABLE_WATCHPOINT.
1264 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1265 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1266 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1267 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1269 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1271 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1272 unused code. Add comment.
1274 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1276 * breakpoint.c (watchpoint_check): Check for pc being in an
1277 epilogue if watchpoint frame couldn't be found.
1279 2003-09-04 Andrew Cagney <cagney@redhat.com>
1281 * Makefile.in: Re-generate all dependencies.
1283 2003-09-03 Andrew Cagney <cagney@redhat.com>
1285 * arch-utils.h (legacy_print_insn): Delete declaration.
1286 * arch-utils.c (legacy_print_insn): Delete function.
1287 * disasm.c (deprecated_tm_print_insn_info): Delete.
1288 (_initialize_disasm): Delete function, contained code initializing
1289 deprecated_tm_print_insn_info.
1290 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1291 (deprecated_tm_print_insn_info): Delete.
1292 (TARGET_PRINT_INSN): Do not provide a default.
1293 * gdbarch.h, gdbarch.c: Re-generate.
1295 2003-09-03 Andrew Cagney <cagney@redhat.com>
1297 * disasm.c (fprintf_disasm): New function.
1298 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1299 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1300 reverts 2003-08-14 change.
1301 (_initialize_disasm): Call "init_disassemble_info", instead of
1302 INIT_DISASSEMBLE_INFO_NO_ARCH.
1304 2003-09-03 Michael Snyder <msnyder@redhat.com>
1306 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1308 2003-09-03 Andrew Cagney <cagney@redhat.com>
1310 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1311 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1312 * symfile.c (syms_from_objfile): Update.
1313 (reread_symbols): `Update
1314 * exec.c (exec_file_attach): Update.
1315 (exec_file_attach): Update.
1316 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1318 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1320 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1322 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1324 (arm_get_cache): Delete macro.
1325 (struct arm_prologue_cache): Update comments. Make saved_regs into
1326 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1328 (thumb_scan_prologue): Update for cache changes. Don't call
1329 DEPRECATED_PC_IN_CALL_DUMMY.
1330 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1331 argument and use it in desperation search for our prologue. Do not
1332 search past the specified PC.
1333 (arm_make_prologue_cache): Simplify.
1335 (arm_prologue_this_id, arm_prologue_prev_register)
1336 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1337 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1338 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1339 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1340 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1342 (arm_frame_chain_valid, arm_find_callers_reg)
1343 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1344 (arm_pop_frame): Delete obsolete methods.
1345 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1347 (arm_gdbarch_init): Update for new frame methods. Register prologue
1348 and sigtramp unwinders. Set the default frame base method.
1350 * Makefile.in (arm-tdep.o): Update dependencies.
1351 * varobj.c (find_frame_addr_in_frame_chain): Call
1352 get_frame_base_address.
1353 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1355 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1357 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1358 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1359 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1360 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1361 Take NEXT_FRAME and CACHE arguments. Call
1362 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1363 Set unwound_pc in CACHE instead of modifying the frame argument.
1364 Don't bother checking the frame type when looking for sigtramp
1366 (arm_make_prologue_cache, arm_frame_chain)
1367 (arm_init_extra_frame_info): New functions.
1369 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1371 * arm-tdep.c (arm_get_cache): Define.
1372 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1373 unwound_sp, unwound_pc, and saved_regs.
1374 (thumb_scan_prologue): Take a cache instead of the frame.
1375 (arm_scan_prologue): Likewise.
1376 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1377 instead of a temporary frame.
1378 (arm_init_extra_frame_info): Allocate and use a cache.
1379 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1381 2003-09-03 Andrew Cagney <cagney@redhat.com>
1383 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1384 * config/mips/wince.mt (TM_CLIBS): Ditto.
1385 * config/sh/wince.mt (TM_CLIBS): Ditto.
1386 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1387 * config/sparc/sp64.mt (CC): Delete.
1389 2003-09-03 Andrew Cagney <cagney@redhat.com>
1391 * defs.h: Do not include "arch-utils.h".
1392 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1393 GDB_MULTI_ARCH_PURE.
1394 * configure.in (GDB_MULTI_ARCH): Do not define.
1395 * configure, config.in: Regenerate.
1396 * configure.tgt: Do not set variable "gdb_multi_arch".
1397 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1398 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1399 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1400 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1401 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1402 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1403 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1404 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1405 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1406 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1407 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1408 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1409 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1410 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1411 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1412 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1413 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1414 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1416 2003-08-30 Michael Chastain <mec@shout.net>
1418 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1419 * config/m68k/nm-hp300hpux.h: Delete.
1420 * config/m68k/tm-hp300hpux.h: Delete.
1421 * config/m68k/xm-hp300hpux.h: Delete.
1422 * config/m68k/xm-hp300bsd.h: Delete.
1423 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1424 tm-hp300hpux.h, xm-hp300hpux.h.
1425 * somsolib.c: Remove comment about hp300 shared libraries.
1427 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1429 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1430 Only define PTRACE_GET_THREAD_AREA is not already defined.
1431 Various style fixes in code and comments and some additional
1432 spelling fixes in comments. Move after functions dealing with
1434 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1437 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1438 frame_unwind_register_unsigned instead of
1439 frame_unwind_unsigned_register.
1441 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1443 * configure.in: Search for gethostbyname in libnsl.
1444 * configure: Regenerated.
1446 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1448 * configure.in: Remove redundant AC_MSG_RESULT in check for
1449 uintptr_t in stdint.h.
1450 * configure: Regenerated.
1452 * amd64-nat.h (struct regcache): Add opaque declaration.
1454 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1455 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1456 Change "register array" to "register cache" in comments.
1457 (x86_64_linux_gregset64_reg_offset): New variable.
1458 (GETREGS_SUPPLIES): Remove macro.
1459 (supply_gregset): Call amd64_supply_native_gregset instead of
1460 x86_64_linux_supply_gregset.
1461 (fill_gregset): Rename `regno' to `regnum'. Call
1462 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1463 (store_regs): Rename `regno' to `regnum'.
1464 (store_fpregs): Rename `regno' to `regnum'.
1465 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1466 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1467 Reorganize function a bit.
1468 (store_inferior_registers): Rename `regno' to `regnum'. Use
1469 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1470 Reorganize function a bit.
1471 (_initialize_x86_64_linux_nat): New function.
1472 * config/i386/x86-64linux.mh.
1474 2003-08-29 Andrew Cagney <cagney@redhat.com>
1476 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1477 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1478 (target_remove_watchpoint): Delete macro.
1479 (target_insert_watchpoint): Delete macro.
1480 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1481 (remote_mips_stopped_by_watchpoint): Delete declaration.
1482 (remote_mips_remove_watchpoint): Delete declaration.
1483 (remote_mips_set_watchpoint): Delete declaration.
1484 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1485 * remote-mips.c (_initialize_remote_mips): Set
1486 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1487 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1488 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1489 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1490 (mips_stopped_by_watchpoint): Rename
1491 remote_mips_stopped_by_watchpoint.
1492 (mips_can_hardware_watchpoint): Rename
1493 remote_mips_can_use_hardware_watchpoint, update function
1496 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1498 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1499 USER_DS. We haven't given them a register number yet.
1501 * amd64-nat.h: New file.
1502 * amd64-nat.c: New file.
1503 * amd64fbsd-nat.c: Include "amd64-nat.h".
1504 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1505 (amd64fbsd32_r_reg_offset): New variable.
1506 (supply_gregset): Simply call amd64_supply_native_gregset.
1507 (fill_gregset): Rename `regno' to `regnum'. Simply call
1508 amd64_collect_native_gregset.
1509 (fill_fpregset): Rename `regno' to `regnum'.
1510 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1511 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1512 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1513 `fpregset_t'. Call amd64_supply_native_gregset instead of
1514 supply_gregset. Call x86_64_supply_fxsave instead of
1516 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1517 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1518 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1519 `fpregset_t'. Call amd64_collect_native_gregset instead of
1520 fill_gregset. Call x86_64_collect_fxsave instead of
1522 (_initialize_am64fbsd_nat): Initialize
1523 amd64_native_gregset32_reg_offset and
1524 amd64_native_gregset64_reg_offset.
1525 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1527 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1528 null pointer. Fix typo in comment.
1530 * regcache.c (supply_register): Reimplement to call
1531 regcache_raw_supply.
1532 (regcache_collect): Reimplement by calling regcache_raw_collect.
1534 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1536 * regcache.c (register_buffer): Consitify first argument.
1537 (regcache_raw_supply, regcache_raw_collect): New
1540 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1542 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1543 by Nathan J. Williams.
1545 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1547 * lin-lwp.c (wait_lwp): New function, copied from
1548 stop_wait_callback. Clean up.
1549 (stop_wait_callback): Use wait_lwp.
1551 2003-08-28 Andrew Cagney <cagney@redhat.com>
1553 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1554 flavour and disassembler options.
1555 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1556 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1557 deprecated_tm_print_insn_info.
1559 2003-08-27 Andrew Cagney <cagney@redhat.com>
1561 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1562 Use target_read_memory.
1563 (s390_get_frame_info): Update. Do not reference
1564 deprecated_tm_print_insn_info.
1565 (s390_check_function_end, s390_is_sigreturn): Ditto.
1567 2003-08-27 Andrew Cagney <cagney@redhat.com>
1569 * Makefile.in (cris-tdep.o): Update dependencies.
1570 * cris-tdep.c: Include "gdb_assert.h".
1571 (cris_gdbarch_init): Set print_insn.
1572 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1573 (cris_delayed_get_disassembler): Simplify, directly call the
1574 disassembler returned by cris_get_disassembler.
1575 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1576 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1577 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1578 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1579 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1580 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1581 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1582 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1583 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1584 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1585 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1586 (gdb_print_insn_sparc): Delete function.
1587 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1588 deprecated_tm_print_insn_info.
1589 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1590 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1591 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1592 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1593 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1594 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1595 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1596 (s390_gdbarch_init): Set print_insn.
1598 2003-08-27 Andrew Cagney <cagney@redhat.com>
1600 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1601 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1602 * infcall.c (call_function_by_hand): Convert the entry point
1603 address into a code address.
1605 2003-08-27 Andrew Cagney <cagney@redhat.com>
1607 * dsrec.c: Include "gdb_string.h".
1608 * Makefile.in (dsrec.o): Update dependencies.
1610 2003-08-27 Michael Chastain <mec@shout.net>
1612 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1614 2003-08-27 Andrew Cagney <cagney@redhat.com>
1616 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1617 (alpha_osf1_init_abi): Do not set call_dummy_address.
1619 2003-08-27 David Carlton <carlton@kealia.com>
1621 From Randolph Chung <tausq@debian.org>:
1622 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1623 compiles with -Wformat-nonliteral -Werror.
1625 2003-08-26 Jim Blandy <jimb@redhat.com>
1627 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1628 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1629 bfd_lookup_symbol, since we only want symbols in code sections.
1630 (look_for_base): Pass zero as the SECT_FLAGS argument to
1631 bfd_lookup_symbol, since we're not concerned about which section
1634 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1636 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1637 we are frameless or the return address register is already known.
1639 2003-08-26 Andrew Cagney <cagney@redhat.com>
1641 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1642 in size. Add comments.
1644 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1646 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1647 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1649 2003-08-26 Jason Merrill <jason@redhat.com>
1651 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1652 case out of #ifdef MIPS block.
1654 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1657 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1658 available before calling SECT_OFF_TEXT.
1659 * PROBLEMS: Remove description of java/1322.
1661 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1663 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1664 bof, and nat0-nat127 as pseudo-registers.
1665 (ia64_frame_cache): New struct used to cache frame info.
1666 (ia64_register_reggroup_p): New routine used to override default
1667 register grouping so registers without names are still saved and
1669 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1671 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1672 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1673 (ia64_alloc_frame_cache): New routine to create a new
1675 (examine_prologue): Change prototype to add next_frame pointer.
1676 Assume frameless until otherwise proven. Verify that the cfm for
1677 current frame matches the cfm that should occur for the prologues
1678 alloc insn and if equal, mark as not frameless. At end of routine,
1679 if not frameless, calculate registers for the previous frame and store
1680 in the cache, if a cache is provided.
1681 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1682 and pass 0 for next_frame.
1683 (ia64_store_return_value): Change to use convert_typed_floating()
1684 instead of calling ia64_convert_to_raw().
1685 (ia64_extract_return_value): Change to use convert_typed_floating()
1686 instead of calling ia64_convert_to_virtual().
1687 (ia64_frame_cache): New routine to support new frame model.
1688 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1689 (ia64_frame_sniffer): Ditto.
1690 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1691 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1692 (ia64_sigtramp_frame_prev_register): Ditto.
1693 (ia64_sigtramp_frame_sniffer): Ditto.
1694 (ia64_frame_base_address): Ditto.
1695 (ia64_extract_struct_value_address): Change to issue error message.
1696 (ia64_frame_align): New routine to align sp.
1697 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1698 (ia64_push_arguments): Removed. Logic moved to
1699 ia64_push_dummy_call().
1700 (ia64_push_return_address): Ditto.
1701 (ia64_unwind_dummy_id): New function.
1702 (ia64_unwind_pc): Ditto.
1703 (ia64_convert_register_p): Ditto.
1704 (ia64_register_to_value): Ditto.
1705 (ia64_value_to_register): Ditto.
1706 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1707 (ia64_register_byte, ia64_register_raw_size): Ditto.
1708 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1709 (ia64_saved_pc_after_call): Ditto.
1710 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1711 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1712 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1713 (ia64_register_convert_to_raw): Ditto.
1714 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1715 (ia64_init_extra_frame_info): Ditto.
1716 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1717 (ia64_gdbarch_init): Remove registering of deprecated functions that
1718 are no longer used. Add registration of new gdbarch functions.
1719 Remove registering deprecated_write_sp. Replace
1720 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1721 Delete set_gdbarch_deprecated_register_convertible(),
1722 set_gdbarch_deprecated_register_convert_to_virtual(), and
1723 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1724 set_gdbarch_deprecated_register_size(),
1725 set_gdbarch_deprecated_register_bytes(),
1726 set_gdbarch_pcregnum(),
1727 set_gdbarch_deprecated_register_byte(),
1728 set_gdbarch_deprecated_register_raw_size(),
1729 set_gdbarch_deprecated_max_register_raw_size(),
1730 set_gdbarch_deprecated_register_virtual_size(),
1731 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1732 Replace set_gdbarch_deprecated_extract_return_value() with
1733 set_gdbarch_extract_return_value(). Remove calls to:
1734 set_gdbarch_deprecated_saved_pc_after_call();
1735 set_gdbarch_deprecated_frame_chain(),
1736 set_gdbarch_deprecated_frame_saved_pc(),
1737 set_gdbarch_deprecated_frame_init_saved_regs(),
1738 set_gdbarch_deprecated_get_saved_register(),
1739 set_gdbarch_deprecated_call_dummy_words(),
1740 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1741 set_gdbarch_deprecated_init_extra_frame_info(),
1742 set_gdbarch_deprecated_frame_args_address(),
1743 set_gdbarch_deprecated_frame_locals_address(),
1744 and set_gdbarch_deprecated_dummy_write_sp().
1745 Add set_gdbarch_convert_register_p(),
1746 set_gdbarch_register_to_value(),
1747 set_gdbarch_value_to_register(),
1748 set_gdbarch_push_dummy_call(),
1749 set_gdbarch_frame_align(),
1750 set_gdbarch_unwind_dummy_id(),
1751 set_gdbarch_unwind_pc(),
1752 frame_unwind_append_sniffer(),
1753 frame_unwind_append_sniffer(),
1754 and frame_base_set_default().
1756 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1758 * configure.tgt: Document need for special "mipsisa64" handling.
1759 (mipsisa64*-*-linux64): Handle as target linux64.
1760 (mipsisa64*-*-*): Handle as target embed64.
1762 2003-08-18 Michael Chastain <mec@shout.net>
1764 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1767 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1769 * i387-tdep.h: Update copyright date.
1770 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1772 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1773 CFLAGS games to reflect reality.
1775 2003-08-24 Andrew Cagney <cagney@redhat.com>
1777 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1778 GDB_MULTI_ARCH is always non-zero.
1779 * osabi.c (_initialize_gdb_osabi): Ditto.
1780 (gdbarch_init_osabi): Ditto.
1781 * sparc-tdep.c: Ditto for #if code.
1783 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1785 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1787 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1789 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1790 x86_64_supply_fxsave.
1791 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1792 x86_64_supply_fxsave.
1793 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1794 x86_64_supply_fxsave.
1796 2003-08-23 Andreas Jaeger <aj@suse.de>
1798 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1801 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1803 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1804 i387_supply_register.
1805 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1806 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1808 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1810 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1812 * i386bsd-nat.c (supply_fpregset): Adjust call to
1814 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1815 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1817 (store_inferior_registers): Remove extraneous whitespace. Call
1818 i387_fill_fsave instead of fill_fpregset.
1819 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1820 (supply_fpregset): Likewise.
1821 * i386v4-nat.c (supply_fpregset): Adjust call to
1823 * i386-interix-nat.c (supply_fpregset): Adjust call to
1825 * i386-linux-nat.c (supply_fpregset): Adjust call to
1827 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1828 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1829 i387supply_fsave and i387_supply_fxsave.
1830 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1831 Incorporate code from `i387_supply_register.
1832 (i387_supply_register): Remove.
1833 (i387_supply_fxsave): Add `regnum' argument.
1835 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1837 (i387_supply_register): remove prototype.
1840 2003-08-22 Michael Chastain <mec@shout.net>
1842 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1843 Add lines for files in gdb/testsuite/gdb.cp/* that are
1844 still not 8.3 unique.
1846 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1848 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1849 TYPE_VPTR_FIELDNO is valid.
1851 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1853 * utils.c (set_width_command): Remove prototypes.
1854 (set_screen_size): New prototype.
1855 (init_page_info): Simplify by fetching the screen size from
1856 Readline. Call set_screen_size.
1857 (set_screen_size): New function.
1858 (set_width): Add missing whitespace in comment.
1859 (set_width_command): Call set_screen_size.
1860 (set_height_command): New function.
1861 (initialize_utils): Fix formatting. Make "set height" command
1862 call set_height_command. Remove redundant code that turns off
1863 pagination if output isn't a terminal. Remove redundant call to
1866 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1868 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1869 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1870 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1871 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1873 (sparc64_register_info): Give the reister with number
1874 SPARC64_STATE_REGNUM a name.
1875 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1877 (sparc64_push_dummy_call): Take BIAS into account when checking
1879 (sparc_software_single_step): Remove assertions that check whether
1880 NPC and NNPC were zero.
1881 (sparc_supply_rwindow): Make public. Merge functionality with
1882 sparc64_supply_rwindow.
1883 (sparc_fill_rwindow): Make public. Merge functionality with
1884 sparc64_fill_rwindow.
1885 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1886 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1887 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1888 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1889 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1891 * reggroups.c: Add whitespace after declarations of local
1892 variables in functions.
1894 2003-08-21 Michael Chastain <mec@shout.net>
1896 * gdbtypes.h: Change array bound type from an int to enum.
1898 2003-08-21 Andrew Cagney <cagney@redhat.com>
1900 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1901 * config/sparc/tm-sparc.h: Ditto.
1902 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1904 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1906 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1908 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1909 (register_objfile_data, set_objfile_data, objfile_data): New
1911 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1913 (allocate_objfile): Call objfile_alloc_data.
1914 (free_objfile): Call objfile_free_data.
1915 (struct objfile_data): New.
1916 (struct objfile_data_registration): New.
1917 (struct objfile_data_registry): New.
1918 (objfile_data_registry): New variable.
1919 (register_objfile_data): New function.
1920 (objfile_alloc_data, objfile_free_data): New functions.
1921 (set_objfile_data, objfile_data): New functions.
1922 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1923 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1924 (_initialize_dwarf2_frame): New function and prototype.
1926 2003-08-21 Andrew Cagney <cagney@redhat.com>
1928 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1929 a specific architecture.
1930 * arch-utils.h (set_architecture_from_arch_mach): Delete
1932 (target_architecture_hook): Delete declaration.
1933 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1934 (default_float_format): Assume GDB_MULTI_ARCH.
1935 (default_double_format): Assume GDB_MULTI_ARCH.
1936 (set_endian_from_file): Delete function.
1937 (arch_ok): Delete function.
1938 (set_arch): Delete function.
1939 (set_architecture_from_arch_mach): Delete function.
1940 (set_architecture_from_file): Delete function.
1941 (set_architecture): Assume GDB_MULTI_ARCH.
1942 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1944 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1946 Rewrite FreeBSD/sparc64 native configuration.
1947 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1948 * sparc64fbsd-nat.c: New file.
1949 * sparc64fbsd-tdep.c: New file.
1950 * sparc64-tdep.c sparc64-tdep.h: New files.
1951 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1952 sparc64fbsd-tdep.o): New dependencies.
1953 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1954 and sparc64fbsd-tdep.c.
1955 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1956 * config/sparc/fbsd.mh: Remove copyright notice.
1957 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1959 * config/sparc/fbsd.mt: Remove copyright notice.
1960 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1961 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1962 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1963 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1964 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1965 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1966 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1967 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1969 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1970 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1972 2003-08-21 Michael Chastain <mec@shout.net>
1974 * symtab.h: Add doco on the space critical structures and
1975 some measurements of space usage.
1977 2003-08-21 Michael Snyder <msnyder@redhat.com>
1979 * tracepoint.c (trace_dump_command): Trace break address
1980 is subject to DECR_PC_AFTER_BREAK.
1981 (set_traceframe_context): Make "trace_line" an int.
1982 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1984 2003-08-20 Michael Snyder <msnyder@redhat.com>
1986 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1987 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1988 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1990 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1991 functions, replace sh_push_dummy_call.
1992 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1994 2003-08-20 Michael Chastain <mec@shout.net>
1996 * gdbtypes.h (struct main_type): Rearrange to save space.
1998 2003-08-20 Michael Snyder <msnyder@redhat.com>
2000 * trad-frame.c: Comment typo fix.
2002 2003-08-20 Michael Snyder <msnyder@redhat.com>
2003 Kevin Buettner <kevinb@redhat.com>
2005 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2006 (frv_frame_init_saved_regs): Add declaration.
2007 (frame_extra_info): Add new field ``saved_regs''.
2008 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2009 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2010 Update frame related code.
2011 (frv_extract_struct_value_address): Adjust formatting.
2012 * Makefile.in (frv-tdep.o): Update dependencies.
2013 * config/frv/tm-frv.h (target_insert_watchpoint)
2014 (target_remove_watchpoint, target_insert_hw_breakpoint)
2015 (target_remove_hw_breakpoint): Delete these macros.
2016 (remote_insert_watchpoint, remote_remove_watchpoint)
2017 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2020 2003-08-20 Michael Chastain <mec@shout.net>
2022 * defs.h (ENUM_BITFIELD): New macro.
2023 * symtab.h (ENUM_BITFIELD): Use it.
2024 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2026 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2028 * MAINTAINERS (write after approval): Add myself.
2030 2003-08-18 Andrew Cagney <cagney@redhat.com>
2032 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2033 * gdbarch.h, gdbarch.c: Re-generate.
2034 * infcall.c (call_function_by_hand): Adjust the SP by
2035 frame_red_zone_size before allocating any stack space.
2036 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2037 * x86-64-tdep.c (x86_64_frame_align): New function.
2038 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2040 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2041 Remove code adjusting SP so that it skips over the Red Zone.
2043 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2045 * NEWS (New native configurations): Mention FreeBSD/amd64.
2047 2003-08-18 Andrew Cagney <cagney@redhat.com>
2049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2050 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2052 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2054 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2056 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2058 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2060 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2062 * i386-linux-nat.c: Include "linux-nat.h".
2063 (child_post_startup_inferior): New function.
2065 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2067 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2068 at the start of a frameless function. This probably fixes PR
2071 2003-08-17 Michael Chastain <mec@shout.net>
2073 * symfile.c (find_sym_fns): Remove special case for apollo target.
2075 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2077 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2078 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2079 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2080 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2081 (linux_supports_tracevforkdone): New function.
2082 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2084 (child_follow_fork): Handle vfork.
2085 (linux_handle_extended_wait): Likewise. Also handle exec.
2086 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2087 * NEWS: Mention fork tracing.
2089 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2091 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2093 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2095 * Makefile.in (i386-linux-nat.o): Update dependencies.
2096 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2097 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2098 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2099 * i386-linux-nat.c: Include "linux-nat.h".
2100 (child_post_startup_inferior): New function.
2101 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2102 * infptrace.c (kill_inferior): Wrap in #ifdef.
2103 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2104 attaching to each LWP.
2105 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2106 (init_lin_lwp_ops): Fill in some more operations.
2107 * linux-nat.h (linux_enable_event_reporting)
2108 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2110 * linux-nat.c (linux_enable_event_reporting): New function.
2111 (child_post_attach, linux_child_post_startup_inferior)
2112 (child_post_startup_inferior, child_follow_fork)
2113 (linux_handle_extended_wait, kill_inferior): New functions.
2115 2003-08-16 Andrew Cagney <cagney@redhat.com>
2117 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2118 * gdbarch.h, gdbarch.c: Re-generate.
2120 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2122 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2124 2003-08-16 Andrew Cagney <cagney@redhat.com>
2126 * NEWS: Mention that "set prompt-escape-char" was deleted.
2127 * top.c (get_prompt_1): Delete function.
2128 (gdb_prompt_escape):
2129 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2130 prompt-escape-char" command.
2131 (MAX_PROMPT_SIZE): Delete macro.
2132 (get_prompt): Simplify, do not call get_prompt_1.
2134 2003-08-16 Andrew Cagney <cagney@redhat.com>
2136 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2137 -Werror. -Wformat-nonliteral problems.
2139 2003-08-15 J. Brobecker <brobecker@gnat.com>
2141 Further multiarching work mostly for hppa64-*-hpux11:
2142 * hppa-tdep.h: New file.
2143 * hppa-tdep.c: #include hppa-tdep.c.
2144 (hppa32_num_regs): Renamed from hppa_num_regs.
2145 (hppa64_num_regs): New constant.
2146 (hppa64_call_dummy_breakpoint_offset): New constant.
2147 (hppa32_call_dummy_length): New constant.
2148 (hppa64_call_dummy_length): New constant.
2149 (hppa32_stack_align): Make name 32bit explicit.
2150 (hppa32_register_virtual_type): Likewise.
2151 (hppa32_extract_return_value): Likewise.
2152 (hppa32_use_struct_convention): Likewise.
2153 (hppa32_store_return_value): Likewise.
2154 (hppa64_register_virtual_type): New function.
2155 (hppa64_extract_return_value): New function.
2156 (hppa64_use_struct_convention): New function.
2157 (hppa64_store_return_value): New function.
2158 (hppa_frame_locals_address): Remove declaration, function does
2160 (hppa_register_byte): Add support for PA64 ABI.
2161 (hppa_gdbarch_init): Add support for PA64 ABI.
2162 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2163 Make name 32bit explicit.
2164 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2165 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2166 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2167 (hppa64_hpux_frame_base_before_sigtramp): New function.
2168 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2169 * config/pa/tm-hppa64.h: Remove macros that are no longer
2170 necessary now that the gdbarch vector is properly setup.
2171 Transform some macros into function calls. Some minor cleanup.
2172 * config/pa/tm-hppah.h: Update function calls in macros
2173 following the function renaming in hppa-hpux-tdep.c.
2174 * Makefile.in (hppa_tdep_h): New variable.
2175 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2177 2003-08-14 Michael Snyder <msnyder@redhat.com>
2179 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2181 2003-08-13 J. Brobecker <brobecker@gnat.com>
2183 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2184 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2187 2003-08-13 Michael Snyder <msnyder@redhat.com>
2189 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2190 (frv_saved_pc_after_call): Use deprecated ftype.
2191 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2192 (frv_remote_translate_xfer_address): Remove.
2193 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2195 2003-08-13 J. Brobecker <brobecker@gnat.com>
2197 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2198 initialization after the common gdbarch initialization, not before.
2200 2003-08-13 J. Brobecker <brobecker@gnat.com>
2202 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2203 (ADDR_BITS_REMOVE): Remove, redundant.
2205 2003-08-13 J. Brobecker <brobecker@gnat.com>
2207 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2208 gdbarch method to clear the 2 low bits of text addresses.
2210 2003-08-12 Andrew Cagney <cagney@redhat.com>
2212 * Makefile.in (dsrec.o): Update dependencies.
2213 * dsrec.c: Include "gdb_assert.h".
2214 (make_srec): Use snprintf instead of sprintf, use a literal format
2217 2003-08-12 Andrew Cagney <cagney@redhat.com>
2219 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2220 FRAME_OBSTACK_ZALLOC.
2222 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2224 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2227 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2229 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2230 amd64fbsd_sc_reg_offset): Add extern declarations.
2231 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2234 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2236 * MAINTAINERS (write after approval): Update my mail address.
2238 2003-08-10 Andrew Cagney <cagney@redhat.com>
2240 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2242 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2244 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2245 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2246 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2247 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2248 i386bsd_sc_reg_offset): Add extern declarations.
2249 * i386obsd-nat.c: Include "i386-tdep.h"
2250 (_initialize_i386obsd_nat): Remove extern declarations.
2251 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2253 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2256 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2257 instead of frame_read_register.
2258 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2259 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2261 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2262 instead of frame_unwind_unsigned_register. Use
2263 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2264 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2265 instead of read_register. Use builtin_type_void_data_ptr instead
2266 of builtin_type_void_func_ptr when extracting the address of the
2268 (i386_extract_return_value, i386_store_return_value,
2269 i386_pseudo_register_read, i386_pseudo_register_write): Use
2270 register_size instead REGISTER_RAW_SIZE.
2272 2003-08-10 Andrew Cagney <cagney@redhat.com>
2274 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2275 sprintf. Make "name" constant.
2277 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2279 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2280 instead of frame_read_register.
2281 (i387_print_float_info): Use get_frame_register and
2282 get_frame_register_unsigned instead of frame_register_read.
2284 * i386fbsd-nat.c: Include "i386-tdep.h".
2285 (child_resume): Make `eflags' an ULONGEST. Use
2286 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2287 instead of register_read and register_write.
2289 * i386bsd-nat.c (fetch_inferior_registers,
2290 store_inferior_registers): Don't use && at the end of a line.
2291 (_initialize_i386bsd_nat): Fix typo.
2293 * frame.c (_initialize_frame): Add missing backslash.
2295 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2296 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2297 and supply_register instead of manipulating the register buffer
2300 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2301 * config/i386/nm-i386sol2.h
2302 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2304 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2305 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2306 instructions that GCC likes to mingle into the prologue. Fixes
2307 gdb/1253 and gdb/1255.
2309 2003-08-09 Andrew Cagney <cagney@redhat.com>
2312 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2313 * command.h (add_setshow_uinteger_cmd): Declare.
2314 * frame.c (set_backtrace_cmd): New function.
2315 (show_backtrace_cmd): New function.
2316 * frame.c (_initialize_frame): Replace "set/show
2317 backtrace-below-main" with "set/show backtrace past-main". Add
2318 command "set/show backtrace limit".
2319 (backtrace_past_main): Rename "backtrace_below_main".
2320 (backtrace_limit): New variable.
2321 (get_prev_frame): Update. Check the backtrace_limit.
2323 2003-08-09 Andrew Cagney <cagney@redhat.com>
2325 * defs.h (xstrprintf): Declare.
2326 * utils.c (xstrprintf): New function.
2327 * breakpoint.c (insert_breakpoints): Replace sprintf and
2328 non-literal format strings, with xstrprintf and cleanups.
2329 (delete_breakpoint,breakpoint_re_set): Ditto.
2330 (commands_command, insert_breakpoints): Ditto.
2331 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2332 (break_at_finish_command_1): Ditto.
2334 2003-08-09 Andrew Cagney <cagney@redhat.com>
2336 * MAINTAINERS (language support): List Adam Fedor as Objective C
2339 2003-08-08 J. Brobecker <brobecker@gnat.com>
2341 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2342 are now multiarched.
2344 2003-08-08 J. Brobecker <brobecker@gnat.com>
2346 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2347 longer necessary now that hppa64 is partially multiarch'ed.
2349 2003-08-08 Andrew Cagney <cagney@redhat.com>
2351 * interps.c (interp_set): Check for a NULL "old_interp".
2353 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2355 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2356 (install-only): Support DESTDIR.
2357 (uninstall): Likewise.
2358 (install-gdbtk): Likewise.
2360 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2362 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2363 contains something meaningful at all times.
2365 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2367 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2369 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2371 * MAINTAINERS (write after approval): Added self.
2373 2003-08-07 Andrew Cagney <cagney@redhat.com>
2375 * inferior.h (AT_SYMBOL): Define.
2376 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2377 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2378 * mips-tdep.c (mips_call_dummy_address): Delete function.
2379 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2380 set call_dummy_address.
2382 2003-08-07 Andrew Cagney <cagney@redhat.com>
2384 * language.c (op_error): Delete function.
2385 (binop_type_check): Delete function.
2386 * language.h (type_op_error, range_op_error): Delete macros.
2387 (op_error): Delete declaration.
2389 2003-08-07 Andrew Cagney <cagney@redhat.com>
2391 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2393 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2395 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2396 (x86_64_push_arguments): Skip the red zone.
2398 2003-08-05 Andrew Cagney <cagney@redhat.com>
2400 * reggroups.c (reggroup_next): Check for the final entry.
2402 2003-08-04 Andrew Cagney <cagney@redhat.com>
2404 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2405 * cli/cli-script.c (define_command): Call query directly, instead
2406 of passing it a buffer.
2407 * ocd.c (ocd_error): Pass error a constant format string.
2408 * remote-mips.c (mips_error): Use fputs_filtered.
2410 * solib-svr4.c (_initialize_svr4_solib): Update
2411 register_gdbarch_data call.
2412 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2414 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2415 (register_gdbarch_data): Delete "free" parameter. Update
2417 * gdbarch.h, gdbarch.c: Re-generate.
2418 * reggroups.c (_initialize_reggroup): Update.
2419 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2420 * frame-base.c (_initialize_frame_base): Update.
2421 * frame-unwind.c (_initialize_frame_unwind): Update.
2422 * user-regs.c (_initialize_user_regs): Update.
2423 * remote.c (_initialize_remote): Update.
2424 * regcache.c (_initialize_regcache): Update.
2426 * regcache.c (xfree_regcache_descr): Delete function.
2427 (_initialize_regcache): Update call to register_gdbarch_data.
2428 (init_regcache_descr, init_legacy_regcache_descr): Use
2429 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2431 * remote.c (free_remote_state): Delete function.
2432 (_initialize_remote): Update register_gdbarch_data.
2433 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2434 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2436 2003-08-04 Andrew Cagney <cagney@redhat.com>
2438 * reggroups.c (struct reggroup_el): Define.
2439 (struct reggroups): Delete field "nr_group". Replace array
2440 "group" with a "first" to "last" linked list.
2441 (reggroups_init): Update. Allocate using gdbarch's obstack.
2442 (reggroups_free): Delete function.
2443 (add_group): Update. Add "el" parameter.
2444 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2445 (default_groups): Update.
2446 (reggroup_next): Replace reggroups.
2447 (reggroups_dump): Update.
2448 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2449 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2450 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2452 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2454 * Makefile.in (tui-interp.o): Update dependencies.
2456 2003-08-04 David Carlton <carlton@kealia.com>
2458 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2459 to internal_error call.
2460 * source.c (forward_search_command): Add "%s" format argument.
2461 (reverse_search_command): Ditto.
2462 * top.c (quit_confirm): Ditto.
2463 * cli/cli-setshow.c (do_setshow_command): Ditto.
2464 * cp-valprint.c (cp_print_class_method): Replace
2465 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2466 (cp_print_class_member): Ditto.
2467 * event-top.c (command_line_handler): Ditto.
2468 * linux-proc.c (linux_info_proc_cmd): Ditto.
2469 * p-typeprint.c (pascal_type_print_base): Ditto.
2470 * p-valprint.c (pascal_object_print_class_method): Ditto.
2471 (pascal_object_print_class_member): Ditto.
2472 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2473 * remote.c (remote_cisco_section_offsets): Ditto.
2474 * top.c (command_line_input): Ditto.
2475 * utils.c (vwarning,error_stream,quit): Ditto.
2476 * valprint.c (print_floating,print_binary_chars)
2477 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2479 2003-08-04 Andrew Cagney <cagney@redhat.com>
2481 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2483 2003-08-02 Andrew Cagney <cagney@redhat.com>
2485 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2486 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2489 2003-08-02 Andrew Cagney <cagney@redhat.com>
2491 * Makefile.in: Update all dependencies and definitions.
2493 2003-08-02 Adam Fedor <fedor@gnu.org>
2495 * linespec.c (is_objc_method_format): New function
2496 (decode_line_1, locate_first_half): Use it.
2499 2003-08-01 Andrew Cagney <cagney@redhat.com>
2501 * NEWS: Mention that m32r is multi-arch.
2502 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2503 * configure.tgt: Recognize m32r-*-*.
2504 * config/m32r/tm-m32r.h: Delete file.
2505 * config/m32r/m32r.mt: New file.
2506 * m32r-rom.c (m32r_upload_command): Use hostent only when
2507 gethostname succeeds, in order to avoid a compilation
2509 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2512 2003-08-01 Michael Snyder <msnyder@redhat.com>
2514 * sh-tdep.c (sh_frame_align): New gdbarch method.
2515 (sh_gdbarch_init): Set up frame_align method.
2517 2003-07-31 Michael Snyder <msnyder@redhat.com>
2519 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2520 which is already covered by the new frames infrastructure.
2522 2003-07-31 Andrew Cagney <cagney@redhat.com>
2524 * user-regs.c (struct user_reg): Add "next" link.
2525 (struct user_regs): Replace "user" with "first" and "last" links.
2526 (append_user_reg): Add pre-allocated "reg" parameter.
2527 (builtin_user_regs): Provide initial value for "last".
2528 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2529 (user_regs_init): Allocate memory from the gdbarch obstack.
2530 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2531 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2533 (usernum_to_user_reg): New function.
2534 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2535 (value_of_user_reg): Use usernum_to_user_reg.
2536 (user_regs_free): Delete function.
2537 (_initialize_user_regs): Update register_gdbarch_data call.
2539 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2541 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2543 2003-07-30 Michael Snyder <msnyder@redhat.com>
2545 * value.h (value_being_returned): Add a struct_addr argument.
2546 * infcall.c (call_function_by_hand): Pass struct_addr to
2547 value_being_returned.
2548 * infcmd.c (print_return_value): Pass zero as struct_addr.
2549 * values.c (value_being_returned): If struct_addr is passed,
2550 use it instead of trying to recover it from the inferior.
2552 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2554 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2555 the prologue analyzer won't need to attempt to extract the pc
2556 value from the woefully incomplete dummy frame.
2557 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2558 possible. Disable code which modifies the frame.
2560 2003-07-28 Andrew Cagney <cagney@redhat.com>
2562 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2564 (annotate_breakpoints_table, annotate_record): Ditto.
2565 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2566 (annotate_field_name_end, annotate_field_value): Ditto.
2567 (annotate_field_end, annotate_frame_source_begin): Ditto.
2568 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2569 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2570 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2571 (annotate_frame_address_end, annotate_frame_address): Ditto.
2572 (annotate_frame_args, annotate_frame_end): Ditto.
2573 (annotate_frame_where, annotate_arg_begin): Ditto.
2574 (annotate_arg_name_end, annotate_arg_value): Ditto.
2575 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2576 (annotate_function_call, annotate_signal_name): Ditto.
2577 (annotate_signal_string, annotate_signal_name_end): Ditto.
2578 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2579 (annotate_value_begin, annotate_value_history_value): Ditto.
2580 (annotate_value_history_end, annotate_value_end): Ditto.
2581 (annotate_display_begin, annotate_display_number_end): Ditto.
2582 (annotate_display_format, annotate_display_expression): Ditto.
2583 (annotate_display_expression_end, annotate_display_value): Ditto.
2584 (annotate_display_end, annotate_array_section_begin): Ditto.
2585 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2586 (annotate_elt, annotate_array_section_end): Ditto.
2588 2003-07-28 Andrew Cagney <cagney@redhat.com>
2590 * regcache.c (struct regcache_descr): Update comments on
2592 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2593 sizeof_raw_register_valid_p.
2594 (init_regcache_descr): Set nr_raw_registers and
2595 sizeof_raw_register_valid_p before calling
2596 init_legacy_regcache_descr.
2598 2003-07-28 Andrew Cagney <cagney@redhat.com>
2600 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2603 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2605 * thread.c (info_threads_command): Use get_selected_frame ().
2606 Check that there is at least one non-sentinel frame.
2608 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2610 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2611 (m68hc11_pop_frame): Remove.
2612 (m68hc11_frame_saved_pc): Remove.
2613 (m68hc11_frame_chain): Remove.
2614 (m68hc11_frame_init_saved_regs): Remove.
2615 (m68hc11_init_extra_frame_info): Remove.
2616 (m68hc11_store_struct_return): Remove.
2617 (m68hc11_saved_pc_after_call): Remove.
2619 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2621 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2622 frame unwind information.
2623 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2624 and adapted for frame unwinding.
2625 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2626 (m68hc11_unwind_pc): New function.
2627 (m68hc11_frame_unwind_cache): New function to analyze frames.
2628 (m68hc11_frame_this_id): New function to create new frame struct.
2629 (m68hc11_frame_prev_register): New function to unwind a register from
2631 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2632 (m68hc11_frame_p): New function for the above.
2633 (m68hc11_frame_base_address): New function to return fp of frame.
2634 (m68hc11_frame_args_address): Update for frame.
2635 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2636 (m68hc11_unwind_sp): New function.
2637 (m68hc11_unwind_dummy_id): New function.
2638 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2641 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2643 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2644 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2645 when we are beyond the current pc.
2647 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2649 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2650 from m68hc11_push_arguments.
2651 (m68hc11_push_arguments): Remove.
2652 (m68hc11_push_return_address): Remove.
2653 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2654 handlers; remove deprecated_extra_stack_alignment_needed.
2656 2003-07-27 Andrew Cagney <cagney@redhat.com>
2658 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2659 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2660 REAL_PC and not the pointer.
2661 * hppa-hpux-tdep.c: Include frame.h
2663 2003-07-27 Andrew Cagney <cagney@redhat.com>
2665 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2666 GDB_MULTI_ACH_PARTIAL.
2668 2003-07-27 Andrew Cagney <cagney@redhat.com>
2670 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2671 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2672 operator at start and not end of line.
2673 (decode_prologue): Ditto.
2674 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2675 frame_unwind_register_unsigned instead of
2676 frame_unwind_unsigned_register.
2677 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2679 (m32r_push_dummy_call): Use register_size instead of
2681 (m32r_frame_sniffer): Replace m32r_frame_p.
2682 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2683 * m32r-rom.c (report_transfer_performance): Delete extern
2685 (m32r_load, m32r_upload_command): Use print_transfer_performance
2686 instead of report_transfer_performance.
2687 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2688 / add_show_from_set.
2690 2003-07-26 Andrew Cagney <cagney@redhat.com>
2692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2693 store_return_value and extract_struct_value_address.
2695 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2698 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2699 NULL, default to the section containing PC.
2701 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2703 * NEWS: Mention "regs" deprecated for m68hc11 too.
2705 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2706 (m68hc11_print_register): New function to print out one register.
2707 (m68hc11_print_registers_info): New function to print registers.
2708 (show_regs): Deprecate and use the above.
2709 (m68hc11_gdbarch_init): Install the print_registers_info.
2711 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2713 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2714 that we have a SIGTRAP before returning non-zero.
2716 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2717 Elena Zannoni <ezannoni@redhat.com>
2719 * linespec.c (decode_line_2): Avoid crash if
2720 find_function_start_sal() returns empty record.
2722 2003-07-23 Andreas Schwab <schwab@suse.de>
2724 * ia64-tdep.c (ia64_print_insn): New function.
2725 (ia64_gdbarch_init): Set print_insn to it.
2726 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2727 deprecated_tm_print_insn_info.
2729 2003-07-22 Michael Snyder <msnyder@redhat.com>
2731 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2732 handle 8-bit returns (long long).
2733 (h8300h_extract_return_value): Ditto.
2734 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2736 2003-07-22 Andrew Cagney <cagney@redhat.com>
2738 * gdbarch.c Include "gdb_obstack.h".
2739 (struct gdbarch): Add an "obstack".
2740 (alloc_gdbarch_data): Allocate the gdbarch data using
2741 GDBARCH_OBSTACK_CALLOC.
2742 (free_gdbarch_data): Delete function.
2743 (gdbarch_obstack_zalloc): New function.
2744 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2745 Assert that the architecture is not initialized.
2746 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2747 vector from the obstack.
2748 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2749 architecture obstack.
2750 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2751 (set_gdbarch_data): Assert that the data is not initialized.
2752 (struct gdbarch_data): Delete member "free".
2753 (register_gdbarch_data): Do not initialize "free".
2754 * gdbarch.h, gdbarch.c: Re-generate.
2756 2003-07-22 Andrew Cagney <cagney@redhat.com>
2758 * configure.in (build_warnings): Add -Wformat-nonliteral.
2759 * configure: Re-generate.
2761 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2763 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2765 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2767 * findvar.c (read_var_value): Remove case for thread local storage
2768 variables. It is now entirely handled by the dwarf2 location
2770 * printcmd.c (address_info): Ditto.
2771 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2773 (struct symbol): Remove objfile field, which was used by
2774 LOC_THREAD_LOCAL_STATIC only.
2775 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2776 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2777 usage of objfile pointer.
2778 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2779 thread local variables.
2780 Add include of objfiles.h.
2781 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2783 * Makefile.in (dwarf2loc.o): Update dependencies.
2785 2003-07-22 Andrew Cagney <cagney@redhat.com>
2787 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2789 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2790 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2791 (struct value): Add opaque declaration.
2792 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2794 2003-07-21 Andrew Cagney <cagney@redhat.com>
2796 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2797 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2799 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2801 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2802 regcache_cooked_read_unsigned instead of read_register.
2803 (m68hc11_saved_pc_after_call): Likewise.
2804 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2805 instead of write_register.
2806 (m68hc11_register_type): New function.
2807 (m68hc11_register_virtual_type): Remove.
2808 (m68hc11_store_return_value): Convert to use the regcache.
2809 (m68hc11_extract_struct_value_address): Likewise.
2810 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2811 m68hc11_register_type; undeprecate store_return_value and
2812 extract_struct_value_address.
2814 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2816 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2817 and translate to use regcache.
2818 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2820 2003-07-18 Andrew Cagney <cagney@redhat.com>
2822 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2823 * gdbarch.h, gdbarch.c: Re-generate.
2824 * i386-tdep.c (i386_gdbarch_init): Do not set
2825 DWARF2_BUILD_FRAME_INFO.
2826 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2828 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2829 DWARF2_BUILD_FRAME_INFO.
2831 2003-07-18 Andrew Cagney <cagney@redhat.com>
2833 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2834 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2836 2003-07-18 Andrew Cagney <cagney@redhat.com>
2838 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2839 frame_unwind_address_in_block, instead of frame_pc_unwind.
2840 (dwarf2_frame_cache): Ditto.
2842 2003-07-18 Andrew Cagney <cagney@redhat.com>
2844 * user-regs.h (struct gdbarch): Declare opaque.
2845 * ui-out.h (struct ui_file): Declare opaque.
2846 * dwarf2-frame.h (struct frame_info): Declare opaque.
2848 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2850 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2852 (procfs_meminfo): Change strerror to safe_strerror.
2853 (procfs_can_run): Remove K&R badness.
2855 2003-07-17 Michael Snyder <msnyder@redhat.com>
2857 * remote-sim.c: Comment typo fix.
2859 2003-07-17 Andrew Cagney <cagney@redhat.com>
2861 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2863 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2864 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2865 GDB_MULTI_ARCH_PARTIAL.
2867 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2869 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2870 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2871 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2873 2003-07-16 Theodore A. Roth <troth@openavr.org>
2875 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2877 (avr_frame_unwind_cache): Don't unwind FP for main.
2879 Save the computed prev_sp.
2880 (avr_saved_regs_unwinder): Remove function.
2881 (avr_frame_prev_register): Use PC unwind logic from
2882 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2884 2003-07-16 Andrew Cagney <cagney@redhat.com>
2886 * frame-base.h (frame_base_p_ftype): Delete definition.
2887 (frame_base_append_predicate): Delete declaration.
2888 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2889 (frame_unwind_append_predicate): Delete declaration.
2890 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2891 (append_predicate): Delete parameter "p".
2892 (frame_unwind_append_predicate): Delete function.
2893 (frame_unwind_append_sniffer): Update call to append_predicate.
2894 (frame_unwind_free): Delete function.
2895 (_initialize_frame_unwind): Pass NULL as "free" to
2896 register_gdbarch_data.
2897 (frame_unwind_init): Append the dummy_frame_sniffer.
2898 (frame_unwind_find_by_frame): Simplify.
2899 * frame-base.c (struct frame_base_table): Delete field "p".
2900 (append_predicate): Delete parameter "p".
2901 (frame_base_append_predicate): Delete function.
2902 (frame_base_append_sniffer): Update call to append_predicate.
2903 (frame_base_free): Delete function.
2904 (frame_base_find_by_frame): Simplify.
2905 (_initialize_frame_base): Pass NULL as "free" to
2906 register_gdbarch_data.
2907 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2908 (x86_64_sigtramp_frame_sniffer): Replace
2909 "x86_64_sigtramp_frame_p".
2910 (x86_64_init_abi): Set the frame unwind sniffers.
2911 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2912 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2913 (m68k_gdbarch_init): Set the frame unwind sniffers.
2914 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2915 "i386_sigtramp_frame_p".
2916 (i386_frame_sniffer): Replace "i386_frame_p".
2917 (i386_gdbarch_init): Set the frame unwind sniffers.
2918 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2919 (avr_gdbarch_init): Set the frame unwind sniffers.
2920 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2921 "alpha_sigtramp_frame_p"
2922 (alpha_heuristic_frame_sniffer): Replace
2923 "alpha_heuristic_frame_p".
2924 (alpha_gdbarch_init): Set the frame unwind sniffers.
2925 (alpha_dwarf2_init_abi): Ditto.
2926 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2927 "alpha_debug_frame_p".
2928 (alpha_mdebug_frame_base_sniffer): Replace
2929 "alpha_mdebug_frame_base_p".
2930 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2931 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2932 (d10v_gdbarch_init): Set the frame unwind sniffer.
2933 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2934 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2935 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2936 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2937 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2938 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2940 2003-07-16 Michael Snyder <msnyder@redhat.com>
2942 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2943 should go thru sh_dsp_register_sim_regno, else the dsp regs
2944 will not get the right values.
2946 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2948 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2949 deprecated_store_floating by call to store_typed_floating.
2950 (sh_sh4_register_convert_to_raw): Substitute call to
2951 deprecated_extract_floating by call to extract_typed_floating.
2953 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2955 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2957 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2959 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2960 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2961 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2963 (do_pseudo_register): Remove.
2964 (sh_push_dummy_code): New function.
2965 (sh64_store_struct_return): Rename from sh_store_struct_return.
2966 Only called for sh64 now.
2967 (sh_extract_struct_value_address): Regcache'ify.
2968 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2969 and accomodate new tasks.
2970 (sh64_push_return_address): Rename from sh_push_return_address.
2971 Only called for sh64 now.
2972 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2974 (sh3e_sh4_extract_return_value): Regcache'ify.
2975 (sh_default_store_return_value): Ditto.
2976 (sh3e_sh4_store_return_value): Ditto.
2977 (sh_default_register_byte): Remove.
2978 (sh_sh4_register_byte): Remove.
2979 (sh_default_register_raw_size): Remove.
2980 (sh_sh4_register_raw_size): Remove.
2981 (sh_register_virtual_size): Remove.
2982 (sh_sh3e_register_virtual_type): Remove.
2983 (sh_sh3e_register_type): New function.
2984 (sh_sh4_register_virtual_type): Remove.
2985 (sh_sh4_register_type): New function.
2986 (sh_default_register_virtual_type): Remove.
2987 (sh_default_register_type): New function.
2988 (do_fv_register_info): Add parameters to accomodate call from
2989 sh_print_registers_info.
2990 (do_dr_register_info): Ditto.
2991 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2992 Add parameters to accomodate call from sh_print_registers_info.
2993 (sh_do_fp_register): Ditto.
2994 (sh64_do_pseudo_register): Call do_dr_register_info,
2995 do_fv_register_info and sh_do_fp_register with default parameters.
2996 (sh_do_register): Add parameters to accomodate call from
2997 sh_print_registers_info.
2998 (sh_print_register): Ditto.
2999 (sh_print_registers_info): Rename from sh_do_registers_info.
3000 Add parameters to be used as gdbarch_print_registers_info
3001 implementation. Accomodate removed do_pseudo_register function
3003 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3004 function pointer. Call sh_print_register with default parameters.
3005 (sh64_do_registers_info): Call sh_print_registers_info instead of
3006 sh_do_registers_info.
3007 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3008 detection of deprecated vs. non-deprecated functionality.
3009 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3010 function pointer assignments by direct function calls.
3012 2003-07-15 Andrew Cagney <cagney@redhat.com>
3014 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3015 (frame_register_unwind, create_new_frame): Ditto.
3016 (legacy_get_prev_frame, get_frame_type): Ditto.
3017 (get_frame_base_address): Use frame_base_find_by_frame.
3018 (get_frame_locals_address): Use frame_base_find_by_frame.
3019 (get_frame_args_address): Use frame_base_find_by_frame.
3020 * frame-base.h (frame_base_sniffer_ftype): Declare.
3021 (frame_base_append_sniffer): Declare.
3022 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3023 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3024 (frame_base_append_sniffer): New function.
3025 (frame_base_append_predicate): Add a NULL sniffer.
3026 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3027 (struct frame_base_table): Add "sniffer".
3028 (frame_base_free): Free the "sniffer" table.
3029 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3030 (frame_unwind_append_sniffer): Declare.
3031 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3032 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3033 (struct frame_unwind_table): Add "sniffer", delete "middle".
3034 (append_predicate): Add "sniffer" parameter, append the sniffer.
3035 (frame_unwind_init): Update append_predicate call.
3036 (frame_unwind_append_sniffer): New function.
3037 (frame_unwind_append_predicate): Update append_predicate call.
3038 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3040 2003-07-15 Andrew Cagney <cagney@redhat.com>
3042 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3043 before code inhibiting repeated unwind attempts. Add to
3044 commentary on that test's problems.
3045 * blockframe.c (inside_main_func): Look for "main" in the minimal
3047 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3050 2003-07-15 Andrew Cagney <cagney@redhat.com>
3052 * complaints.c (struct explanation): Define.
3053 (struct complaints): Change type of "explanation" to "struct
3055 (symfile_explanations): Convert to a "struct explanation" table.
3056 (vcomplaint): Update.
3058 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3060 * x86-64-linux-nat.c (regmap): Removed.
3061 (supply_gregset, fill_gregset): Call
3062 x86_64_linux_(fill,supply)_gregset functions.
3063 * x86-64-linux-tdep.c (USER_*): New defines.
3064 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3065 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3067 (fetch_core_registers): Ditto.
3068 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3069 * x86-64-linux-tdep.h: New file.
3070 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3072 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3074 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3076 * x86-64-tdep.c (x86_64_store_return_value): Use
3077 regcache_cooked_write_part instead of regcache_cooked_write.
3079 * configure.host: Add x86_64-*-freebsd*.
3080 * configure.tgt: Add x86_64-*-freebsd*.
3081 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3082 * amd64fbsd-nat.c: New file.
3083 * amd64fbsd-tdep.c: New file.
3084 * config/i386/nm-fbsd64.h: New file.
3085 * config/i386/fbsd64.mh: New file.
3086 * config/i386/fbsd64.mt: New file.
3088 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3090 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3091 `sc_regs_offset' and `sc_fpregs_offset'.
3092 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3093 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3094 (alpha_sigtramp_register_address): Rewrite to use new members of
3095 `struct gdbarch_tdep'.
3096 (alpha_gdbarch_init): Initialize new members of struct
3098 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3099 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3100 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3101 (alphafbsd_pc_in_sigtramp): Implement.
3102 (alphafbsd_sigtramp_offset): New function.
3103 (alphafbsd_sigcontext_addr): New function.
3104 (alphafbsd_init_abi): Initialize signal trampoline related members
3105 of `struct gdbarch_tdep'.
3106 (_initialize_alphafbsd_tdep): Add prototype.
3108 2003-07-11 Theodore A. Roth <troth@openavr.org>
3110 * Makefile.in (install-only): Quote sed expression when generating
3113 2003-07-11 Richard Henderson <rth@redhat.com>
3115 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3116 * dwarf2-frame.c: Include complaints.h.
3117 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3118 variable initialization; return NULL on error.
3119 (decode_frame_entry): New.
3121 2003-07-11 Andrew Cagney <cagney@redhat.com>
3123 * frame.h (frame_address_in_block): Delete declaration.
3124 * blockframe.c (frame_address_in_block): Delete function.
3125 (get_frame_block): Use get_frame_address_in_block.
3126 (block_innermost_frame): Ditto.
3127 * stack.c (print_frame, backtrace_command_1): Ditto.
3129 * frame.h (get_frame_address_in_block): Declare.
3130 (frame_unwind_address_in_block): Declare.
3131 * frame.c (frame_unwind_address_in_block): New function.
3132 (get_frame_address_in_block): New function.
3134 2003-07-10 Andrew Cagney <cagney@redhat.com>
3136 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3137 pre-default. Note: re-generate has no effect.
3139 2003-07-10 Andrew Cagney <cagney@redhat.com>
3141 * gdbarch.sh: When a variable, but not a function, compare against
3142 0. Fix problem in previous patch.
3143 * gdbarch.c: Re-generate.
3145 2003-07-10 Andrew Cagney <cagney@redhat.com>
3147 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3148 functions against NULL, not 0.
3149 * gdbarch.c: Re-generate.
3151 2003-07-10 Fred Fish <fnf@ninemoons.com>
3153 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3154 null string instead of a null pointer.
3155 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3157 2003-07-09 Michael Snyder <msnyder@redhat.com>
3159 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3161 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3163 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3164 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3165 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3166 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3167 * x86-64-tdep.c: ... from here.
3169 2003-07-09 Andreas Schwab <schwab@suse.de>
3171 * m68k-tdep.h (enum struct_return): Define.
3172 (struct gdbarch_tdep): Add struct_return.
3173 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3174 bytes are padded to the right, not to the left. Pass struct value
3175 address in register %a1, not on stack.
3176 (m68k_use_struct_convention): New function.
3177 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3178 struct_return in tdep to pcc_struct_return.
3179 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3182 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3184 * somread.c (som_symfile_offsets): Fix compilation error.
3186 2003-07-09 Andrew Cagney <cagney@redhat.com>
3188 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3189 Add comments about the checks.
3191 2003-07-08 Andrew Cagney <cagney@redhat.com>
3193 * Makefile.in: Make dependency section headers consistent.
3194 (config_h): Move to $BUILD headers section.
3195 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3196 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3197 (ada-exp.tab.c): Move to YACC/LEX section.
3198 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3199 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3201 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3203 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3204 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3205 of strerror with safe_strerror, use ISO C function definitions,
3206 and replace instances of sprintf with snprintf.
3208 2003-07-07 Andrew Cagney <cagney@redhat.com>
3210 * frame.c (get_prev_frame): Enable check for identical frames.
3211 Update comments. Update error messages.
3213 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3215 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3217 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3219 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3220 sort_symtab_syms, no longer necessary.
3222 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3224 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3226 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3228 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3229 (mips_register_byte): Likewise.
3231 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3233 * Makefile.in (sparc_tdep_h): New.
3234 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3235 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3236 * sparc-linux-nat.c: Include "sparc-tdep.h".
3237 * sparc-nat.c: Likewise.
3238 * sparc-tdep.c: Likewise.
3239 * sparc64nbsd-nat.c: Likewise.
3240 * sparcnbsd-nat.c: Likewise.
3241 * sparcnbsd-tdep.c: Likewise.
3242 * sparc-tdep.h: New file.
3243 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3244 and sparc_npc_regnum.
3246 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3248 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3249 (mips_linux_cannot_store_register): List supported instead of
3250 unsupported registers.
3252 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3254 * disasm.c (dump_insns): Separate instructions from addresses.
3256 2003-07-07 Andreas Schwab <schwab@suse.de>
3258 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3260 * m68k-tdep.c (NUM_FREGS): Delete.
3261 (SIG_PC_FP_OFFSET): Delete.
3262 (TARGET_M68K): Delete.
3263 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3264 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3265 P_MOVEL_SP, P_MOVEML_SP): Define.
3266 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3268 (m68k_register_raw_size): Delete.
3269 (m68k_register_virtual_size): Delete.
3270 (m68k_register_type): Renamed from m68k_register_virtual_type and
3271 add gdbarch argument.
3272 (m68k_store_struct_return): Delete.
3273 (m68k_deprecated_extract_return_value): Delete.
3274 (m68k_deprecated_extract_struct_value_address): Delete.
3275 (m68k_frame_chain): Delete.
3276 (m68k_frame_saved_pc): Delete.
3277 (m68k_fix_call_dummy): Delete.
3278 (m68k_push_dummy_frame): Delete.
3279 (m68k_pop_frame): Delete.
3280 (m68k_extract_return_value): New function.
3281 (m68k_store_return_value): Rewrite using regcache.
3282 (m68k_extract_struct_value_address): Rewrite using regcache.
3283 (m68k_push_dummy_call): New function.
3284 (struct m68k_frame_cache): Define.
3285 (m68k_alloc_frame_cache): New function.
3286 (m68k_analyze_frame_setup): New function.
3287 (m68k_analyze_register_saves): New function.
3288 (m68k_analyze_prologue): New function.
3289 (m68k_skip_prologue): Rewrite using above functions.
3290 (m68k_unwind_pc): New function.
3291 (m68k_frame_cache): New function.
3292 (m68k_frame_this_id): New function.
3293 (m68k_frame_prev_register): New function.
3294 (m68k_frame_unwind): New variable.
3295 (m68k_frame_p): New function.
3296 (m68k_sigtramp_frame_cache): New function.
3297 (m68k_sigtramp_frame_this_id): New function.
3298 (m68k_sigtramp_frame_prev_register): New function.
3299 (m68k_sigtramp_frame_unwind): New variable.
3300 (m68k_sigtramp_frame_p): New function.
3301 (m68k_frame_base_address): New function.
3302 (m68k_frame_base): New function.
3303 (m68k_unwind_dummy_id): New function.
3304 (fill_gregset): Use regcache_collect.
3305 (fill_fpregset): Likewise.
3306 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3308 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3309 deprecated_init_frame_pc, deprecated_store_struct_return,
3310 deprecated_extract_return_value, deprecated_store_return_value,
3311 deprecated_frame_chain, deprecated_frame_saved_pc,
3312 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3313 deprecated_register_virtual_size,
3314 deprecated_max_register_raw_size,
3315 deprecated_max_register_virtual_size,
3316 deprecated_register_virtual_type, deprecated_register_size,
3317 deprecated_register_byte, deprecated_register_bytes,
3318 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3319 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3320 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3321 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3322 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3323 deprecated_push_dummy_frame, deprecated_pop_frame,
3324 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3325 only if SYSCALL_TRAP is defined. Set extract_return_value,
3326 store_return_value, extract_struct_value_address, register_type,
3327 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3329 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3330 M68K_MAX_REGISTER_SIZE): Define.
3331 (struct m68k_sigtramp_info): Define.
3332 (struct gdbarch_tdep): Add get_sigtramp_info.
3333 * m68klinux-nat.c (fetch_register): Use register_size instead of
3334 REGISTER_RAW_SIZE. Don't put assignment in if.
3335 (store_register): Likewise.
3336 (fetch_inferior_registers): Likewise.
3337 (store_inferior_registers): Likewise.
3338 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3339 (m68k_linux_frame_saved_pc): Delete.
3340 (m68k_linux_sigcontext_reg_offset,
3341 m68k_linux_ucontext_reg_offset): Define.
3342 (m68k_linux_get_sigtramp_info): New function.
3343 (m68k_linux_extract_return_value): Rewrite using regcache.
3344 (m68k_linux_store_return_value): Likewise.
3345 (m68k_linux_extract_struct_value_address): Likewise.
3346 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3347 Don't set deprecated_frame_saved_pc,
3348 deprecated_extract_return_value, deprecated_store_return_value,
3349 deprecated_extract_struct_value_address. Set
3350 extract_return_value, store_return_value,
3351 extract_struct_value_address.
3353 2003-07-07 Andrew Cagney <cagney@redhat.com>
3355 * expprint.c: Include "user-regs.h" instead of "frame.h".
3356 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3357 frame_map_regnum_to_name.
3358 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3359 (frame_map_name_to_regnum): Simplify, call
3360 user_reg_map_name_to_regnum.
3361 (frame_map_regnum_to_name): Simplify, call
3362 user_reg_map_regnum_to_name.
3363 (frame_register_unwind): Update.
3364 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3365 (_initialize_frame_reg): Call user_reg_add_builtin.
3366 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3367 (value_of_register): Use value_of_user_reg.
3368 * eval.c (evaluate_subexp_standard): Update.
3369 * parse.c (write_dollar_variable): Update.
3370 * d10v-tdep.c (d10v_print_registers_info): Update.
3371 * infcmd.c (registers_info): Update.
3372 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3373 (builtin_regs_h): Delete macro.
3374 (user_regs_h): Define.
3375 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3376 (builtin-regs.o): Delete target.
3377 (user-regs.o): Specify dependencies.
3378 (expprint.o): Update dependencies.
3379 (findvar.o): Update dependencies.
3380 (frame.o): Update dependencies.
3381 (std-regs.o): Update dependencies.
3383 2003-07-06 Christopher Faylor <cgf@redhat.com>
3385 * win32-nat.c (solib_symbols_add): Use one variable for all section
3386 address stuff. Pass variable rather than address of variable to
3387 safe_symbol_file_add.
3389 2003-07-06 Andreas Schwab <schwab@suse.de>
3391 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3393 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3395 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3397 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3399 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3401 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3403 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3404 * config/i386/nto.mh: New file.
3405 * config/i386/nm-nto.h: New file.
3406 * configure.host: Add i[3456]86-*-nto*.
3408 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3410 * remote-vx.c (vx_add_symbols): Fix compilation error.
3412 2003-07-03 Andrew Cagney <cagney@redhat.com>
3414 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3415 * gdbarch.h, gdbarch.c: Re-generate.
3416 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3417 (legacy_register_name): Declare.
3418 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3419 (REGISTER_NAME): Define.
3420 * sparc-tdep.c (legacy_register_name): New function.
3421 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3422 (REGISTER_NAME): Define.
3423 (hppa64_register_name): Declare.
3424 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3425 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3426 (hppa64_register_name): New function.
3427 (hppa_register_name): New function.
3428 * arch-utils.c (legacy_register_name): Delete.
3429 * arch-utils.h (legacy_register_name): Delete.
3431 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3433 * cli/cli-interp.c (cli_interpreter_resume): Update the
3434 cli_uiout's stream to gdb_stdout.
3436 2003-07-03 Andrew Cagney <cagney@redhat.com>
3438 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3440 * gdbarch.h, gdbarch.c: Re-generate.
3441 * regcache.c (init_regcache_descr): Use legacy code when either
3442 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3444 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3446 * NEWS: Move "set logging" entry into GDB 6.0 section.
3448 2003-07-02 Jim Blandy <jimb@redhat.com>
3450 * s390-tdep.c (struct frame_extra_info): new member:
3451 'stack_bought_valid'.
3452 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3453 initialize fextra_info->stack_bought.
3454 (s390_frameless_function_invocation): Don't trust the value of
3455 fextra_info_ptr->stack_bought unless
3456 fextra_info->stack_bought_valid is set.
3458 New S390 prologue analyzer.
3459 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3460 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3461 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3462 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3463 compute_x_addr, s390_on_stack, s390_store,
3464 s390_get_signal_frame_info): New functions.
3465 (S390_NUM_SPILL_SLOTS): New macro.
3466 (s390_get_frame_info): Rewritten.
3467 (is_arg_reg): Deleted.
3469 Break out the decoding of S/390 instructions into separate
3470 functions, to make it more legible, and easier to check
3472 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3473 is_rx, is_rxe): New functions.
3474 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3475 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3476 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3477 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3478 enums for opcode values. (Is this an improvement?)
3480 2003-07-02 Andrew Cagney <cagney@redhat.com>
3482 * i386-tdep.c: Revert change committed as part of trad-frame code
3485 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3487 * breakpoint.c (insert_catchpoint): Make static.
3489 2003-07-02 Andreas Schwab <schwab@suse.de>
3491 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3492 former ia64_push_arguments and ia64_push_return_address, and use
3493 regcache functions instead of read/write_register.
3494 (ia64_gdbarch_init): Set push_dummy_call instead of
3495 deprecated_push_arguments and deprecated_push_return_address.
3497 2003-07-01 Andreas Jaeger <aj@suse.de>
3499 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3501 Set %rax only to number of SSE registers used.
3503 2003-07-01 Andrew Cagney <cagney@redhat.com>
3505 * trad-frame.h: Update comments, a -1 .addr is reserved.
3506 (trad_frame_value_p, trad_frame_addr_p): Declare.
3507 (trad_frame_reg_p): Declare.
3508 (trad_frame_set_value): Rename trad_frame_register_value.
3509 (trad_frame_set_unknown): Declare.
3510 * trad-frame.c (trad_frame_realreg_p): New function.
3511 (trad_frame_addr_p, trad_frame_value_p): New function.
3512 (trad_frame_set_unknown): New function.
3513 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3514 (trad_frame_prev_register): Use trad_frame_realreg_p,
3515 trad_frame_addr_p and trad_frame_value_p.
3516 (trad_frame_set_value): Rename trad_frame_register_value.
3517 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3518 and trad_frame_set_value.
3520 2003-06-30 Jim Blandy <jimb@redhat.com>
3522 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3523 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3524 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3525 for 16 registers, and then 32 more bytes.
3526 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3528 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3529 Move up in the file, since it's now used by is_simple_arg.
3530 (is_simple_arg): Don't assume registers are four bytes long.
3531 Exclude all double arguments. Extended floats are not simple
3533 (is_power_of_two): New function.
3534 (pass_by_copy_ref): Call is_power_of_two, and check that the
3535 length fits in a register, rather than listing all the acceptable
3536 sizes. Extended floats are not passed by reference.
3537 (s390_push_arguments): Don't assume registers are four bytes long.
3538 Reserve an argument register to point to the buffer for structures
3539 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3540 S390_STACK_FRAME_OVERHEAD.
3542 2003-06-30 Andreas Schwab <schwab@suse.de>
3544 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3545 format error message.
3547 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3549 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3551 2003-06-30 David Carlton <carlton@kealia.com>
3553 Band-aid for PR c++/1245.
3554 * Makefile.in (cp-support.o): Depend on complaints_h.
3555 * cp-support.c: Include complaints.h. Add declaration for
3556 find_last_component.
3557 (cp_find_first_component): Separate code into
3558 cp_find_first_component_aux.
3559 (cp_find_first_component_aux): Call demangled_name_complaint.
3560 (demangled_name_complaint): New.
3562 2003-06-30 Andrew Cagney <cagney@redhat.com>
3564 * remote.c (remote_write_bytes): Explicitly compute and then use
3565 the payload size. Update comments to reflect. Fixes problem of
3566 GDB not sending small packets as found by Fred Fish.
3568 2003-06-30 Andrew Cagney <cagney@redhat.com>
3570 * remote.c (remote_async_wait): Fix -Wformat problem.
3572 2003-06-29 Andrew Cagney <cagney@redhat.com>
3574 * remote.c (remote_wait): Call error, and not warning, when the
3576 (remote_async_wait): Ditto.
3578 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3580 * sparc-tdep.c (sparc_y_regnum): Make external again.
3582 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3584 * cli/cli-logging.c (pop_output_files): Add void to function
3587 2003-06-29 Andrew Cagney <cagney@redhat.com>
3589 * frame.c (frame_register_unwind): Use unsigned char when dumping
3590 the buffer contents.
3592 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3594 * cli/cli-logging.c: New file.
3595 * cli-out.c (struct ui_out_data): Add original_stream.
3596 (cli_redirect): New function.
3597 (cli_ui_out_impl): Add cli_redirect.
3598 (cli_out_new): Initialize original_stream.
3599 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3600 (uo_redirect, ui_out_redirect): New.
3601 * ui-out.h (struct ui_out_impl): Add redirect member.
3602 (redirect_ftype): New.
3603 (ui_out_redirect): Add prototype.
3604 * Makefile.in: Add rules for cli-logging.c.
3605 * NEWS: Mention "set logging".
3607 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3609 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3611 2003-06-27 Andrew Cagney <cagney@redhat.com>
3613 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3614 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3615 * avr-tdep.c (avr_call_dummy_address): Delete function.
3616 (avr_gdbarch_init): Do not set call_dummy_address.
3618 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3620 * symfile.c (syms_from_objfile): Move variables to inner block.
3621 Move the checks for the non-mainline case a bit earlier to avoid
3622 doing some useless computations.
3624 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3626 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3628 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3630 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3633 2003-06-26 Michael Chastain <mec@shout.net>
3635 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3636 gdb/testsuite/gdb.c++/pr-1210.exp.
3638 2003-06-26 Andrew Cagney <cagney@redhat.com>
3640 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3641 altivec_expression.h and altivec_registers.h.
3643 2003-06-26 Andrew Cagney <cagney@redhat.com>
3645 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3646 info->mach when MIPS16. Patch suggested by Fred Fish.
3648 2003-06-26 Andrew Cagney <cagney@redhat.com>
3650 * utils.c (internal_vproblem): Print the problem to a reason
3651 buffer and then pass to query. Make the msg variable more local.
3653 2003-06-26 Andrew Cagney <cagney@redhat.com>
3655 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3656 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3657 * gdbarch.h, gdbarch.c: Re-generate.
3658 * frame-base.c (default_frame_args_address): Update. Use
3659 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3661 (default_frame_locals_address): Ditto for
3662 DEPRECATED_FRAME_LOCALS_ADDRESS.
3663 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3664 (vax_frame_num_args): Update.
3665 (vax_gdbarch_init): Update.
3666 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3667 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3668 * mcore-tdep.c (mcore_gdbarch_init): Update.
3669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3670 * ia64-tdep.c (ia64_gdbarch_init): Update.
3671 * symtab.h (address_class): Update comments.
3672 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3673 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3674 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3675 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3676 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3677 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3678 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3679 * alpha-mdebug-tdep.c: Update.
3680 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3682 2003-06-26 Andreas Jaeger <aj@suse.de>
3684 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3685 of SSE registers so that varargs functions work. Rework handling
3686 of passing arguments on the stack.
3687 (x86_64_store_return_value): Return double and float values in SSE
3690 2003-06-24 Michael Chastain <mec@shout.net>
3692 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3693 the "constructor breakpoints ignored" bug.
3695 2003-06-25 David Carlton <carlton@kealia.com>
3697 * MAINTAINERS: Update e-mail address.
3699 2003-06-24 Jim Blandy <jimb@redhat.com>
3701 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3703 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3705 (ppc_linux_init_abi): Register it as the
3706 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3708 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3709 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3712 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3713 (ppc64_standard_linkage_target): Use it.
3715 2003-06-23 Andrew Cagney <cagney@redhat.com>
3717 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3718 for 0 "int0" and 4 "int32" sized registers.
3719 * gdbtypes.c (builtin_type_int0): Define.
3720 (build_gdbtypes): Initialize builtin_type_int0.
3721 * gdbtypes.h (builtin_type_int0): Declare.
3723 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3726 as characters are unsigned.
3728 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3731 * dwarfread.c (struct_type): Skip static fields without crashing.
3733 2003-06-22 Andrew Cagney <cagney@redhat.com>
3735 GDB 6.0 branch created.
3737 * PROBLEMS: Update. Empty.
3740 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3742 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3743 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3745 2003-06-22 Andrew Cagney <cagney@redhat.com>
3747 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3748 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3751 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3753 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3756 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3758 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3759 argument of val_print.
3760 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3761 to the address argument of baseclass_offset or target_read_memory.
3762 Do add it to the argument of cp_print_value_fields.
3764 2003-06-21 Andrew Cagney <cagney@redhat.com>
3766 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3767 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3768 instead of 0..NUM_REGS.
3769 (mips_register_reggroup_p): New function.
3770 (mips_pseudo_register_write): New function.
3771 (mips_pseudo_register_read): New function.
3772 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3773 based on the register's type.
3774 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3776 (mips_get_saved_register): Simplify. Assert that REGNO is a
3778 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3779 (mips_register_type): Replace mips_register_virtual_type. Map
3780 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3782 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3783 that the register is cooked / virtual.
3784 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3785 Only get the extra info when needed.
3786 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3787 (mips32_heuristic_proc_desc): Fetch the cooked register.
3788 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3789 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3790 (mips_print_register): Use gdbarch_register_type, instead of
3791 REGISTER_VIRTUAL_TYPE.
3792 (print_gp_register_row): Use gdbarch_register_type, instead of
3793 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3794 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3795 Print the pseudo / cooked registers.
3796 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3797 Print the pseudo / cooked registers.
3798 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3799 REG_NUM is pseudo / cooked.
3800 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3801 (mips_n32n64_xfer_return_value): Ditto.
3802 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3803 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3804 (mips_register_sim_regno): New function.
3805 (mips_gdbarch_init): Set deprecated_register_byte,
3806 register_group_p, pseudo_register_write, pseudo_register_read,
3807 register_sim_regno, and num_pseudo_regs. Set register_type,
3808 instead of register_virtual_type.
3809 * Makefile.in (mips-tdep.o): Update dependencies.
3810 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3811 REGISTER_VIRTUAL_TYPE.
3812 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3813 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3814 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3815 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3816 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3818 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3820 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3821 * cli/cli-cmds.c: Include "gdb_vfork.h".
3822 (shell_escape): Use vfork.
3824 2003-06-21 Andrew Cagney <cagney@redhat.com>
3826 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3827 32 bit floating-point register saves.
3829 * frame.h (deprecated_unwind_get_saved_register): Delete.
3830 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3831 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3832 and deprecated_get_next_frame_hack instead of
3833 deprecated_unwind_get_saved_register.
3835 * mips-tdep.c (mips_dump_tdep): Do not print
3836 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3838 * frame.c (get_frame_register): New function.
3839 (frame_unwind_register_signed): New function.
3840 (get_frame_register_signed): New function.
3841 (frame_unwind_register_unsigned): New function.
3842 (get_frame_register_unsigned): New function.
3843 * frame.h: Add comments on naming schema.
3844 (get_frame_register, frame_unwind_register_signed): Declare.
3845 (get_frame_register_signed, get_frame_register_signed): Declare.
3846 (frame_unwind_register_unsigned): Declare.
3847 (get_frame_register_unsigned): Declare.
3849 2003-06-20 Theodore A. Roth <troth@openavr.org>
3851 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3853 2003-06-20 Theodore A. Roth <troth@openavr.org>
3855 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3856 (avr_read_sp): Ditto.
3858 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3860 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3861 * config/arm/nm-linux.h: Likewise.
3862 * config/arm/tm-linux.h: Likewise.
3863 * config/ia64/nm-linux.h: Likewise.
3864 * config/ia64/tm-ia64.h: Likewise.
3865 * config/s390/tm-linux.h: Likewise.
3866 * config/s390/tm-s390.h: Likewise.
3867 * s390-nat.c: Likewise.
3868 * s390-tdep.c: Likewise.
3870 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3871 * config/ia64/linux.mt: Likewise.
3872 * config/m68k/linux.mh: Likewise.
3873 * config/mips/linux.mt: Likewise.
3874 * config/powerpc/linux.mh: Likewise.
3875 * config/sh/linux.mt: Likewise.
3877 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3879 * solib.c (solib_open): Change tests for whether to search
3880 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3883 2003-06-19 Theodore A. Roth <troth@openavr.org>
3885 * avr-tdep.c (avr_frame_address): Delete function.
3886 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3887 set_gdbarch_frame_args_address.
3889 2003-06-19 Andrew Cagney <cagney@redhat.com>
3891 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3892 (REGISTER_CONVERT_FROM_TYPE): Delete.
3893 (mips_register_convert_to_type): Delete declaration.
3894 (mips_register_convert_from_type): Delete declaration.
3895 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3898 2003-06-19 Michael Snyder <msnyder@redhat.com>
3900 * linux-nat.h: New file.
3901 * linux-nat.c: Include linux-nat.h.
3902 * lin-lwp.c: Include linux-nat.h.
3903 Move struct lwp_info def to linux-nat.h.
3904 * linux-proc.c: Include linux-nat.h.
3905 (linux_make_note_section): Iterate over lwps instead of threads.
3906 (linux_do_thread_registers): Use lwp instead of merged pid.
3907 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3908 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3909 Add dependency on linux_nat_h.
3911 2003-06-19 Theodore A. Roth <troth@openavr.org>
3913 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3915 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3917 * varobj.c (get_type, get_target_type): Use check_typedef.
3919 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3921 * breakpoint.c (insert_catchpoint): Call internal_error.
3923 2003-06-19 Theodore A. Roth <troth@openavr.org>
3925 * avr-tdep.c (avr_push_dummy_code): Delete function.
3926 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3928 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3930 * arch-utils.c (default_prepare_to_proceed): Remove.
3931 (generic_prepare_to_proceed): Remove.
3932 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3933 (generic_prepare_to_proceed): Remove prototype.
3934 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3935 * gdbarch.c: Regenerate.
3936 * gdbarch.h: Regenerate.
3937 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3938 * hppah-nat.c (hppa_switched_threads): Remove.
3939 * infrun.c (prepare_to_proceed): New static function, copied from
3940 generic_prepare_to_proceed. Remove select_it argument.
3941 (proceed): Call prepare_to_proceed.
3942 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3944 (ptrace_wait): Don't set the removed variables.
3945 (hppa_switched_threads): Remove.
3946 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3947 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3948 (lin_lwp_prepare_to_proceed): Remove prototype.
3949 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3950 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3952 2003-06-18 Theodore A. Roth <troth@openavr.org>
3954 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3956 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3957 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3958 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3959 (AVR_PROLOGUE_*): Enumerate prologue types.
3960 (struct frame_extra_info): Remove.
3961 (struct avr_unwind_cache): Define.
3962 (avr_write_sp): Delete function.
3963 (avr_read_fp): Ditto.
3964 (avr_init_extra_frame_info): Ditto.
3965 (avr_pop_frame): Ditto.
3966 (avr_frame_saved_pc): Ditto.
3967 (avr_saved_pc_after_call): Ditto.
3968 (avr_push_return_address): Ditto.
3969 (avr_frame_chain): Ditto.
3970 (avr_store_struct_return): Ditto.
3971 (avr_push_arguments): Ditto.
3972 (avr_scan_prologue): Update comments. Changed to set up the info for
3973 cache unwinding. Now returns end of prologue PC.
3974 (avr_skip_prologue): Better handling of functions lacking a prologue
3975 by using avr_scan_prologue.
3976 (avr_scan_arg_moves): New function.
3977 (avr_saved_regs_unwinder): Ditto.
3978 (avr_frame_unwind_cache): Ditto.
3979 (avr_unwind_pc): Ditto.
3980 (avr_frame_this_id): Ditto.
3981 (avr_frame_prev_register): Ditto.
3982 (avr_frame_p): Ditto.
3983 (avr_frame_base_address ): Ditto.
3984 (avr_unwind_dummy_id): Ditto.
3985 (avr_push_dummy_code): Ditto.
3986 (push_stack_item): Ditto.
3987 (pop_stack_item): Ditto.
3988 (avr_push_dummy_call): Ditto.
3989 (struct stack_item): Define.
3990 (avr_frame_unwind): Declare structure.
3991 (avr_frame_base): Ditto.
3992 (avr_gdbarch_init): Remove calls to
3993 set_gdbarch_deprecated_init_frame_pc,
3994 set_gdbarch_deprecated_target_read_fp,
3995 set_gdbarch_deprecated_dummy_write_sp,
3996 set_gdbarch_deprecated_fp_regnum,
3997 set_gdbarch_deprecated_push_arguments,
3998 set_gdbarch_deprecated_push_return_address,
3999 set_gdbarch_deprecated_pop_frame,
4000 set_gdbarch_deprecated_store_struct_return,
4001 set_gdbarch_deprecated_frame_init_saved_regs,
4002 set_gdbarch_deprecated_init_extra_frame_info,
4003 set_gdbarch_deprecated_frame_chain,
4004 set_gdbarch_deprecated_frame_saved_pc,
4005 set_gdbarch_deprecated_saved_pc_after_call.
4006 Add calls to set_gdbarch_push_dummy_call,
4007 set_gdbarch_push_dummy_code,
4008 frame_unwind_append_predicate,
4009 frame_base_set_default,
4010 set_gdbarch_unwind_dummy_id,
4011 set_gdbarch_unwind_pc.
4014 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4016 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4017 registers for H8/300S.
4018 (h8300_print_registers_info): Ditto.
4019 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4021 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4023 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4024 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4025 (lin_lwp_wait): Likewise. Update comments.
4026 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4027 (pull_pid_from_list, linux_record_stopped_pid): New.
4029 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4031 * ada-lang.c (scan_discrim_bound): Name first argument.
4032 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4033 declared by ALL_BLOCK_SYMBOLS.
4035 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4037 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4038 ("regcache.h"): Include it.
4039 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4041 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4043 * NEWS: Mention gdbserver detach change and "disconnect" command.
4044 * infcmd.c (disconnect_command): New function.
4045 (_initialize_infcmd): Add ``disconnect'' command.
4046 * remote.c (remote_async_detach): Delete.
4047 (remote_detach): Merge remote_async_detach.
4048 (remote_disconnect): New.
4049 (init_remote_ops): Set to_disconnect.
4050 (init_remote_cisco_ops): Likewise.
4051 (init_remote_async_ops): Likewise. Use remote_detach.
4052 * target.c (cleanup_target): Default to_disconnect.
4053 (update_current_target): Inherit to_disconnect.
4054 (target_disconnect, debug_to_disconnect): New functions.
4055 (setup_target_debug): Set to_disconnect.
4056 * target.h (struct target_ops): Add to_disconnect.
4057 (target_disconnect): Add prototype.
4059 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4061 * breakpoint.c (insert_catchpoint): New function.
4062 (insert_breakpoints): Use catch_exceptions to call
4063 insert_catchpoint. Disable catchpoints if they fail to insert.
4065 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4067 * symfile.c (reread_symbols): Clear sym_private.
4069 2003-06-17 Andrew Cagney <cagney@redhat.com>
4071 * trad-frame.h (struct frame_info): Add opaque declaration.
4072 * remote-fileio.h (struct cmd_list_element): Add opaque
4074 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4077 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4079 * remote.c (remote_prepare_to_store): Replace call to
4080 deprecated_read_register_bytes with multiple regcache_raw_read
4083 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4085 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4086 (nto_find_and_open_solib): Likewise.
4087 (nto_init_solib_absolute_prefix): Likewise.
4088 (_initialize_nto_tdep): Fix indentation.
4090 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4092 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4094 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4096 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4098 2003-06-17 Jim Blandy <jimb@redhat.com>
4100 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4102 2003-06-16 Theodore A. Roth <troth@openavr.org>
4104 * avr-tdep.c (avr_extract_return_value): New function.
4105 (avr_gdbarch_init): Set extract_return_value method.
4107 2003-06-16 Andrew Cagney <cagney@redhat.com>
4109 * frame.h (deprecated_get_next_frame_hack): Declare.
4110 * frame.c (legacy_saved_regs_prev_register): Only require
4111 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4112 there are always saved regs.
4113 (deprecated_generic_get_saved_register): Do not require
4114 DEPRECATED_FRAME_INIT_SAVED_REGS.
4115 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4116 use frame ID unwind instead.
4117 (deprecated_get_next_frame_hack): New function.
4119 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4121 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4122 (h8300_push_dummy_call): ...this function. Some minor optimization.
4123 (h8300_push_return_address): Remove.
4124 (h8300_gdbarch_init): Remove calls to
4125 set_gdbarch_deprecated_dummy_write_sp,
4126 set_gdbarch_deprecated_push_arguments and
4127 set_gdbarch_deprecated_push_return_address.
4128 Add call to set_gdbarch_push_dummy_call.
4130 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4132 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4133 (E_PSEUDO_EXR_REGNUM): Ditto.
4134 (h8300_is_argument_spill): Check for instructions moving argument
4135 registers into safe registers.
4136 (h8300_skip_prologue): Check for stm instruction to push registers
4137 used for register variables onto stack.
4138 (gdb_print_insn_h8300): Remove.
4139 (h8300_examine_prologue): Add a comment.
4140 (h8300_register_name): Take pseudo registers into account.
4141 (h8300s_register_name): Ditto.
4142 (h8300sx_register_name): Ditto.
4143 (h8300_print_register): Ditto.
4144 (h8300_print_registers_info): Define "nice" printing order.
4145 (h8300_saved_pc_after_call): Take pseudo registers into account.
4146 (h8300_register_type): Ditto. Return type used for remote connection
4147 when requesting real CCR or EXR register, return actual type when
4148 requesting pseudo CCR or EXR.
4149 (h8300_pseudo_register_read): New function.
4150 (h8300_pseudo_register_write): Ditto.
4151 (h8300_dbg_reg_to_regnum): Ditto.
4152 (h8300s_dbg_reg_to_regnum): Ditto.
4153 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4154 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4155 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4156 set_gdbarch_print_insn architecture dependent.
4157 Call set_gdbarch_pseudo_register_read and
4158 set_gdbarch_pseudo_register_write.
4159 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4161 2003-06-16 Andrew Cagney <cagney@redhat.com>
4163 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4164 * gdbarch.h, gdbarch.c: Re-generate.
4165 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4166 * s390-tdep.c (s390_gdbarch_init): Update.
4167 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4168 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4169 * mips-tdep.c (mips_gdbarch_init): Update.
4170 * mcore-tdep.c (mcore_gdbarch_init): Update.
4171 * cris-tdep.c (cris_gdbarch_init): Update.
4172 * infcall.c (call_function_by_hand): Update.
4173 * ia64-tdep.c (ia64_push_arguments): Update comment.
4174 * frame.c (legacy_get_prev_frame): Do not assume
4175 SAVE_DUMMY_FRAME_TOS_P.
4176 * dummy-frame.c (find_dummy_frame): Update comment.
4178 2003-06-16 Andrew Cagney <cagney@redhat.com>
4180 * regcache.c (do_cooked_read): Do not use register_valid_p.
4182 2003-06-15 Theodore A. Roth <troth@openavr.org>
4184 * avr-tdep.c (avr_register_type): Remove a blank line.
4185 (avr_scan_prologue): Correct some comments.
4187 2003-06-15 Theodore A. Roth <troth@openavr.org>
4189 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4191 Properly scan prologues generated by gcc with the -mcall-prologues
4193 Add code to scan -mcall-prologues for mega devices.
4195 2003-06-15 Theodore A. Roth <troth@openavr.org>
4197 * avr-tdep.c (avr_register_byte): Delete function.
4198 (avr_register_raw_size): Delete function.
4199 (avr_register_virtual_size): Delete function.
4200 (avr_register_virtual_type): Delete function.
4201 (avr_register_type): New function.
4202 (avr_address_to_pointer): Remove unused code.
4203 (avr_read_fp): Need to read FP as two separate bytes due to change to
4204 avr_register_type() usage.
4205 (avr_gdbarch_init): Don't set deprecated_register_size.
4206 Don't set deprecated_register_bytes.
4207 Don't set deprecated_register_byte.
4208 Don't set deprecated_register_raw_size.
4209 Don't set deprecated_max_register_raw_size.
4210 Don't set deprecated_register_virtual_size.
4211 Don't set deprecated_max_register_virtual_size.
4212 Don't set deprecated_register_virtual_type.
4213 Set register_type method.
4215 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4217 * Makefile.in (linux-nat.o): Add rule.
4218 * linux-nat.c: New file.
4219 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4220 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4221 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4222 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4223 * config/arm/linux.mh (NATDEPFILES): Likewise.
4224 * config/i386/linux.mh (NATDEPFILES): Likewise.
4225 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4226 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4227 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4228 * config/mips/linux.mh (NATDEPFILES): Likewise.
4229 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4230 * config/s390/s390.mh (NATDEPFILES): Likewise.
4231 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4233 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4235 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4236 replace out-of-date comment.
4238 2003-06-15 Andrew Cagney <cagney@redhat.com>
4240 * rdi-share/host.h (Fail): Change to a varargs function.
4241 * remote-rdi.c (Fail): Update.
4243 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4245 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4246 (i386_convert_register_p, i386_register_to_value,
4247 i386_register_from_value): Handle types longer than 8 bytes.
4249 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4251 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4252 Move floating-point code to new function in i387-tdep.c.
4253 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4254 New functions containing code moved here from i386-tdep.c.
4255 * i387-tdep.h: Add opaque declaration for `struct type'.
4256 (i387_register_to_value, i387_value_to_register): New prototypes.
4257 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4258 (x86_64_init_abi): Set convert_register_p, register_to_value and
4259 value_to_register here.
4261 2003-06-14 Andrew Cagney <cagney@redhat.com>
4263 * mips-tdep.c (mips_register_to_value): Make static.
4264 (mips_value_to_register): Make static.
4265 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4266 * ia64-tdep.c (ia64_register_raw_size): Make static.
4267 (ia64_register_virtual_size): Make static.
4268 (ia64_register_byte): Make static.
4269 * i387-tdep.c: Include "i387-tdep.h".
4270 (print_387_control_word): Delete function.
4271 (print_387_status_word): Delete function.
4272 (print_387_status_bits): Delete function.
4273 (print_387_control_bits): Delete function.
4274 * Makefile.in (i387-tdep.o): Update dependencies.
4275 * rdi-share/host.h (Fail): Declare.
4276 * remote-rdi.c (Fail): Update to match declaration.
4278 2003-06-14 Andrew Cagney <cagney@redhat.com>
4280 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4281 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4282 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4283 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4284 * README: Delete reference to remote-array.
4285 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4286 (remote-array.o): Delete target.
4287 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4288 * remote-array.c: Delete file.
4290 2003-06-14 Andrew Cagney <cagney@redhat.com>
4291 Mark Kettenis <kettenis@gnu.org>
4293 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4294 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4295 parameter with "frame".
4296 * gdbarch.h, gdbarch.c: Re-generate.
4297 * frame.h (put_frame_register): Declare.
4298 * frame.c (put_frame_register): New function.
4299 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4300 (legacy_register_to_value): Rewrite, use "frame" to get the
4302 (legacy_value_to_register): Rewrite, use "frame" to find the
4303 register's location before storing.
4304 * arch-utils.h (legacy_convert_register_p): Update.
4305 (legacy_register_to_value, legacy_value_to_register): Update.
4306 * findvar.c (value_from_register): Rewrite, eliminate use of
4307 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4308 "frame" to REGISTER_TO_VALUE.
4309 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4310 lval_reg_frame_relative + lval_register branch of the switch. Do
4311 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4312 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4313 I386_EDI_REGNUM): New defines.
4314 (i386_next_regnum, i386_convert_register_p,
4315 i386_register_to_value, i386_value_to_register): New functions.
4316 (i386_register_convertible, i386_register_convert_to_virtual,
4317 i386_convert_to_raw): Remove functions.
4318 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4319 value_to_register instead of register_convertible,
4320 register_convert_to_virtual and register_convert_to_raw.
4321 * mips-tdep.c (mips_convert_register_p): New function.
4322 (mips_value_to_register): Replace mips_register_convert_from_type.
4323 (mips_register_to_value): Replace mips_register_convert_to_type.
4324 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4326 * alpha-tdep.c (alpha_convert_register_p): Update.
4327 (alpha_value_to_register): Update, store the register.
4328 (alpha_register_to_value): Update, fetch the register.
4330 2003-06-14 Theodore A. Roth <troth@openavr.org>
4332 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4333 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4334 Don't set deprecated_call_dummy_words.
4335 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4336 Don't set remote_translate_xfer_address.
4337 (avr_io_reg_read_command): Remove commented out debug printf.
4340 2003-06-14 Theodore A. Roth <troth@openavr.org>
4342 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4343 causes gdb to seg fault.
4345 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4347 * sparc-nat.c (fetch_inferior_registers): Correct
4348 a reference to "registers".
4350 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4352 * Makefile.in (exc_request_U_h): Define
4353 (exc_request_S_h): Likewise.
4354 (msg_reply_S_h): Likewise.
4355 (msg_U_h): Likewise.
4356 (notify_S_h): Likewise.
4357 (process_reply_S_h): Likewise.
4358 (gnu-nat.o): Depend on gdb_obstack_h
4359 * gnu-nat.c: Include "gdb_obstack.h".
4361 2003-06-13 Andrew Cagney <cagney@redhat.com>
4363 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4364 * gdbarch.h, gdbarch.c: Re-generate.
4366 2003-06-13 Andrew Cagney <cagney@redhat.com>
4368 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4369 when deprecated REGISTER macros can be deleted.
4370 * gdbarch.h, gdbarch.c: Re-generate.
4372 2003-06-13 Jim Blandy <jimb@redhat.com>
4374 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4375 Linux entry point symbols for _dl_debug_state, too.
4377 2003-06-13 Andrew Cagney <cagney@redhat.com>
4379 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4380 available, do not use the FP register, and always save the TOS.
4381 * dummy-frame.c (dummy_frame_this_id): Do not assert
4382 SAVE_DUMMY_FRAME_TOS.
4383 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4384 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4385 (i386_push_dummy_call): Add 8 to the returned SP.
4386 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4387 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4388 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4389 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4390 (x86_64_push_dummy_call): Return "sp + 16".
4391 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4392 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4393 save_dummy_frame_tos.
4395 2003-06-13 Jim Blandy <jimb@redhat.com>
4397 * frv-tdep.c (frv_use_struct_convention): Delete static
4398 declaration for function deleted in my change of 2003-06-12.
4400 2003-06-13 Theodore A. Roth <troth@openavr.org>
4402 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4403 (avr_pointer_to_address): Shift code addrs left 1 bit.
4404 (avr_convert_from_func_ptr_addr): Delete function since operation is
4405 better handled by avr_address_to_pointer and avr_pointer_to_address.
4406 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4408 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4410 From Kelley Cook <kelleycook@wideopenwest.com>:
4411 * configure.host: Accept i[34567]86 variants.
4412 * configure.tgt: Likewise.
4413 * nlm/configure.in: Likewise.
4414 * nlm/configure: Regenerated.
4416 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4418 * arm-tdep.c (solib-svr4.h): Dont' include it.
4419 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4420 * arm-linux-tdep.c: ... here. Make static.
4421 (arm_linux_init_abi): Register it.
4422 (solib-svr4.h): Include it.
4423 * Makefile.in: Update dependencies.
4424 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4425 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4427 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4429 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4430 indicate registers used for return values.
4431 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4432 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4434 (h8300_init_extra_frame_info): Ditto.
4435 (h8300_frame_locals_address): Removed.
4436 (h8300_frame_args_address): Removed.
4437 (h8300_extract_return_value): Use new regcache structure. Only care
4439 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4440 (h8300_store_return_value): Use new regcache structure. Only care
4442 (h8300h_store_return_value): Same function for 32 bit CPUs.
4443 (h8300_store_struct_return): Removed.
4444 (h8300_extract_struct_value_address): Use new regcache structure.
4445 (h8300h_extract_struct_value_address): Removed.
4446 (h8300_push_dummy_code): New function.
4447 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4448 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4449 set_gdbarch_store_return_value architecture dependent.
4450 Call set_gdbarch_push_dummy_code and
4451 set_gdbarch_extract_struct_value_address.
4452 Remove calls to set_gdbarch_frame_args_address,
4453 set_gdbarch_frame_locals_address,
4454 set_gdbarch_deprecated_store_struct_return,
4455 set_gdbarch_deprecated_extract_return_value,
4456 set_gdbarch_deprecated_extract_struct_value_address,
4457 set_gdbarch_deprecated_call_dummy_words and
4458 set_gdbarch_deprecated_sizeof_call_dummy_words.
4460 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4462 * h8300-tdep.c (h8300_register_byte): Remove.
4463 (h8300h_register_byte): Remove.
4464 (h8300_register_virtual_type): Remove. Substitute by...
4465 (h8300_register_type): New function.
4466 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4467 (h8300h_extract_struct_value_address): Ditto.
4468 (h8300_gdbarch_init): Drop calls to
4469 set_gdbarch_deprecated_register_byte and
4470 set_gdbarch_deprecated_register_virtual_type.
4471 Add call to set_gdbarch_register_type.
4473 2003-06-13 Andrew Cagney <cagney@redhat.com>
4475 * gdbarch.sh: Update comments on registers.
4476 (deprecated_register_byte): Rename register_byte.
4477 (deprecated_register_raw_size): Rename register_raw_size.
4478 (deprecated_register_virtual_size): Rename register_virtual_size.
4479 (deprecated_register_virtual_type): Rename register_virtual_type.
4480 * gdbarch.h, gdbarch.c: Re-generate.
4481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4482 * vax-tdep.c (vax_gdbarch_init): Update.
4483 * v850-tdep.c (v850_gdbarch_init): Update.
4484 * sparc-tdep.c (sparc_gdbarch_init): Update.
4485 * sh-tdep.c (sh_gdbarch_init): Update.
4486 * s390-tdep.c (s390_gdbarch_init): Update.
4487 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4488 * ns32k-tdep.c: Update.
4489 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4490 * mips-tdep.c (mips_gdbarch_init): Update.
4491 * mcore-tdep.c (mcore_gdbarch_init): Update.
4492 * m68k-tdep.c (m68k_gdbarch_init): Update.
4493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4494 * ia64-tdep.c (ia64_gdbarch_init): Update.
4495 * hppa-tdep.c (hppa_gdbarch_init): Update.
4496 * h8300-tdep.c (h8300_gdbarch_init): Update.
4497 * frv-tdep.c (frv_gdbarch_init): Update.
4498 * cris-tdep.c (cris_gdbarch_init): Update.
4499 * avr-tdep.c (avr_gdbarch_init): Update.
4500 * alpha-tdep.c (alpha_gdbarch_init): Update.
4501 * arm-tdep.c (arm_gdbarch_init): Update.
4503 2003-06-13 Andrew Cagney <cagney@redhat.com>
4505 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4506 mips_o32_use_struct_convention with always_use_struct_convention.
4508 2003-06-12 David Carlton <carlton@kealia.com>
4510 * cp-namespace.c (cp_set_block_scope): Comment out
4511 processing_has_namespace_info branch.
4513 2003-06-12 Jim Blandy <jimb@redhat.com>
4515 Recognize and skip 64-bit PowerPC Linux linkage functions.
4516 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4517 insn_pattern, insns_match_pattern, d_field, ds_field): New
4518 functions, macros, and types for working with PPC instructions.
4519 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4520 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4521 ppc64_skip_trampoline_code): New functions, variables, and macros
4522 for recognizing and skipping linkage functions.
4523 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4524 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4526 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4527 register offsets for both the 32- and 64-bit interfaces.
4529 Actually finish the job started by my change of 2003-05-29.
4530 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4531 other #definition of this.
4532 (ppc_linux_skip_trampoline_code): Remove declaration.
4533 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4535 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4538 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4539 'long' on ppc64-*-linux*.
4541 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4542 isn't #defined, assume the register doesn't exist: act as if
4543 tdep->ppc_mq_regnum were -1.
4545 * configure.host, configure.tgt: Add entries for
4546 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4548 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4551 * arch-utils.c (always_use_struct_convention): New function.
4552 * arch-utils.h (always_use_struct_convention): New prototype.
4553 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4554 (alpha_gdbarch_init): Register always_use_struct_convention,
4555 instead of alpha_use_struct_convention.
4556 * cris-tdep.c (cris_use_struct_convention): Delete.
4557 (cris_gdbarch_init): Register always_use_struct_convention,
4558 instead of cris_use_struct_convention.
4559 * frv-tdep.c (frv_use_struct_convention): Delete.
4560 (frv_gdbarch_init): Register always_use_struct_convention,
4561 instead of frv_use_struct_convention.
4562 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4563 (h8300_gdbarch_init): Register always_use_struct_convention,
4564 instead of h8300_use_struct_convention.
4565 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4566 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4567 instead of mips_o32_use_struct_convention.
4569 2003-06-12 Andrew Cagney <cagney@redhat.com>
4571 * wince.c: Include "mips-tdep.h".
4572 * mips-tdep.h (mips_next_pc): Declare.
4573 * mcore-tdep.c: Make more local functions static.
4574 * Makefile.in (wince.o): Update dependencies.
4576 2003-06-12 David Carlton <carlton@kealia.com>
4578 * symtab.c (lookup_symbol_aux_minsyms): Replace
4579 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4580 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4581 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4582 SYMBOL_NATURAL_NAME.
4584 2003-06-12 Andreas Schwab <schwab@suse.de>
4586 * Makefile.in (tuiDisassem.o): Update dependencies.
4588 2003-06-12 David Carlton <carlton@bactrian.org>
4590 * symtab.h: Delete declaration of make_symbol_overload_list.
4591 Add declaration of lookup_partial_symbol.
4592 * symtab.c (remove_params): Move to cp-support.c.
4593 (overload_list_add_symbol, make_symbol_overload_list)
4594 (sym_return_val_size, sym_return_val_index): Ditto.
4595 (lookup_partial_symbol): Make extern.
4596 * cp-support.h: Add declaration of make_symbol_overload_list.
4597 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4598 symtab.h, and block.h.
4599 (remove_params): Move here from symtab.c.
4600 (overload_list_add_symbol, make_symbol_overload_list)
4601 (sym_return_val_size, sym_return_val_index): Ditto.
4602 * valops.c: Include cp-support.h.
4603 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4604 frame_h, and block_h.
4605 (valops.o): Depend on cp_support_h.
4607 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4609 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4610 substitute by NUM_REGS throughout.
4611 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4612 (h8300s_register_name): New function for H8S registers.
4613 (h8300sx_register_name): Ditto for H8SX registers.
4614 (h8300_print_register): Revise register printing, avoid depending
4616 (h8300_register_byte): Only care for H8/300 registers.
4617 (h8300h_register_byte): New function for any other architecture.
4618 (h8300_register_raw_size): Remove.
4619 (h8300_register_virtual_type): Revise to return actually useful
4621 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4622 (h8300h_extract_struct_value_address): New function for any other
4624 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4625 set_gdbarch_register_name, set_gdbarch_register_byte,
4626 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4627 Remove calls to set_gdbarch_deprecated_register_size,
4628 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4629 set_gdbarch_deprecated_max_register_raw_size,
4630 set_gdbarch_register_virtual_size and
4631 set_gdbarch_deprecated_max_register_virtual_size entirely.
4632 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4633 set_gdbarch_long_double_bit.
4635 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4637 * doublest.c (convert_doublest_to_floatformat): When dealing
4638 with the implied integer bit, only alter mant_bits if we are
4639 processing a full 32 bits of mantissa.
4641 2003-06-11 David Carlton <carlton@bactrian.org>
4643 * dictionary.h: New.
4644 * dictionary.c: New.
4645 * block.h: Add opaque declaration for struct dictionary.
4646 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4648 (BLOCK_DICT): New macro.
4649 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4650 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4652 (ALL_BLOCK_SYMBOLS): Update definition.
4653 * Makefile.in (SFILES): Add dictionary.c.
4654 (dictionary_h): New.
4655 (COMMON_OBS): Add dictionary.o.
4656 (dictionary.o): New.
4657 (ada-lang.o): Depend on dictionary_h.
4658 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4659 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4660 (mi-cmd-stack.o): Ditto.
4661 (gdbtk-cmds.o): Update dependencies.
4662 (gdbtk-stack.o): Ditto.
4663 * ada-lang.c: Include dictionary.h.
4664 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4665 (fill_in_ada_prototype, debug_print_block): Ditto.
4666 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4667 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4669 * mdebugread.c: Include dictionary.h.
4670 (struct parse_stack): Delete 'maxsyms' member.
4671 (parse_symbol): Update calls to new_block. Delete calls to
4672 shrink_block. Use dictionary methods.
4673 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4674 Update calls to new_symtab. Don't maintain maxsyms data.
4675 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4676 (add_symbol): Just call dict_add_symbol.
4677 (new_symtab): Delete 'maxsyms' argument.
4678 (new_symtab): Update calls to new_block.
4679 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4680 (shrink_block): Delete function.
4681 (fixup_sigtramp): Update call to new_block. Add symbol via
4683 * jv-lang.c: Include dictionary.h.
4684 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4685 appropriately. Set class_symtab->free_func. Make sure the
4686 blockvector is big enough to hold two blocks.
4687 (add_class_symtab_symbol): Use dictionary methods.
4688 (free_class_block): New function.
4689 (type_from_class): Replace explicit iteration by
4691 * symtab.h (struct symtab): Replace 'free_ptr' method by
4693 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4695 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4697 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4698 Include dictionary.h.
4699 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4700 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4702 * objfiles.c: Include dictionary.h.
4703 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4704 * buildsym.c: Include dictionary.h.
4705 (finish_block): Use dictionary methods.
4706 (end_symtab): Set free_func to NULL, not free_ptr.
4707 * tracepoint.c: Include dictionary.h.
4708 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4709 (scope_info): Ditto.
4710 * stack.c: Include dictionary.h.
4711 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4712 (print_block_frame_labels, print_frame_arg_vars)
4713 (print_frame_args): Ditto.
4714 * symmisc.c (free_symtab_block): Use dictionary methods.
4715 (dump_symtab): Ditto.
4716 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4717 Include dictionary.h.
4718 * symfile.h: Delete declarations of sort_block_syms,
4720 * symfile.c (sort_block_syms): Delete.
4721 (sort_symtab_syms): Delete.
4722 * symtab.c: Include dictionary.h.
4723 (lookup_block_symbol): Use dictionary iterators.
4724 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4725 (search_symbols, make_symbol_completion_list): Ditto.
4726 (make_symbol_overload_list): Ditto.
4727 * valops.c (value_of_local): Use dict_empty.
4728 Include dictionary.h.
4730 2003-06-11 J. Brobecker <brobecker@gnat.com>
4732 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4734 2003-06-11 David Carlton <carlton@bactrian.org>
4736 * block.h (BLOCK_SHOULD_SORT): Delete.
4737 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4739 * ada-lang.c (ada_add_block_symbols): Ditto.
4740 * symfile.c (sort_block_syms): Delete.
4741 (sort_symtab_syms): Ditto.
4742 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4744 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4745 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4746 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4747 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4748 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4749 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4750 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4752 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4754 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4757 2003-06-11 Andrew Cagney <cagney@redhat.com>
4759 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4760 REGISTER_CONVERTIBLE.
4761 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4762 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4763 * gdbarch.h, gdbarch.c: Re-generate.
4764 * arch-utils.h (deprecated_register_convertible_not): Rename
4765 generic_register_convertible_not.
4766 * arch-utils.c (deprecated_register_convertible_not): Rename
4767 generic_register_convertible.
4768 (legacy_convert_register_p, legacy_register_to_value): Update.
4769 * sh-tdep.c (sh64_push_arguments): Update.
4770 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4771 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4772 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4773 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4774 * arch-utils.c (legacy_value_to_register): Update.
4775 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4776 (rs6000_register_convert_to_raw): Make parameter "from" const.
4777 * mips-tdep.c (mips_gdbarch_init): Update.
4778 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4779 * infcmd.c (default_print_registers_info): Update.
4780 * ia64-tdep.c (ia64_gdbarch_init): Update.
4781 (ia64_register_convert_to_raw): Make parameter "from" const.
4782 * i386-tdep.c (i386_gdbarch_init): Update.
4783 (i386_register_convert_to_raw): Update.
4785 2003-06-11 Andrew Cagney <cagney@redhat.com>
4787 * remote-fileio.c: Include "remote-fileio.h".
4788 * Makefile.in (remote-fileio.o): Update dependencies.
4789 (remote_fileio_h): Fix typo.
4791 2003-06-11 Andrew Cagney <cagney@redhat.com>
4793 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4794 (xstormy16_save_dummy_frame_tos): Make static.
4795 (_initialize_xstormy16_tdep): Add declaration.
4796 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4797 * v850-tdep.c: Make local functions static.
4798 (_initialize_v850_tdep): Add declaration.
4799 * sparc-tdep.c: Make local functions static.
4800 (_initialize_sparc_tdep): Add declaration.
4801 * sh-tdep.c: Make local functions static.
4802 (_initialize_sh_tdep): Add declaration.
4803 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4804 * s390-tdep.c: Make local functions static.
4805 (_initialize_s390_tdep): Add declaration.
4806 * dbxread.c (find_stab_function_addr): Make static.
4807 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4808 * ocd.c (_initialize_remote_ocd): Add declaration.
4809 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4810 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4811 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4812 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4813 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4814 * remote-array.c (_initialize_array): Add declaration.
4815 (_initialize_remote_monitors): Add declaration.
4816 * remote-mips.c: Make local functions static.
4817 (_initialize_remote_mips): Add declaration.
4818 * mcore-tdep.c: Make all local functions static.
4819 (_initialize_mcore_tdep): Add declaration.
4820 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4821 * abug-rom.c (_initialize_abug_rom): Add declaration.
4822 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4823 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4824 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4825 * remote-est.c (_initialize_est): Add declaration.
4826 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4827 (m68hc11_call_dummy_address): Make static.
4828 * ia64-tdep.c: Make local functions static.
4829 (_initialize_ia64_tdep): Add declaration.
4830 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4831 * monitor.c (monitor_wait_filter): Make static.
4832 (_initialize_remote_monitors): Add declaration.
4833 * remote-hms.c (_initialize_remote_hms): Add declaration.
4834 * remote-e7000.c (fetch_regs_from_dump): Make static.
4835 (expect_n): Make static.
4836 (_initialize_remote_e7000): Add declaration.
4837 * ser-e7kpc.c: Always include "defs.h".
4838 (_initialize_ser_e7000pc): Add declaration.
4839 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4840 * cris-tdep.c: Make all but one function static.
4841 (_initialize_cris_tdep): Add declaration.
4842 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4843 * solib.c (update_solib_list): Make static.
4844 (_initialize_solib): Add declaration.
4845 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4846 (_initialize_avr_tdep): Add declaration.
4847 * remote-rdi.c (voiddummy): Make static.
4848 (_initialize_remote_rdi): Add declaration.
4849 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4850 * remote-rdp.c (send_rdp): Make static.
4851 (_initialize_remote_rdp): Add declaration.
4852 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4854 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4856 * remote-fileio.c: Make ari happy.
4858 2003-06-10 J. Brobecker <brobecker@gnat.com>
4860 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4861 fetching the trailing bytes of the buffer we are about to write.
4863 2003-06-10 Andrew Cagney <cagney@redhat.com>
4865 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4866 * Makefile.in (remote-fileio.o): Update dependencies.
4867 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4868 include <setjmp.h>, or <sys/types.h> conditional on USG.
4869 (remote_fio_jmp_buf): Delete global variable.
4871 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4872 Martin M. Hunt <hunt@redhat.com>
4874 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4875 (SFILES): Add remote-fileio.c.
4876 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4877 dependencies for building remote.o.
4878 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4879 * remote-fileio.h: New header file defining remote File-I/O interface.
4880 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4881 static storage class.
4882 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4884 (_initialize_remote): Call initialize_remote_fileio().
4885 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4886 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4887 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4888 (captured_main): Initialize new ui_files.
4889 * ui-file.c: Add read and fgets input functions.
4890 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4891 (null_file_read): New function.
4892 (ui_file_read): New function.
4893 (set_ui_file_read): New function.
4894 (stdio_file_read): New function.
4895 * ui-file.h: New type ui_file_read_ftype.
4896 (set_ui_file_read): Declare.
4897 (ui_file_read): Declare.
4899 2003-06-09 Andrew Cagney <cagney@redhat.com>
4901 * frame.h (deprecated_unwind_get_saved_register): Rename
4902 generic_unwind_get_saved_register, update comments.
4903 * mips-tdep.c (mips_get_saved_register): Update.
4904 * frame.c (deprecated_unwind_get_saved_register): Update.
4906 2003-06-09 Andrew Cagney <cagney@redhat.com>
4908 * vax-tdep.c (vax_frame_locals_address): Delete function.
4909 (vax_gdbarch_init): Do not set frame_locals_address.
4910 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4911 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4912 * s390-tdep.c (s390_frame_args_address): Delete function.
4913 (s390_gdbarch_init): Do not set frame_args_address or
4914 frame_locals_address.
4915 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4916 (ns32k_gdbarch_init): Do not set frame_locals_address.
4917 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4918 (hppa_frame_locals_address): Delete function.
4919 (hppa_gdbarch_init): Do not set frame_args_address, or
4920 frame_locals_address.
4921 * arm-tdep.c (arm_frame_args_address): Delete.
4922 (arm_frame_locals_address): Delete.
4923 (arm_gdbarch_init): Do not set frame_args_address, or
4924 frame_locals_address.
4926 2003-06-09 Andrew Cagney <cagney@redhat.com>
4928 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4929 * gdbarch.h, gdbarch.c: Re-generate.
4930 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4931 * arch-utils.c (frame_num_args_unknown): Delete function.
4932 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4933 (frame_info): Use FRAME_NUM_ARGS_P.
4934 * arm-tdep.c (arm_frame_num_args): Delete function.
4935 (arm_gdbarch_init): Do not set frame_num_args.
4936 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4937 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4938 (hppa_gdbarch_init): Do not set frame_num_args.
4939 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4940 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4941 frame_num_args to default frame_num_args_unknown.
4942 * v850-tdep.c (v850_gdbarch_init): Ditto.
4943 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4944 * sh-tdep.c (sh_gdbarch_init): Ditto.
4945 * s390-tdep.c (s390_gdbarch_init): Ditto.
4946 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4947 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4948 * mips-tdep.c (mips_gdbarch_init): Ditto.
4949 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4950 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4952 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4953 * i386-tdep.c (i386_gdbarch_init): Ditto.
4954 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4955 * frv-tdep.c (frv_gdbarch_init): Ditto.
4956 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4957 * cris-tdep.c (cris_gdbarch_init): Ditto.
4958 * avr-tdep.c (avr_gdbarch_init): Ditto.
4959 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4961 2003-06-09 Andrew Cagney <cagney@redhat.com>
4963 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4964 (print_frame_args): Moved to "stack.c".
4965 * stack.c: Include "gdb_assert.h".
4966 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4967 (print_frame_args): Moved from "printcmd.c".
4968 * frame.h (print_frame_args): Delete declaration.
4969 * Makefile.in (stack.o): Update dependencies.
4971 2003-06-08 Andrew Cagney <cagney@redhat.com>
4973 * frame.c (get_prev_frame): Remove reference to
4974 frame_args_address_correct in comments.
4975 * frame-base.c (default_frame_args_address): Delete code
4976 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4977 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4978 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4979 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4980 (vax_frame_args_address_correct): Delete declaration.
4982 2003-06-08 Andrew Cagney <cagney@redhat.com>
4984 * gdbarch.sh (UNWIND_SP): Add.
4985 * gdbarch.h, gdbarch.c: Re-generate.
4986 * frame.c (frame_sp_unwind): New function.
4987 (get_frame_sp): New function.
4988 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4989 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4990 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4992 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4993 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4995 2003-06-08 Andrew Cagney <cagney@redhat.com>
4997 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5000 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5001 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5002 * config/m68k/tm-sun3.h: Update.
5003 * config/m68k/tm-m68klynx.h: Update.
5004 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5006 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5007 trad_frame". Update comments.
5008 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5009 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5010 (trad_frame_register_value, trad_frame_prev_register): Update.
5012 2003-06-08 Andrew Cagney <cagney@redhat.com>
5014 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5015 from GCC's acinclude.m4.
5016 * configure.in: Check for getopt's delcaration.
5017 * aclocal.m4, config.in, configure: Re-generate.
5018 * main.c (error_init): Delete declaration.
5019 * defs.h (error_init): Declare.
5020 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5021 (rs6000_convert_from_func_ptr_addr): Make static.
5022 (_initialize_rs6000_tdep): Add declaration.
5023 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5024 (show_commands, set_verbose, show_history): Delete declaration.
5025 * top.h (set_verbose): Add declaration.
5026 (show_history, set_history, show_commands): Add declaration.
5027 (do_restore_instream_cleanup): Add declaration.
5028 * objc-lang.c (specialcmp): Make static.
5029 (print_object_command): Make static.
5030 (find_objc_msgsend): Make static.
5031 (find_objc_msgcall_submethod_helper): Make static.
5032 (find_objc_msgcall_submethod): Make static.
5033 (_initialize_objc_language): Add declaration.
5034 (find_implementation_from_class): Make static.
5035 (find_implementation): Make static.
5036 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5037 * objc-lang.h (lookup_struct_typedef): Add declaration.
5038 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5039 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5040 (do_restore_user_call_depth): Make static.
5041 (do_restore_instream_cleanup): Delete declaration.
5042 (dont_repeat): Delete declaration.
5043 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5044 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5045 * reggroups.c (_initialize_reggroup): Add declaration.
5046 * cp-support.c (_initialize_cp_support): Add declaration.
5047 * cp-abi.c (_initialize_cp_abi): Add declaration.
5048 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5049 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5050 (_initialize_gnu_v3_abi): Add declaration.
5051 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5052 (_initialize_gnu_v2_abi): Add declaration.
5053 * frame-base.c (_initialize_frame_base): Add declaration.
5054 * doublest.c (floatformat_from_length): Make static.
5055 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5056 * frame.c (create_sentinel_frame): Make static.
5057 (_initialize_frame): Add declaration.
5058 * top.c (do_catch_errors): Make static.
5059 (gdb_rl_operate_and_get_next_completion): Make static.
5060 * typeprint.c: Include "typeprint.h".
5061 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5062 (sentinel_frame_this_id): Make static.
5063 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5064 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5065 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5066 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5067 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5068 * maint.c (maintenance_print_architecture): Make static.
5069 * signals/signals.c (_initialize_signals): Add declaration.
5070 * std-regs.c (_initialize_frame_reg): Add declaration.
5071 * jv-exp.y (push_variable): ISO C definition.
5072 (push_qualified_expression_name): Ditto.
5073 * memattr.c (_initialize_mem): Add declaration.
5074 * remote.c (remote_check_watch_resources): Make static.
5075 (remote_stopped_by_watchpoint): Make static.
5076 (remote_stopped_data_address): Make static.
5077 * d10v-tdep.c (nr_dmap_regs): Make static.
5078 (a0_regnum): Make static.
5079 (d10v_frame_unwind_cache): Make static.
5080 (d10v_frame_p): Make static.
5081 * osabi.c (show_osabi): Make static.
5082 (_initialize_gdb_osabi): Add extern declaration.
5083 * gdbtypes.c (make_qualified_type): Make static.
5084 (safe_parse_type): Make static.
5085 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5086 * macrotab.c (macro_bcache_free): Make static.
5087 * interps.c (interp_set_quiet): Make static.
5088 (interpreter_exec_cmd): Make static.
5089 * stack.h (select_frame_command): New file.
5090 * stack.c: Include "stack.h".
5091 (select_frame_command_wrapper): Delete function.
5092 (select_frame_command): Make global.
5093 * infcall.c: Include "infcall.h".
5094 * linespec.c: Include "linespec.h".
5095 * symfile.c (sections_overlap): Make static.
5096 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5097 * charset.c (_initialize_charset): Add missing prototype.
5098 * regcache.c (init_legacy_regcache_descr): Make static.
5099 (do_regcache_xfree): Make static.
5100 (regcache_xfer_part): Make static.
5101 (_initialize_regcache): Add missing prototype.
5102 * breakpoint.c (parse_breakpoint_sals): Make static.
5103 (breakpoint_sals_to_pc): Make static.
5104 * interps.h (clear_interpreter_hooks): ISO C declaration.
5105 * Makefile.in (stack_h): Define.
5106 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5107 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5109 2003-06-08 Andrew Cagney <cagney@redhat.com>
5111 * Makefile.in (d10v-tdep.o): Update dependencies.
5112 (SFILES): Add trad-frame.c.
5113 (trad_frame_h): Define.
5114 (COMMON_OBS): Add trad-frame.o.
5115 (trad-frame.o): Specify dependencies.
5116 * d10v-tdep.c: Include "trad-frame.h".
5117 (saved_regs_unwinder): Delete function.
5118 (d10v_frame_prev_register): Use trad_frame_prev_register.
5119 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5120 trad_frame", delete "regs" and "prev_sp".
5121 (prologue_find_regs): Use trad-frame.
5122 * trad-frame.h, trad-frame.c: New files.
5124 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5126 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5128 2003-06-07 Adam Fedor <fedor@gnu.org>
5130 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5131 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5132 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5133 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5134 resolve_msgsend_super, resolve_msgsend_super_stret):
5137 2003-06-07 Andrew Cagney <cagney@redhat.com>
5139 * symfile.h: Re-indent, clean up comments.
5141 2003-06-07 Andrew Cagney <cagney@redhat.com>
5143 * inferior.h (deprecated_write_sp): Replace
5144 generic_target_write_sp.
5145 * regcache.c (deprecated_write_sp): Replace
5146 generic_target_write_sp.
5147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5148 * vax-tdep.c (vax_gdbarch_init): Update.
5149 * v850-tdep.c (v850_gdbarch_init): Update.
5150 * sparc-tdep.c (sparc_gdbarch_init): Update.
5151 * sh-tdep.c (sh_gdbarch_init): Update.
5152 * s390-tdep.c (s390_gdbarch_init): Update.
5153 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5154 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5155 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5156 * mcore-tdep.c (mcore_gdbarch_init): Update.
5157 * m68k-tdep.c (m68k_gdbarch_init): Update.
5158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5159 * ia64-tdep.c (ia64_gdbarch_init): Update.
5160 * h8300-tdep.c (h8300_gdbarch_init): Update.
5161 * frv-tdep.c (frv_gdbarch_init): Update.
5162 * cris-tdep.c (cris_gdbarch_init): Update.
5163 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5165 2003-06-07 Andrew Cagney <cagney@redhat.com>
5167 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5168 Assert that PC_REGNUM is valid.
5169 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5171 2003-06-07 Andrew Cagney <cagney@redhat.com>
5173 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5174 * gdbarch.h, gdbarch.c: Regenerate.
5175 * mn10300-tdep.c: Include "gdb_assert.h".
5176 (mn10300_read_fp): New function.
5177 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5178 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5179 * ia64-tdep.c: Include "gdb_assert.h".
5180 (ia64_read_fp): New function.
5181 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5182 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5183 * regcache.c (generic_target_read_sp): Delete function.
5184 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5185 * inferior.h (generic_target_read_sp): Delete declaration.
5186 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5187 generic_target_read_sp.
5188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5189 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5190 * sh-tdep.c (sh_gdbarch_init): Ditto.
5191 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5192 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5194 2003-06-07 Andrew Cagney <cagney@redhat.com>
5196 * gdbarch.sh: Comment each field of startup_gdbarch.
5197 * gdbarch.h, gdbarch.c: Re-generate.
5199 2003-06-07 Andrew Cagney <cagney@redhat.com>
5201 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5202 * gdbarch.h, gdbarch.c: Re-generate.
5203 * regcache.c: Update comments on read_pc et.al.
5204 (generic_target_read_pc): Delete function.
5205 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5206 * inferior.h (generic_target_read_pc): Delete declaration.
5207 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5208 generic_target_read_pc.
5209 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5210 * sh-tdep.c (sh_gdbarch_init): Ditto.
5211 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5214 2003-06-07 Andrew Cagney <cagney@redhat.com>
5216 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5217 "index" with "special_local_sect". Use strcmp instead of STREQ.
5218 Append period to coments.
5220 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5222 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5223 (elfstab_offset_sections): Likewise.
5224 * gdb-stabs.h (stab_section_info): Likewise.
5225 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5226 * objfiles.c (objfile_relocate): Likewise.
5227 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5228 * remote.c (get_offsets): Likewise.
5229 (remote_cisco_objfile_relocate): Likewise.
5230 * somread.c (som_symfile_offsets): Likewise.
5231 * symfile.c (alloc_section_addr_info): New function.
5232 (build_section_addr_info_from_section_tab): Use it.
5233 (free_section_addr_info): Adjust.
5234 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5235 (syms_from_objfile): Allocate local_addr dynamically.
5236 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5238 (add_symbol_file_command): Allocate sect_opts dynamically.
5239 (reread_symbols): Avoid use of SECT_OFF_MAX.
5240 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5241 (alloc_section_addr_info): Declare it.
5242 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5243 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5245 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5247 2003-06-06 Andrew Cagney <cagney@redhat.com>
5249 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5250 (d10v_frame_unwind_cache): Do not set "return_pc".
5252 2003-06-06 Michael Snyder <msnyder@redhat.com>
5254 * h8300-tdep.c: Make tidy (long lines).
5256 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5258 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5259 to regcache_collect().
5261 2003-06-05 J. Brobecker <brobecker@gnat.com>
5263 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5264 pc_in_sigtramp multiarch method.
5265 (hppa_hpux_som_init_abi): Use it.
5266 (hppa_hpux_elf_init_abi): Likewise.
5267 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5268 macro has been multiarched.
5269 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5270 macro here, as hppa64 isn't multiarched yet.
5272 2003-06-05 Andrew Cagney <cagney@redhat.com>
5274 * Makefile.in (value_h): Add $(frame_h).
5275 * value.h: Include "frame.h".
5276 (struct value): Replace "frame_addr" with "frame_id".
5277 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5278 * values.c (allocate_value): Use VALUE_FRAME_ID.
5279 (value_copy): Use VALUE_FRAME_ID.
5280 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5281 * valops.c (value_assign): Update. Use frame_find_by_id.
5283 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5285 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5288 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5290 * thread-db.c (check_event): For create/death event breakpoints,
5291 loop through all messages to ensure that we read the message
5292 corresponding to the breakpoint we are at.
5294 2003-06-04 Michael Snyder <msnyder@redhat.com>
5296 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5298 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5300 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5301 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5302 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5303 when handling .eh_frame sections.
5305 2003-06-04 J. Brobecker <brobecker@gnat.com>
5307 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5308 prepare_to_proceed procedure instead of the hppa-specific one.
5309 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5311 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5313 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5314 * config.in: Regenerated.
5315 * configure.in: Add test for syscall function and check for
5316 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5317 * configure: Regenerated.
5318 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5320 (kill_lwp): New function that uses tkill syscall or
5321 uses kill, depending on whether threading model is nptl or not.
5322 All callers of kill() changed to use kill_lwp().
5323 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5324 see if all threads have already exited in the nptl model.
5325 (stop_and_resume_callback): New callback function used by the
5326 lin_lwp_wait thread exit handling code.
5327 (stop_wait_callback): Check for threads already having exited and
5328 delete such threads fromt the lwp list when discovered.
5329 (stop_callback): Don't assert retcode of kill call.
5331 Roland McGrath <roland@redhat.com>
5332 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5335 2003-06-03 Richard Henderson <rth@redhat.com>
5337 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5338 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5339 (alpha_sigtramp_frame_prev_register): Likewise.
5340 (alpha_heuristic_frame_prev_register): Likewise.
5341 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5343 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5344 alpha-specific register id names.
5345 (alpha_mdebug_frame_unwind_cache): Likewise.
5346 (alpha_mdebug_frame_prev_register): Likewise.
5348 2003-06-03 Richard Henderson <rth@redhat.com>
5350 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5351 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5352 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5353 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5355 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5356 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5357 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5359 * alpha-linux-tdep.c: Remove unnecessary includes.
5360 * Makefile.in (alpha-linux-tdep.o): Update.
5362 2003-06-03 Richard Henderson <rth@redhat.com>
5364 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5365 (alphabsd_fill_fpreg): Likewise.
5367 2003-06-03 J. Brobecker <brobecker@gnat.com>
5369 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5370 references to struct frame_info fields by calls to the equivalent
5371 accessors. Necessary now that frame_info is opaque.
5373 2003-06-03 J. Brobecker <brobecker@gnat.com>
5375 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5376 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5377 structure, field no longer exists.
5379 2003-06-03 J. Brobecker <brobecker@gnat.com>
5381 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5382 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5384 2003-06-03 J. Brobecker <brobecker@gnat.com>
5386 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5387 references to struct frame_info fields by calls to the equivalent
5388 accessors. Necessary now that frame_info is opaque.
5390 2003-06-03 J. Brobecker <brobecker@gnat.com>
5392 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5393 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5394 structure, field no longer exists.
5396 2003-06-03 Theodore A. Roth <troth@openavr.org>
5398 * remote.c (init_remote_state): Compute sizeof_g_packet by
5399 accumulation of the size of all registers instead of blindly using
5400 DEPRECATED_REGISTER_BYTES.
5402 2003-06-03 Michael Snyder <msnyder@redhat.com>
5404 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5405 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5408 2003-06-03 J. Brobecker <brobecker@gnat.com>
5410 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5411 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5413 2003-06-03 Andrew Cagney <cagney@redhat.com>
5415 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5416 (sparc_convert_to_raw): Delete function.
5417 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5418 register_convert_to_virtual.
5420 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5422 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5423 layer if not dealing with a statically-linked threaded program.
5425 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5427 * solib.c (solib_open): Update comment to reflect actual search order.
5429 2003-06-03 Andrew Cagney <cagney@redhat.com>
5431 * frame.c (get_frame_memory_signed): New function.
5432 (get_frame_memory, get_frame_memory_unsigned): New function.
5433 (get_frame_arch): New function.
5434 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5435 (get_frame_memory, get_frame_unsigned_memory): Declare.
5436 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5437 get_frame_memory_unsigned and get_frame_arch.
5438 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5440 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5442 * MAINTAINERS (write after approval): Add myself.
5444 2003-06-03 Jim Blandy <jimb@redhat.com>
5446 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5447 elements of gregset_t are 64 bits each, but access registers
5448 are still 32 bits, so they're packed two per gregset_t
5449 element. Unpack/pack them properly.
5451 2003-06-02 David Carlton <carlton@bactrian.org>
5453 * linespec.c (find_methods): Break out code into
5454 add_matching_methods and add_constructors.
5455 (add_matching_methods): New.
5456 (add_constructors): Ditto.
5458 2003-06-02 Andrew Cagney <cagney@redhat.com>
5460 * sparc-tdep.c (sparc_print_registers): Delete call to
5461 REGISTER_CONVERTIBLE.
5462 (sparc_gdbarch_init): Do not set register_convertible.
5463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5464 * frv-tdep.c (frv_gdbarch_init): Ditto.
5465 * cris-tdep.c (cris_gdbarch_init): Ditto.
5467 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5469 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5470 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5471 (syms_from_objfile): Ditto.
5473 2003-06-03 Andreas Schwab <schwab@suse.de>
5475 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5476 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5478 2003-06-02 Richard Henderson <rth@redhat.com>
5480 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5481 a member of all_reggroup.
5483 2003-06-02 Richard Henderson <rth@redhat.com>
5485 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5486 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5487 (alpha_lds, alpha_sts): New.
5488 (alpha_convert_register_p): Change from _register_convertible.
5489 (alpha_register_to_value): Change from _convert_to_virtual;
5490 restructure and fail for type sizes other than 4 or 8.
5491 (alpha_value_to_register): Similarly.
5492 (alpha_extract_return_value): Use alpha_sts.
5493 (alpha_store_return_value): Use alpha_lds.
5494 (alpha_gdbarch_init): Update hooks.
5496 2003-06-02 Richard Henderson <rth@redhat.com>
5498 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5500 (alpha_sigtramp_register_address): Likewise.
5502 2003-06-02 Richard Henderson <rth@redhat.com>
5504 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5505 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5506 * alpha-tdep.h: Declare them.
5508 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5509 Remove zerobuf. Don't error on UNIQUE.
5510 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5511 (ALPHA_REGSET_UNIQUE): Provide default.
5512 (supply_gregset): Use alpha_supply_int_regs.
5513 (fill_gregset): Use alpha_fill_int_regs.
5514 (supply_fpregset): Use alpha_supply_fp_regs.
5515 (fill_fpregset): Use alpha_fill_fp_regs.
5516 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5517 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5518 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5519 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5520 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5521 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5523 2003-06-02 Richard Henderson <rth@redhat.com>
5525 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5527 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5528 (alpha_store_return_value): Likewise.
5530 2003-06-02 David Carlton <carlton@math.stanford.edu>
5532 * block.c (contained_in): Add 'const' to arguments.
5533 (block_function): Ditto.
5534 * block.h: Update declarations for block_function and
5537 2003-06-02 David Carlton <carlton@math.stanford.edu>
5539 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5540 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5541 * p-valprint.c (pascal_val_print): Ditto.
5542 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5544 2003-06-02 Richard Henderson <rth@redhat.com>
5546 * alpha-tdep.c (alpha_push_dummy_call): Use
5547 builtin_type_ieee_double_little instead of builtin_type_double.
5549 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5550 sign-extension of 32-bit values.
5551 (alpha_store_return_value): Similarly.
5553 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5554 (alpha_extract_return_value): Likewise.
5555 (alpha_store_return_value): Likewise.
5557 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5558 (alpha_store_return_value): Error on IEEE Quad floats.
5560 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5561 (alpha_extract_struct_value_address): Likewise.
5562 (alpha_store_return_value): Likewise.
5563 (alpha_store_struct_return): Remove.
5564 (alpha_gdbarch_init): Update hook registration to match.
5566 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5567 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5568 macros where appropriate.
5569 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5570 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5572 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5573 for SP, GP; void_func_ptr for PC; non-language-specific types
5575 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5577 2003-06-02 Richard Henderson <rth@redhat.com>
5579 * top.h (lim_at_start): Declare.
5580 * main.c (captured_main): Set it.
5581 * top.c (lim_at_start): Define.
5582 (command_loop): Use it instead of &environ.
5583 * event-top.c (command_handler): Likewise.
5585 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5587 * mipsnbsd-tdep.c: Update copyright years.
5588 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5590 2003-06-01 Richard Henderson <rth@redhat.com>
5592 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5593 (alpha-linux-tdep.o): Update dependencies.
5594 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5595 * alpha-mdebug-tdep.c: Remove unneeded includes.
5597 2003-06-01 Richard Henderson <rth@redhat.com>
5599 * alpha-tdep.c (alpha_register_reggroup_p): New.
5600 (alpha_gdbarch_init): Register it.
5602 2003-06-02 Andrew Cagney <cagney@redhat.com>
5604 * dwarfread.c: Eliminate "register"
5605 (decode_die_type): Eliminate assignment within "if".
5606 (struct_type, decode_array_element_type): Ditto.
5607 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5608 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5609 (decode_modified_type, completedieinfo): Ditto.
5610 * block.c: Eliminate "register".
5611 (blockvector_for_pc_sect): Eliminate assignment within "if".
5612 * cp-support.h (struct symbol): Opaque declaration.
5613 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5615 2003-06-01 Richard Henderson <rth@redhat.com>
5617 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5618 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5620 2003-06-01 Adam Fedor <fedor@gnu.org>
5622 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5623 * gdbarch.[ch]: Regenerate.
5624 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5625 (hppa_gdbarch_init): Set it in the gdbarch vector.
5626 * i386-tdep.c (i386_fetch_pointer_argument): New
5627 (i386_gdbarch_init): Set it into gdbarch.
5628 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5629 (rs6000_gdbarch_init): Set it in gdbarch.
5630 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5631 (sparc_gdbarch_init): Set it in gdbarch.
5633 2003-06-01 Andrew Cagney <cagney@redhat.com>
5635 * defs.h (extract_address): Delete declaration.
5636 * findvar.c (extract_address): Delete function.
5637 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5638 extract_address with the inline equivalent,
5639 extract_unsigned_integer.
5640 (xstormy16_extract_struct_value_address): Ditto.
5641 (xstormy16_pointer_to_address): Ditto.
5642 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5643 * v850-tdep.c (v850_push_arguments): Ditto.
5644 (v850_extract_return_value): Ditto.
5645 (v850_extract_struct_value_address): Ditto.
5646 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5647 (sparcnbsd_get_longjmp_target_64): Ditto.
5648 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5649 (get_longjmp_target): Ditto.
5650 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5651 (sh64_extract_struct_value_address): Ditto.
5652 (sh_push_arguments): Ditto.
5653 (sh64_push_arguments): Ditto.
5654 * remote-vxsparc.c (vx_read_register): Ditto.
5655 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5656 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5657 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5658 * mipsv4-nat.c (get_longjmp_target): Ditto.
5659 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5660 * mips-nat.c (get_longjmp_target): Ditto.
5661 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5662 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5663 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5664 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5665 * irix5-nat.c (get_longjmp_target): Ditto.
5666 * irix4-nat.c (get_longjmp_target): Ditto.
5667 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5668 (ia64_push_arguments): Ditto.
5669 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5670 * h8300-tdep.c (h8300_push_arguments): Ditto.
5671 (h8300_store_return_value): Ditto.
5672 (h8300_extract_struct_value_address): Ditto.
5673 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5674 (frv_push_arguments): Ditto.
5675 * avr-tdep.c (avr_pointer_to_address): Ditto.
5676 (avr_push_arguments): Ditto.
5677 * arm-tdep.c (arm_push_dummy_call): Ditto.
5678 (arm_get_longjmp_target): Ditto.
5679 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5680 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5681 (alpha_get_longjmp_target): Ditto.
5683 * solib-irix.c (extract_mips_address): Inline extract_address,
5684 replacing it with extract_signed_integer.
5685 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5686 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5687 (first_link_map_member, open_symbol_file_object): Ditto.
5688 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5689 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5690 (LM_NEXT, LM_NAME): Ditto.
5692 2003-06-01 Richard Henderson <rth@redhat.com>
5694 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5695 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5696 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5697 (alpha_cannot_store_register): Likewise.
5698 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5699 * alpha-nat.c (supply_gregset): Likewise.
5700 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5702 2003-06-01 Andrew Cagney <cagney@redhat.com>
5704 * infcall.c (call_function_by_hand): Update comment on
5705 DEPRECATED_DUMMY_WRITE_SP.
5707 * mips-tdep.c (mips_gdbarch_init): Do not set
5708 deprecated_dummy_write_sp.
5709 (mips_eabi_push_dummy_call): Set the SP register.
5710 (mips_o64_push_dummy_call): Set the SP register.
5711 (mips_o32_push_dummy_call): Set the SP register.
5712 (mips_n32n64_push_dummy_call): Set the SP register.
5714 2003-06-01 Richard Henderson <rth@redhat.com>
5716 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5717 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5718 (supply_gregset): Likewise.
5719 * alpha-tdep.c (alpha_store_return_value): Likewise.
5720 (alpha_get_longjmp_target): Likewise.
5721 (alpha_register_name): Constify array.
5722 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5723 deprecated_register_size, deprecated_register_bytes,
5724 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5725 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5726 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5728 2003-06-01 Richard Henderson <rth@redhat.com>
5730 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5731 from arg_reg_buffer to regcache to avoid double conversion.
5733 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5735 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5737 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5738 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5740 2003-06-01 Richard Henderson <rth@redhat.com>
5742 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5743 (decode_frame_entry): Set it. Skip FDE augmentation.
5745 2003-06-01 Richard Henderson <rth@redhat.com>
5747 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5748 not overlapping PC_REGNUM.
5750 2003-06-01 Richard Henderson <rth@redhat.com>
5752 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5753 alpha_push_arguments. Don't dump argument register data to
5754 the target stack. Fix float and 128-bit long double semantics.
5755 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5756 (alpha_fix_call_dummy): Remove.
5757 (alpha_call_dummy_words): Remove.
5758 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5760 2003-06-01 Richard Henderson <rth@redhat.com>
5762 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5764 2003-06-01 Andrew Cagney <cagney@redhat.com>
5766 * mips-tdep.c (is_mips16_addr): New function.
5767 (make_mips16_addr, unmake_mips16_addr): New functions.
5768 (pc_is_mips16, mips_fetch_instruction): Use.
5769 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5770 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5771 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5772 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5774 * config/mips/tm-mips.h: Update copyright.
5775 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5776 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5777 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5778 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5779 (TM_PRINT_INSN_MACH): Delete.
5780 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5782 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5783 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5784 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5785 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5786 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5787 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5788 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5789 mips*-*-riscos* and mips*-*-sysv* onto mips.
5790 * config/mips/mips64.mt: New file.
5791 * config/mips/mips.mt: New file.
5792 * config/mips/littlemips.mt: Delete file.
5793 * config/mips/decstation.mt: Delete file.
5794 * config/mips/vr4300el.mt: Delete file.
5795 * config/mips/vr5000el.mt: Delete file.
5796 * config/mips/vr5000.mt: Delete file.
5797 * config/mips/vr4100.mt: Delete file.
5798 * config/mips/vr4xxxel.mt: Delete file.
5799 * config/mips/vr4300.mt: Delete file.
5800 * config/mips/vr4xxx.mt: Delete file.
5801 * config/mips/bigmips.mt: Delete file.
5802 * config/mips/bigmips64.mt: Delete file.
5803 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5804 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5805 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5806 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5807 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5809 * config/mips/tm-irix3.h: Ditto.
5810 * config/mips/tm-mipsv4.h: Ditto.
5811 * config/mips/tm-embed.h: Ditto.
5812 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5814 * config/mips/tm-vr5000el.h: Delete file.
5815 * config/mips/tm-tx39l.h: Delete file.
5816 * config/mips/tm-vr4300el.h: Delete file.
5817 * config/mips/tm-vr4xxxel.h: Delete file.
5818 * config/mips/tm-vr4300.h: Delete file.
5819 * config/mips/tm-vr4100.h: Delete file.
5820 * config/mips/tm-vr4xxx.h: Delete file.
5821 * config/mips/tm-vr5000.h: Delete file.
5822 * config/mips/tm-embedl64.h: Delete file.
5823 * config/mips/tm-embedl.h: Delete file.
5824 * config/mips/tm-embed64.h: Delete file.
5825 * config/mips/tm-bigmips64.h: Delete file.
5826 * config/mips/tm-bigmips.h: Delete file.
5828 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5831 * shnbsd-nat.c: Include "sh-tdep.h".
5833 From Richard Henderson <rth@redhat.com>:
5834 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5836 2003-05-31 Andrew Cagney <cagney@redhat.com>
5838 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5839 forward declaration.
5840 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5841 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5842 (mips_find_saved_regs): Use set_reg_offset.
5843 (mips_frame_init_saved_regs): Delete function.
5844 (mips_pop_frame): Call mips_find_saved_regs instead of
5845 DEPRECATED_FRAME_INIT_SAVED_REGS.
5847 2003-05-31 Andrew Cagney <cagney@redhat.com>
5849 * mips-tdep.c (mips_gdbarch_init): Do not set
5850 deprecated_max_register_raw_size, register_virtual_size, and
5851 deprecated_max_register_virtual_size.
5853 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5855 * i386-tdep.c: Include "dwarf2-frame.h".
5856 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5857 * Makefile.in (i386-tdep.o): Update dependencies.
5859 * dwarf2-frame.c, dwarf2-frame.h: New files.
5860 * Makefile.in (SFILES): Add dwarf2-frame.c.
5861 (dwarf2_frame_h): Define.
5862 (COMMON_OBS): Add dwarf2-frame.o.
5863 (dwarf2-frame.o): Add dependencies.
5865 2003-05-31 Andreas Jaeger <aj@suse.de>
5867 * x86-64-linux-nat.c: Fix comment.
5869 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5871 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5874 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5875 have a sigcontext_addr handler.
5876 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5877 sigcontext_addr handler.
5879 2003-05-31 Andrew Cagney <cagney@redhat.com>
5881 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5882 (print_fp_register_row): Replace do_fp_register_row.
5883 (mips_print_fp_register): Add "file" and "frame" parameters.
5884 (mips_print_register): Add "file" and "frame" parameters.
5885 (mips_print_registers_info): Replace mips_do_registers_info.
5886 (mips_gdbarch_init): Set print_registers_info instead of
5887 deprecated_do_registers_info.
5888 (mips_read_fp_register_single): Add "frame" parameter.
5889 (mips_read_fp_register_double): Add "frame" parameter.
5891 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5893 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5894 Fixes a bug where GDB would print the wrong register names for
5895 targets without SSE.
5897 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5898 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5901 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5902 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5903 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5906 From Michal Ludvig <mludvig@suse.cz>:
5907 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5909 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5910 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5911 I386_ST0_REGNUM): Move here from...
5912 * i386-tdep.c: ... here.
5913 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5914 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5915 registers if possible.
5916 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5917 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5919 (i386bsd_sc_reg_offset): New variable.
5920 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5921 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5923 (i386fbsd_sc_reg_offset): New variable.
5924 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5926 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5928 (i386fbsd4_sc_reg_offset): New variable.
5929 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5930 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5932 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5933 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5934 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5936 (i386nbsd_sc_reg_offset): New variable.
5937 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5938 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5940 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5942 (i386obsd_sc_reg_offset): New variable.
5943 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5944 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5946 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5947 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5948 for frame pointer offset in `struct sigcontext'.
5950 2003-05-31 Andrew Cagney <cagney@redhat.com>
5952 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5953 architecture methods call_dummy_words, sizeof_call_dummy_words,
5954 push_return_address, store_struct_return, and fix_call_dummy. Set
5955 push_dummy_call instead of deprecated_push_arguments.
5956 (mips_store_struct_return): Delete function.
5957 (mips_fix_call_dummy): Delete function.
5958 (mips_push_return_address): Delete function.
5959 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5960 RA_REGNUM and T9_REGNUM.
5961 (mips_n32n64_push_dummy_call): Ditto for
5962 mips_n32n64_push_arguments.
5963 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5964 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5966 2003-05-31 Andrew Cagney <cagney@redhat.com>
5968 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5969 "dummy_addr" to "bp_addr".
5970 * infcall.c (call_function_by_hand): Pass "funaddr" to
5971 gdbarch_push_dummy_call.
5972 * gdbarch.h, gdbarch.c: Re-generate.
5973 * i386-tdep.c (i386_push_dummy_call): Update.
5974 * arm-tdep.c (arm_push_dummy_call): Update.
5975 * d10v-tdep.c (d10v_push_dummy_call): Update.
5977 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5979 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5980 variable declarations.
5981 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5982 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5983 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5984 x86_64_init_frame_pc, x86_64_init_frame_pc,
5985 x86_64_function_has_prologue): Remove prototypes.
5986 (X86_64_NUM_GREGS): New define.
5987 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5988 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5989 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5990 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5991 XMM1_REGNUM): Remove defines.
5992 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5993 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5994 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5995 X86_64_XMM1_REGNUM): New defines.
5996 (struct x86_64_register_info): Renamed from `struct
5997 register_info'. Remove `size' member.
5998 (x86_64_register_info_table): Remove variable.
5999 (x86_64_register_info): New variable.
6000 (X86_64_NUM_REGS): New define.
6001 (X86_64_NUM_GREGS): Remove define.
6002 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6003 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6005 (x86_54_dwarf2_reg_to_regnum): Remove function.
6006 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6007 (x86_64_dwarf_reg_to_regnum): New function.
6008 (x86_64_register_name): Rewrite.
6009 (x86_64_register_raw_size): Remove function.
6010 (x86_64_register_byte_table): Remove variable.
6011 (x86_64_register_byte): Remove function.
6012 (x86_64_register_virtual_type): Remove function.
6013 (x86_64_register_type): New function.
6014 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6015 x86_64_register_convert_to_raw): Remove functions.
6016 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6017 (x86_64_use_struct_convention): Make static. Adjust for renamed
6019 (x86_64_frame_init_saved_regs): Remove function.
6020 (x86_64_push_arguments): Make static. Change to accept a regcache
6022 (x86_64_store_return_value, x86_64_extract_return_value): Make
6023 static. Rewrite based on i386 counterparts.
6024 (x86_64_push_dummy_call): New function.
6025 (X86_64_NUM_SAVED_REGS): New define.
6026 (x86_64_register_number): Remove function.
6027 (x86_64_store_struct_return): Remove function.
6028 (x86_64_frameless_function_invocation,
6029 x86_64_function_has_prologue): Remove functions.
6030 (PROLOG_BUFSIZE): Remove define.
6031 (struct x86_64_frame_cache): New structure.
6032 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6033 x86_64_frame_cache, x86_64_frame_this_id,
6034 x86_64_frame_prev_register, x86_64_frame_p,
6035 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6036 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6038 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6040 (x86_64_skip_prologue): Rewrite in terms of
6041 x86_64_analyze_prologue.
6042 (x86_64_frame_base_address): New function.
6043 (x86_64_frame_base): New variable.
6044 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6045 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6046 set deprecated_fp_regnum, deprecated_register_size,
6047 deprecated_register_bytes, register_raw_size, register_byte,
6048 register_virtual_type, register_convertiable,
6049 register_convert_to_virtual, convert_to_raw,
6050 deprecated_get_saved_register, deprecated_target_read_fp,
6051 deprecated_push_arguments, deprecated_push_return_address,
6052 deprecated_pop_frame, deprecated_store_struct_return,
6053 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6054 frameless_function_invocation, deprecated_frame_saved_pc,
6055 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6056 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6057 deprecated_init_frame_pc and virtual_frame_pointer. Call
6058 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6059 and x86_64_frame_p. Call frame_base_set_default to register
6061 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6062 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6063 (_initialize_x86_64_tdep): Remove function.
6064 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6065 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6066 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6068 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6069 (x86_64_linux_sigcontext_addr): Rewrite.
6070 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6071 x86_64_linux_frame_saved_pc): Remove functions.
6072 (x86_64_linux_pc_in_sigtramp): Renamed from
6073 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6075 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6077 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6078 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6079 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6080 (x86_64_regmap): Rename to regmap.
6081 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6083 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6085 (x86_64_fxsave_offset): Remove function.
6086 (supply_fpregset): Simply call x86_64_supply_fxsave.
6087 (fill_fpregset): Simply call x86_64_fill_fxsave.
6088 (fetch_inferior_registers, store_inferior_registers): Avoid
6089 asignment in if-statement.
6090 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6091 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6092 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6093 (fetch_core_registers): Remove function.
6094 (linux_elf_core_fns): Remove.
6095 (offsetoff): Don't define.
6096 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6097 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6098 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6100 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6101 protection against multiple includes instead of NM_X86_64_h. Add
6102 various comments. Include "config/nm-linux.h". Don't include
6104 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6105 GET_THREAD_SIGNALS): Remove defines.
6106 (x86_64_register_u_addr, kernel_u_size,
6107 lin_thread_get_thread_signals): Remove prototypes.
6108 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6109 [HAVE_LINK_H]: Don't include "solib.h".
6110 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6111 * config/i386/tm-x86-64linux.h: Fix comments.
6112 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6113 x86-64-tdep.o): Update dependencies.
6115 2003-05-30 Andrew Cagney <cagney@redhat.com>
6117 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6118 Change parameter type to a "struct regcache *".
6120 * gdbarch.sh: Regardless of the multi-arch level, always define
6121 the macro when not already defined.
6122 * gdbarch.h, gdbarch.c: Re-generate.
6124 2003-05-30 Richard Henderson <rth@redhat.com>
6126 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6127 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6128 (alpha_mdebug_frame_this_id): Likewise.
6129 (alpha_mdebug_frame_prev_register): Likewise.
6130 (alpha_mdebug_frame_base_address): Likewise.
6131 (alpha_mdebug_frame_locals_address): Likewise.
6132 (alpha_mdebug_frame_args_address): Likewise.
6133 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6134 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6135 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6137 (alpha_heuristic_frame_this_id): Make static.
6138 (alpha_heuristic_frame_prev_register): Likewise.
6139 (alpha_heuristic_frame_base_address): Likewise.
6140 * alpha-tdep.h: Update.
6142 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6144 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6145 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6147 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6148 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6149 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6150 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6151 I386_ST0_REGNUM): New defines.
6152 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6153 codestream_get): Remove define.
6154 (codestream_next_addr, condestream_addr, condestream_buf,
6155 codestream_off, codestream_cnt): Remove variables.
6156 (codestream_fill, codestream_seek, codestream_read): Remove
6158 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6160 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6161 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6162 i386_frame_saved_pc, i386_saved_pc_after_call,
6163 i386_frame_num_args, i386_frame_init_saved_regs,
6164 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6165 i386_push_arguments): Remove functions.
6166 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6167 functionality. Use i386_analyze_prologue instead of
6168 i386_get_frame_setup.
6169 (I386_NUM_SAVED_REGS): New define.
6170 (struct i386_frame_cache): New structure.
6171 (i386_alloc_frame_cache, i386_analyze_struct_return,
6172 i386_skip_probe, i386_analyze_frame_setup,
6173 i386_analyze_register_saves, i386_analyze_prologue,
6174 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6175 i386_frame_prev_register, i386_sigtramp_frame_cache,
6176 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6177 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6178 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6180 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6182 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6183 I386_EAX_REGNUM and I386_EDX_REGNUM.
6184 (i386_extract_return_value, i386_store_return_value): Use
6185 I386_ST0_REGNUM where appropriate.
6186 (i386_extract_struct_value_address): Rewrite to use extract_address.
6187 (i386_svr4_pc_in_sigtramp): Add comment.
6188 (i386_svr4_sigcontext_addr): Rewrite.
6189 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6191 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6192 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6193 of new defines. Set push_dummy_call, don't set
6194 deprecated_push_arguments, deprecated_push_return_address,
6195 deprecated_pop_frame. Don't set parm_boundary. Don't set
6196 deprecated_frame_chain, deprecated_frame_saved_pc,
6197 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6198 save_dummy_frame_tos, unwind_pc. Call
6199 frame_unwind_append_predicate and frame_base_set_default. Don't
6200 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6201 Don't set frameless_function_invocation. Don't set
6202 deprecated_register_bytes, deprecated_register_size,
6203 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6204 * i386-linux-tdep.c: Fix formatting in some comments.
6205 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6206 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6207 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6208 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6209 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6210 redundant parentheses.
6211 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6212 (i386_linux_sigcontext_addr): Use it. Rewrite.
6213 (find_minsym_and_objfile): Change name of second argument.
6214 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6215 changed. Use frame_pc_unwind instead of
6216 DEPRECATED_SAVED_PC_AFTER_CALL.
6217 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6218 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6219 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6221 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6223 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6224 (_initialize_i386_cygwin_tdep): New prototype.
6225 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6226 deprecated_frame_chain_valid.
6227 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6228 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6229 Rely on the SVR4 defaults.
6230 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6231 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6233 2003-05-30 Andrew Cagney <cagney@redhat.com>
6235 * infcall.c (call_function_by_hand): Always call
6236 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6238 2003-05-30 Richard Henderson <rth@redhat.com>
6240 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6243 2003-05-29 Jim Blandy <jimb@redhat.com>
6245 Use gdbarch methods for solib stuff on PowerPC Linux.
6246 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6247 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6249 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6250 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6251 giving the same effect as the #definitions above.
6253 2003-05-29 Adam Fedor <fedor@gnu.org>
6255 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6256 (find_implementation_from_class): Replace it with the standard
6257 case i.e. do nothing.
6259 2003-05-29 Richard Henderson <rth@redhat.com>
6261 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6262 (alpha_linux_sigtramp_offset): Use it. Make static.
6263 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6264 update for new frame model.
6265 * alpha-mdebug-tdep.c: New file.
6266 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6267 (alpha_osf1_init_abi): Install it.
6268 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6269 (linked_proc_desc_table): Remove.
6270 (alpha_frame_past_sigtramp_frame): Remove.
6271 (alpha_dynamic_sigtramp_offset): Remove.
6272 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6273 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6274 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6275 (push_sigtramp_desc): Remove.
6276 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6277 (alpha_cannot_store_register): Likewise.
6278 (alpha_sigcontext_addr): Remove.
6279 (alpha_find_saved_regs): Remove.
6280 (alpha_frame_init_saved_regs): Remove.
6281 (alpha_init_frame_pc_first): Remove.
6282 (read_next_frame_reg): Remove.
6283 (alpha_frame_saved_pc): Remove.
6284 (alpha_saved_pc_after_call): Remove.
6285 (temp_proc_desc, temp_saved_regs): Remove.
6286 (alpha_about_to_return): Remove.
6287 (cached_proc_desc): Remove.
6288 (alpha_frame_chain): Remove.
6289 (alpha_print_extra_frame_info): Remove.
6290 (alpha_init_extra_frame_info): Remove.
6291 (alpha_frame_locals_address): Remove.
6292 (alpha_frame_args_address): Remove.
6293 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6294 (alpha_push_dummy_frame): Remove.
6295 (alpha_pop_frame): Remove.
6296 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6297 (alpha_read_insn): New.
6298 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6299 for different insn encodings.
6300 (alpha_in_lenient_prologue): Remove.
6301 (struct alpha_sigtramp_unwind_cache): New.
6302 (alpha_sigtramp_frame_unwind_cache): New.
6303 (alpha_sigtramp_register_address): New.
6304 (alpha_sigtramp_frame_this_id): New.
6305 (alpha_sigtramp_frame_prev_register): New.
6306 (alpha_sigtramp_frame_unwind): New.
6307 (alpha_sigtramp_frame_p): New.
6308 (struct alpha_heuristic_unwind_cache): New.
6309 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6310 don't count nop insns that occur between functions.
6311 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6312 heuristic_proc_desc, but without the mdebug wrapping.
6313 (alpha_heuristic_frame_this_id): New.
6314 (alpha_heuristic_frame_prev_register): New.
6315 (alpha_heuristic_frame_unwind): New.
6316 (alpha_heuristic_frame_p): New.
6317 (alpha_heuristic_frame_base_address): New.
6318 (alpha_heuristic_frame_base): New.
6319 (alpha_unwind_dummy_id): New.
6320 (alpha_unwind_pc): New.
6321 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6322 frame related deprecated initializations; install replacements.
6323 (alpha_dump_tdep): Remove.
6324 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6325 (alpha_read_insn, alpha_after_prologue,
6326 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6327 alpha_heuristic_frame_prev_register,
6328 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6329 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6330 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6331 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6333 2003-05-29 Andrew Cagney <cagney@redhat.com>
6335 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6336 dependant on the availability of ASSERT_FUNCTION.
6337 (ASSERT_FUNCTION): Do not define when there is no function name.
6339 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6341 From Jimi X <jimix@watson.ibm.com>:
6342 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6344 2003-05-28 Jim Blandy <jimb@redhat.com>
6346 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6347 argument to ptrace to int; the system headers should give it the
6348 right type, and pointers don't fit in ints on powerpc64-*-*.
6350 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6352 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6355 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6357 * stabsread.c (dbx_lookup_type): Make static.
6359 (add_undefined_type): Ditto.
6360 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6363 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6365 * hpread.c (hpread_has_name): Make static.
6366 (hpread_psymtab_to_symtab): Ditto.
6367 (file_exists): Ditto.
6368 (hpread_call_pxdb): Ditto.
6369 (hpread_pxdb_needed): Ditto.
6370 (hpread_quick_traverse): Ditto.
6371 (hpread_get_header): Ditto.
6372 (hpread_get_lntt): Ditto.
6373 (hpread_get_slt): Ditto.
6376 2003-05-25 Andreas Schwab <schwab@suse.de>
6378 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6379 stack_align and deprecated_extra_stack_alignment_needed.
6380 (m68k_stack_align): Delete.
6382 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6383 (m68k_register_virtual_size): Likewise.
6384 (altos_skip_prologue): Remove obsolete function.
6385 (isi_frame_num_args): Likewise.
6386 (news_frame_num_args): Likewise.
6387 (m68k_fix_call_dummy): Make static.
6388 (m68k_push_dummy_frame): Likewise.
6389 (m68k_pop_frame): Likewise.
6390 (m68k_skip_prologue): Likewise.
6391 (m68k_frame_init_saved_regs): Likewise.
6392 (m68k_saved_pc_after_call): Likewise.
6393 (m68k_get_longjmp_target): Make multi-arch.
6394 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6395 structure. Register m68k_get_longjmp_target if enabled.
6396 * m68k-tdep.h (struct gdbarch_tdep): Define.
6397 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6399 * Makefile.in (config.status): Also depend on configure.tgt
6401 (m68klinux-tdep.o): Update dependencies.
6402 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6403 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6404 (M68K_LINUX_JB_PC): Define.
6405 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6406 and take additional parameter.
6407 (m68k_linux_sigtramp_saved_pc): Update.
6408 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6409 m68k_linux_pc_in_sigtramp, in_plt_section,
6410 find_solib_trampoline_target.
6411 * config/m68k/tm-linux.h: Don't include any tm headers.
6412 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6413 (JB_ELEMENT_SIZE): Likewise.
6415 (GET_LONGJMP_TARGET): Likewise.
6416 (IN_SIGTRAMP): Likewise.
6417 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6419 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6421 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6422 (sparc32_push_arguments): Re-implement by calling
6423 sparc32_do_push_arguments.
6425 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6427 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6428 SPARC_O1_REGNUM): New defines.
6429 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6430 (sparc32_store_return_value): New function.
6431 (sparc_extract_struct_value_address): Rewrite to operate on a
6433 (sparc_gdbarch_init): Don't set
6434 deprecated_extract_struct_value_address. Set
6435 extract_struct_value_address instead. Don't set
6436 deprecated_extract_return_value and deprecated_store_return_value
6437 for 32-bit targets. Set extract_return_value and
6438 store_return_value instead.
6439 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6440 DEPRECTAED_EXTRACT_RETURN_VALUE,
6441 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6442 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6443 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6444 (sparc_store_return_value): Remove prototype.
6445 (sparc32_store_return_value): New prototype.
6446 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6449 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6451 * sparcnbsd-tdep.c: Include "gdb_string.h".
6453 2003-05-23 Andrew Cagney <cagney@redhat.com>
6455 * p-valprint.c (pascal_val_print): Replace extract_address with
6456 the inline equivalent extract_unsigned_integer.
6457 * jv-valprint.c (java_value_print): Ditto.
6458 * ada-valprint.c (ada_val_print_1): Ditto.
6459 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6461 2003-05-23 Theodore A. Roth <troth@openavr.org>
6463 * blockframe.c (frameless_look_for_prologue): Remove unused
6464 after_prologue variable.
6466 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6468 * blockframe.c (get_pc_function_start): Rewrite to avoid
6469 asignments in if-statements.
6471 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6473 Committed by Elena Zannoni <ezannoni@redhat.com>.
6474 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6475 files, don't relocate absolute symbols (and do use mst_abs).
6477 2003-05-23 Andrew Cagney <cagney@redhat.com>
6479 * objc-lang.c: Include "gdb_assert.h".
6480 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6481 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6482 (gdb_check, gdb_check_fatal): Delete functions.
6483 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6485 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6486 * Makefile.in (objc-lang.o): Update dependencies.
6488 2003-05-22 Ian Lance Taylor <ian@airs.com>
6490 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6491 with fprintf_filtered, not fprintf_unfiltered.
6493 2003-05-22 Andrew Cagney <cagney@redhat.com>
6495 * stack.c (frame_info): Inline extract_address, replacing it with
6496 extract_unsigned_integer.
6497 * findvar.c (unsigned_pointer_to_address): Ditto.
6498 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6499 * dwarf2expr.c (dwarf2_read_address): Ditto.
6500 * frame.c (frame_pc_unwind): Update comment.
6501 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6503 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6505 * infptrace.c (detach): Call print_sys_errmsg rather than
6506 perror_with_name to issue warning message when errno is non-zero
6507 after calling ptrace detach.
6509 2003-05-21 J. Brobecker <brobecker@gnat.com>
6511 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6512 macro definitions from here...
6513 * hppa-tdep.c: ...to there.
6515 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6517 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6518 register_ptrace_addr(). Fix all callers.
6520 2003-05-21 Andreas Schwab <schwab@suse.de>
6522 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6524 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6526 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6527 (_initialize_m68k_linux_tdep): New function.
6528 (m68k_linux_frame_saved_pc): Make static.
6529 (m68k_linux_extract_return_value): Likewise.
6530 (m68k_linux_store_return_value): Likewise.
6531 (m68k_linux_extract_struct_value_address): Likewise.
6532 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6534 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6535 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6536 (DEPRECATED_FRAME_SAVED_PC): Remove.
6538 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6540 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6541 regset numbering rather than our own.
6543 2003-05-19 David Carlton <carlton@bactrian.org>
6545 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6547 2003-05-19 David Carlton <carlton@bactrian.org>
6549 Partial fix for PR c++/827.
6550 * cp-support.h: Include symtab.h.
6551 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6552 * cp-namespace.c: Update contributors.
6553 (cp_lookup_symbol_nonlocal): New.
6554 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6555 (lookup_symbol_file): Ditto.
6556 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6557 * block.h: Declare block_scope, block_using, block_global_block.
6558 * block.c (block_scope): New.
6559 (block_using, block_global_block): Ditto.
6560 * Makefile.in (cp_support_h): Depend on symtab_h.
6561 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6563 2003-05-19 David Carlton <carlton@bactrian.org>
6565 * language.h (struct language_defn): Add 'la_value_of_this'
6566 and 'la_lookup_symbol_nonlocal' members.
6567 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6568 lookup_symbol_static, lookup_symbol_global,
6569 lookup_symbol_aux_block.
6570 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6571 if we should search fields of this and how to do static/global
6573 (lookup_symbol_aux_block): Make extern.
6574 (basic_lookup_symbol_nonlocal): New.
6575 (lookup_symbol_static, lookup_symbol_global): Ditto.
6576 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6577 'la_lookup_symbol_nonlocal' members.
6578 * c-lang.c (c_language_defn, cplus_language_defn)
6579 (asm_language_defn, minimal_language_defn): Ditto.
6580 * jv-lang.c (java_language_defn): Ditto.
6581 * language.c (unknown_language_defn, auto_language_defn)
6582 (local_language_defn): Ditto.
6583 * m2-lang.c (m2_language_defn): Ditto.
6584 * objc-lang.c (objc_language_defn): Ditto.
6585 * scm-lang.c (scm_language_defn): Ditto.
6586 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6587 * p-lang.c (pascal_language_defn): Ditto for both.
6588 * Makefile.in (f-lang.o): Depend on value_h.
6591 2003-05-19 David Carlton <carlton@bactrian.org>
6593 * block.h: Declare block_static_block.
6594 * block.c (block_static_block): New.
6595 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6596 lookup_symbol_aux_local, calling block_static_block instead.
6597 (lookup_symbol_aux_local): Delete 'static_block' argument.
6599 2003-05-19 David Carlton <carlton@bactrian.org>
6601 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6603 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6605 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6606 register numbers mapping.
6608 2003-05-18 Adam Fedor <fedor@gnu.org>
6610 * symtab.c (completion_list_objc_symbol): New function.
6611 (make_symbol_completion_list): Use it to add ObjC symbols
6612 when looking though the list.
6613 (language_search_unquoted_string): New function.
6614 (make_file_symbol_completion_list): Use it.
6616 2003-05-18 Andreas Schwab <schwab@suse.de>
6618 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6620 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6621 as m68k_linux_extract_return_value.
6622 (DEPRECATED_STORE_RETURN_VALUE): Define as
6623 m68k_linux_store_return_value.
6624 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6625 m68k_linux_extract_struct_value_address.
6626 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6627 get_next_frame, get_frame_base, get_frame_pc.
6628 (m68k_linux_frame_saved_pc): Use get_frame_base.
6629 (m68k_linux_extract_return_value): New function.
6630 (m68k_linux_store_return_value): New function.
6631 (m68k_linux_extract_struct_value_address): New function.
6632 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6634 * c-exp.y (typebase): Remove duplicate occurence of
6635 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6636 of lookup_signed_typename.
6638 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6640 * dwarf2loc.c (find_location_expression): Change type of second
6641 argument to `size_t *'.
6642 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6645 2003-05-18 David Carlton <carlton@bactrian.org>
6647 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6648 'linkage_name'. Add comment.
6649 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6651 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6652 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6653 (lookup_block_symbol): Ditto.
6655 2003-05-16 Andrew Cagney <cagney@redhat.com>
6657 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6658 * gdbarch.h, gdbarch.c: Re-generate.
6659 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6660 * TODO (REGISTER_BYTES): Delete reference.
6661 * alpha-tdep.c (alpha_gdbarch_init): Update.
6662 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6663 * x86-64-tdep.c (x86_64_init_abi): Update.
6664 * vax-tdep.c (vax_gdbarch_init): Update.
6665 * v850-tdep.c (v850_gdbarch_init): Update.
6666 * sparc-tdep.c (sparc_gdbarch_init): Update.
6667 * sh-tdep.c (sh_gdbarch_init): Update.
6668 * s390-tdep.c (s390_gdbarch_init): Update.
6669 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6670 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6671 (ns32k_gdbarch_init_32382): Update.
6672 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6673 * mcore-tdep.c (mcore_gdbarch_init): Update.
6674 * m68k-tdep.c (m68k_gdbarch_init): Update.
6675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6676 * ia64-tdep.c (ia64_gdbarch_init): Update.
6677 * i386-tdep.c (i386_gdbarch_init): Update.
6678 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6679 * hppa-tdep.c (hppa_gdbarch_init): Update.
6680 * h8300-tdep.c (h8300_gdbarch_init): Update.
6681 * frv-tdep.c (frv_gdbarch_init): Update.
6682 * cris-tdep.c (cris_gdbarch_init): Update.
6683 * avr-tdep.c (avr_gdbarch_init): Update.
6684 * arm-tdep.c (arm_gdbarch_init): Update.
6685 * sparc-tdep.c (sparc_pop_frame): Update.
6686 * rs6000-tdep.c (rs6000_pop_frame): Update.
6687 * remote.c (init_remote_state): Update.
6688 (remote_prepare_to_store): Update.
6689 * remote-vx.c (vx_prepare_to_store): Update.
6690 * remote-sds.c (sds_fetch_registers): Update.
6691 (sds_prepare_to_store): Update.
6692 * remote-array.c: Update.
6693 * regcache.c (init_legacy_regcache_descr): Update.
6694 (init_regcache_descr): Update.
6695 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6696 (mips_o64_extract_return_value): Update.
6697 * irix5-nat.c (fetch_core_registers): Update.
6698 * irix4-nat.c (fetch_core_registers): Update.
6699 * i386-tdep.h: Update.
6700 * hppa-tdep.c (pa_do_registers_info): Update.
6701 (pa_do_strcat_registers_info): Update.
6702 * cris-tdep.c (cris_register_bytes_ok): Update.
6703 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6704 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6705 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6706 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6707 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6708 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6709 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6710 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6711 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6712 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6713 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6714 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6715 (REGISTER_BYTES_OK): Update.
6716 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6717 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6719 2003-05-16 Ian Lance Taylor <ian@airs.com>
6721 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6722 (vax_print_insn, print_insn_arg): Remove static functions.
6723 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6724 print_insn_vax from opcodes library.
6725 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6727 2003-05-15 Andrew Cagney <cagney@redhat.com>
6729 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6730 * target.h (memory_breakpoint_from_pc): Delete declaration.
6731 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6732 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6733 * monitor.c (monitor_insert_breakpoint): Use
6734 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6735 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6736 * gdbarch.h, gdbarch.c: Re-generate.
6737 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6738 (sparc_gdbarch_init): Set breakpoint_from_pc to
6739 sparc_breakpoint_from_pc.
6740 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6741 (BREAKPOINT_FROM_PC): Define.
6742 (sparc_breakpoint_from_pc): Declare.
6743 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6744 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6745 (BREAKPOINT_FROM_PC): Define.
6746 (BREAKPOINT): Delete macro.
6747 * target.h: Update comment.
6748 * s390-tdep.c (s390_gdbarch_init): Update comments.
6749 * remote.c: Update comments.
6750 * remote-mips.c: Update comments.
6751 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6752 * mem-break.c: Update comment.
6753 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6754 (ia64_memory_insert_breakpoint): Update.
6755 * config/sparc/tm-sparc.h: Update comment.
6756 * config/pa/tm-hppa64.h: Update comment.
6757 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6758 (rs6000_breakpoint_from_pc): Update.
6759 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6760 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6761 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6762 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6763 (mips_breakpoint_from_pc): Update.
6764 (mips_dump_tdep): Update.
6766 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6767 * minsyms.c (lookup_minimal_symbol): Inline
6768 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6770 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6771 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6772 * p-lang.c (pascal_printstr): Ditto.
6773 * objc-lang.c (objc_printstr): Ditto.
6774 * m2-lang.c (m2_printstr): Ditto.
6775 * jv-valprint.c (java_print_value_fields): Ditto.
6776 * f-lang.c (f_printstr): Ditto.
6777 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6778 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6779 for repeat_count_threshold.
6780 * Makefile.in (cp-valprint.o): Update dependencies.
6782 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6784 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6785 (examine_prologue): Support looking through leaf functions, knowing
6786 they start with mov r2,r12. Support skipping over indirect stores
6787 of the input registers. Upon hitting a non-nop branch instruction
6788 or predicated instruction, bail out by setting lim_pc to the current
6789 pc value in the loop. At the end, if the lim_pc value is still
6790 beyond our calculated value and we have trust_limit set,
6791 use the lim_pc value.
6793 2003-05-15 Andrew Cagney <cagney@redhat.com>
6795 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6796 generic_find_dummy_frame.
6797 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6798 (deprecated_generic_find_dummy_frame): Update.
6799 (deprecated_read_register_dummy): Update.
6800 * frame.c (deprecated_generic_get_saved_register): Update.
6802 2003-05-15 Theodore A. Roth <troth@openavr.org>
6804 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6805 (avr_gdbarch_init): Set breakpoint_from_pc method.
6807 2003-05-15 Andrew Cagney <cagney@redhat.com>
6809 * regcache.c (build_regcache): Set deprecated_register_valid
6811 (deprecated_grub_regcache_for_register_valid): Delete function.
6812 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6815 2003-05-15 David Carlton <carlton@bactrian.org>
6817 Committed by Elena Zannoni <ezannoni@redhat.com>
6818 * symtab.c (lookup_symbol_aux): Delete calls to
6819 lookup_symbol_aux_minsyms.
6820 (lookup_symbol_aux_minsyms): Comment out function and
6821 prototype. Delete lookup by mangled name.
6823 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6825 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6826 correctly indicate an empty stack and ``stack_allocated'' to the
6827 indicate the number of elements initially allocated.
6828 (dwarf_expr_grow_stack): Simplify method for computing new
6829 stack size. Don't loop infinitely if ``stack_len'' is zero.
6830 (execute_stack_op): Move ``ctx->in_reg'' initialization
6831 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6832 be used in conjuction with DW_OP_piece. Revise error message
6835 2003-05-14 Theodore A. Roth <troth@openavr.org>
6837 * MAINTAINERS: Update my email address.
6838 * avr-tdep.c: Ditto.
6840 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6842 * symtab.h (enum domain_enum): Rename from namespace_enum.
6843 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6844 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6845 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6846 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6847 TYPES_NAMESPACE, METHODS_NAMESPACE.
6848 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6849 (struct symbol, struct partial_symbol): Rename field
6850 'namespace_enum namespace' to 'domain_enum domain'.
6851 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6852 Delete old define kludge for namespace.
6854 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6855 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6856 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6857 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6858 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6859 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6860 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6861 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6862 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6863 occurrences of the above.
6865 2003-05-14 Ian Lance Taylor <ian@airs.com>
6867 * Makefile.in (install-only): Use $(SHELL) when running
6870 2003-05-13 Ian Lance Taylor <ian@airs.com>
6872 * MAINTAINERS (write after approval): Add myself.
6874 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6875 second and third arguments.
6876 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6877 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6879 2003-05-13 Andrew Cagney <cagney@redhat.com>
6881 * defs.h (store_address): Delete declaration.
6882 findvar.c (store_address): Delete function.
6883 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6884 store_unsigned_integer.
6885 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6886 * v850-tdep.c (v850_push_arguments): Ditto.
6887 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6888 * sh-tdep.c (sh64_get_saved_register): Ditto.
6889 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6890 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6891 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6892 (mips_get_saved_register): Ditto.
6893 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6894 (find_func_descr, ia64_push_arguments): Ditto.
6895 * i386-tdep.c (i386_push_arguments): Ditto.
6896 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6897 * frv-tdep.c (frv_push_arguments): Ditto.
6898 * frame.c (legacy_saved_regs_prev_register): Ditto.
6899 (deprecated_generic_get_saved_register): Ditto.
6900 * findvar.c (unsigned_address_to_pointer): Ditto.
6901 * dwarf2read.c (dwarf2_const_value): Ditto.
6902 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6903 * alpha-tdep.c (alpha_push_arguments): Ditto.
6905 2003-05-12 J. Brobecker <brobecker@gnat.com>
6907 * NEWS: Mention that the hppa-hpux port has been partially
6908 multiarched (32bit ABIT only, so far).
6910 2003-05-11 Andrew Cagney <cagney@redhat.com>
6912 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6913 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6914 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6915 sim/testsuite/sim/arm/misaligned2.ms, and
6916 sim/testsuite/sim/arm/misaligned3.ms.
6917 * disasm.h (struct ui_file): Add opaque struct declaration.
6918 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6919 * frame.h (struct ui_file): Ditto.
6921 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6923 * value.h: Pretty print.
6925 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6927 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6929 2003-05-08 Andrew Cagney <cagney@redhat.com>
6931 * regcache.h (max_register_size): Delete declaration.
6932 * regcache.c (max_register_size): Delete function.
6933 (struct regcache_descr): Delete field "max_register_size".
6934 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6935 registers fit in MAX_REGISTER_SIZE.
6936 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6937 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6938 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6939 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6940 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6941 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6942 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6943 * dve3900-rom.c, hppa-tdep.c: Ditto.
6945 2003-05-08 David Carlton <carlton@math.stanford.edu>
6947 * valops.c (push_word): Fix typo.
6949 2003-05-08 Andrew Cagney <cagney@redhat.com>
6951 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6952 * gdbarch.h: Re-generate.
6953 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6954 (legacy_max_register_raw_size): Delete declaration.
6955 * regcache.c (legacy_max_register_raw_size): Delete function.
6956 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6957 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6958 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6959 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6960 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6961 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6962 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6963 * findvar.c, dwarf2cfi.c: Ditto.
6965 2003-05-08 Andrew Cagney <cagney@redhat.com>
6967 * mips-tdep.c (read_signed_register): New function, moved to here
6969 (read_signed_register_pid): Ditto.
6970 * regcache.c (read_signed_register_pid): Delete function, moved to
6972 (read_signed_register): Ditto.
6973 * regcache.h (read_signed_register): Delete declaration.
6974 (read_signed_register_pid): Delete declaration.
6976 2003-05-08 Andrew Cagney <cagney@redhat.com>
6978 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6979 * gdbarch.h: Re-generate.
6980 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6981 (legacy_max_register_virtual_size): Delete declaration.
6982 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6983 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6984 * tracepoint.c (memrange_sortmerge): Ditto.
6985 * sparc-tdep.c (sparc_print_registers): Ditto.
6986 * regcache.c (legacy_max_register_virtual_size): Delete function.
6988 2002-05-08 J. Brobecker <brobecker@gnat.com>
6990 * fork-child.c (escape_bang_in_quoted_argument): New function.
6991 (fork_inferior): Escape '!' characters in quoted arguments
6994 2003-05-08 J. Brobecker <brobecker@gnat.com>
6996 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6997 the language of the CU is not currently supported by GDB.
6999 2003-05-08 J. Brobecker <brobecker@gnat.com>
7001 * defs.h (language): Add language_minimal enum value.
7002 * c-lang.c (minimal_language_defn): New language definition.
7003 (_initialize_c_language): Add the new minimal language to the list
7004 of languages known to GDB.
7006 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7008 * frame.c (get_frame_type): Don't attempt to lazily initialize
7009 frame's unwinder for legacy frames.
7011 2003-05-07 Andrew Cagney <cagney@redhat.com>
7013 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7014 and "regcache" parameters.
7015 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7017 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7019 * dwarf2read.c (dwarf_decode_lines): Only use output of
7020 check_cu_functions() when calling record_line(). Do not update
7021 the current address.
7023 2003-05-07 Andrew Cagney <cagney@redhat.com>
7025 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7028 2003-05-07 Jim Blandy <jimb@redhat.com>
7030 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7031 'maint info symtabs' and 'maint info psymtabs'.
7032 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7033 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7034 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7035 Declarations updated.
7036 * maint.c (maintenance_list_command): Delete.
7037 (_initialize_maint_cmds): Update calls to add_cmd.
7038 * gdbcmd.h (maintenancelistlist): Delete declaration.
7039 * cli/cli-cmds.c (maintenancelistlist): Delete.
7040 (init_cmd_lists): Don't initialize it.
7041 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7043 2003-05-07 Andrew Cagney <cagney@redhat.com>
7045 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7047 (d10v_print_registers_info): Update.
7048 (d10v_dmap_register, d10v_imap_register): Delete functions.
7049 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7050 and "imap_register".
7051 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7052 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7053 * arch-utils.c (generic_remote_translate_xfer_address): Add
7054 "regcache" and "gdbarch" parameters.
7055 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7056 parameter. Change class to multi-arch.
7057 * gdbarch.h, gdbarch.c: Re-generate.
7058 * remote.c (remote_xfer_memory): Use
7059 gdbarch_remote_translate_xfer_address.
7061 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7063 * infrun.c (prev_pc): Move declaration ahead of proceed().
7064 (proceed): Refresh prev_pc value before resuming.
7065 (stop_stepping): Remove code to refresh prev_pc.
7067 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7069 * nto-tdep.c: Removed stray comment.
7071 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7073 * i386-nto-tdep.c: Fix old K&R function definitions.
7074 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7075 Also change add_show_from_set() call to add_setshow_cmd().
7076 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7078 2003-05-05 Andrew Cagney <cagney@redhat.com>
7080 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7081 (fprint_dummy_frames): New function.
7082 (maintenance_print_dummy_frames): New function.
7083 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7084 * frame.c (fprint_frame_id): Make global.
7085 * frame.h (fprint_frame_id): Declare.
7086 * Makefile.in (dummy-frame.o): Update dependencies.
7088 2003-05-05 Andrew Cagney <cagney@redhat.com>
7090 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7091 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7092 SIZEOF_CALL_DUMMY_WORDS.
7093 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7094 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7095 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7096 CALL_DUMMY_BREAKPOINT_OFFSET.
7097 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7098 CALL_DUMMY_START_OFFSET.
7099 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7100 * gdbarch.h, gdbarch.c: Re-generate.
7101 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7102 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7103 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7104 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7105 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7106 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7107 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7108 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7109 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7110 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7111 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7112 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7113 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7114 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7115 * config/sparc/tm-sparc.h: Update.
7117 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7119 * configure.tgt: Add i[3456]86-*-nto*.
7120 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7121 * nto-tdep.c: New file. Neutrino target support routines.
7122 * nto-tdep.h: New file. Neutrino target header.
7123 * config/tm-qnxnto.h: New file.
7124 * config/i386/i386nto.mt: New file.
7125 * config/i386/tm-i386nto.h: New file.
7127 2003-05-04 Andrew Cagney <cagney@redhat.com>
7129 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7130 (load_infrun_state): Ditto.
7131 (struct thread_info): Drop "prev_func_name" field.
7132 * thread.c (load_infrun_state): Update.
7133 (save_infrun_state): Update.
7134 * infrun.c (prev_func_name): Delete variable.
7135 (init_wait_for_inferior): Do not clear prev_func_name.
7136 (stop_stepping, keep_going, context_switch): Do not swap
7138 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7139 instead of PC_IN_SIGTRAMP.
7141 2003-05-04 Andrew Cagney <cagney@redhat.com>
7143 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7144 REGISTER_BYTE with register_offset_hack.
7145 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7146 that REGISTER_BYTE is consistent with the regcache.
7147 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7148 * gdbarch.h, gdbarch.c: Regenerate.
7150 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7152 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7153 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7155 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7157 2003-05-03 J. Brobecker <brobecker@gnat.com>
7159 From Thierry Schneider <tpschneider1@yahoo.com>
7160 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7161 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7162 (mi-cmd-symbol.o): Add rule.
7164 2003-05-03 Andrew Cagney <cagney@redhat.com>
7166 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7167 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7168 * gdbarch.h, gdbarch.c: Re-generate.
7169 * d10v-tdep.c (d10v_push_dummy_code): New function.
7170 (d10v_gdbarch_init): Set push_dummy_code.
7171 * infcall.c (legacy_push_dummy_code): New function.
7172 (generic_push_dummy_code): New function.
7173 (push_dummy_code): New function.
7174 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7175 instead of dummy_addr, to push_dummy_call. Move call to
7176 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7178 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7180 2003-05-03 Andrew Cagney <cagney@redhat.com>
7182 * disasm.h (print_insn): Declare.
7183 * disasm.c (init_gdb_disassemble_info): New function.
7184 (gdb_disassembly): Call init_gdb_disassemble_info.
7185 (gdb_print_insn): New function.
7186 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7187 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7188 * mcore-tdep.c: Include "disasm.h"
7189 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7190 * d10v-tdep.c: Include "disasm.h".
7191 (display_trace): Call gdb_print_insn, instead of print_insn.
7192 (print_insn): Delete function.
7193 * printcmd.c: Include "disasm.h".
7194 (print_insn): Delete function.
7195 (print_formatted): Call gdb_print_insn, instead of print_insn.
7196 * Makefile.in (printcmd.o): Update dependencies.
7197 (mcore-tdep.o, d10v-tdep.o): Ditto.
7199 2003-05-02 Andrew Cagney <cagney@redhat.com>
7201 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7202 PC_REGNUM, re-indent.
7203 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7204 PC_REGNUM isn't set.
7206 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7207 * gdbarch.h, gdbarch.c: Re-generate.
7208 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7209 register_virtual_size, pc_regnum, or register_bytes.
7210 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7211 (d10v_register_type): Use D10V_PC_REGNUM.
7212 (d10v_print_registers_info, d10v_read_pc): Ditto.
7213 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7214 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7216 2003-05-02 David Carlton <carlton@bactrian.org>
7218 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7219 the name with mstrsave.
7221 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7223 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7224 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7225 (host_charset_name, target_charset_name): New vars for use by
7227 (host_charset_enum, target_charset_enum): New enums for set/show
7229 (set_charset_sfunc, set_host_charset_sfunc,
7230 set_target_charset_sfunc): New functions.
7231 (set_host_charset, set_target_charset): Make static.
7232 (list_charsets, set_host_charset_command,
7233 set_target_charset_command): Delete functions.
7234 (show_charset_command): Rewrite as....
7235 (show_charset): Hook this up with the set/show command mechanism.
7236 (_initialize_charset): Change names of charsets to match the
7237 set/show enums. Use host_charset_name and target_charset_name.
7238 Use set/show mechanism for charset, host-charset, target-charset
7239 commands. Do not make 'show host-charset' and 'show
7240 target-charset' be aliases of 'show charset'.
7242 * charset.h (set_host_charset, set_target_charset): Don't export,
7243 they are not used outside the file.
7245 2003-05-01 Andrew Cagney <cagney@redhat.com>
7247 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7248 (gdb_disassembly): Make "di" non static, always initialize and
7249 cleanup. Always use dis_asm_read_memory.
7250 (gdb_dis_asm_read_memory): Delete function.
7252 2003-05-01 Andrew Cagney <cagney@redhat.com>
7254 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7255 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7257 2003-04-30 Andrew Cagney <cagney@redhat.com>
7259 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7260 "tm_print_insn_info".
7261 (TARGET_PRINT_INSN_INFO): Delete macro.
7262 (dis_asm_read_memory): Delete function declaration.
7263 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7264 (tm_print_insn_info): Delete variable definition.
7265 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7266 * gdbarch.h, gdbarch.c: Re-generate.
7267 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7268 "deprecated_tm_print_insn_info".
7269 * mcore-tdep.c (mcore_dump_insn): Ditto.
7270 * mips-tdep.c (mips_gdbarch_init): Ditto.
7271 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7272 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7273 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7274 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7275 instead of TARGET_PRINT_INSN_INFO, add comment.
7276 * s390-tdep.c (s390_get_frame_info): Instead of
7277 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7278 (s390_check_function_end, s390_is_sigreturn): Ditto.
7279 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7280 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7281 * disasm.c: Include "gdbcore.h".
7282 (_initialize_disasm): New function, initialize
7283 "deprecated_tm_print_insn_info".
7284 (deprecated_tm_print_insn_info): New variable.
7285 (dis_asm_read_memory): Moved from "corefile.c", made static.
7286 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7287 * Makefile.in (disasm.o): Update dependencies.
7289 2003-04-30 Andrew Cagney <cagney@redhat.com>
7291 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7293 2003-04-29 Adam Fedor <fedor@gnu.org>
7295 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7296 * infcall.c (find_function_addr): Make non-static.
7297 * infcall.h (find_function_addr): Declare.
7298 * Makefile.in (eval.o): Update dependencies.
7300 2003-04-28 Adam Fedor <fedor@gnu.org>
7302 * symtab.c (symbol_find_demangled_name): Check for and demangle
7304 (symbol_init_demangled_name): Init for language_objc as well.
7306 2003-04-28 Andrew Cagney <cagney@redhat.com>
7308 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7309 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7310 * gdbarch.h, gdbarch.c: Re-generate.
7311 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7312 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7313 * inferior.h (deprecated_read_fp): Rename read_fp.
7314 (generic_target_read_fp): Delete declaration.
7315 * regcache.c (generic_target_read_fp): Delete function.
7316 (deprecated_read_fp): Replace read_fp, use
7317 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7318 * d10v-tdep.c (d10v_read_fp): Delete function.
7319 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7321 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7322 deprecated_target_read_fp to generic_target_read_fp.
7323 * sh-tdep.c (sh_gdbarch_init): Ditto.
7324 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7325 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7326 * frv-tdep.c (frv_gdbarch_init): Ditto.
7328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7329 deprecated_fp_regnum.
7330 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7331 * vax-tdep.c (vax_gdbarch_init): Ditto.
7332 * v850-tdep.c (v850_gdbarch_init): Ditto.
7333 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7334 * sh-tdep.c (sh_gdbarch_init): Ditto.
7335 * s390-tdep.c (s390_gdbarch_init): Ditto.
7336 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7337 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7338 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7339 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7341 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7342 * i386-tdep.c (i386_gdbarch_init): Ditto.
7343 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7344 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7345 * frv-tdep.c (frv_gdbarch_init): Ditto.
7346 * cris-tdep.c (cris_gdbarch_init): Ditto.
7347 * avr-tdep.c (avr_gdbarch_init): Ditto.
7348 * arm-tdep.c (arm_gdbarch_init): Ditto.
7349 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7351 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7352 * v850-tdep.c (v850_gdbarch_init): Ditto.
7353 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7354 * sh-tdep.c (sh_gdbarch_init): Ditto.
7355 * s390-tdep.c (s390_gdbarch_init): Ditto.
7356 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7357 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7358 * mips-tdep.c (mips_gdbarch_init): Ditto.
7359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7360 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7361 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7362 * frv-tdep.c (frv_gdbarch_init): Ditto.
7363 * avr-tdep.c (avr_gdbarch_init): Ditto.
7364 * arm-tdep.c (arm_gdbarch_init): Ditto.
7366 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7367 DEPRECATED_FP_REGNUM.
7368 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7369 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7370 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7371 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7372 (sparc32_register_virtual_type): Ditto.
7373 * sh-tdep.c (sh64_frame_chain): Ditto.
7374 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7375 (sh_nofp_frame_init_saved_regs): Ditto.
7376 (sh64_nofp_frame_init_saved_regs): Ditto.
7377 (sh_fp_frame_init_saved_regs): Ditto.
7378 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7379 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7380 * procfs.c (procfs_fetch_registers): Ditto.
7381 (procfs_store_registers): Ditto.
7382 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7383 (store_inferior_registers, fetch_core_registers): Ditto.
7384 (fetch_kcore_registers, clear_regs): Ditto.
7385 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7386 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7387 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7388 * nlm/i386.c (do_status): Ditto.
7389 * mipsv4-nat.c (supply_gregset): Ditto.
7390 * mips-tdep.c: Ditto for comments.
7391 * mips-nat.c (fetch_inferior_registers): Ditto.
7392 (store_inferior_registers, fetch_core_registers): Ditto.
7393 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7394 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7395 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7396 (i386_do_pop_frame, i386_register_type): Ditto.
7397 * hppa-tdep.c (hppa_frame_chain): Ditto.
7398 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7399 (hppa_pop_frame, hppa_read_fp): Ditto.
7400 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7401 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7402 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7403 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7404 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7405 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7406 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7407 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7408 * blockframe.c: Ditto for comments.
7409 * arch-utils.h: Ditto for comments.
7410 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7411 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7412 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7413 * alpha-tdep.h: Ditto for comments.
7414 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7415 (alpha_cannot_store_register): Ditto.
7416 (alpha_push_dummy_frame): Ditto.
7417 * alpha-nat.c (supply_gregset): Ditto.
7419 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7420 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7421 * config/sparc/tm-sparc.h: Update comment.
7423 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7424 deprecated_read_fp instead of TARGET_READ_FP.
7425 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7426 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7427 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7428 deprecated_read_fp instead of read_fp.
7429 * s390-tdep.c (s390_push_arguments): Ditto.
7430 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7431 * frame.h: Ditto in comments.
7432 * frame.c (legacy_get_prev_frame): Ditto.
7433 * dummy-frame.c (dummy_frame_this_id): Ditto.
7434 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7436 2003-04-28 Andrew Cagney <cagney@redhat.com>
7438 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7439 * gdbarch.h, gdbarch.c: Re-generate.
7440 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7441 * vax-tdep.c (_initialize_vax_tdep): Update.
7442 * v850-tdep.c (_initialize_v850_tdep): Update.
7443 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7444 * s390-tdep.c (_initialize_s390_tdep): Update.
7445 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7446 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7447 * mips-tdep.c (_initialize_mips_tdep): Update.
7448 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7449 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7450 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7451 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7452 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7453 * frv-tdep.c (_initialize_frv_tdep): Update.
7454 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7455 (_initialize_cris_tdep): Update.
7456 * arch-utils.c (legacy_print_insn): Update.
7457 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7459 2003-04-26 Adam Fedor <fedor@gnu.org>
7461 * linespec.c (decode_objc): New function to decode ObjC calls
7462 (decode_line_1): Check for ObjC calls (using decode_objc)
7463 * Makefile (linespec.o): Update dependencies.
7465 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7467 * breakpoint.h (struct breakpoint_ops): New.
7468 (struct breakpoint): Add ops member.
7470 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7471 (mention): Use new breakpoint ops member.
7472 (set_raw_breakpoint): Initialize ops field to NULL.
7473 (print_exception_catchpoint, print_one_exception_catchpoint)
7474 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7475 (gnu_v3_exception_catchpoint_ops): New.
7476 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7478 2003-04-25 Adam Fedor <fedor@gnu.org>
7480 * Makefile.in (COMMON_OBS): Add objc-lang.o
7482 2003-04-25 Andrew Cagney <cagney@redhat.com>
7484 * d10v-tdep.c (print_insn): Delete function.
7485 (display_trace): Use TARGET_PRINT_INSN.
7486 (_initialize_d10v_tdep): Do not set tm_print_insn.
7487 (d10v_gdbarch_init): Set print_insn.
7489 2003-04-25 Andrew Cagney <cagney@redhat.com>
7491 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7492 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7493 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7494 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7495 (nr_dmap_regs, a0_regnum): ... new functions.
7496 (d10v_print_registers_info): Use a0_regnum, use register_size.
7497 (d10v_register_byte): Delete function.
7498 (d10v_register_raw_size): Delete function.
7499 (d10v_register_type): Use a0_regnum.
7500 (d10v_print_registers_info): Use a0_regnum.
7501 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7502 (d10v_gdbarch_init): Do not set register_byte or
7503 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7504 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7506 (trace_command): Use XCALLOC.
7507 (print_insn): Delete reference to tm_print_insn.
7508 (saved_regs_unwinder): Use store_unsigned_integer instead of
7510 * frame.h (FRAME_OBSTACK_CALLOC): Define
7512 2003-04-25 David Carlton <carlton@bactrian.org>
7514 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7516 2003-04-24 Adam Fedor <fedor@gnu.org>
7518 * objc-lang.c: Include "valprint.h"
7519 * Makefile.in (objc-lang.o): Update dependencies.
7521 2003-04-24 Adam Fedor <fedor@gnu.org>
7523 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7524 architecture dependant compilation and mark as unimplemented
7525 (until they get put in the gdbarch vector).
7527 2003-04-23 David Carlton <carlton@bactrian.org>
7529 * cp-support.c (cp_find_first_component): Accept 'operator' in
7532 2003-04-23 Andrew Cagney <cagney@redhat.com>
7534 * infcall.c (call_function_by_hand): Eliminate redundant
7535 indentation. Move "saved_async" and "old_cleanups" to where they
7538 2003-04-23 Andrew Cagney <cagney@redhat.com>
7540 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7541 and "buffer". Move the "name" code to where it is needed.
7543 2003-04-23 Andrew Cagney <cagney@redhat.com>
7545 * infcall.c (call_function_by_hand): Move variables "start_sp",
7546 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7547 code to ON_STACK switch branch.
7549 2003-04-23 Andrew Cagney <cagney@redhat.com>
7551 * infcall.c (call_function_by_hand): Make declaration of "i",
7552 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7555 2003-04-23 Andrew Cagney <cagney@redhat.com>
7557 * infcall.c (call_function_by_hand): Delete variable
7558 "n_method_args". Localize "param_type"'s declaration to the loop
7559 that it is used. Reinstate code assigning to said variable -
7560 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7561 Rationalize code using "param_type".
7563 2003-04-22 Andrew Cagney <cagney@redhat.com>
7565 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7566 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7567 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7568 to DEPRECATED_PUSH_RETURN_ADDRESS.
7570 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7572 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7573 on the DWARF2 register number prior to fetching a register.
7575 2003-04-22 J. Brobecker <brobecker@gnat.com>
7577 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7578 Update all the tests using SOFT_FLOAT considering the fact that
7579 this macro was always set to 0.
7580 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7581 considering the fact that this macro was always set to 0.
7582 * hppa-tdep.h (hppa_store_return_value): Likewise.
7583 (hppa_extract_return_value): Likewise.
7585 2003-04-22 J. Brobecker <brobecker@gnat.com>
7587 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7588 the hppa-pro target only.
7590 2003-04-21 J. Brobecker <brobecker@gnat.com>
7592 Ongoing multi-arch conversion effort for HP/UX:
7593 * config/pa/tm-hppa.h: Move all macro that are no longer
7594 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7595 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7597 2003-04-21 J. Brobecker <brobecker@gnat.com>
7599 * config/pa/tm-hppa.h: Obsolete a section that was only used
7602 2003-04-21 J. Brobecker <brobecker@gnat.com>
7604 Ongoing multi-arch conversion for HP/UX.
7605 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7606 if already defined (allows hppa64 to stay non-multiarched for now).
7607 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7609 2003-04-21 Andrew Cagney <cagney@redhat.com>
7611 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7613 2003-04-21 Andrew Cagney <cagney@redhat.com>
7615 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7616 "i386_num_mmx_regs".
7618 2003-04-21 Andrew Cagney <cagney@redhat.com>
7620 * infcall.c: New file.
7621 * infcall.h: New file.
7622 * valarith.c: Include "infcall.h".
7623 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7624 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7625 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7626 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7627 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7628 (SFILES): Add "infcall.c"
7629 (COMMON_OBS): Add "infcall.o".
7630 (infcall.o): Specify dependencies.
7631 * value.h (call_function_by_hand): Delete declaration.
7632 * inferior.h (run_stack_dummy): Delete declaration.
7633 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7634 (run_stack_dummy): Move to "infcall.c", merged into
7635 call_function_by_hand.
7636 * valops.c (call_function_by_hand): Moved to "infcall.c".
7637 (find_function_addr, value_arg_coerce): Ditto.
7638 (unwindonsignal_p, coerce_float_to_double): Ditto.
7639 (_initialize_valops): Move "set/show coerce-float-to-double", and
7640 "set/show unwindonsignal" commands to "infcall.c".
7641 * v850-tdep.c, target.h: Update comments.
7642 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7643 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7644 (sh64_init_extra_frame_info): Update comments.
7645 * mn10300-tdep.c: Update comments.
7646 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7647 * config/sparc/tm-sparc.h: Update comments.
7648 * breakpoint.h: Update comments.
7649 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7650 * arm-tdep.c: Update comment.
7652 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7654 * i386-tdep.c (i386_num_register_names): New variable.
7655 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7656 (MM0_REGNUM): Remove redundant parentheses in define.
7657 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7658 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7659 i386_mxcsr_regnum_p): Remove redundant parentheses.
7660 (i386_register_name): Use i386_num_register_names.
7662 * i386-tdep.c (i386_extract_return_value,
7663 i386_store_return_value): Correct check for availability of
7664 floating-point registers.
7666 * i386-tdep.c (i386_frame_num_args): Remove function.
7667 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7669 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7670 mmx_regnum_to_fp_regnum. Adjust all callers.
7672 * i386-tdep.c (i386_get_longjmp_target): Use
7673 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7674 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7677 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7679 * core-regset.c: Update comments to reflect reality. Re-order
7681 (fetch_core_registers): Use switch instead of if. Remove
7682 redundant prototype.
7684 2003-04-18 Jim Blandy <jimb@redhat.com>
7686 * s390-tdep.c (s390_frame_align): New function.
7687 (s390_gdbarch_init): Register it with the gdbarch object.
7689 2003-04-17 Richard Henderson <rth@redhat.com>
7691 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7693 2003-04-17 Michael Snyder <msnyder@redhat.com>
7694 Karen Bennet <bennet@redhat.com>
7696 Committed by Elena Zannoni <ezannoni@redhat.com>
7697 * gdb_gcore.sh: New script to create a core dump of a process.
7699 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7701 * values.c (value_being_returned): Don't fetch the return
7702 value if the return type is void.
7704 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7706 * thread-db.c: Reindented.
7708 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7710 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7711 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7738 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7740 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7741 the size of ``long double'' to 16, instead of 8.
7743 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7745 * i386-linux-nat.c: Add some whitespace to make things more
7747 (fetch_register, store_register, fetch_inferior_registers,
7748 store_inferior_registers): Get rid of assignment in if-statement.
7749 (store_register): Fix typo in error message.
7751 2003-04-16 Andrew Cagney <cagney@redhat.com>
7753 * utils.c (xmmalloc): Always allocate something, matches
7754 libiberty/xmalloc's semantics.
7755 (xmrealloc, xmcalloc): Ditto.
7757 2003-04-16 Andrew Cagney <cagney@redhat.com>
7759 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7761 (get_frame_type): Initialize unwind and type when needed.
7762 (get_frame_id, frame_register_unwind): Ditto.
7764 2003-04-16 Andrew Cagney <cagney@redhat.com>
7766 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7768 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7769 * sparcl-stub.c: Obsolete file.
7770 * config/sparc/tm-sparclet.h: Obsolete file.
7771 * sparclet-stub.c: Obsolete file.
7772 * sparclet-rom.c: Obsolete file.
7773 * sparcl-tdep.c: Obsolete file.
7774 * config/sparc/tm-sparclite.h: Obsolete file.
7775 * config/sparc/sparclite.mt: Obsolete file.
7776 * config/sparc/sparclet.mt: Obsolete file.
7777 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7778 sparc86x-*-* obsolete.
7780 2003-04-15 David Carlton <carlton@math.stanford.edu>
7782 * Makefile.in (SFILES): Add cp-namespace.c.
7783 (COMMON_OBS): Add cp-namespace.o.
7784 (block.o): Depend on gdb_obstack_h and cp_support_h.
7785 (buildsym.o): Depend on cp_support_h.
7786 (cp-namespace.o): New.
7787 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7788 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7789 (dwarf2read.o): Depend on cp_support_h.
7790 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7791 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7792 processing_current_namespace.
7793 (read_namespace): Update processing_current_namespace; check for
7794 anonymous namespaces.
7795 (dwarf2_name): New function.
7796 (dwarf2_extension): Ditto.
7797 * cp-support.h: Update copyright, contributors.
7798 Add inclusion guards.
7799 Add opaque declaration for structs obstack, block, symbol.
7800 (struct using_direct): New struct.
7801 Add declarations for cp_find_first_component,
7802 cp_entire_prefix_len, processing_has_namespace_info,
7803 processing_current_namespace, cp_is_anonymous,
7804 cp_add_using_directive, cp_initialize_namespace,
7805 cp_finalize_namespace, cp_set_block_scope,
7806 cp_scan_for_anonymous_namespaces.
7807 * cp-namespace.c: New file.
7808 * cp-support.c: Update copyright.
7809 Include ctype.h, gdb_assert.h, gdbcmd.h.
7810 New variable maint_cplus_cmd_list.
7811 (cp_find_first_component): New function.
7812 (cp_entire_prefix_len, maint_cplus_command)
7813 (first_component_command, _initialize_cp_support): Ditto.
7814 * buildsym.c: Include cp-support.h.
7815 New variable using_list.
7816 (add_symbol_to_list): Check for anonymous namespaces.
7817 (finish_block): Set block's scope.
7818 (start_symtab): Initialize C++ namespace support.
7819 (end_symtab): Finalize C++ namespace support.
7820 * block.h: Add opaque declarations for structs
7821 block_namespace_info, using_direct, and obstack.
7822 Add declarations for block_set_scope and block_set_using.
7823 (struct block): Add 'language_specific' member.
7824 (BLOCK_NAMESPACE): New macro.
7825 * block.c: Include gdb_obstack.h and cp-support.h.
7826 (struct block_namespace_info): New struct.
7827 (block_set_scope): New function.
7828 (block_set_using, block_initialize_namespace): Ditto.
7830 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7832 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7833 (locate_base): Return early if there aren't any link map offsets.
7834 (svr4_solib_create_inferior_hook): Warn if shared library support
7837 2003-04-14 David Carlton <carlton@math.stanford.edu>
7839 * symtab.c (symbol_set_names): Add prefix when storing Java names
7840 in hash table. Fix for PR java/1039.
7842 2003-04-14 David Carlton <carlton@math.stanford.edu>
7844 * symtab.c (symbol_set_names): Rename 'name' arg to
7845 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7846 * symtab.h: Change 'name' argument in declaration of
7847 symbol_set_names to 'linkage_name'.
7848 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7850 2003-04-14 Andrew Cagney <cagney@redhat.com>
7852 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7853 return the fully sign-extended register value.
7854 (get_frame_pointer): Ditto.
7855 (mips_pop_frame): Initialize "proc_desc" after checking for a
7858 2003-04-14 Andrew Cagney <cagney@redhat.com>
7860 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7861 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7862 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7863 (mips_push_register): Delete function.
7864 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7867 2003-04-14 Jim Blandy <jimb@redhat.com>
7869 * symmisc.c: #include "gdb_regex.h".
7870 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7872 * maint.c (maintenance_list_command): New function.
7873 (_initialize_maint_cmds): Register the above as commands.
7874 * symtab.h (maintenance_list_symtabs,
7875 maintenance_list_psymtabs): New declarations.
7876 * cli/cli-cmds.c (maintenancelistlist): New variable.
7877 (init_cmd_lists): Initialize it.
7878 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7879 * gdbcmd.h (maintenancelistlist): New declaration.
7880 * Makefile.in (symmisc.o): Update dependencies.
7882 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7884 * s390-nat.c: Include asm/types.h for addr_t.
7886 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7888 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7889 actually incoming type.
7891 2003-04-13 Andrew Cagney <cagney@redhat.com>
7893 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7894 get_next_frame and get_frame_saved_regs.
7896 2003-04-13 Andrew Cagney <cagney@redhat.com>
7898 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7899 of gdbarch_num_regs.
7901 2003-04-13 Andrew Cagney <cagney@redhat.com>
7903 * frame.h: Mention what replaced what in "struct frame_info".
7904 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7905 deprecated_update_frame_base_hack and
7906 deprecated_update_frame_pc_hack.
7907 * hppa-tdep.c: Ditto.
7909 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7911 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7912 to read_reg and update its comment. Remove regnum member.
7913 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7914 Don't call read_reg when setting in_reg. Call read_reg to get
7915 the frame base if it's in a register. Return the register number
7916 on the stack instead of in the context. Remove extra arguments
7918 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7919 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7920 the register number on the expression stack.
7921 (needs_frame_read_reg): Remove extra arguments.
7923 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7925 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7927 (execute_stack_op): All callers updated.
7928 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7929 * dwarf2loc.c (find_location_expression): New function.
7930 (dwarf_expr_frame_base): Call it.
7931 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7932 (dwarf2_tracepoint_var_ref): New function, broken out from
7933 locexpr_tracepoint_var_ref.
7934 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7936 (loclist_read_variable, loclist_read_needs_frame): New functions.
7937 (loclist_describe_location, loclist_tracepoint_var_ref): New
7939 (dwarf2_loclist_funcs): New struct location_funcs.
7940 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7941 (struct dwarf2_locexpr_baton): Add comments.
7942 (dwarf2_loclist_funcs): New extern.
7943 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7944 base_address and base_known.
7945 (dwarf_loc_buffer): New variable.
7946 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7947 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7948 (dwarf2_has_info): Initialize dwarf_loc_offset.
7949 (dwarf2_build_psymtabs): Read in .debug_loc.
7950 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7952 (psymtab_to_symtab_1): Likewise. Move base address calculation
7954 (dwarf2_get_pc_bounds): ... here. Use the base address from
7956 (dwarf2_symbol_mark_computed): Handle location lists.
7958 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7960 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7961 if the linkage name demangled successfully.
7963 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7965 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7966 disassmbly_flavour): Removed.
7968 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7970 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7972 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7974 2003-04-12 Andrew Cagney <cagney@redhat.com>
7976 * frame.h (struct frame_info): Move definition from here ...
7977 * frame.c (struct frame_info): ... to here.
7979 2003-04-12 Andrew Cagney <cagney@redhat.com>
7981 * gdbthread.h (save_infrun_state): Delete parameter
7983 (struct thread_info): Delete field "prev_func_start".
7984 (load_infrun_state): Ditto.
7985 * thread.c (load_infrun_state, save_infrun_state): Update.
7986 * infrun.c (prev_func_start): Delete variable.
7987 (context_switch, init_wait_for_inferior): Update.
7988 (stop_stepping, keep_going): Update.
7990 2003-04-12 Andrew Cagney <cagney@redhat.com>
7992 * gdbarch.sh: Add missing opaque declarations.
7993 * gdbarch.h: Regnerate.
7994 * symtab.h: Add missing opaque declarations.
7995 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7996 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7997 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7998 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7999 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8000 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8001 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8002 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8003 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8004 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8005 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8006 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8007 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8009 2003-04-11 Andrew Cagney <cagney@redhat.com>
8011 * frame.c (get_frame_id): Return this frame's "id".
8012 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8014 (legacy_saved_regs_this_id): Replace function body with
8016 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8017 FRAME_OBSTACK_ZALLOC.
8018 (create_new_frame): Mark the frame ID as valid.
8020 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8022 * Makefile.in (libbfd_h): Added missing setting.
8023 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8024 according to the selected ABI.
8026 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8028 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8030 2003-04-11 Andrew Cagney <cagney@redhat.com>
8032 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8033 SAVED_PC_AFTER_CALL.
8034 * gdbarch.h, gdbarch.c: Regenerate.
8035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8036 * x86-64-tdep.c (x86_64_init_abi): Update.
8037 * vax-tdep.c (vax_gdbarch_init): Update.
8038 * v850-tdep.c (v850_gdbarch_init): Update.
8039 * sparc-tdep.c (sparc_gdbarch_init): Update.
8040 * sh-tdep.c (sh_gdbarch_init): Update.
8041 * s390-tdep.c (s390_gdbarch_init): Update.
8042 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8043 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8044 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8045 * mips-tdep.c (mips_gdbarch_init): Update.
8046 * mcore-tdep.c (mcore_gdbarch_init): Update.
8047 * m68k-tdep.c (m68k_gdbarch_init): Update.
8048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8049 * ia64-tdep.c (ia64_gdbarch_init): Update.
8050 (ia64_saved_pc_after_call): Update declaration.
8051 * i386ly-tdep.c (i386lynx_init_abi): Update.
8052 * i386-tdep.c (i386_gdbarch_init): Update.
8053 * hppa-tdep.c (hppa_gdbarch_init): Update.
8054 * h8300-tdep.c (h8300_gdbarch_init): Update.
8055 * frv-tdep.c (frv_gdbarch_init): Update.
8056 * cris-tdep.c (cris_gdbarch_init): Update.
8057 * avr-tdep.c (avr_gdbarch_init): Update.
8058 * arm-tdep.c (arm_gdbarch_init): Update.
8059 * alpha-tdep.c (alpha_gdbarch_init): Update.
8060 * ns32knbsd-nat.c (frame_num_args): Update.
8061 * ns32k-tdep.c (umax_frame_num_args): Update.
8062 * mips-tdep.c (mips_init_frame_pc_first): Update.
8063 * infrun.c (step_over_function): Update.
8064 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8065 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8066 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8067 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8068 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8069 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8070 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8071 * arch-utils.c (init_frame_pc_default): Update.
8072 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8073 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8076 2003-04-11 Andrew Cagney <cagney@redhat.com>
8078 * i387-tdep.c: Update copyright.
8079 (i387_to_double): Delete function.
8080 (double_to_i387): Delete function.
8082 2003-04-10 Andrew Cagney <cagney@redhat.com>
8084 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8085 frame's function's address. Simplify.
8086 (d10v_frame_unwind_cache): Check that the frame's function is
8089 2003-04-10 Jim Blandy <jimb@redhat.com>
8091 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8092 call to set_gdbarch_deprecated_push_arguments.
8094 2003-04-10 Andrew Cagney <cagney@redhat.com>
8096 * frame.c (fprint_frame_id): New function.
8097 (fprint_frame_type, fprint_frame): New function.
8098 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8099 (create_sentinel_frame, get_frame_id): Ditto.
8100 (frame_id_p, frame_id_eq): Ditto.
8101 (frame_id_inner, create_new_frame): Ditto.
8102 (legacy_get_prev_frame, get_prev_frame): Ditto.
8103 (deprecated_update_frame_pc_hack): Ditto.
8104 (frame_register_unwind): Ditto.
8105 (deprecated_update_frame_base_hack): Ditto.
8107 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8109 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8110 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8111 frame_chain function.
8112 * Makefile.in: Add dependencies due to above change.
8114 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8116 * blockframe.c (legacy_frame_chain_valid): Move call to
8117 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8120 2003-04-09 Andrew Cagney <cagney@redhat.com>
8122 * frame.h (struct frame_id): Replace "pc" and "base" with
8123 "stack_addr" and "code_addr". Update comments.
8124 (frame_id_build): Update parameter names and comment.
8125 (struct frame_info): Replace "id_p" and "id" with "this_id".
8126 * dummy-frame.c (dummy_frame_this_id): Update.
8127 * breakpoint.c (print_one_breakpoint): Update.
8128 * frame.c (get_frame_id): Update.
8129 (get_frame_base, frame_id_build): Update.
8130 (create_sentinel_frame, legacy_get_prev_frame): Update.
8131 (deprecated_update_frame_base_hack): Update.
8132 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8133 (frame_id_inner): Ditto.
8135 2003-04-09 Andrew Cagney <cagney@redhat.com>
8137 * defs.h (gdb_print_host_address): Make "addr" parameter a
8139 * utils.c (gdb_print_host_address): Update.
8141 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8143 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8144 register number for R0 is 0.
8146 2003-04-09 J. Brobecker <brobecker@gnat.com>
8148 * frame.h (struct gdbarch): Add opaque structure definition
8149 to avoid a compilation warning on LynxOS 4.0.
8151 2003-04-09 Andrew Cagney <cagney@redhat.com>
8153 * frame.h (struct frame_info): Delete field "pc". Replace
8154 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8156 * frame.c (frame_pc_unwind): Update.
8157 (create_sentinel_frame): Do not set "pc".
8158 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8159 (get_frame_pc): Call frame_pc_unwind.
8160 (deprecated_update_frame_pc_hack): Update.
8161 (create_new_frame): Use "pc" not "->pc".
8163 2003-04-09 Andrew Cagney <cagney@redhat.com>
8165 * frame.c (get_frame_id): Eliminate code updating "frame".
8166 (legacy_get_prev_frame): Ditto.
8167 (get_frame_base): Return id.base directly.
8168 (deprecated_update_frame_base_hack): Update "id.base".
8169 * frame.h (struct frame_info): Delete field "frame".
8171 2003-04-09 Andrew Cagney <cagney@redhat.com>
8173 * NEWS: Mention that the "Sequent family" is obsolete.
8174 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8175 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8176 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8177 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8178 * config/i386/tm-ptx4.h: Obsolete file.
8179 * config/i386/tm-ptx.h: Obsolete file.
8180 * symm-tdep.c: Obsolete file.
8181 * config/i386/symmetry.mt: Obsolete file.
8182 * config/i386/tm-symmetry.h: Obsolete file.
8183 * symm-nat.c: Obsolete file.
8184 * config/i386/nm-symmetry.h: Obsolete file.
8185 * config/i386/xm-symmetry.h: Obsolete file.
8186 * config/i386/symmetry.mh: Obsolete file.
8187 * config/i386/nm-ptx4.h: Obsolete file.
8188 * config/i386/ptx4.mh: Obsolete file.
8189 * config/i386/ptx.mt: Obsolete file.
8190 * config/i386/ptx.mh: Obsolete file.
8191 * config/i386/xm-ptx4.h: Obsolete file.
8192 * config/i386/xm-ptx.h: Obsolete file.
8194 2003-04-09 Andrew Cagney <cagney@redhat.com>
8196 Obsolete mips*-*-mach3*.
8197 * NEWS: Mention that mips*-*-mach3* is obsolete.
8198 * m3-nat.c: Obsolete file.
8199 * config/nm-m3.h: Obsolete file.
8200 * config/mips/tm-mipsm3.h: Obsolete file.
8201 * config/mips/mipsm3.mt: Obsolete file.
8202 * config/mips/mipsm3.mh: Obsolete file.
8203 * config/mips/xm-mipsm3.h: Obsolete file.
8204 * mipsm3-nat.c: Obsolete file.
8205 * configure.host: Obsolete mips-dec-mach3*.
8206 * configure.tgt: Obsolete mips*-*-mach3*.
8208 2003-04-09 Andrew Cagney <cagney@redhat.com>
8210 * doublest.h: Update copyright.
8211 (deprecated_store_floating, deprecated_extract_floating): Rename
8212 store_floating and extract_floating. Update comments.
8213 * doublest.c: Update copyright.
8214 (extract_floating_by_length): Replace extract_floating.
8215 (store_floating_by_length): Replace store_floating.
8216 (deprecated_extract_floating): New function.
8217 (deprecated_store_floating): New function.
8218 (extract_typed_floating): Call extract_floating_by_length.
8219 (store_typed_floating): Call store_floating_by_length.
8220 * x86-64-tdep.c (x86_64_store_return_value): Update.
8221 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8222 (sh64_extract_return_value): Update.
8223 (sh_sh4_register_convert_to_virtual): Update.
8224 (sh_sh64_register_convert_to_virtual): Update.
8225 (sh_sh4_register_convert_to_raw): Update.
8226 (sh_sh64_register_convert_to_raw): Update.
8227 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8228 (rs6000_register_convert_to_raw): Update.
8229 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8230 (ia64_register_convert_to_raw): Update.
8231 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8232 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8233 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8234 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8235 (alpha_register_convert_to_raw): Update.
8237 2003-04-08 Andrew Cagney <cagney@redhat.com>
8239 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8240 * gdbarch.h, gdbarch.c: Re-generate.
8241 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8242 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8243 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8244 conditionally, use frame_pc_unwind as an alternative. Add
8246 * arch-utils.c (init_frame_pc_default): Only call
8247 SAVED_PC_AFTER_CALL when available.
8249 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8251 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8252 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8253 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8254 (start_remote): Ditto.
8255 (handle_inferior_event): Ditto.
8256 (save_inferior_status): Ditto.
8257 (restore_inferior_status): Ditto.
8258 * infcmd.c (attach_command): Ditto.
8259 * fork-child.c (startup_inferior): Ditto.
8260 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8261 * alpha-tdep.c (heuristic_proc_start): Ditto.
8262 * mips-tdep.c (heuristic_proc_start): Ditto.
8263 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8264 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8265 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8266 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8267 * remote-vx.c (vx_create_inferior): Ditto.
8269 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8271 * infrun.c (stop_soon_quietly): Make it an enum, to better
8272 override the default behavior of handle_inferior_event.
8273 (clear_proceed_status): Update uses of stop_soon_quietly to
8274 reflect that it is now an enum.
8275 (start_remote): Ditto.
8276 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8277 is set to handle the new GNU/Linux kernel behavior for
8278 attach/sigstop. Update uses of stop_soon_quietly.
8279 * inferior.h (enum stop_kind): New enum.
8280 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8281 Reset normal handle_inferior_event behavior, afterwards.
8282 * fork-child.c (startup_inferior): Update.
8283 * alpha-tdep.c (heuristic_proc_start): Update.
8284 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8285 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8286 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8287 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8288 * remote-vx.c (vx_create_inferior): Update.
8289 * mips-tdep.c (heuristic_proc_start): Update.
8291 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8293 * disasm.c (dump_insns): Move variables inside loop, or they will
8294 be freed more than once, causing wild memory corruptions.
8295 (gdb_disassembly): Look for the substring "-thread",
8296 instead of "-threads" in the target name, to make sure to find
8297 the 'multi-thread' target. Also, make sure we do the right thing
8298 with the "core" target.
8300 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8302 * mips-tdep.c (mips_print_fp_register): New function, created from
8303 do_fp_register_row(). Registers are now (also) printed as hex.
8304 Only one register is printed per row.
8305 (mips_print_register, do_fp_register_row): Print floating point
8306 registers with mips_print_fp_register().
8308 2003-04-06 Andrew Cagney <cagney@redhat.com>
8310 * valprint.h (inspect_it): Add extern declaration.
8311 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8312 (selectors_info, classes_info): Ditto.
8313 (find_objc_msgcall): Fix indentation.
8314 (objc_printstr): Delete extern declarations.
8316 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8318 2003-04-06 Andrew Cagney <cagney@redhat.com>
8320 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8322 * frame.c (legacy_saved_regs_this_id): Update.
8323 (legacy_get_prev_frame): Update.
8324 * xstormy16-tdep.c: Update comment.
8325 * sparc-tdep.c (sparc_frame_chain): Update comment.
8326 * blockframe.c (legacy_frame_chain_valid): Update.
8328 2003-04-06 Andrew Cagney <cagney@redhat.com>
8330 * valprint.c (val_print_type_code_int): Delete #ifdef
8331 PRINT_TYPELESS_INTEGER code.
8333 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8334 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8335 multi-arch definition.
8336 * gdbarch.h: Re-generate.
8338 2003-04-05 Andrew Cagney <cagney@redhat.com>
8340 Eliminate FRAME_FIND_SAVED_REGS.
8341 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8342 Change FSR parameter to a pointer.
8343 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8344 Assume FSR parameter is a pointer.
8345 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8347 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8348 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8349 saved_regs a pointer.
8350 (hppa_frame_saved_pc): Ditto.
8351 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8352 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8354 (restore_pc_queue): Make fsr a pointer.
8355 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8356 (hppa_frame_chain): Make saved_regs a pointer, call
8357 hppa_frame_init_saved_regs.
8358 * sparc-tdep.c: Include "gdb_assert.h".
8359 (sparc_frame_find_saved_regs): Replace internal_error with
8361 * remote-vxsparc.c (vx_read_register): Delete reference to
8362 FRAME_FIND_SAVED_REGS.
8363 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8364 * gdbarch.h: Regenerate.
8365 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8366 (deprecated_get_frame_saved_regs): Delete declaration.
8367 (struct frame_saved_regs): Delete definition.
8368 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8369 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8370 (hppa_frame_find_saved_regs): Delete declaration.
8371 (FRAME_FIND_SAVED_REGS): Delete macro.
8372 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8373 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8374 FRAME_FIND_SAVED_REGS in comment.
8376 2003-04-05 Andrew Cagney <cagney@redhat.com>
8378 * frame.c (frame_func_unwind, get_frame_func): New functions.
8379 * frame.h (get_frame_func, frame_func_unwind): Declare.
8380 (struct frame_info): Add field "prev_func" for caching the
8381 previous frame's function address.
8382 * arm-tdep.c (arm_frameless_function_invocation): Combine
8383 get_pc_function_start and get_frame_pc into get_frame_func.
8384 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8385 (sh64_nofp_frame_init_saved_regs): Ditto.
8386 * s390-tdep.c (s390_function_start): Ditto.
8387 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8388 (rs6000_frameless_function_invocation): Ditto.
8389 (rs6000_frame_saved_pc): Ditto.
8390 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8391 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8392 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8393 (i386_frame_init_saved_regs): Ditto.
8394 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8395 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8396 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8397 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8398 * blockframe.c (frameless_look_for_prologue): Ditto.
8400 2003-04-05 Andrew Cagney <cagney@redhat.com>
8402 * frame.c (legacy_get_prev_frame): Link prev to next at the
8403 function start. Update comments.
8405 2003-04-05 Andrew Cagney <cagney@redhat.com>
8407 * frame.c (get_frame_id): Update comment.
8408 (legacy_get_prev_frame): Update comment.
8409 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8410 * gdbarch.h: Regenerate.
8411 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8412 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8414 2003-04-05 Andrew Cagney <cagney@redhat.com>
8416 * stack.c (print_frame_info): Use get_frame_pc.
8418 2003-04-04 Andrew Cagney <cagney@redhat.com>
8420 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8421 the frame's type from the unwinder.
8422 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8423 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8424 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8425 (get_frame_base_address): Use get_frame_type.
8426 (get_frame_locals_address, get_frame_args_address): Ditto.
8427 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8428 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8429 (struct frame_info): Add comment explaining why the frame contains
8431 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8432 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8433 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8435 * frame-unwind.h: Include "frame.h".
8436 (struct frame_unwind): Add "type" field.
8437 * Makefile.in (frame_unwind_h): Add $(frame_h).
8439 2003-04-04 Andrew Cagney <cagney@redhat.com>
8441 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8442 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8443 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8445 (d10v_unwind_dummy_id): Use frame_id_build.
8446 * frame.c (find_frame_sal): Use get_frame_pc.
8447 (create_new_frame): Use deprecated_update_frame_pc_hack and
8448 deprecated_update_frame_base_hack.
8449 (create_sentinel_frame): Add comment about ->pc going away.
8450 (get_prev_frame): Add comment about ->pc going away.
8451 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8452 frame_id_build, deprecated_update_frame_pc_hack and
8453 deprecated_update_frame_base_hack.
8454 (select_frame): Use get_frame_pc.
8455 (legacy_saved_regs_this_id): Use frame_id_build.
8457 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8459 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8460 signed integer case.
8461 (classify_argument): Handle enumerations and references.
8463 2003-04-04 Andrew Cagney <cagney@redhat.com>
8465 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8468 2003-04-01 Adam Fedor <fedor@gnu.org>
8470 * gdb/objc-lang.c (selectors_info): Replace calls to
8471 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8472 SYMBOL_NATURAL_NAME.
8473 (classes_info, find_methods): Likewise.
8475 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8477 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8478 ``mach'' to the value determined by bfd_default_set_arch_mach().
8480 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8482 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8483 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8484 (mi-cmd-file.o): Update dependencies.
8486 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8488 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8489 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8491 2003-04-01 Adam Fedor <fedor@gnu.org>
8493 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8494 * language.h (struct language_defn): Add la_demangle.
8495 (language_demangle): Declare.
8496 * language.c (language_demangle): New function.
8497 (unk_lang_demangle): Likewise.
8498 (unknown_language_defn, auto_language_defn, local_language_defn):
8499 Add ukn_lang_demangle.
8500 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8501 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8502 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8503 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8504 * jv-lang.c (java_demangle): New function
8505 (java_language_defn): Use it for la_demangle element.
8506 * objc-lang.c (objc_demangle): Add options argument
8507 (objc_language_defn): Use objc_demangle for la_demangle element.
8508 * maint.c (maintenance_demangle): Replace switch with
8509 call to language_demangle.
8510 * utils.c (fprintf_symbol_filtered): Likewise.
8512 2003-04-01 Andrew Cagney <cagney@redhat.com>
8514 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8515 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8516 PRINT_TYPELESS_INTEGER.
8517 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8518 PUSH_RETURN_ADDRESS.
8520 2003-04-01 Andrew Cagney <cagney@redhat.com>
8522 * Makefile.in (d10v-tdep.o): Update dependencies.
8523 * d10v-tdep.c: Include "frame-base.h".
8524 (d10v_frame_unwind): Make constant.
8525 (d10v_frame_base_address): New function.
8526 (d10v_frame_base): New variable.
8527 (d10v_gdbarch_init): Set frame_base default.
8528 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8530 (d10v_frame_unwind_cache): Set and use "prev_sp".
8531 (d10v_frame_this_id): Use the previous frame's inner most stack
8532 address and this frame's func address for the frame ID. Use
8533 frame_id_build. Don't analyze beyond the current instruction.
8535 2003-04-01 Andrew Cagney <cagney@redhat.com>
8537 * frame.h (get_frame_locals_address, get_frame_args_address):
8538 Refer to the base address, instead of the address of the first
8541 2003-04-01 Andrew Cagney <cagney@redhat.com>
8543 Add frame debug info addresses:
8544 * frame-base.c: New file.
8545 * frame-base.h: New file.
8546 * frame.h (struct frame_base): Add opaque declaration.
8547 (get_frame_base): Update comment.
8548 (get_frame_base_address): Declare.
8549 (get_frame_locals_address): Declare.
8550 (get_frame_args_address): Declare.
8551 (struct frame_info): Add "base" and "base_cache". Update
8552 comments on the unwinder.
8553 * frame.c: Include "frame-base.h".
8554 (get_frame_locals_address): New function.
8555 (get_frame_base_address): New function.
8556 (get_frame_args_address): New function.
8557 * findvar.c (read_var_value): Use get_frame_locals_address and
8558 get_frame_args_address.
8559 * stack.c (frame_info): Use get_frame_locals_address and
8560 get_frame_args_address.
8561 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8562 moved to "frame-base.c".
8563 * printcmd.c (print_frame_nameless_args): Ditto.
8564 * symtab.h (address_class): Update comments.
8565 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8566 get_frame_base_address.
8567 * dwarf2expr.c (execute_stack_op): Ditto.
8568 * Makefile.in (frame_base_h): Define.
8569 (frame.o): Update dependencies.
8570 (frame-base.o): Add dependencies.
8571 (SFILES): Add frame-base.c.
8572 (COMMON_OBS): Add frame-base.o.
8574 2003-04-01 Andrew Cagney <cagney@redhat.com>
8576 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8577 CALL_DUMMY_LENGTH): Ditto.
8578 * gdbarch.c: Re-generate.
8579 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8580 (CALL_DUMMY_LENGTH): Delete macro.
8581 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8582 * arm-tdep.c (arm_gdbarch_init): Ditto.
8583 * avr-tdep.c (avr_gdbarch_init): Ditto.
8584 * cris-tdep.c (cris_gdbarch_init): Ditto.
8585 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8586 * frv-tdep.c (frv_gdbarch_init): Ditto.
8587 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8588 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8589 * i386-tdep.c (i386_gdbarch_init): Ditto.
8590 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8592 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8593 * mips-tdep.c (mips_gdbarch_init): Ditto.
8594 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8595 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8596 * s390-tdep.c (s390_gdbarch_init): Ditto.
8597 * sh-tdep.c (sh_gdbarch_init): Ditto.
8598 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8599 * v850-tdep.c (v850_gdbarch_init): Ditto.
8600 * vax-tdep.c (vax_gdbarch_init): Ditto.
8601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8603 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8605 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8607 2003-04-01 Andrew Cagney <cagney@redhat.com>
8609 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8610 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8611 * gdbarch.h, gdbarch.c: Re-generate.
8612 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8613 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8614 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8615 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8616 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8617 * infcmd.c (run_stack_dummy): Simplify assuming
8618 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8619 * infrun.c (handle_inferior_event): Ditto.
8620 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8621 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8622 * arm-tdep.c (arm_gdbarch_init): Ditto.
8623 * avr-tdep.c (avr_gdbarch_init): Ditto.
8624 * cris-tdep.c (cris_gdbarch_init): Ditto.
8625 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8626 * frv-tdep.c (frv_gdbarch_init): Ditto.
8627 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8628 * i386-tdep.c (i386_gdbarch_init): Ditto.
8629 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8631 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8632 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8633 * mips-tdep.c (mips_gdbarch_init): Ditto.
8634 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8635 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8636 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8637 * s390-tdep.c (s390_gdbarch_init): Ditto.
8638 * sh-tdep.c (sh_gdbarch_init): Ditto.
8639 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8640 * v850-tdep.c (v850_gdbarch_init): Ditto.
8641 * vax-tdep.c (vax_gdbarch_init): Ditto.
8642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8644 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8646 * symfile.c (symfile_relocate_debug_section): Update call to
8647 bfd_simple_get_relocated_section_contents.
8649 2003-03-31 Andrew Cagney <cagney@redhat.com>
8651 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8652 * gdbarch.h, gdbarch.c: Regenerate.
8653 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8654 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8656 * frame.h (generic_fix_call_dummy): Delete declaration.
8657 * dummy-frame.h: Update comment.
8658 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8659 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8661 * sh-tdep.c (sh_gdbarch_init): Ditto.
8662 * s390-tdep.c (s390_gdbarch_init): Ditto.
8663 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8664 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8665 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8666 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8667 * i386-tdep.c (i386_gdbarch_init): Ditto.
8668 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8669 * frv-tdep.c (frv_gdbarch_init): Ditto.
8670 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8671 * cris-tdep.c (cris_gdbarch_init): Ditto.
8672 * avr-tdep.c (avr_gdbarch_init): Ditto.
8673 * arm-tdep.c (arm_gdbarch_init): Ditto.
8675 2003-03-31 J. Brobecker <brobecker@gnat.com>
8677 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8678 (INIT_FRAME_AP): Likewise.
8679 (EXTRA_FRAME_INFO): Likewise.
8681 2003-03-31 Andrew Cagney <cagney@redhat.com>
8683 * gdbarch.sh: Include "symfile.h".
8684 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8685 * gdbarch.h, gdbarch.c: Re-generate.
8686 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8687 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8688 call_dummy_address, the default is at entry_point_address.
8689 * v850-tdep.c (v850_gdbarch_init): Ditto.
8690 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8691 * sh-tdep.c (sh_gdbarch_init): Ditto.
8692 * s390-tdep.c (s390_gdbarch_init): Ditto.
8693 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8694 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8695 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8696 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8697 * i386-tdep.c (i386_gdbarch_init): Ditto.
8698 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8699 * frv-tdep.c (frv_gdbarch_init): Ditto.
8700 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8701 * cris-tdep.c (cris_gdbarch_init): Ditto.
8702 * arm-tdep.c (arm_gdbarch_init): Ditto.
8704 2003-03-31 Andrew Cagney <cagney@redhat.com>
8706 * gdbarch.sh (CALL_DUMMY_P): Delete.
8707 * gdbarch.h, gdbarch.c: Re-generate.
8708 * inferior.h (CALL_DUMMY_P): Delete macro.
8709 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8710 * vax-tdep.c (vax_gdbarch_init): Update.
8711 * v850-tdep.c (v850_gdbarch_init): Update.
8712 * sparc-tdep.c (sparc_gdbarch_init): Update.
8713 * sh-tdep.c (sh_gdbarch_init): Update.
8714 * s390-tdep.c (s390_gdbarch_init): Update.
8715 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8716 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8717 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8718 * mips-tdep.c (mips_gdbarch_init): Update.
8719 * mcore-tdep.c (mcore_gdbarch_init): Update.
8720 * m68k-tdep.c (m68k_gdbarch_init): Update.
8721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8722 * ia64-tdep.c (ia64_gdbarch_init): Update.
8723 * i386-tdep.c (i386_gdbarch_init): Update.
8724 * h8300-tdep.c (h8300_gdbarch_init): Update.
8725 * frv-tdep.c (frv_gdbarch_init): Update.
8726 * d10v-tdep.c (d10v_gdbarch_init): Update.
8727 * cris-tdep.c (cris_gdbarch_init): Update.
8728 * breakpoint.c (deprecated_frame_in_dummy): Update.
8729 * avr-tdep.c (avr_gdbarch_init): Update.
8730 * alpha-tdep.c (alpha_gdbarch_init): Update.
8731 * arm-tdep.c (arm_gdbarch_init): Update.
8732 * dummy-frame.c (dummy_frame_this_id): Update comments.
8733 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8734 * frame.c (legacy_get_prev_frame): Ditto.
8735 * valops.c (call_function_by_hand): Delete function.
8736 (hand_function_call): Rename to call_function_by_hand
8738 2003-03-30 Andrew Cagney <cagney@redhat.com>
8740 2002-11-10 Klee Dienes <kdienes@apple.com>
8741 * value.h (struct value): Update comment.
8743 2003-03-30 Andrew Cagney <cagney@redhat.com>
8745 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8747 (d10v_gdbarch_init): Do not set fp_regnum.
8749 * frame.c (get_frame_base): Force ID initialization.
8750 (get_prev_frame): Move computation of the frame ID from here ...
8751 (get_frame_id): ... to here.
8752 (legacy_get_prev_frame): Mark the frame ID as valid.
8753 * frame.h (struct frame_info): Add field "id_p".
8755 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8757 * i386-tdep.c (i386_store_struct_return): Removed.
8758 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8760 2003-03-30 Andrew Cagney <cagney@redhat.com>
8762 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8763 * gdbarch.h, gdbarch.c: Regenerate.
8764 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8766 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8767 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8768 * i386-tdep.c (i386_gdbarch_init): Ditto.
8769 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8770 * cris-tdep.c (cris_gdbarch_init): Ditto.
8771 * vax-tdep.c (vax_gdbarch_init): Ditto.
8772 * s390-tdep.c (s390_gdbarch_init): Ditto.
8773 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8774 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8775 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8776 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8777 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8778 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8779 * sparc-tdep.c (sparc_gdbarch_init): Update.
8780 * sh-tdep.c (sh_gdbarch_init): Update.
8781 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8782 * mips-tdep.c (mips_gdbarch_init): Update.
8783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8784 * ia64-tdep.c (ia64_gdbarch_init): Update.
8785 * frv-tdep.c (frv_gdbarch_init): Update.
8786 * avr-tdep.c (avr_gdbarch_init): Update.
8787 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8788 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8789 instead of when push_dummy_call is not available.
8791 2003-03-30 Andrew Cagney <cagney@redhat.com>
8793 * infttrace.c: Include "gdbthread.h".
8794 (parent_attach_all): Fix function signature.
8795 (call_ptrace): Update call.
8796 * Makefile.in (infttrace.o): Update dependencies.
8798 2003-03-30 Andrew Cagney <cagney@redhat.com>
8800 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8801 PUSH_RETURN_ADDRESS.
8802 * gdbarch.h, gdbarch.c: Regenerate.
8803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8804 * x86-64-tdep.c (x86_64_init_abi): Update.
8805 * v850-tdep.c (v850_gdbarch_init): Update.
8806 * sparc-tdep.c (sparc_gdbarch_init): Update.
8807 * sh-tdep.c (sh_gdbarch_init): Update.
8808 * s390-tdep.c (s390_gdbarch_init): Update.
8809 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8810 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8811 * mips-tdep.c (mips_gdbarch_init): Update.
8812 * mcore-tdep.c (mcore_gdbarch_init): Update.
8813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8814 * ia64-tdep.c (ia64_gdbarch_init): Update.
8815 * i386-tdep.c (i386_gdbarch_init): Update.
8816 * h8300-tdep.c (h8300_gdbarch_init): Update.
8817 * frv-tdep.c (frv_gdbarch_init): Update.
8818 * cris-tdep.c (cris_gdbarch_init): Update.
8819 * avr-tdep.c (avr_gdbarch_init): Update.
8820 * arm-tdep.c (arm_gdbarch_init): Update.
8821 * valops.c (hand_function_call): Update.
8823 2003-03-29 Andrew Cagney <cagney@redhat.com>
8825 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8826 sizeof_call_dummy_words.
8827 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8829 * gdbarch.h: Regenerate.
8831 2003-03-29 Andrew Cagney <cagney@redhat.com>
8833 * infttrace.h: New file.
8834 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8835 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8836 (hpread_read_doc_function_type): Detect an initialized type1.
8837 (hpread_quick_traverse): Initialize mod_name_string.
8838 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8839 (som_solib_get_solib_by_pc): Declare.
8840 (so_lib_thread_start_addr): Declare.
8841 (no_shared_libraries): Declare.
8842 * somread.c (init_import_symbols): Make static. Add forward
8844 * config/pa/nm-hppah.h: Include "infttrace.h" for
8846 (hppa_insert_hw_watchpoint): Declare.
8847 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8848 * hppah-nat.c: Include "gdb_string.h".
8849 (parent_attach_all): Delete extern declaration, moved to
8851 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8853 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8854 * Makefile.in (infttrace_h): Define.
8855 (hpread.o): Update dependencies.
8856 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8857 * hppa-hpux-tdep.c: Include "gdb_string.h".
8858 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8859 * infrun.c (handle_inferior_event): Always initialize
8860 stepped_after_stopped_by_watchpoint. Add default and remove
8861 fallthrough in switch statement.
8862 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8864 (hppa_remove_hw_watchpoint): Ditto.
8866 2003-03-29 Andrew Cagney <cagney@redhat.com>
8868 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8871 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8873 * arm-tdep.c (arm_push_arguments): Delete.
8874 (struct stack_item): New type.
8875 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8876 (arm_store_struct_return): Delte.
8877 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8878 arm_push_arguments or arm_store_struct_return.
8880 2003-03-28 Andrew Cagney <cagney@redhat.com>
8882 * Makefile.in (d10v-tdep.o): Update dependencies.
8883 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8884 * d10v-tdep.c: Include "remote.h".
8885 (target_resume_hook): Delete extern declaration.
8886 (target_wait_loop_hook): Ditto.
8887 (tdisassemble_command): Eliminate assignment in "if" conditional.
8888 (d10v_ts2_register_sim_regno): Eliminate call to
8889 legacy_register_sim_regno.
8890 (d10v_ts3_register_sim_regno): Ditto.
8892 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8894 * thread.c: Reindented.
8896 * linux-proc.c: Ditto.
8898 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8900 * MAINTAINERS (write after approval): Add myself.
8902 2003-03-27 Theodore A. Roth <troth@openavr.org>
8904 * objc-exp.y: Add missing semi-colons.
8906 2003-03-27 Andrew Cagney <cagney@redhat.com>
8908 * regcache.c (write_sp): Delete function and references.
8909 * inferior.h (write_sp): Delete declaration.
8910 * valops.c (hand_function_call): Replace write_sp with
8912 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8913 (sparc_pop_frame): Ditto.
8915 2003-03-27 Andrew Cagney <cagney@redhat.com>
8917 * NEWS: Mention removal of support for hppa*-*-bsd* and
8918 hppa*-*-osf* natives, and hppa*-*-pro* target.
8919 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8920 * config/pa/xm-pa.h: Obsolete file.
8921 * config/pa/xm-hppab.h: Obsolete file.
8922 * config/pa/nm-hppab.h: Obsolete file.
8923 * config/pa/tm-hppab.h: Obsolete file.
8924 * config/pa/tm-hppao.h: Obsolete file.
8925 * config/pa/nm-hppao.h: Obsolete file.
8926 * config/pa/tm-pro.h: Obsolete file.
8927 * config/pa/hppaosf.mt: Obsolete file.
8928 * config/pa/hppaosf.mh: Obsolete file.
8929 * config/pa/hppapro.mt: Obsolete file.
8930 * config/pa/hppabsd.mt: Obsolete file.
8931 * config/pa/hppabsd.mh: Obsolete file.
8932 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8933 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8936 2003-03-27 Andrew Cagney <cagney@redhat.com>
8938 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8939 push_arguments. Don't set push_return_address or write_sp.
8940 (d10v_push_dummy_call): Replace d10v_push_arguments.
8941 (d10v_push_return_address, d10v_write_sp): Delete function,
8942 handled by push_dummy_call.
8944 2003-03-26 Andrew Cagney <cagney@redhat.com>
8946 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8947 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8948 regcache and dummy_addr parameters.
8949 * gdbarch.h, gdbarch.c: Re-generate.
8950 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8951 available; assume it will handle stack alignment and return
8952 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8953 legacy_push_arguments.
8954 (legacy_push_arguments): Rename default_push_arguments.
8955 * value.h (legacy_push_arguments): Rename default_push_arguments.
8956 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8957 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8958 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8959 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8960 * config/i386/tm-symmetry.h: Update.
8961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8962 * x86-64-tdep.c (x86_64_init_abi): Update.
8963 * v850-tdep.c (v850_gdbarch_init): Update.
8964 * sparc-tdep.c (sparc_gdbarch_init): Update.
8965 * sh-tdep.c (sh_gdbarch_init): Update.
8966 * s390-tdep.c (s390_gdbarch_init): Update.
8967 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8968 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8969 * mips-tdep.c (mips_gdbarch_init): Update.
8970 * mcore-tdep.c (mcore_gdbarch_init): Update.
8971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8972 * ia64-tdep.c (ia64_gdbarch_init): Update.
8973 * i386-tdep.c (i386_gdbarch_init): Update.
8974 * hppa-tdep.c (hppa_gdbarch_init): Update.
8975 * h8300-tdep.c (h8300_gdbarch_init): Update.
8976 * frv-tdep.c (frv_gdbarch_init): Update.
8977 * d10v-tdep.c (d10v_gdbarch_init): Update.
8978 * cris-tdep.c (cris_gdbarch_init): Update.
8979 * avr-tdep.c (avr_gdbarch_init): Update.
8980 * arm-tdep.c (arm_gdbarch_init): Update.
8981 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8982 * alpha-tdep.c (alpha_gdbarch_init): Update.
8984 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8986 * signals/signals.c (do_target_signal_to_host): Correct realtime
8989 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8991 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8992 (struct sal_chain, map_catch_names): Remove.
8993 (catch_exception_command_1): Don't call
8994 handle_gnu_4_16_catch_command.
8996 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8998 From Mark Dettinger <dettinge@de.ibm.com>:
8999 * dwarf2cfi.c (read_2u): Increment pointer by two.
9001 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9003 * signals/signals.c: Fix typos in last change.
9005 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9007 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9008 not already defined. Use __SIGRTMIN if available.
9009 (target_signal_from_host): Remove SIGRTMIN block.
9010 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9011 the signal is within the realtime range.
9013 2003-03-25 Adam Fedor <fedor@gnu.org>
9015 * Makefile.in (infrun.o): Add $(language_h)
9016 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9017 for language specific trampolines.
9018 * language.h (struct language_defn): Add skip_trampoline.
9019 (skip_language_trampoline): Declare.
9020 * language.c (unk_lang_trampoline, skip_language_trampoline):
9022 (unknown_language_defn, auto_language_defn, local_language_defn):
9023 Add ukn_lang_trampoline.
9024 * ada-lang.c (ada_language_defn): Add NULL for language
9025 specific skip_trampoline.
9026 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9027 scm-lang.c: Likewise.
9028 * objc-lang.c (objc_skip_trampoline): New function.
9029 (objc_language_defn): Add objc_skip_trampoline.
9031 2003-03-25 Andrew Cagney <cagney@redhat.com>
9033 * frame.c (get_prev_frame): Delay validating a frame's ID -
9034 non-NULL, didn't go backwards - until an attempt to unwind it to
9037 2003-03-25 Andrew Cagney <cagney@redhat.com>
9039 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9040 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9041 * gdbarch.h, gdbarch.c: Re-generate.
9042 * config/sparc/tm-sparc.h
9043 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9044 * sparc-tdep.c (sparc_gdbarch_init): Set
9045 deprecated_extra_stack_alignment_needed.
9046 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9048 extra_stack_alignment_needed.
9049 * v850-tdep.c (v850_gdbarch_init): Ditto.
9050 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9051 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9052 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9053 * cris-tdep.c (cris_gdbarch_init): Ditto.
9054 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9057 2003-03-25 Andrew Cagney <cagney@redhat.com>
9059 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9060 STORE_STRUCT_RETURN.
9061 * gdbarch.h, gdbarch.c: Regenerate.
9062 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9063 (d10v_push_arguments): Set the struct return register.
9064 (d10v_gdbarch_init): Update.
9065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9066 * x86-64-tdep.c (x86_64_init_abi): Update.
9067 * vax-tdep.c (vax_gdbarch_init): Update.
9068 * v850-tdep.c (v850_gdbarch_init): Update.
9069 * sparc-tdep.c (sparc_gdbarch_init): Update.
9070 * sh-tdep.c (sh_gdbarch_init): Update.
9071 * s390-tdep.c (s390_gdbarch_init): Update.
9072 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9073 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9074 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9075 * mips-tdep.c (mips_gdbarch_init): Update.
9076 * mcore-tdep.c (mcore_gdbarch_init): Update.
9077 * m68k-tdep.c (m68k_gdbarch_init): Update.
9078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9079 * ia64-tdep.c (ia64_gdbarch_init): Update.
9080 * i386-tdep.c (i386_gdbarch_init): Update.
9081 * hppa-tdep.c (hppa_gdbarch_init): Update.
9082 * h8300-tdep.c (h8300_gdbarch_init): Update.
9083 * frv-tdep.c (frv_gdbarch_init): Update.
9084 * cris-tdep.c (cris_gdbarch_init): Update.
9085 * avr-tdep.c (avr_gdbarch_init): Update.
9086 * arm-tdep.c (arm_gdbarch_init): Update.
9087 * alpha-tdep.c (alpha_gdbarch_init): Update.
9089 2003-03-25 Andrew Cagney <cagney@redhat.com>
9091 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9092 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9093 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9094 * gdbarch.h, gdbarch.c: Regenerate.
9095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9096 call_dummy_stack_adjust_p.
9097 * vax-tdep.c (vax_gdbarch_init): Ditto.
9098 * v850-tdep.c (v850_gdbarch_init): Ditto.
9099 * sh-tdep.c (sh_gdbarch_init): Ditto.
9100 * s390-tdep.c (s390_gdbarch_init): Ditto.
9101 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9102 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9103 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9104 * mips-tdep.c (mips_gdbarch_init): Ditto.
9105 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9106 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9108 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9109 * i386-tdep.c (i386_gdbarch_init): Ditto.
9110 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9111 * frv-tdep.c (frv_gdbarch_init): Ditto.
9112 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9113 * cris-tdep.c (cris_gdbarch_init): Ditto.
9114 * avr-tdep.c (avr_gdbarch_init): Ditto.
9115 * arm-tdep.c (arm_gdbarch_init): Ditto.
9116 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9117 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9118 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9119 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9120 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9121 call_dummy_stack_adjust_p.
9122 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9123 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9124 * sparc-tdep.c (sparc32_push_arguments): Update.
9125 * valops.c (hand_function_call): Update.
9127 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9130 set_gdbarch_char_signed.
9132 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9135 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9137 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9139 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9140 (_initialize_arm_tdep): Don't set tm_print_insn.
9142 2003-03-24 Adam Fedor <fedor@gnu.org>
9144 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9145 * objc-lang.h: Add multiple inclusion protection.
9146 (start_msglist, add_msglist, end_msglist): Additional declarations.
9148 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9150 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9151 value was renamed to ARM_FLOAT_SOFT_FPA.
9153 2003-03-23 Andrew Cagney <cagney@redhat.com>
9155 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9156 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9157 * gdbarch.h, gdbarch.c: Regenerate.
9158 * valops.c (hand_function_call): Update.
9159 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9160 * frame.c (legacy_saved_regs_this_id): Update.
9161 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9162 * dummy-frame.h: Update.
9163 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9164 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9165 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9166 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9167 * config/m68k/tm-sun3.h: Update.
9168 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9169 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9170 * x86-64-tdep.c (x86_64_init_abi): Update.
9171 * vax-tdep.c (vax_gdbarch_init): Update.
9172 * v850-tdep.c (v850_gdbarch_init): Update.
9173 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9174 * sh-tdep.c (sh_gdbarch_init): Update.
9175 * s390-tdep.c (s390_gdbarch_init): Update.
9176 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9177 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9178 (frame_get_saved_regs): Update.
9179 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9180 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9181 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9182 * mips-tdep.c (mips_gdbarch_init): Update.
9183 * mcore-tdep.c (mcore_gdbarch_init): Update.
9184 * m68k-tdep.c (m68k_gdbarch_init): Update.
9185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9186 * ia64-tdep.c (ia64_gdbarch_init): Update.
9187 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9188 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9189 (i386_interix_back_one_frame): Update.
9190 * hppa-tdep.c (hppa_gdbarch_init): Update.
9191 (hppa_init_extra_frame_info): Update.
9192 * h8300-tdep.c (h8300_gdbarch_init): Update.
9193 * frv-tdep.c (frv_gdbarch_init): Update.
9194 * cris-tdep.c (cris_gdbarch_init): Update.
9195 * avr-tdep.c (avr_gdbarch_init): Update.
9196 * arm-tdep.c (arm_gdbarch_init): Update.
9197 * alpha-tdep.c (alpha_gdbarch_init): Update.
9199 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9201 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9202 (arm_get_fp_model): Declare.
9203 * arm-tdep.c (fp_model_strings): New string array.
9204 (arm_fp_model, current_fp_model): New variables.
9205 (arm_get_fp_model): New function.
9206 (arm_set_fp): New function.
9207 (set_fp_model_sfunc): New function.
9208 (show_fp_model): New function.
9209 (_initialize_arm_tdep): Add new command to set/show the FPU.
9210 (arm_extract_return_value): Use arm_get_fp_model.
9211 (arm_store_return_value): Likewise.
9212 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9213 to initialize the floating-point data types.
9214 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9217 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9219 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9220 the current setting of each value.
9221 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9222 new_set and new_show. Use add_setshow_cmd_full and
9223 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9224 commands and add new version as subcommands of "set/show arm".
9226 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9228 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9229 (set_arm_command, show_arm_command): New functions.
9230 (_initialize_arm_tdep): Add them.
9231 (num_disassembly_options): Renamed from num_flavor_options.
9232 (valid_disassembly_styles): Renamed from valid_flavors.
9233 (disassembly_style): Renamed from disassembly_flavor.
9234 (set_disassembly_style_sfunc): Renamed from
9235 set_disassembly_flavor_sfunc.
9236 (set_disassembly_style): Renamed from set_disassembly_flavor.
9237 (arm_othernames): Updated.
9238 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9239 command. Add "set/show arm disassembly" commands. Deprecate
9240 "othernames" command.
9242 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9244 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9245 (arm-tdep.o): Depend on elf_arm_h.
9247 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9249 * Makefile.in (coff_internal_h): Define.
9250 (arm-tdep.o): Update dependencies.
9252 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9254 * arm-tdep.c (prologue_cache): Delete.
9255 (check_prologue_cache, save_prologue_cache): Delete.
9256 (arm_scan_prologue): Don't check or update the prologue_cache.
9257 (arm_gdb_arch_init): Don't initialize it.
9258 (_initialize_arm_tdep): Likewise.
9260 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9262 * MAINTAINERS (tui): Maintainer of tui code.
9264 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9266 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9267 (i386-cygwin-tdep.o): Add dependencies.
9268 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9269 * i386-cygwin-tdep.c: New file.
9270 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9271 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9273 2003-03-20 Andrew Cagney <cagney@redhat.com>
9275 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9276 (handle_inferior_event): Remove code calling
9277 DYNAMIC_TRAMPOLINE_NEXTPC.
9279 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9280 already has a full path.
9282 * main.c (gdb_main): Return 1.
9283 (captured_main): Call error to report an invalid interpreter.
9285 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9286 * alpha-osf1-tdep.c: Include "gdb_string.h".
9288 2003-03-19 J. Brobecker <brobecker@gnat.com>
9290 Continuing work to convert the hppa targets to multiarch partial.
9292 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9293 method, now that hppa_push_dummy_frame has a conformant prototype.
9294 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9295 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9296 for the switch to multiarch partial.
9298 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9300 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9301 when iss is issNull.
9303 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9305 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9306 NUM_REGS bounds check.
9308 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9310 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9311 * mips-tdep.c (gdb_assert.h): Include.
9312 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9313 (mips_register_name): Handle integer registers explicitly. Add
9315 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9316 (mips_lsi33k_reg_names): Don't list integer registers; they're
9317 handled by mips_register_name() now.
9318 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9319 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9320 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9321 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9322 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9324 2003-03-18 Andrew Cagney <cagney@redhat.com>
9326 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9328 * gdbtypes.h (print_scalar_formatted): Update declaration.
9329 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9331 2003-03-18 J. Brobecker <brobecker@gnat.com>
9333 * infrun.c (observer.h): Add #include.
9334 (normal_stop): Add call to observer_notify_normal_stop.
9335 * Makefile.in (infrun.o): Add dependency on observer.h.
9337 2003-03-18 J. Brobecker <brobecker@gnat.com>
9339 Continuing work to convert the hppa targets to multiarch partial.
9340 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9341 parameter. Reformat comment.
9342 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9343 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9344 to match new profile.
9346 2003-03-18 J. Brobecker <brobecker@gnat.com>
9348 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9349 appear to be working in any case.
9351 2003-03-18 J. Brobecker <brobecker@gnat.com>
9353 * observer.c (observer_test_first_observer): New static variable.
9354 (observer_test_second_observer): Likewise.
9355 (observer_test_third_observer): Likewise.
9356 (observer_test_first_notification_function): New static function.
9357 (observer_test_second_notification_function): Likewise.
9358 (observer_test_third_notification_function): Likewise.
9360 2003-03-17 J. Brobecker <brobecker@gnat.com>
9362 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9363 * somsolib.c (gdb_assert.h): Likewise.
9364 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9365 (somsolib.o): Likewise.
9367 2003-03-17 Andrew Cagney <cagney@redhat.com>
9369 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9370 BFD. Simplify setting of di.endian.
9372 2003-03-17 Andrew Cagney <cagney@redhat.com>
9374 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9375 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9377 From Elena Zannoni <ezannoni@redhat.com>
9378 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9379 vector and floating-point parameters.
9380 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9382 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9384 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9386 * MAINTAINERS: Remove my name from several maintainership roles.
9388 2003-03-17 Andrew Cagney <cagney@redhat.com>
9390 Fix frame off-by-one bug.
9391 * frame-unwind.h (frame_this_id_ftype): Replace
9392 frame_unwind_id_ftype.
9393 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9394 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9395 with "prev_register".
9396 * frame-unwind.c (frame_unwind_find_by_pc): Return
9397 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9399 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9400 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9401 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9402 (dummy_frame_unwind): Update.
9403 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9404 sentinel_frame_register_unwind.
9405 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9406 (sentinel_frame_unwinder): Update.
9407 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9408 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9409 * frame.c (create_sentinel_frame): Update. Initialize
9410 "prologue_cache" instead of "unwind_cache".
9411 (frame_register_unwind): Call this frame's prev_register with the
9412 next frame and this frame's prologue cache.
9413 (get_prev_frame): Simplify. Always call prev frame's this_id with
9414 this frame and prev frame's prologue cache. Document that this
9415 call is shifted one to the left when compared to the
9416 frame_register_unwind call.
9417 (legacy_saved_regs_prev_register): Replace
9418 frame_saved_regs_register_unwind.
9419 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9420 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9421 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9422 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9423 (d10v_frame_unwind): Update.
9424 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9425 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9426 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9427 "saved_regs" with "this_saved_regs".
9429 2003-03-16 Andrew Cagney <cagney@redhat.com>
9431 * frame.c (frame_pop): Don't call target_store_registers. Fix
9432 problem reported by Mark Kettenis.
9434 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9436 * i386-tdep.c (i386_register_type): Renamed from
9437 i386_register_virtual_type. Adjust function signature.
9438 (i386_gdbarch_init): Set register_type instead of
9439 deprecated_max_register_raw_size,
9440 deprecated_max_register_virtual_size and register_virtual_type.
9442 2003-03-14 Andrew Cagney <cagney@redhat.com>
9444 * frame.c (get_prev_frame): When a legacy frame, always call
9445 legacy_get_prev_frame. Simplify unwind code using assumption that
9446 the unwinder is new.
9447 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9448 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9449 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9451 2003-03-14 Andrew Cagney <cagney@redhat.com>
9453 * frame.c (get_saved_register): Delete function.
9454 * frame.h (get_saved_register): Delete declaration.
9455 * xstormy16-tdep.c: Update comment.
9456 * regcache.h: Update comments.
9457 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9458 get_saved_register and extract_address, use
9459 frame_read_unsigned_register.
9460 (sparc_frame_saved_pc): Ditto.
9461 (sparc_get_saved_register): Instead of get_saved_register, use
9463 (sparc_pop_frame): Ditto.
9464 * findvar.c: Update comments.
9465 (value_of_register): Call frame_register instead of
9467 (value_from_register): Ditto.
9468 * config/sparc/tm-sparc.h: Update comment.
9469 * breakpoint.c: Update comment.
9471 2003-03-14 Andrew Cagney <cagney@redhat.com>
9473 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9475 * gdbarch.h, gdbarch.c: Re-generate.
9476 * frame.h: Update comments.
9477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9478 * x86-64-tdep.c (x86_64_init_abi): Update.
9479 * sparc-tdep.c (sparc_gdbarch_init): Update.
9480 * sh-tdep.c (sh_gdbarch_init): Update.
9481 * mips-tdep.c (mips_gdbarch_init): Update.
9482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9483 * cris-tdep.c (cris_gdbarch_init): Update.
9484 * ia64-tdep.c (ia64_gdbarch_init): Update.
9485 * frame.c (frame_register): Update.
9486 (get_saved_register): Update.
9487 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9489 2003-03-13 Andrew Cagney <cagney@redhat.com>
9491 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9492 * gdbarch.h, gdbarch.c: Regenerate.
9493 * valops.c (hand_function_call): Update comment.
9494 * stack.c (return_command): Update comment.
9495 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9496 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9497 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9498 * x86-64-tdep.c (x86_64_init_abi): Update.
9499 * vax-tdep.c (vax_gdbarch_init): Update.
9500 * v850-tdep.c (v850_gdbarch_init): Update.
9501 * sparc-tdep.c (sparc_gdbarch_init): Update.
9502 * sh-tdep.c (sh_gdbarch_init): Update.
9503 * s390-tdep.c (s390_gdbarch_init): Update.
9504 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9505 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9506 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9507 * mips-tdep.c (mips_gdbarch_init): Update.
9508 * mcore-tdep.c (mcore_gdbarch_init): Update.
9509 * m68k-tdep.c (m68k_gdbarch_init): Update.
9510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9511 * ia64-tdep.c (ia64_gdbarch_init): Update.
9512 * i386-tdep.c (i386_gdbarch_init): Update.
9513 * hppa-tdep.c (hppa_gdbarch_init): Update.
9514 * h8300-tdep.c (h8300_gdbarch_init): Update.
9515 * frv-tdep.c (frv_gdbarch_init): Update.
9516 * cris-tdep.c (cris_gdbarch_init): Update.
9517 * avr-tdep.c (avr_gdbarch_init): Update.
9518 * arm-tdep.c (arm_gdbarch_init): Update.
9519 * alpha-tdep.c (alpha_gdbarch_init): Update.
9521 2003-03-13 Andrew Cagney <cagney@redhat.com>
9523 * frame.c (legacy_frame_p): New function.
9524 (get_prev_frame): Use legacy_frame_p.
9525 * frame.h (legacy_frame_p): Declare.
9527 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9529 * MAINTAINERS (write after approval): Alphabetically
9532 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9534 * MAINTAINERS (write after approval): Add myself.
9536 2003-03-12 Andrew Cagney <cagney@redhat.com>
9538 * frame.c (get_prev_frame): Rename the frame parameter to
9540 (get_next_frame, legacy_get_prev_frame): Ditto.
9542 2003-03-12 Andrew Cagney <cagney@redhat.com>
9544 * frame.c (get_current_frame): Check target_has_registers before
9545 checking target_has_stack.
9546 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9547 instead of deprecated_selected_frame.
9548 * findvar.c (value_of_register): Pass "frame", not
9549 deprecated_selected_frame, to value_of_builtin_reg.
9551 2003-03-12 Andrew Cagney <cagney@redhat.com>
9553 * regcache.c (regcache_cooked_write_signed): New function.
9554 (regcache_cooked_write_unsigned): New function.
9555 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9556 (regcache_cooked_read_signed): Fix regnum in range assertion.
9557 * regcache.h (regcache_cooked_write_signed): Declare.
9558 (regcache_cooked_write_unsigned): Declare.
9560 2003-03-12 Andrew Cagney <cagney@redhat.com>
9562 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9563 * gdbarch.h, gdbarch.c: Re-generate.
9564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9565 * x86-64-tdep.h: Update.
9566 * x86-64-tdep.c (x86_64_init_abi): Update.
9567 * v850-tdep.c (v850_gdbarch_init): Update.
9568 * sparc-tdep.c (sparc_gdbarch_init): Update.
9569 * sh-tdep.c (sh_gdbarch_init): Update.
9570 * s390-tdep.c (s390_gdbarch_init): Update.
9571 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9572 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9573 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9574 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9575 * mips-tdep.c (mips_gdbarch_init): Update.
9576 * mcore-tdep.c (mcore_gdbarch_init): Update.
9577 * m68k-tdep.c (m68k_gdbarch_init): Update.
9578 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9579 * ia64-tdep.c (ia64_gdbarch_init): Update.
9580 * i386-tdep.c (i386_gdbarch_init): Update.
9581 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9582 * hppa-tdep.c (hppa_gdbarch_init): Update.
9583 * h8300-tdep.c (h8300_gdbarch_init): Update.
9584 * frv-tdep.c (frv_gdbarch_init): Update.
9585 * cris-tdep.c (cris_gdbarch_init): Update.
9586 * avr-tdep.c (avr_gdbarch_init): Update.
9587 * arm-tdep.c (arm_gdbarch_init): Update.
9588 * alpha-tdep.c (alpha_gdbarch_init): Update.
9589 * sh-tdep.c (sh_init_extra_frame_info): Update.
9590 (sh64_init_extra_frame_info): Update.
9591 * ns32knbsd-nat.c (frame_num_args): Update.
9592 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9593 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9594 (xstormy16_frame_chain_valid): Update.
9595 * vax-tdep.c (vax_saved_pc_after_call): Update.
9596 * v850-tdep.c (v850_frame_chain): Update.
9597 (v850_pop_frame): Update.
9598 (v850_init_extra_frame_info): Update.
9599 * sparc-tdep.c (setup_arbitrary_frame): Update.
9600 * ns32k-tdep.c (umax_frame_num_args): Update.
9601 * s390-tdep.c (s390_pop_frame_regular): Update.
9602 * mn10300-tdep.c (mn10300_frame_chain): Update.
9603 (mn10300_pop_frame_regular): Update.
9604 (mn10300_init_extra_frame_info): Update.
9605 * mips-tdep.c (mips_init_frame_pc_first): Update.
9606 (mips_frame_chain): Update.
9607 (mips_pop_frame): Update.
9608 * mcore-tdep.c (mcore_frame_chain): Update.
9609 (mcore_pop_frame): Update.
9610 (mcore_init_extra_frame_info): Update.
9611 * arch-utils.c (init_frame_pc_default): Update.
9612 * m68k-tdep.c (isi_frame_num_args): Update.
9613 (delta68_frame_num_args): Update.
9614 (news_frame_num_args): Update.
9615 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9616 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9617 (alpha_frame_chain): Update.
9618 (alpha_pop_frame): Update.
9619 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9620 (hppa_init_extra_frame_info): Update.
9621 (hppa_frame_chain): Update.
9622 (hppa_frame_chain_valid): Update.
9623 * cris-tdep.c (cris_init_extra_frame_info): Update.
9624 * avr-tdep.c (avr_init_extra_frame_info): Update.
9625 * arm-tdep.c (arm_frame_chain_valid): Update.
9626 (arm_init_extra_frame_info): Update.
9627 (arm_pop_frame): Update.
9628 * frame.c (frame_pc_unwind): Update.
9629 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9630 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9631 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9632 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9633 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9634 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9636 2003-03-12 Andrew Cagney <cagney@redhat.com>
9638 Eliminate the need for POP_FRAME.
9639 * frame.c (do_frame_unwind_register): New function.
9640 (frame_pop): When no POP_FRAME, pop the frame using register
9641 unwind and a scratch regcache.
9642 (frame_saved_regs_pop): Delete function.
9643 (trad_frame_unwinder): Update.
9644 * d10v-tdep.c (d10v_frame_pop): Delete function.
9645 (d10v_frame_unwind): Update.
9646 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9647 (sentinel_frame_unwinder): Update.
9648 * dummy-frame.c (dummy_frame_pop): Delete function.
9649 (dummy_frame_unwind): Update.
9650 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9651 (struct frame_unwind): Update.
9653 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9655 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9656 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9657 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9658 Do range checks on register number obtained from debugging info.
9659 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9660 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9661 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9663 (do_fp_register_row): Fix typo which caused double type to be
9664 used when attempting to unpack a float.
9666 2003-03-11 J. Brobecker <brobecker@gnat.com>
9668 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9670 2003-03-11 Andrew Cagney <cagney@redhat.com>
9672 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9673 frame. Problem found by Corinna Vinschen.
9675 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9677 * doublest.c (floatformat_from_length): Accept also
9678 the real size of 'long double' type.
9680 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9682 From Klee Dienes <kdienes@apple.com>:
9683 * breakpoint.c (bpstat_copy): Copy the command lines as well
9684 as the old value, to match what is freed in bpstat_clear.
9686 2003-03-10 David Carlton <carlton@math.stanford.edu>
9688 * minsyms.c (add_minsym_to_hash_table): Replace
9689 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9690 (compare_minimal_symbols, compact_minimal_symbols)
9691 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9692 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9693 of DEPRECATED_SYMBOL_MATCHES_NAME.
9694 (lookup_minimal_symbol_solib_trampoline): Ditto.
9696 2003-03-10 Andrew Cagney <cagney@redhat.com>
9698 * regcache.h (regcache_cooked_read_ftype): Define.
9699 (regcache_save, regcache_restore): Add a cooked_read parameter.
9700 * regcache.c (regcache_save, regcache_restore): Update.
9701 (do_cooked_read): New function.
9702 (regcache_cpy): Pass do_cooked_read to regcache_save and
9705 2003-03-10 Andrew Cagney <cagney@redhat.com>
9707 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9708 * gdbarch.h, gdbarch.c: Re-generate.
9709 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9710 * x86-64-tdep.h: Update.
9711 * x86-64-tdep.c (x86_64_init_abi): Update.
9712 * v850-tdep.c (v850_gdbarch_init): Update.
9713 * sparc-tdep.c (sparc_gdbarch_init): Update.
9714 * sh-tdep.c (sh_gdbarch_init): Update.
9715 * s390-tdep.c (s390_gdbarch_init): Update.
9716 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9717 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9718 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9719 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9720 * mips-tdep.c (mips_gdbarch_init): Update.
9721 * mcore-tdep.c (mcore_gdbarch_init): Update.
9722 * m68k-tdep.c (m68k_gdbarch_init): Update.
9723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9724 * ia64-tdep.c (ia64_gdbarch_init): Update.
9725 * i386-tdep.c (i386_gdbarch_init): Update.
9726 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9727 * hppa-tdep.c (hppa_gdbarch_init): Update.
9728 * h8300-tdep.c (h8300_gdbarch_init): Update.
9729 * frv-tdep.c (frv_gdbarch_init): Update.
9730 * cris-tdep.c (cris_gdbarch_init): Update.
9731 * avr-tdep.c (avr_gdbarch_init): Update.
9732 * arm-tdep.c (arm_gdbarch_init): Update.
9733 * alpha-tdep.c (alpha_gdbarch_init): Update.
9734 * sh-tdep.c (sh_init_extra_frame_info): Update.
9735 (sh64_init_extra_frame_info): Update.
9736 * ns32knbsd-nat.c (frame_num_args): Update.
9737 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9738 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9739 (xstormy16_frame_chain_valid): Update.
9740 * vax-tdep.c (vax_saved_pc_after_call): Update.
9741 * v850-tdep.c (v850_frame_chain): Update.
9742 (v850_pop_frame): Update.
9743 (v850_init_extra_frame_info): Update.
9744 * sparc-tdep.c (setup_arbitrary_frame): Update.
9745 * ns32k-tdep.c (umax_frame_num_args): Update.
9746 * s390-tdep.c (s390_pop_frame_regular): Update.
9747 * mn10300-tdep.c (mn10300_frame_chain): Update.
9748 (mn10300_pop_frame_regular): Update.
9749 (mn10300_init_extra_frame_info): Update.
9750 * mips-tdep.c (mips_init_frame_pc_first): Update.
9751 (mips_frame_chain): Update.
9752 (mips_pop_frame): Update.
9753 * mcore-tdep.c (mcore_frame_chain): Update.
9754 (mcore_pop_frame): Update.
9755 (mcore_init_extra_frame_info): Update.
9756 * arch-utils.c (init_frame_pc_default): Update.
9757 * m68k-tdep.c (isi_frame_num_args): Update.
9758 (delta68_frame_num_args): Update.
9759 (news_frame_num_args): Update.
9760 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9761 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9762 (alpha_frame_chain): Update.
9763 (alpha_pop_frame): Update.
9764 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9765 (hppa_init_extra_frame_info): Update.
9766 (hppa_frame_chain): Update.
9767 (hppa_frame_chain_valid): Update.
9768 * cris-tdep.c (cris_init_extra_frame_info): Update.
9769 * avr-tdep.c (avr_init_extra_frame_info): Update.
9770 * arm-tdep.c (arm_frame_chain_valid): Update.
9771 (arm_init_extra_frame_info): Update.
9772 (arm_pop_frame): Update.
9773 * frame.c (frame_pc_unwind): Update.
9774 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9775 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9776 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9777 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9778 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9779 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9781 2003-03-10 Andrew Cagney <cagney@redhat.com>
9783 * gdbarch.sh (gdbarch_unwind_pc): New method.
9784 * gdbarch.h, gdbarch.c: Regenerate.
9785 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9786 but use read_pc and FRAME_SAVED_PC as fall backs.
9787 (frame_saved_regs_pc_unwind): Delete function.
9788 (trad_frame_unwinder): Update.
9789 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9790 (struct frame_unwind): Update.
9791 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9792 (dummy_frame_unwind): Update.
9793 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9794 (sentinel_frame_unwinder): Update.
9795 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9796 (d10v_frame_unwind): Update.
9797 (d10v_unwind_pc): New function.
9798 (d10v_gdbarch_init): Set unwind_pc.
9800 2003-03-10 Andrew Cagney <cagney@redhat.com>
9802 * gdbarch.h: Re-generate.
9804 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9806 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9809 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9811 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9813 2003-03-08 Andrew Cagney <cagney@redhat.com>
9815 * cli-out.c: Update copyright.
9816 (cli_out_data): Define typedef. Use instead of ui_out_data.
9818 2003-03-08 Andrew Cagney <cagney@redhat.com>
9820 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9823 2003-03-07 Andrew Cagney <cagney@redhat.com>
9825 * gdbarch.sh: Don't generate two macro definitions when an
9826 undefined macro taking no arguments.
9827 * gdbarch.h: Regenerate.
9829 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9831 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9832 (x86_64_unwind_dummy_id): New functions.
9833 (x86_64_init_abi): Register these two new functions.
9835 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9837 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9838 (x86_64_skip_prologue): Move prologue detection to
9840 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9842 2003-03-05 Andrew Cagney <cagney@redhat.com>
9844 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9845 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9846 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9847 to use unwind_dummy_id when a dummy frame.
9848 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9850 * gdbarch.h, gdbarch.c: Regneerate.
9852 2003-03-05 Andrew Cagney <cagney@redhat.com>
9854 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9855 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9856 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9859 2003-03-05 Andrew Cagney <cagney@redhat.com>
9861 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9862 (struct d10v_unwind_cache): Delete field "frameless". Replace
9863 "next_addr" with "sp_offset". Add "r11_offset".
9864 (d10v_frame_unwind_cache): Update.
9865 (prologue_find_regs): Update. When "mv r11, sp", save the
9866 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9867 RN was saved in r11_offset.
9869 2003-03-05 Andrew Cagney <cagney@redhat.com>
9871 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9872 cached PC value in the next frame.
9874 2003-03-05 Andrew Cagney <cagney@redhat.com>
9876 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9877 "id_unwind_cache" with "id".
9878 (frame_id_unwind): Delete declaration.
9879 * frame.c (frame_id_unwind): Delete function.
9880 (get_prev_frame): Call the frame id unwind method directly. Store
9881 the returned next frame's ID value in NEXT_FRAME. Note that there
9882 is a problem with the wrong unwind ID being called with the wrong
9885 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9887 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9889 2003-03-05 James Ingham <jingham@apple.com>
9890 Daniel Jacobowitz <drow@mvista.com>
9892 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9893 (auto_cp_abi): New variable.
9894 (current_cp_abi, num_cp_abis): Make static.
9895 (CP_ABI_MAX): Define.
9896 (cp_abis): Turn into an array.
9897 (value_virtual_fn_field): Fix formatting.
9898 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9900 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9901 (list_cp_abis, _initialize_cp_abi): New functions.
9902 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9903 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9904 switch_to_cp_abi. Update prototype for register_cp_abi.
9905 * Makefile.in (cp-abi.o): Update dependencies.
9906 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9907 instead of switch_to_cp_abi.
9908 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9910 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9912 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9914 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9916 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9917 * dwarf2loc.c: Include "regcache.h".
9918 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9920 * Makefile.in (dwarf2loc.o): Update dependencies.
9922 2003-03-04 Theodore A. Roth <troth@openavr.org>
9924 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9925 number of io registers reported by remote target is not a multiple of
9928 2003-03-04 David Carlton <carlton@math.stanford.edu>
9930 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9931 (lookup_symbol_aux_psymtabs): Update call to
9932 lookup_partial_symbol.
9933 (lookup_transparent_type, find_main_psymtab)
9934 (make_symbol_overload_list): Ditto.
9936 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9938 * MAINTAINERS (Write after approval): Update my email address.
9940 2003-03-03 Andrew Cagney <cagney@redhat.com>
9942 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9943 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9944 predicate. Replace MAX_REGISTER_RAW_SIZE.
9945 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9946 MAX_REGISTER_VIRTUAL_SIZE.
9947 * regcache.c (legacy_max_register_raw_size): New function.
9948 (legacy_max_register_virtual_size): New function.
9949 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9950 (MAX_REGISTER_RAW_SIZE): Define.
9951 (legacy_max_register_raw_size): Declare.
9952 (legacy_max_register_virtual_size): Declare.
9953 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9954 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9955 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9956 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9957 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9958 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9959 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9960 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9961 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9962 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9963 * vax-tdep.c (vax_gdbarch_init): Update.
9964 * v850-tdep.c (v850_gdbarch_init): Update.
9965 * sparc-tdep.c (sparc_gdbarch_init): Update.
9966 * sh-tdep.c (sh_gdbarch_init): Update.
9967 * s390-tdep.c (s390_gdbarch_init): Update.
9968 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9969 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9970 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9971 * mips-tdep.c (mips_gdbarch_init): Update.
9972 * mcore-tdep.c (mcore_gdbarch_init): Update.
9973 * m68k-tdep.c (m68k_gdbarch_init): Update.
9974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9975 * ia64-tdep.c (ia64_gdbarch_init): Update.
9976 * i386-tdep.c (i386_gdbarch_init): Update.
9977 * hppa-tdep.c (hppa_gdbarch_init): Update.
9978 * h8300-tdep.c (h8300_gdbarch_init): Update.
9979 * frv-tdep.c (frv_gdbarch_init): Update.
9980 * cris-tdep.c (cris_gdbarch_init): Update.
9981 * avr-tdep.c (avr_gdbarch_init): Update.
9982 * arm-tdep.c (arm_gdbarch_init): Update.
9983 * alpha-tdep.c (alpha_gdbarch_init): Update.
9984 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9985 max_register_raw_size or max_register_virtual_size.
9987 2003-03-03 David Carlton <carlton@math.stanford.edu>
9989 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9990 SYMBOL_MATCHES_NAME, add comment.
9991 (SYMBOL_MATCHES_NATURAL_NAME): New.
9992 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9993 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9994 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9995 * symtab.c (lookup_partial_symbol): Use
9996 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9998 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9999 SYMBOL_MATCHES_NAME.
10002 2003-03-03 David Carlton <carlton@math.stanford.edu>
10004 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10005 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10006 by regexp matching against SYMBOL_NATURAL_NAME.
10008 2003-03-03 David Carlton <carlton@math.stanford.edu>
10010 * linespec.c (find_method): Extract code into collect_methods.
10011 (collect_methods): New.
10013 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10015 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10018 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10019 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10021 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10023 * arch-utils.c (generic_register_byte): Fix to use the loop index
10024 and not regnum when summing the size of all registers up to regnum.
10026 2003-03-01 Andrew Cagney <cagney@redhat.com>
10028 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10029 FRAME_INIT_SAVED_REGS.
10030 * gdbarch.h, gdbarch.c: Regenerate.
10031 * stack.c (frame_info): Update.
10032 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10033 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10034 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10035 * ns32k-tdep.c (ns32k_pop_frame): Update.
10036 * mips-tdep.c (mips_pop_frame): Update.
10037 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10038 * ia64-tdep.c (ia64_frame_chain): Update.
10039 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10040 (ia64_frameless_function_invocation): Update.
10041 (ia64_init_extra_frame_info): Update.
10042 (ia64_pop_frame_regular): Update.
10043 * frame.h (struct frame_info): Update comment.
10044 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10045 * frame.c (frame_saved_regs_register_unwind): Update.
10046 (frame_saved_regs_register_unwind): Update.
10047 (deprecated_generic_get_saved_register): Update.
10048 * cris-tdep.c: Update comment.
10049 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10052 * x86-64-tdep.c (x86_64_init_abi): Update.
10053 * vax-tdep.c (vax_gdbarch_init): Update.
10054 * v850-tdep.c (v850_gdbarch_init): Update.
10055 * sparc-tdep.c (sparc_gdbarch_init): Update.
10056 * sh-tdep.c (sh_gdbarch_init): Update.
10057 * s390-tdep.c (s390_gdbarch_init): Update.
10058 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10059 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10060 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10061 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10062 * mips-tdep.c (mips_gdbarch_init): Update.
10063 * mcore-tdep.c (mcore_gdbarch_init): Update.
10064 * m68k-tdep.c (m68k_gdbarch_init): Update.
10065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10066 * ia64-tdep.c (ia64_gdbarch_init): Update.
10067 * i386-tdep.c (i386_gdbarch_init): Update.
10068 * frv-tdep.c (frv_gdbarch_init): Update.
10069 * avr-tdep.c (avr_gdbarch_init): Update.
10070 * arm-tdep.c (arm_gdbarch_init): Update.
10071 * alpha-tdep.c (alpha_gdbarch_init): Update.
10073 2003-03-01 Andrew Cagney <cagney@redhat.com>
10075 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10076 option enum and switch. When no windows, set the interpreter to
10079 2003-03-01 Andrew Cagney <cagney@redhat.com>
10081 * main.c (captured_main): Replace magic option characters with an
10084 2003-03-01 Andrew Cagney <cagney@redhat.com>
10086 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10087 INIT_EXTRA_FRAME_INFO.
10088 * gdbarch.h, gdbarch.c: Regenerate.
10089 * arm-tdep.c: Update comments.
10090 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10091 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10092 * frame.h, avr-tdep.c: Ditto.
10093 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10094 (create_new_frame, legacy_get_prev_frame): Ditto.
10095 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10096 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10098 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10099 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10100 * v850-tdep.c (v850_gdbarch_init): Ditto.
10101 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10102 * sh-tdep.c (sh_gdbarch_init): Ditto.
10103 * s390-tdep.c (s390_gdbarch_init): Ditto.
10104 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10105 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10106 * mips-tdep.c (mips_gdbarch_init): Ditto.
10107 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10108 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10109 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10110 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10111 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10112 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10113 * frv-tdep.c (frv_gdbarch_init): Ditto.
10114 * cris-tdep.c (cris_gdbarch_init): Ditto.
10115 * avr-tdep.c (avr_gdbarch_init): Ditto.
10116 * arm-tdep.c (arm_gdbarch_init): Ditto.
10117 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10118 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10120 2003-03-01 Andrew Cagney <cagney@redhat.com>
10122 * gdbarch.sh (register_type): New function with predicate.
10123 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10124 * gdbarch.h, gdbarch.c: Re-generate.
10125 * arch-utils.c (generic_register_byte): Use generic_register_size.
10126 (generic_register_size): When available, use
10127 gdbarch_register_type.
10128 * regcache.c (init_regcache_descr): When available, initialize the
10129 register type array using gdbarch_register_type. If the
10130 architecture supplies gdbarch_register_type, do not use the legacy
10132 * d10v-tdep.c (d10v_register_type): Replace
10133 d10v_register_virtual_type.
10134 (d10v_gdbarch_init): Set register_type instead of
10135 register_virtual_type.
10137 2003-03-01 Andrew Cagney <cagney@redhat.com>
10139 * Makefile.in (ax-gdb.o): Update dependencies.
10140 * ax-gdb.c: Include "regcache.h".
10141 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10142 * findvar.c (value_of_register): Ditto.
10143 * infcmd.c (default_print_registers_info): Ditto.
10145 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10147 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10148 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10150 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10152 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10155 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10157 * Makefile.in (dwarf2loc.o): Update dependencies.
10158 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10159 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10160 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10161 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10162 (locexpr_tracepoint_var_ref): New function.
10163 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10165 2003-02-28 Andrew Cagney <cagney@redhat.com>
10167 * regcache.c (register_size): New function.
10168 * regcache.h (register_size): Declare
10169 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10170 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10172 2003-02-28 David Carlton <carlton@math.stanford.edu>
10174 * linespec.c (decode_compound): Extract code into find_method.
10175 (find_method): New.
10177 2003-02-28 J. Brobecker <brobecker@gnat.com>
10179 * Makefile.in: Add rules to build and link in observer.o.
10181 2003-02-27 J. Brobecker <brobecker@gnat.com>
10183 * observer.c: Minor comments edits.
10185 2003-02-27 J. Brobecker <brobecker@gnat.com>
10187 * observer.h, observer.c: New file.
10189 2003-02-27 Andrew Cagney <cagney@redhat.com>
10191 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10193 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10195 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10196 (M6812_OP_STS_EXT): Likewise.
10197 (m6811_prologue): Use the above to recognize prologue.
10198 (m6812_prologue): Likewise.
10200 2003-02-27 David Carlton <carlton@math.stanford.edu>
10202 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10204 (compare_psymbols): Ditto.
10205 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10207 2003-02-27 Michael Snyder <msnyder@redhat.com>
10209 * f-lang.c (build_fortran_types): New function.
10210 (_initialize_f_language): Gdbarch-register built-in fortran types.
10211 * doublest.c (extract_floating): Fix warning text.
10213 2003-02-27 Andrew Cagney <cagney@redhat.com>
10215 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10216 predicate. Replaces PUSH_DUMMY_FRAME.
10217 * gdbarch.h, gdbarch.c: Regnerate.
10218 * valops.c (hand_function_call): Update. Call
10219 generic_push_dummy_frame directly.
10220 * vax-tdep.c (vax_gdbarch_init): Update.
10221 * sparc-tdep.c (sparc_gdbarch_init): Update.
10222 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10223 * m68k-tdep.c (m68k_gdbarch_init): Update.
10224 * hppa-tdep.c (hppa_gdbarch_init): Update.
10225 * alpha-tdep.c (alpha_gdbarch_init): Update.
10226 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10227 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10228 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10230 push_dummy_frame to generic_push_dummy_frame.
10231 * v850-tdep.c (v850_gdbarch_init): Ditto.
10232 * sh-tdep.c (sh_gdbarch_init): Ditto.
10233 * s390-tdep.c (s390_gdbarch_init): Ditto.
10234 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10235 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10236 * mips-tdep.c (mips_gdbarch_init): Ditto.
10237 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10238 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10239 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10240 * i386-tdep.c (i386_gdbarch_init): Ditto.
10241 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10242 * frv-tdep.c (frv_gdbarch_init): Ditto.
10243 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10244 * cris-tdep.c (cris_gdbarch_init): Ditto.
10245 * avr-tdep.c (avr_gdbarch_init): Ditto.
10246 * arm-tdep.c (arm_gdbarch_init): Ditto.
10248 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10250 * mips-tdep.c (show_mips_abi): New function.
10251 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10252 command ``show mips abi''.
10254 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10256 From Elena Zannoni <ezannoni@redhat.com>
10257 * dbxread.c (process_one_symbol): Only record line 0 if one or
10258 more sline entries have been seen for the function.
10260 2003-02-26 Michael Chastain <mec@shout.net>
10262 * configure: Regenerate with autoconf 000227.
10264 2003-02-26 Michael Chastain <mec@shout.net>
10266 Close PR build/660.
10267 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10268 for old libc5/glibc.
10269 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10271 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10273 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10274 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10276 2003-02-26 Michael Chastain <mec@shout.net>
10278 * configure.in: New variable HAVE_UINTPTR_T.
10279 * configure, config.in: Regenerated.
10281 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10284 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10286 2003-02-25 Andrew Cagney <cagney@redhat.com>
10288 * frame.c (get_prev_frame): Add comment on check for
10289 inside_entry_func. Only check for inside_entry_file when not a
10290 dummy and not a sentinel. Check that the new frame is not inner
10293 2003-02-25 Andrew Cagney <cagney@redhat.com>
10295 * frame.c (frame_debug): New variable.
10296 (_initialize_frame): Add "set/show debug frame" command.
10297 (get_prev_frame): When frame_debug, print reason why unwind
10300 2003-02-25 Michael Chastain <mec@shout.net>
10302 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10303 to avoid uintptr_t definition problems.
10305 2003-02-25 David Carlton <carlton@math.stanford.edu>
10307 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10308 (SYMBOL_LINKAGE_NAME): Ditto.
10309 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10310 SYMBOL_LINKAGE_NAME.
10311 (struct general_symbol_info): Expand comment.
10312 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10313 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10314 (SYMBOL_MATCHES_REGEXP): Ditto.
10315 * symtab.c (symbol_natural_name): New function.
10316 * objfiles.h: Replace all uses of SYMBOL_NAME by
10317 DEPRECATED_SYMBOL_NAME.
10318 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10319 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10320 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10321 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10322 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10323 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10324 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10325 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10326 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10327 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10328 * ada-exp.y: Ditto.
10329 * ada-exp.y: Update copyright.
10330 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10331 * cp-valprint.c: Ditto.
10333 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10335 * infptrace.c (detach): Do not flag error if ptrace detach fails
10336 and errno is set to ESRCH.
10338 2003-02-24 Andrew Cagney <cagney@redhat.com>
10340 * infptrace.c (udot_info): Change type of udot_off to long. Use
10341 paddr when printing udot_off's value.
10343 2003-02-24 David Carlton <carlton@math.stanford.edu>
10345 * symtab.c (make_symbol_overload_list): Only read in partial
10346 symtabs containing a matching partial symbol.
10348 2003-02-24 David Carlton <carlton@math.stanford.edu>
10350 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10351 do the comparison, not strcmp.
10352 * symfile.c (compare_psymbols): Ditto.
10353 * defs.h: Declare strcmp_iw_ordered.
10354 * utils.c (strcmp_iw_ordered): New function.
10356 2003-02-24 Jim Blandy <jimb@redhat.com>
10358 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10359 support, shared libs): Remove my name from here, to better reflect
10362 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10364 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10365 (target_ops): Add to_have_continuable_watchpoint.
10366 * target.c (update_current_target): Add INHERIT line for
10367 to_have_continuable_watchpoint.
10368 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10369 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10370 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10371 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10373 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10375 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10378 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10380 * solib.c (solib_open): Call target defined search function after
10381 failing with solib-search-path.
10382 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10383 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10385 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10387 * MAINTAINERS: Add myself to Write After section.
10389 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10391 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10393 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10395 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10396 (m68hc11_add_reggroups): New function.
10397 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10398 (m68hc11_gdbarch_init): Install the reggroups.
10399 (_initialize_m68hc11_tdep): Initialize them.
10401 2003-02-21 James E Wilson <wilson@tuliptree.org>
10403 * MAINTAINERS: Update my email address.
10405 2003-02-21 David Carlton <carlton@math.stanford.edu>
10407 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10409 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10411 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10412 * symtab.h: Add opaque declarations of struct axs_value and
10414 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10415 (struct location_funcs): New type.
10416 (struct symbol): Add "loc" to aux_value.
10417 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10418 * dwarf2read.c: Include "dwarf2expr.h".
10419 (dwarf2_symbol_mark_computed): New function.
10420 (read_func_scope): Use it.
10421 (var_decode_location): New function.
10422 (new_symbol): Use it.
10423 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10425 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10426 (dwarf2expr_h, dwarf2loc_h): New variables.
10427 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10428 (dwarf2expr.o, dwarf2loc.o): New rules.
10429 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10430 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10432 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10433 * m2-exp.y (yylex): Likewise.
10434 * printcmd.c (address_info, print_frame_args): Likewise.
10435 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10436 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10437 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10438 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10439 * symtab.c (lookup_block_symbol): Likewise.
10441 2003-02-20 Adam Fedor <fedor@gnu.org>
10443 * symtab.h: Remove objc_specific struct
10444 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10445 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10446 Have language_objc use cplus_specific struct.
10448 2003-02-20 Tom Tromey <tromey@redhat.com>
10450 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10451 TYPE_NAME, when printing a String value. PR java/1075.
10453 2003-02-20 Adam Fedor <fedor@gnu.org>
10455 * objc-lang.h (find_methods): Remove declaration.
10456 * objc-lang.c (find_methods): Make static.
10458 2003-02-20 Christopher Faylor <cgf@redhat.com>
10460 * win32-nat.c (get_image_name): Check return value from
10462 (child_xfer_memory): Ditto.
10464 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10466 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10467 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10468 '${exec_prefix}' (in addition to the expansion thereof) as
10470 * configure: Rebuilt.
10472 2003-02-20 David Carlton <carlton@math.stanford.edu>
10474 * symtab.c (search_symbols): Revert the search_symbols part of my
10475 2002-12-23 patch. Add comment.
10477 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10479 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10480 * dbxread.c (elfstab_build_psymtabs): Don't call
10481 install_minimal_symbols.
10482 (stabsect_build_psymtabs): Likewise.
10483 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10485 * somread.c (som_symfile_read): Call install_minimal_symbols
10486 and do_cleanups earlier.
10487 * nlmread.c (nlm_symfile_read): Likewise.
10488 * mdebugread.c (elfmdebug_build_psymtabs): Call
10489 install_minimal_symbols and make appropriate cleanups.
10491 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10493 * solib.c (reload_shared_libraries): New function.
10494 (_initialize_solib): Add callbacks for ``set solib-search-path''
10495 and ``set solib-absolute-prefix''.
10497 2003-02-20 David Carlton <carlton@math.stanford.edu>
10499 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10501 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10502 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10503 * ada-typeprint.c (ada_typedef_print): Ditto.
10504 * ax-gdb.c (gen_var_ref): Ditto.
10505 * breakpoint.c (print_one_breakpoint): Ditto.
10506 * buildsym.c (finish_block): Ditto.
10507 * c-valprint.c (c_val_print): Ditto.
10508 * expprint.c (print_subexp): Ditto.
10509 * findvar.c (locate_var_value): Ditto.
10510 * infcmd.c (jump_command): Ditto.
10511 * linespec.c (decode_line_2, decode_compound): Ditto.
10512 * maint.c (maintenance_translate_address): Ditto.
10513 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10514 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10516 * p-valprint.c (pascal_val_print): Ditto.
10517 * stabsread.c (define_symbol): Ditto.
10518 * stack.c (print_frame, frame_info, print_block_frame_locals)
10519 (print_frame_arg_vars, return_command): Ditto.
10520 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10521 * symmisc.c (print_symbol): Ditto.
10522 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10523 (compare_search_syms, print_symbol_info, print_msymbol_info)
10524 (rbreak_command): Ditto.
10525 * tracepoint.c (tracepoints_info): Ditto.
10526 * typeprint.c (typedef_print): Ditto.
10527 * valops.c (value_of_variable, hand_function_call): Ditto.
10528 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10529 * ada-typeprint.c: Update Copyright.
10530 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10531 * tracepoint.c, cli/cli-cmds.c: Ditto.
10533 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10535 * frame.c (generic_unwind_get_saved_register): Make non-static.
10536 * frame.h (generic_unwind_get_saved_register): Declare.
10537 * mips-tdep.c (read_next_frame_reg): Fetch register from
10538 current regcache when frame is NULL.
10539 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10541 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10542 instead of frame_register_unwind().
10544 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10546 * remote-sim.c (gdbsim_insert_breakpoint)
10547 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10550 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10552 * remote.c (_initialize_remote): Add commands "set/show remote
10553 hardware-watchpoint-limit" and "set/show remote
10554 hardware-breakpoint-limit".
10555 (remote_hw_watchpoint_limit): Initialize to -1.
10556 (remote_hw_breakpoint_limit): Ditto.
10557 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10559 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10561 * coff-pe-read.c: New file - support reading of minimal symbols from a
10562 portable executable using the export table.
10563 * coff-pe-read.h: New file.
10564 * coffread.c: Include coff-pe-read.h.
10565 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10566 debugging symbols found.
10567 * Makefile.in (SFILES): Add coff-pe-read.o.
10568 (coff_pe_read_h): Define.
10569 (COMMON_OBS): Add coff-pe-read.o.
10570 (coffread.o): Add coff_pe_read_h dependency.
10571 (coff-pe-read.o): New target.
10573 2003-02-19 David Carlton <carlton@math.stanford.edu>
10575 * Makefile.in (SFILES): Add block.c.
10577 (COMMON_OBS): Add block.o.
10579 (x86-64-tdep.o): Add $(block_h).
10580 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10581 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10582 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10583 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10584 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10585 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10586 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10587 * value.h: Add opaque declaration for struct block.
10588 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10589 * ada-lang.h: Ditto.
10590 * x86-64-tdep.c: #include "block.h"
10591 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10592 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10593 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10594 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10595 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10596 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10597 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10598 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10599 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10600 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10601 * symtab.c (block_function): Ditto.
10602 (contained_in): Ditto.
10603 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10604 block.h. Add opaque declaration for struct block.
10605 * symtab.h: Move block_function and contained_in declarations to
10606 block.h. Add opaque declarations for struct block, struct
10608 (struct block): Move to block.h.
10609 (struct blockvector): Ditto.
10610 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10611 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10612 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10613 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10614 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10616 * block.c: New file.
10617 * block.h: New file.
10619 2003-02-19 Theodore A. Roth <troth@openavr.org>
10621 * avr-tdep.c (avr_extract_return_value): Remove function.
10622 (avr_store_return_value): Remove function.
10623 (avr_extract_struct_value_address): Remove function.
10624 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10626 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10628 * rs6000-tdep.c: Include "gdb_assert.h".
10629 (registers_e500): Add "acc" and "spefscr".
10630 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10631 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10632 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10634 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10636 2003-02-18 Keith Seitz <keiths@redhat.com>
10638 * Makefile.in: Add gdbtk-interps.c.
10640 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10642 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10643 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10645 2003-02-18 Andrew Cagney <cagney@redhat.com>
10647 * symtab.h (struct objfile): Add opaque declaration.
10649 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10651 From Jim Ingham <jingham@apple.com>:
10652 * dbxread.c (process_one_symbol): Use last_function_start rather
10653 than function_start_offset to find the real beginning of the
10654 current function. The latter is just the text section offset on
10655 some systems, the former is always the real function start.
10657 2003-02-17 Andrew Cagney <cagney@redhat.com>
10659 * configure.in: Revert ${target} != ${host}.
10661 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10663 * configure.in (Makefile): Use the test ${target} != ${host},
10664 instead of the absence of the "nm.h" file, to determine of the
10665 configuration non-native.
10666 * configure: Regenerate.
10668 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10670 From Brian Ford <ford@vss.fsi.com>
10672 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10673 conditionalize tui_active test.
10674 (lookup_cmd_1): Ditto.
10676 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10678 * configure.in: Add check for _etext.
10679 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10681 * config.in, configure: regenerated.
10683 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10685 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10687 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10689 * main.c (tui_version): Delete variable.
10690 (captured_main): When --tui, set interpreter_p to "tui" instead of
10691 enabling tui_version.
10692 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10694 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10695 * cli/cli-cmds.c (disassemble_command): Ditto.
10696 * defs.h (tui_version): Delete declaration.
10697 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10698 (tui-interp.o): Add rules.
10699 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10701 2003-02-14 Christopher Faylor <cgf@redhat.com>
10703 * win32-nat.c (register_loaded_dll): Correctly set address range for
10706 2003-02-12 Jason Molenda (jmolenda@apple.com)
10708 * symmisc.c (print_objfile_statistics): Include information about
10709 the number of psymtabs and symtabs in each object file.
10711 2003-02-13 Keith R Seitz <keiths@redhat.com>
10713 * main.h (struct captured_main_args): Add interpreter_p.
10714 * main.c (captured_main): Initialize interpreter_p from context.
10715 * gdb.c (main): Set interpreter_p argument.
10716 * Makefile.in (gdb.o): Add dependency for interps.h.
10718 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10720 * event-top.c (cli_command_loop): Delete declaration.
10721 (_initialize_event_loop): Delete function setting event_loop_hook.
10722 * event-top.h (cli_command_loop): Declare. Update copyright.
10723 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10724 * interps.c (current_interp_command_loop): When event_loop_p, call
10727 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10729 * interps.h (interp_command_loop_ftype): Change return type to
10732 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10734 * x86-64-tdep.c (x86_64_extract_return_value)
10735 (x86_64_store_return_value): Use regcache instead of regbuf.
10736 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10737 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10739 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10741 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10742 * aclocal.m4: Regenerate.
10743 * configure: Regenerate.
10745 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10746 TCL_LD_SEARCH_FLAGS.
10748 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10750 * dwarf2cfi.c: Reindented.
10752 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10754 * interps.c (clear_interpreter_hooks): Convert function definition
10757 2003-02-07 David Carlton <carlton@math.stanford.edu>
10759 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10761 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10763 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10764 (struct type): ...to here.
10765 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10767 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10768 (replace_type): Set length on all type variants for a given type.
10770 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10772 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10774 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10776 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10778 * Makefile.in (symm-nat.o): Update dependencies.
10779 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10780 (lynx-nat.o, ia64-linux-nat.): Ditto.
10781 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10782 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10783 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10785 * Makefile.in (inflow_h): Define.
10786 (procfs.o, inflow.o, procfs.o): Update dependencies.
10787 * inftarg.c (child_stop): Delete extern declaration of
10788 inferior_process_group. Include "inflow.h".
10789 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10790 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10791 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10792 (our_process_group, inferior_process_group): Extern declarations.
10794 * procfs.c: Include "gdb_assert.h".
10796 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10797 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10798 * jv-typeprint.c (java_type_print_base): Ditto.
10799 * typeprint.c (typedef_print): Eliminate STREQ.
10800 * cli/cli-script.c (define_command, define_command): Ditto.
10801 * main.c (captured_main): Ditto.
10802 * values.c (lookup_internalvar): Ditto.
10803 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10804 within `if' conditional.
10805 * linespec.c (decode_line_2): Ditto.
10806 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10807 (bfd_openw_with_cleanup): Ditto.
10809 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10811 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10812 legacy_extract_return_value and store_return_value to
10813 legacy_return_value.
10815 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10817 * win32-nat.c (get_relocated_section_addrs): New function. Find
10818 section load addresses for symbol handling in relocated DLLs.
10819 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10821 2003-02-05 Fred Fish <fnf@intrinsity.com>
10823 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10825 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10827 (angel_RDI_info): Ditto.
10828 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10830 (threads_continue_all_with_signals): Ditto.
10832 2003-02-05 Jim Ingham <jingham@apple.com>
10833 Keith Seitz <keiths@redhat.com>
10834 Elena Zannoni <ezannoni@redhat.com>
10835 Andrew Cagney <ac131313@redhat.com>
10837 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10838 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10839 (SUBDIR_MI_OBS): Add "mi-interp.o".
10840 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10841 (SFILES): Add "interps.c".
10842 (COMMON_OBS): Add "interps.o".
10843 (interps_h, mi_main_h): Define.
10844 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10845 (mi-main.o, main.o, event-top.o): Update dependencies.
10846 * cli/cli-interp.c: New file.
10847 * interps.h, interps.c: New files.
10848 * top.c: (gdb_init): Don't install the default interpreter, handed
10850 * main.c: Include "interps.h".
10851 (interpreter_p): Note that it should malloc'ed.
10852 (captured_command_loop): Call current_interp_command_loop.
10853 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10854 xfree and xstrdup when updating interpreter_p. Install the
10855 default interpreter. Add hack to stop mi1's copyright notice
10857 * event-top.h (gdb_setup_readline): Declare.
10858 (gdb_disable_readline): Declare.
10859 * event-top.c: Include "interps.h".
10860 (display_gdb_prompt): Call current_interp_display_prompt_p.
10861 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10862 gdb_stdlog, and gdb_stdtarg.
10863 (_initialize_event_loop): Don't call gdb_setup_readline.
10864 * cli-out.c (cli_out_set_stream): New function.
10865 * cli-out.h (cli_out_set_stream): Declare.
10867 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10869 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10870 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10871 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10872 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10873 config/i386/i386v42mp.mt: Removed.
10875 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10877 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10880 2003-02-05 Michael Chastain <mec@shout.net>
10882 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10883 2.12.1 and earlier versions.
10885 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10887 Remove orphaned hosts, targets and files.
10888 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10889 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10890 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10891 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10892 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10893 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10894 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10895 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10896 * config/sparc/tm-sp64sim.h: Delete.
10897 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10899 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10900 mips*-dec-mach3* targets.
10902 2003-02-04 Michael Chastain <mec@shout.net>
10904 * NEWS: Fix typo: sepcifying -> specifying.
10906 2003-02-04 Michael Chastain <mec@shout.net>
10908 * dwarfread.c: Add documentation on the state of dwarf-1,
10909 looking towards obsoletion.
10911 2003-02-03 Michael Chastain <mec@shout.net>
10913 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10914 gdb/testsuite/gdb.c++/pr-1023.exp.
10916 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10918 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10919 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10921 * utils.c (init_page_info): Delete reference to MPW in comments.
10922 * main.c (captured_main): Delete #ifdef MPW.
10924 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10926 * NEWS: Note that the m32r-*-elf* is obsolete.
10927 * monitor.c (monitor_expect): Obsolete reference to m32r.
10928 * configure.tgt: Mark m32r-*-elf* as obsolete.
10929 * MAINTAINERS: Mark m32k as obsolete.
10930 * m32r-rom.c: Obsolete file.
10931 * config/m32r/m32r.mt: Obsolete file.
10932 * config/m32r/tm-m32r.h: Obsolete file.
10933 * m32r-stub.c: Obsolete file.
10934 * m32r-tdep.c: Obsolete file.
10936 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10938 * NEWS: Mention that the z8k-zilog-none is obsolete.
10939 * MAINTAINERS: Mark z8k as obsolete.
10940 * configure.tgt: Obsolete the z8k-*-coff* target.
10941 * config/z8k/z8k.mt: Obsolete file.
10942 * config/z8k/tm-z8k.h: Obsolete file.
10943 * z8k-tdep.c: Obsolete file.
10945 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10947 * NEWS: Mention that the mn10200-elf is obsolete.
10948 * configure.tgt: Obsolete mn10200-*-* target.
10949 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10950 mention that the mn10200 is obsolete.
10951 * breakpoint.h: Ditto.
10952 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10953 * config/mn10200/mn10200.mt: Obsolete file.
10954 * config/mn10200/tm-mn10200.h: Obsolete file.
10955 * mn10200-tdep.c: Obsolete file.
10957 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10959 * MAINTAINERS: Mark h8500 as obsolete.
10960 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10961 * findvar.c (value_from_register): Ditto.
10962 * h8500-tdep.c: Mark file as obsolete.
10963 * config/h8500/h8500.mt: Ditto.
10964 * config/h8500/tm-h8500.h: Ditto.
10965 * NEWS: Mention that h8500 is obsolete.
10967 2003-02-04 David Carlton <carlton@math.stanford.edu>
10969 * objfiles.c (allocate_objfile): Always set name. Add comment at
10971 * jv-lang.c (get_dynamics_objfile): Add comment.
10973 2003-02-04 David Carlton <carlton@math.stanford.edu>
10975 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10976 * printcmd.c (build_address_symbolic): Replace uses of
10977 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10978 SYMBOL_NAME, and asm_demangle.
10981 2003-02-04 David Carlton <carlton@math.stanford.edu>
10983 * linespec.c (decode_compound): Extract code into
10985 (lookup_prefix_sym): New function.
10987 2003-02-04 David Carlton <carlton@math.stanford.edu>
10989 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10990 FLOAT_COERCION_BADNESS.
10991 * gdbtypes.c (rank_one_type): Replace all uses of
10992 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10994 2003-02-04 Jim Blandy <jimb@redhat.com>
10996 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10997 section, let dwarf_macinfo_section point to it, not
11000 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11002 Pointed out by Anton Blanchard <anton@samba.org>.
11003 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11004 (ppc_linux_at_sigtramp_return_path): Use it.
11006 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11008 * defs.h (streq): Add prototype.
11009 * utils.c (streq): New function.
11011 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11012 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11013 * mdebugread.c (new_symbol): Likewise.
11014 * stabsread.c (define_symbol): Likewise.
11015 * coffread.c (process_coff_symbol): Likewise.
11016 * dwarfread.c (new_symbol): Likewise.
11018 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11019 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11021 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11022 SYMBOL_INIT_DEMANGLED_NAME.
11023 * objfiles.c: Include "hashtab.h".
11024 (allocate_objfile): Call htab_set_functions_ex for the
11025 demangled_names_hash.
11026 (free_objfile): Call htab_delete for the demangled_names_hash.
11027 * objfiles.h (struct htab): Add declaration.
11028 (struct objfile): Add demangled_names_hash.
11029 * symfile.c: Include "hashtab.h".
11030 (reread_symbols): Call htab_delete for the demangled_names_hash.
11031 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11032 SYMBOL_NAME in the bcache.
11033 * symtab.c: Include "hashtab.h". Update comments.
11034 (create_demangled_names_hash, symbol_set_names): New functions.
11035 (symbol_find_demangled_name): New function, broken out from
11036 symbol_init_demangled_names.
11037 (symbol_init_demangled_names): Use it.
11038 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11039 (SYMBOL_SET_NAMES): New macro.
11040 (symbol_set_names): Add prototype.
11042 2003-02-03 Jim Blandy <jimb@redhat.com>
11044 Use a single, consistent representation for an empty minimal
11045 symbol table in an objfile.
11046 * objfiles.c (terminate_minimal_symbol_table): New function.
11047 (allocate_objfile): Call it.
11048 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11049 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11051 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11052 objfile has minimal symbols, compare minimal_symbol_count to zero,
11053 instead of comparing msymbols with NULL.
11054 * objfiles.c (have_minimal_symbols): Same.
11055 * solib-sunos.c (solib_add_common_symbols): Call
11056 terminate_minimal_symbol_table.
11057 * symfile.c (reread_symbols): Same.
11059 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11061 * s390-tdep.c (s390_address_class_type_flags)
11062 (s390_address_class_type_flags_to_name)
11063 (s390_address_class_name_to_type_flags): New functions.
11064 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11065 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11067 2003-02-03 Michael Snyder <msnyder@redhat.com>
11069 * arm-tdep.c: Fix spell-o in comment.
11071 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11073 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11074 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11075 error messages to contain BFD filename.
11077 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11079 Fix PR gdb/742 gdb/743 gdb/877
11080 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11081 (do_mixed_source_and_assembly): Use
11082 make_cleanup_ui_out_tuple_begin_end and
11083 make_cleanup_ui_out_tuple_begin_end.
11084 (do_mixed_source_and_assembly): Ditto.
11085 * thread.c (do_captured_list_thread_ids): Ditto.
11086 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11087 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11088 ui_out_tuple_end): Delete prototypes.
11089 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11090 ui_out_list_end, ui_out_tuple_end): Delete.
11092 From Kevin Buettner <kevinb@redhat.com>:
11093 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11094 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11095 (do_cleanup_table_end): New functions.
11096 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11097 Use cleanups to invoke_ui_out_tuple_end().
11098 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11099 * cli/cli-setshow.c (cmd_show_list): Use
11100 make_cleanup_ui_out_tuple_begin_end.
11102 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11104 * frame.c (frame_unwind_register): New function.
11105 (frame_unwind_unsigned_register): Use.
11106 (frame_unwind_signed_register): Use.
11107 (frame_read_register): New function.
11108 * frame.h (frame_unwind_register): Declare.
11109 (frame_read_register): Declare.
11111 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11112 and frame_unwind_register instead of read_memory, write_register
11113 and deprecated_write_register_bytes.
11115 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11117 * frame.h: Note that namelen can be negative.
11118 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11121 * NEWS: Mention that the d10v's `regs' command is deprecated.
11122 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11123 (d10v_print_registers_info): New function.
11124 (show_regs): Call d10v_print_registers_info.
11125 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11127 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11129 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11130 lost in the previous patch.
11132 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11134 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11135 * stack.c (print_frame_info_base): Output complete FRAME tuple
11136 for synthesized frames.
11138 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11140 * mips-nat.c (zerobuf): Delete.
11141 (fetch_inferior_registers): Alloc local zerobuf.
11142 (fetch_core_registers): Alloc local zerobuf.
11143 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11144 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11145 * thread-db.c (thread_db_store_registers): Ditto.
11146 * sh-tdep.c (sh_do_register): Ditto.
11147 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11148 * remote-sim.c (gdbsim_store_register): Ditto.
11149 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11150 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11151 * monitor.c (monitor_supply_register): Ditto.
11152 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11153 * mips-nat.c (fetch_inferior_registers): Ditto.
11154 * m68klinux-nat.c (fetch_register): Ditto.
11155 * lynx-nat.c (fetch_inferior_registers): Ditto.
11156 (fetch_inferior_registers): Ditto.
11157 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11158 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11159 (hpux_thread_store_registers): Ditto.
11160 * hppah-nat.c (fetch_register): Ditto.
11161 * hppab-nat.c (fetch_register): Ditto.
11162 * hppa-tdep.c (pa_register_look_aside): Ditto.
11163 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11164 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11166 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11168 * gdbarch.sh: Explictly specify all method levels. When a
11169 variable with an empty level, provide a non-multi-arch default.
11170 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11171 * gdbarch.h: Re-generate.
11172 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11173 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11175 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11177 * defs.h (host_pointer_to_address): Delete declaration.
11178 (address_to_host_pointer): Delete declaration.
11179 * utils.c (host_pointer_to_address): Delete function.
11180 (address_to_host_pointer): Delete function.
11181 * procfs.c (procfs_address_to_host_pointer): New function.
11182 * procfs.c (proc_set_watchpoint): Use.
11183 (procfs_can_use_hw_breakpoint): Update comments.
11184 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11185 (som_solib_add): Use.
11186 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11187 * hppa-tdep.c (unwind_command): Use.
11189 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11191 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11194 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11195 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11196 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11197 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11198 (define_symbol): Update.
11199 * symfile.c (generic_load): Remove references to nindy.
11200 * symtab.c: Remove references to nindy.
11202 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11204 * infcmd.c (print_float_info): Delete code conditional on
11206 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11207 * config/m68k/nm-apollo68b.h: Ditto.
11208 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11209 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11210 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11212 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11214 * config/i386/tm-i386os9k.h: Removed.
11216 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11217 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11218 they're identical to i[3456]86-*-sysv* now.
11219 * config/i386/i386v32.mh: Removed.
11220 * config/i386/xm-i386v32.h: Removed.
11221 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11223 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11225 * config/i386/i386dgux.mh: Removed.
11226 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11228 * configure.in: Fix typo.
11229 * configure: Regenerated.
11231 2003-01-31 David Carlton <carlton@math.stanford.edu>
11233 * dwarf2read.c (dwarf2_locate_sections): Set
11234 dwarf_ranges_section.
11236 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11238 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11239 * utils.c: Update comments documenting legitimate uses of PTR.
11241 * utils.c: Re-indent.
11243 * config/djgpp/fnchange.lst: Delete nindy files.
11244 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11245 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11246 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11247 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11248 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11249 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11250 * Makefile.in (init.c): Remove nindy references.
11251 (saber_gdb): Delete rule.
11252 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11253 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11255 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11256 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11257 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11258 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11259 nindy-share/stop.h.
11260 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11261 * saber.suppress: Delete file.
11263 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11265 * dbxread.c (stabs_data): New static variable.
11266 (fill_symbuf): Support an in-memory buffer for stabs data.
11267 (stabs_seek): New function.
11268 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11269 (read_ofile_symtab): Use stabs_seek.
11270 (elfstab_build_psymtabs): Take an asection* instead of
11271 an offset and size. Relocate the stabs data if necessary.
11272 Save the section* for dbx_psymtab_to_symtab.
11273 * dwarf2read.c: Add section variables for each debug section.
11274 (dwarf2_locate_sections): Fill them in.
11275 (dwarf2_read_section): Take an asection* argument.
11276 Relocate the section contents if necessary.
11277 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11278 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11279 it to dwarf2_read_section.
11280 (dwarf2_build_frame_info): Update callers.
11281 * elfread.c (elf_symfile_read): Update call to
11282 elfstab_build_psymtabs.
11283 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11284 (DBX_STAB_SECTION): New macro.
11285 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11286 * symfile.c (symfile_dummy_outputs): New function.
11287 (symfile_relocate_debug_section): New function.
11288 * symfile.h (symfile_relocate_debug_section): Add prototype.
11290 2003-01-31 Richard Henderson <rth@redhat.com>
11292 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11293 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11294 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11295 * alpha-tdep.c (alpha_register_name): Add "unique".
11296 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11297 (ALPHA_UNIQUE_REGNUM): New.
11298 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11300 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11302 * README: Remove reference to Ericsson 1800 monitor.
11303 * Makefile.in (remote-es.o): Delete rule.
11304 (ALLDEPFILES): Delete remote-es.c.
11305 * remote-es.c: Delete file.
11306 * config/m68k/es1800.mt: Delete file.
11307 * config/djgpp/fnchange.lst: Update.
11308 * configure.tgt: Delete m68*-ericsson-* target.
11310 2003-01-31 Adam Fedor <fedor@gnu.org>
11312 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11313 Remove duplicate/shadowing variable of same name.
11315 2003-01-30 Jim Blandy <jimb@redhat.com>
11317 * symfile.c (find_separate_debug_file): Assert that the objfile's
11318 directory name we compute ends with a slash, and then assume that
11319 that's so everywhere we use it.
11321 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11323 * valops.c (value_assign): Flush frame cache after stores to memory
11326 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11328 * Makefile.in (mon960-rom.o): Delete rule.
11329 * mon960-rom.c: Delete file.
11331 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11333 * d10v-tdep.c: Include "frame-unwind.h".
11334 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11336 (next_addr, uses_frame): Delete.
11337 (struct d10v_unwind_cache): Define.
11338 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11339 Use info instead of next_addr and uses_frame globals.
11340 (d10v_frame_init_saved_regs): Delete function.
11341 (d10v_init_extra_frame_info): Delete function.
11342 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11343 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11344 init_frame_pc or frame_saved_pc.
11345 (d10v_pop_frame): Delete function.
11346 (do_d10v_pop_frame): Delete function.
11347 (d10v_frame_chain): Delete function.
11348 (d10v_frame_chain_valid): Delete function.
11349 (d10v_frame_pc_unwind): New function.
11350 (d10v_frame_id_unwind): New function.
11351 (saved_regs_unwinder): New function.
11352 (d10v_frame_register_unwind): New function.
11353 (d10v_frame_pop): New function.
11354 (d10v_frame_unwind): New variable.
11355 (d10v_frame_p): New function.
11356 (d10v_frame_saved_pc): Delete function.
11357 * Makefile.in (d10v-tdep.o): Update dependencies.
11359 2003-01-30 J. Brobecker <brobecker@gnat.com>
11361 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11362 causing some regressions due to a change in the default value
11365 2003-01-29 Richard Henderson <rth@redhat.com>
11366 Elena Zannoni <ezannoni@redhat.com>
11367 Daniel Jacobowitz <drow@mvista.com>
11370 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11372 (RANGES_SECTION): New.
11373 (dwarf_ranges_buffer): New variable.
11374 (struct comp_unit_head): Add member "die".
11375 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11376 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11377 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11378 (dwarf2_locate_sections): Likewise.
11379 (dwarf2_build_psymtabs): Read .debug_ranges.
11380 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11381 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11382 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11383 Look for DW_AT_ranges and return the bounding box.
11385 2003-01-29 Brian Ford <ford@vss.fsi.com>
11387 * win32-nat.c (cygwin_pid): Removed as unused.
11388 (child_attach): Try fall back to Cygwin pid.
11390 2003-01-29 Jim Blandy <jimb@redhat.com>
11392 * objfiles.h (struct objfile): Doc fix.
11394 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11396 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11397 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11398 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11399 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11400 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11401 (FRAME_SAVED_PC): Change to a function with predicate.
11402 * gdbarch.h, gdbarch.c: Re-generate.
11404 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11406 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11408 * complaints.c (complain): Delete function.
11409 * complaints.h (struct deprecated_complaint): Delete definition.
11410 (complain): Delete declaration.
11412 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11414 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11417 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11419 * sentinel-frame.h, sentinel-frame.c: New files.
11420 * Makefile.in (frame.o): Update dependencies.
11421 (SFILES): Add sentinel-frame.c.
11422 (sentinel_frame_h): Define.
11423 (COMMON_OBS): Add sentinel-frame.o.
11424 (sentinel-frame.o): Specify dependencies.
11425 * frame.c: Include "sentinel-frame.h".
11426 (frame_register_unwind): Rewrite assuming that there is always a a
11428 (frame_register, generic_unwind_get_saved_register): Ditto.
11429 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11430 (create_sentinel_frame, unwind_to_current_frame): New functions.
11431 (get_current_frame): Rewrite using create_sentinel_frame and
11432 unwind_to_current_frame. When possible, always create a frame.
11433 (create_new_frame): Set next to the sentinel frame.
11434 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11435 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11436 ID cache when necessary.
11437 (frame_saved_regs_id_unwind): Use frame_relative_level.
11438 (deprecated_generic_get_saved_register): Use frame_relative_level,
11439 get_frame_saved_regs, get_frame_pc, get_frame_base and
11441 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11444 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11446 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11448 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11450 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11451 (maintenance_set_profile_cmd): Use error () instead of warning ().
11453 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11455 * configure.in: Check that -pg works if using --enable-profiling.
11456 Check for monstartup and _mcleanup regardless of --enable-profiling.
11457 * maint.c: Check for monstartup and _mcleanup before using them.
11458 * config.in: Regenerated.
11459 * configure: Regenerated.
11461 2003-01-24 Nick Clifton <nickc@redhat.com>
11463 * Add sh2e support:
11465 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11467 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11468 (sh2e_show_regs): New.
11469 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11470 * config/sh/tm-sh.h: Added sh2e to comments.
11472 2003-01-23 Jim Blandy <jimb@redhat.com>
11474 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11475 symbols found)" message here; we haven't checked for a separate
11476 debug info file yet, so we don't know yet.
11477 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11478 we've looked everywhere. Also, there's no need to print a special
11479 message when we're loading the separate debug info file: the one
11480 symbol_file_add prints is fine.
11482 2003-01-23 Alexander Larsson <alexl@redhat.com>
11483 Jim Blandy <jimb@redhat.com>
11485 Add support for executables whose debug info has been separated
11486 out into a separate file, leaving only a link behind.
11487 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11488 and separate_debug_objfile_backlink.
11489 (put_objfile_before): New declaration.
11490 * symfile.c: #include "filenames.h".
11491 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11492 debug info in a separate file, read that, too. Save the addrs
11493 argument, so we can use it again to read the separated debug info;
11494 syms_from_objfile modifies the table we pass it.
11495 (reread_symbols): After re-reading an objfile, call
11496 reread_separate_symbols to refresh its separate debug info
11497 objfile, if it has one.
11498 (reread_separate_symbols, find_separate_debug_file,
11499 get_debug_link_info, separate_debug_file_exists): New functions.
11500 (debug_file_directory): New global var.
11501 (_initialize_symfile): Initialize debug_file_directory, and
11502 provide the new `set debug-file-directory' command to let the user
11504 * objfiles.c (free_objfile): If this objfile has its debug info in
11505 a separate objfile, free that one too. If this is itself a
11506 separate debug info objfile, clear our parent's backlink.
11507 (put_objfile_before): New function.
11508 * utils.c (gnu_debuglink_crc32): New function.
11509 * defs.h (gnu_debuglink_crc32): New declaration.
11510 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11511 * configure.in: Handle --with-separate-debug-dir config option.
11512 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11513 * acconfig.h (DEBUGDIR): New macro.
11514 * configure, aclocal.m4, config.in: Regenerated.
11516 2003-01-22 Jim Blandy <jimb@redhat.com>
11518 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11519 like the old symbol_file_add, but taking new arguments: you can
11520 now pass in either a `struct section_addr_info' list to say where
11521 each section is loaded, or a `struct section_offsets' table. Pass
11522 these new arguments through to syms_from_objfile as appropriate.
11523 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11524 with the appropriate quiescent values for the new arguments.
11526 * symfile.c: #include "gdb_assert.h".
11527 (syms_from_objfile): Add the ability to pass in a section offset
11528 table directly, as an alternative to the section_addr_info table.
11529 Document arguments better.
11530 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11531 * symfile.h (syms_from_objfile): Update declaration.
11532 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11534 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11536 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11538 Original patch by Tom Tromey <tromey@cygnus.com> and
11539 Jason Molenda <jmolenda@apple.com>.
11540 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11541 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11542 * NEWS: Mention profiling.
11543 * configure.in (--enable-gdbtk): Fix typo.
11544 (--enable-profiling): New. Set PROFILE_CFLAGS.
11545 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11547 (profiling_state): New variable.
11548 (mcleanup_wrapper): New function.
11549 (_initialize_maint): Remove NOTYET, fix call to
11550 add_setshow_boolean_cmd for "maint set profile".
11551 * configure: Regenerated.
11553 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11555 * Makefile.in (install-gdbtk): Install PNG images too.
11557 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11559 * exec.c (text_start): Delete global variable.
11560 (exec_file_attach): Make text_start local to the function.
11561 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11562 * valops.c (hand_function_call): Delete code that handles
11563 BEFORE_TEXT_END and AFTER_TEXT_END.
11564 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11565 of CALL_DUMMY_LOCATION.
11566 * gdbarch.c: Regenerate.
11567 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11568 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11569 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11570 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11571 (text_end): Delete extern declaration.
11573 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11575 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11576 * blockframe.c (backtrace_below_main): Move to "frame.c".
11577 (frame_chain_valid): Delete check for backtrace_below_main.
11578 (_initialize_blockframe): Delete initialization, move ``set
11579 backtrace-below-main'' command to "frame.c".
11580 (do_flush_frames_sfunc): Delete function.
11581 * frame.c: Include "command.h" and "gdbcmd.h".
11582 (frame_type_from_pc): New function.
11583 (create_new_frame): Use frame_type_from_pc.
11584 (legacy_get_prev_frame): New function.
11585 (get_prev_frame): Rewrite. When an old style frame, call
11586 legacy_get_prev_frame. Otherwize, unwind the PC first.
11587 (_initialize_frame): Add ``set backtrace-below-main'' command.
11588 * Makefile.in (frame.o): Update dependencies.
11590 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11592 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11593 DEPRECATED_REGISTERS_INFO.
11595 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11597 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11598 Maintainers'. Update `Various Maintainers'.
11600 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11602 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11603 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11604 Suppress actual parameters when `-'.
11605 * gdbarch.h, gdbarch.c: Regenerate.
11607 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11609 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11610 code handling dummy frames.
11612 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11614 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11615 (struct frame_unwind): Add field pop.
11616 * frame.h (frame_pop): Declare.
11617 * frame.c (frame_saved_regs_pop): New function.
11618 (trad_frame_unwinder): Add frame_saved_regs_pop.
11619 (frame_pop): New function.
11620 * dummy-frame.c (dummy_frame_pop): New function.
11621 (discard_innermost_dummy): New function.
11622 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11623 (dummy_frame_unwind): Add dummy_frame_pop.
11624 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11625 * valops.c (hand_function_call): Ditto.
11626 * stack.c (return_command): Ditto.
11628 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11630 * cris-tdep.c: Fix function declaration indentation.
11631 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11632 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11633 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11634 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11635 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11636 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11638 2003-01-18 Michael Chastain <mec@shout.net>
11640 * README (Unpacking and Installation -- quick overview):
11641 Warn against ".../gdb-5.3/gdb/configure".
11643 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11645 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11646 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11647 (struct frame_unwind): Declare opaque.
11648 (dummy_frame_p): Declare function.
11649 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11650 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11651 * dummy-frame.c: Include "frame-unwind.h".
11652 (dummy_frame_p): New function.
11653 (dummy_frame_unwind): New variable.
11654 * frame.c: Include "frame-unwind.h".
11655 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11656 to use the new unwind field.
11657 (set_unwind_by_pc): Delete function.
11658 (create_new_frame, get_prev_frame): Set unwind field using
11659 frame_unwind_find_by_pc.
11660 (trad_frame_unwind, trad_frame_unwinder): New variables.
11661 * frame.h (trad_frame_unwind): Declare variable.
11662 (frame_id_unwind_ftype): Delete declaration.
11663 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11664 (struct frame_unwind): Declare opaque.
11665 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11666 register_unwind with a single unwind pointer.
11667 * frame-unwind.h, frame-unwind.c: New files.
11668 * Makefile.in (SFILES): Add frame-unwind.c.
11669 (frame_unwind_h): Define.
11670 (COMMON_OBS): Add frame-unwind.o.
11671 (frame-unwind.o): Specify dependencies.
11672 (frame.o, dummy-frame.o): Update dependencies.
11674 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11676 * ada-valprint.c: Eliminate PTR.
11677 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11678 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11679 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11680 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11681 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11682 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11683 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11685 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11687 * main.c (captured_main): Don't use PTR.
11688 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11689 * gdbtypes.c (lookup_primitive_typename): Ditto.
11690 (lookup_struct_elt_type): Ditto.
11691 * f-valprint.c (info_common_command): Ditto.
11692 (list_all_visible_commons): Ditto.
11693 * jv-typeprint.c (java_type_print_base): Ditto.
11695 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11696 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11697 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11698 i386-interix-nat.c and i386-interix-tdep.c. Rename
11699 m68klinux-nat.c and m68klinux-tdep.c. Rename
11700 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11701 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11702 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11703 * main.c (captured_main): Use xfree, not free.
11705 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11707 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11708 ID back using a parameter.
11709 * frame.c (frame_id_unwind): Update call.
11710 (frame_saved_regs_id_unwind): Update.
11711 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11712 * dummy-frame.h (struct frame_id): Add opaque declaration.
11713 (dummy_frame_id_unwind): Update declaration.
11715 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11717 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11719 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11721 * MAINTAINERS (Stephen P. Smith): Updated email address.
11723 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11726 * breakpoint.c (until_break_command): Add new argument. Use it to
11727 decide whether to stop only at the current frame or not.
11728 * breakpoint.h (until_break_command): Update prototype.
11729 * infcmd.c (until_command): Add new argument to until_break_command
11731 (advance_command): New function.
11732 (_initialize_infcmd): Update help string for 'until' command.
11733 Add new 'advance' command.
11735 2003-01-14 David Carlton <carlton@math.stanford.edu>
11737 * linespec.c (decode_line_1): Normalize comments.
11738 (set_flags): Ditto.
11739 (locate_first_half): Ditto.
11740 (decode_compound): Ditto.
11741 (symtab_from_filename): Ditto.
11742 (decode_all_digits): Ditto.
11743 (decode_dollar): Ditto.
11744 (find_methods): Ditto.
11745 (find_toplevel_char): Ditto.
11747 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11749 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11750 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11751 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11752 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11753 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11754 * language.c, language.h, m32r-tdep.c: Update copyright.
11755 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11756 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11757 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11758 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11759 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11760 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11762 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11764 * stabsread.h (process_later, resolve_cfront_continuation):
11766 Update copyright years.
11767 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11768 Update copyright year.
11769 * dbxread.c(struct cont_elem): Obsolete.
11770 (process_later, process_now): Obsolete functions.
11771 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11772 Update copyright year.
11773 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11774 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11775 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11776 (parse_partial_symbols): Obsolete cfront support.
11778 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11780 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11781 read_cfront_baseclasses, read_cfront_member_functions,
11782 resolve_cfront_continuation,read_cfront_static_fields,
11783 copy_cfront_struct_fields): Obsolete functions.
11784 (define_symbol, read_one_struct_field): Obsolete cfront support.
11785 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11786 Update Copyright year.
11788 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11790 * stack.c (print_frame_info, print_stack_frame_base_stub,
11791 print_stack_frame_base, show_and_print_stack_frame_stub,
11792 show_and_print_stack_frame, print_only_stack_frame_stub,
11793 print_only_stack_frame): Delete functions.
11794 (print_stack_frame_stub): Call print_frame_info instead of
11795 print_frame_info_base.
11796 (print_frame_info_base): Rename to print_frame_info.
11797 (backtrace_command_1): Call print_frame_info, instead of
11798 print_frame_info_base.
11799 (current_frame_command): Call print_stack_frame, instead of
11800 print_only_stack_frame.
11801 (frame_command): Call print_stack_frame, instead of
11802 show_and_print_stack_frame.
11803 (up_command): Ditto.
11804 (down_command): Ditto.
11805 * frame.h (print_only_stack_frame): Delete prototype.
11806 * infrun.c (normal_stop): Call print_stack_frame, instead of
11807 show_and_print_stack_frame.
11808 * thread.c (info_threads_command): Call print_stack_frame, instead
11809 of print_only_stack_frame.
11811 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11813 * README (Graphical interface to GDB): Update URL. Point at
11816 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11819 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11821 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11824 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11826 * thread-db.c (attach_thread): Prototype.
11827 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11828 thread information (ti), and valid flags (th_valid, ti_valid).
11829 (attach_thread): Move target_pid_to_str call to after the thread
11830 is added to GDB's list. Initialize the cache.
11831 (thread_get_info_callback, thread_db_map_id2thr)
11832 (thread_db_get_info): New functions.
11833 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11834 (thread_db_store_registers, thread_db_thread_alive)
11835 (thread_db_get_thread_local_address): Use them.
11836 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11837 of calling error() for threads in unknown state.
11839 (clear_lwpid_callback): New function.
11840 (thread_db_resume): Use it to clear the cache.
11842 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11844 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11845 (resume_callback): Remove dead code.
11847 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11849 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11851 * gdbarch.h, gdbarch.c: Regenerate.
11852 * stack.c (frame_info): Only initialize the saved registers when
11853 FRAME_INIT_SAVED_REGS_P.
11854 * frame.c (frame_saved_regs_register_unwind): Assert
11855 FRAME_INIT_SAVED_REGS_P.
11856 (deprecated_generic_get_saved_register): Ditto.
11858 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11860 * source.c (openp): Squelch warning about "filename".
11862 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11864 * source.c (openp): If the file does not exist don't necessarily
11867 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11870 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11871 (integer_types_same_name_p): New function.
11872 (rank_one_type): Use it.
11873 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11875 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11877 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11879 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11880 * configure.in: Add --with-sysroot.
11881 * configure: Regenerated.
11882 * main.c (gdb_sysroot): New variable.
11883 (captured_main): Initialize gdb_sysroot.
11884 * defs.h (gdb_sysroot): New extern declaration.
11885 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11887 2003-01-12 Michael Chastain <mec@shout.net>
11889 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11891 2003-01-12 Michael Chastain <mec@shout.net>
11893 * top.c (print_gdb_version): Bump copyright year to 2003.
11895 2003-01-12 David Carlton <carlton@bactrian.org>
11897 * linespec.c (symtab_from_filename): Rename variable 's' to
11900 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11902 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11904 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11906 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11908 * d10v-tdep.c: Include "gdb_assert.h".
11909 (d10v_store_return_value): Rewrite to match current interface.
11910 (d10v_extract_struct_value_address): Ditto.
11911 (d10v_extract_return_value): Ditto.
11912 (d10v_gdbarch_init): Set store_restore_value,
11913 extract_struct_value_address and extract_return_value.
11915 2003-01-12 J. Brobecker <brobecker@gnat.com>
11917 * hpread.c (set_namestring): New procedure replacing the
11918 SET_NAMESTRING macro.
11919 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11920 by calls to set_namestring.
11922 2003-01-11 J. Brobecker <brobecker@gnat.com>
11924 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11925 a compilation warning.
11926 (hpread_process_one_debug_symbol): Likewise.
11928 2003-01-10 David Carlton <carlton@math.stanford.edu>
11930 * linespec.c (decode_line_1): Rename variable 's' to
11932 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11933 (decode_dollar): Ditto.
11934 (decode_variable): Ditto.
11935 (symbol_found): Ditto.
11937 2003-01-09 Michael Chastain <mec@shout.net>
11939 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11941 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11943 * win32-nat.c (set_process_privilege): New function.
11944 (child_attach): Call set_process_privilege() to enable the
11945 SE_DEBUG_NAME user privilege if available in process token.
11947 2003-01-10 J. Brobecker <brobecker@gnat.com>
11949 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11950 compilation error in the previous revision.
11952 2003-01-09 David Carlton <carlton@math.stanford.edu>
11954 * linespec.c: Update copyright.
11956 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11958 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11959 than inferior_ptid.
11960 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11962 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11964 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11966 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11967 (frame_saved_regs_zalloc): Update.
11968 (frame_saved_regs_register_unwind): Update.
11969 (create_new_frame): Update.
11970 (get_prev_frame): Update.
11971 (frame_extra_info_zalloc): Update.
11972 (deprecated_get_frame_saved_regs): Update.
11973 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11974 * cris-tdep.c: Update comment.
11976 * somsolib.h: Fix function indentation.
11977 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11978 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11979 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11980 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11981 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11983 * infrun.c (follow_fork): Use ISO C definition.
11984 * expprint.c (print_subexp): Use xfree instead of free.
11985 * charset.c: Include "gdb_string.h" instead of <string.h>.
11986 (register_iconv_charsets): Use ISO C definition.
11987 (host_charset, target_charset): Ditto.
11988 * Makefile.in (charset.o): Update dependencies.
11989 (mi-cmd-env.o): Update dependencies.
11991 2003-01-08 Andrew Cagney <cagney@redhat.com>
11993 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11996 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11998 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11999 build directories. Save edited gdb output in Mbuild.log. If a
12000 build fails, remove any final GDB executable.
12002 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12004 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12005 replacing hex constants with function names and stripping leading
12006 file name directory prefixes.
12008 2003-01-08 Andrew Cagney <cagney@redhat.com>
12010 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12013 2003-01-08 David Carlton <carlton@math.stanford.edu>
12015 * linespec.c (decode_line_1): Move code into decode_variable.
12016 (decode_variable): New function.
12018 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12020 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12022 2003-01-08 Andrew Cagney <cagney@redhat.com>
12024 * cris-tdep.c (cris_frame_init_saved_regs): Use
12025 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12027 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12028 (sh64_nofp_frame_init_saved_regs): Ditto.
12029 (sh_fp_frame_init_saved_regs): Ditto.
12030 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12031 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12032 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12033 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12035 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12037 * minsyms.c (lookup_minimal_symbol): Update comment.
12038 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12039 (lookup_minimal_symbol_solib_trampoline): Likewise.
12041 2003-01-08 Andrew Cagney <cagney@redhat.com>
12043 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12044 frame_relative_level.
12046 * alpha-tdep.c: Use get_frame_extra_info.
12047 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12048 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12049 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12050 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12052 * alpha-tdep.c: Use get_next_frame.
12053 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12054 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12055 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12056 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12057 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12058 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12059 * xstormy16-tdep.c: Ditto.
12061 2003-01-07 Andrew Cagney <cagney@redhat.com>
12063 * alpha-tdep.c: Use get_frame_base.
12064 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12065 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12066 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12067 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12068 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12069 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12070 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12071 * config/sparc/tm-sparc.h: Ditto.
12073 2003-01-07 Andrew Cagney <cagney@redhat.com>
12075 * frame.c (deprecated_get_frame_context): New function.
12076 (deprecated_set_frame_context): New function.
12077 * frame.h (deprecated_get_frame_context): Declare.
12078 (deprecated_set_frame_context): Declare.
12079 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12080 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12082 2003-01-07 Andrew Cagney <cagney@redhat.com>
12084 * frame.c (deprecated_set_frame_next_hack): New function.
12085 (deprecated_set_frame_prev_hack): New function.
12086 * frame.h (deprecated_set_frame_next_hack): Declare.
12087 (deprecated_set_frame_prev_hack): Declare.
12088 * mcore-tdep.c (analyze_dummy_frame): Use
12089 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12090 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12092 2003-01-07 David Carlton <carlton@math.stanford.edu>
12094 * linespec.c (decode_line_1): Move code into decode_dollar.
12095 (decode_dollar): New function.
12097 2003-01-07 Andrew Cagney <cagney@redhat.com>
12099 * arm-tdep.c (arm_init_extra_frame_info): Use
12100 deprecated_update_frame_base_hack.
12101 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12102 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12103 (fix_frame_pointer): Ditto.
12104 (mn10300_analyze_prologue): Ditto.
12106 2003-01-07 Andrew Cagney <cagney@redhat.com>
12108 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12109 extra_info using frame_extra_info_zalloc.
12110 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12111 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12112 (sh64_init_extra_frame_info): Ditto.
12113 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12114 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12115 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12116 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12117 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12118 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12119 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12120 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12121 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12122 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12123 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12124 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12126 * mn10300-tdep.c (analyze_dummy_frame): Use
12127 deprecated_set_frame_extra_info_hack.
12128 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12130 2003-01-07 J. Brobecker <brobecker@gnat.com>
12132 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12133 class is not scText. These do not define "real" procedures.
12134 (parse_partial_symbols): Likewise.
12136 2003-01-06 Michael Snyder <msnyder@redhat.com>
12138 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12140 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12142 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12143 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12144 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12145 deprecated_frame_xmalloc_with_cleanup.
12146 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12147 deprecated_frame_xmalloc.
12148 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12149 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12151 2003-01-06 Andrew Cagney <cagney@redhat.com>
12153 * x86-64-linux-tdep.c: Include "osabi.h".
12154 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12156 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12158 2003-01-06 Andrew Cagney <cagney@redhat.com>
12160 * MAINTAINERS (Target Instruction Set Architectures): Update
12161 arm-elf. Can be built with -Werror, has been multiarched.
12163 * value.h (unpack_long): Make buffer parameter constant.
12164 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12165 * scm-lang.h (scm_parse): Ditto.
12166 * defs.h (extract_typed_address, extract_address): Ditto.
12167 (extract_long_unsigned_integer): Ditto.
12168 * inferior.h (unsigned_pointer_to_address): Ditto.
12169 (signed_pointer_to_address): Ditto.
12170 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12171 * gdbarch.h, gdbarch.c: Regenerate.
12172 * findvar.c (extract_long_unsigned_integer): Update.
12173 (extract_address): Update.
12174 (extract_typed_address): Update.
12175 (unsigned_pointer_to_address): Update.
12176 * values.c (unpack_long): Update.
12177 (unpack_double): Update.
12178 (unpack_pointer): Update.
12179 (unpack_field_as_long): Update.
12180 * d10v-tdep.c (d10v_pointer_to_address): Update.
12181 * avr-tdep.c (avr_pointer_to_address): Update.
12182 * scm-lang.c (scm_unpack): Update.
12183 * findvar.c (signed_pointer_to_address): Update.
12185 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12187 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12188 since it is in i386-tdep.c.
12190 2003-01-06 J. Brobecker <brobecker@gnat.com>
12192 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12193 failure introduced in the previous change.
12195 2003-01-05 Michael Chastain <mec@shout.net>
12197 * README: Remove references to deleted remote-*.c files:
12198 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12199 remote-nrom.c, remote-os9k.c, remote-udi.c.
12201 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12203 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12204 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12205 i386_get_longjmp_target.
12207 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12209 * arm-tdep.c (prologue_cache): Change to a pointer.
12210 (_initialize_arm_tdep): Allocate prologue_cache.
12211 (check_prologue_cache): Update.
12212 (save_prologue_cache): Update.
12213 (arm_gdbarch_init): Update.
12215 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12217 * stabsread.c (update_method_name_from_physname): Call complaint()
12220 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12222 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12223 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12224 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12226 * blockframe.c: Include "gdbcmd.h" and "command.h".
12227 (backtrace_below_main): New variable.
12228 (file_frame_chain_valid, func_frame_chain_valid)
12229 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12230 (generic_func_frame_chain_valid): Remove functions.
12231 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12232 (_initialize_blockframe): New function.
12233 * Makefile.in (blockframe.o): Update dependencies.
12234 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12235 comment. Call frame_chain_valid ().
12236 * frame.h: Remove old prototypes. Add prototype for
12237 frame_chain_valid and update comments to match.
12238 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12239 Remove old comment.
12240 * gdbarch.h: Regenerated.
12241 * gdbarch.c: Regenerated.
12243 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12244 set_gdbarch_frame_chain_valid.
12245 * avr-tdep.c (avr_gdbarch_init): Likewise.
12246 * cris-tdep.c (cris_gdbarch_init): Likewise.
12247 * frv-tdep.c (frv_gdbarch_init): Likewise.
12248 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12249 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12250 (i386_nw_init_abi): Likewise.
12251 (i386_gdbarch_init): Likewise.
12252 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12254 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12255 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12256 * mips-tdep.c (mips_gdbarch_init): Likewise.
12257 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12258 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12259 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12260 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12261 * s390-tdep.c (s390_gdbarch_init): Likewise.
12262 * sh-tdep.c (sh_gdbarch_init): Likewise.
12263 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12264 * v850-tdep.c (v850_gdbarch_init): Likewise.
12265 * vax-tdep.c (vax_gdbarch_init): Likewise.
12266 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12268 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12269 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12270 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12271 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12272 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12273 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12274 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12275 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12277 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12279 * Makefile.in (acconfig_h): Remove incorrect macro.
12280 (config_h): Define.
12281 (osabi.o): Update dependencies.
12282 * configure.tgt: Set gdb_osabi based on target triplet.
12283 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12284 * configure: Regenerated.
12285 * config.in: Regenerated.
12286 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12287 (GDB_OSABI_DEFAULT): Define if not already defined.
12288 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12289 (set_osabi_string): New variables.
12290 (gdbarch_register_osabi): Add new OS ABI to
12291 gdb_osabi_available_names.
12292 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12293 (set_osabi, show_osabi): New functions.
12294 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12296 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12298 * arch-utils.c (gdbarch_info_init): Set osabi to
12299 GDB_OSABI_UNINITIALIZED.
12300 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12301 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12302 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12303 * gdbarch.c: Regenerated.
12304 * gdbarch.h: Regenerated.
12305 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12307 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12308 * osabi.h (enum gdb_osabi): Move to defs.h.
12309 (gdbarch_init_osabi): Update prototype.
12310 * defs.h (enum gdb_osabi): Moved here.
12311 * Makefile.in: Update dependencies.
12313 * alpha-tdep.h: Don't include "osabi.h".
12314 (struct gdbarch_tdep): Remove osabi member.
12315 * alpha-tdep.c: Include "osabi.h".
12316 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12317 iterate over arches. Update call to gdbarch_init_osabi.
12318 (alpha_dump_tdep): Don't dump osabi.
12319 * alpha-linux-tdep.c: Include "osabi.h".
12320 * alpha-osf1-tdep.c: Include "osabi.h".
12321 * alphafbsd-tdep.c: Include "osabi.h".
12322 * alphanbsd-tdep.c: Include "osabi.h".
12324 * arm-tdep.h: Don't include "osabi.h".
12325 (struct gdbarch_tdep): Remove osabi member.
12326 * arm-tdep.c: Include "osabi.h".
12327 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12328 iterate over arches. Update call to gdbarch_init_osabi.
12329 (arm_dump_tdep): Don't dump osabi.
12330 * arm-linux-tdep.c: Include "osabi.h".
12331 * armnbsd-tdep.c: Include "osabi.h".
12333 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12334 Update call to gdbarch_init_osabi.
12336 * i386-tdep.h: Don't include "osabi.h".
12337 (struct gdbarch_tdep): Remove osabi member.
12338 * i386-tdep.c: Include "osabi.h".
12339 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12340 iterate over arches. Update call to gdbarch_init_osabi.
12341 (i386_dump_tdep): Don't dump osabi.
12342 * i386-linux-tdep.c: Include "osabi.h".
12343 * i386-sol2-tdep.c: Include "osabi.h".
12344 * i386bsd-tdep.c: Include "osabi.h".
12345 * i386gnu-tdep.c: Include "osabi.h".
12346 * i386ly-tdep.c: Include "osabi.h".
12347 * i386nbsd-tdep.c: Include "osabi.h".
12348 * i386obsd-tdep.c: Include "osabi.h".
12350 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12351 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12352 check osabi when iterating over arches. Update call to
12353 gdbarch_init_osabi.
12354 (mips_dump_tdep): Don't dump osabi.
12356 * ns32k-tdep.h: Don't include "osabi.h".
12357 (struct gdbarch_tdep): Remove.
12358 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12359 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12360 allocate tdep. Update call to gdbarch_init_osabi.
12361 (ns32k_dump_tdep): Remove.
12362 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12363 * ns32knbsd-tdep.c: Include "osabi.h".
12365 * ppc-tdep.h: Don't include "osabi.h".
12366 (struct gdbarch_tdep): Remove osabi member.
12367 * rs6000-tdep.c: Include "osabi.h".
12368 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12369 osabi when iterating over arches. Update call to
12370 gdbarch_init_osabi.
12371 (rs6000_dump_tdep): Don't dump osabi.
12372 * ppc-linux-tdep.c: Include "osabi.h".
12373 * ppcnbsd-tdep.c: Include "osabi.h".
12375 * sh-tdep.h: Don't include "osabi.h".
12376 (struct gdbarch_tdep): Remove osabi member.
12377 * sh-tdep.c: Include "osabi.h".
12378 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12379 iterate over arches. Update call to gdbarch_init_osabi.
12380 (sh_dump_tdep): Don't dump osabi.
12381 * shnbsd-tdep.c: Include "osabi.h".
12383 * sparc-tdep.c: Include "osabi.h".
12384 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12385 iterate over arches. Update call to gdbarch_init_osabi.
12386 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12389 * vax-tdep.h: Don't include "osabi.h".
12390 (struct gdbarch_tdep): Remove.
12391 * vax-tdep.c: Include "osabi.h".
12392 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12393 iterate over arches. Don't allocate tdep. Update call
12394 to gdbarch_init_osabi.
12395 (vax_dump_tdep): Remove.
12396 (_initialize_vax_tdep): Update call to gdbarch_register.
12398 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12400 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12402 (breakpoint_re_set_one): Don't fetch the value for a disabled
12405 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12407 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12408 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12409 (COERCE_FLOAT_TO_DOUBLE): Remove.
12410 * gdbarch.c: Regenerate.
12411 * gdbarch.h: Regenerate.
12412 * Makefile.in: Remove value_h from gdbarch_h.
12413 * valops.c (coerce_float_to_double): New variable.
12414 (default_coerce_float_to_double): Remove.
12415 (standard_coerce_float_to_double): Remove.
12416 (value_arg_coerce): Use coerce_float_to_double.
12417 (_initialize_valops): Add "set coerce-float-to-double".
12418 * value.h (default_coerce_float_to_double): Remove prototype.
12419 (standard_coerce_float_to_double): Remove prototype.
12421 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12423 * mdebugread.c (parse_symbol): Likewise.
12424 * stabsread.c (define_symbol): Mark all functions as prototyped.
12426 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12427 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12428 set_gdbarch_coerce_float_to_double.
12429 * arm-tdep.c (arm_gdbarch_init): Likewise.
12430 * frv-tdep.c (frv_gdbarch_init): Likewise.
12431 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12432 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12433 * mips-tdep.c (mips_gdbarch_init): Likewise.
12434 (mips_coerce_float_to_double): Remove.
12435 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12436 (rs6000_coerce_float_to_double): Remove.
12437 * s390-tdep.c (s390_gdbarch_init): Likewise.
12438 * sh-tdep.c (sh_gdbarch_init): Likewise.
12439 (sh_coerce_float_to_double): Remove.
12440 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12441 (sparc_coerce_float_to_double): Remove.
12442 * v850-tdep.c (v850_gdbarch_init): Likewise.
12443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12444 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12445 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12446 (hppa_coerce_float_to_double): Remove prototype.
12447 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12449 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12451 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12453 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12455 Suggested by Stewart Brown <sb24@avaya.com>:
12456 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12457 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12458 (c_type_print_varspec_suffix): Likewise.
12460 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12462 * configure.in: Don't set and AC_SUBST SUBDIRS.
12463 * configure: Regenerated.
12465 * configure.in: Remove code dealing with shared libraries.
12466 * Makefile.in: Remove HLDFLAGS and HLDENV.
12467 * configure: Regenerated.
12469 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12471 * frame.c (deprecated_frame_xmalloc): New function.
12472 (deprecated_set_frame_saved_regs_hack): New function.
12473 (deprecated_set_frame_extra_info_hack): New function.
12474 * frame.h (deprecated_frame_xmalloc): Declare.
12475 (deprecated_set_frame_saved_regs_hack): Declare.
12476 (deprecated_set_frame_extra_info_hack): Declare.
12478 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12480 * configure.in: Move code that provides the --enable-gdbtk option
12481 right after the code that handles the --enable-tui option, and
12482 polish it somewhat.
12483 * configure: Regenerated.
12485 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12486 AC_CHECK_FUNCS and remove the old check for pread64.
12487 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12488 * acconfig.h (_GNU_SOURCE): Add.
12489 (HAVE_PREAD64): Remove.
12490 * configure, aclocal.m4, config.in: Regenerated.
12492 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12494 * alpha-tdep.c: Use get_frame_saved_regs.
12495 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12496 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12497 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12498 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12499 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12501 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12503 * configure.in: Remove all use of the SUBDIRS variable; add
12504 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12505 code providing the --enable-multi-ice option, and move it right in
12506 front of the code that checks whether gdbserver is supported.
12508 * configure: Regenerated.
12509 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12512 2003-01-03 Andrew Cagney <cagney@redhat.com>
12514 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12515 * avr-tdep.c, cris-tdep.c: Ditto.
12516 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12517 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12519 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12521 * configure.in: Remove --enable-netrom option.
12522 * configure: Regenerated.
12524 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12526 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12527 declaration for `struct re_pattern_buffer' instead.
12528 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12530 2003-01-03 J. Brobecker <brobecker@gnat.com>
12532 * mdebugread.c (parse_symbol): Count until the stEnd matching
12533 the structure name.
12535 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12537 * configure.in: Remove --with-cpu option.
12538 subscripts. Remove evil changequotes here.
12539 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12540 * config.in, configure: Regenerated.
12542 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12543 * configure.in: Cleanup section that sources GDB and BFD configure
12544 subscripts. Remove evil changequotes here.
12545 * config.in, configure: Regenerated.
12547 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12549 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12550 frame accessor methods.
12551 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12552 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12553 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12554 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12555 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12556 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12557 * z8k-tdep.c: Ditto.
12559 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12561 * configure.in: Remove UI_OUT configuration code.
12562 * ada-lang.c: Update assuming UI_OUT is always true.
12563 * Makefile.in (UIOUT_CFLAGS): Remove.
12564 * configure: Regenerated.
12565 * TODO: Remove blurb about elimination of -DUI_OUT.
12567 * configure.in: Move code that provides the --enable-gdbcli,
12568 --enable-gdbmi options right before the code that handles the
12569 --enable-tui option. Polish a bit.
12570 * configure: Regenerated.
12572 * configure.in: Rewrite check for GNU regex and the
12573 --without-included regex option, and move it into the "Checks for
12574 library functions" section. This makes us use the system regex
12575 again by default on systems with version 2 of the GNU C library.
12576 This was apparently broken.
12577 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12578 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12579 * config.in, configure: Regenerated.
12581 * configure.in: Move code that provides the --enable-tui option
12582 before the "Checks for libraries" section. Polish the code
12583 somewhat and set need_curses to yes if we build the TUI. Rewrite
12584 code that looks for a library providing termcap functionality to
12585 match more closely what's done in the Readline library, and move
12586 it into to the "Checks for libraries" section.
12587 * configure: Regenerated.
12588 * Makefile.in (TERMCAP): Remove variable.
12589 * config/i386/go32.mh (TERMCAP): Remove variable.
12591 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12593 * MAINTAINERS: Mention gdb_mbuild.sh.
12594 * gdb_mbuild.sh: Rewrite.
12596 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12598 * configure.in: Fix typo in last change.
12599 * config.in, configure: Regenerated.
12601 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12603 * valarith.c (value_binop): Delete obsolete code and comments.
12604 * configure.host: Ditto.
12605 * buildsym.h (make_blockvector): Ditto.
12606 * buildsym.c (make_blockvector): Ditto.
12607 * defs.h (enum language): Ditto.
12608 (chill_demangle): Ditto.
12609 * elfread.c (elf_symtab_read): Ditto.
12610 * dwarfread.c (CHILL_PRODUCER): Ditto.
12611 (set_cu_language): Ditto.
12612 (handle_producer): Ditto.
12613 * expprint.c (print_subexp): Ditto.
12614 * gdbtypes.c (chill_varying_type): Ditto.
12615 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12616 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12617 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12618 (chill_varying_type): Ditto.
12619 * language.h (_LANG_chill): Ditto.
12620 * language.c (binop_result_type, integral_type): Ditto.
12621 (character_type, string_type, structured_type): Ditto.
12622 (lang_bool_type, binop_type_check): Ditto.
12623 * stabsread.h (os9k_stabs): Ditto.
12624 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12625 (define_symbol, read_type, read_struct_fields): Ditto.
12626 (read_array_type, read_enum_type, read_huge_number): Ditto.
12627 (read_range_type, start_stabs): Ditto.
12628 * symfile.c (init_filename_language_table): Ditto.
12629 (add_psymbol_with_dem_name_to_list): Ditto.
12630 * symtab.c (symbol_init_language_specific): Ditto.
12631 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12632 * symtab.h (struct general_symbol_info): Ditto.
12633 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12634 * typeprint.c (typedef_print): Ditto.
12635 * utils.c (fprintf_symbol_filtered): Ditto.
12636 * valops.c (value_cast, search_struct_field, value_slice): Delete
12638 (varying_to_slice): Delete function.
12639 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12640 (varying_to_slice): Delete declaration.
12641 * MAINTAINERS: Update.
12643 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12645 * configure.in: Reorganize "Checks for library functions section"
12646 a bit. Remove check for `btowc' and `isascii' functions.
12647 * configure: Regenerated.
12649 * acconfig.h (_MSE_INT_H): Remove.
12650 * configure.in: Create "Checks for header files" section, and move
12651 appropriate tests there. Don't check for objlist.h, wchar.h,
12652 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12653 misdetection fix. Also add "Checks for types", "Checks for
12654 compiler characteristics" and "Checks for library functions"
12656 * config.in, configure: Regenerated.
12658 * configure.in: Create "Checks for programs" section, and move
12659 appropriate tests there.
12661 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12663 * configure.in: Create "Checks for libraries" section, and move
12664 appropriate tests there. Cleanup check for wctype in libw. Use
12665 AC_SEARCH_LIBS to see whether we need libsocket.
12666 * configure: Regenerated.
12668 For older changes see ChangeLog-2002
12674 version-control: never