1 2003-09-28 Andrew Cagney <cagney@redhat.com>
3 * frame.c (frame_read_unsigned_register): Delete function.
4 * frame.h (frame_read_unsigned_register): Delete declaration.
5 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6 get_frame_register_unsigned.
7 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
8 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
9 * d10v-tdep.c (d10v_print_registers_info): Ditto.
11 * frame.h (frame_read_register): Delete declaration.
12 * frame.c (frame_read_register): Delete function.
13 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
14 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
15 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
16 * mips-tdep.c (mips_register_to_value): Ditto.
17 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
18 * d10v-tdep.c (d10v_print_registers_info): Ditto.
20 * frame.c (frame_read_signed_register): Delete function.
21 (frame_read_unsigned_register): Update comments.
22 * frame.h (frame_read_signed_register): Delete declaration.
23 * h8300-tdep.c (h8300_print_register): Use
24 get_frame_register_signed.
25 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
27 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
28 Rename VALUE_RETURNED_FROM_STACK.
29 * infcmd.c (print_return_value): Update.
30 * infcall.c (call_function_by_hand): Update.
32 2003-09-28 Mark Kettenis <kettenis@gnu.org>
34 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
35 regcache argument and reverse the order of the other two
36 arguments. Remove local regcache variable. Determine
37 architecture from REGCACHE. Update comments.
38 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
39 reverse the order of the other two arguments. Remove local
40 regcache variable. Determine architecture from REGCACHE. Update
42 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
43 prototypes. Update comments.
44 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
46 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
48 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
49 * i386-interix-nat.c (supply_fpregset): Update.
50 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
51 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
52 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
53 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
54 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
56 * i386obsd-tdep.c (fetch_core_registers): Update.
57 * i386v4-nat.c (supply_fpregset): Update.
58 * x86-64-linux-nat.c (supply_fpregset): Update.
59 * x86-64-linux-tdep.c (fetch_core_registers): Update.
61 2003-09-27 Mark Kettenis <kettenis@gnu.org>
63 * i386-tdep.h: Put opaque declarations in alphabetical
64 order. Remove spurious whitespace.
65 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
66 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
67 * i386-tdep.c (MM0_REGNUM): Remove define.
68 (i386_mmx_regnum_p): Add gdbarch argument.
69 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
70 Rewrite using new macro definitions for FPU/SSE registers.
71 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
72 definitions from i387-tdep.h.
73 (i386_register_name): Update.
74 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
75 new macro definitions for FPU/SSE registers.
76 (i386_extract_return_value): Determine whether floating-point
77 registers are present by examining REGCACHE's architecture.
78 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
79 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
81 (i386_register_type): Update.
82 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
83 definitions for FPU registers. Use REGCACHE's architecture to
84 determine the appropriate register numbers.
85 (i386_pseudo_register_read, i386_pseudo_register_write,
86 i386_register_reggroup_p): Update.
87 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
89 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
90 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
91 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
92 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
93 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
94 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
96 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
97 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
98 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
99 definitions for FPU/SSE registers.
100 (FXSAVE_MXCSR_ADDR): New define.
101 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
103 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
104 (I387_ST0_REGNUM): Define.
106 * regcache.h (get_regcache_arch): New prototype.
107 * regcache.c (get_regcache_arch): New function.
109 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
112 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
113 Initialize using ARRAY_SIZE.
115 2003-09-27 Andrew Cagney <cagney@redhat.com>
117 * arch-utils.c (deprecated_init_frame_pc_default): Rename
118 "init_frame_pc_default".
119 * arch-utils.h (deprecated_init_frame_pc_default): Update.
120 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
121 * vax-tdep.c (vax_gdbarch_init): Update.
122 * v850-tdep.c (v850_gdbarch_init): Update.
123 * sh64-tdep.c (sh64_gdbarch_init): Update.
124 * s390-tdep.c (s390_gdbarch_init): Update.
125 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
126 * mcore-tdep.c (mcore_gdbarch_init): Update.
127 * h8300-tdep.c (h8300_gdbarch_init): Update.
128 * cris-tdep.c (cris_gdbarch_init): Update.
129 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
131 2003-09-26 Mark Kettenis <kettenis@gnu.org>
133 * regset.h: New file.
134 * Makefile.in (regset_h): Add.
136 2003-09-25 Andrew Cagney <cagney@redhat.com>
138 * frame.h (deprecated_frame_saved_regs): Rename
139 get_frame_saved_regs.
140 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
141 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
142 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
143 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
144 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
146 2003-09-25 Andrew Cagney <cagney@redhat.com>
148 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
149 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
151 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
152 arm*-*-* do not use the new frame code.
154 2003-09-25 David Carlton <carlton@kealia.com>
156 * c-exp.y: Remove 'register' declarations.
157 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
159 2003-09-25 David Carlton <carlton@kealia.com>
161 * c-exp.y: Include cp-support.h. Add qualified_type.
162 (yylex): Delete nested type hack; add comments.
163 * cp-namespace.c (cp_lookup_nested_type): New function.
164 * cp-support.h: Declare cp_lookup_nested_type.
165 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
166 instead of value_struct_elt_for_reference.
167 * valops.c: Include cp-support.h.
168 (value_aggregate_elt): New function.
169 (value_namespace_elt): Ditto.
170 (value_struct_elt_for_reference): Make static.
171 * value.h: Delete declaration of value_struct_elt_for_reference;
172 add declaration for value_aggregate_elt.
173 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
176 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
178 * stack.c: Include "reggroups.h".
179 (frame_info): Only display registers in all_reggroup.
180 * Makefile.in (stack.o): Update dependencies.
182 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
184 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
185 "add ip, sp #n" in the prologue.
186 (arm_scan_prologue): Ditto.
188 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
190 * MAINTAINERS (write after approval): Add myself.
192 2003-09-25 Andreas Schwab <schwab@suse.de>
194 * m68k-tdep.c: Include "dwarf2-frame.h".
195 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
196 * Makefile.in (m68k-tdep.o): Update dependencies.
198 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
200 * sh-tdep.c (struct frame_extra_info): Remove.
201 (struct sh_frame_cache): New structure.
202 (GET_SOURCE_REG): New macro extracting source register of an opcode.
203 (GET_TARGET_REG): Ditto but target register.
204 (GET_PUSHED_REG): Remove.
205 (IS_MOV_ARG_TO_REG): New macro.
206 (IS_MOV_ARG_TO_IND_R14): New macro.
207 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
208 (IS_MOVW_PCREL_TO_REG): New macro.
209 (IS_MOVL_PCREL_TO_REG): New macro.
210 (IS_SUB_REG_FROM_SP): New macro.
211 (IS_ARG_MOV): Remove.
212 (IS_MOV_TO_R14): Remove.
213 (IS_RESTORE_FP): New macro.
216 (IS_MOV_FP_SP): New macro.
217 (IS_ADD_REG_TO_FP): New macro.
218 (IS_ADD_IMM_FP): New macro.
219 (sh_skip_prologue_hard_way): Remove.
220 (sh_saved_pc_after_call): Remove.
221 (sh_frame_chain): Remove.
222 (sh_find_callers_reg): Remove.
223 (sh_nofp_frame_init_saved_regs): Remove.
224 (sh_fp_frame_init_saved_regs): Remove.
225 (sh_init_extra_frame_info): Remove.
226 (sh_analyze_prologue): New function.
227 (sh_skip_prologue): Remove deprecated code. Rely on new function
228 sh_analyze_prologue when after_prologue fails.
229 (sh_frame_saved_pc): Remove.
230 (sh_alloc_frame_cache): New function.
231 (sh_frame_cache): Ditto.
232 (sh_frame_prev_register): Ditto.
233 (sh_frame_this_id): Ditto.
234 (sh_frame_unwind): New structure defining the heuristic frame
236 (sh_frame_sniffer): New function.
237 (sh_unwind_sp): Ditto.
238 (sh_unwind_pc): Ditto.
239 (sh_unwind_dummy_id): Ditto.
240 (sh_frame_base_address): Ditto.
241 (sh_frame_base): New structure defining new frame base code.
242 (sh_in_function_epilogue_p): New function.
243 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
244 code and to call all new code instead. Initialize dwarf2 and
245 heuristic frame sniffer.
247 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
249 * parser-defs.h (struct exp_descriptor): New definition, containing
250 language-specific info for printing, prefixifying, dumping, and
251 evaluating expressions.
252 (exp_descriptor_standard): Declare new variable.
253 (print_subexp): Make global and declare here (from expprint.c).
254 (dump_subexp): Ditto.
255 (dump_subexp_body_standard): Declare.
256 (operator_length_standard): Declare.
257 (op_name_standard): Declare.
258 (print_subexp): Declare.
259 (print_subexp_standard): Declare.
261 * language.h (struct language_defn): Add la_exp_desc field to hold
262 pointer to table for language-specific operators.
263 Remove evaluate_exp field, which is now in struct exp_descriptor.
265 * parse.c (operator_length): Move most code to new
266 operator_length_standard function. Use language-specific information.
267 (operator_length_standard): New function taking most code from
269 (exp_descriptor_standard): New constant.
271 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
272 and OP_EXTENDED_LAST.
274 * expprint.c (print_subexp): Use language-specific print_subexp.
275 Make global; remove static declaration.
276 Move most code to print_subexp_standard.
277 (print_subexp_standard): New function, containing code formerly in
279 (op_name): Add expression to argument signature.
280 Use langauge-specific op_name.
281 Move most code to op_name_standard.
282 (op_name_standard): New function, containing code formerly in op_name.
283 (dump_subexp): Use new version of op_name function.
284 Use language-specific dump_subexp_body, and move most existing code to
285 dump_subexp_body_standard.
286 (dump_raw_expression): Use new op_name interface.
287 (dump_subexp_body): Move most code to dump_subexp_body_standard.
288 (dump_subexp_body_standard): New function, containing code formerly
291 * language.c (unknown_language): Add default la_exp_desc field and
292 remove evaluate_exp field.
293 (auto_language): Ditto.
294 (local_language): Ditto.
295 * f-lang.c (f_language_defn): Ditto.
296 * c-lang.c (c_language_defn): Ditto.
297 (cplus_language_defn): Ditto.
298 (asm_language_defn): Ditto.
299 (minimal_language_defn): Ditto.
300 * p-lang.c (pascal_language_defn): Ditto.
301 * m2-lang.c (m2_language_defn): Ditto.
302 * objc-lang.c (objc_language_defn): Ditto.
304 * jv-lang.c (exp_descriptor_java): New variable, containing
305 Java-specific expression evaluator.
306 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
308 * scm-lang.c (exp_descriptor_scm): New variable, containing
309 Scheme-specific expression evaluator.
310 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
312 * objc-lang.c (print_object_command): Take evaluate_exp from the
315 * Makefile.in (eval.o): Add dependency on parser-defs.h.
317 * eval.c: Include parser-defs.h for the full declaration of
319 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
321 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
323 * parser-defs.h (operator_length): Declare.
325 * parse.c (length_of_subexp): Use operator_length to get operator
326 lengths and arities for operators.
327 Move most code to new operator_length function.
328 (operator_length): New function absorbing most code from
330 (prefixify_subexp): Remove large case and use operator_length instead.
331 (parse_exp_1): Use renamings:
332 dump_prefix_expression => dump_raw_expression and
333 dump_postfix_expression => dump_prefix_expression.
335 * expression.h (dump_prefix_expression): Rename to ...
336 (dump_raw_expression): New name.
337 (dump_postfix_expression): Rename to ...
338 (dump_prefix_expression): New name.
340 * expprint.c (dump_subexp): Make global. Add comment.
341 Move most existing code to dump_subexp_body.
342 (dump_subexp_body): New function.
343 (dump_prefix_expression): Rename to dump_raw_expression.
344 Remove attempt to print the expression via print_expression: it can't
345 work before the expression is prefixified.
346 (dump_raw_expression): Renamed from dump_prefix_expression.
347 (dump_postfix_expression): Rename to dump_prefix_expression, since
349 Remove 'note' parameter, since this routine must be used on
350 prefixified expression.
351 (dump_prefix_expression): Renamed from dump_postfix_expression.
353 2003-09-22 Jim Blandy <jimb@redhat.com>
355 * dwarf2read.c (read_array_type): When building the type for an
356 array of unspecified length, make sure to choose the upper bound
357 so that the array's total length comes out to be zero --- that's
358 how we represent such arrays.
360 2003-09-22 Michael Chastain <mec@shout.net>
362 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
364 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
366 * top.c (quit_force): Fix indirect call to quit_target so
367 a struct qt_args pointer is passed.
369 2003-09-22 Andrew Cagney <cagney@redhat.com>
371 * arch-utils.h (init_frame_pc_noop): Delete declaration.
372 * arch-utils.c (init_frame_pc_noop): Delete function.
373 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
375 * mips-tdep.c (mips_gdbarch_init): Ditto.
376 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
377 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
379 (DEPRECATED_INIT_FRAME_PC): Delete macro.
380 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
382 (DEPRECATED_INIT_FRAME_PC): Delete macro.
384 2003-09-22 Anthony Green <green@redhat.com>
386 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
389 2003-09-20 Andrew Cagney <cagney@redhat.com>
391 * breakpoint.c: Eliminate ARGSUSED.
392 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
393 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
394 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
395 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
396 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
397 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
398 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
399 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
400 * wince.c, remote-vx.c: Ditto.
402 * cli/cli-script.c: Remove "register" attributes.
403 * config/pa/tm-hppa.h: Ditto.
404 * cli/cli-decode.c: Ditto.
405 * cli/cli-cmds.c: Ditto.
407 2003-09-19 Andrew Cagney <cagney@redhat.com>
409 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
410 DEPRECATED_NPC_REGNUM.
411 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
413 2003-09-19 Christopher Faylor <cgf@redhat.com>
415 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
417 2003-09-19 Jim Blandy <jimb@redhat.com>
419 * macrotab.c (macro_include): Use the correct comparison to find
420 the appropriate place for this inclusion in the list.
422 2003-09-19 Andrew Cagney <cagney@redhat.com>
424 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
425 (DEPRECATED_HPUX_TEXT_END): Define.
426 (deprecated_hpux_text_end): Declare.
427 (struct target_ops): Declare opaque.
428 * hppah-nat.c (text_end): Make static.
429 (deprecated_hpux_text_end): New function.
430 * exec.c (text_end): Delete global variable.
431 (NEED_TEXT_START_END): Do not define.
432 (exec_file_attach): Replace code computing "text_end" code with
433 call to DEPRECATED_HPUX_TEXT_END.
435 2003-09-19 Andrew Cagney <cagney@redhat.com>
437 * utils.c (align_up, align_down): New functions.
438 * defs.h (align_up, align_down): Declare.
439 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
440 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
442 (round_up, round_down): Delete functions.
443 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
445 (ROUND_DOWN, ROUND_UP): Delete macros.
446 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
447 * h8300-tdep.c: Replace "round_up" and "round_down" with
448 "align_up" and "align_down".
449 (round_up, round_down): Delete macros.
450 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
452 (ROUND_UP, ROUND_DOWN): Delete macros.
454 2003-09-18 J. Brobecker <brobecker@gnat.com>
456 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
457 hard-coded constant. Use the proper machine name instead.
459 2003-09-17 Andrew Cagney <cagney@redhat.com>
461 * sparc-tdep.c (legacy_register_name): Delete function.
462 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
463 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
464 * infcmd.c (gdb_register_name): Delete variable.
465 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
466 REGISTER_NAME and "tm.h".
467 * gdbarch.h, gdbarch.c: Regenerate.
468 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
469 REGISTER_NAMES in comments.
470 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
471 * m68klinux-nat.c (regmap): Ditto.
473 2003-09-17 Jim Blandy <jimb@redhat.com>
475 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
477 2003-09-17 Andrew Cagney <cagney@redhat.com>
479 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
480 (ppcnbsd_init_abi): Set "use_struct_convention" to
481 "ppcnbsd_use_struct_convention".
483 2003-09-17 Mark Kettenis <kettenis@gnu.org>
485 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
486 * gdbarch.h, gdbarch.c: Regenerate.
487 (stabs_argument_has_addr): New architecture method.
488 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
489 * arch-utils.c: Include "buildsym.h".
490 (default_stabs_argument_has_addr): New function.
491 * stabsread.c (define_symbol): Use stabs_argument_has_addr
492 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
494 2003-09-17 Andrew Cagney <cagney@redhat.com>
496 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
497 * gdbarch.h, gdbarch.c: Regenerate.
498 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
499 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
500 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
501 * sparcnbsd-tdep.c: Update.
503 2003-09-17 Andrew Cagney <cagney@redhat.com>
505 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
506 * gdbarch.h, gdbarch.c: Regenerate.
507 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
508 * d10v-tdep.c, frame.c: Update.
509 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
510 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
511 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
512 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
513 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
514 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
515 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
516 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
517 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
518 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
519 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
520 * config/pa/nm-hppah.h: Update.
522 2003-09-16 Andrew Cagney <cagney@redhat.com>
524 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
525 "use_struct_convention" to "ppc_linux_use_struct_convention".
526 (ppc_linux_use_struct_convention): New function.
527 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
528 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
529 "rs6000_use_struct_convention".
530 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
532 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
535 2003-09-16 Andrew Cagney <cagney@redhat.com>
537 * buildsym.c: Remove more occurances of "register".
538 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
539 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
540 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
541 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
542 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
543 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
544 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
545 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
547 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
549 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
550 numbers to enumeration values.
551 * sh-tdep.c: Accomodate above change.
552 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
553 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
554 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
555 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
556 (IS_FPUSH): Rename from IS_FMOV.
557 (sh_extract_struct_value_address): Remove useless comment.
558 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
559 instead of own local values.
560 (sh_dump_tdep): Remove.
561 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
562 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
564 2003-09-15 Andrew Cagney <cagney@redhat.com>
566 * doublest.c (convert_floatformat_to_doublest): No longer need to
567 cast "exp_bias" to an int. Reverts 2002-12-04 change.
569 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
571 * values.c (unpack_double): Call floatformat_is_valid.
573 2003-09-15 Mark Kettenis <kettenis@gnu.org>
575 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
576 ps_strings into a long.
578 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
579 _initialize_am64fbsd_nat.
581 2003-09-15 Kevin Buettner <kevinb@redhat.com>
583 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
584 associated with DW_AT_ranges attribute is out of bounds.
586 2003-09-15 David Lecomber <dsl@sources.redhat.com>
588 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
590 2003-09-14 Michael Chastain <mec@shout.net>
592 * config/m68k/nm-apollo68v.h: Delete.
593 * config/m68k/xm-apollo68v.h: Delete.
595 2003-09-14 Andrew Cagney <cagney@redhat.com>
597 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
598 * dcache.c: Update copyrights and descriptions.
599 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
601 2003-09-14 Andrew Cagney <cagney@redhat.com>
603 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
604 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
606 2003-09-14 Andrew Cagney <cagney@redhat.com>
608 * alpha-nat.c: Remove some occurances of "register".
609 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
610 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
611 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
612 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
613 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
614 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
615 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
616 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
617 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
618 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
619 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
620 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
621 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
622 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
623 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
624 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
625 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
626 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
627 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
628 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
629 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
630 * values.c, vax-tdep.c, xcoffread.c: Ditto.
632 2003-09-13 Andrew Cagney <cagney@redhat.com>
634 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
635 * ppc-tdep.h (struct regcache): Declare opaque.
636 * objfiles.h (struct objfile_data): Declare opaque.
637 * cp-support.h (struct objfile): Declare opaque.
638 * linux-nat.h (target_waitstatus): Declare opaque.
640 2003-09-14 Mark Kettenis <kettenis@gnu.org>
642 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
643 (stabs_argument_has_addr): New architecture method.
644 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
645 * arch-utils.c: Include "buildsym.h".
646 (default_stabs_argument_has_addr): New function.
647 * stabsread.c (define_symbol): Use stabs_argument_has_addr
648 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
650 * cris-tdep.c (cris_gdbarch_init): Set
651 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
652 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
653 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
654 * mips-tdep.c (mips_gdbarch_init): Likewise.
655 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
656 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
658 2003-09-13 Andrew Cagney <cagney@redhat.com>
660 * values.c (using_struct_return): Delete "function" and "funcaddr"
662 * value.h (using_struct_return): Update declaration.
663 * infcmd.c (finish_command_continuation): Update.
664 (finish_command): Update.
665 * infcall.c (call_function_by_hand): Update.
666 * eval.c (evaluate_subexp_standard): Update.
668 2003-09-13 Christopher Faylor <cgf@redhat.com>
670 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
671 SSE registers since gdb will not operate correctly without this.
672 Restore include file ordering munged in previous change.
673 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
675 2003-09-13 Mark Kettenis <kettenis@gnu.org>
677 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
679 * gdbarch.c, gdbarch.h: Updated.
680 * infcall.c (call_function_by_hand): Update.
681 * stabsread.c (define_symbol): Updated.
683 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
685 2003-09-12 Christopher Faylor <cgf@redhat.com>
687 * win32-nat.c: Reorganize so that defines used by target headers are
688 actually defined by the system headers.
689 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
690 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
692 2003-09-12 Jim Blandy <jimb@redhat.com>
694 * dbxread.c (read_dbx_symtab): Don't report an internal error if
695 the file has no .data, .bss, or .rodata sections. Instead wait
696 until we see a variable alleged to live in one of those sections.
698 * dbxread.c (read_dbx_symtab): If we have no .data section and no
699 .bss section, presume that any variables we find live in the
702 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
703 offsets for global and static variables.
705 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
706 symbol types are, by definition, in the .data section, so it is
707 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
708 If there is no .data section, there should be no N_DATA or N_DATA
711 2003-09-12 Mark Kettenis <kettenis@gnu.org>
713 * amd64fbsd-tdep.c: Fix sigtramp recognition.
714 (amd64fbsd_sigcontext_addr): Rewrite.
715 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
717 (amd64fbsd_sc_reg_offset): Initialize with correct values.
718 (amd64fbsd_init_abi): Fix typo.
720 2003-09-12 Andrew Cagney <cagney@redhat.com>
722 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
723 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
725 2003-09-12 Andrew Cagney <cagney@redhat.com>
727 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
728 "entry_file_highpc". Update comments.
729 * defs.h (deprecated_inside_entry_file): Rename
731 * blockframe.c (deprecated_inside_entry_file): Rename
733 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
734 * vax-tdep.c (vax_frame_chain): Update.
735 * sh64-tdep.c (sh64_frame_chain): Update.
736 * sh-tdep.c (sh_frame_chain): Update.
737 * rs6000-tdep.c (rs6000_frame_chain): Update.
738 * ns32k-tdep.c (ns32k_frame_chain): Update.
739 * mips-tdep.c (mips_frame_chain): Update.
740 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
741 * m32r-tdep.c (m32r_frame_this_id): Update.
742 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
743 * frv-tdep.c (frv_frame_this_id): Update.
744 * d10v-tdep.c (d10v_frame_this_id): Update.
745 * cris-tdep.c (cris_frame_chain): Update.
746 * blockframe.c (legacy_frame_chain_valid): Update.
747 * avr-tdep.c (avr_frame_this_id): Update.
748 * arm-tdep.c (arm_prologue_this_id): Update.
749 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
750 * objfiles.c (objfile_relocate): Update.
751 * mipsread.c (mipscoff_symfile_read): Update.
752 (mipscoff_symfile_read): Update.
753 * mdebugread.c (parse_partial_symbols): Update.
754 * dwarfread.c (read_file_scope): Update.
755 * dwarf2read.c (read_file_scope): Update.
756 * dbxread.c (read_dbx_symtab): Update.
757 (read_dbx_symtab): Update.
758 * coffread.c (complete_symtab): Update.
760 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
762 * top.c (quit_target): New static helper function.
763 (quit_force): Moved code to quit_target(). Call quit_target()
764 via catch_errors() to catch errors during quit.
766 2003-09-11 David Carlton <carlton@kealia.com>
768 * buildsym.c (finish_block): Use allocate_block to allocate the
770 * mdebugread.c (new_block): Add FIXME.
772 2003-09-11 David Carlton <carlton@kealia.com>
774 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
775 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
776 (recursive_dump_type): Ditto.
777 * printcmd.c (print_formatted): Ditto.
778 * typeprint.c (print_type_scalar): Ditto.
779 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
780 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
781 * cp-support.h: Declare cp_check_possible_namespace_symbols,
782 maint_cplus_cmd_list.
783 * cp-support.c: Make maint_cplus_cmd_list extern.
784 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
786 (lookup_symbol_file): Look in possible namespace blocks when
788 (initialize_namespace_symtab): New.
789 (get_possible_namespace_block, free_namespace_block)
790 (check_possible_namespace_symbols)
791 (check_possible_namespace_symbols_loop)
792 (check_one_possible_namespace_symbol)
793 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
794 (_initialize_cp_namespace): Ditto.
795 * block.h: Declare allocate_block.
796 * block.c (allocate_block): New.
797 * jv-lang.c (get_java_class_symtab): Allocate blocks via
799 * symfile.h: Update declaration of add_psymbol_to_list.
800 * symfile.c (add_psymbol_to_list): Return the partial symbol in
802 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
803 scan_partial_symbols_call.
804 (scan_partial_symbols): Add NAMESPACE argument; update calls to
806 (add_partial_symbol): If necessary, scan mangled names for names
808 (add_partial_namespace): Add NAMESPACE argument; generate partial
809 symbols associated to namespaces.
810 (add_partial_enumeration): Add NAMESPACE argument.
811 (new_symbol): Allow namespace syms.
812 (read_namespace): Generate namespace syms.
813 * objfiles.h: Add opaque declaration of struct symtab.
814 (struct objfile): Add cp_namespace_symtab member.
815 * objfiles.c (allocate_objfile): Set
816 objfile->cp_namespace_symtab.
817 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
818 dictionary_h, command_h.
820 2003-09-11 Andrew Cagney <cagney@redhat.com>
822 * rs6000-tdep.c (rs6000_push_dummy_call): Use
823 regcache_raw_write_signed to set SP_REGNUM, move the operation to
824 near the function's end.
825 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
826 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
827 regcache_raw_write_signed to set SP_REGNUM.
829 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
831 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
832 orig_addrs is set up properly.
834 2003-09-11 Andrew Cagney <cagney@redhat.com>
836 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
837 * gdbarch.h, gdbarch.c: Re-generate.
838 * infcall.c (call_function_by_hand): Update.
839 * hppa-tdep.c (hppa_push_arguments): Update.
840 * ada-lang.c (place_on_stack): Update.
841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
842 * sparc-tdep.c (sparc_gdbarch_init): Update.
843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
844 * hppa-tdep.c (hppa_gdbarch_init): Update.
845 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
848 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
850 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
851 register do need a frame.
853 2003-09-11 Andrew Cagney <cagney@redhat.com>
855 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
856 buildable since GDB 5.0.
857 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
858 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
859 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
860 * irix4-nat.c: Delete file.
861 * config/mips/irix4.mh: Delete file.
862 * config/mips/irix3.mh: Delete file.
863 * config/mips/irix3.mt: Delete file.
864 * config/mips/tm-irix3.h: Delete file.
865 * config/mips/nm-irix3.h: Delete file.
866 * config/mips/xm-irix3.h: Delete file.
867 * config/mips/nm-irix4.h: Delete file.
868 * config/mips/xm-irix4.h: Delete file.
869 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
871 2003-09-10 J. Brobecker <brobecker@gnat.com>
873 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
874 * Makefile.in (hppa-tdep.o): Update dependencies.
876 2003-09-10 James E Wilson <wilson@specifixinc.com>
878 * MAINTAINERS: Change my e-mail address. Move to paper trail
881 2003-09-10 Kevin Buettner <kevinb@redhat.com>
883 * MAINTAINERS (frv): New ISA entry.
885 2003-09-10 Kevin Buettner <kevinb@redhat.com>
887 * frv-tdep.c (dis-asm.h): Include.
888 * Makefile.in (frv-tdep.o): Update dependencies.
890 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
892 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
893 Fix typo for high range of floating registers.
895 2003-09-09 David Carlton <carlton@kealia.com>
897 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
898 highpc initialization here out of scan_partial_symbols.
899 (scan_partial_symbols): Restructure into a recursive version,
900 calling add_partial_namespace and add_partial_enumeration when
902 (add_partial_namespace): New.
903 (add_partial_enumeration, locate_pdi_sibling): Ditto.
905 2003-09-09 Andrew Cagney <cagney@redhat.com>
907 * rs6000-tdep.c (ppc_push_return_address): Delete function.
908 (rs6000_push_dummy_call): Set LR to BP_ADDR.
909 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
910 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
912 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
913 (rs6000_push_dummy_call): Set the "TOC" register.
915 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
916 methods "max_register_raw_size", "max_register_virtual_size" or
917 "register_virtual_size".
919 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
921 * MAINTAINERS: Update my e-mail address.
923 2003-09-09 Andrew Cagney <cagney@redhat.com>
925 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
926 (rs6000_push_dummy_call): Store the struct return address.
927 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
929 2003-09-09 Andrew Cagney <cagney@redhat.com>
931 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
932 "ppc_sysv_abi_push_arguments".
933 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
934 "ppc_sysv_abi_push_arguments".
935 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
936 instead of "push_arguments".
937 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
939 2003-09-09 Andrew Cagney <cagney@redhat.com>
941 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
942 instead of CALL_DUMMY_ADDRESS.
944 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
946 * p-lang.c: Eliminate "register".
955 * objc-lang.c: Ditto.
957 2003-09-09 Nick Clifton <nickc@redhat.com>
959 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
961 2003-09-04 Andrew Cagney <cagney@redhat.com>
963 * avr-tdep.c: Include "dis-asm.h".
964 * cris-tdep.c: Include "dis-asm.h".
965 (cris_delayed_get_disassembler): Use "struct disassemble_info"
966 instead of corresponding typedef.
967 * h8300-tdep.c: Include "dis-asm.h".
968 * ia64-tdep.c: Include "dis-asm.h".
969 * i386-tdep.c: Include "dis-asm.h".
970 (i386_print_insn): Use "struct disassemble_info" instead of
971 corresponding typedef.
972 * m68k-tdep.c: Include "dis-asm.h".
973 * mcore-tdep.c: Include "dis-asm.h".
974 * mips-tdep.c: Include "dis-asm.h".
975 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
976 instead of corresponding typedef.
977 * ns32k-tdep.c: Include "dis-asm.h".
978 * s390-tdep.c: Include "dis-asm.h".
979 * sparc-tdep.c: Include "dis-asm.h".
980 * vax-tdep.c: Include "dis-asm.h".
981 * v850-tdep.c: Include "dis-asm.h".
982 * mn10300-tdep.c: Include "dis-asm.h".
983 * rs6000-tdep.c: Include "dis-asm.h".
984 * xstormy16-tdep.c: Include "dis-asm.h".
985 (_initialize_xstormy16_tdep): Delete "extern" declaration of
986 print_insn_xstormy16.
987 * Makefile.in (v850-tdep.o): Update dependencies.
988 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
989 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
990 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
991 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
992 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
993 (gdbarch_h): Remove $(dis_asm_h).
994 * disasm.c: Include "dis-asm.h".
995 (dis_asm_read_memory): Use "struct disassemble_info" instead of
996 corresponding typedef.
997 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
998 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
999 * gdbarch.sh: Do not include "dis-asm.h".
1000 (struct disassemble_info): Declare opaque.
1001 (TARGET_PRINT_INSN): Update declaration.
1002 * gdbarch.h, gdbarch.c: Re-generate.
1004 2003-09-08 Andrew Cagney <cagney@redhat.com>
1006 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1007 CALL_DUMMY_ADDRESS, change to a predicate.
1008 * gdbarch.h, gdbarch.c: Re-generate.
1009 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1010 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1011 * infcall.c (call_function_by_hand): Ditto.
1012 * sparc-tdep.c (sparc_push_return_address): Ditto.
1013 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1014 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1015 CALL_DUMMY_ADDRESS with entry_point_address.
1016 * v850-tdep.c (v850_push_return_address): Ditto.
1017 * s390-tdep.c (s390_push_return_address): Ditto.
1018 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1019 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1020 * mcore-tdep.c (mcore_push_return_address): Ditto.
1021 * cris-tdep.c (cris_push_return_address): Ditto.
1022 * arm-tdep.c (arm_push_return_address): Ditto.
1024 2003-09-08 Andrew Cagney <cagney@redhat.com>
1026 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1027 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1028 and REG_UNMODIFIED to REG_SAME_VALUE.
1029 (execute_cfa_program): Update.
1030 (dwarf2_frame_cache): Update. Initialize table to
1031 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1033 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1035 2003-09-08 Andrew Cagney <cagney@redhat.com>
1037 * gnu-nat.c: Remove "inline" function attribute.
1038 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1040 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1042 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1045 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1047 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1048 (frame_extra_info): Rename this struct to frv_unwind_cache.
1049 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1050 Add fields ``prev_sp'' and ``base''.
1051 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1052 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1053 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1055 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1056 Revise all callers. Fill in the unwind cache argument and make
1057 other adjustments to account for new frame mechanisms.
1058 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1059 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1060 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1061 (frv_frame_unwind, frv_frame_base): New structs.
1062 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1063 additional arguments expected by this method and adjust function
1065 (frv_gdbarch_init): Remove calls to the following functions:
1066 set_gdbarch_deprecated_init_frame_pc(),
1067 set_gdbarch_deprecated_saved_pc_after_call(),
1068 set_gdbarch_deprecated_frame_chain(),
1069 set_gdbarch_deprecated_frame_saved_pc(),
1070 set_gdbarch_deprecated_frame_init_saved_regs(),
1071 set_gdbarch_deprecated_push_arguments(),
1072 set_gdbarch_deprecated_push_return_address(),
1073 set_gdbarch_deprecated_pop_frame(),
1074 set_gdbarch_deprecated_call_dummy_words(),
1075 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1076 set_gdbarch_deprecated_init_extra_frame_info(),
1077 set_gdbarch_deprecated_dummy_write_sp(), and
1078 set_gdbarch_deprecated_pc_in_call_dummy().
1079 Add calls to the following functions:
1080 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1081 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1082 frame_base_set_default().
1083 * Makefile.in (frv-tdep.o): Update dependencies.
1085 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1087 * dwarf2-frame.c (read_encoded_value): Add support for
1088 DW_EH_PE_aligned encoding.
1090 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1092 * infrun.c (normal_stop): Don't print a message if the inferior
1095 2003-09-08 Jim Blandy <jimb@redhat.com>
1097 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1098 * dbxread.c: #include "gdb_assert.h".
1099 (read_dbx_symtab): If the objfile has no .data section, use the
1100 section index for the .bss section instead.
1102 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1104 * frame.c (deprecated_safe_get_selected_frame): New function.
1105 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1106 * findvar.c (read_var_value): Call it.
1108 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1110 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1111 (sh64-tdep.o): Add dependencies.
1112 * configure.tgt: Add FIXME to sh-*-linux*.
1113 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1114 (sh_gdbarch_init): Always set correct sh_show_regs function
1115 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1116 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1117 * sh64-tdep.c: New file, containing all sh64 related code from
1119 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1120 * config/sh/linux.mt (TDEPFILES): Ditto.
1121 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1122 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1123 * config/sh/wince.mt (TDEPFILES): Ditto.
1125 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1127 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1128 (stop_wait_callback): Handle !lp->signalled also.
1129 (lin_lwp_has_pending, flush_callback): New functions.
1130 (lin_lwp_wait): Call flush_callback.
1131 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1132 (linux_proc_pending_signals): New function.
1133 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1135 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1137 From Nick Kelsey <nickk@ubicom.com>:
1138 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1139 when the stop PC is at the beginning of a function also.
1141 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1143 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1144 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1146 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1148 * sol-thread.c: Include "gdb_string.h".
1150 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1152 * gcore.c: Reorder include files in alphabetical order. Include
1153 "gdb_assert.h". Various coding style fixes.
1154 (derive_stack_segment, derive_heap_segment): Replace check for
1155 non-null BOTTOM and TOP with gdb_assert.
1156 (derive_heap_segment): Replace check for successful creation of
1157 ZERO with gdb_assert.
1158 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1160 2003-09-04 Andrew Cagney <cagney@redhat.com>
1162 * thread-db.c (verbose_dlsym): New function.
1163 (thread_db_load): Use verbose_dlsym
1164 (thread_db_new_objfile): Print that libthread_db was loaded, and
1165 that thread debugging was enabled.
1167 2003-09-04 Andrew Cagney <cagney@redhat.com>
1169 * configure.tgt: Add "mips64*-*-*" target. Delete
1170 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1171 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1172 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1173 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1174 mips*-sony-*, and mips64*-*-elf* targets.
1175 * config/mips/embedl.mt: Delete file.
1176 * config/mips/embedl64.mt: Delete file.
1177 * config/mips/mips.mt: Delete file.
1178 * config/mips/mips64.mt: Delete file.
1179 * config/mips/tm-embed.h: Delete file.
1180 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1181 * config/mips/embed64.mt: Delete out-of-date comment.
1183 2003-09-04 Andrew Cagney <cagney@redhat.com>
1185 * hppa-tdep.c (hppa_gdbarch_init): Set
1186 "have_nonsteppable_watchpoint".
1187 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1188 * mips-tdep.c (mips_dump_tdep): Do not print
1189 HAVE_NONSTEPPABLE_WATCHPOINT.
1190 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1191 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1192 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1193 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1195 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1197 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1198 unused code. Add comment.
1200 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1202 * breakpoint.c (watchpoint_check): Check for pc being in an
1203 epilogue if watchpoint frame couldn't be found.
1205 2003-09-04 Andrew Cagney <cagney@redhat.com>
1207 * Makefile.in: Re-generate all dependencies.
1209 2003-09-03 Andrew Cagney <cagney@redhat.com>
1211 * arch-utils.h (legacy_print_insn): Delete declaration.
1212 * arch-utils.c (legacy_print_insn): Delete function.
1213 * disasm.c (deprecated_tm_print_insn_info): Delete.
1214 (_initialize_disasm): Delete function, contained code initializing
1215 deprecated_tm_print_insn_info.
1216 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1217 (deprecated_tm_print_insn_info): Delete.
1218 (TARGET_PRINT_INSN): Do not provide a default.
1219 * gdbarch.h, gdbarch.c: Re-generate.
1221 2003-09-03 Andrew Cagney <cagney@redhat.com>
1223 * disasm.c (fprintf_disasm): New function.
1224 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1225 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1226 reverts 2003-08-14 change.
1227 (_initialize_disasm): Call "init_disassemble_info", instead of
1228 INIT_DISASSEMBLE_INFO_NO_ARCH.
1230 2003-09-03 Michael Snyder <msnyder@redhat.com>
1232 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1234 2003-09-03 Andrew Cagney <cagney@redhat.com>
1236 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1237 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1238 * symfile.c (syms_from_objfile): Update.
1239 (reread_symbols): `Update
1240 * exec.c (exec_file_attach): Update.
1241 (exec_file_attach): Update.
1242 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1244 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1246 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1248 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1250 (arm_get_cache): Delete macro.
1251 (struct arm_prologue_cache): Update comments. Make saved_regs into
1252 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1254 (thumb_scan_prologue): Update for cache changes. Don't call
1255 DEPRECATED_PC_IN_CALL_DUMMY.
1256 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1257 argument and use it in desperation search for our prologue. Do not
1258 search past the specified PC.
1259 (arm_make_prologue_cache): Simplify.
1261 (arm_prologue_this_id, arm_prologue_prev_register)
1262 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1263 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1264 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1265 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1266 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1268 (arm_frame_chain_valid, arm_find_callers_reg)
1269 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1270 (arm_pop_frame): Delete obsolete methods.
1271 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1273 (arm_gdbarch_init): Update for new frame methods. Register prologue
1274 and sigtramp unwinders. Set the default frame base method.
1276 * Makefile.in (arm-tdep.o): Update dependencies.
1277 * varobj.c (find_frame_addr_in_frame_chain): Call
1278 get_frame_base_address.
1279 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1281 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1283 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1284 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1285 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1286 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1287 Take NEXT_FRAME and CACHE arguments. Call
1288 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1289 Set unwound_pc in CACHE instead of modifying the frame argument.
1290 Don't bother checking the frame type when looking for sigtramp
1292 (arm_make_prologue_cache, arm_frame_chain)
1293 (arm_init_extra_frame_info): New functions.
1295 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1297 * arm-tdep.c (arm_get_cache): Define.
1298 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1299 unwound_sp, unwound_pc, and saved_regs.
1300 (thumb_scan_prologue): Take a cache instead of the frame.
1301 (arm_scan_prologue): Likewise.
1302 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1303 instead of a temporary frame.
1304 (arm_init_extra_frame_info): Allocate and use a cache.
1305 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1307 2003-09-03 Andrew Cagney <cagney@redhat.com>
1309 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1310 * config/mips/wince.mt (TM_CLIBS): Ditto.
1311 * config/sh/wince.mt (TM_CLIBS): Ditto.
1312 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1313 * config/sparc/sp64.mt (CC): Delete.
1315 2003-09-03 Andrew Cagney <cagney@redhat.com>
1317 * defs.h: Do not include "arch-utils.h".
1318 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1319 GDB_MULTI_ARCH_PURE.
1320 * configure.in (GDB_MULTI_ARCH): Do not define.
1321 * configure, config.in: Regenerate.
1322 * configure.tgt: Do not set variable "gdb_multi_arch".
1323 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1324 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1325 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1326 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1327 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1328 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1329 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1330 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1331 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1332 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1333 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1334 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1335 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1336 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1337 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1338 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1339 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1340 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1342 2003-08-30 Michael Chastain <mec@shout.net>
1344 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1345 * config/m68k/nm-hp300hpux.h: Delete.
1346 * config/m68k/tm-hp300hpux.h: Delete.
1347 * config/m68k/xm-hp300hpux.h: Delete.
1348 * config/m68k/xm-hp300bsd.h: Delete.
1349 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1350 tm-hp300hpux.h, xm-hp300hpux.h.
1351 * somsolib.c: Remove comment about hp300 shared libraries.
1353 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1355 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1356 Only define PTRACE_GET_THREAD_AREA is not already defined.
1357 Various style fixes in code and comments and some additional
1358 spelling fixes in comments. Move after functions dealing with
1360 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1363 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1364 frame_unwind_register_unsigned instead of
1365 frame_unwind_unsigned_register.
1367 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1369 * configure.in: Search for gethostbyname in libnsl.
1370 * configure: Regenerated.
1372 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1374 * configure.in: Remove redundant AC_MSG_RESULT in check for
1375 uintptr_t in stdint.h.
1376 * configure: Regenerated.
1378 * amd64-nat.h (struct regcache): Add opaque declaration.
1380 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1381 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1382 Change "register array" to "register cache" in comments.
1383 (x86_64_linux_gregset64_reg_offset): New variable.
1384 (GETREGS_SUPPLIES): Remove macro.
1385 (supply_gregset): Call amd64_supply_native_gregset instead of
1386 x86_64_linux_supply_gregset.
1387 (fill_gregset): Rename `regno' to `regnum'. Call
1388 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1389 (store_regs): Rename `regno' to `regnum'.
1390 (store_fpregs): Rename `regno' to `regnum'.
1391 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1392 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1393 Reorganize function a bit.
1394 (store_inferior_registers): Rename `regno' to `regnum'. Use
1395 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1396 Reorganize function a bit.
1397 (_initialize_x86_64_linux_nat): New function.
1398 * config/i386/x86-64linux.mh.
1400 2003-08-29 Andrew Cagney <cagney@redhat.com>
1402 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1403 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1404 (target_remove_watchpoint): Delete macro.
1405 (target_insert_watchpoint): Delete macro.
1406 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1407 (remote_mips_stopped_by_watchpoint): Delete declaration.
1408 (remote_mips_remove_watchpoint): Delete declaration.
1409 (remote_mips_set_watchpoint): Delete declaration.
1410 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1411 * remote-mips.c (_initialize_remote_mips): Set
1412 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1413 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1414 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1415 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1416 (mips_stopped_by_watchpoint): Rename
1417 remote_mips_stopped_by_watchpoint.
1418 (mips_can_hardware_watchpoint): Rename
1419 remote_mips_can_use_hardware_watchpoint, update function
1422 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1424 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1425 USER_DS. We haven't given them a register number yet.
1427 * amd64-nat.h: New file.
1428 * amd64-nat.c: New file.
1429 * amd64fbsd-nat.c: Include "amd64-nat.h".
1430 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1431 (amd64fbsd32_r_reg_offset): New variable.
1432 (supply_gregset): Simply call amd64_supply_native_gregset.
1433 (fill_gregset): Rename `regno' to `regnum'. Simply call
1434 amd64_collect_native_gregset.
1435 (fill_fpregset): Rename `regno' to `regnum'.
1436 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1437 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1438 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1439 `fpregset_t'. Call amd64_supply_native_gregset instead of
1440 supply_gregset. Call x86_64_supply_fxsave instead of
1442 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1443 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1444 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1445 `fpregset_t'. Call amd64_collect_native_gregset instead of
1446 fill_gregset. Call x86_64_collect_fxsave instead of
1448 (_initialize_am64fbsd_nat): Initialize
1449 amd64_native_gregset32_reg_offset and
1450 amd64_native_gregset64_reg_offset.
1451 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1453 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1454 null pointer. Fix typo in comment.
1456 * regcache.c (supply_register): Reimplement to call
1457 regcache_raw_supply.
1458 (regcache_collect): Reimplement by calling regcache_raw_collect.
1460 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1462 * regcache.c (register_buffer): Consitify first argument.
1463 (regcache_raw_supply, regcache_raw_collect): New
1466 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1468 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1469 by Nathan J. Williams.
1471 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1473 * lin-lwp.c (wait_lwp): New function, copied from
1474 stop_wait_callback. Clean up.
1475 (stop_wait_callback): Use wait_lwp.
1477 2003-08-28 Andrew Cagney <cagney@redhat.com>
1479 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1480 flavour and disassembler options.
1481 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1482 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1483 deprecated_tm_print_insn_info.
1485 2003-08-27 Andrew Cagney <cagney@redhat.com>
1487 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1488 Use target_read_memory.
1489 (s390_get_frame_info): Update. Do not reference
1490 deprecated_tm_print_insn_info.
1491 (s390_check_function_end, s390_is_sigreturn): Ditto.
1493 2003-08-27 Andrew Cagney <cagney@redhat.com>
1495 * Makefile.in (cris-tdep.o): Update dependencies.
1496 * cris-tdep.c: Include "gdb_assert.h".
1497 (cris_gdbarch_init): Set print_insn.
1498 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1499 (cris_delayed_get_disassembler): Simplify, directly call the
1500 disassembler returned by cris_get_disassembler.
1501 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1502 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1503 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1504 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1505 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1506 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1507 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1508 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1509 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1510 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1511 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1512 (gdb_print_insn_sparc): Delete function.
1513 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1514 deprecated_tm_print_insn_info.
1515 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1516 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1517 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1519 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1520 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1521 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1522 (s390_gdbarch_init): Set print_insn.
1524 2003-08-27 Andrew Cagney <cagney@redhat.com>
1526 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1527 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1528 * infcall.c (call_function_by_hand): Convert the entry point
1529 address into a code address.
1531 2003-08-27 Andrew Cagney <cagney@redhat.com>
1533 * dsrec.c: Include "gdb_string.h".
1534 * Makefile.in (dsrec.o): Update dependencies.
1536 2003-08-27 Michael Chastain <mec@shout.net>
1538 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1540 2003-08-27 Andrew Cagney <cagney@redhat.com>
1542 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1543 (alpha_osf1_init_abi): Do not set call_dummy_address.
1545 2003-08-27 David Carlton <carlton@kealia.com>
1547 From Randolph Chung <tausq@debian.org>:
1548 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1549 compiles with -Wformat-nonliteral -Werror.
1551 2003-08-26 Jim Blandy <jimb@redhat.com>
1553 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1554 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1555 bfd_lookup_symbol, since we only want symbols in code sections.
1556 (look_for_base): Pass zero as the SECT_FLAGS argument to
1557 bfd_lookup_symbol, since we're not concerned about which section
1560 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1562 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1563 we are frameless or the return address register is already known.
1565 2003-08-26 Andrew Cagney <cagney@redhat.com>
1567 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1568 in size. Add comments.
1570 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1572 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1573 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1575 2003-08-26 Jason Merrill <jason@redhat.com>
1577 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1578 case out of #ifdef MIPS block.
1580 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1583 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1584 available before calling SECT_OFF_TEXT.
1585 * PROBLEMS: Remove description of java/1322.
1587 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1589 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1590 bof, and nat0-nat127 as pseudo-registers.
1591 (ia64_frame_cache): New struct used to cache frame info.
1592 (ia64_register_reggroup_p): New routine used to override default
1593 register grouping so registers without names are still saved and
1595 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1597 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1598 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1599 (ia64_alloc_frame_cache): New routine to create a new
1601 (examine_prologue): Change prototype to add next_frame pointer.
1602 Assume frameless until otherwise proven. Verify that the cfm for
1603 current frame matches the cfm that should occur for the prologues
1604 alloc insn and if equal, mark as not frameless. At end of routine,
1605 if not frameless, calculate registers for the previous frame and store
1606 in the cache, if a cache is provided.
1607 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1608 and pass 0 for next_frame.
1609 (ia64_store_return_value): Change to use convert_typed_floating()
1610 instead of calling ia64_convert_to_raw().
1611 (ia64_extract_return_value): Change to use convert_typed_floating()
1612 instead of calling ia64_convert_to_virtual().
1613 (ia64_frame_cache): New routine to support new frame model.
1614 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1615 (ia64_frame_sniffer): Ditto.
1616 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1617 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1618 (ia64_sigtramp_frame_prev_register): Ditto.
1619 (ia64_sigtramp_frame_sniffer): Ditto.
1620 (ia64_frame_base_address): Ditto.
1621 (ia64_extract_struct_value_address): Change to issue error message.
1622 (ia64_frame_align): New routine to align sp.
1623 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1624 (ia64_push_arguments): Removed. Logic moved to
1625 ia64_push_dummy_call().
1626 (ia64_push_return_address): Ditto.
1627 (ia64_unwind_dummy_id): New function.
1628 (ia64_unwind_pc): Ditto.
1629 (ia64_convert_register_p): Ditto.
1630 (ia64_register_to_value): Ditto.
1631 (ia64_value_to_register): Ditto.
1632 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1633 (ia64_register_byte, ia64_register_raw_size): Ditto.
1634 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1635 (ia64_saved_pc_after_call): Ditto.
1636 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1637 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1638 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1639 (ia64_register_convert_to_raw): Ditto.
1640 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1641 (ia64_init_extra_frame_info): Ditto.
1642 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1643 (ia64_gdbarch_init): Remove registering of deprecated functions that
1644 are no longer used. Add registration of new gdbarch functions.
1645 Remove registering deprecated_write_sp. Replace
1646 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1647 Delete set_gdbarch_deprecated_register_convertible(),
1648 set_gdbarch_deprecated_register_convert_to_virtual(), and
1649 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1650 set_gdbarch_deprecated_register_size(),
1651 set_gdbarch_deprecated_register_bytes(),
1652 set_gdbarch_pcregnum(),
1653 set_gdbarch_deprecated_register_byte(),
1654 set_gdbarch_deprecated_register_raw_size(),
1655 set_gdbarch_deprecated_max_register_raw_size(),
1656 set_gdbarch_deprecated_register_virtual_size(),
1657 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1658 Replace set_gdbarch_deprecated_extract_return_value() with
1659 set_gdbarch_extract_return_value(). Remove calls to:
1660 set_gdbarch_deprecated_saved_pc_after_call();
1661 set_gdbarch_deprecated_frame_chain(),
1662 set_gdbarch_deprecated_frame_saved_pc(),
1663 set_gdbarch_deprecated_frame_init_saved_regs(),
1664 set_gdbarch_deprecated_get_saved_register(),
1665 set_gdbarch_deprecated_call_dummy_words(),
1666 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1667 set_gdbarch_deprecated_init_extra_frame_info(),
1668 set_gdbarch_deprecated_frame_args_address(),
1669 set_gdbarch_deprecated_frame_locals_address(),
1670 and set_gdbarch_deprecated_dummy_write_sp().
1671 Add set_gdbarch_convert_register_p(),
1672 set_gdbarch_register_to_value(),
1673 set_gdbarch_value_to_register(),
1674 set_gdbarch_push_dummy_call(),
1675 set_gdbarch_frame_align(),
1676 set_gdbarch_unwind_dummy_id(),
1677 set_gdbarch_unwind_pc(),
1678 frame_unwind_append_sniffer(),
1679 frame_unwind_append_sniffer(),
1680 and frame_base_set_default().
1682 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1684 * configure.tgt: Document need for special "mipsisa64" handling.
1685 (mipsisa64*-*-linux64): Handle as target linux64.
1686 (mipsisa64*-*-*): Handle as target embed64.
1688 2003-08-18 Michael Chastain <mec@shout.net>
1690 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1693 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1695 * i387-tdep.h: Update copyright date.
1696 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1698 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1699 CFLAGS games to reflect reality.
1701 2003-08-24 Andrew Cagney <cagney@redhat.com>
1703 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1704 GDB_MULTI_ARCH is always non-zero.
1705 * osabi.c (_initialize_gdb_osabi): Ditto.
1706 (gdbarch_init_osabi): Ditto.
1707 * sparc-tdep.c: Ditto for #if code.
1709 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1711 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1713 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1715 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1716 x86_64_supply_fxsave.
1717 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1718 x86_64_supply_fxsave.
1719 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1720 x86_64_supply_fxsave.
1722 2003-08-23 Andreas Jaeger <aj@suse.de>
1724 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1727 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1729 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1730 i387_supply_register.
1731 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1732 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1734 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1736 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1738 * i386bsd-nat.c (supply_fpregset): Adjust call to
1740 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1741 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1743 (store_inferior_registers): Remove extraneous whitespace. Call
1744 i387_fill_fsave instead of fill_fpregset.
1745 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1746 (supply_fpregset): Likewise.
1747 * i386v4-nat.c (supply_fpregset): Adjust call to
1749 * i386-interix-nat.c (supply_fpregset): Adjust call to
1751 * i386-linux-nat.c (supply_fpregset): Adjust call to
1753 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1754 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1755 i387supply_fsave and i387_supply_fxsave.
1756 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1757 Incorporate code from `i387_supply_register.
1758 (i387_supply_register): Remove.
1759 (i387_supply_fxsave): Add `regnum' argument.
1761 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1763 (i387_supply_register): remove prototype.
1766 2003-08-22 Michael Chastain <mec@shout.net>
1768 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1769 Add lines for files in gdb/testsuite/gdb.cp/* that are
1770 still not 8.3 unique.
1772 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1774 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1775 TYPE_VPTR_FIELDNO is valid.
1777 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1779 * utils.c (set_width_command): Remove prototypes.
1780 (set_screen_size): New prototype.
1781 (init_page_info): Simplify by fetching the screen size from
1782 Readline. Call set_screen_size.
1783 (set_screen_size): New function.
1784 (set_width): Add missing whitespace in comment.
1785 (set_width_command): Call set_screen_size.
1786 (set_height_command): New function.
1787 (initialize_utils): Fix formatting. Make "set height" command
1788 call set_height_command. Remove redundant code that turns off
1789 pagination if output isn't a terminal. Remove redundant call to
1792 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1794 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1795 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1796 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1797 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1799 (sparc64_register_info): Give the reister with number
1800 SPARC64_STATE_REGNUM a name.
1801 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1803 (sparc64_push_dummy_call): Take BIAS into account when checking
1805 (sparc_software_single_step): Remove assertions that check whether
1806 NPC and NNPC were zero.
1807 (sparc_supply_rwindow): Make public. Merge functionality with
1808 sparc64_supply_rwindow.
1809 (sparc_fill_rwindow): Make public. Merge functionality with
1810 sparc64_fill_rwindow.
1811 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1812 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1813 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1814 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1815 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1817 * reggroups.c: Add whitespace after declarations of local
1818 variables in functions.
1820 2003-08-21 Michael Chastain <mec@shout.net>
1822 * gdbtypes.h: Change array bound type from an int to enum.
1824 2003-08-21 Andrew Cagney <cagney@redhat.com>
1826 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1827 * config/sparc/tm-sparc.h: Ditto.
1828 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1830 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1832 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1834 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1835 (register_objfile_data, set_objfile_data, objfile_data): New
1837 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1839 (allocate_objfile): Call objfile_alloc_data.
1840 (free_objfile): Call objfile_free_data.
1841 (struct objfile_data): New.
1842 (struct objfile_data_registration): New.
1843 (struct objfile_data_registry): New.
1844 (objfile_data_registry): New variable.
1845 (register_objfile_data): New function.
1846 (objfile_alloc_data, objfile_free_data): New functions.
1847 (set_objfile_data, objfile_data): New functions.
1848 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1849 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1850 (_initialize_dwarf2_frame): New function and prototype.
1852 2003-08-21 Andrew Cagney <cagney@redhat.com>
1854 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1855 a specific architecture.
1856 * arch-utils.h (set_architecture_from_arch_mach): Delete
1858 (target_architecture_hook): Delete declaration.
1859 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1860 (default_float_format): Assume GDB_MULTI_ARCH.
1861 (default_double_format): Assume GDB_MULTI_ARCH.
1862 (set_endian_from_file): Delete function.
1863 (arch_ok): Delete function.
1864 (set_arch): Delete function.
1865 (set_architecture_from_arch_mach): Delete function.
1866 (set_architecture_from_file): Delete function.
1867 (set_architecture): Assume GDB_MULTI_ARCH.
1868 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1870 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1872 Rewrite FreeBSD/sparc64 native configuration.
1873 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1874 * sparc64fbsd-nat.c: New file.
1875 * sparc64fbsd-tdep.c: New file.
1876 * sparc64-tdep.c sparc64-tdep.h: New files.
1877 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1878 sparc64fbsd-tdep.o): New dependencies.
1879 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1880 and sparc64fbsd-tdep.c.
1881 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1882 * config/sparc/fbsd.mh: Remove copyright notice.
1883 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1885 * config/sparc/fbsd.mt: Remove copyright notice.
1886 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1887 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1888 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1889 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1890 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1891 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1892 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1893 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1895 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1896 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1898 2003-08-21 Michael Chastain <mec@shout.net>
1900 * symtab.h: Add doco on the space critical structures and
1901 some measurements of space usage.
1903 2003-08-21 Michael Snyder <msnyder@redhat.com>
1905 * tracepoint.c (trace_dump_command): Trace break address
1906 is subject to DECR_PC_AFTER_BREAK.
1907 (set_traceframe_context): Make "trace_line" an int.
1908 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1910 2003-08-20 Michael Snyder <msnyder@redhat.com>
1912 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1913 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1914 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1916 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1917 functions, replace sh_push_dummy_call.
1918 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1920 2003-08-20 Michael Chastain <mec@shout.net>
1922 * gdbtypes.h (struct main_type): Rearrange to save space.
1924 2003-08-20 Michael Snyder <msnyder@redhat.com>
1926 * trad-frame.c: Comment typo fix.
1928 2003-08-20 Michael Snyder <msnyder@redhat.com>
1929 Kevin Buettner <kevinb@redhat.com>
1931 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1932 (frv_frame_init_saved_regs): Add declaration.
1933 (frame_extra_info): Add new field ``saved_regs''.
1934 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1935 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1936 Update frame related code.
1937 (frv_extract_struct_value_address): Adjust formatting.
1938 * Makefile.in (frv-tdep.o): Update dependencies.
1939 * config/frv/tm-frv.h (target_insert_watchpoint)
1940 (target_remove_watchpoint, target_insert_hw_breakpoint)
1941 (target_remove_hw_breakpoint): Delete these macros.
1942 (remote_insert_watchpoint, remote_remove_watchpoint)
1943 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1946 2003-08-20 Michael Chastain <mec@shout.net>
1948 * defs.h (ENUM_BITFIELD): New macro.
1949 * symtab.h (ENUM_BITFIELD): Use it.
1950 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1952 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1954 * MAINTAINERS (write after approval): Add myself.
1956 2003-08-18 Andrew Cagney <cagney@redhat.com>
1958 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1959 * gdbarch.h, gdbarch.c: Re-generate.
1960 * infcall.c (call_function_by_hand): Adjust the SP by
1961 frame_red_zone_size before allocating any stack space.
1962 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1963 * x86-64-tdep.c (x86_64_frame_align): New function.
1964 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1966 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1967 Remove code adjusting SP so that it skips over the Red Zone.
1969 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1971 * NEWS (New native configurations): Mention FreeBSD/amd64.
1973 2003-08-18 Andrew Cagney <cagney@redhat.com>
1975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1976 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1978 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1980 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1982 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1984 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1986 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1988 * i386-linux-nat.c: Include "linux-nat.h".
1989 (child_post_startup_inferior): New function.
1991 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1993 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1994 at the start of a frameless function. This probably fixes PR
1997 2003-08-17 Michael Chastain <mec@shout.net>
1999 * symfile.c (find_sym_fns): Remove special case for apollo target.
2001 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2003 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2004 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2005 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2006 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2007 (linux_supports_tracevforkdone): New function.
2008 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2010 (child_follow_fork): Handle vfork.
2011 (linux_handle_extended_wait): Likewise. Also handle exec.
2012 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2013 * NEWS: Mention fork tracing.
2015 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2017 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2019 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2021 * Makefile.in (i386-linux-nat.o): Update dependencies.
2022 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2023 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2024 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2025 * i386-linux-nat.c: Include "linux-nat.h".
2026 (child_post_startup_inferior): New function.
2027 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2028 * infptrace.c (kill_inferior): Wrap in #ifdef.
2029 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2030 attaching to each LWP.
2031 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2032 (init_lin_lwp_ops): Fill in some more operations.
2033 * linux-nat.h (linux_enable_event_reporting)
2034 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2036 * linux-nat.c (linux_enable_event_reporting): New function.
2037 (child_post_attach, linux_child_post_startup_inferior)
2038 (child_post_startup_inferior, child_follow_fork)
2039 (linux_handle_extended_wait, kill_inferior): New functions.
2041 2003-08-16 Andrew Cagney <cagney@redhat.com>
2043 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2044 * gdbarch.h, gdbarch.c: Re-generate.
2046 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2048 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2050 2003-08-16 Andrew Cagney <cagney@redhat.com>
2052 * NEWS: Mention that "set prompt-escape-char" was deleted.
2053 * top.c (get_prompt_1): Delete function.
2054 (gdb_prompt_escape):
2055 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2056 prompt-escape-char" command.
2057 (MAX_PROMPT_SIZE): Delete macro.
2058 (get_prompt): Simplify, do not call get_prompt_1.
2060 2003-08-16 Andrew Cagney <cagney@redhat.com>
2062 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2063 -Werror. -Wformat-nonliteral problems.
2065 2003-08-15 J. Brobecker <brobecker@gnat.com>
2067 Further multiarching work mostly for hppa64-*-hpux11:
2068 * hppa-tdep.h: New file.
2069 * hppa-tdep.c: #include hppa-tdep.c.
2070 (hppa32_num_regs): Renamed from hppa_num_regs.
2071 (hppa64_num_regs): New constant.
2072 (hppa64_call_dummy_breakpoint_offset): New constant.
2073 (hppa32_call_dummy_length): New constant.
2074 (hppa64_call_dummy_length): New constant.
2075 (hppa32_stack_align): Make name 32bit explicit.
2076 (hppa32_register_virtual_type): Likewise.
2077 (hppa32_extract_return_value): Likewise.
2078 (hppa32_use_struct_convention): Likewise.
2079 (hppa32_store_return_value): Likewise.
2080 (hppa64_register_virtual_type): New function.
2081 (hppa64_extract_return_value): New function.
2082 (hppa64_use_struct_convention): New function.
2083 (hppa64_store_return_value): New function.
2084 (hppa_frame_locals_address): Remove declaration, function does
2086 (hppa_register_byte): Add support for PA64 ABI.
2087 (hppa_gdbarch_init): Add support for PA64 ABI.
2088 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2089 Make name 32bit explicit.
2090 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2091 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2092 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2093 (hppa64_hpux_frame_base_before_sigtramp): New function.
2094 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2095 * config/pa/tm-hppa64.h: Remove macros that are no longer
2096 necessary now that the gdbarch vector is properly setup.
2097 Transform some macros into function calls. Some minor cleanup.
2098 * config/pa/tm-hppah.h: Update function calls in macros
2099 following the function renaming in hppa-hpux-tdep.c.
2100 * Makefile.in (hppa_tdep_h): New variable.
2101 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2103 2003-08-14 Michael Snyder <msnyder@redhat.com>
2105 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2107 2003-08-13 J. Brobecker <brobecker@gnat.com>
2109 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2110 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2113 2003-08-13 Michael Snyder <msnyder@redhat.com>
2115 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2116 (frv_saved_pc_after_call): Use deprecated ftype.
2117 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2118 (frv_remote_translate_xfer_address): Remove.
2119 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2121 2003-08-13 J. Brobecker <brobecker@gnat.com>
2123 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2124 initialization after the common gdbarch initialization, not before.
2126 2003-08-13 J. Brobecker <brobecker@gnat.com>
2128 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2129 (ADDR_BITS_REMOVE): Remove, redundant.
2131 2003-08-13 J. Brobecker <brobecker@gnat.com>
2133 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2134 gdbarch method to clear the 2 low bits of text addresses.
2136 2003-08-12 Andrew Cagney <cagney@redhat.com>
2138 * Makefile.in (dsrec.o): Update dependencies.
2139 * dsrec.c: Include "gdb_assert.h".
2140 (make_srec): Use snprintf instead of sprintf, use a literal format
2143 2003-08-12 Andrew Cagney <cagney@redhat.com>
2145 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2146 FRAME_OBSTACK_ZALLOC.
2148 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2150 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2153 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2155 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2156 amd64fbsd_sc_reg_offset): Add extern declarations.
2157 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2160 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2162 * MAINTAINERS (write after approval): Update my mail address.
2164 2003-08-10 Andrew Cagney <cagney@redhat.com>
2166 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2168 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2170 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2171 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2172 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2173 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2174 i386bsd_sc_reg_offset): Add extern declarations.
2175 * i386obsd-nat.c: Include "i386-tdep.h"
2176 (_initialize_i386obsd_nat): Remove extern declarations.
2177 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2179 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2182 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2183 instead of frame_read_register.
2184 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2185 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2187 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2188 instead of frame_unwind_unsigned_register. Use
2189 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2190 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2191 instead of read_register. Use builtin_type_void_data_ptr instead
2192 of builtin_type_void_func_ptr when extracting the address of the
2194 (i386_extract_return_value, i386_store_return_value,
2195 i386_pseudo_register_read, i386_pseudo_register_write): Use
2196 register_size instead REGISTER_RAW_SIZE.
2198 2003-08-10 Andrew Cagney <cagney@redhat.com>
2200 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2201 sprintf. Make "name" constant.
2203 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2205 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2206 instead of frame_read_register.
2207 (i387_print_float_info): Use get_frame_register and
2208 get_frame_register_unsigned instead of frame_register_read.
2210 * i386fbsd-nat.c: Include "i386-tdep.h".
2211 (child_resume): Make `eflags' an ULONGEST. Use
2212 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2213 instead of register_read and register_write.
2215 * i386bsd-nat.c (fetch_inferior_registers,
2216 store_inferior_registers): Don't use && at the end of a line.
2217 (_initialize_i386bsd_nat): Fix typo.
2219 * frame.c (_initialize_frame): Add missing backslash.
2221 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2222 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2223 and supply_register instead of manipulating the register buffer
2226 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2227 * config/i386/nm-i386sol2.h
2228 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2230 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2231 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2232 instructions that GCC likes to mingle into the prologue. Fixes
2233 gdb/1253 and gdb/1255.
2235 2003-08-09 Andrew Cagney <cagney@redhat.com>
2238 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2239 * command.h (add_setshow_uinteger_cmd): Declare.
2240 * frame.c (set_backtrace_cmd): New function.
2241 (show_backtrace_cmd): New function.
2242 * frame.c (_initialize_frame): Replace "set/show
2243 backtrace-below-main" with "set/show backtrace past-main". Add
2244 command "set/show backtrace limit".
2245 (backtrace_past_main): Rename "backtrace_below_main".
2246 (backtrace_limit): New variable.
2247 (get_prev_frame): Update. Check the backtrace_limit.
2249 2003-08-09 Andrew Cagney <cagney@redhat.com>
2251 * defs.h (xstrprintf): Declare.
2252 * utils.c (xstrprintf): New function.
2253 * breakpoint.c (insert_breakpoints): Replace sprintf and
2254 non-literal format strings, with xstrprintf and cleanups.
2255 (delete_breakpoint,breakpoint_re_set): Ditto.
2256 (commands_command, insert_breakpoints): Ditto.
2257 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2258 (break_at_finish_command_1): Ditto.
2260 2003-08-09 Andrew Cagney <cagney@redhat.com>
2262 * MAINTAINERS (language support): List Adam Fedor as Objective C
2265 2003-08-08 J. Brobecker <brobecker@gnat.com>
2267 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2268 are now multiarched.
2270 2003-08-08 J. Brobecker <brobecker@gnat.com>
2272 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2273 longer necessary now that hppa64 is partially multiarch'ed.
2275 2003-08-08 Andrew Cagney <cagney@redhat.com>
2277 * interps.c (interp_set): Check for a NULL "old_interp".
2279 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2281 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2282 (install-only): Support DESTDIR.
2283 (uninstall): Likewise.
2284 (install-gdbtk): Likewise.
2286 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2288 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2289 contains something meaningful at all times.
2291 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2293 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2295 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2297 * MAINTAINERS (write after approval): Added self.
2299 2003-08-07 Andrew Cagney <cagney@redhat.com>
2301 * inferior.h (AT_SYMBOL): Define.
2302 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2303 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2304 * mips-tdep.c (mips_call_dummy_address): Delete function.
2305 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2306 set call_dummy_address.
2308 2003-08-07 Andrew Cagney <cagney@redhat.com>
2310 * language.c (op_error): Delete function.
2311 (binop_type_check): Delete function.
2312 * language.h (type_op_error, range_op_error): Delete macros.
2313 (op_error): Delete declaration.
2315 2003-08-07 Andrew Cagney <cagney@redhat.com>
2317 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2319 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2321 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2322 (x86_64_push_arguments): Skip the red zone.
2324 2003-08-05 Andrew Cagney <cagney@redhat.com>
2326 * reggroups.c (reggroup_next): Check for the final entry.
2328 2003-08-04 Andrew Cagney <cagney@redhat.com>
2330 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2331 * cli/cli-script.c (define_command): Call query directly, instead
2332 of passing it a buffer.
2333 * ocd.c (ocd_error): Pass error a constant format string.
2334 * remote-mips.c (mips_error): Use fputs_filtered.
2336 * solib-svr4.c (_initialize_svr4_solib): Update
2337 register_gdbarch_data call.
2338 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2340 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2341 (register_gdbarch_data): Delete "free" parameter. Update
2343 * gdbarch.h, gdbarch.c: Re-generate.
2344 * reggroups.c (_initialize_reggroup): Update.
2345 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2346 * frame-base.c (_initialize_frame_base): Update.
2347 * frame-unwind.c (_initialize_frame_unwind): Update.
2348 * user-regs.c (_initialize_user_regs): Update.
2349 * remote.c (_initialize_remote): Update.
2350 * regcache.c (_initialize_regcache): Update.
2352 * regcache.c (xfree_regcache_descr): Delete function.
2353 (_initialize_regcache): Update call to register_gdbarch_data.
2354 (init_regcache_descr, init_legacy_regcache_descr): Use
2355 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2357 * remote.c (free_remote_state): Delete function.
2358 (_initialize_remote): Update register_gdbarch_data.
2359 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2360 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2362 2003-08-04 Andrew Cagney <cagney@redhat.com>
2364 * reggroups.c (struct reggroup_el): Define.
2365 (struct reggroups): Delete field "nr_group". Replace array
2366 "group" with a "first" to "last" linked list.
2367 (reggroups_init): Update. Allocate using gdbarch's obstack.
2368 (reggroups_free): Delete function.
2369 (add_group): Update. Add "el" parameter.
2370 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2371 (default_groups): Update.
2372 (reggroup_next): Replace reggroups.
2373 (reggroups_dump): Update.
2374 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2375 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2376 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2378 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2380 * Makefile.in (tui-interp.o): Update dependencies.
2382 2003-08-04 David Carlton <carlton@kealia.com>
2384 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2385 to internal_error call.
2386 * source.c (forward_search_command): Add "%s" format argument.
2387 (reverse_search_command): Ditto.
2388 * top.c (quit_confirm): Ditto.
2389 * cli/cli-setshow.c (do_setshow_command): Ditto.
2390 * cp-valprint.c (cp_print_class_method): Replace
2391 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2392 (cp_print_class_member): Ditto.
2393 * event-top.c (command_line_handler): Ditto.
2394 * linux-proc.c (linux_info_proc_cmd): Ditto.
2395 * p-typeprint.c (pascal_type_print_base): Ditto.
2396 * p-valprint.c (pascal_object_print_class_method): Ditto.
2397 (pascal_object_print_class_member): Ditto.
2398 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2399 * remote.c (remote_cisco_section_offsets): Ditto.
2400 * top.c (command_line_input): Ditto.
2401 * utils.c (vwarning,error_stream,quit): Ditto.
2402 * valprint.c (print_floating,print_binary_chars)
2403 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2405 2003-08-04 Andrew Cagney <cagney@redhat.com>
2407 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2409 2003-08-02 Andrew Cagney <cagney@redhat.com>
2411 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2412 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2415 2003-08-02 Andrew Cagney <cagney@redhat.com>
2417 * Makefile.in: Update all dependencies and definitions.
2419 2003-08-02 Adam Fedor <fedor@gnu.org>
2421 * linespec.c (is_objc_method_format): New function
2422 (decode_line_1, locate_first_half): Use it.
2425 2003-08-01 Andrew Cagney <cagney@redhat.com>
2427 * NEWS: Mention that m32r is multi-arch.
2428 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2429 * configure.tgt: Recognize m32r-*-*.
2430 * config/m32r/tm-m32r.h: Delete file.
2431 * config/m32r/m32r.mt: New file.
2432 * m32r-rom.c (m32r_upload_command): Use hostent only when
2433 gethostname succeeds, in order to avoid a compilation
2435 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2438 2003-08-01 Michael Snyder <msnyder@redhat.com>
2440 * sh-tdep.c (sh_frame_align): New gdbarch method.
2441 (sh_gdbarch_init): Set up frame_align method.
2443 2003-07-31 Michael Snyder <msnyder@redhat.com>
2445 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2446 which is already covered by the new frames infrastructure.
2448 2003-07-31 Andrew Cagney <cagney@redhat.com>
2450 * user-regs.c (struct user_reg): Add "next" link.
2451 (struct user_regs): Replace "user" with "first" and "last" links.
2452 (append_user_reg): Add pre-allocated "reg" parameter.
2453 (builtin_user_regs): Provide initial value for "last".
2454 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2455 (user_regs_init): Allocate memory from the gdbarch obstack.
2456 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2457 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2459 (usernum_to_user_reg): New function.
2460 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2461 (value_of_user_reg): Use usernum_to_user_reg.
2462 (user_regs_free): Delete function.
2463 (_initialize_user_regs): Update register_gdbarch_data call.
2465 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2467 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2469 2003-07-30 Michael Snyder <msnyder@redhat.com>
2471 * value.h (value_being_returned): Add a struct_addr argument.
2472 * infcall.c (call_function_by_hand): Pass struct_addr to
2473 value_being_returned.
2474 * infcmd.c (print_return_value): Pass zero as struct_addr.
2475 * values.c (value_being_returned): If struct_addr is passed,
2476 use it instead of trying to recover it from the inferior.
2478 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2480 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2481 the prologue analyzer won't need to attempt to extract the pc
2482 value from the woefully incomplete dummy frame.
2483 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2484 possible. Disable code which modifies the frame.
2486 2003-07-28 Andrew Cagney <cagney@redhat.com>
2488 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2490 (annotate_breakpoints_table, annotate_record): Ditto.
2491 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2492 (annotate_field_name_end, annotate_field_value): Ditto.
2493 (annotate_field_end, annotate_frame_source_begin): Ditto.
2494 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2495 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2496 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2497 (annotate_frame_address_end, annotate_frame_address): Ditto.
2498 (annotate_frame_args, annotate_frame_end): Ditto.
2499 (annotate_frame_where, annotate_arg_begin): Ditto.
2500 (annotate_arg_name_end, annotate_arg_value): Ditto.
2501 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2502 (annotate_function_call, annotate_signal_name): Ditto.
2503 (annotate_signal_string, annotate_signal_name_end): Ditto.
2504 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2505 (annotate_value_begin, annotate_value_history_value): Ditto.
2506 (annotate_value_history_end, annotate_value_end): Ditto.
2507 (annotate_display_begin, annotate_display_number_end): Ditto.
2508 (annotate_display_format, annotate_display_expression): Ditto.
2509 (annotate_display_expression_end, annotate_display_value): Ditto.
2510 (annotate_display_end, annotate_array_section_begin): Ditto.
2511 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2512 (annotate_elt, annotate_array_section_end): Ditto.
2514 2003-07-28 Andrew Cagney <cagney@redhat.com>
2516 * regcache.c (struct regcache_descr): Update comments on
2518 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2519 sizeof_raw_register_valid_p.
2520 (init_regcache_descr): Set nr_raw_registers and
2521 sizeof_raw_register_valid_p before calling
2522 init_legacy_regcache_descr.
2524 2003-07-28 Andrew Cagney <cagney@redhat.com>
2526 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2529 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2531 * thread.c (info_threads_command): Use get_selected_frame ().
2532 Check that there is at least one non-sentinel frame.
2534 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2536 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2537 (m68hc11_pop_frame): Remove.
2538 (m68hc11_frame_saved_pc): Remove.
2539 (m68hc11_frame_chain): Remove.
2540 (m68hc11_frame_init_saved_regs): Remove.
2541 (m68hc11_init_extra_frame_info): Remove.
2542 (m68hc11_store_struct_return): Remove.
2543 (m68hc11_saved_pc_after_call): Remove.
2545 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2547 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2548 frame unwind information.
2549 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2550 and adapted for frame unwinding.
2551 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2552 (m68hc11_unwind_pc): New function.
2553 (m68hc11_frame_unwind_cache): New function to analyze frames.
2554 (m68hc11_frame_this_id): New function to create new frame struct.
2555 (m68hc11_frame_prev_register): New function to unwind a register from
2557 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2558 (m68hc11_frame_p): New function for the above.
2559 (m68hc11_frame_base_address): New function to return fp of frame.
2560 (m68hc11_frame_args_address): Update for frame.
2561 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2562 (m68hc11_unwind_sp): New function.
2563 (m68hc11_unwind_dummy_id): New function.
2564 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2567 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2569 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2570 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2571 when we are beyond the current pc.
2573 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2575 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2576 from m68hc11_push_arguments.
2577 (m68hc11_push_arguments): Remove.
2578 (m68hc11_push_return_address): Remove.
2579 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2580 handlers; remove deprecated_extra_stack_alignment_needed.
2582 2003-07-27 Andrew Cagney <cagney@redhat.com>
2584 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2585 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2586 REAL_PC and not the pointer.
2587 * hppa-hpux-tdep.c: Include frame.h
2589 2003-07-27 Andrew Cagney <cagney@redhat.com>
2591 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2592 GDB_MULTI_ACH_PARTIAL.
2594 2003-07-27 Andrew Cagney <cagney@redhat.com>
2596 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2597 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2598 operator at start and not end of line.
2599 (decode_prologue): Ditto.
2600 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2601 frame_unwind_register_unsigned instead of
2602 frame_unwind_unsigned_register.
2603 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2605 (m32r_push_dummy_call): Use register_size instead of
2607 (m32r_frame_sniffer): Replace m32r_frame_p.
2608 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2609 * m32r-rom.c (report_transfer_performance): Delete extern
2611 (m32r_load, m32r_upload_command): Use print_transfer_performance
2612 instead of report_transfer_performance.
2613 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2614 / add_show_from_set.
2616 2003-07-26 Andrew Cagney <cagney@redhat.com>
2618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2619 store_return_value and extract_struct_value_address.
2621 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2624 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2625 NULL, default to the section containing PC.
2627 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2629 * NEWS: Mention "regs" deprecated for m68hc11 too.
2631 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2632 (m68hc11_print_register): New function to print out one register.
2633 (m68hc11_print_registers_info): New function to print registers.
2634 (show_regs): Deprecate and use the above.
2635 (m68hc11_gdbarch_init): Install the print_registers_info.
2637 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2639 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2640 that we have a SIGTRAP before returning non-zero.
2642 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2643 Elena Zannoni <ezannoni@redhat.com>
2645 * linespec.c (decode_line_2): Avoid crash if
2646 find_function_start_sal() returns empty record.
2648 2003-07-23 Andreas Schwab <schwab@suse.de>
2650 * ia64-tdep.c (ia64_print_insn): New function.
2651 (ia64_gdbarch_init): Set print_insn to it.
2652 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2653 deprecated_tm_print_insn_info.
2655 2003-07-22 Michael Snyder <msnyder@redhat.com>
2657 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2658 handle 8-bit returns (long long).
2659 (h8300h_extract_return_value): Ditto.
2660 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2662 2003-07-22 Andrew Cagney <cagney@redhat.com>
2664 * gdbarch.c Include "gdb_obstack.h".
2665 (struct gdbarch): Add an "obstack".
2666 (alloc_gdbarch_data): Allocate the gdbarch data using
2667 GDBARCH_OBSTACK_CALLOC.
2668 (free_gdbarch_data): Delete function.
2669 (gdbarch_obstack_zalloc): New function.
2670 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2671 Assert that the architecture is not initialized.
2672 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2673 vector from the obstack.
2674 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2675 architecture obstack.
2676 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2677 (set_gdbarch_data): Assert that the data is not initialized.
2678 (struct gdbarch_data): Delete member "free".
2679 (register_gdbarch_data): Do not initialize "free".
2680 * gdbarch.h, gdbarch.c: Re-generate.
2682 2003-07-22 Andrew Cagney <cagney@redhat.com>
2684 * configure.in (build_warnings): Add -Wformat-nonliteral.
2685 * configure: Re-generate.
2687 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2689 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2691 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2693 * findvar.c (read_var_value): Remove case for thread local storage
2694 variables. It is now entirely handled by the dwarf2 location
2696 * printcmd.c (address_info): Ditto.
2697 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2699 (struct symbol): Remove objfile field, which was used by
2700 LOC_THREAD_LOCAL_STATIC only.
2701 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2702 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2703 usage of objfile pointer.
2704 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2705 thread local variables.
2706 Add include of objfiles.h.
2707 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2709 * Makefile.in (dwarf2loc.o): Update dependencies.
2711 2003-07-22 Andrew Cagney <cagney@redhat.com>
2713 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2715 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2716 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2717 (struct value): Add opaque declaration.
2718 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2720 2003-07-21 Andrew Cagney <cagney@redhat.com>
2722 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2723 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2725 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2727 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2728 regcache_cooked_read_unsigned instead of read_register.
2729 (m68hc11_saved_pc_after_call): Likewise.
2730 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2731 instead of write_register.
2732 (m68hc11_register_type): New function.
2733 (m68hc11_register_virtual_type): Remove.
2734 (m68hc11_store_return_value): Convert to use the regcache.
2735 (m68hc11_extract_struct_value_address): Likewise.
2736 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2737 m68hc11_register_type; undeprecate store_return_value and
2738 extract_struct_value_address.
2740 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2742 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2743 and translate to use regcache.
2744 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2746 2003-07-18 Andrew Cagney <cagney@redhat.com>
2748 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2749 * gdbarch.h, gdbarch.c: Re-generate.
2750 * i386-tdep.c (i386_gdbarch_init): Do not set
2751 DWARF2_BUILD_FRAME_INFO.
2752 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2754 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2755 DWARF2_BUILD_FRAME_INFO.
2757 2003-07-18 Andrew Cagney <cagney@redhat.com>
2759 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2760 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2762 2003-07-18 Andrew Cagney <cagney@redhat.com>
2764 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2765 frame_unwind_address_in_block, instead of frame_pc_unwind.
2766 (dwarf2_frame_cache): Ditto.
2768 2003-07-18 Andrew Cagney <cagney@redhat.com>
2770 * user-regs.h (struct gdbarch): Declare opaque.
2771 * ui-out.h (struct ui_file): Declare opaque.
2772 * dwarf2-frame.h (struct frame_info): Declare opaque.
2774 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2776 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2778 (procfs_meminfo): Change strerror to safe_strerror.
2779 (procfs_can_run): Remove K&R badness.
2781 2003-07-17 Michael Snyder <msnyder@redhat.com>
2783 * remote-sim.c: Comment typo fix.
2785 2003-07-17 Andrew Cagney <cagney@redhat.com>
2787 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2789 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2790 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2791 GDB_MULTI_ARCH_PARTIAL.
2793 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2795 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2796 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2797 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2799 2003-07-16 Theodore A. Roth <troth@openavr.org>
2801 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2803 (avr_frame_unwind_cache): Don't unwind FP for main.
2805 Save the computed prev_sp.
2806 (avr_saved_regs_unwinder): Remove function.
2807 (avr_frame_prev_register): Use PC unwind logic from
2808 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2810 2003-07-16 Andrew Cagney <cagney@redhat.com>
2812 * frame-base.h (frame_base_p_ftype): Delete definition.
2813 (frame_base_append_predicate): Delete declaration.
2814 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2815 (frame_unwind_append_predicate): Delete declaration.
2816 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2817 (append_predicate): Delete parameter "p".
2818 (frame_unwind_append_predicate): Delete function.
2819 (frame_unwind_append_sniffer): Update call to append_predicate.
2820 (frame_unwind_free): Delete function.
2821 (_initialize_frame_unwind): Pass NULL as "free" to
2822 register_gdbarch_data.
2823 (frame_unwind_init): Append the dummy_frame_sniffer.
2824 (frame_unwind_find_by_frame): Simplify.
2825 * frame-base.c (struct frame_base_table): Delete field "p".
2826 (append_predicate): Delete parameter "p".
2827 (frame_base_append_predicate): Delete function.
2828 (frame_base_append_sniffer): Update call to append_predicate.
2829 (frame_base_free): Delete function.
2830 (frame_base_find_by_frame): Simplify.
2831 (_initialize_frame_base): Pass NULL as "free" to
2832 register_gdbarch_data.
2833 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2834 (x86_64_sigtramp_frame_sniffer): Replace
2835 "x86_64_sigtramp_frame_p".
2836 (x86_64_init_abi): Set the frame unwind sniffers.
2837 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2838 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2839 (m68k_gdbarch_init): Set the frame unwind sniffers.
2840 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2841 "i386_sigtramp_frame_p".
2842 (i386_frame_sniffer): Replace "i386_frame_p".
2843 (i386_gdbarch_init): Set the frame unwind sniffers.
2844 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2845 (avr_gdbarch_init): Set the frame unwind sniffers.
2846 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2847 "alpha_sigtramp_frame_p"
2848 (alpha_heuristic_frame_sniffer): Replace
2849 "alpha_heuristic_frame_p".
2850 (alpha_gdbarch_init): Set the frame unwind sniffers.
2851 (alpha_dwarf2_init_abi): Ditto.
2852 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2853 "alpha_debug_frame_p".
2854 (alpha_mdebug_frame_base_sniffer): Replace
2855 "alpha_mdebug_frame_base_p".
2856 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2857 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2858 (d10v_gdbarch_init): Set the frame unwind sniffer.
2859 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2860 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2861 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2862 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2863 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2864 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2866 2003-07-16 Michael Snyder <msnyder@redhat.com>
2868 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2869 should go thru sh_dsp_register_sim_regno, else the dsp regs
2870 will not get the right values.
2872 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2874 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2875 deprecated_store_floating by call to store_typed_floating.
2876 (sh_sh4_register_convert_to_raw): Substitute call to
2877 deprecated_extract_floating by call to extract_typed_floating.
2879 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2881 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2883 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2885 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2886 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2887 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2889 (do_pseudo_register): Remove.
2890 (sh_push_dummy_code): New function.
2891 (sh64_store_struct_return): Rename from sh_store_struct_return.
2892 Only called for sh64 now.
2893 (sh_extract_struct_value_address): Regcache'ify.
2894 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2895 and accomodate new tasks.
2896 (sh64_push_return_address): Rename from sh_push_return_address.
2897 Only called for sh64 now.
2898 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2900 (sh3e_sh4_extract_return_value): Regcache'ify.
2901 (sh_default_store_return_value): Ditto.
2902 (sh3e_sh4_store_return_value): Ditto.
2903 (sh_default_register_byte): Remove.
2904 (sh_sh4_register_byte): Remove.
2905 (sh_default_register_raw_size): Remove.
2906 (sh_sh4_register_raw_size): Remove.
2907 (sh_register_virtual_size): Remove.
2908 (sh_sh3e_register_virtual_type): Remove.
2909 (sh_sh3e_register_type): New function.
2910 (sh_sh4_register_virtual_type): Remove.
2911 (sh_sh4_register_type): New function.
2912 (sh_default_register_virtual_type): Remove.
2913 (sh_default_register_type): New function.
2914 (do_fv_register_info): Add parameters to accomodate call from
2915 sh_print_registers_info.
2916 (do_dr_register_info): Ditto.
2917 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2918 Add parameters to accomodate call from sh_print_registers_info.
2919 (sh_do_fp_register): Ditto.
2920 (sh64_do_pseudo_register): Call do_dr_register_info,
2921 do_fv_register_info and sh_do_fp_register with default parameters.
2922 (sh_do_register): Add parameters to accomodate call from
2923 sh_print_registers_info.
2924 (sh_print_register): Ditto.
2925 (sh_print_registers_info): Rename from sh_do_registers_info.
2926 Add parameters to be used as gdbarch_print_registers_info
2927 implementation. Accomodate removed do_pseudo_register function
2929 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2930 function pointer. Call sh_print_register with default parameters.
2931 (sh64_do_registers_info): Call sh_print_registers_info instead of
2932 sh_do_registers_info.
2933 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2934 detection of deprecated vs. non-deprecated functionality.
2935 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2936 function pointer assignments by direct function calls.
2938 2003-07-15 Andrew Cagney <cagney@redhat.com>
2940 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2941 (frame_register_unwind, create_new_frame): Ditto.
2942 (legacy_get_prev_frame, get_frame_type): Ditto.
2943 (get_frame_base_address): Use frame_base_find_by_frame.
2944 (get_frame_locals_address): Use frame_base_find_by_frame.
2945 (get_frame_args_address): Use frame_base_find_by_frame.
2946 * frame-base.h (frame_base_sniffer_ftype): Declare.
2947 (frame_base_append_sniffer): Declare.
2948 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2949 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2950 (frame_base_append_sniffer): New function.
2951 (frame_base_append_predicate): Add a NULL sniffer.
2952 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2953 (struct frame_base_table): Add "sniffer".
2954 (frame_base_free): Free the "sniffer" table.
2955 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2956 (frame_unwind_append_sniffer): Declare.
2957 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2958 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2959 (struct frame_unwind_table): Add "sniffer", delete "middle".
2960 (append_predicate): Add "sniffer" parameter, append the sniffer.
2961 (frame_unwind_init): Update append_predicate call.
2962 (frame_unwind_append_sniffer): New function.
2963 (frame_unwind_append_predicate): Update append_predicate call.
2964 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2966 2003-07-15 Andrew Cagney <cagney@redhat.com>
2968 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2969 before code inhibiting repeated unwind attempts. Add to
2970 commentary on that test's problems.
2971 * blockframe.c (inside_main_func): Look for "main" in the minimal
2973 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2976 2003-07-15 Andrew Cagney <cagney@redhat.com>
2978 * complaints.c (struct explanation): Define.
2979 (struct complaints): Change type of "explanation" to "struct
2981 (symfile_explanations): Convert to a "struct explanation" table.
2982 (vcomplaint): Update.
2984 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2986 * x86-64-linux-nat.c (regmap): Removed.
2987 (supply_gregset, fill_gregset): Call
2988 x86_64_linux_(fill,supply)_gregset functions.
2989 * x86-64-linux-tdep.c (USER_*): New defines.
2990 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2991 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2993 (fetch_core_registers): Ditto.
2994 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2995 * x86-64-linux-tdep.h: New file.
2996 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2998 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3000 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3002 * x86-64-tdep.c (x86_64_store_return_value): Use
3003 regcache_cooked_write_part instead of regcache_cooked_write.
3005 * configure.host: Add x86_64-*-freebsd*.
3006 * configure.tgt: Add x86_64-*-freebsd*.
3007 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3008 * amd64fbsd-nat.c: New file.
3009 * amd64fbsd-tdep.c: New file.
3010 * config/i386/nm-fbsd64.h: New file.
3011 * config/i386/fbsd64.mh: New file.
3012 * config/i386/fbsd64.mt: New file.
3014 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3016 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3017 `sc_regs_offset' and `sc_fpregs_offset'.
3018 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3019 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3020 (alpha_sigtramp_register_address): Rewrite to use new members of
3021 `struct gdbarch_tdep'.
3022 (alpha_gdbarch_init): Initialize new members of struct
3024 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3025 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3026 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3027 (alphafbsd_pc_in_sigtramp): Implement.
3028 (alphafbsd_sigtramp_offset): New function.
3029 (alphafbsd_sigcontext_addr): New function.
3030 (alphafbsd_init_abi): Initialize signal trampoline related members
3031 of `struct gdbarch_tdep'.
3032 (_initialize_alphafbsd_tdep): Add prototype.
3034 2003-07-11 Theodore A. Roth <troth@openavr.org>
3036 * Makefile.in (install-only): Quote sed expression when generating
3039 2003-07-11 Richard Henderson <rth@redhat.com>
3041 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3042 * dwarf2-frame.c: Include complaints.h.
3043 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3044 variable initialization; return NULL on error.
3045 (decode_frame_entry): New.
3047 2003-07-11 Andrew Cagney <cagney@redhat.com>
3049 * frame.h (frame_address_in_block): Delete declaration.
3050 * blockframe.c (frame_address_in_block): Delete function.
3051 (get_frame_block): Use get_frame_address_in_block.
3052 (block_innermost_frame): Ditto.
3053 * stack.c (print_frame, backtrace_command_1): Ditto.
3055 * frame.h (get_frame_address_in_block): Declare.
3056 (frame_unwind_address_in_block): Declare.
3057 * frame.c (frame_unwind_address_in_block): New function.
3058 (get_frame_address_in_block): New function.
3060 2003-07-10 Andrew Cagney <cagney@redhat.com>
3062 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3063 pre-default. Note: re-generate has no effect.
3065 2003-07-10 Andrew Cagney <cagney@redhat.com>
3067 * gdbarch.sh: When a variable, but not a function, compare against
3068 0. Fix problem in previous patch.
3069 * gdbarch.c: Re-generate.
3071 2003-07-10 Andrew Cagney <cagney@redhat.com>
3073 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3074 functions against NULL, not 0.
3075 * gdbarch.c: Re-generate.
3077 2003-07-10 Fred Fish <fnf@ninemoons.com>
3079 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3080 null string instead of a null pointer.
3081 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3083 2003-07-09 Michael Snyder <msnyder@redhat.com>
3085 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3087 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3089 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3090 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3091 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3092 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3093 * x86-64-tdep.c: ... from here.
3095 2003-07-09 Andreas Schwab <schwab@suse.de>
3097 * m68k-tdep.h (enum struct_return): Define.
3098 (struct gdbarch_tdep): Add struct_return.
3099 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3100 bytes are padded to the right, not to the left. Pass struct value
3101 address in register %a1, not on stack.
3102 (m68k_use_struct_convention): New function.
3103 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3104 struct_return in tdep to pcc_struct_return.
3105 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3108 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3110 * somread.c (som_symfile_offsets): Fix compilation error.
3112 2003-07-09 Andrew Cagney <cagney@redhat.com>
3114 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3115 Add comments about the checks.
3117 2003-07-08 Andrew Cagney <cagney@redhat.com>
3119 * Makefile.in: Make dependency section headers consistent.
3120 (config_h): Move to $BUILD headers section.
3121 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3122 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3123 (ada-exp.tab.c): Move to YACC/LEX section.
3124 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3125 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3127 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3129 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3130 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3131 of strerror with safe_strerror, use ISO C function definitions,
3132 and replace instances of sprintf with snprintf.
3134 2003-07-07 Andrew Cagney <cagney@redhat.com>
3136 * frame.c (get_prev_frame): Enable check for identical frames.
3137 Update comments. Update error messages.
3139 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3141 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3143 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3145 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3146 sort_symtab_syms, no longer necessary.
3148 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3150 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3152 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3154 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3155 (mips_register_byte): Likewise.
3157 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3159 * Makefile.in (sparc_tdep_h): New.
3160 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3161 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3162 * sparc-linux-nat.c: Include "sparc-tdep.h".
3163 * sparc-nat.c: Likewise.
3164 * sparc-tdep.c: Likewise.
3165 * sparc64nbsd-nat.c: Likewise.
3166 * sparcnbsd-nat.c: Likewise.
3167 * sparcnbsd-tdep.c: Likewise.
3168 * sparc-tdep.h: New file.
3169 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3170 and sparc_npc_regnum.
3172 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3174 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3175 (mips_linux_cannot_store_register): List supported instead of
3176 unsupported registers.
3178 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3180 * disasm.c (dump_insns): Separate instructions from addresses.
3182 2003-07-07 Andreas Schwab <schwab@suse.de>
3184 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3186 * m68k-tdep.c (NUM_FREGS): Delete.
3187 (SIG_PC_FP_OFFSET): Delete.
3188 (TARGET_M68K): Delete.
3189 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3190 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3191 P_MOVEL_SP, P_MOVEML_SP): Define.
3192 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3194 (m68k_register_raw_size): Delete.
3195 (m68k_register_virtual_size): Delete.
3196 (m68k_register_type): Renamed from m68k_register_virtual_type and
3197 add gdbarch argument.
3198 (m68k_store_struct_return): Delete.
3199 (m68k_deprecated_extract_return_value): Delete.
3200 (m68k_deprecated_extract_struct_value_address): Delete.
3201 (m68k_frame_chain): Delete.
3202 (m68k_frame_saved_pc): Delete.
3203 (m68k_fix_call_dummy): Delete.
3204 (m68k_push_dummy_frame): Delete.
3205 (m68k_pop_frame): Delete.
3206 (m68k_extract_return_value): New function.
3207 (m68k_store_return_value): Rewrite using regcache.
3208 (m68k_extract_struct_value_address): Rewrite using regcache.
3209 (m68k_push_dummy_call): New function.
3210 (struct m68k_frame_cache): Define.
3211 (m68k_alloc_frame_cache): New function.
3212 (m68k_analyze_frame_setup): New function.
3213 (m68k_analyze_register_saves): New function.
3214 (m68k_analyze_prologue): New function.
3215 (m68k_skip_prologue): Rewrite using above functions.
3216 (m68k_unwind_pc): New function.
3217 (m68k_frame_cache): New function.
3218 (m68k_frame_this_id): New function.
3219 (m68k_frame_prev_register): New function.
3220 (m68k_frame_unwind): New variable.
3221 (m68k_frame_p): New function.
3222 (m68k_sigtramp_frame_cache): New function.
3223 (m68k_sigtramp_frame_this_id): New function.
3224 (m68k_sigtramp_frame_prev_register): New function.
3225 (m68k_sigtramp_frame_unwind): New variable.
3226 (m68k_sigtramp_frame_p): New function.
3227 (m68k_frame_base_address): New function.
3228 (m68k_frame_base): New function.
3229 (m68k_unwind_dummy_id): New function.
3230 (fill_gregset): Use regcache_collect.
3231 (fill_fpregset): Likewise.
3232 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3234 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3235 deprecated_init_frame_pc, deprecated_store_struct_return,
3236 deprecated_extract_return_value, deprecated_store_return_value,
3237 deprecated_frame_chain, deprecated_frame_saved_pc,
3238 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3239 deprecated_register_virtual_size,
3240 deprecated_max_register_raw_size,
3241 deprecated_max_register_virtual_size,
3242 deprecated_register_virtual_type, deprecated_register_size,
3243 deprecated_register_byte, deprecated_register_bytes,
3244 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3245 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3246 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3247 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3248 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3249 deprecated_push_dummy_frame, deprecated_pop_frame,
3250 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3251 only if SYSCALL_TRAP is defined. Set extract_return_value,
3252 store_return_value, extract_struct_value_address, register_type,
3253 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3255 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3256 M68K_MAX_REGISTER_SIZE): Define.
3257 (struct m68k_sigtramp_info): Define.
3258 (struct gdbarch_tdep): Add get_sigtramp_info.
3259 * m68klinux-nat.c (fetch_register): Use register_size instead of
3260 REGISTER_RAW_SIZE. Don't put assignment in if.
3261 (store_register): Likewise.
3262 (fetch_inferior_registers): Likewise.
3263 (store_inferior_registers): Likewise.
3264 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3265 (m68k_linux_frame_saved_pc): Delete.
3266 (m68k_linux_sigcontext_reg_offset,
3267 m68k_linux_ucontext_reg_offset): Define.
3268 (m68k_linux_get_sigtramp_info): New function.
3269 (m68k_linux_extract_return_value): Rewrite using regcache.
3270 (m68k_linux_store_return_value): Likewise.
3271 (m68k_linux_extract_struct_value_address): Likewise.
3272 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3273 Don't set deprecated_frame_saved_pc,
3274 deprecated_extract_return_value, deprecated_store_return_value,
3275 deprecated_extract_struct_value_address. Set
3276 extract_return_value, store_return_value,
3277 extract_struct_value_address.
3279 2003-07-07 Andrew Cagney <cagney@redhat.com>
3281 * expprint.c: Include "user-regs.h" instead of "frame.h".
3282 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3283 frame_map_regnum_to_name.
3284 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3285 (frame_map_name_to_regnum): Simplify, call
3286 user_reg_map_name_to_regnum.
3287 (frame_map_regnum_to_name): Simplify, call
3288 user_reg_map_regnum_to_name.
3289 (frame_register_unwind): Update.
3290 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3291 (_initialize_frame_reg): Call user_reg_add_builtin.
3292 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3293 (value_of_register): Use value_of_user_reg.
3294 * eval.c (evaluate_subexp_standard): Update.
3295 * parse.c (write_dollar_variable): Update.
3296 * d10v-tdep.c (d10v_print_registers_info): Update.
3297 * infcmd.c (registers_info): Update.
3298 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3299 (builtin_regs_h): Delete macro.
3300 (user_regs_h): Define.
3301 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3302 (builtin-regs.o): Delete target.
3303 (user-regs.o): Specify dependencies.
3304 (expprint.o): Update dependencies.
3305 (findvar.o): Update dependencies.
3306 (frame.o): Update dependencies.
3307 (std-regs.o): Update dependencies.
3309 2003-07-06 Christopher Faylor <cgf@redhat.com>
3311 * win32-nat.c (solib_symbols_add): Use one variable for all section
3312 address stuff. Pass variable rather than address of variable to
3313 safe_symbol_file_add.
3315 2003-07-06 Andreas Schwab <schwab@suse.de>
3317 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3319 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3321 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3323 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3325 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3327 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3329 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3330 * config/i386/nto.mh: New file.
3331 * config/i386/nm-nto.h: New file.
3332 * configure.host: Add i[3456]86-*-nto*.
3334 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3336 * remote-vx.c (vx_add_symbols): Fix compilation error.
3338 2003-07-03 Andrew Cagney <cagney@redhat.com>
3340 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3341 * gdbarch.h, gdbarch.c: Re-generate.
3342 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3343 (legacy_register_name): Declare.
3344 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3345 (REGISTER_NAME): Define.
3346 * sparc-tdep.c (legacy_register_name): New function.
3347 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3348 (REGISTER_NAME): Define.
3349 (hppa64_register_name): Declare.
3350 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3351 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3352 (hppa64_register_name): New function.
3353 (hppa_register_name): New function.
3354 * arch-utils.c (legacy_register_name): Delete.
3355 * arch-utils.h (legacy_register_name): Delete.
3357 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3359 * cli/cli-interp.c (cli_interpreter_resume): Update the
3360 cli_uiout's stream to gdb_stdout.
3362 2003-07-03 Andrew Cagney <cagney@redhat.com>
3364 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3366 * gdbarch.h, gdbarch.c: Re-generate.
3367 * regcache.c (init_regcache_descr): Use legacy code when either
3368 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3370 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3372 * NEWS: Move "set logging" entry into GDB 6.0 section.
3374 2003-07-02 Jim Blandy <jimb@redhat.com>
3376 * s390-tdep.c (struct frame_extra_info): new member:
3377 'stack_bought_valid'.
3378 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3379 initialize fextra_info->stack_bought.
3380 (s390_frameless_function_invocation): Don't trust the value of
3381 fextra_info_ptr->stack_bought unless
3382 fextra_info->stack_bought_valid is set.
3384 New S390 prologue analyzer.
3385 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3386 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3387 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3388 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3389 compute_x_addr, s390_on_stack, s390_store,
3390 s390_get_signal_frame_info): New functions.
3391 (S390_NUM_SPILL_SLOTS): New macro.
3392 (s390_get_frame_info): Rewritten.
3393 (is_arg_reg): Deleted.
3395 Break out the decoding of S/390 instructions into separate
3396 functions, to make it more legible, and easier to check
3398 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3399 is_rx, is_rxe): New functions.
3400 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3401 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3402 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3403 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3404 enums for opcode values. (Is this an improvement?)
3406 2003-07-02 Andrew Cagney <cagney@redhat.com>
3408 * i386-tdep.c: Revert change committed as part of trad-frame code
3411 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3413 * breakpoint.c (insert_catchpoint): Make static.
3415 2003-07-02 Andreas Schwab <schwab@suse.de>
3417 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3418 former ia64_push_arguments and ia64_push_return_address, and use
3419 regcache functions instead of read/write_register.
3420 (ia64_gdbarch_init): Set push_dummy_call instead of
3421 deprecated_push_arguments and deprecated_push_return_address.
3423 2003-07-01 Andreas Jaeger <aj@suse.de>
3425 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3427 Set %rax only to number of SSE registers used.
3429 2003-07-01 Andrew Cagney <cagney@redhat.com>
3431 * trad-frame.h: Update comments, a -1 .addr is reserved.
3432 (trad_frame_value_p, trad_frame_addr_p): Declare.
3433 (trad_frame_reg_p): Declare.
3434 (trad_frame_set_value): Rename trad_frame_register_value.
3435 (trad_frame_set_unknown): Declare.
3436 * trad-frame.c (trad_frame_realreg_p): New function.
3437 (trad_frame_addr_p, trad_frame_value_p): New function.
3438 (trad_frame_set_unknown): New function.
3439 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3440 (trad_frame_prev_register): Use trad_frame_realreg_p,
3441 trad_frame_addr_p and trad_frame_value_p.
3442 (trad_frame_set_value): Rename trad_frame_register_value.
3443 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3444 and trad_frame_set_value.
3446 2003-06-30 Jim Blandy <jimb@redhat.com>
3448 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3449 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3450 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3451 for 16 registers, and then 32 more bytes.
3452 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3454 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3455 Move up in the file, since it's now used by is_simple_arg.
3456 (is_simple_arg): Don't assume registers are four bytes long.
3457 Exclude all double arguments. Extended floats are not simple
3459 (is_power_of_two): New function.
3460 (pass_by_copy_ref): Call is_power_of_two, and check that the
3461 length fits in a register, rather than listing all the acceptable
3462 sizes. Extended floats are not passed by reference.
3463 (s390_push_arguments): Don't assume registers are four bytes long.
3464 Reserve an argument register to point to the buffer for structures
3465 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3466 S390_STACK_FRAME_OVERHEAD.
3468 2003-06-30 Andreas Schwab <schwab@suse.de>
3470 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3471 format error message.
3473 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3475 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3477 2003-06-30 David Carlton <carlton@kealia.com>
3479 Band-aid for PR c++/1245.
3480 * Makefile.in (cp-support.o): Depend on complaints_h.
3481 * cp-support.c: Include complaints.h. Add declaration for
3482 find_last_component.
3483 (cp_find_first_component): Separate code into
3484 cp_find_first_component_aux.
3485 (cp_find_first_component_aux): Call demangled_name_complaint.
3486 (demangled_name_complaint): New.
3488 2003-06-30 Andrew Cagney <cagney@redhat.com>
3490 * remote.c (remote_write_bytes): Explicitly compute and then use
3491 the payload size. Update comments to reflect. Fixes problem of
3492 GDB not sending small packets as found by Fred Fish.
3494 2003-06-30 Andrew Cagney <cagney@redhat.com>
3496 * remote.c (remote_async_wait): Fix -Wformat problem.
3498 2003-06-29 Andrew Cagney <cagney@redhat.com>
3500 * remote.c (remote_wait): Call error, and not warning, when the
3502 (remote_async_wait): Ditto.
3504 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3506 * sparc-tdep.c (sparc_y_regnum): Make external again.
3508 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3510 * cli/cli-logging.c (pop_output_files): Add void to function
3513 2003-06-29 Andrew Cagney <cagney@redhat.com>
3515 * frame.c (frame_register_unwind): Use unsigned char when dumping
3516 the buffer contents.
3518 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3520 * cli/cli-logging.c: New file.
3521 * cli-out.c (struct ui_out_data): Add original_stream.
3522 (cli_redirect): New function.
3523 (cli_ui_out_impl): Add cli_redirect.
3524 (cli_out_new): Initialize original_stream.
3525 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3526 (uo_redirect, ui_out_redirect): New.
3527 * ui-out.h (struct ui_out_impl): Add redirect member.
3528 (redirect_ftype): New.
3529 (ui_out_redirect): Add prototype.
3530 * Makefile.in: Add rules for cli-logging.c.
3531 * NEWS: Mention "set logging".
3533 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3535 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3537 2003-06-27 Andrew Cagney <cagney@redhat.com>
3539 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3540 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3541 * avr-tdep.c (avr_call_dummy_address): Delete function.
3542 (avr_gdbarch_init): Do not set call_dummy_address.
3544 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3546 * symfile.c (syms_from_objfile): Move variables to inner block.
3547 Move the checks for the non-mainline case a bit earlier to avoid
3548 doing some useless computations.
3550 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3552 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3554 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3556 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3559 2003-06-26 Michael Chastain <mec@shout.net>
3561 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3562 gdb/testsuite/gdb.c++/pr-1210.exp.
3564 2003-06-26 Andrew Cagney <cagney@redhat.com>
3566 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3567 altivec_expression.h and altivec_registers.h.
3569 2003-06-26 Andrew Cagney <cagney@redhat.com>
3571 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3572 info->mach when MIPS16. Patch suggested by Fred Fish.
3574 2003-06-26 Andrew Cagney <cagney@redhat.com>
3576 * utils.c (internal_vproblem): Print the problem to a reason
3577 buffer and then pass to query. Make the msg variable more local.
3579 2003-06-26 Andrew Cagney <cagney@redhat.com>
3581 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3582 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3583 * gdbarch.h, gdbarch.c: Re-generate.
3584 * frame-base.c (default_frame_args_address): Update. Use
3585 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3587 (default_frame_locals_address): Ditto for
3588 DEPRECATED_FRAME_LOCALS_ADDRESS.
3589 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3590 (vax_frame_num_args): Update.
3591 (vax_gdbarch_init): Update.
3592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3593 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3594 * mcore-tdep.c (mcore_gdbarch_init): Update.
3595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3596 * ia64-tdep.c (ia64_gdbarch_init): Update.
3597 * symtab.h (address_class): Update comments.
3598 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3599 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3600 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3601 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3602 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3603 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3604 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3605 * alpha-mdebug-tdep.c: Update.
3606 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3608 2003-06-26 Andreas Jaeger <aj@suse.de>
3610 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3611 of SSE registers so that varargs functions work. Rework handling
3612 of passing arguments on the stack.
3613 (x86_64_store_return_value): Return double and float values in SSE
3616 2003-06-24 Michael Chastain <mec@shout.net>
3618 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3619 the "constructor breakpoints ignored" bug.
3621 2003-06-25 David Carlton <carlton@kealia.com>
3623 * MAINTAINERS: Update e-mail address.
3625 2003-06-24 Jim Blandy <jimb@redhat.com>
3627 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3629 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3631 (ppc_linux_init_abi): Register it as the
3632 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3634 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3635 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3638 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3639 (ppc64_standard_linkage_target): Use it.
3641 2003-06-23 Andrew Cagney <cagney@redhat.com>
3643 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3644 for 0 "int0" and 4 "int32" sized registers.
3645 * gdbtypes.c (builtin_type_int0): Define.
3646 (build_gdbtypes): Initialize builtin_type_int0.
3647 * gdbtypes.h (builtin_type_int0): Declare.
3649 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3652 as characters are unsigned.
3654 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3657 * dwarfread.c (struct_type): Skip static fields without crashing.
3659 2003-06-22 Andrew Cagney <cagney@redhat.com>
3661 GDB 6.0 branch created.
3663 * PROBLEMS: Update. Empty.
3666 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3668 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3669 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3671 2003-06-22 Andrew Cagney <cagney@redhat.com>
3673 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3674 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3677 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3679 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3682 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3684 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3685 argument of val_print.
3686 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3687 to the address argument of baseclass_offset or target_read_memory.
3688 Do add it to the argument of cp_print_value_fields.
3690 2003-06-21 Andrew Cagney <cagney@redhat.com>
3692 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3693 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3694 instead of 0..NUM_REGS.
3695 (mips_register_reggroup_p): New function.
3696 (mips_pseudo_register_write): New function.
3697 (mips_pseudo_register_read): New function.
3698 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3699 based on the register's type.
3700 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3702 (mips_get_saved_register): Simplify. Assert that REGNO is a
3704 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3705 (mips_register_type): Replace mips_register_virtual_type. Map
3706 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3708 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3709 that the register is cooked / virtual.
3710 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3711 Only get the extra info when needed.
3712 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3713 (mips32_heuristic_proc_desc): Fetch the cooked register.
3714 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3715 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3716 (mips_print_register): Use gdbarch_register_type, instead of
3717 REGISTER_VIRTUAL_TYPE.
3718 (print_gp_register_row): Use gdbarch_register_type, instead of
3719 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3720 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3721 Print the pseudo / cooked registers.
3722 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3723 Print the pseudo / cooked registers.
3724 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3725 REG_NUM is pseudo / cooked.
3726 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3727 (mips_n32n64_xfer_return_value): Ditto.
3728 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3729 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3730 (mips_register_sim_regno): New function.
3731 (mips_gdbarch_init): Set deprecated_register_byte,
3732 register_group_p, pseudo_register_write, pseudo_register_read,
3733 register_sim_regno, and num_pseudo_regs. Set register_type,
3734 instead of register_virtual_type.
3735 * Makefile.in (mips-tdep.o): Update dependencies.
3736 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3737 REGISTER_VIRTUAL_TYPE.
3738 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3739 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3740 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3741 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3742 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3744 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3746 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3747 * cli/cli-cmds.c: Include "gdb_vfork.h".
3748 (shell_escape): Use vfork.
3750 2003-06-21 Andrew Cagney <cagney@redhat.com>
3752 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3753 32 bit floating-point register saves.
3755 * frame.h (deprecated_unwind_get_saved_register): Delete.
3756 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3757 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3758 and deprecated_get_next_frame_hack instead of
3759 deprecated_unwind_get_saved_register.
3761 * mips-tdep.c (mips_dump_tdep): Do not print
3762 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3764 * frame.c (get_frame_register): New function.
3765 (frame_unwind_register_signed): New function.
3766 (get_frame_register_signed): New function.
3767 (frame_unwind_register_unsigned): New function.
3768 (get_frame_register_unsigned): New function.
3769 * frame.h: Add comments on naming schema.
3770 (get_frame_register, frame_unwind_register_signed): Declare.
3771 (get_frame_register_signed, get_frame_register_signed): Declare.
3772 (frame_unwind_register_unsigned): Declare.
3773 (get_frame_register_unsigned): Declare.
3775 2003-06-20 Theodore A. Roth <troth@openavr.org>
3777 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3779 2003-06-20 Theodore A. Roth <troth@openavr.org>
3781 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3782 (avr_read_sp): Ditto.
3784 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3786 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3787 * config/arm/nm-linux.h: Likewise.
3788 * config/arm/tm-linux.h: Likewise.
3789 * config/ia64/nm-linux.h: Likewise.
3790 * config/ia64/tm-ia64.h: Likewise.
3791 * config/s390/tm-linux.h: Likewise.
3792 * config/s390/tm-s390.h: Likewise.
3793 * s390-nat.c: Likewise.
3794 * s390-tdep.c: Likewise.
3796 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3797 * config/ia64/linux.mt: Likewise.
3798 * config/m68k/linux.mh: Likewise.
3799 * config/mips/linux.mt: Likewise.
3800 * config/powerpc/linux.mh: Likewise.
3801 * config/sh/linux.mt: Likewise.
3803 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3805 * solib.c (solib_open): Change tests for whether to search
3806 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3809 2003-06-19 Theodore A. Roth <troth@openavr.org>
3811 * avr-tdep.c (avr_frame_address): Delete function.
3812 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3813 set_gdbarch_frame_args_address.
3815 2003-06-19 Andrew Cagney <cagney@redhat.com>
3817 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3818 (REGISTER_CONVERT_FROM_TYPE): Delete.
3819 (mips_register_convert_to_type): Delete declaration.
3820 (mips_register_convert_from_type): Delete declaration.
3821 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3824 2003-06-19 Michael Snyder <msnyder@redhat.com>
3826 * linux-nat.h: New file.
3827 * linux-nat.c: Include linux-nat.h.
3828 * lin-lwp.c: Include linux-nat.h.
3829 Move struct lwp_info def to linux-nat.h.
3830 * linux-proc.c: Include linux-nat.h.
3831 (linux_make_note_section): Iterate over lwps instead of threads.
3832 (linux_do_thread_registers): Use lwp instead of merged pid.
3833 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3834 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3835 Add dependency on linux_nat_h.
3837 2003-06-19 Theodore A. Roth <troth@openavr.org>
3839 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3841 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3843 * varobj.c (get_type, get_target_type): Use check_typedef.
3845 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3847 * breakpoint.c (insert_catchpoint): Call internal_error.
3849 2003-06-19 Theodore A. Roth <troth@openavr.org>
3851 * avr-tdep.c (avr_push_dummy_code): Delete function.
3852 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3854 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3856 * arch-utils.c (default_prepare_to_proceed): Remove.
3857 (generic_prepare_to_proceed): Remove.
3858 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3859 (generic_prepare_to_proceed): Remove prototype.
3860 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3861 * gdbarch.c: Regenerate.
3862 * gdbarch.h: Regenerate.
3863 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3864 * hppah-nat.c (hppa_switched_threads): Remove.
3865 * infrun.c (prepare_to_proceed): New static function, copied from
3866 generic_prepare_to_proceed. Remove select_it argument.
3867 (proceed): Call prepare_to_proceed.
3868 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3870 (ptrace_wait): Don't set the removed variables.
3871 (hppa_switched_threads): Remove.
3872 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3873 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3874 (lin_lwp_prepare_to_proceed): Remove prototype.
3875 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3876 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3878 2003-06-18 Theodore A. Roth <troth@openavr.org>
3880 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3882 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3883 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3884 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3885 (AVR_PROLOGUE_*): Enumerate prologue types.
3886 (struct frame_extra_info): Remove.
3887 (struct avr_unwind_cache): Define.
3888 (avr_write_sp): Delete function.
3889 (avr_read_fp): Ditto.
3890 (avr_init_extra_frame_info): Ditto.
3891 (avr_pop_frame): Ditto.
3892 (avr_frame_saved_pc): Ditto.
3893 (avr_saved_pc_after_call): Ditto.
3894 (avr_push_return_address): Ditto.
3895 (avr_frame_chain): Ditto.
3896 (avr_store_struct_return): Ditto.
3897 (avr_push_arguments): Ditto.
3898 (avr_scan_prologue): Update comments. Changed to set up the info for
3899 cache unwinding. Now returns end of prologue PC.
3900 (avr_skip_prologue): Better handling of functions lacking a prologue
3901 by using avr_scan_prologue.
3902 (avr_scan_arg_moves): New function.
3903 (avr_saved_regs_unwinder): Ditto.
3904 (avr_frame_unwind_cache): Ditto.
3905 (avr_unwind_pc): Ditto.
3906 (avr_frame_this_id): Ditto.
3907 (avr_frame_prev_register): Ditto.
3908 (avr_frame_p): Ditto.
3909 (avr_frame_base_address ): Ditto.
3910 (avr_unwind_dummy_id): Ditto.
3911 (avr_push_dummy_code): Ditto.
3912 (push_stack_item): Ditto.
3913 (pop_stack_item): Ditto.
3914 (avr_push_dummy_call): Ditto.
3915 (struct stack_item): Define.
3916 (avr_frame_unwind): Declare structure.
3917 (avr_frame_base): Ditto.
3918 (avr_gdbarch_init): Remove calls to
3919 set_gdbarch_deprecated_init_frame_pc,
3920 set_gdbarch_deprecated_target_read_fp,
3921 set_gdbarch_deprecated_dummy_write_sp,
3922 set_gdbarch_deprecated_fp_regnum,
3923 set_gdbarch_deprecated_push_arguments,
3924 set_gdbarch_deprecated_push_return_address,
3925 set_gdbarch_deprecated_pop_frame,
3926 set_gdbarch_deprecated_store_struct_return,
3927 set_gdbarch_deprecated_frame_init_saved_regs,
3928 set_gdbarch_deprecated_init_extra_frame_info,
3929 set_gdbarch_deprecated_frame_chain,
3930 set_gdbarch_deprecated_frame_saved_pc,
3931 set_gdbarch_deprecated_saved_pc_after_call.
3932 Add calls to set_gdbarch_push_dummy_call,
3933 set_gdbarch_push_dummy_code,
3934 frame_unwind_append_predicate,
3935 frame_base_set_default,
3936 set_gdbarch_unwind_dummy_id,
3937 set_gdbarch_unwind_pc.
3940 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3942 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3943 registers for H8/300S.
3944 (h8300_print_registers_info): Ditto.
3945 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3947 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3949 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3950 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3951 (lin_lwp_wait): Likewise. Update comments.
3952 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3953 (pull_pid_from_list, linux_record_stopped_pid): New.
3955 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3957 * ada-lang.c (scan_discrim_bound): Name first argument.
3958 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3959 declared by ALL_BLOCK_SYMBOLS.
3961 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3963 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3964 ("regcache.h"): Include it.
3965 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3967 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3969 * NEWS: Mention gdbserver detach change and "disconnect" command.
3970 * infcmd.c (disconnect_command): New function.
3971 (_initialize_infcmd): Add ``disconnect'' command.
3972 * remote.c (remote_async_detach): Delete.
3973 (remote_detach): Merge remote_async_detach.
3974 (remote_disconnect): New.
3975 (init_remote_ops): Set to_disconnect.
3976 (init_remote_cisco_ops): Likewise.
3977 (init_remote_async_ops): Likewise. Use remote_detach.
3978 * target.c (cleanup_target): Default to_disconnect.
3979 (update_current_target): Inherit to_disconnect.
3980 (target_disconnect, debug_to_disconnect): New functions.
3981 (setup_target_debug): Set to_disconnect.
3982 * target.h (struct target_ops): Add to_disconnect.
3983 (target_disconnect): Add prototype.
3985 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3987 * breakpoint.c (insert_catchpoint): New function.
3988 (insert_breakpoints): Use catch_exceptions to call
3989 insert_catchpoint. Disable catchpoints if they fail to insert.
3991 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3993 * symfile.c (reread_symbols): Clear sym_private.
3995 2003-06-17 Andrew Cagney <cagney@redhat.com>
3997 * trad-frame.h (struct frame_info): Add opaque declaration.
3998 * remote-fileio.h (struct cmd_list_element): Add opaque
4000 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4003 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4005 * remote.c (remote_prepare_to_store): Replace call to
4006 deprecated_read_register_bytes with multiple regcache_raw_read
4009 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4011 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4012 (nto_find_and_open_solib): Likewise.
4013 (nto_init_solib_absolute_prefix): Likewise.
4014 (_initialize_nto_tdep): Fix indentation.
4016 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4018 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4020 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4022 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4024 2003-06-17 Jim Blandy <jimb@redhat.com>
4026 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4028 2003-06-16 Theodore A. Roth <troth@openavr.org>
4030 * avr-tdep.c (avr_extract_return_value): New function.
4031 (avr_gdbarch_init): Set extract_return_value method.
4033 2003-06-16 Andrew Cagney <cagney@redhat.com>
4035 * frame.h (deprecated_get_next_frame_hack): Declare.
4036 * frame.c (legacy_saved_regs_prev_register): Only require
4037 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4038 there are always saved regs.
4039 (deprecated_generic_get_saved_register): Do not require
4040 DEPRECATED_FRAME_INIT_SAVED_REGS.
4041 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4042 use frame ID unwind instead.
4043 (deprecated_get_next_frame_hack): New function.
4045 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4047 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4048 (h8300_push_dummy_call): ...this function. Some minor optimization.
4049 (h8300_push_return_address): Remove.
4050 (h8300_gdbarch_init): Remove calls to
4051 set_gdbarch_deprecated_dummy_write_sp,
4052 set_gdbarch_deprecated_push_arguments and
4053 set_gdbarch_deprecated_push_return_address.
4054 Add call to set_gdbarch_push_dummy_call.
4056 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4058 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4059 (E_PSEUDO_EXR_REGNUM): Ditto.
4060 (h8300_is_argument_spill): Check for instructions moving argument
4061 registers into safe registers.
4062 (h8300_skip_prologue): Check for stm instruction to push registers
4063 used for register variables onto stack.
4064 (gdb_print_insn_h8300): Remove.
4065 (h8300_examine_prologue): Add a comment.
4066 (h8300_register_name): Take pseudo registers into account.
4067 (h8300s_register_name): Ditto.
4068 (h8300sx_register_name): Ditto.
4069 (h8300_print_register): Ditto.
4070 (h8300_print_registers_info): Define "nice" printing order.
4071 (h8300_saved_pc_after_call): Take pseudo registers into account.
4072 (h8300_register_type): Ditto. Return type used for remote connection
4073 when requesting real CCR or EXR register, return actual type when
4074 requesting pseudo CCR or EXR.
4075 (h8300_pseudo_register_read): New function.
4076 (h8300_pseudo_register_write): Ditto.
4077 (h8300_dbg_reg_to_regnum): Ditto.
4078 (h8300s_dbg_reg_to_regnum): Ditto.
4079 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4080 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4081 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4082 set_gdbarch_print_insn architecture dependent.
4083 Call set_gdbarch_pseudo_register_read and
4084 set_gdbarch_pseudo_register_write.
4085 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4087 2003-06-16 Andrew Cagney <cagney@redhat.com>
4089 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4090 * gdbarch.h, gdbarch.c: Re-generate.
4091 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4092 * s390-tdep.c (s390_gdbarch_init): Update.
4093 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4094 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4095 * mips-tdep.c (mips_gdbarch_init): Update.
4096 * mcore-tdep.c (mcore_gdbarch_init): Update.
4097 * cris-tdep.c (cris_gdbarch_init): Update.
4098 * infcall.c (call_function_by_hand): Update.
4099 * ia64-tdep.c (ia64_push_arguments): Update comment.
4100 * frame.c (legacy_get_prev_frame): Do not assume
4101 SAVE_DUMMY_FRAME_TOS_P.
4102 * dummy-frame.c (find_dummy_frame): Update comment.
4104 2003-06-16 Andrew Cagney <cagney@redhat.com>
4106 * regcache.c (do_cooked_read): Do not use register_valid_p.
4108 2003-06-15 Theodore A. Roth <troth@openavr.org>
4110 * avr-tdep.c (avr_register_type): Remove a blank line.
4111 (avr_scan_prologue): Correct some comments.
4113 2003-06-15 Theodore A. Roth <troth@openavr.org>
4115 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4117 Properly scan prologues generated by gcc with the -mcall-prologues
4119 Add code to scan -mcall-prologues for mega devices.
4121 2003-06-15 Theodore A. Roth <troth@openavr.org>
4123 * avr-tdep.c (avr_register_byte): Delete function.
4124 (avr_register_raw_size): Delete function.
4125 (avr_register_virtual_size): Delete function.
4126 (avr_register_virtual_type): Delete function.
4127 (avr_register_type): New function.
4128 (avr_address_to_pointer): Remove unused code.
4129 (avr_read_fp): Need to read FP as two separate bytes due to change to
4130 avr_register_type() usage.
4131 (avr_gdbarch_init): Don't set deprecated_register_size.
4132 Don't set deprecated_register_bytes.
4133 Don't set deprecated_register_byte.
4134 Don't set deprecated_register_raw_size.
4135 Don't set deprecated_max_register_raw_size.
4136 Don't set deprecated_register_virtual_size.
4137 Don't set deprecated_max_register_virtual_size.
4138 Don't set deprecated_register_virtual_type.
4139 Set register_type method.
4141 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4143 * Makefile.in (linux-nat.o): Add rule.
4144 * linux-nat.c: New file.
4145 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4146 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4147 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4148 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4149 * config/arm/linux.mh (NATDEPFILES): Likewise.
4150 * config/i386/linux.mh (NATDEPFILES): Likewise.
4151 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4152 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4153 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4154 * config/mips/linux.mh (NATDEPFILES): Likewise.
4155 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4156 * config/s390/s390.mh (NATDEPFILES): Likewise.
4157 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4159 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4161 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4162 replace out-of-date comment.
4164 2003-06-15 Andrew Cagney <cagney@redhat.com>
4166 * rdi-share/host.h (Fail): Change to a varargs function.
4167 * remote-rdi.c (Fail): Update.
4169 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4171 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4172 (i386_convert_register_p, i386_register_to_value,
4173 i386_register_from_value): Handle types longer than 8 bytes.
4175 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4177 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4178 Move floating-point code to new function in i387-tdep.c.
4179 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4180 New functions containing code moved here from i386-tdep.c.
4181 * i387-tdep.h: Add opaque declaration for `struct type'.
4182 (i387_register_to_value, i387_value_to_register): New prototypes.
4183 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4184 (x86_64_init_abi): Set convert_register_p, register_to_value and
4185 value_to_register here.
4187 2003-06-14 Andrew Cagney <cagney@redhat.com>
4189 * mips-tdep.c (mips_register_to_value): Make static.
4190 (mips_value_to_register): Make static.
4191 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4192 * ia64-tdep.c (ia64_register_raw_size): Make static.
4193 (ia64_register_virtual_size): Make static.
4194 (ia64_register_byte): Make static.
4195 * i387-tdep.c: Include "i387-tdep.h".
4196 (print_387_control_word): Delete function.
4197 (print_387_status_word): Delete function.
4198 (print_387_status_bits): Delete function.
4199 (print_387_control_bits): Delete function.
4200 * Makefile.in (i387-tdep.o): Update dependencies.
4201 * rdi-share/host.h (Fail): Declare.
4202 * remote-rdi.c (Fail): Update to match declaration.
4204 2003-06-14 Andrew Cagney <cagney@redhat.com>
4206 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4207 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4208 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4209 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4210 * README: Delete reference to remote-array.
4211 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4212 (remote-array.o): Delete target.
4213 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4214 * remote-array.c: Delete file.
4216 2003-06-14 Andrew Cagney <cagney@redhat.com>
4217 Mark Kettenis <kettenis@gnu.org>
4219 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4220 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4221 parameter with "frame".
4222 * gdbarch.h, gdbarch.c: Re-generate.
4223 * frame.h (put_frame_register): Declare.
4224 * frame.c (put_frame_register): New function.
4225 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4226 (legacy_register_to_value): Rewrite, use "frame" to get the
4228 (legacy_value_to_register): Rewrite, use "frame" to find the
4229 register's location before storing.
4230 * arch-utils.h (legacy_convert_register_p): Update.
4231 (legacy_register_to_value, legacy_value_to_register): Update.
4232 * findvar.c (value_from_register): Rewrite, eliminate use of
4233 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4234 "frame" to REGISTER_TO_VALUE.
4235 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4236 lval_reg_frame_relative + lval_register branch of the switch. Do
4237 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4238 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4239 I386_EDI_REGNUM): New defines.
4240 (i386_next_regnum, i386_convert_register_p,
4241 i386_register_to_value, i386_value_to_register): New functions.
4242 (i386_register_convertible, i386_register_convert_to_virtual,
4243 i386_convert_to_raw): Remove functions.
4244 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4245 value_to_register instead of register_convertible,
4246 register_convert_to_virtual and register_convert_to_raw.
4247 * mips-tdep.c (mips_convert_register_p): New function.
4248 (mips_value_to_register): Replace mips_register_convert_from_type.
4249 (mips_register_to_value): Replace mips_register_convert_to_type.
4250 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4252 * alpha-tdep.c (alpha_convert_register_p): Update.
4253 (alpha_value_to_register): Update, store the register.
4254 (alpha_register_to_value): Update, fetch the register.
4256 2003-06-14 Theodore A. Roth <troth@openavr.org>
4258 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4259 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4260 Don't set deprecated_call_dummy_words.
4261 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4262 Don't set remote_translate_xfer_address.
4263 (avr_io_reg_read_command): Remove commented out debug printf.
4266 2003-06-14 Theodore A. Roth <troth@openavr.org>
4268 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4269 causes gdb to seg fault.
4271 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4273 * sparc-nat.c (fetch_inferior_registers): Correct
4274 a reference to "registers".
4276 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4278 * Makefile.in (exc_request_U_h): Define
4279 (exc_request_S_h): Likewise.
4280 (msg_reply_S_h): Likewise.
4281 (msg_U_h): Likewise.
4282 (notify_S_h): Likewise.
4283 (process_reply_S_h): Likewise.
4284 (gnu-nat.o): Depend on gdb_obstack_h
4285 * gnu-nat.c: Include "gdb_obstack.h".
4287 2003-06-13 Andrew Cagney <cagney@redhat.com>
4289 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4290 * gdbarch.h, gdbarch.c: Re-generate.
4292 2003-06-13 Andrew Cagney <cagney@redhat.com>
4294 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4295 when deprecated REGISTER macros can be deleted.
4296 * gdbarch.h, gdbarch.c: Re-generate.
4298 2003-06-13 Jim Blandy <jimb@redhat.com>
4300 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4301 Linux entry point symbols for _dl_debug_state, too.
4303 2003-06-13 Andrew Cagney <cagney@redhat.com>
4305 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4306 available, do not use the FP register, and always save the TOS.
4307 * dummy-frame.c (dummy_frame_this_id): Do not assert
4308 SAVE_DUMMY_FRAME_TOS.
4309 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4310 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4311 (i386_push_dummy_call): Add 8 to the returned SP.
4312 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4313 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4314 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4315 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4316 (x86_64_push_dummy_call): Return "sp + 16".
4317 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4318 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4319 save_dummy_frame_tos.
4321 2003-06-13 Jim Blandy <jimb@redhat.com>
4323 * frv-tdep.c (frv_use_struct_convention): Delete static
4324 declaration for function deleted in my change of 2003-06-12.
4326 2003-06-13 Theodore A. Roth <troth@openavr.org>
4328 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4329 (avr_pointer_to_address): Shift code addrs left 1 bit.
4330 (avr_convert_from_func_ptr_addr): Delete function since operation is
4331 better handled by avr_address_to_pointer and avr_pointer_to_address.
4332 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4334 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4336 From Kelley Cook <kelleycook@wideopenwest.com>:
4337 * configure.host: Accept i[34567]86 variants.
4338 * configure.tgt: Likewise.
4339 * nlm/configure.in: Likewise.
4340 * nlm/configure: Regenerated.
4342 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4344 * arm-tdep.c (solib-svr4.h): Dont' include it.
4345 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4346 * arm-linux-tdep.c: ... here. Make static.
4347 (arm_linux_init_abi): Register it.
4348 (solib-svr4.h): Include it.
4349 * Makefile.in: Update dependencies.
4350 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4351 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4353 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4355 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4356 indicate registers used for return values.
4357 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4358 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4360 (h8300_init_extra_frame_info): Ditto.
4361 (h8300_frame_locals_address): Removed.
4362 (h8300_frame_args_address): Removed.
4363 (h8300_extract_return_value): Use new regcache structure. Only care
4365 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4366 (h8300_store_return_value): Use new regcache structure. Only care
4368 (h8300h_store_return_value): Same function for 32 bit CPUs.
4369 (h8300_store_struct_return): Removed.
4370 (h8300_extract_struct_value_address): Use new regcache structure.
4371 (h8300h_extract_struct_value_address): Removed.
4372 (h8300_push_dummy_code): New function.
4373 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4374 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4375 set_gdbarch_store_return_value architecture dependent.
4376 Call set_gdbarch_push_dummy_code and
4377 set_gdbarch_extract_struct_value_address.
4378 Remove calls to set_gdbarch_frame_args_address,
4379 set_gdbarch_frame_locals_address,
4380 set_gdbarch_deprecated_store_struct_return,
4381 set_gdbarch_deprecated_extract_return_value,
4382 set_gdbarch_deprecated_extract_struct_value_address,
4383 set_gdbarch_deprecated_call_dummy_words and
4384 set_gdbarch_deprecated_sizeof_call_dummy_words.
4386 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4388 * h8300-tdep.c (h8300_register_byte): Remove.
4389 (h8300h_register_byte): Remove.
4390 (h8300_register_virtual_type): Remove. Substitute by...
4391 (h8300_register_type): New function.
4392 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4393 (h8300h_extract_struct_value_address): Ditto.
4394 (h8300_gdbarch_init): Drop calls to
4395 set_gdbarch_deprecated_register_byte and
4396 set_gdbarch_deprecated_register_virtual_type.
4397 Add call to set_gdbarch_register_type.
4399 2003-06-13 Andrew Cagney <cagney@redhat.com>
4401 * gdbarch.sh: Update comments on registers.
4402 (deprecated_register_byte): Rename register_byte.
4403 (deprecated_register_raw_size): Rename register_raw_size.
4404 (deprecated_register_virtual_size): Rename register_virtual_size.
4405 (deprecated_register_virtual_type): Rename register_virtual_type.
4406 * gdbarch.h, gdbarch.c: Re-generate.
4407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4408 * vax-tdep.c (vax_gdbarch_init): Update.
4409 * v850-tdep.c (v850_gdbarch_init): Update.
4410 * sparc-tdep.c (sparc_gdbarch_init): Update.
4411 * sh-tdep.c (sh_gdbarch_init): Update.
4412 * s390-tdep.c (s390_gdbarch_init): Update.
4413 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4414 * ns32k-tdep.c: Update.
4415 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4416 * mips-tdep.c (mips_gdbarch_init): Update.
4417 * mcore-tdep.c (mcore_gdbarch_init): Update.
4418 * m68k-tdep.c (m68k_gdbarch_init): Update.
4419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4420 * ia64-tdep.c (ia64_gdbarch_init): Update.
4421 * hppa-tdep.c (hppa_gdbarch_init): Update.
4422 * h8300-tdep.c (h8300_gdbarch_init): Update.
4423 * frv-tdep.c (frv_gdbarch_init): Update.
4424 * cris-tdep.c (cris_gdbarch_init): Update.
4425 * avr-tdep.c (avr_gdbarch_init): Update.
4426 * alpha-tdep.c (alpha_gdbarch_init): Update.
4427 * arm-tdep.c (arm_gdbarch_init): Update.
4429 2003-06-13 Andrew Cagney <cagney@redhat.com>
4431 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4432 mips_o32_use_struct_convention with always_use_struct_convention.
4434 2003-06-12 David Carlton <carlton@kealia.com>
4436 * cp-namespace.c (cp_set_block_scope): Comment out
4437 processing_has_namespace_info branch.
4439 2003-06-12 Jim Blandy <jimb@redhat.com>
4441 Recognize and skip 64-bit PowerPC Linux linkage functions.
4442 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4443 insn_pattern, insns_match_pattern, d_field, ds_field): New
4444 functions, macros, and types for working with PPC instructions.
4445 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4446 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4447 ppc64_skip_trampoline_code): New functions, variables, and macros
4448 for recognizing and skipping linkage functions.
4449 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4450 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4452 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4453 register offsets for both the 32- and 64-bit interfaces.
4455 Actually finish the job started by my change of 2003-05-29.
4456 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4457 other #definition of this.
4458 (ppc_linux_skip_trampoline_code): Remove declaration.
4459 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4461 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4464 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4465 'long' on ppc64-*-linux*.
4467 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4468 isn't #defined, assume the register doesn't exist: act as if
4469 tdep->ppc_mq_regnum were -1.
4471 * configure.host, configure.tgt: Add entries for
4472 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4474 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4477 * arch-utils.c (always_use_struct_convention): New function.
4478 * arch-utils.h (always_use_struct_convention): New prototype.
4479 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4480 (alpha_gdbarch_init): Register always_use_struct_convention,
4481 instead of alpha_use_struct_convention.
4482 * cris-tdep.c (cris_use_struct_convention): Delete.
4483 (cris_gdbarch_init): Register always_use_struct_convention,
4484 instead of cris_use_struct_convention.
4485 * frv-tdep.c (frv_use_struct_convention): Delete.
4486 (frv_gdbarch_init): Register always_use_struct_convention,
4487 instead of frv_use_struct_convention.
4488 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4489 (h8300_gdbarch_init): Register always_use_struct_convention,
4490 instead of h8300_use_struct_convention.
4491 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4492 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4493 instead of mips_o32_use_struct_convention.
4495 2003-06-12 Andrew Cagney <cagney@redhat.com>
4497 * wince.c: Include "mips-tdep.h".
4498 * mips-tdep.h (mips_next_pc): Declare.
4499 * mcore-tdep.c: Make more local functions static.
4500 * Makefile.in (wince.o): Update dependencies.
4502 2003-06-12 David Carlton <carlton@kealia.com>
4504 * symtab.c (lookup_symbol_aux_minsyms): Replace
4505 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4506 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4507 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4508 SYMBOL_NATURAL_NAME.
4510 2003-06-12 Andreas Schwab <schwab@suse.de>
4512 * Makefile.in (tuiDisassem.o): Update dependencies.
4514 2003-06-12 David Carlton <carlton@bactrian.org>
4516 * symtab.h: Delete declaration of make_symbol_overload_list.
4517 Add declaration of lookup_partial_symbol.
4518 * symtab.c (remove_params): Move to cp-support.c.
4519 (overload_list_add_symbol, make_symbol_overload_list)
4520 (sym_return_val_size, sym_return_val_index): Ditto.
4521 (lookup_partial_symbol): Make extern.
4522 * cp-support.h: Add declaration of make_symbol_overload_list.
4523 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4524 symtab.h, and block.h.
4525 (remove_params): Move here from symtab.c.
4526 (overload_list_add_symbol, make_symbol_overload_list)
4527 (sym_return_val_size, sym_return_val_index): Ditto.
4528 * valops.c: Include cp-support.h.
4529 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4530 frame_h, and block_h.
4531 (valops.o): Depend on cp_support_h.
4533 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4535 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4536 substitute by NUM_REGS throughout.
4537 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4538 (h8300s_register_name): New function for H8S registers.
4539 (h8300sx_register_name): Ditto for H8SX registers.
4540 (h8300_print_register): Revise register printing, avoid depending
4542 (h8300_register_byte): Only care for H8/300 registers.
4543 (h8300h_register_byte): New function for any other architecture.
4544 (h8300_register_raw_size): Remove.
4545 (h8300_register_virtual_type): Revise to return actually useful
4547 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4548 (h8300h_extract_struct_value_address): New function for any other
4550 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4551 set_gdbarch_register_name, set_gdbarch_register_byte,
4552 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4553 Remove calls to set_gdbarch_deprecated_register_size,
4554 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4555 set_gdbarch_deprecated_max_register_raw_size,
4556 set_gdbarch_register_virtual_size and
4557 set_gdbarch_deprecated_max_register_virtual_size entirely.
4558 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4559 set_gdbarch_long_double_bit.
4561 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4563 * doublest.c (convert_doublest_to_floatformat): When dealing
4564 with the implied integer bit, only alter mant_bits if we are
4565 processing a full 32 bits of mantissa.
4567 2003-06-11 David Carlton <carlton@bactrian.org>
4569 * dictionary.h: New.
4570 * dictionary.c: New.
4571 * block.h: Add opaque declaration for struct dictionary.
4572 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4574 (BLOCK_DICT): New macro.
4575 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4576 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4578 (ALL_BLOCK_SYMBOLS): Update definition.
4579 * Makefile.in (SFILES): Add dictionary.c.
4580 (dictionary_h): New.
4581 (COMMON_OBS): Add dictionary.o.
4582 (dictionary.o): New.
4583 (ada-lang.o): Depend on dictionary_h.
4584 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4585 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4586 (mi-cmd-stack.o): Ditto.
4587 (gdbtk-cmds.o): Update dependencies.
4588 (gdbtk-stack.o): Ditto.
4589 * ada-lang.c: Include dictionary.h.
4590 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4591 (fill_in_ada_prototype, debug_print_block): Ditto.
4592 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4593 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4595 * mdebugread.c: Include dictionary.h.
4596 (struct parse_stack): Delete 'maxsyms' member.
4597 (parse_symbol): Update calls to new_block. Delete calls to
4598 shrink_block. Use dictionary methods.
4599 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4600 Update calls to new_symtab. Don't maintain maxsyms data.
4601 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4602 (add_symbol): Just call dict_add_symbol.
4603 (new_symtab): Delete 'maxsyms' argument.
4604 (new_symtab): Update calls to new_block.
4605 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4606 (shrink_block): Delete function.
4607 (fixup_sigtramp): Update call to new_block. Add symbol via
4609 * jv-lang.c: Include dictionary.h.
4610 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4611 appropriately. Set class_symtab->free_func. Make sure the
4612 blockvector is big enough to hold two blocks.
4613 (add_class_symtab_symbol): Use dictionary methods.
4614 (free_class_block): New function.
4615 (type_from_class): Replace explicit iteration by
4617 * symtab.h (struct symtab): Replace 'free_ptr' method by
4619 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4621 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4623 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4624 Include dictionary.h.
4625 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4626 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4628 * objfiles.c: Include dictionary.h.
4629 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4630 * buildsym.c: Include dictionary.h.
4631 (finish_block): Use dictionary methods.
4632 (end_symtab): Set free_func to NULL, not free_ptr.
4633 * tracepoint.c: Include dictionary.h.
4634 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4635 (scope_info): Ditto.
4636 * stack.c: Include dictionary.h.
4637 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4638 (print_block_frame_labels, print_frame_arg_vars)
4639 (print_frame_args): Ditto.
4640 * symmisc.c (free_symtab_block): Use dictionary methods.
4641 (dump_symtab): Ditto.
4642 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4643 Include dictionary.h.
4644 * symfile.h: Delete declarations of sort_block_syms,
4646 * symfile.c (sort_block_syms): Delete.
4647 (sort_symtab_syms): Delete.
4648 * symtab.c: Include dictionary.h.
4649 (lookup_block_symbol): Use dictionary iterators.
4650 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4651 (search_symbols, make_symbol_completion_list): Ditto.
4652 (make_symbol_overload_list): Ditto.
4653 * valops.c (value_of_local): Use dict_empty.
4654 Include dictionary.h.
4656 2003-06-11 J. Brobecker <brobecker@gnat.com>
4658 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4660 2003-06-11 David Carlton <carlton@bactrian.org>
4662 * block.h (BLOCK_SHOULD_SORT): Delete.
4663 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4665 * ada-lang.c (ada_add_block_symbols): Ditto.
4666 * symfile.c (sort_block_syms): Delete.
4667 (sort_symtab_syms): Ditto.
4668 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4670 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4671 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4672 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4673 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4674 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4675 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4676 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4678 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4680 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4683 2003-06-11 Andrew Cagney <cagney@redhat.com>
4685 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4686 REGISTER_CONVERTIBLE.
4687 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4688 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4689 * gdbarch.h, gdbarch.c: Re-generate.
4690 * arch-utils.h (deprecated_register_convertible_not): Rename
4691 generic_register_convertible_not.
4692 * arch-utils.c (deprecated_register_convertible_not): Rename
4693 generic_register_convertible.
4694 (legacy_convert_register_p, legacy_register_to_value): Update.
4695 * sh-tdep.c (sh64_push_arguments): Update.
4696 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4697 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4698 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4699 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4700 * arch-utils.c (legacy_value_to_register): Update.
4701 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4702 (rs6000_register_convert_to_raw): Make parameter "from" const.
4703 * mips-tdep.c (mips_gdbarch_init): Update.
4704 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4705 * infcmd.c (default_print_registers_info): Update.
4706 * ia64-tdep.c (ia64_gdbarch_init): Update.
4707 (ia64_register_convert_to_raw): Make parameter "from" const.
4708 * i386-tdep.c (i386_gdbarch_init): Update.
4709 (i386_register_convert_to_raw): Update.
4711 2003-06-11 Andrew Cagney <cagney@redhat.com>
4713 * remote-fileio.c: Include "remote-fileio.h".
4714 * Makefile.in (remote-fileio.o): Update dependencies.
4715 (remote_fileio_h): Fix typo.
4717 2003-06-11 Andrew Cagney <cagney@redhat.com>
4719 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4720 (xstormy16_save_dummy_frame_tos): Make static.
4721 (_initialize_xstormy16_tdep): Add declaration.
4722 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4723 * v850-tdep.c: Make local functions static.
4724 (_initialize_v850_tdep): Add declaration.
4725 * sparc-tdep.c: Make local functions static.
4726 (_initialize_sparc_tdep): Add declaration.
4727 * sh-tdep.c: Make local functions static.
4728 (_initialize_sh_tdep): Add declaration.
4729 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4730 * s390-tdep.c: Make local functions static.
4731 (_initialize_s390_tdep): Add declaration.
4732 * dbxread.c (find_stab_function_addr): Make static.
4733 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4734 * ocd.c (_initialize_remote_ocd): Add declaration.
4735 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4736 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4737 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4738 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4739 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4740 * remote-array.c (_initialize_array): Add declaration.
4741 (_initialize_remote_monitors): Add declaration.
4742 * remote-mips.c: Make local functions static.
4743 (_initialize_remote_mips): Add declaration.
4744 * mcore-tdep.c: Make all local functions static.
4745 (_initialize_mcore_tdep): Add declaration.
4746 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4747 * abug-rom.c (_initialize_abug_rom): Add declaration.
4748 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4749 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4750 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4751 * remote-est.c (_initialize_est): Add declaration.
4752 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4753 (m68hc11_call_dummy_address): Make static.
4754 * ia64-tdep.c: Make local functions static.
4755 (_initialize_ia64_tdep): Add declaration.
4756 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4757 * monitor.c (monitor_wait_filter): Make static.
4758 (_initialize_remote_monitors): Add declaration.
4759 * remote-hms.c (_initialize_remote_hms): Add declaration.
4760 * remote-e7000.c (fetch_regs_from_dump): Make static.
4761 (expect_n): Make static.
4762 (_initialize_remote_e7000): Add declaration.
4763 * ser-e7kpc.c: Always include "defs.h".
4764 (_initialize_ser_e7000pc): Add declaration.
4765 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4766 * cris-tdep.c: Make all but one function static.
4767 (_initialize_cris_tdep): Add declaration.
4768 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4769 * solib.c (update_solib_list): Make static.
4770 (_initialize_solib): Add declaration.
4771 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4772 (_initialize_avr_tdep): Add declaration.
4773 * remote-rdi.c (voiddummy): Make static.
4774 (_initialize_remote_rdi): Add declaration.
4775 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4776 * remote-rdp.c (send_rdp): Make static.
4777 (_initialize_remote_rdp): Add declaration.
4778 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4780 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4782 * remote-fileio.c: Make ari happy.
4784 2003-06-10 J. Brobecker <brobecker@gnat.com>
4786 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4787 fetching the trailing bytes of the buffer we are about to write.
4789 2003-06-10 Andrew Cagney <cagney@redhat.com>
4791 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4792 * Makefile.in (remote-fileio.o): Update dependencies.
4793 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4794 include <setjmp.h>, or <sys/types.h> conditional on USG.
4795 (remote_fio_jmp_buf): Delete global variable.
4797 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4798 Martin M. Hunt <hunt@redhat.com>
4800 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4801 (SFILES): Add remote-fileio.c.
4802 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4803 dependencies for building remote.o.
4804 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4805 * remote-fileio.h: New header file defining remote File-I/O interface.
4806 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4807 static storage class.
4808 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4810 (_initialize_remote): Call initialize_remote_fileio().
4811 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4812 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4813 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4814 (captured_main): Initialize new ui_files.
4815 * ui-file.c: Add read and fgets input functions.
4816 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4817 (null_file_read): New function.
4818 (ui_file_read): New function.
4819 (set_ui_file_read): New function.
4820 (stdio_file_read): New function.
4821 * ui-file.h: New type ui_file_read_ftype.
4822 (set_ui_file_read): Declare.
4823 (ui_file_read): Declare.
4825 2003-06-09 Andrew Cagney <cagney@redhat.com>
4827 * frame.h (deprecated_unwind_get_saved_register): Rename
4828 generic_unwind_get_saved_register, update comments.
4829 * mips-tdep.c (mips_get_saved_register): Update.
4830 * frame.c (deprecated_unwind_get_saved_register): Update.
4832 2003-06-09 Andrew Cagney <cagney@redhat.com>
4834 * vax-tdep.c (vax_frame_locals_address): Delete function.
4835 (vax_gdbarch_init): Do not set frame_locals_address.
4836 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4837 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4838 * s390-tdep.c (s390_frame_args_address): Delete function.
4839 (s390_gdbarch_init): Do not set frame_args_address or
4840 frame_locals_address.
4841 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4842 (ns32k_gdbarch_init): Do not set frame_locals_address.
4843 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4844 (hppa_frame_locals_address): Delete function.
4845 (hppa_gdbarch_init): Do not set frame_args_address, or
4846 frame_locals_address.
4847 * arm-tdep.c (arm_frame_args_address): Delete.
4848 (arm_frame_locals_address): Delete.
4849 (arm_gdbarch_init): Do not set frame_args_address, or
4850 frame_locals_address.
4852 2003-06-09 Andrew Cagney <cagney@redhat.com>
4854 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4855 * gdbarch.h, gdbarch.c: Re-generate.
4856 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4857 * arch-utils.c (frame_num_args_unknown): Delete function.
4858 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4859 (frame_info): Use FRAME_NUM_ARGS_P.
4860 * arm-tdep.c (arm_frame_num_args): Delete function.
4861 (arm_gdbarch_init): Do not set frame_num_args.
4862 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4863 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4864 (hppa_gdbarch_init): Do not set frame_num_args.
4865 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4867 frame_num_args to default frame_num_args_unknown.
4868 * v850-tdep.c (v850_gdbarch_init): Ditto.
4869 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4870 * sh-tdep.c (sh_gdbarch_init): Ditto.
4871 * s390-tdep.c (s390_gdbarch_init): Ditto.
4872 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4873 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4874 * mips-tdep.c (mips_gdbarch_init): Ditto.
4875 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4876 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4878 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4879 * i386-tdep.c (i386_gdbarch_init): Ditto.
4880 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4881 * frv-tdep.c (frv_gdbarch_init): Ditto.
4882 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4883 * cris-tdep.c (cris_gdbarch_init): Ditto.
4884 * avr-tdep.c (avr_gdbarch_init): Ditto.
4885 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4887 2003-06-09 Andrew Cagney <cagney@redhat.com>
4889 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4890 (print_frame_args): Moved to "stack.c".
4891 * stack.c: Include "gdb_assert.h".
4892 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4893 (print_frame_args): Moved from "printcmd.c".
4894 * frame.h (print_frame_args): Delete declaration.
4895 * Makefile.in (stack.o): Update dependencies.
4897 2003-06-08 Andrew Cagney <cagney@redhat.com>
4899 * frame.c (get_prev_frame): Remove reference to
4900 frame_args_address_correct in comments.
4901 * frame-base.c (default_frame_args_address): Delete code
4902 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4903 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4904 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4905 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4906 (vax_frame_args_address_correct): Delete declaration.
4908 2003-06-08 Andrew Cagney <cagney@redhat.com>
4910 * gdbarch.sh (UNWIND_SP): Add.
4911 * gdbarch.h, gdbarch.c: Re-generate.
4912 * frame.c (frame_sp_unwind): New function.
4913 (get_frame_sp): New function.
4914 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4915 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4916 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4918 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4919 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4921 2003-06-08 Andrew Cagney <cagney@redhat.com>
4923 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4926 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4927 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4928 * config/m68k/tm-sun3.h: Update.
4929 * config/m68k/tm-m68klynx.h: Update.
4930 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4932 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4933 trad_frame". Update comments.
4934 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4935 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4936 (trad_frame_register_value, trad_frame_prev_register): Update.
4938 2003-06-08 Andrew Cagney <cagney@redhat.com>
4940 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4941 from GCC's acinclude.m4.
4942 * configure.in: Check for getopt's delcaration.
4943 * aclocal.m4, config.in, configure: Re-generate.
4944 * main.c (error_init): Delete declaration.
4945 * defs.h (error_init): Declare.
4946 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4947 (rs6000_convert_from_func_ptr_addr): Make static.
4948 (_initialize_rs6000_tdep): Add declaration.
4949 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4950 (show_commands, set_verbose, show_history): Delete declaration.
4951 * top.h (set_verbose): Add declaration.
4952 (show_history, set_history, show_commands): Add declaration.
4953 (do_restore_instream_cleanup): Add declaration.
4954 * objc-lang.c (specialcmp): Make static.
4955 (print_object_command): Make static.
4956 (find_objc_msgsend): Make static.
4957 (find_objc_msgcall_submethod_helper): Make static.
4958 (find_objc_msgcall_submethod): Make static.
4959 (_initialize_objc_language): Add declaration.
4960 (find_implementation_from_class): Make static.
4961 (find_implementation): Make static.
4962 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4963 * objc-lang.h (lookup_struct_typedef): Add declaration.
4964 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4965 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4966 (do_restore_user_call_depth): Make static.
4967 (do_restore_instream_cleanup): Delete declaration.
4968 (dont_repeat): Delete declaration.
4969 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4970 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4971 * reggroups.c (_initialize_reggroup): Add declaration.
4972 * cp-support.c (_initialize_cp_support): Add declaration.
4973 * cp-abi.c (_initialize_cp_abi): Add declaration.
4974 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4975 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4976 (_initialize_gnu_v3_abi): Add declaration.
4977 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4978 (_initialize_gnu_v2_abi): Add declaration.
4979 * frame-base.c (_initialize_frame_base): Add declaration.
4980 * doublest.c (floatformat_from_length): Make static.
4981 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4982 * frame.c (create_sentinel_frame): Make static.
4983 (_initialize_frame): Add declaration.
4984 * top.c (do_catch_errors): Make static.
4985 (gdb_rl_operate_and_get_next_completion): Make static.
4986 * typeprint.c: Include "typeprint.h".
4987 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4988 (sentinel_frame_this_id): Make static.
4989 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4990 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4991 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4992 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4993 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4994 * maint.c (maintenance_print_architecture): Make static.
4995 * signals/signals.c (_initialize_signals): Add declaration.
4996 * std-regs.c (_initialize_frame_reg): Add declaration.
4997 * jv-exp.y (push_variable): ISO C definition.
4998 (push_qualified_expression_name): Ditto.
4999 * memattr.c (_initialize_mem): Add declaration.
5000 * remote.c (remote_check_watch_resources): Make static.
5001 (remote_stopped_by_watchpoint): Make static.
5002 (remote_stopped_data_address): Make static.
5003 * d10v-tdep.c (nr_dmap_regs): Make static.
5004 (a0_regnum): Make static.
5005 (d10v_frame_unwind_cache): Make static.
5006 (d10v_frame_p): Make static.
5007 * osabi.c (show_osabi): Make static.
5008 (_initialize_gdb_osabi): Add extern declaration.
5009 * gdbtypes.c (make_qualified_type): Make static.
5010 (safe_parse_type): Make static.
5011 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5012 * macrotab.c (macro_bcache_free): Make static.
5013 * interps.c (interp_set_quiet): Make static.
5014 (interpreter_exec_cmd): Make static.
5015 * stack.h (select_frame_command): New file.
5016 * stack.c: Include "stack.h".
5017 (select_frame_command_wrapper): Delete function.
5018 (select_frame_command): Make global.
5019 * infcall.c: Include "infcall.h".
5020 * linespec.c: Include "linespec.h".
5021 * symfile.c (sections_overlap): Make static.
5022 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5023 * charset.c (_initialize_charset): Add missing prototype.
5024 * regcache.c (init_legacy_regcache_descr): Make static.
5025 (do_regcache_xfree): Make static.
5026 (regcache_xfer_part): Make static.
5027 (_initialize_regcache): Add missing prototype.
5028 * breakpoint.c (parse_breakpoint_sals): Make static.
5029 (breakpoint_sals_to_pc): Make static.
5030 * interps.h (clear_interpreter_hooks): ISO C declaration.
5031 * Makefile.in (stack_h): Define.
5032 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5033 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5035 2003-06-08 Andrew Cagney <cagney@redhat.com>
5037 * Makefile.in (d10v-tdep.o): Update dependencies.
5038 (SFILES): Add trad-frame.c.
5039 (trad_frame_h): Define.
5040 (COMMON_OBS): Add trad-frame.o.
5041 (trad-frame.o): Specify dependencies.
5042 * d10v-tdep.c: Include "trad-frame.h".
5043 (saved_regs_unwinder): Delete function.
5044 (d10v_frame_prev_register): Use trad_frame_prev_register.
5045 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5046 trad_frame", delete "regs" and "prev_sp".
5047 (prologue_find_regs): Use trad-frame.
5048 * trad-frame.h, trad-frame.c: New files.
5050 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5052 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5054 2003-06-07 Adam Fedor <fedor@gnu.org>
5056 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5057 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5058 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5059 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5060 resolve_msgsend_super, resolve_msgsend_super_stret):
5063 2003-06-07 Andrew Cagney <cagney@redhat.com>
5065 * symfile.h: Re-indent, clean up comments.
5067 2003-06-07 Andrew Cagney <cagney@redhat.com>
5069 * inferior.h (deprecated_write_sp): Replace
5070 generic_target_write_sp.
5071 * regcache.c (deprecated_write_sp): Replace
5072 generic_target_write_sp.
5073 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5074 * vax-tdep.c (vax_gdbarch_init): Update.
5075 * v850-tdep.c (v850_gdbarch_init): Update.
5076 * sparc-tdep.c (sparc_gdbarch_init): Update.
5077 * sh-tdep.c (sh_gdbarch_init): Update.
5078 * s390-tdep.c (s390_gdbarch_init): Update.
5079 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5080 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5081 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5082 * mcore-tdep.c (mcore_gdbarch_init): Update.
5083 * m68k-tdep.c (m68k_gdbarch_init): Update.
5084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5085 * ia64-tdep.c (ia64_gdbarch_init): Update.
5086 * h8300-tdep.c (h8300_gdbarch_init): Update.
5087 * frv-tdep.c (frv_gdbarch_init): Update.
5088 * cris-tdep.c (cris_gdbarch_init): Update.
5089 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5091 2003-06-07 Andrew Cagney <cagney@redhat.com>
5093 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5094 Assert that PC_REGNUM is valid.
5095 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5097 2003-06-07 Andrew Cagney <cagney@redhat.com>
5099 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5100 * gdbarch.h, gdbarch.c: Regenerate.
5101 * mn10300-tdep.c: Include "gdb_assert.h".
5102 (mn10300_read_fp): New function.
5103 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5104 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5105 * ia64-tdep.c: Include "gdb_assert.h".
5106 (ia64_read_fp): New function.
5107 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5108 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5109 * regcache.c (generic_target_read_sp): Delete function.
5110 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5111 * inferior.h (generic_target_read_sp): Delete declaration.
5112 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5113 generic_target_read_sp.
5114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5115 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5116 * sh-tdep.c (sh_gdbarch_init): Ditto.
5117 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5118 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5120 2003-06-07 Andrew Cagney <cagney@redhat.com>
5122 * gdbarch.sh: Comment each field of startup_gdbarch.
5123 * gdbarch.h, gdbarch.c: Re-generate.
5125 2003-06-07 Andrew Cagney <cagney@redhat.com>
5127 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5128 * gdbarch.h, gdbarch.c: Re-generate.
5129 * regcache.c: Update comments on read_pc et.al.
5130 (generic_target_read_pc): Delete function.
5131 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5132 * inferior.h (generic_target_read_pc): Delete declaration.
5133 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5134 generic_target_read_pc.
5135 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5136 * sh-tdep.c (sh_gdbarch_init): Ditto.
5137 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5140 2003-06-07 Andrew Cagney <cagney@redhat.com>
5142 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5143 "index" with "special_local_sect". Use strcmp instead of STREQ.
5144 Append period to coments.
5146 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5148 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5149 (elfstab_offset_sections): Likewise.
5150 * gdb-stabs.h (stab_section_info): Likewise.
5151 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5152 * objfiles.c (objfile_relocate): Likewise.
5153 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5154 * remote.c (get_offsets): Likewise.
5155 (remote_cisco_objfile_relocate): Likewise.
5156 * somread.c (som_symfile_offsets): Likewise.
5157 * symfile.c (alloc_section_addr_info): New function.
5158 (build_section_addr_info_from_section_tab): Use it.
5159 (free_section_addr_info): Adjust.
5160 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5161 (syms_from_objfile): Allocate local_addr dynamically.
5162 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5164 (add_symbol_file_command): Allocate sect_opts dynamically.
5165 (reread_symbols): Avoid use of SECT_OFF_MAX.
5166 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5167 (alloc_section_addr_info): Declare it.
5168 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5169 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5171 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5173 2003-06-06 Andrew Cagney <cagney@redhat.com>
5175 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5176 (d10v_frame_unwind_cache): Do not set "return_pc".
5178 2003-06-06 Michael Snyder <msnyder@redhat.com>
5180 * h8300-tdep.c: Make tidy (long lines).
5182 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5184 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5185 to regcache_collect().
5187 2003-06-05 J. Brobecker <brobecker@gnat.com>
5189 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5190 pc_in_sigtramp multiarch method.
5191 (hppa_hpux_som_init_abi): Use it.
5192 (hppa_hpux_elf_init_abi): Likewise.
5193 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5194 macro has been multiarched.
5195 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5196 macro here, as hppa64 isn't multiarched yet.
5198 2003-06-05 Andrew Cagney <cagney@redhat.com>
5200 * Makefile.in (value_h): Add $(frame_h).
5201 * value.h: Include "frame.h".
5202 (struct value): Replace "frame_addr" with "frame_id".
5203 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5204 * values.c (allocate_value): Use VALUE_FRAME_ID.
5205 (value_copy): Use VALUE_FRAME_ID.
5206 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5207 * valops.c (value_assign): Update. Use frame_find_by_id.
5209 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5211 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5214 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5216 * thread-db.c (check_event): For create/death event breakpoints,
5217 loop through all messages to ensure that we read the message
5218 corresponding to the breakpoint we are at.
5220 2003-06-04 Michael Snyder <msnyder@redhat.com>
5222 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5224 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5226 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5227 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5228 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5229 when handling .eh_frame sections.
5231 2003-06-04 J. Brobecker <brobecker@gnat.com>
5233 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5234 prepare_to_proceed procedure instead of the hppa-specific one.
5235 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5237 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5239 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5240 * config.in: Regenerated.
5241 * configure.in: Add test for syscall function and check for
5242 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5243 * configure: Regenerated.
5244 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5246 (kill_lwp): New function that uses tkill syscall or
5247 uses kill, depending on whether threading model is nptl or not.
5248 All callers of kill() changed to use kill_lwp().
5249 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5250 see if all threads have already exited in the nptl model.
5251 (stop_and_resume_callback): New callback function used by the
5252 lin_lwp_wait thread exit handling code.
5253 (stop_wait_callback): Check for threads already having exited and
5254 delete such threads fromt the lwp list when discovered.
5255 (stop_callback): Don't assert retcode of kill call.
5257 Roland McGrath <roland@redhat.com>
5258 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5261 2003-06-03 Richard Henderson <rth@redhat.com>
5263 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5264 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5265 (alpha_sigtramp_frame_prev_register): Likewise.
5266 (alpha_heuristic_frame_prev_register): Likewise.
5267 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5269 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5270 alpha-specific register id names.
5271 (alpha_mdebug_frame_unwind_cache): Likewise.
5272 (alpha_mdebug_frame_prev_register): Likewise.
5274 2003-06-03 Richard Henderson <rth@redhat.com>
5276 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5277 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5278 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5279 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5281 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5282 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5283 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5285 * alpha-linux-tdep.c: Remove unnecessary includes.
5286 * Makefile.in (alpha-linux-tdep.o): Update.
5288 2003-06-03 Richard Henderson <rth@redhat.com>
5290 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5291 (alphabsd_fill_fpreg): Likewise.
5293 2003-06-03 J. Brobecker <brobecker@gnat.com>
5295 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5296 references to struct frame_info fields by calls to the equivalent
5297 accessors. Necessary now that frame_info is opaque.
5299 2003-06-03 J. Brobecker <brobecker@gnat.com>
5301 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5302 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5303 structure, field no longer exists.
5305 2003-06-03 J. Brobecker <brobecker@gnat.com>
5307 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5308 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5310 2003-06-03 J. Brobecker <brobecker@gnat.com>
5312 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5313 references to struct frame_info fields by calls to the equivalent
5314 accessors. Necessary now that frame_info is opaque.
5316 2003-06-03 J. Brobecker <brobecker@gnat.com>
5318 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5319 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5320 structure, field no longer exists.
5322 2003-06-03 Theodore A. Roth <troth@openavr.org>
5324 * remote.c (init_remote_state): Compute sizeof_g_packet by
5325 accumulation of the size of all registers instead of blindly using
5326 DEPRECATED_REGISTER_BYTES.
5328 2003-06-03 Michael Snyder <msnyder@redhat.com>
5330 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5331 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5334 2003-06-03 J. Brobecker <brobecker@gnat.com>
5336 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5337 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5339 2003-06-03 Andrew Cagney <cagney@redhat.com>
5341 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5342 (sparc_convert_to_raw): Delete function.
5343 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5344 register_convert_to_virtual.
5346 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5348 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5349 layer if not dealing with a statically-linked threaded program.
5351 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5353 * solib.c (solib_open): Update comment to reflect actual search order.
5355 2003-06-03 Andrew Cagney <cagney@redhat.com>
5357 * frame.c (get_frame_memory_signed): New function.
5358 (get_frame_memory, get_frame_memory_unsigned): New function.
5359 (get_frame_arch): New function.
5360 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5361 (get_frame_memory, get_frame_unsigned_memory): Declare.
5362 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5363 get_frame_memory_unsigned and get_frame_arch.
5364 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5366 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5368 * MAINTAINERS (write after approval): Add myself.
5370 2003-06-03 Jim Blandy <jimb@redhat.com>
5372 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5373 elements of gregset_t are 64 bits each, but access registers
5374 are still 32 bits, so they're packed two per gregset_t
5375 element. Unpack/pack them properly.
5377 2003-06-02 David Carlton <carlton@bactrian.org>
5379 * linespec.c (find_methods): Break out code into
5380 add_matching_methods and add_constructors.
5381 (add_matching_methods): New.
5382 (add_constructors): Ditto.
5384 2003-06-02 Andrew Cagney <cagney@redhat.com>
5386 * sparc-tdep.c (sparc_print_registers): Delete call to
5387 REGISTER_CONVERTIBLE.
5388 (sparc_gdbarch_init): Do not set register_convertible.
5389 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5390 * frv-tdep.c (frv_gdbarch_init): Ditto.
5391 * cris-tdep.c (cris_gdbarch_init): Ditto.
5393 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5395 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5396 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5397 (syms_from_objfile): Ditto.
5399 2003-06-03 Andreas Schwab <schwab@suse.de>
5401 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5402 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5404 2003-06-02 Richard Henderson <rth@redhat.com>
5406 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5407 a member of all_reggroup.
5409 2003-06-02 Richard Henderson <rth@redhat.com>
5411 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5412 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5413 (alpha_lds, alpha_sts): New.
5414 (alpha_convert_register_p): Change from _register_convertible.
5415 (alpha_register_to_value): Change from _convert_to_virtual;
5416 restructure and fail for type sizes other than 4 or 8.
5417 (alpha_value_to_register): Similarly.
5418 (alpha_extract_return_value): Use alpha_sts.
5419 (alpha_store_return_value): Use alpha_lds.
5420 (alpha_gdbarch_init): Update hooks.
5422 2003-06-02 Richard Henderson <rth@redhat.com>
5424 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5426 (alpha_sigtramp_register_address): Likewise.
5428 2003-06-02 Richard Henderson <rth@redhat.com>
5430 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5431 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5432 * alpha-tdep.h: Declare them.
5434 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5435 Remove zerobuf. Don't error on UNIQUE.
5436 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5437 (ALPHA_REGSET_UNIQUE): Provide default.
5438 (supply_gregset): Use alpha_supply_int_regs.
5439 (fill_gregset): Use alpha_fill_int_regs.
5440 (supply_fpregset): Use alpha_supply_fp_regs.
5441 (fill_fpregset): Use alpha_fill_fp_regs.
5442 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5443 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5444 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5445 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5446 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5447 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5449 2003-06-02 Richard Henderson <rth@redhat.com>
5451 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5453 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5454 (alpha_store_return_value): Likewise.
5456 2003-06-02 David Carlton <carlton@math.stanford.edu>
5458 * block.c (contained_in): Add 'const' to arguments.
5459 (block_function): Ditto.
5460 * block.h: Update declarations for block_function and
5463 2003-06-02 David Carlton <carlton@math.stanford.edu>
5465 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5466 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5467 * p-valprint.c (pascal_val_print): Ditto.
5468 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5470 2003-06-02 Richard Henderson <rth@redhat.com>
5472 * alpha-tdep.c (alpha_push_dummy_call): Use
5473 builtin_type_ieee_double_little instead of builtin_type_double.
5475 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5476 sign-extension of 32-bit values.
5477 (alpha_store_return_value): Similarly.
5479 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5480 (alpha_extract_return_value): Likewise.
5481 (alpha_store_return_value): Likewise.
5483 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5484 (alpha_store_return_value): Error on IEEE Quad floats.
5486 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5487 (alpha_extract_struct_value_address): Likewise.
5488 (alpha_store_return_value): Likewise.
5489 (alpha_store_struct_return): Remove.
5490 (alpha_gdbarch_init): Update hook registration to match.
5492 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5493 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5494 macros where appropriate.
5495 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5496 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5498 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5499 for SP, GP; void_func_ptr for PC; non-language-specific types
5501 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5503 2003-06-02 Richard Henderson <rth@redhat.com>
5505 * top.h (lim_at_start): Declare.
5506 * main.c (captured_main): Set it.
5507 * top.c (lim_at_start): Define.
5508 (command_loop): Use it instead of &environ.
5509 * event-top.c (command_handler): Likewise.
5511 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5513 * mipsnbsd-tdep.c: Update copyright years.
5514 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5516 2003-06-01 Richard Henderson <rth@redhat.com>
5518 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5519 (alpha-linux-tdep.o): Update dependencies.
5520 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5521 * alpha-mdebug-tdep.c: Remove unneeded includes.
5523 2003-06-01 Richard Henderson <rth@redhat.com>
5525 * alpha-tdep.c (alpha_register_reggroup_p): New.
5526 (alpha_gdbarch_init): Register it.
5528 2003-06-02 Andrew Cagney <cagney@redhat.com>
5530 * dwarfread.c: Eliminate "register"
5531 (decode_die_type): Eliminate assignment within "if".
5532 (struct_type, decode_array_element_type): Ditto.
5533 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5534 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5535 (decode_modified_type, completedieinfo): Ditto.
5536 * block.c: Eliminate "register".
5537 (blockvector_for_pc_sect): Eliminate assignment within "if".
5538 * cp-support.h (struct symbol): Opaque declaration.
5539 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5541 2003-06-01 Richard Henderson <rth@redhat.com>
5543 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5544 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5546 2003-06-01 Adam Fedor <fedor@gnu.org>
5548 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5549 * gdbarch.[ch]: Regenerate.
5550 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5551 (hppa_gdbarch_init): Set it in the gdbarch vector.
5552 * i386-tdep.c (i386_fetch_pointer_argument): New
5553 (i386_gdbarch_init): Set it into gdbarch.
5554 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5555 (rs6000_gdbarch_init): Set it in gdbarch.
5556 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5557 (sparc_gdbarch_init): Set it in gdbarch.
5559 2003-06-01 Andrew Cagney <cagney@redhat.com>
5561 * defs.h (extract_address): Delete declaration.
5562 * findvar.c (extract_address): Delete function.
5563 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5564 extract_address with the inline equivalent,
5565 extract_unsigned_integer.
5566 (xstormy16_extract_struct_value_address): Ditto.
5567 (xstormy16_pointer_to_address): Ditto.
5568 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5569 * v850-tdep.c (v850_push_arguments): Ditto.
5570 (v850_extract_return_value): Ditto.
5571 (v850_extract_struct_value_address): Ditto.
5572 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5573 (sparcnbsd_get_longjmp_target_64): Ditto.
5574 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5575 (get_longjmp_target): Ditto.
5576 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5577 (sh64_extract_struct_value_address): Ditto.
5578 (sh_push_arguments): Ditto.
5579 (sh64_push_arguments): Ditto.
5580 * remote-vxsparc.c (vx_read_register): Ditto.
5581 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5582 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5583 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5584 * mipsv4-nat.c (get_longjmp_target): Ditto.
5585 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5586 * mips-nat.c (get_longjmp_target): Ditto.
5587 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5588 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5589 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5590 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5591 * irix5-nat.c (get_longjmp_target): Ditto.
5592 * irix4-nat.c (get_longjmp_target): Ditto.
5593 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5594 (ia64_push_arguments): Ditto.
5595 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5596 * h8300-tdep.c (h8300_push_arguments): Ditto.
5597 (h8300_store_return_value): Ditto.
5598 (h8300_extract_struct_value_address): Ditto.
5599 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5600 (frv_push_arguments): Ditto.
5601 * avr-tdep.c (avr_pointer_to_address): Ditto.
5602 (avr_push_arguments): Ditto.
5603 * arm-tdep.c (arm_push_dummy_call): Ditto.
5604 (arm_get_longjmp_target): Ditto.
5605 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5606 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5607 (alpha_get_longjmp_target): Ditto.
5609 * solib-irix.c (extract_mips_address): Inline extract_address,
5610 replacing it with extract_signed_integer.
5611 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5612 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5613 (first_link_map_member, open_symbol_file_object): Ditto.
5614 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5615 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5616 (LM_NEXT, LM_NAME): Ditto.
5618 2003-06-01 Richard Henderson <rth@redhat.com>
5620 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5621 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5622 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5623 (alpha_cannot_store_register): Likewise.
5624 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5625 * alpha-nat.c (supply_gregset): Likewise.
5626 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5628 2003-06-01 Andrew Cagney <cagney@redhat.com>
5630 * infcall.c (call_function_by_hand): Update comment on
5631 DEPRECATED_DUMMY_WRITE_SP.
5633 * mips-tdep.c (mips_gdbarch_init): Do not set
5634 deprecated_dummy_write_sp.
5635 (mips_eabi_push_dummy_call): Set the SP register.
5636 (mips_o64_push_dummy_call): Set the SP register.
5637 (mips_o32_push_dummy_call): Set the SP register.
5638 (mips_n32n64_push_dummy_call): Set the SP register.
5640 2003-06-01 Richard Henderson <rth@redhat.com>
5642 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5643 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5644 (supply_gregset): Likewise.
5645 * alpha-tdep.c (alpha_store_return_value): Likewise.
5646 (alpha_get_longjmp_target): Likewise.
5647 (alpha_register_name): Constify array.
5648 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5649 deprecated_register_size, deprecated_register_bytes,
5650 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5651 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5652 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5654 2003-06-01 Richard Henderson <rth@redhat.com>
5656 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5657 from arg_reg_buffer to regcache to avoid double conversion.
5659 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5661 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5663 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5664 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5666 2003-06-01 Richard Henderson <rth@redhat.com>
5668 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5669 (decode_frame_entry): Set it. Skip FDE augmentation.
5671 2003-06-01 Richard Henderson <rth@redhat.com>
5673 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5674 not overlapping PC_REGNUM.
5676 2003-06-01 Richard Henderson <rth@redhat.com>
5678 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5679 alpha_push_arguments. Don't dump argument register data to
5680 the target stack. Fix float and 128-bit long double semantics.
5681 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5682 (alpha_fix_call_dummy): Remove.
5683 (alpha_call_dummy_words): Remove.
5684 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5686 2003-06-01 Richard Henderson <rth@redhat.com>
5688 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5690 2003-06-01 Andrew Cagney <cagney@redhat.com>
5692 * mips-tdep.c (is_mips16_addr): New function.
5693 (make_mips16_addr, unmake_mips16_addr): New functions.
5694 (pc_is_mips16, mips_fetch_instruction): Use.
5695 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5696 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5697 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5698 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5700 * config/mips/tm-mips.h: Update copyright.
5701 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5702 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5703 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5704 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5705 (TM_PRINT_INSN_MACH): Delete.
5706 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5708 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5709 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5710 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5711 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5712 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5713 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5714 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5715 mips*-*-riscos* and mips*-*-sysv* onto mips.
5716 * config/mips/mips64.mt: New file.
5717 * config/mips/mips.mt: New file.
5718 * config/mips/littlemips.mt: Delete file.
5719 * config/mips/decstation.mt: Delete file.
5720 * config/mips/vr4300el.mt: Delete file.
5721 * config/mips/vr5000el.mt: Delete file.
5722 * config/mips/vr5000.mt: Delete file.
5723 * config/mips/vr4100.mt: Delete file.
5724 * config/mips/vr4xxxel.mt: Delete file.
5725 * config/mips/vr4300.mt: Delete file.
5726 * config/mips/vr4xxx.mt: Delete file.
5727 * config/mips/bigmips.mt: Delete file.
5728 * config/mips/bigmips64.mt: Delete file.
5729 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5730 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5731 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5732 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5733 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5735 * config/mips/tm-irix3.h: Ditto.
5736 * config/mips/tm-mipsv4.h: Ditto.
5737 * config/mips/tm-embed.h: Ditto.
5738 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5740 * config/mips/tm-vr5000el.h: Delete file.
5741 * config/mips/tm-tx39l.h: Delete file.
5742 * config/mips/tm-vr4300el.h: Delete file.
5743 * config/mips/tm-vr4xxxel.h: Delete file.
5744 * config/mips/tm-vr4300.h: Delete file.
5745 * config/mips/tm-vr4100.h: Delete file.
5746 * config/mips/tm-vr4xxx.h: Delete file.
5747 * config/mips/tm-vr5000.h: Delete file.
5748 * config/mips/tm-embedl64.h: Delete file.
5749 * config/mips/tm-embedl.h: Delete file.
5750 * config/mips/tm-embed64.h: Delete file.
5751 * config/mips/tm-bigmips64.h: Delete file.
5752 * config/mips/tm-bigmips.h: Delete file.
5754 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5757 * shnbsd-nat.c: Include "sh-tdep.h".
5759 From Richard Henderson <rth@redhat.com>:
5760 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5762 2003-05-31 Andrew Cagney <cagney@redhat.com>
5764 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5765 forward declaration.
5766 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5767 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5768 (mips_find_saved_regs): Use set_reg_offset.
5769 (mips_frame_init_saved_regs): Delete function.
5770 (mips_pop_frame): Call mips_find_saved_regs instead of
5771 DEPRECATED_FRAME_INIT_SAVED_REGS.
5773 2003-05-31 Andrew Cagney <cagney@redhat.com>
5775 * mips-tdep.c (mips_gdbarch_init): Do not set
5776 deprecated_max_register_raw_size, register_virtual_size, and
5777 deprecated_max_register_virtual_size.
5779 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5781 * i386-tdep.c: Include "dwarf2-frame.h".
5782 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5783 * Makefile.in (i386-tdep.o): Update dependencies.
5785 * dwarf2-frame.c, dwarf2-frame.h: New files.
5786 * Makefile.in (SFILES): Add dwarf2-frame.c.
5787 (dwarf2_frame_h): Define.
5788 (COMMON_OBS): Add dwarf2-frame.o.
5789 (dwarf2-frame.o): Add dependencies.
5791 2003-05-31 Andreas Jaeger <aj@suse.de>
5793 * x86-64-linux-nat.c: Fix comment.
5795 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5797 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5800 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5801 have a sigcontext_addr handler.
5802 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5803 sigcontext_addr handler.
5805 2003-05-31 Andrew Cagney <cagney@redhat.com>
5807 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5808 (print_fp_register_row): Replace do_fp_register_row.
5809 (mips_print_fp_register): Add "file" and "frame" parameters.
5810 (mips_print_register): Add "file" and "frame" parameters.
5811 (mips_print_registers_info): Replace mips_do_registers_info.
5812 (mips_gdbarch_init): Set print_registers_info instead of
5813 deprecated_do_registers_info.
5814 (mips_read_fp_register_single): Add "frame" parameter.
5815 (mips_read_fp_register_double): Add "frame" parameter.
5817 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5819 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5820 Fixes a bug where GDB would print the wrong register names for
5821 targets without SSE.
5823 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5824 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5827 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5828 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5829 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5832 From Michal Ludvig <mludvig@suse.cz>:
5833 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5835 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5836 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5837 I386_ST0_REGNUM): Move here from...
5838 * i386-tdep.c: ... here.
5839 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5840 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5841 registers if possible.
5842 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5843 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5845 (i386bsd_sc_reg_offset): New variable.
5846 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5847 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5849 (i386fbsd_sc_reg_offset): New variable.
5850 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5852 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5854 (i386fbsd4_sc_reg_offset): New variable.
5855 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5856 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5858 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5859 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5860 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5862 (i386nbsd_sc_reg_offset): New variable.
5863 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5864 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5866 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5868 (i386obsd_sc_reg_offset): New variable.
5869 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5870 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5872 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5873 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5874 for frame pointer offset in `struct sigcontext'.
5876 2003-05-31 Andrew Cagney <cagney@redhat.com>
5878 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5879 architecture methods call_dummy_words, sizeof_call_dummy_words,
5880 push_return_address, store_struct_return, and fix_call_dummy. Set
5881 push_dummy_call instead of deprecated_push_arguments.
5882 (mips_store_struct_return): Delete function.
5883 (mips_fix_call_dummy): Delete function.
5884 (mips_push_return_address): Delete function.
5885 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5886 RA_REGNUM and T9_REGNUM.
5887 (mips_n32n64_push_dummy_call): Ditto for
5888 mips_n32n64_push_arguments.
5889 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5890 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5892 2003-05-31 Andrew Cagney <cagney@redhat.com>
5894 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5895 "dummy_addr" to "bp_addr".
5896 * infcall.c (call_function_by_hand): Pass "funaddr" to
5897 gdbarch_push_dummy_call.
5898 * gdbarch.h, gdbarch.c: Re-generate.
5899 * i386-tdep.c (i386_push_dummy_call): Update.
5900 * arm-tdep.c (arm_push_dummy_call): Update.
5901 * d10v-tdep.c (d10v_push_dummy_call): Update.
5903 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5905 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5906 variable declarations.
5907 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5908 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5909 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5910 x86_64_init_frame_pc, x86_64_init_frame_pc,
5911 x86_64_function_has_prologue): Remove prototypes.
5912 (X86_64_NUM_GREGS): New define.
5913 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5914 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5915 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5916 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5917 XMM1_REGNUM): Remove defines.
5918 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5919 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5920 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5921 X86_64_XMM1_REGNUM): New defines.
5922 (struct x86_64_register_info): Renamed from `struct
5923 register_info'. Remove `size' member.
5924 (x86_64_register_info_table): Remove variable.
5925 (x86_64_register_info): New variable.
5926 (X86_64_NUM_REGS): New define.
5927 (X86_64_NUM_GREGS): Remove define.
5928 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5929 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5931 (x86_54_dwarf2_reg_to_regnum): Remove function.
5932 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5933 (x86_64_dwarf_reg_to_regnum): New function.
5934 (x86_64_register_name): Rewrite.
5935 (x86_64_register_raw_size): Remove function.
5936 (x86_64_register_byte_table): Remove variable.
5937 (x86_64_register_byte): Remove function.
5938 (x86_64_register_virtual_type): Remove function.
5939 (x86_64_register_type): New function.
5940 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5941 x86_64_register_convert_to_raw): Remove functions.
5942 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5943 (x86_64_use_struct_convention): Make static. Adjust for renamed
5945 (x86_64_frame_init_saved_regs): Remove function.
5946 (x86_64_push_arguments): Make static. Change to accept a regcache
5948 (x86_64_store_return_value, x86_64_extract_return_value): Make
5949 static. Rewrite based on i386 counterparts.
5950 (x86_64_push_dummy_call): New function.
5951 (X86_64_NUM_SAVED_REGS): New define.
5952 (x86_64_register_number): Remove function.
5953 (x86_64_store_struct_return): Remove function.
5954 (x86_64_frameless_function_invocation,
5955 x86_64_function_has_prologue): Remove functions.
5956 (PROLOG_BUFSIZE): Remove define.
5957 (struct x86_64_frame_cache): New structure.
5958 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5959 x86_64_frame_cache, x86_64_frame_this_id,
5960 x86_64_frame_prev_register, x86_64_frame_p,
5961 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5962 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5964 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5966 (x86_64_skip_prologue): Rewrite in terms of
5967 x86_64_analyze_prologue.
5968 (x86_64_frame_base_address): New function.
5969 (x86_64_frame_base): New variable.
5970 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5971 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5972 set deprecated_fp_regnum, deprecated_register_size,
5973 deprecated_register_bytes, register_raw_size, register_byte,
5974 register_virtual_type, register_convertiable,
5975 register_convert_to_virtual, convert_to_raw,
5976 deprecated_get_saved_register, deprecated_target_read_fp,
5977 deprecated_push_arguments, deprecated_push_return_address,
5978 deprecated_pop_frame, deprecated_store_struct_return,
5979 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5980 frameless_function_invocation, deprecated_frame_saved_pc,
5981 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5982 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5983 deprecated_init_frame_pc and virtual_frame_pointer. Call
5984 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5985 and x86_64_frame_p. Call frame_base_set_default to register
5987 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5988 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5989 (_initialize_x86_64_tdep): Remove function.
5990 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5991 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5992 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5994 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5995 (x86_64_linux_sigcontext_addr): Rewrite.
5996 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5997 x86_64_linux_frame_saved_pc): Remove functions.
5998 (x86_64_linux_pc_in_sigtramp): Renamed from
5999 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6001 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6003 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6004 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6005 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6006 (x86_64_regmap): Rename to regmap.
6007 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6009 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6011 (x86_64_fxsave_offset): Remove function.
6012 (supply_fpregset): Simply call x86_64_supply_fxsave.
6013 (fill_fpregset): Simply call x86_64_fill_fxsave.
6014 (fetch_inferior_registers, store_inferior_registers): Avoid
6015 asignment in if-statement.
6016 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6017 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6018 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6019 (fetch_core_registers): Remove function.
6020 (linux_elf_core_fns): Remove.
6021 (offsetoff): Don't define.
6022 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6023 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6024 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6026 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6027 protection against multiple includes instead of NM_X86_64_h. Add
6028 various comments. Include "config/nm-linux.h". Don't include
6030 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6031 GET_THREAD_SIGNALS): Remove defines.
6032 (x86_64_register_u_addr, kernel_u_size,
6033 lin_thread_get_thread_signals): Remove prototypes.
6034 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6035 [HAVE_LINK_H]: Don't include "solib.h".
6036 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6037 * config/i386/tm-x86-64linux.h: Fix comments.
6038 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6039 x86-64-tdep.o): Update dependencies.
6041 2003-05-30 Andrew Cagney <cagney@redhat.com>
6043 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6044 Change parameter type to a "struct regcache *".
6046 * gdbarch.sh: Regardless of the multi-arch level, always define
6047 the macro when not already defined.
6048 * gdbarch.h, gdbarch.c: Re-generate.
6050 2003-05-30 Richard Henderson <rth@redhat.com>
6052 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6053 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6054 (alpha_mdebug_frame_this_id): Likewise.
6055 (alpha_mdebug_frame_prev_register): Likewise.
6056 (alpha_mdebug_frame_base_address): Likewise.
6057 (alpha_mdebug_frame_locals_address): Likewise.
6058 (alpha_mdebug_frame_args_address): Likewise.
6059 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6060 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6061 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6063 (alpha_heuristic_frame_this_id): Make static.
6064 (alpha_heuristic_frame_prev_register): Likewise.
6065 (alpha_heuristic_frame_base_address): Likewise.
6066 * alpha-tdep.h: Update.
6068 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6070 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6071 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6073 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6074 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6075 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6076 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6077 I386_ST0_REGNUM): New defines.
6078 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6079 codestream_get): Remove define.
6080 (codestream_next_addr, condestream_addr, condestream_buf,
6081 codestream_off, codestream_cnt): Remove variables.
6082 (codestream_fill, codestream_seek, codestream_read): Remove
6084 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6086 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6087 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6088 i386_frame_saved_pc, i386_saved_pc_after_call,
6089 i386_frame_num_args, i386_frame_init_saved_regs,
6090 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6091 i386_push_arguments): Remove functions.
6092 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6093 functionality. Use i386_analyze_prologue instead of
6094 i386_get_frame_setup.
6095 (I386_NUM_SAVED_REGS): New define.
6096 (struct i386_frame_cache): New structure.
6097 (i386_alloc_frame_cache, i386_analyze_struct_return,
6098 i386_skip_probe, i386_analyze_frame_setup,
6099 i386_analyze_register_saves, i386_analyze_prologue,
6100 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6101 i386_frame_prev_register, i386_sigtramp_frame_cache,
6102 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6103 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6104 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6106 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6108 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6109 I386_EAX_REGNUM and I386_EDX_REGNUM.
6110 (i386_extract_return_value, i386_store_return_value): Use
6111 I386_ST0_REGNUM where appropriate.
6112 (i386_extract_struct_value_address): Rewrite to use extract_address.
6113 (i386_svr4_pc_in_sigtramp): Add comment.
6114 (i386_svr4_sigcontext_addr): Rewrite.
6115 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6117 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6118 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6119 of new defines. Set push_dummy_call, don't set
6120 deprecated_push_arguments, deprecated_push_return_address,
6121 deprecated_pop_frame. Don't set parm_boundary. Don't set
6122 deprecated_frame_chain, deprecated_frame_saved_pc,
6123 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6124 save_dummy_frame_tos, unwind_pc. Call
6125 frame_unwind_append_predicate and frame_base_set_default. Don't
6126 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6127 Don't set frameless_function_invocation. Don't set
6128 deprecated_register_bytes, deprecated_register_size,
6129 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6130 * i386-linux-tdep.c: Fix formatting in some comments.
6131 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6132 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6133 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6134 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6135 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6136 redundant parentheses.
6137 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6138 (i386_linux_sigcontext_addr): Use it. Rewrite.
6139 (find_minsym_and_objfile): Change name of second argument.
6140 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6141 changed. Use frame_pc_unwind instead of
6142 DEPRECATED_SAVED_PC_AFTER_CALL.
6143 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6144 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6145 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6147 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6149 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6150 (_initialize_i386_cygwin_tdep): New prototype.
6151 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6152 deprecated_frame_chain_valid.
6153 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6154 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6155 Rely on the SVR4 defaults.
6156 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6157 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6159 2003-05-30 Andrew Cagney <cagney@redhat.com>
6161 * infcall.c (call_function_by_hand): Always call
6162 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6164 2003-05-30 Richard Henderson <rth@redhat.com>
6166 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6169 2003-05-29 Jim Blandy <jimb@redhat.com>
6171 Use gdbarch methods for solib stuff on PowerPC Linux.
6172 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6173 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6175 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6176 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6177 giving the same effect as the #definitions above.
6179 2003-05-29 Adam Fedor <fedor@gnu.org>
6181 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6182 (find_implementation_from_class): Replace it with the standard
6183 case i.e. do nothing.
6185 2003-05-29 Richard Henderson <rth@redhat.com>
6187 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6188 (alpha_linux_sigtramp_offset): Use it. Make static.
6189 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6190 update for new frame model.
6191 * alpha-mdebug-tdep.c: New file.
6192 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6193 (alpha_osf1_init_abi): Install it.
6194 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6195 (linked_proc_desc_table): Remove.
6196 (alpha_frame_past_sigtramp_frame): Remove.
6197 (alpha_dynamic_sigtramp_offset): Remove.
6198 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6199 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6200 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6201 (push_sigtramp_desc): Remove.
6202 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6203 (alpha_cannot_store_register): Likewise.
6204 (alpha_sigcontext_addr): Remove.
6205 (alpha_find_saved_regs): Remove.
6206 (alpha_frame_init_saved_regs): Remove.
6207 (alpha_init_frame_pc_first): Remove.
6208 (read_next_frame_reg): Remove.
6209 (alpha_frame_saved_pc): Remove.
6210 (alpha_saved_pc_after_call): Remove.
6211 (temp_proc_desc, temp_saved_regs): Remove.
6212 (alpha_about_to_return): Remove.
6213 (cached_proc_desc): Remove.
6214 (alpha_frame_chain): Remove.
6215 (alpha_print_extra_frame_info): Remove.
6216 (alpha_init_extra_frame_info): Remove.
6217 (alpha_frame_locals_address): Remove.
6218 (alpha_frame_args_address): Remove.
6219 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6220 (alpha_push_dummy_frame): Remove.
6221 (alpha_pop_frame): Remove.
6222 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6223 (alpha_read_insn): New.
6224 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6225 for different insn encodings.
6226 (alpha_in_lenient_prologue): Remove.
6227 (struct alpha_sigtramp_unwind_cache): New.
6228 (alpha_sigtramp_frame_unwind_cache): New.
6229 (alpha_sigtramp_register_address): New.
6230 (alpha_sigtramp_frame_this_id): New.
6231 (alpha_sigtramp_frame_prev_register): New.
6232 (alpha_sigtramp_frame_unwind): New.
6233 (alpha_sigtramp_frame_p): New.
6234 (struct alpha_heuristic_unwind_cache): New.
6235 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6236 don't count nop insns that occur between functions.
6237 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6238 heuristic_proc_desc, but without the mdebug wrapping.
6239 (alpha_heuristic_frame_this_id): New.
6240 (alpha_heuristic_frame_prev_register): New.
6241 (alpha_heuristic_frame_unwind): New.
6242 (alpha_heuristic_frame_p): New.
6243 (alpha_heuristic_frame_base_address): New.
6244 (alpha_heuristic_frame_base): New.
6245 (alpha_unwind_dummy_id): New.
6246 (alpha_unwind_pc): New.
6247 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6248 frame related deprecated initializations; install replacements.
6249 (alpha_dump_tdep): Remove.
6250 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6251 (alpha_read_insn, alpha_after_prologue,
6252 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6253 alpha_heuristic_frame_prev_register,
6254 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6255 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6256 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6257 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6259 2003-05-29 Andrew Cagney <cagney@redhat.com>
6261 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6262 dependant on the availability of ASSERT_FUNCTION.
6263 (ASSERT_FUNCTION): Do not define when there is no function name.
6265 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6267 From Jimi X <jimix@watson.ibm.com>:
6268 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6270 2003-05-28 Jim Blandy <jimb@redhat.com>
6272 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6273 argument to ptrace to int; the system headers should give it the
6274 right type, and pointers don't fit in ints on powerpc64-*-*.
6276 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6278 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6281 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6283 * stabsread.c (dbx_lookup_type): Make static.
6285 (add_undefined_type): Ditto.
6286 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6289 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6291 * hpread.c (hpread_has_name): Make static.
6292 (hpread_psymtab_to_symtab): Ditto.
6293 (file_exists): Ditto.
6294 (hpread_call_pxdb): Ditto.
6295 (hpread_pxdb_needed): Ditto.
6296 (hpread_quick_traverse): Ditto.
6297 (hpread_get_header): Ditto.
6298 (hpread_get_lntt): Ditto.
6299 (hpread_get_slt): Ditto.
6302 2003-05-25 Andreas Schwab <schwab@suse.de>
6304 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6305 stack_align and deprecated_extra_stack_alignment_needed.
6306 (m68k_stack_align): Delete.
6308 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6309 (m68k_register_virtual_size): Likewise.
6310 (altos_skip_prologue): Remove obsolete function.
6311 (isi_frame_num_args): Likewise.
6312 (news_frame_num_args): Likewise.
6313 (m68k_fix_call_dummy): Make static.
6314 (m68k_push_dummy_frame): Likewise.
6315 (m68k_pop_frame): Likewise.
6316 (m68k_skip_prologue): Likewise.
6317 (m68k_frame_init_saved_regs): Likewise.
6318 (m68k_saved_pc_after_call): Likewise.
6319 (m68k_get_longjmp_target): Make multi-arch.
6320 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6321 structure. Register m68k_get_longjmp_target if enabled.
6322 * m68k-tdep.h (struct gdbarch_tdep): Define.
6323 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6325 * Makefile.in (config.status): Also depend on configure.tgt
6327 (m68klinux-tdep.o): Update dependencies.
6328 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6329 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6330 (M68K_LINUX_JB_PC): Define.
6331 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6332 and take additional parameter.
6333 (m68k_linux_sigtramp_saved_pc): Update.
6334 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6335 m68k_linux_pc_in_sigtramp, in_plt_section,
6336 find_solib_trampoline_target.
6337 * config/m68k/tm-linux.h: Don't include any tm headers.
6338 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6339 (JB_ELEMENT_SIZE): Likewise.
6341 (GET_LONGJMP_TARGET): Likewise.
6342 (IN_SIGTRAMP): Likewise.
6343 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6345 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6347 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6348 (sparc32_push_arguments): Re-implement by calling
6349 sparc32_do_push_arguments.
6351 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6353 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6354 SPARC_O1_REGNUM): New defines.
6355 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6356 (sparc32_store_return_value): New function.
6357 (sparc_extract_struct_value_address): Rewrite to operate on a
6359 (sparc_gdbarch_init): Don't set
6360 deprecated_extract_struct_value_address. Set
6361 extract_struct_value_address instead. Don't set
6362 deprecated_extract_return_value and deprecated_store_return_value
6363 for 32-bit targets. Set extract_return_value and
6364 store_return_value instead.
6365 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6366 DEPRECTAED_EXTRACT_RETURN_VALUE,
6367 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6368 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6369 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6370 (sparc_store_return_value): Remove prototype.
6371 (sparc32_store_return_value): New prototype.
6372 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6375 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6377 * sparcnbsd-tdep.c: Include "gdb_string.h".
6379 2003-05-23 Andrew Cagney <cagney@redhat.com>
6381 * p-valprint.c (pascal_val_print): Replace extract_address with
6382 the inline equivalent extract_unsigned_integer.
6383 * jv-valprint.c (java_value_print): Ditto.
6384 * ada-valprint.c (ada_val_print_1): Ditto.
6385 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6387 2003-05-23 Theodore A. Roth <troth@openavr.org>
6389 * blockframe.c (frameless_look_for_prologue): Remove unused
6390 after_prologue variable.
6392 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6394 * blockframe.c (get_pc_function_start): Rewrite to avoid
6395 asignments in if-statements.
6397 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6399 Committed by Elena Zannoni <ezannoni@redhat.com>.
6400 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6401 files, don't relocate absolute symbols (and do use mst_abs).
6403 2003-05-23 Andrew Cagney <cagney@redhat.com>
6405 * objc-lang.c: Include "gdb_assert.h".
6406 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6407 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6408 (gdb_check, gdb_check_fatal): Delete functions.
6409 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6411 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6412 * Makefile.in (objc-lang.o): Update dependencies.
6414 2003-05-22 Ian Lance Taylor <ian@airs.com>
6416 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6417 with fprintf_filtered, not fprintf_unfiltered.
6419 2003-05-22 Andrew Cagney <cagney@redhat.com>
6421 * stack.c (frame_info): Inline extract_address, replacing it with
6422 extract_unsigned_integer.
6423 * findvar.c (unsigned_pointer_to_address): Ditto.
6424 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6425 * dwarf2expr.c (dwarf2_read_address): Ditto.
6426 * frame.c (frame_pc_unwind): Update comment.
6427 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6429 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6431 * infptrace.c (detach): Call print_sys_errmsg rather than
6432 perror_with_name to issue warning message when errno is non-zero
6433 after calling ptrace detach.
6435 2003-05-21 J. Brobecker <brobecker@gnat.com>
6437 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6438 macro definitions from here...
6439 * hppa-tdep.c: ...to there.
6441 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6443 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6444 register_ptrace_addr(). Fix all callers.
6446 2003-05-21 Andreas Schwab <schwab@suse.de>
6448 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6450 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6452 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6453 (_initialize_m68k_linux_tdep): New function.
6454 (m68k_linux_frame_saved_pc): Make static.
6455 (m68k_linux_extract_return_value): Likewise.
6456 (m68k_linux_store_return_value): Likewise.
6457 (m68k_linux_extract_struct_value_address): Likewise.
6458 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6460 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6461 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6462 (DEPRECATED_FRAME_SAVED_PC): Remove.
6464 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6466 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6467 regset numbering rather than our own.
6469 2003-05-19 David Carlton <carlton@bactrian.org>
6471 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6473 2003-05-19 David Carlton <carlton@bactrian.org>
6475 Partial fix for PR c++/827.
6476 * cp-support.h: Include symtab.h.
6477 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6478 * cp-namespace.c: Update contributors.
6479 (cp_lookup_symbol_nonlocal): New.
6480 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6481 (lookup_symbol_file): Ditto.
6482 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6483 * block.h: Declare block_scope, block_using, block_global_block.
6484 * block.c (block_scope): New.
6485 (block_using, block_global_block): Ditto.
6486 * Makefile.in (cp_support_h): Depend on symtab_h.
6487 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6489 2003-05-19 David Carlton <carlton@bactrian.org>
6491 * language.h (struct language_defn): Add 'la_value_of_this'
6492 and 'la_lookup_symbol_nonlocal' members.
6493 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6494 lookup_symbol_static, lookup_symbol_global,
6495 lookup_symbol_aux_block.
6496 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6497 if we should search fields of this and how to do static/global
6499 (lookup_symbol_aux_block): Make extern.
6500 (basic_lookup_symbol_nonlocal): New.
6501 (lookup_symbol_static, lookup_symbol_global): Ditto.
6502 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6503 'la_lookup_symbol_nonlocal' members.
6504 * c-lang.c (c_language_defn, cplus_language_defn)
6505 (asm_language_defn, minimal_language_defn): Ditto.
6506 * jv-lang.c (java_language_defn): Ditto.
6507 * language.c (unknown_language_defn, auto_language_defn)
6508 (local_language_defn): Ditto.
6509 * m2-lang.c (m2_language_defn): Ditto.
6510 * objc-lang.c (objc_language_defn): Ditto.
6511 * scm-lang.c (scm_language_defn): Ditto.
6512 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6513 * p-lang.c (pascal_language_defn): Ditto for both.
6514 * Makefile.in (f-lang.o): Depend on value_h.
6517 2003-05-19 David Carlton <carlton@bactrian.org>
6519 * block.h: Declare block_static_block.
6520 * block.c (block_static_block): New.
6521 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6522 lookup_symbol_aux_local, calling block_static_block instead.
6523 (lookup_symbol_aux_local): Delete 'static_block' argument.
6525 2003-05-19 David Carlton <carlton@bactrian.org>
6527 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6529 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6531 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6532 register numbers mapping.
6534 2003-05-18 Adam Fedor <fedor@gnu.org>
6536 * symtab.c (completion_list_objc_symbol): New function.
6537 (make_symbol_completion_list): Use it to add ObjC symbols
6538 when looking though the list.
6539 (language_search_unquoted_string): New function.
6540 (make_file_symbol_completion_list): Use it.
6542 2003-05-18 Andreas Schwab <schwab@suse.de>
6544 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6546 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6547 as m68k_linux_extract_return_value.
6548 (DEPRECATED_STORE_RETURN_VALUE): Define as
6549 m68k_linux_store_return_value.
6550 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6551 m68k_linux_extract_struct_value_address.
6552 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6553 get_next_frame, get_frame_base, get_frame_pc.
6554 (m68k_linux_frame_saved_pc): Use get_frame_base.
6555 (m68k_linux_extract_return_value): New function.
6556 (m68k_linux_store_return_value): New function.
6557 (m68k_linux_extract_struct_value_address): New function.
6558 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6560 * c-exp.y (typebase): Remove duplicate occurence of
6561 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6562 of lookup_signed_typename.
6564 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6566 * dwarf2loc.c (find_location_expression): Change type of second
6567 argument to `size_t *'.
6568 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6571 2003-05-18 David Carlton <carlton@bactrian.org>
6573 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6574 'linkage_name'. Add comment.
6575 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6577 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6578 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6579 (lookup_block_symbol): Ditto.
6581 2003-05-16 Andrew Cagney <cagney@redhat.com>
6583 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6584 * gdbarch.h, gdbarch.c: Re-generate.
6585 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6586 * TODO (REGISTER_BYTES): Delete reference.
6587 * alpha-tdep.c (alpha_gdbarch_init): Update.
6588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6589 * x86-64-tdep.c (x86_64_init_abi): Update.
6590 * vax-tdep.c (vax_gdbarch_init): Update.
6591 * v850-tdep.c (v850_gdbarch_init): Update.
6592 * sparc-tdep.c (sparc_gdbarch_init): Update.
6593 * sh-tdep.c (sh_gdbarch_init): Update.
6594 * s390-tdep.c (s390_gdbarch_init): Update.
6595 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6596 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6597 (ns32k_gdbarch_init_32382): Update.
6598 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6599 * mcore-tdep.c (mcore_gdbarch_init): Update.
6600 * m68k-tdep.c (m68k_gdbarch_init): Update.
6601 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6602 * ia64-tdep.c (ia64_gdbarch_init): Update.
6603 * i386-tdep.c (i386_gdbarch_init): Update.
6604 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6605 * hppa-tdep.c (hppa_gdbarch_init): Update.
6606 * h8300-tdep.c (h8300_gdbarch_init): Update.
6607 * frv-tdep.c (frv_gdbarch_init): Update.
6608 * cris-tdep.c (cris_gdbarch_init): Update.
6609 * avr-tdep.c (avr_gdbarch_init): Update.
6610 * arm-tdep.c (arm_gdbarch_init): Update.
6611 * sparc-tdep.c (sparc_pop_frame): Update.
6612 * rs6000-tdep.c (rs6000_pop_frame): Update.
6613 * remote.c (init_remote_state): Update.
6614 (remote_prepare_to_store): Update.
6615 * remote-vx.c (vx_prepare_to_store): Update.
6616 * remote-sds.c (sds_fetch_registers): Update.
6617 (sds_prepare_to_store): Update.
6618 * remote-array.c: Update.
6619 * regcache.c (init_legacy_regcache_descr): Update.
6620 (init_regcache_descr): Update.
6621 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6622 (mips_o64_extract_return_value): Update.
6623 * irix5-nat.c (fetch_core_registers): Update.
6624 * irix4-nat.c (fetch_core_registers): Update.
6625 * i386-tdep.h: Update.
6626 * hppa-tdep.c (pa_do_registers_info): Update.
6627 (pa_do_strcat_registers_info): Update.
6628 * cris-tdep.c (cris_register_bytes_ok): Update.
6629 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6630 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6631 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6632 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6633 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6634 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6635 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6636 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6637 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6638 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6639 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6640 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6641 (REGISTER_BYTES_OK): Update.
6642 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6643 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6645 2003-05-16 Ian Lance Taylor <ian@airs.com>
6647 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6648 (vax_print_insn, print_insn_arg): Remove static functions.
6649 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6650 print_insn_vax from opcodes library.
6651 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6653 2003-05-15 Andrew Cagney <cagney@redhat.com>
6655 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6656 * target.h (memory_breakpoint_from_pc): Delete declaration.
6657 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6658 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6659 * monitor.c (monitor_insert_breakpoint): Use
6660 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6661 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6662 * gdbarch.h, gdbarch.c: Re-generate.
6663 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6664 (sparc_gdbarch_init): Set breakpoint_from_pc to
6665 sparc_breakpoint_from_pc.
6666 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6667 (BREAKPOINT_FROM_PC): Define.
6668 (sparc_breakpoint_from_pc): Declare.
6669 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6670 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6671 (BREAKPOINT_FROM_PC): Define.
6672 (BREAKPOINT): Delete macro.
6673 * target.h: Update comment.
6674 * s390-tdep.c (s390_gdbarch_init): Update comments.
6675 * remote.c: Update comments.
6676 * remote-mips.c: Update comments.
6677 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6678 * mem-break.c: Update comment.
6679 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6680 (ia64_memory_insert_breakpoint): Update.
6681 * config/sparc/tm-sparc.h: Update comment.
6682 * config/pa/tm-hppa64.h: Update comment.
6683 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6684 (rs6000_breakpoint_from_pc): Update.
6685 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6686 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6687 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6688 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6689 (mips_breakpoint_from_pc): Update.
6690 (mips_dump_tdep): Update.
6692 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6693 * minsyms.c (lookup_minimal_symbol): Inline
6694 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6696 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6697 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6698 * p-lang.c (pascal_printstr): Ditto.
6699 * objc-lang.c (objc_printstr): Ditto.
6700 * m2-lang.c (m2_printstr): Ditto.
6701 * jv-valprint.c (java_print_value_fields): Ditto.
6702 * f-lang.c (f_printstr): Ditto.
6703 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6704 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6705 for repeat_count_threshold.
6706 * Makefile.in (cp-valprint.o): Update dependencies.
6708 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6710 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6711 (examine_prologue): Support looking through leaf functions, knowing
6712 they start with mov r2,r12. Support skipping over indirect stores
6713 of the input registers. Upon hitting a non-nop branch instruction
6714 or predicated instruction, bail out by setting lim_pc to the current
6715 pc value in the loop. At the end, if the lim_pc value is still
6716 beyond our calculated value and we have trust_limit set,
6717 use the lim_pc value.
6719 2003-05-15 Andrew Cagney <cagney@redhat.com>
6721 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6722 generic_find_dummy_frame.
6723 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6724 (deprecated_generic_find_dummy_frame): Update.
6725 (deprecated_read_register_dummy): Update.
6726 * frame.c (deprecated_generic_get_saved_register): Update.
6728 2003-05-15 Theodore A. Roth <troth@openavr.org>
6730 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6731 (avr_gdbarch_init): Set breakpoint_from_pc method.
6733 2003-05-15 Andrew Cagney <cagney@redhat.com>
6735 * regcache.c (build_regcache): Set deprecated_register_valid
6737 (deprecated_grub_regcache_for_register_valid): Delete function.
6738 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6741 2003-05-15 David Carlton <carlton@bactrian.org>
6743 Committed by Elena Zannoni <ezannoni@redhat.com>
6744 * symtab.c (lookup_symbol_aux): Delete calls to
6745 lookup_symbol_aux_minsyms.
6746 (lookup_symbol_aux_minsyms): Comment out function and
6747 prototype. Delete lookup by mangled name.
6749 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6751 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6752 correctly indicate an empty stack and ``stack_allocated'' to the
6753 indicate the number of elements initially allocated.
6754 (dwarf_expr_grow_stack): Simplify method for computing new
6755 stack size. Don't loop infinitely if ``stack_len'' is zero.
6756 (execute_stack_op): Move ``ctx->in_reg'' initialization
6757 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6758 be used in conjuction with DW_OP_piece. Revise error message
6761 2003-05-14 Theodore A. Roth <troth@openavr.org>
6763 * MAINTAINERS: Update my email address.
6764 * avr-tdep.c: Ditto.
6766 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6768 * symtab.h (enum domain_enum): Rename from namespace_enum.
6769 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6770 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6771 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6772 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6773 TYPES_NAMESPACE, METHODS_NAMESPACE.
6774 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6775 (struct symbol, struct partial_symbol): Rename field
6776 'namespace_enum namespace' to 'domain_enum domain'.
6777 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6778 Delete old define kludge for namespace.
6780 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6781 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6782 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6783 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6784 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6785 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6786 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6787 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6788 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6789 occurrences of the above.
6791 2003-05-14 Ian Lance Taylor <ian@airs.com>
6793 * Makefile.in (install-only): Use $(SHELL) when running
6796 2003-05-13 Ian Lance Taylor <ian@airs.com>
6798 * MAINTAINERS (write after approval): Add myself.
6800 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6801 second and third arguments.
6802 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6803 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6805 2003-05-13 Andrew Cagney <cagney@redhat.com>
6807 * defs.h (store_address): Delete declaration.
6808 findvar.c (store_address): Delete function.
6809 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6810 store_unsigned_integer.
6811 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6812 * v850-tdep.c (v850_push_arguments): Ditto.
6813 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6814 * sh-tdep.c (sh64_get_saved_register): Ditto.
6815 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6816 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6817 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6818 (mips_get_saved_register): Ditto.
6819 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6820 (find_func_descr, ia64_push_arguments): Ditto.
6821 * i386-tdep.c (i386_push_arguments): Ditto.
6822 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6823 * frv-tdep.c (frv_push_arguments): Ditto.
6824 * frame.c (legacy_saved_regs_prev_register): Ditto.
6825 (deprecated_generic_get_saved_register): Ditto.
6826 * findvar.c (unsigned_address_to_pointer): Ditto.
6827 * dwarf2read.c (dwarf2_const_value): Ditto.
6828 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6829 * alpha-tdep.c (alpha_push_arguments): Ditto.
6831 2003-05-12 J. Brobecker <brobecker@gnat.com>
6833 * NEWS: Mention that the hppa-hpux port has been partially
6834 multiarched (32bit ABIT only, so far).
6836 2003-05-11 Andrew Cagney <cagney@redhat.com>
6838 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6839 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6840 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6841 sim/testsuite/sim/arm/misaligned2.ms, and
6842 sim/testsuite/sim/arm/misaligned3.ms.
6843 * disasm.h (struct ui_file): Add opaque struct declaration.
6844 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6845 * frame.h (struct ui_file): Ditto.
6847 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6849 * value.h: Pretty print.
6851 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6853 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6855 2003-05-08 Andrew Cagney <cagney@redhat.com>
6857 * regcache.h (max_register_size): Delete declaration.
6858 * regcache.c (max_register_size): Delete function.
6859 (struct regcache_descr): Delete field "max_register_size".
6860 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6861 registers fit in MAX_REGISTER_SIZE.
6862 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6863 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6864 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6865 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6866 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6867 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6868 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6869 * dve3900-rom.c, hppa-tdep.c: Ditto.
6871 2003-05-08 David Carlton <carlton@math.stanford.edu>
6873 * valops.c (push_word): Fix typo.
6875 2003-05-08 Andrew Cagney <cagney@redhat.com>
6877 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6878 * gdbarch.h: Re-generate.
6879 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6880 (legacy_max_register_raw_size): Delete declaration.
6881 * regcache.c (legacy_max_register_raw_size): Delete function.
6882 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6883 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6884 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6885 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6886 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6887 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6888 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6889 * findvar.c, dwarf2cfi.c: Ditto.
6891 2003-05-08 Andrew Cagney <cagney@redhat.com>
6893 * mips-tdep.c (read_signed_register): New function, moved to here
6895 (read_signed_register_pid): Ditto.
6896 * regcache.c (read_signed_register_pid): Delete function, moved to
6898 (read_signed_register): Ditto.
6899 * regcache.h (read_signed_register): Delete declaration.
6900 (read_signed_register_pid): Delete declaration.
6902 2003-05-08 Andrew Cagney <cagney@redhat.com>
6904 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6905 * gdbarch.h: Re-generate.
6906 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6907 (legacy_max_register_virtual_size): Delete declaration.
6908 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6909 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6910 * tracepoint.c (memrange_sortmerge): Ditto.
6911 * sparc-tdep.c (sparc_print_registers): Ditto.
6912 * regcache.c (legacy_max_register_virtual_size): Delete function.
6914 2002-05-08 J. Brobecker <brobecker@gnat.com>
6916 * fork-child.c (escape_bang_in_quoted_argument): New function.
6917 (fork_inferior): Escape '!' characters in quoted arguments
6920 2003-05-08 J. Brobecker <brobecker@gnat.com>
6922 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6923 the language of the CU is not currently supported by GDB.
6925 2003-05-08 J. Brobecker <brobecker@gnat.com>
6927 * defs.h (language): Add language_minimal enum value.
6928 * c-lang.c (minimal_language_defn): New language definition.
6929 (_initialize_c_language): Add the new minimal language to the list
6930 of languages known to GDB.
6932 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6934 * frame.c (get_frame_type): Don't attempt to lazily initialize
6935 frame's unwinder for legacy frames.
6937 2003-05-07 Andrew Cagney <cagney@redhat.com>
6939 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6940 and "regcache" parameters.
6941 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6943 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6945 * dwarf2read.c (dwarf_decode_lines): Only use output of
6946 check_cu_functions() when calling record_line(). Do not update
6947 the current address.
6949 2003-05-07 Andrew Cagney <cagney@redhat.com>
6951 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6954 2003-05-07 Jim Blandy <jimb@redhat.com>
6956 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6957 'maint info symtabs' and 'maint info psymtabs'.
6958 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6959 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6960 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6961 Declarations updated.
6962 * maint.c (maintenance_list_command): Delete.
6963 (_initialize_maint_cmds): Update calls to add_cmd.
6964 * gdbcmd.h (maintenancelistlist): Delete declaration.
6965 * cli/cli-cmds.c (maintenancelistlist): Delete.
6966 (init_cmd_lists): Don't initialize it.
6967 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6969 2003-05-07 Andrew Cagney <cagney@redhat.com>
6971 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6973 (d10v_print_registers_info): Update.
6974 (d10v_dmap_register, d10v_imap_register): Delete functions.
6975 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6976 and "imap_register".
6977 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6978 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6979 * arch-utils.c (generic_remote_translate_xfer_address): Add
6980 "regcache" and "gdbarch" parameters.
6981 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6982 parameter. Change class to multi-arch.
6983 * gdbarch.h, gdbarch.c: Re-generate.
6984 * remote.c (remote_xfer_memory): Use
6985 gdbarch_remote_translate_xfer_address.
6987 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6989 * infrun.c (prev_pc): Move declaration ahead of proceed().
6990 (proceed): Refresh prev_pc value before resuming.
6991 (stop_stepping): Remove code to refresh prev_pc.
6993 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6995 * nto-tdep.c: Removed stray comment.
6997 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6999 * i386-nto-tdep.c: Fix old K&R function definitions.
7000 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7001 Also change add_show_from_set() call to add_setshow_cmd().
7002 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7004 2003-05-05 Andrew Cagney <cagney@redhat.com>
7006 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7007 (fprint_dummy_frames): New function.
7008 (maintenance_print_dummy_frames): New function.
7009 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7010 * frame.c (fprint_frame_id): Make global.
7011 * frame.h (fprint_frame_id): Declare.
7012 * Makefile.in (dummy-frame.o): Update dependencies.
7014 2003-05-05 Andrew Cagney <cagney@redhat.com>
7016 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7017 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7018 SIZEOF_CALL_DUMMY_WORDS.
7019 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7020 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7021 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7022 CALL_DUMMY_BREAKPOINT_OFFSET.
7023 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7024 CALL_DUMMY_START_OFFSET.
7025 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7026 * gdbarch.h, gdbarch.c: Re-generate.
7027 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7028 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7029 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7030 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7031 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7032 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7033 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7034 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7035 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7036 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7037 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7038 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7039 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7040 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7041 * config/sparc/tm-sparc.h: Update.
7043 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7045 * configure.tgt: Add i[3456]86-*-nto*.
7046 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7047 * nto-tdep.c: New file. Neutrino target support routines.
7048 * nto-tdep.h: New file. Neutrino target header.
7049 * config/tm-qnxnto.h: New file.
7050 * config/i386/i386nto.mt: New file.
7051 * config/i386/tm-i386nto.h: New file.
7053 2003-05-04 Andrew Cagney <cagney@redhat.com>
7055 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7056 (load_infrun_state): Ditto.
7057 (struct thread_info): Drop "prev_func_name" field.
7058 * thread.c (load_infrun_state): Update.
7059 (save_infrun_state): Update.
7060 * infrun.c (prev_func_name): Delete variable.
7061 (init_wait_for_inferior): Do not clear prev_func_name.
7062 (stop_stepping, keep_going, context_switch): Do not swap
7064 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7065 instead of PC_IN_SIGTRAMP.
7067 2003-05-04 Andrew Cagney <cagney@redhat.com>
7069 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7070 REGISTER_BYTE with register_offset_hack.
7071 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7072 that REGISTER_BYTE is consistent with the regcache.
7073 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7074 * gdbarch.h, gdbarch.c: Regenerate.
7076 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7078 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7079 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7081 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7083 2003-05-03 J. Brobecker <brobecker@gnat.com>
7085 From Thierry Schneider <tpschneider1@yahoo.com>
7086 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7087 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7088 (mi-cmd-symbol.o): Add rule.
7090 2003-05-03 Andrew Cagney <cagney@redhat.com>
7092 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7093 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7094 * gdbarch.h, gdbarch.c: Re-generate.
7095 * d10v-tdep.c (d10v_push_dummy_code): New function.
7096 (d10v_gdbarch_init): Set push_dummy_code.
7097 * infcall.c (legacy_push_dummy_code): New function.
7098 (generic_push_dummy_code): New function.
7099 (push_dummy_code): New function.
7100 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7101 instead of dummy_addr, to push_dummy_call. Move call to
7102 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7104 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7106 2003-05-03 Andrew Cagney <cagney@redhat.com>
7108 * disasm.h (print_insn): Declare.
7109 * disasm.c (init_gdb_disassemble_info): New function.
7110 (gdb_disassembly): Call init_gdb_disassemble_info.
7111 (gdb_print_insn): New function.
7112 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7113 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7114 * mcore-tdep.c: Include "disasm.h"
7115 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7116 * d10v-tdep.c: Include "disasm.h".
7117 (display_trace): Call gdb_print_insn, instead of print_insn.
7118 (print_insn): Delete function.
7119 * printcmd.c: Include "disasm.h".
7120 (print_insn): Delete function.
7121 (print_formatted): Call gdb_print_insn, instead of print_insn.
7122 * Makefile.in (printcmd.o): Update dependencies.
7123 (mcore-tdep.o, d10v-tdep.o): Ditto.
7125 2003-05-02 Andrew Cagney <cagney@redhat.com>
7127 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7128 PC_REGNUM, re-indent.
7129 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7130 PC_REGNUM isn't set.
7132 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7133 * gdbarch.h, gdbarch.c: Re-generate.
7134 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7135 register_virtual_size, pc_regnum, or register_bytes.
7136 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7137 (d10v_register_type): Use D10V_PC_REGNUM.
7138 (d10v_print_registers_info, d10v_read_pc): Ditto.
7139 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7140 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7142 2003-05-02 David Carlton <carlton@bactrian.org>
7144 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7145 the name with mstrsave.
7147 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7149 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7150 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7151 (host_charset_name, target_charset_name): New vars for use by
7153 (host_charset_enum, target_charset_enum): New enums for set/show
7155 (set_charset_sfunc, set_host_charset_sfunc,
7156 set_target_charset_sfunc): New functions.
7157 (set_host_charset, set_target_charset): Make static.
7158 (list_charsets, set_host_charset_command,
7159 set_target_charset_command): Delete functions.
7160 (show_charset_command): Rewrite as....
7161 (show_charset): Hook this up with the set/show command mechanism.
7162 (_initialize_charset): Change names of charsets to match the
7163 set/show enums. Use host_charset_name and target_charset_name.
7164 Use set/show mechanism for charset, host-charset, target-charset
7165 commands. Do not make 'show host-charset' and 'show
7166 target-charset' be aliases of 'show charset'.
7168 * charset.h (set_host_charset, set_target_charset): Don't export,
7169 they are not used outside the file.
7171 2003-05-01 Andrew Cagney <cagney@redhat.com>
7173 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7174 (gdb_disassembly): Make "di" non static, always initialize and
7175 cleanup. Always use dis_asm_read_memory.
7176 (gdb_dis_asm_read_memory): Delete function.
7178 2003-05-01 Andrew Cagney <cagney@redhat.com>
7180 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7181 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7183 2003-04-30 Andrew Cagney <cagney@redhat.com>
7185 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7186 "tm_print_insn_info".
7187 (TARGET_PRINT_INSN_INFO): Delete macro.
7188 (dis_asm_read_memory): Delete function declaration.
7189 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7190 (tm_print_insn_info): Delete variable definition.
7191 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7192 * gdbarch.h, gdbarch.c: Re-generate.
7193 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7194 "deprecated_tm_print_insn_info".
7195 * mcore-tdep.c (mcore_dump_insn): Ditto.
7196 * mips-tdep.c (mips_gdbarch_init): Ditto.
7197 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7198 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7199 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7200 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7201 instead of TARGET_PRINT_INSN_INFO, add comment.
7202 * s390-tdep.c (s390_get_frame_info): Instead of
7203 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7204 (s390_check_function_end, s390_is_sigreturn): Ditto.
7205 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7206 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7207 * disasm.c: Include "gdbcore.h".
7208 (_initialize_disasm): New function, initialize
7209 "deprecated_tm_print_insn_info".
7210 (deprecated_tm_print_insn_info): New variable.
7211 (dis_asm_read_memory): Moved from "corefile.c", made static.
7212 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7213 * Makefile.in (disasm.o): Update dependencies.
7215 2003-04-30 Andrew Cagney <cagney@redhat.com>
7217 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7219 2003-04-29 Adam Fedor <fedor@gnu.org>
7221 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7222 * infcall.c (find_function_addr): Make non-static.
7223 * infcall.h (find_function_addr): Declare.
7224 * Makefile.in (eval.o): Update dependencies.
7226 2003-04-28 Adam Fedor <fedor@gnu.org>
7228 * symtab.c (symbol_find_demangled_name): Check for and demangle
7230 (symbol_init_demangled_name): Init for language_objc as well.
7232 2003-04-28 Andrew Cagney <cagney@redhat.com>
7234 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7235 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7236 * gdbarch.h, gdbarch.c: Re-generate.
7237 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7238 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7239 * inferior.h (deprecated_read_fp): Rename read_fp.
7240 (generic_target_read_fp): Delete declaration.
7241 * regcache.c (generic_target_read_fp): Delete function.
7242 (deprecated_read_fp): Replace read_fp, use
7243 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7244 * d10v-tdep.c (d10v_read_fp): Delete function.
7245 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7247 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7248 deprecated_target_read_fp to generic_target_read_fp.
7249 * sh-tdep.c (sh_gdbarch_init): Ditto.
7250 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7252 * frv-tdep.c (frv_gdbarch_init): Ditto.
7254 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7255 deprecated_fp_regnum.
7256 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7257 * vax-tdep.c (vax_gdbarch_init): Ditto.
7258 * v850-tdep.c (v850_gdbarch_init): Ditto.
7259 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7260 * sh-tdep.c (sh_gdbarch_init): Ditto.
7261 * s390-tdep.c (s390_gdbarch_init): Ditto.
7262 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7263 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7264 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7265 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7267 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7268 * i386-tdep.c (i386_gdbarch_init): Ditto.
7269 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7270 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7271 * frv-tdep.c (frv_gdbarch_init): Ditto.
7272 * cris-tdep.c (cris_gdbarch_init): Ditto.
7273 * avr-tdep.c (avr_gdbarch_init): Ditto.
7274 * arm-tdep.c (arm_gdbarch_init): Ditto.
7275 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7277 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7278 * v850-tdep.c (v850_gdbarch_init): Ditto.
7279 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7280 * sh-tdep.c (sh_gdbarch_init): Ditto.
7281 * s390-tdep.c (s390_gdbarch_init): Ditto.
7282 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7283 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7284 * mips-tdep.c (mips_gdbarch_init): Ditto.
7285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7286 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7287 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7288 * frv-tdep.c (frv_gdbarch_init): Ditto.
7289 * avr-tdep.c (avr_gdbarch_init): Ditto.
7290 * arm-tdep.c (arm_gdbarch_init): Ditto.
7292 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7293 DEPRECATED_FP_REGNUM.
7294 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7295 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7296 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7297 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7298 (sparc32_register_virtual_type): Ditto.
7299 * sh-tdep.c (sh64_frame_chain): Ditto.
7300 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7301 (sh_nofp_frame_init_saved_regs): Ditto.
7302 (sh64_nofp_frame_init_saved_regs): Ditto.
7303 (sh_fp_frame_init_saved_regs): Ditto.
7304 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7305 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7306 * procfs.c (procfs_fetch_registers): Ditto.
7307 (procfs_store_registers): Ditto.
7308 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7309 (store_inferior_registers, fetch_core_registers): Ditto.
7310 (fetch_kcore_registers, clear_regs): Ditto.
7311 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7312 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7313 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7314 * nlm/i386.c (do_status): Ditto.
7315 * mipsv4-nat.c (supply_gregset): Ditto.
7316 * mips-tdep.c: Ditto for comments.
7317 * mips-nat.c (fetch_inferior_registers): Ditto.
7318 (store_inferior_registers, fetch_core_registers): Ditto.
7319 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7320 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7321 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7322 (i386_do_pop_frame, i386_register_type): Ditto.
7323 * hppa-tdep.c (hppa_frame_chain): Ditto.
7324 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7325 (hppa_pop_frame, hppa_read_fp): Ditto.
7326 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7327 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7328 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7329 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7330 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7331 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7332 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7333 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7334 * blockframe.c: Ditto for comments.
7335 * arch-utils.h: Ditto for comments.
7336 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7337 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7338 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7339 * alpha-tdep.h: Ditto for comments.
7340 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7341 (alpha_cannot_store_register): Ditto.
7342 (alpha_push_dummy_frame): Ditto.
7343 * alpha-nat.c (supply_gregset): Ditto.
7345 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7346 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7347 * config/sparc/tm-sparc.h: Update comment.
7349 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7350 deprecated_read_fp instead of TARGET_READ_FP.
7351 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7352 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7353 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7354 deprecated_read_fp instead of read_fp.
7355 * s390-tdep.c (s390_push_arguments): Ditto.
7356 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7357 * frame.h: Ditto in comments.
7358 * frame.c (legacy_get_prev_frame): Ditto.
7359 * dummy-frame.c (dummy_frame_this_id): Ditto.
7360 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7362 2003-04-28 Andrew Cagney <cagney@redhat.com>
7364 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7365 * gdbarch.h, gdbarch.c: Re-generate.
7366 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7367 * vax-tdep.c (_initialize_vax_tdep): Update.
7368 * v850-tdep.c (_initialize_v850_tdep): Update.
7369 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7370 * s390-tdep.c (_initialize_s390_tdep): Update.
7371 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7372 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7373 * mips-tdep.c (_initialize_mips_tdep): Update.
7374 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7375 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7376 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7377 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7378 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7379 * frv-tdep.c (_initialize_frv_tdep): Update.
7380 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7381 (_initialize_cris_tdep): Update.
7382 * arch-utils.c (legacy_print_insn): Update.
7383 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7385 2003-04-26 Adam Fedor <fedor@gnu.org>
7387 * linespec.c (decode_objc): New function to decode ObjC calls
7388 (decode_line_1): Check for ObjC calls (using decode_objc)
7389 * Makefile (linespec.o): Update dependencies.
7391 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7393 * breakpoint.h (struct breakpoint_ops): New.
7394 (struct breakpoint): Add ops member.
7396 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7397 (mention): Use new breakpoint ops member.
7398 (set_raw_breakpoint): Initialize ops field to NULL.
7399 (print_exception_catchpoint, print_one_exception_catchpoint)
7400 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7401 (gnu_v3_exception_catchpoint_ops): New.
7402 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7404 2003-04-25 Adam Fedor <fedor@gnu.org>
7406 * Makefile.in (COMMON_OBS): Add objc-lang.o
7408 2003-04-25 Andrew Cagney <cagney@redhat.com>
7410 * d10v-tdep.c (print_insn): Delete function.
7411 (display_trace): Use TARGET_PRINT_INSN.
7412 (_initialize_d10v_tdep): Do not set tm_print_insn.
7413 (d10v_gdbarch_init): Set print_insn.
7415 2003-04-25 Andrew Cagney <cagney@redhat.com>
7417 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7418 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7419 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7420 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7421 (nr_dmap_regs, a0_regnum): ... new functions.
7422 (d10v_print_registers_info): Use a0_regnum, use register_size.
7423 (d10v_register_byte): Delete function.
7424 (d10v_register_raw_size): Delete function.
7425 (d10v_register_type): Use a0_regnum.
7426 (d10v_print_registers_info): Use a0_regnum.
7427 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7428 (d10v_gdbarch_init): Do not set register_byte or
7429 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7430 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7432 (trace_command): Use XCALLOC.
7433 (print_insn): Delete reference to tm_print_insn.
7434 (saved_regs_unwinder): Use store_unsigned_integer instead of
7436 * frame.h (FRAME_OBSTACK_CALLOC): Define
7438 2003-04-25 David Carlton <carlton@bactrian.org>
7440 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7442 2003-04-24 Adam Fedor <fedor@gnu.org>
7444 * objc-lang.c: Include "valprint.h"
7445 * Makefile.in (objc-lang.o): Update dependencies.
7447 2003-04-24 Adam Fedor <fedor@gnu.org>
7449 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7450 architecture dependant compilation and mark as unimplemented
7451 (until they get put in the gdbarch vector).
7453 2003-04-23 David Carlton <carlton@bactrian.org>
7455 * cp-support.c (cp_find_first_component): Accept 'operator' in
7458 2003-04-23 Andrew Cagney <cagney@redhat.com>
7460 * infcall.c (call_function_by_hand): Eliminate redundant
7461 indentation. Move "saved_async" and "old_cleanups" to where they
7464 2003-04-23 Andrew Cagney <cagney@redhat.com>
7466 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7467 and "buffer". Move the "name" code to where it is needed.
7469 2003-04-23 Andrew Cagney <cagney@redhat.com>
7471 * infcall.c (call_function_by_hand): Move variables "start_sp",
7472 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7473 code to ON_STACK switch branch.
7475 2003-04-23 Andrew Cagney <cagney@redhat.com>
7477 * infcall.c (call_function_by_hand): Make declaration of "i",
7478 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7481 2003-04-23 Andrew Cagney <cagney@redhat.com>
7483 * infcall.c (call_function_by_hand): Delete variable
7484 "n_method_args". Localize "param_type"'s declaration to the loop
7485 that it is used. Reinstate code assigning to said variable -
7486 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7487 Rationalize code using "param_type".
7489 2003-04-22 Andrew Cagney <cagney@redhat.com>
7491 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7492 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7493 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7494 to DEPRECATED_PUSH_RETURN_ADDRESS.
7496 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7498 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7499 on the DWARF2 register number prior to fetching a register.
7501 2003-04-22 J. Brobecker <brobecker@gnat.com>
7503 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7504 Update all the tests using SOFT_FLOAT considering the fact that
7505 this macro was always set to 0.
7506 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7507 considering the fact that this macro was always set to 0.
7508 * hppa-tdep.h (hppa_store_return_value): Likewise.
7509 (hppa_extract_return_value): Likewise.
7511 2003-04-22 J. Brobecker <brobecker@gnat.com>
7513 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7514 the hppa-pro target only.
7516 2003-04-21 J. Brobecker <brobecker@gnat.com>
7518 Ongoing multi-arch conversion effort for HP/UX:
7519 * config/pa/tm-hppa.h: Move all macro that are no longer
7520 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7521 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7523 2003-04-21 J. Brobecker <brobecker@gnat.com>
7525 * config/pa/tm-hppa.h: Obsolete a section that was only used
7528 2003-04-21 J. Brobecker <brobecker@gnat.com>
7530 Ongoing multi-arch conversion for HP/UX.
7531 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7532 if already defined (allows hppa64 to stay non-multiarched for now).
7533 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7535 2003-04-21 Andrew Cagney <cagney@redhat.com>
7537 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7539 2003-04-21 Andrew Cagney <cagney@redhat.com>
7541 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7542 "i386_num_mmx_regs".
7544 2003-04-21 Andrew Cagney <cagney@redhat.com>
7546 * infcall.c: New file.
7547 * infcall.h: New file.
7548 * valarith.c: Include "infcall.h".
7549 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7550 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7551 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7552 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7553 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7554 (SFILES): Add "infcall.c"
7555 (COMMON_OBS): Add "infcall.o".
7556 (infcall.o): Specify dependencies.
7557 * value.h (call_function_by_hand): Delete declaration.
7558 * inferior.h (run_stack_dummy): Delete declaration.
7559 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7560 (run_stack_dummy): Move to "infcall.c", merged into
7561 call_function_by_hand.
7562 * valops.c (call_function_by_hand): Moved to "infcall.c".
7563 (find_function_addr, value_arg_coerce): Ditto.
7564 (unwindonsignal_p, coerce_float_to_double): Ditto.
7565 (_initialize_valops): Move "set/show coerce-float-to-double", and
7566 "set/show unwindonsignal" commands to "infcall.c".
7567 * v850-tdep.c, target.h: Update comments.
7568 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7569 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7570 (sh64_init_extra_frame_info): Update comments.
7571 * mn10300-tdep.c: Update comments.
7572 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7573 * config/sparc/tm-sparc.h: Update comments.
7574 * breakpoint.h: Update comments.
7575 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7576 * arm-tdep.c: Update comment.
7578 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7580 * i386-tdep.c (i386_num_register_names): New variable.
7581 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7582 (MM0_REGNUM): Remove redundant parentheses in define.
7583 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7584 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7585 i386_mxcsr_regnum_p): Remove redundant parentheses.
7586 (i386_register_name): Use i386_num_register_names.
7588 * i386-tdep.c (i386_extract_return_value,
7589 i386_store_return_value): Correct check for availability of
7590 floating-point registers.
7592 * i386-tdep.c (i386_frame_num_args): Remove function.
7593 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7595 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7596 mmx_regnum_to_fp_regnum. Adjust all callers.
7598 * i386-tdep.c (i386_get_longjmp_target): Use
7599 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7600 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7603 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7605 * core-regset.c: Update comments to reflect reality. Re-order
7607 (fetch_core_registers): Use switch instead of if. Remove
7608 redundant prototype.
7610 2003-04-18 Jim Blandy <jimb@redhat.com>
7612 * s390-tdep.c (s390_frame_align): New function.
7613 (s390_gdbarch_init): Register it with the gdbarch object.
7615 2003-04-17 Richard Henderson <rth@redhat.com>
7617 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7619 2003-04-17 Michael Snyder <msnyder@redhat.com>
7620 Karen Bennet <bennet@redhat.com>
7622 Committed by Elena Zannoni <ezannoni@redhat.com>
7623 * gdb_gcore.sh: New script to create a core dump of a process.
7625 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7627 * values.c (value_being_returned): Don't fetch the return
7628 value if the return type is void.
7630 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7632 * thread-db.c: Reindented.
7634 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7636 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7637 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7664 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7666 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7667 the size of ``long double'' to 16, instead of 8.
7669 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7671 * i386-linux-nat.c: Add some whitespace to make things more
7673 (fetch_register, store_register, fetch_inferior_registers,
7674 store_inferior_registers): Get rid of assignment in if-statement.
7675 (store_register): Fix typo in error message.
7677 2003-04-16 Andrew Cagney <cagney@redhat.com>
7679 * utils.c (xmmalloc): Always allocate something, matches
7680 libiberty/xmalloc's semantics.
7681 (xmrealloc, xmcalloc): Ditto.
7683 2003-04-16 Andrew Cagney <cagney@redhat.com>
7685 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7687 (get_frame_type): Initialize unwind and type when needed.
7688 (get_frame_id, frame_register_unwind): Ditto.
7690 2003-04-16 Andrew Cagney <cagney@redhat.com>
7692 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7694 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7695 * sparcl-stub.c: Obsolete file.
7696 * config/sparc/tm-sparclet.h: Obsolete file.
7697 * sparclet-stub.c: Obsolete file.
7698 * sparclet-rom.c: Obsolete file.
7699 * sparcl-tdep.c: Obsolete file.
7700 * config/sparc/tm-sparclite.h: Obsolete file.
7701 * config/sparc/sparclite.mt: Obsolete file.
7702 * config/sparc/sparclet.mt: Obsolete file.
7703 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7704 sparc86x-*-* obsolete.
7706 2003-04-15 David Carlton <carlton@math.stanford.edu>
7708 * Makefile.in (SFILES): Add cp-namespace.c.
7709 (COMMON_OBS): Add cp-namespace.o.
7710 (block.o): Depend on gdb_obstack_h and cp_support_h.
7711 (buildsym.o): Depend on cp_support_h.
7712 (cp-namespace.o): New.
7713 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7714 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7715 (dwarf2read.o): Depend on cp_support_h.
7716 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7717 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7718 processing_current_namespace.
7719 (read_namespace): Update processing_current_namespace; check for
7720 anonymous namespaces.
7721 (dwarf2_name): New function.
7722 (dwarf2_extension): Ditto.
7723 * cp-support.h: Update copyright, contributors.
7724 Add inclusion guards.
7725 Add opaque declaration for structs obstack, block, symbol.
7726 (struct using_direct): New struct.
7727 Add declarations for cp_find_first_component,
7728 cp_entire_prefix_len, processing_has_namespace_info,
7729 processing_current_namespace, cp_is_anonymous,
7730 cp_add_using_directive, cp_initialize_namespace,
7731 cp_finalize_namespace, cp_set_block_scope,
7732 cp_scan_for_anonymous_namespaces.
7733 * cp-namespace.c: New file.
7734 * cp-support.c: Update copyright.
7735 Include ctype.h, gdb_assert.h, gdbcmd.h.
7736 New variable maint_cplus_cmd_list.
7737 (cp_find_first_component): New function.
7738 (cp_entire_prefix_len, maint_cplus_command)
7739 (first_component_command, _initialize_cp_support): Ditto.
7740 * buildsym.c: Include cp-support.h.
7741 New variable using_list.
7742 (add_symbol_to_list): Check for anonymous namespaces.
7743 (finish_block): Set block's scope.
7744 (start_symtab): Initialize C++ namespace support.
7745 (end_symtab): Finalize C++ namespace support.
7746 * block.h: Add opaque declarations for structs
7747 block_namespace_info, using_direct, and obstack.
7748 Add declarations for block_set_scope and block_set_using.
7749 (struct block): Add 'language_specific' member.
7750 (BLOCK_NAMESPACE): New macro.
7751 * block.c: Include gdb_obstack.h and cp-support.h.
7752 (struct block_namespace_info): New struct.
7753 (block_set_scope): New function.
7754 (block_set_using, block_initialize_namespace): Ditto.
7756 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7758 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7759 (locate_base): Return early if there aren't any link map offsets.
7760 (svr4_solib_create_inferior_hook): Warn if shared library support
7763 2003-04-14 David Carlton <carlton@math.stanford.edu>
7765 * symtab.c (symbol_set_names): Add prefix when storing Java names
7766 in hash table. Fix for PR java/1039.
7768 2003-04-14 David Carlton <carlton@math.stanford.edu>
7770 * symtab.c (symbol_set_names): Rename 'name' arg to
7771 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7772 * symtab.h: Change 'name' argument in declaration of
7773 symbol_set_names to 'linkage_name'.
7774 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7776 2003-04-14 Andrew Cagney <cagney@redhat.com>
7778 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7779 return the fully sign-extended register value.
7780 (get_frame_pointer): Ditto.
7781 (mips_pop_frame): Initialize "proc_desc" after checking for a
7784 2003-04-14 Andrew Cagney <cagney@redhat.com>
7786 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7787 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7788 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7789 (mips_push_register): Delete function.
7790 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7793 2003-04-14 Jim Blandy <jimb@redhat.com>
7795 * symmisc.c: #include "gdb_regex.h".
7796 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7798 * maint.c (maintenance_list_command): New function.
7799 (_initialize_maint_cmds): Register the above as commands.
7800 * symtab.h (maintenance_list_symtabs,
7801 maintenance_list_psymtabs): New declarations.
7802 * cli/cli-cmds.c (maintenancelistlist): New variable.
7803 (init_cmd_lists): Initialize it.
7804 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7805 * gdbcmd.h (maintenancelistlist): New declaration.
7806 * Makefile.in (symmisc.o): Update dependencies.
7808 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7810 * s390-nat.c: Include asm/types.h for addr_t.
7812 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7814 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7815 actually incoming type.
7817 2003-04-13 Andrew Cagney <cagney@redhat.com>
7819 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7820 get_next_frame and get_frame_saved_regs.
7822 2003-04-13 Andrew Cagney <cagney@redhat.com>
7824 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7825 of gdbarch_num_regs.
7827 2003-04-13 Andrew Cagney <cagney@redhat.com>
7829 * frame.h: Mention what replaced what in "struct frame_info".
7830 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7831 deprecated_update_frame_base_hack and
7832 deprecated_update_frame_pc_hack.
7833 * hppa-tdep.c: Ditto.
7835 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7837 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7838 to read_reg and update its comment. Remove regnum member.
7839 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7840 Don't call read_reg when setting in_reg. Call read_reg to get
7841 the frame base if it's in a register. Return the register number
7842 on the stack instead of in the context. Remove extra arguments
7844 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7845 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7846 the register number on the expression stack.
7847 (needs_frame_read_reg): Remove extra arguments.
7849 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7851 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7853 (execute_stack_op): All callers updated.
7854 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7855 * dwarf2loc.c (find_location_expression): New function.
7856 (dwarf_expr_frame_base): Call it.
7857 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7858 (dwarf2_tracepoint_var_ref): New function, broken out from
7859 locexpr_tracepoint_var_ref.
7860 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7862 (loclist_read_variable, loclist_read_needs_frame): New functions.
7863 (loclist_describe_location, loclist_tracepoint_var_ref): New
7865 (dwarf2_loclist_funcs): New struct location_funcs.
7866 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7867 (struct dwarf2_locexpr_baton): Add comments.
7868 (dwarf2_loclist_funcs): New extern.
7869 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7870 base_address and base_known.
7871 (dwarf_loc_buffer): New variable.
7872 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7873 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7874 (dwarf2_has_info): Initialize dwarf_loc_offset.
7875 (dwarf2_build_psymtabs): Read in .debug_loc.
7876 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7878 (psymtab_to_symtab_1): Likewise. Move base address calculation
7880 (dwarf2_get_pc_bounds): ... here. Use the base address from
7882 (dwarf2_symbol_mark_computed): Handle location lists.
7884 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7886 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7887 if the linkage name demangled successfully.
7889 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7891 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7892 disassmbly_flavour): Removed.
7894 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7896 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7898 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7900 2003-04-12 Andrew Cagney <cagney@redhat.com>
7902 * frame.h (struct frame_info): Move definition from here ...
7903 * frame.c (struct frame_info): ... to here.
7905 2003-04-12 Andrew Cagney <cagney@redhat.com>
7907 * gdbthread.h (save_infrun_state): Delete parameter
7909 (struct thread_info): Delete field "prev_func_start".
7910 (load_infrun_state): Ditto.
7911 * thread.c (load_infrun_state, save_infrun_state): Update.
7912 * infrun.c (prev_func_start): Delete variable.
7913 (context_switch, init_wait_for_inferior): Update.
7914 (stop_stepping, keep_going): Update.
7916 2003-04-12 Andrew Cagney <cagney@redhat.com>
7918 * gdbarch.sh: Add missing opaque declarations.
7919 * gdbarch.h: Regnerate.
7920 * symtab.h: Add missing opaque declarations.
7921 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7922 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7923 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7924 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7925 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7926 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7927 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7928 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7929 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7930 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7931 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7932 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7933 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7935 2003-04-11 Andrew Cagney <cagney@redhat.com>
7937 * frame.c (get_frame_id): Return this frame's "id".
7938 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7940 (legacy_saved_regs_this_id): Replace function body with
7942 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7943 FRAME_OBSTACK_ZALLOC.
7944 (create_new_frame): Mark the frame ID as valid.
7946 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7948 * Makefile.in (libbfd_h): Added missing setting.
7949 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7950 according to the selected ABI.
7952 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7954 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7956 2003-04-11 Andrew Cagney <cagney@redhat.com>
7958 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7959 SAVED_PC_AFTER_CALL.
7960 * gdbarch.h, gdbarch.c: Regenerate.
7961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7962 * x86-64-tdep.c (x86_64_init_abi): Update.
7963 * vax-tdep.c (vax_gdbarch_init): Update.
7964 * v850-tdep.c (v850_gdbarch_init): Update.
7965 * sparc-tdep.c (sparc_gdbarch_init): Update.
7966 * sh-tdep.c (sh_gdbarch_init): Update.
7967 * s390-tdep.c (s390_gdbarch_init): Update.
7968 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7969 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7970 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7971 * mips-tdep.c (mips_gdbarch_init): Update.
7972 * mcore-tdep.c (mcore_gdbarch_init): Update.
7973 * m68k-tdep.c (m68k_gdbarch_init): Update.
7974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7975 * ia64-tdep.c (ia64_gdbarch_init): Update.
7976 (ia64_saved_pc_after_call): Update declaration.
7977 * i386ly-tdep.c (i386lynx_init_abi): Update.
7978 * i386-tdep.c (i386_gdbarch_init): Update.
7979 * hppa-tdep.c (hppa_gdbarch_init): Update.
7980 * h8300-tdep.c (h8300_gdbarch_init): Update.
7981 * frv-tdep.c (frv_gdbarch_init): Update.
7982 * cris-tdep.c (cris_gdbarch_init): Update.
7983 * avr-tdep.c (avr_gdbarch_init): Update.
7984 * arm-tdep.c (arm_gdbarch_init): Update.
7985 * alpha-tdep.c (alpha_gdbarch_init): Update.
7986 * ns32knbsd-nat.c (frame_num_args): Update.
7987 * ns32k-tdep.c (umax_frame_num_args): Update.
7988 * mips-tdep.c (mips_init_frame_pc_first): Update.
7989 * infrun.c (step_over_function): Update.
7990 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7991 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7992 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7993 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7994 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7995 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7996 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7997 * arch-utils.c (init_frame_pc_default): Update.
7998 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7999 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8002 2003-04-11 Andrew Cagney <cagney@redhat.com>
8004 * i387-tdep.c: Update copyright.
8005 (i387_to_double): Delete function.
8006 (double_to_i387): Delete function.
8008 2003-04-10 Andrew Cagney <cagney@redhat.com>
8010 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8011 frame's function's address. Simplify.
8012 (d10v_frame_unwind_cache): Check that the frame's function is
8015 2003-04-10 Jim Blandy <jimb@redhat.com>
8017 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8018 call to set_gdbarch_deprecated_push_arguments.
8020 2003-04-10 Andrew Cagney <cagney@redhat.com>
8022 * frame.c (fprint_frame_id): New function.
8023 (fprint_frame_type, fprint_frame): New function.
8024 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8025 (create_sentinel_frame, get_frame_id): Ditto.
8026 (frame_id_p, frame_id_eq): Ditto.
8027 (frame_id_inner, create_new_frame): Ditto.
8028 (legacy_get_prev_frame, get_prev_frame): Ditto.
8029 (deprecated_update_frame_pc_hack): Ditto.
8030 (frame_register_unwind): Ditto.
8031 (deprecated_update_frame_base_hack): Ditto.
8033 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8035 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8036 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8037 frame_chain function.
8038 * Makefile.in: Add dependencies due to above change.
8040 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8042 * blockframe.c (legacy_frame_chain_valid): Move call to
8043 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8046 2003-04-09 Andrew Cagney <cagney@redhat.com>
8048 * frame.h (struct frame_id): Replace "pc" and "base" with
8049 "stack_addr" and "code_addr". Update comments.
8050 (frame_id_build): Update parameter names and comment.
8051 (struct frame_info): Replace "id_p" and "id" with "this_id".
8052 * dummy-frame.c (dummy_frame_this_id): Update.
8053 * breakpoint.c (print_one_breakpoint): Update.
8054 * frame.c (get_frame_id): Update.
8055 (get_frame_base, frame_id_build): Update.
8056 (create_sentinel_frame, legacy_get_prev_frame): Update.
8057 (deprecated_update_frame_base_hack): Update.
8058 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8059 (frame_id_inner): Ditto.
8061 2003-04-09 Andrew Cagney <cagney@redhat.com>
8063 * defs.h (gdb_print_host_address): Make "addr" parameter a
8065 * utils.c (gdb_print_host_address): Update.
8067 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8069 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8070 register number for R0 is 0.
8072 2003-04-09 J. Brobecker <brobecker@gnat.com>
8074 * frame.h (struct gdbarch): Add opaque structure definition
8075 to avoid a compilation warning on LynxOS 4.0.
8077 2003-04-09 Andrew Cagney <cagney@redhat.com>
8079 * frame.h (struct frame_info): Delete field "pc". Replace
8080 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8082 * frame.c (frame_pc_unwind): Update.
8083 (create_sentinel_frame): Do not set "pc".
8084 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8085 (get_frame_pc): Call frame_pc_unwind.
8086 (deprecated_update_frame_pc_hack): Update.
8087 (create_new_frame): Use "pc" not "->pc".
8089 2003-04-09 Andrew Cagney <cagney@redhat.com>
8091 * frame.c (get_frame_id): Eliminate code updating "frame".
8092 (legacy_get_prev_frame): Ditto.
8093 (get_frame_base): Return id.base directly.
8094 (deprecated_update_frame_base_hack): Update "id.base".
8095 * frame.h (struct frame_info): Delete field "frame".
8097 2003-04-09 Andrew Cagney <cagney@redhat.com>
8099 * NEWS: Mention that the "Sequent family" is obsolete.
8100 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8101 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8102 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8103 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8104 * config/i386/tm-ptx4.h: Obsolete file.
8105 * config/i386/tm-ptx.h: Obsolete file.
8106 * symm-tdep.c: Obsolete file.
8107 * config/i386/symmetry.mt: Obsolete file.
8108 * config/i386/tm-symmetry.h: Obsolete file.
8109 * symm-nat.c: Obsolete file.
8110 * config/i386/nm-symmetry.h: Obsolete file.
8111 * config/i386/xm-symmetry.h: Obsolete file.
8112 * config/i386/symmetry.mh: Obsolete file.
8113 * config/i386/nm-ptx4.h: Obsolete file.
8114 * config/i386/ptx4.mh: Obsolete file.
8115 * config/i386/ptx.mt: Obsolete file.
8116 * config/i386/ptx.mh: Obsolete file.
8117 * config/i386/xm-ptx4.h: Obsolete file.
8118 * config/i386/xm-ptx.h: Obsolete file.
8120 2003-04-09 Andrew Cagney <cagney@redhat.com>
8122 Obsolete mips*-*-mach3*.
8123 * NEWS: Mention that mips*-*-mach3* is obsolete.
8124 * m3-nat.c: Obsolete file.
8125 * config/nm-m3.h: Obsolete file.
8126 * config/mips/tm-mipsm3.h: Obsolete file.
8127 * config/mips/mipsm3.mt: Obsolete file.
8128 * config/mips/mipsm3.mh: Obsolete file.
8129 * config/mips/xm-mipsm3.h: Obsolete file.
8130 * mipsm3-nat.c: Obsolete file.
8131 * configure.host: Obsolete mips-dec-mach3*.
8132 * configure.tgt: Obsolete mips*-*-mach3*.
8134 2003-04-09 Andrew Cagney <cagney@redhat.com>
8136 * doublest.h: Update copyright.
8137 (deprecated_store_floating, deprecated_extract_floating): Rename
8138 store_floating and extract_floating. Update comments.
8139 * doublest.c: Update copyright.
8140 (extract_floating_by_length): Replace extract_floating.
8141 (store_floating_by_length): Replace store_floating.
8142 (deprecated_extract_floating): New function.
8143 (deprecated_store_floating): New function.
8144 (extract_typed_floating): Call extract_floating_by_length.
8145 (store_typed_floating): Call store_floating_by_length.
8146 * x86-64-tdep.c (x86_64_store_return_value): Update.
8147 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8148 (sh64_extract_return_value): Update.
8149 (sh_sh4_register_convert_to_virtual): Update.
8150 (sh_sh64_register_convert_to_virtual): Update.
8151 (sh_sh4_register_convert_to_raw): Update.
8152 (sh_sh64_register_convert_to_raw): Update.
8153 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8154 (rs6000_register_convert_to_raw): Update.
8155 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8156 (ia64_register_convert_to_raw): Update.
8157 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8158 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8159 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8160 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8161 (alpha_register_convert_to_raw): Update.
8163 2003-04-08 Andrew Cagney <cagney@redhat.com>
8165 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8166 * gdbarch.h, gdbarch.c: Re-generate.
8167 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8168 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8169 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8170 conditionally, use frame_pc_unwind as an alternative. Add
8172 * arch-utils.c (init_frame_pc_default): Only call
8173 SAVED_PC_AFTER_CALL when available.
8175 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8177 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8178 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8179 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8180 (start_remote): Ditto.
8181 (handle_inferior_event): Ditto.
8182 (save_inferior_status): Ditto.
8183 (restore_inferior_status): Ditto.
8184 * infcmd.c (attach_command): Ditto.
8185 * fork-child.c (startup_inferior): Ditto.
8186 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8187 * alpha-tdep.c (heuristic_proc_start): Ditto.
8188 * mips-tdep.c (heuristic_proc_start): Ditto.
8189 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8190 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8191 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8192 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8193 * remote-vx.c (vx_create_inferior): Ditto.
8195 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8197 * infrun.c (stop_soon_quietly): Make it an enum, to better
8198 override the default behavior of handle_inferior_event.
8199 (clear_proceed_status): Update uses of stop_soon_quietly to
8200 reflect that it is now an enum.
8201 (start_remote): Ditto.
8202 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8203 is set to handle the new GNU/Linux kernel behavior for
8204 attach/sigstop. Update uses of stop_soon_quietly.
8205 * inferior.h (enum stop_kind): New enum.
8206 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8207 Reset normal handle_inferior_event behavior, afterwards.
8208 * fork-child.c (startup_inferior): Update.
8209 * alpha-tdep.c (heuristic_proc_start): Update.
8210 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8211 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8212 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8213 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8214 * remote-vx.c (vx_create_inferior): Update.
8215 * mips-tdep.c (heuristic_proc_start): Update.
8217 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8219 * disasm.c (dump_insns): Move variables inside loop, or they will
8220 be freed more than once, causing wild memory corruptions.
8221 (gdb_disassembly): Look for the substring "-thread",
8222 instead of "-threads" in the target name, to make sure to find
8223 the 'multi-thread' target. Also, make sure we do the right thing
8224 with the "core" target.
8226 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8228 * mips-tdep.c (mips_print_fp_register): New function, created from
8229 do_fp_register_row(). Registers are now (also) printed as hex.
8230 Only one register is printed per row.
8231 (mips_print_register, do_fp_register_row): Print floating point
8232 registers with mips_print_fp_register().
8234 2003-04-06 Andrew Cagney <cagney@redhat.com>
8236 * valprint.h (inspect_it): Add extern declaration.
8237 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8238 (selectors_info, classes_info): Ditto.
8239 (find_objc_msgcall): Fix indentation.
8240 (objc_printstr): Delete extern declarations.
8242 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8244 2003-04-06 Andrew Cagney <cagney@redhat.com>
8246 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8248 * frame.c (legacy_saved_regs_this_id): Update.
8249 (legacy_get_prev_frame): Update.
8250 * xstormy16-tdep.c: Update comment.
8251 * sparc-tdep.c (sparc_frame_chain): Update comment.
8252 * blockframe.c (legacy_frame_chain_valid): Update.
8254 2003-04-06 Andrew Cagney <cagney@redhat.com>
8256 * valprint.c (val_print_type_code_int): Delete #ifdef
8257 PRINT_TYPELESS_INTEGER code.
8259 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8260 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8261 multi-arch definition.
8262 * gdbarch.h: Re-generate.
8264 2003-04-05 Andrew Cagney <cagney@redhat.com>
8266 Eliminate FRAME_FIND_SAVED_REGS.
8267 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8268 Change FSR parameter to a pointer.
8269 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8270 Assume FSR parameter is a pointer.
8271 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8273 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8274 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8275 saved_regs a pointer.
8276 (hppa_frame_saved_pc): Ditto.
8277 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8278 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8280 (restore_pc_queue): Make fsr a pointer.
8281 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8282 (hppa_frame_chain): Make saved_regs a pointer, call
8283 hppa_frame_init_saved_regs.
8284 * sparc-tdep.c: Include "gdb_assert.h".
8285 (sparc_frame_find_saved_regs): Replace internal_error with
8287 * remote-vxsparc.c (vx_read_register): Delete reference to
8288 FRAME_FIND_SAVED_REGS.
8289 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8290 * gdbarch.h: Regenerate.
8291 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8292 (deprecated_get_frame_saved_regs): Delete declaration.
8293 (struct frame_saved_regs): Delete definition.
8294 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8295 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8296 (hppa_frame_find_saved_regs): Delete declaration.
8297 (FRAME_FIND_SAVED_REGS): Delete macro.
8298 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8299 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8300 FRAME_FIND_SAVED_REGS in comment.
8302 2003-04-05 Andrew Cagney <cagney@redhat.com>
8304 * frame.c (frame_func_unwind, get_frame_func): New functions.
8305 * frame.h (get_frame_func, frame_func_unwind): Declare.
8306 (struct frame_info): Add field "prev_func" for caching the
8307 previous frame's function address.
8308 * arm-tdep.c (arm_frameless_function_invocation): Combine
8309 get_pc_function_start and get_frame_pc into get_frame_func.
8310 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8311 (sh64_nofp_frame_init_saved_regs): Ditto.
8312 * s390-tdep.c (s390_function_start): Ditto.
8313 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8314 (rs6000_frameless_function_invocation): Ditto.
8315 (rs6000_frame_saved_pc): Ditto.
8316 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8317 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8318 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8319 (i386_frame_init_saved_regs): Ditto.
8320 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8321 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8322 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8323 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8324 * blockframe.c (frameless_look_for_prologue): Ditto.
8326 2003-04-05 Andrew Cagney <cagney@redhat.com>
8328 * frame.c (legacy_get_prev_frame): Link prev to next at the
8329 function start. Update comments.
8331 2003-04-05 Andrew Cagney <cagney@redhat.com>
8333 * frame.c (get_frame_id): Update comment.
8334 (legacy_get_prev_frame): Update comment.
8335 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8336 * gdbarch.h: Regenerate.
8337 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8338 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8340 2003-04-05 Andrew Cagney <cagney@redhat.com>
8342 * stack.c (print_frame_info): Use get_frame_pc.
8344 2003-04-04 Andrew Cagney <cagney@redhat.com>
8346 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8347 the frame's type from the unwinder.
8348 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8349 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8350 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8351 (get_frame_base_address): Use get_frame_type.
8352 (get_frame_locals_address, get_frame_args_address): Ditto.
8353 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8354 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8355 (struct frame_info): Add comment explaining why the frame contains
8357 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8358 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8359 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8361 * frame-unwind.h: Include "frame.h".
8362 (struct frame_unwind): Add "type" field.
8363 * Makefile.in (frame_unwind_h): Add $(frame_h).
8365 2003-04-04 Andrew Cagney <cagney@redhat.com>
8367 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8368 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8369 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8371 (d10v_unwind_dummy_id): Use frame_id_build.
8372 * frame.c (find_frame_sal): Use get_frame_pc.
8373 (create_new_frame): Use deprecated_update_frame_pc_hack and
8374 deprecated_update_frame_base_hack.
8375 (create_sentinel_frame): Add comment about ->pc going away.
8376 (get_prev_frame): Add comment about ->pc going away.
8377 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8378 frame_id_build, deprecated_update_frame_pc_hack and
8379 deprecated_update_frame_base_hack.
8380 (select_frame): Use get_frame_pc.
8381 (legacy_saved_regs_this_id): Use frame_id_build.
8383 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8385 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8386 signed integer case.
8387 (classify_argument): Handle enumerations and references.
8389 2003-04-04 Andrew Cagney <cagney@redhat.com>
8391 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8394 2003-04-01 Adam Fedor <fedor@gnu.org>
8396 * gdb/objc-lang.c (selectors_info): Replace calls to
8397 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8398 SYMBOL_NATURAL_NAME.
8399 (classes_info, find_methods): Likewise.
8401 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8403 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8404 ``mach'' to the value determined by bfd_default_set_arch_mach().
8406 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8408 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8409 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8410 (mi-cmd-file.o): Update dependencies.
8412 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8414 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8415 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8417 2003-04-01 Adam Fedor <fedor@gnu.org>
8419 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8420 * language.h (struct language_defn): Add la_demangle.
8421 (language_demangle): Declare.
8422 * language.c (language_demangle): New function.
8423 (unk_lang_demangle): Likewise.
8424 (unknown_language_defn, auto_language_defn, local_language_defn):
8425 Add ukn_lang_demangle.
8426 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8427 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8428 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8429 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8430 * jv-lang.c (java_demangle): New function
8431 (java_language_defn): Use it for la_demangle element.
8432 * objc-lang.c (objc_demangle): Add options argument
8433 (objc_language_defn): Use objc_demangle for la_demangle element.
8434 * maint.c (maintenance_demangle): Replace switch with
8435 call to language_demangle.
8436 * utils.c (fprintf_symbol_filtered): Likewise.
8438 2003-04-01 Andrew Cagney <cagney@redhat.com>
8440 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8441 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8442 PRINT_TYPELESS_INTEGER.
8443 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8444 PUSH_RETURN_ADDRESS.
8446 2003-04-01 Andrew Cagney <cagney@redhat.com>
8448 * Makefile.in (d10v-tdep.o): Update dependencies.
8449 * d10v-tdep.c: Include "frame-base.h".
8450 (d10v_frame_unwind): Make constant.
8451 (d10v_frame_base_address): New function.
8452 (d10v_frame_base): New variable.
8453 (d10v_gdbarch_init): Set frame_base default.
8454 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8456 (d10v_frame_unwind_cache): Set and use "prev_sp".
8457 (d10v_frame_this_id): Use the previous frame's inner most stack
8458 address and this frame's func address for the frame ID. Use
8459 frame_id_build. Don't analyze beyond the current instruction.
8461 2003-04-01 Andrew Cagney <cagney@redhat.com>
8463 * frame.h (get_frame_locals_address, get_frame_args_address):
8464 Refer to the base address, instead of the address of the first
8467 2003-04-01 Andrew Cagney <cagney@redhat.com>
8469 Add frame debug info addresses:
8470 * frame-base.c: New file.
8471 * frame-base.h: New file.
8472 * frame.h (struct frame_base): Add opaque declaration.
8473 (get_frame_base): Update comment.
8474 (get_frame_base_address): Declare.
8475 (get_frame_locals_address): Declare.
8476 (get_frame_args_address): Declare.
8477 (struct frame_info): Add "base" and "base_cache". Update
8478 comments on the unwinder.
8479 * frame.c: Include "frame-base.h".
8480 (get_frame_locals_address): New function.
8481 (get_frame_base_address): New function.
8482 (get_frame_args_address): New function.
8483 * findvar.c (read_var_value): Use get_frame_locals_address and
8484 get_frame_args_address.
8485 * stack.c (frame_info): Use get_frame_locals_address and
8486 get_frame_args_address.
8487 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8488 moved to "frame-base.c".
8489 * printcmd.c (print_frame_nameless_args): Ditto.
8490 * symtab.h (address_class): Update comments.
8491 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8492 get_frame_base_address.
8493 * dwarf2expr.c (execute_stack_op): Ditto.
8494 * Makefile.in (frame_base_h): Define.
8495 (frame.o): Update dependencies.
8496 (frame-base.o): Add dependencies.
8497 (SFILES): Add frame-base.c.
8498 (COMMON_OBS): Add frame-base.o.
8500 2003-04-01 Andrew Cagney <cagney@redhat.com>
8502 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8503 CALL_DUMMY_LENGTH): Ditto.
8504 * gdbarch.c: Re-generate.
8505 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8506 (CALL_DUMMY_LENGTH): Delete macro.
8507 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8508 * arm-tdep.c (arm_gdbarch_init): Ditto.
8509 * avr-tdep.c (avr_gdbarch_init): Ditto.
8510 * cris-tdep.c (cris_gdbarch_init): Ditto.
8511 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8512 * frv-tdep.c (frv_gdbarch_init): Ditto.
8513 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8514 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8515 * i386-tdep.c (i386_gdbarch_init): Ditto.
8516 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8518 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8519 * mips-tdep.c (mips_gdbarch_init): Ditto.
8520 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8521 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8522 * s390-tdep.c (s390_gdbarch_init): Ditto.
8523 * sh-tdep.c (sh_gdbarch_init): Ditto.
8524 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8525 * v850-tdep.c (v850_gdbarch_init): Ditto.
8526 * vax-tdep.c (vax_gdbarch_init): Ditto.
8527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8529 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8531 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8533 2003-04-01 Andrew Cagney <cagney@redhat.com>
8535 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8536 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8537 * gdbarch.h, gdbarch.c: Re-generate.
8538 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8539 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8540 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8541 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8542 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8543 * infcmd.c (run_stack_dummy): Simplify assuming
8544 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8545 * infrun.c (handle_inferior_event): Ditto.
8546 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8547 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8548 * arm-tdep.c (arm_gdbarch_init): Ditto.
8549 * avr-tdep.c (avr_gdbarch_init): Ditto.
8550 * cris-tdep.c (cris_gdbarch_init): Ditto.
8551 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8552 * frv-tdep.c (frv_gdbarch_init): Ditto.
8553 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8554 * i386-tdep.c (i386_gdbarch_init): Ditto.
8555 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8556 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8557 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8558 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8559 * mips-tdep.c (mips_gdbarch_init): Ditto.
8560 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8561 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8562 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8563 * s390-tdep.c (s390_gdbarch_init): Ditto.
8564 * sh-tdep.c (sh_gdbarch_init): Ditto.
8565 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8566 * v850-tdep.c (v850_gdbarch_init): Ditto.
8567 * vax-tdep.c (vax_gdbarch_init): Ditto.
8568 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8570 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8572 * symfile.c (symfile_relocate_debug_section): Update call to
8573 bfd_simple_get_relocated_section_contents.
8575 2003-03-31 Andrew Cagney <cagney@redhat.com>
8577 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8578 * gdbarch.h, gdbarch.c: Regenerate.
8579 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8580 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8582 * frame.h (generic_fix_call_dummy): Delete declaration.
8583 * dummy-frame.h: Update comment.
8584 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8585 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8587 * sh-tdep.c (sh_gdbarch_init): Ditto.
8588 * s390-tdep.c (s390_gdbarch_init): Ditto.
8589 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8590 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8592 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8593 * i386-tdep.c (i386_gdbarch_init): Ditto.
8594 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8595 * frv-tdep.c (frv_gdbarch_init): Ditto.
8596 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8597 * cris-tdep.c (cris_gdbarch_init): Ditto.
8598 * avr-tdep.c (avr_gdbarch_init): Ditto.
8599 * arm-tdep.c (arm_gdbarch_init): Ditto.
8601 2003-03-31 J. Brobecker <brobecker@gnat.com>
8603 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8604 (INIT_FRAME_AP): Likewise.
8605 (EXTRA_FRAME_INFO): Likewise.
8607 2003-03-31 Andrew Cagney <cagney@redhat.com>
8609 * gdbarch.sh: Include "symfile.h".
8610 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8611 * gdbarch.h, gdbarch.c: Re-generate.
8612 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8613 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8614 call_dummy_address, the default is at entry_point_address.
8615 * v850-tdep.c (v850_gdbarch_init): Ditto.
8616 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8617 * sh-tdep.c (sh_gdbarch_init): Ditto.
8618 * s390-tdep.c (s390_gdbarch_init): Ditto.
8619 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8620 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8621 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8622 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8623 * i386-tdep.c (i386_gdbarch_init): Ditto.
8624 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8625 * frv-tdep.c (frv_gdbarch_init): Ditto.
8626 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8627 * cris-tdep.c (cris_gdbarch_init): Ditto.
8628 * arm-tdep.c (arm_gdbarch_init): Ditto.
8630 2003-03-31 Andrew Cagney <cagney@redhat.com>
8632 * gdbarch.sh (CALL_DUMMY_P): Delete.
8633 * gdbarch.h, gdbarch.c: Re-generate.
8634 * inferior.h (CALL_DUMMY_P): Delete macro.
8635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8636 * vax-tdep.c (vax_gdbarch_init): Update.
8637 * v850-tdep.c (v850_gdbarch_init): Update.
8638 * sparc-tdep.c (sparc_gdbarch_init): Update.
8639 * sh-tdep.c (sh_gdbarch_init): Update.
8640 * s390-tdep.c (s390_gdbarch_init): Update.
8641 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8642 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8643 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8644 * mips-tdep.c (mips_gdbarch_init): Update.
8645 * mcore-tdep.c (mcore_gdbarch_init): Update.
8646 * m68k-tdep.c (m68k_gdbarch_init): Update.
8647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8648 * ia64-tdep.c (ia64_gdbarch_init): Update.
8649 * i386-tdep.c (i386_gdbarch_init): Update.
8650 * h8300-tdep.c (h8300_gdbarch_init): Update.
8651 * frv-tdep.c (frv_gdbarch_init): Update.
8652 * d10v-tdep.c (d10v_gdbarch_init): Update.
8653 * cris-tdep.c (cris_gdbarch_init): Update.
8654 * breakpoint.c (deprecated_frame_in_dummy): Update.
8655 * avr-tdep.c (avr_gdbarch_init): Update.
8656 * alpha-tdep.c (alpha_gdbarch_init): Update.
8657 * arm-tdep.c (arm_gdbarch_init): Update.
8658 * dummy-frame.c (dummy_frame_this_id): Update comments.
8659 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8660 * frame.c (legacy_get_prev_frame): Ditto.
8661 * valops.c (call_function_by_hand): Delete function.
8662 (hand_function_call): Rename to call_function_by_hand
8664 2003-03-30 Andrew Cagney <cagney@redhat.com>
8666 2002-11-10 Klee Dienes <kdienes@apple.com>
8667 * value.h (struct value): Update comment.
8669 2003-03-30 Andrew Cagney <cagney@redhat.com>
8671 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8673 (d10v_gdbarch_init): Do not set fp_regnum.
8675 * frame.c (get_frame_base): Force ID initialization.
8676 (get_prev_frame): Move computation of the frame ID from here ...
8677 (get_frame_id): ... to here.
8678 (legacy_get_prev_frame): Mark the frame ID as valid.
8679 * frame.h (struct frame_info): Add field "id_p".
8681 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8683 * i386-tdep.c (i386_store_struct_return): Removed.
8684 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8686 2003-03-30 Andrew Cagney <cagney@redhat.com>
8688 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8689 * gdbarch.h, gdbarch.c: Regenerate.
8690 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8691 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8692 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8693 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8694 * i386-tdep.c (i386_gdbarch_init): Ditto.
8695 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8696 * cris-tdep.c (cris_gdbarch_init): Ditto.
8697 * vax-tdep.c (vax_gdbarch_init): Ditto.
8698 * s390-tdep.c (s390_gdbarch_init): Ditto.
8699 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8700 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8701 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8702 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8703 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8704 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8705 * sparc-tdep.c (sparc_gdbarch_init): Update.
8706 * sh-tdep.c (sh_gdbarch_init): Update.
8707 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8708 * mips-tdep.c (mips_gdbarch_init): Update.
8709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8710 * ia64-tdep.c (ia64_gdbarch_init): Update.
8711 * frv-tdep.c (frv_gdbarch_init): Update.
8712 * avr-tdep.c (avr_gdbarch_init): Update.
8713 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8714 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8715 instead of when push_dummy_call is not available.
8717 2003-03-30 Andrew Cagney <cagney@redhat.com>
8719 * infttrace.c: Include "gdbthread.h".
8720 (parent_attach_all): Fix function signature.
8721 (call_ptrace): Update call.
8722 * Makefile.in (infttrace.o): Update dependencies.
8724 2003-03-30 Andrew Cagney <cagney@redhat.com>
8726 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8727 PUSH_RETURN_ADDRESS.
8728 * gdbarch.h, gdbarch.c: Regenerate.
8729 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8730 * x86-64-tdep.c (x86_64_init_abi): Update.
8731 * v850-tdep.c (v850_gdbarch_init): Update.
8732 * sparc-tdep.c (sparc_gdbarch_init): Update.
8733 * sh-tdep.c (sh_gdbarch_init): Update.
8734 * s390-tdep.c (s390_gdbarch_init): Update.
8735 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8736 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8737 * mips-tdep.c (mips_gdbarch_init): Update.
8738 * mcore-tdep.c (mcore_gdbarch_init): Update.
8739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8740 * ia64-tdep.c (ia64_gdbarch_init): Update.
8741 * i386-tdep.c (i386_gdbarch_init): Update.
8742 * h8300-tdep.c (h8300_gdbarch_init): Update.
8743 * frv-tdep.c (frv_gdbarch_init): Update.
8744 * cris-tdep.c (cris_gdbarch_init): Update.
8745 * avr-tdep.c (avr_gdbarch_init): Update.
8746 * arm-tdep.c (arm_gdbarch_init): Update.
8747 * valops.c (hand_function_call): Update.
8749 2003-03-29 Andrew Cagney <cagney@redhat.com>
8751 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8752 sizeof_call_dummy_words.
8753 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8755 * gdbarch.h: Regenerate.
8757 2003-03-29 Andrew Cagney <cagney@redhat.com>
8759 * infttrace.h: New file.
8760 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8761 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8762 (hpread_read_doc_function_type): Detect an initialized type1.
8763 (hpread_quick_traverse): Initialize mod_name_string.
8764 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8765 (som_solib_get_solib_by_pc): Declare.
8766 (so_lib_thread_start_addr): Declare.
8767 (no_shared_libraries): Declare.
8768 * somread.c (init_import_symbols): Make static. Add forward
8770 * config/pa/nm-hppah.h: Include "infttrace.h" for
8772 (hppa_insert_hw_watchpoint): Declare.
8773 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8774 * hppah-nat.c: Include "gdb_string.h".
8775 (parent_attach_all): Delete extern declaration, moved to
8777 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8779 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8780 * Makefile.in (infttrace_h): Define.
8781 (hpread.o): Update dependencies.
8782 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8783 * hppa-hpux-tdep.c: Include "gdb_string.h".
8784 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8785 * infrun.c (handle_inferior_event): Always initialize
8786 stepped_after_stopped_by_watchpoint. Add default and remove
8787 fallthrough in switch statement.
8788 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8790 (hppa_remove_hw_watchpoint): Ditto.
8792 2003-03-29 Andrew Cagney <cagney@redhat.com>
8794 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8797 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8799 * arm-tdep.c (arm_push_arguments): Delete.
8800 (struct stack_item): New type.
8801 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8802 (arm_store_struct_return): Delte.
8803 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8804 arm_push_arguments or arm_store_struct_return.
8806 2003-03-28 Andrew Cagney <cagney@redhat.com>
8808 * Makefile.in (d10v-tdep.o): Update dependencies.
8809 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8810 * d10v-tdep.c: Include "remote.h".
8811 (target_resume_hook): Delete extern declaration.
8812 (target_wait_loop_hook): Ditto.
8813 (tdisassemble_command): Eliminate assignment in "if" conditional.
8814 (d10v_ts2_register_sim_regno): Eliminate call to
8815 legacy_register_sim_regno.
8816 (d10v_ts3_register_sim_regno): Ditto.
8818 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8820 * thread.c: Reindented.
8822 * linux-proc.c: Ditto.
8824 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8826 * MAINTAINERS (write after approval): Add myself.
8828 2003-03-27 Theodore A. Roth <troth@openavr.org>
8830 * objc-exp.y: Add missing semi-colons.
8832 2003-03-27 Andrew Cagney <cagney@redhat.com>
8834 * regcache.c (write_sp): Delete function and references.
8835 * inferior.h (write_sp): Delete declaration.
8836 * valops.c (hand_function_call): Replace write_sp with
8838 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8839 (sparc_pop_frame): Ditto.
8841 2003-03-27 Andrew Cagney <cagney@redhat.com>
8843 * NEWS: Mention removal of support for hppa*-*-bsd* and
8844 hppa*-*-osf* natives, and hppa*-*-pro* target.
8845 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8846 * config/pa/xm-pa.h: Obsolete file.
8847 * config/pa/xm-hppab.h: Obsolete file.
8848 * config/pa/nm-hppab.h: Obsolete file.
8849 * config/pa/tm-hppab.h: Obsolete file.
8850 * config/pa/tm-hppao.h: Obsolete file.
8851 * config/pa/nm-hppao.h: Obsolete file.
8852 * config/pa/tm-pro.h: Obsolete file.
8853 * config/pa/hppaosf.mt: Obsolete file.
8854 * config/pa/hppaosf.mh: Obsolete file.
8855 * config/pa/hppapro.mt: Obsolete file.
8856 * config/pa/hppabsd.mt: Obsolete file.
8857 * config/pa/hppabsd.mh: Obsolete file.
8858 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8859 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8862 2003-03-27 Andrew Cagney <cagney@redhat.com>
8864 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8865 push_arguments. Don't set push_return_address or write_sp.
8866 (d10v_push_dummy_call): Replace d10v_push_arguments.
8867 (d10v_push_return_address, d10v_write_sp): Delete function,
8868 handled by push_dummy_call.
8870 2003-03-26 Andrew Cagney <cagney@redhat.com>
8872 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8873 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8874 regcache and dummy_addr parameters.
8875 * gdbarch.h, gdbarch.c: Re-generate.
8876 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8877 available; assume it will handle stack alignment and return
8878 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8879 legacy_push_arguments.
8880 (legacy_push_arguments): Rename default_push_arguments.
8881 * value.h (legacy_push_arguments): Rename default_push_arguments.
8882 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8883 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8884 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8885 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8886 * config/i386/tm-symmetry.h: Update.
8887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8888 * x86-64-tdep.c (x86_64_init_abi): Update.
8889 * v850-tdep.c (v850_gdbarch_init): Update.
8890 * sparc-tdep.c (sparc_gdbarch_init): Update.
8891 * sh-tdep.c (sh_gdbarch_init): Update.
8892 * s390-tdep.c (s390_gdbarch_init): Update.
8893 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8894 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8895 * mips-tdep.c (mips_gdbarch_init): Update.
8896 * mcore-tdep.c (mcore_gdbarch_init): Update.
8897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8898 * ia64-tdep.c (ia64_gdbarch_init): Update.
8899 * i386-tdep.c (i386_gdbarch_init): Update.
8900 * hppa-tdep.c (hppa_gdbarch_init): Update.
8901 * h8300-tdep.c (h8300_gdbarch_init): Update.
8902 * frv-tdep.c (frv_gdbarch_init): Update.
8903 * d10v-tdep.c (d10v_gdbarch_init): Update.
8904 * cris-tdep.c (cris_gdbarch_init): Update.
8905 * avr-tdep.c (avr_gdbarch_init): Update.
8906 * arm-tdep.c (arm_gdbarch_init): Update.
8907 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8908 * alpha-tdep.c (alpha_gdbarch_init): Update.
8910 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8912 * signals/signals.c (do_target_signal_to_host): Correct realtime
8915 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8917 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8918 (struct sal_chain, map_catch_names): Remove.
8919 (catch_exception_command_1): Don't call
8920 handle_gnu_4_16_catch_command.
8922 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8924 From Mark Dettinger <dettinge@de.ibm.com>:
8925 * dwarf2cfi.c (read_2u): Increment pointer by two.
8927 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8929 * signals/signals.c: Fix typos in last change.
8931 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8933 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8934 not already defined. Use __SIGRTMIN if available.
8935 (target_signal_from_host): Remove SIGRTMIN block.
8936 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8937 the signal is within the realtime range.
8939 2003-03-25 Adam Fedor <fedor@gnu.org>
8941 * Makefile.in (infrun.o): Add $(language_h)
8942 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8943 for language specific trampolines.
8944 * language.h (struct language_defn): Add skip_trampoline.
8945 (skip_language_trampoline): Declare.
8946 * language.c (unk_lang_trampoline, skip_language_trampoline):
8948 (unknown_language_defn, auto_language_defn, local_language_defn):
8949 Add ukn_lang_trampoline.
8950 * ada-lang.c (ada_language_defn): Add NULL for language
8951 specific skip_trampoline.
8952 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8953 scm-lang.c: Likewise.
8954 * objc-lang.c (objc_skip_trampoline): New function.
8955 (objc_language_defn): Add objc_skip_trampoline.
8957 2003-03-25 Andrew Cagney <cagney@redhat.com>
8959 * frame.c (get_prev_frame): Delay validating a frame's ID -
8960 non-NULL, didn't go backwards - until an attempt to unwind it to
8963 2003-03-25 Andrew Cagney <cagney@redhat.com>
8965 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8966 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8967 * gdbarch.h, gdbarch.c: Re-generate.
8968 * config/sparc/tm-sparc.h
8969 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8970 * sparc-tdep.c (sparc_gdbarch_init): Set
8971 deprecated_extra_stack_alignment_needed.
8972 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8973 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8974 extra_stack_alignment_needed.
8975 * v850-tdep.c (v850_gdbarch_init): Ditto.
8976 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8977 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8978 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8979 * cris-tdep.c (cris_gdbarch_init): Ditto.
8980 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8983 2003-03-25 Andrew Cagney <cagney@redhat.com>
8985 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8986 STORE_STRUCT_RETURN.
8987 * gdbarch.h, gdbarch.c: Regenerate.
8988 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8989 (d10v_push_arguments): Set the struct return register.
8990 (d10v_gdbarch_init): Update.
8991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8992 * x86-64-tdep.c (x86_64_init_abi): Update.
8993 * vax-tdep.c (vax_gdbarch_init): Update.
8994 * v850-tdep.c (v850_gdbarch_init): Update.
8995 * sparc-tdep.c (sparc_gdbarch_init): Update.
8996 * sh-tdep.c (sh_gdbarch_init): Update.
8997 * s390-tdep.c (s390_gdbarch_init): Update.
8998 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8999 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9001 * mips-tdep.c (mips_gdbarch_init): Update.
9002 * mcore-tdep.c (mcore_gdbarch_init): Update.
9003 * m68k-tdep.c (m68k_gdbarch_init): Update.
9004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9005 * ia64-tdep.c (ia64_gdbarch_init): Update.
9006 * i386-tdep.c (i386_gdbarch_init): Update.
9007 * hppa-tdep.c (hppa_gdbarch_init): Update.
9008 * h8300-tdep.c (h8300_gdbarch_init): Update.
9009 * frv-tdep.c (frv_gdbarch_init): Update.
9010 * cris-tdep.c (cris_gdbarch_init): Update.
9011 * avr-tdep.c (avr_gdbarch_init): Update.
9012 * arm-tdep.c (arm_gdbarch_init): Update.
9013 * alpha-tdep.c (alpha_gdbarch_init): Update.
9015 2003-03-25 Andrew Cagney <cagney@redhat.com>
9017 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9018 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9019 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9020 * gdbarch.h, gdbarch.c: Regenerate.
9021 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9022 call_dummy_stack_adjust_p.
9023 * vax-tdep.c (vax_gdbarch_init): Ditto.
9024 * v850-tdep.c (v850_gdbarch_init): Ditto.
9025 * sh-tdep.c (sh_gdbarch_init): Ditto.
9026 * s390-tdep.c (s390_gdbarch_init): Ditto.
9027 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9028 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9029 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9030 * mips-tdep.c (mips_gdbarch_init): Ditto.
9031 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9032 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9034 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9035 * i386-tdep.c (i386_gdbarch_init): Ditto.
9036 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9037 * frv-tdep.c (frv_gdbarch_init): Ditto.
9038 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9039 * cris-tdep.c (cris_gdbarch_init): Ditto.
9040 * avr-tdep.c (avr_gdbarch_init): Ditto.
9041 * arm-tdep.c (arm_gdbarch_init): Ditto.
9042 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9043 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9044 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9045 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9046 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9047 call_dummy_stack_adjust_p.
9048 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9049 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9050 * sparc-tdep.c (sparc32_push_arguments): Update.
9051 * valops.c (hand_function_call): Update.
9053 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9056 set_gdbarch_char_signed.
9058 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9061 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9063 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9065 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9066 (_initialize_arm_tdep): Don't set tm_print_insn.
9068 2003-03-24 Adam Fedor <fedor@gnu.org>
9070 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9071 * objc-lang.h: Add multiple inclusion protection.
9072 (start_msglist, add_msglist, end_msglist): Additional declarations.
9074 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9076 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9077 value was renamed to ARM_FLOAT_SOFT_FPA.
9079 2003-03-23 Andrew Cagney <cagney@redhat.com>
9081 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9082 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9083 * gdbarch.h, gdbarch.c: Regenerate.
9084 * valops.c (hand_function_call): Update.
9085 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9086 * frame.c (legacy_saved_regs_this_id): Update.
9087 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9088 * dummy-frame.h: Update.
9089 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9090 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9091 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9092 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9093 * config/m68k/tm-sun3.h: Update.
9094 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9096 * x86-64-tdep.c (x86_64_init_abi): Update.
9097 * vax-tdep.c (vax_gdbarch_init): Update.
9098 * v850-tdep.c (v850_gdbarch_init): Update.
9099 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9100 * sh-tdep.c (sh_gdbarch_init): Update.
9101 * s390-tdep.c (s390_gdbarch_init): Update.
9102 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9103 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9104 (frame_get_saved_regs): Update.
9105 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9106 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9107 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9108 * mips-tdep.c (mips_gdbarch_init): Update.
9109 * mcore-tdep.c (mcore_gdbarch_init): Update.
9110 * m68k-tdep.c (m68k_gdbarch_init): Update.
9111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9112 * ia64-tdep.c (ia64_gdbarch_init): Update.
9113 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9114 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9115 (i386_interix_back_one_frame): Update.
9116 * hppa-tdep.c (hppa_gdbarch_init): Update.
9117 (hppa_init_extra_frame_info): Update.
9118 * h8300-tdep.c (h8300_gdbarch_init): Update.
9119 * frv-tdep.c (frv_gdbarch_init): Update.
9120 * cris-tdep.c (cris_gdbarch_init): Update.
9121 * avr-tdep.c (avr_gdbarch_init): Update.
9122 * arm-tdep.c (arm_gdbarch_init): Update.
9123 * alpha-tdep.c (alpha_gdbarch_init): Update.
9125 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9127 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9128 (arm_get_fp_model): Declare.
9129 * arm-tdep.c (fp_model_strings): New string array.
9130 (arm_fp_model, current_fp_model): New variables.
9131 (arm_get_fp_model): New function.
9132 (arm_set_fp): New function.
9133 (set_fp_model_sfunc): New function.
9134 (show_fp_model): New function.
9135 (_initialize_arm_tdep): Add new command to set/show the FPU.
9136 (arm_extract_return_value): Use arm_get_fp_model.
9137 (arm_store_return_value): Likewise.
9138 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9139 to initialize the floating-point data types.
9140 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9143 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9145 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9146 the current setting of each value.
9147 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9148 new_set and new_show. Use add_setshow_cmd_full and
9149 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9150 commands and add new version as subcommands of "set/show arm".
9152 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9154 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9155 (set_arm_command, show_arm_command): New functions.
9156 (_initialize_arm_tdep): Add them.
9157 (num_disassembly_options): Renamed from num_flavor_options.
9158 (valid_disassembly_styles): Renamed from valid_flavors.
9159 (disassembly_style): Renamed from disassembly_flavor.
9160 (set_disassembly_style_sfunc): Renamed from
9161 set_disassembly_flavor_sfunc.
9162 (set_disassembly_style): Renamed from set_disassembly_flavor.
9163 (arm_othernames): Updated.
9164 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9165 command. Add "set/show arm disassembly" commands. Deprecate
9166 "othernames" command.
9168 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9170 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9171 (arm-tdep.o): Depend on elf_arm_h.
9173 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9175 * Makefile.in (coff_internal_h): Define.
9176 (arm-tdep.o): Update dependencies.
9178 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9180 * arm-tdep.c (prologue_cache): Delete.
9181 (check_prologue_cache, save_prologue_cache): Delete.
9182 (arm_scan_prologue): Don't check or update the prologue_cache.
9183 (arm_gdb_arch_init): Don't initialize it.
9184 (_initialize_arm_tdep): Likewise.
9186 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9188 * MAINTAINERS (tui): Maintainer of tui code.
9190 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9192 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9193 (i386-cygwin-tdep.o): Add dependencies.
9194 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9195 * i386-cygwin-tdep.c: New file.
9196 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9197 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9199 2003-03-20 Andrew Cagney <cagney@redhat.com>
9201 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9202 (handle_inferior_event): Remove code calling
9203 DYNAMIC_TRAMPOLINE_NEXTPC.
9205 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9206 already has a full path.
9208 * main.c (gdb_main): Return 1.
9209 (captured_main): Call error to report an invalid interpreter.
9211 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9212 * alpha-osf1-tdep.c: Include "gdb_string.h".
9214 2003-03-19 J. Brobecker <brobecker@gnat.com>
9216 Continuing work to convert the hppa targets to multiarch partial.
9218 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9219 method, now that hppa_push_dummy_frame has a conformant prototype.
9220 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9221 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9222 for the switch to multiarch partial.
9224 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9226 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9227 when iss is issNull.
9229 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9231 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9232 NUM_REGS bounds check.
9234 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9236 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9237 * mips-tdep.c (gdb_assert.h): Include.
9238 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9239 (mips_register_name): Handle integer registers explicitly. Add
9241 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9242 (mips_lsi33k_reg_names): Don't list integer registers; they're
9243 handled by mips_register_name() now.
9244 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9245 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9246 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9247 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9248 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9250 2003-03-18 Andrew Cagney <cagney@redhat.com>
9252 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9254 * gdbtypes.h (print_scalar_formatted): Update declaration.
9255 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9257 2003-03-18 J. Brobecker <brobecker@gnat.com>
9259 * infrun.c (observer.h): Add #include.
9260 (normal_stop): Add call to observer_notify_normal_stop.
9261 * Makefile.in (infrun.o): Add dependency on observer.h.
9263 2003-03-18 J. Brobecker <brobecker@gnat.com>
9265 Continuing work to convert the hppa targets to multiarch partial.
9266 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9267 parameter. Reformat comment.
9268 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9269 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9270 to match new profile.
9272 2003-03-18 J. Brobecker <brobecker@gnat.com>
9274 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9275 appear to be working in any case.
9277 2003-03-18 J. Brobecker <brobecker@gnat.com>
9279 * observer.c (observer_test_first_observer): New static variable.
9280 (observer_test_second_observer): Likewise.
9281 (observer_test_third_observer): Likewise.
9282 (observer_test_first_notification_function): New static function.
9283 (observer_test_second_notification_function): Likewise.
9284 (observer_test_third_notification_function): Likewise.
9286 2003-03-17 J. Brobecker <brobecker@gnat.com>
9288 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9289 * somsolib.c (gdb_assert.h): Likewise.
9290 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9291 (somsolib.o): Likewise.
9293 2003-03-17 Andrew Cagney <cagney@redhat.com>
9295 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9296 BFD. Simplify setting of di.endian.
9298 2003-03-17 Andrew Cagney <cagney@redhat.com>
9300 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9301 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9303 From Elena Zannoni <ezannoni@redhat.com>
9304 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9305 vector and floating-point parameters.
9306 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9308 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9310 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9312 * MAINTAINERS: Remove my name from several maintainership roles.
9314 2003-03-17 Andrew Cagney <cagney@redhat.com>
9316 Fix frame off-by-one bug.
9317 * frame-unwind.h (frame_this_id_ftype): Replace
9318 frame_unwind_id_ftype.
9319 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9320 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9321 with "prev_register".
9322 * frame-unwind.c (frame_unwind_find_by_pc): Return
9323 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9325 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9326 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9327 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9328 (dummy_frame_unwind): Update.
9329 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9330 sentinel_frame_register_unwind.
9331 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9332 (sentinel_frame_unwinder): Update.
9333 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9334 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9335 * frame.c (create_sentinel_frame): Update. Initialize
9336 "prologue_cache" instead of "unwind_cache".
9337 (frame_register_unwind): Call this frame's prev_register with the
9338 next frame and this frame's prologue cache.
9339 (get_prev_frame): Simplify. Always call prev frame's this_id with
9340 this frame and prev frame's prologue cache. Document that this
9341 call is shifted one to the left when compared to the
9342 frame_register_unwind call.
9343 (legacy_saved_regs_prev_register): Replace
9344 frame_saved_regs_register_unwind.
9345 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9346 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9347 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9348 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9349 (d10v_frame_unwind): Update.
9350 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9351 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9352 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9353 "saved_regs" with "this_saved_regs".
9355 2003-03-16 Andrew Cagney <cagney@redhat.com>
9357 * frame.c (frame_pop): Don't call target_store_registers. Fix
9358 problem reported by Mark Kettenis.
9360 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9362 * i386-tdep.c (i386_register_type): Renamed from
9363 i386_register_virtual_type. Adjust function signature.
9364 (i386_gdbarch_init): Set register_type instead of
9365 deprecated_max_register_raw_size,
9366 deprecated_max_register_virtual_size and register_virtual_type.
9368 2003-03-14 Andrew Cagney <cagney@redhat.com>
9370 * frame.c (get_prev_frame): When a legacy frame, always call
9371 legacy_get_prev_frame. Simplify unwind code using assumption that
9372 the unwinder is new.
9373 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9374 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9375 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9377 2003-03-14 Andrew Cagney <cagney@redhat.com>
9379 * frame.c (get_saved_register): Delete function.
9380 * frame.h (get_saved_register): Delete declaration.
9381 * xstormy16-tdep.c: Update comment.
9382 * regcache.h: Update comments.
9383 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9384 get_saved_register and extract_address, use
9385 frame_read_unsigned_register.
9386 (sparc_frame_saved_pc): Ditto.
9387 (sparc_get_saved_register): Instead of get_saved_register, use
9389 (sparc_pop_frame): Ditto.
9390 * findvar.c: Update comments.
9391 (value_of_register): Call frame_register instead of
9393 (value_from_register): Ditto.
9394 * config/sparc/tm-sparc.h: Update comment.
9395 * breakpoint.c: Update comment.
9397 2003-03-14 Andrew Cagney <cagney@redhat.com>
9399 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9401 * gdbarch.h, gdbarch.c: Re-generate.
9402 * frame.h: Update comments.
9403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9404 * x86-64-tdep.c (x86_64_init_abi): Update.
9405 * sparc-tdep.c (sparc_gdbarch_init): Update.
9406 * sh-tdep.c (sh_gdbarch_init): Update.
9407 * mips-tdep.c (mips_gdbarch_init): Update.
9408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9409 * cris-tdep.c (cris_gdbarch_init): Update.
9410 * ia64-tdep.c (ia64_gdbarch_init): Update.
9411 * frame.c (frame_register): Update.
9412 (get_saved_register): Update.
9413 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9415 2003-03-13 Andrew Cagney <cagney@redhat.com>
9417 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9418 * gdbarch.h, gdbarch.c: Regenerate.
9419 * valops.c (hand_function_call): Update comment.
9420 * stack.c (return_command): Update comment.
9421 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9422 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9423 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9424 * x86-64-tdep.c (x86_64_init_abi): Update.
9425 * vax-tdep.c (vax_gdbarch_init): Update.
9426 * v850-tdep.c (v850_gdbarch_init): Update.
9427 * sparc-tdep.c (sparc_gdbarch_init): Update.
9428 * sh-tdep.c (sh_gdbarch_init): Update.
9429 * s390-tdep.c (s390_gdbarch_init): Update.
9430 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9431 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9432 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9433 * mips-tdep.c (mips_gdbarch_init): Update.
9434 * mcore-tdep.c (mcore_gdbarch_init): Update.
9435 * m68k-tdep.c (m68k_gdbarch_init): Update.
9436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9437 * ia64-tdep.c (ia64_gdbarch_init): Update.
9438 * i386-tdep.c (i386_gdbarch_init): Update.
9439 * hppa-tdep.c (hppa_gdbarch_init): Update.
9440 * h8300-tdep.c (h8300_gdbarch_init): Update.
9441 * frv-tdep.c (frv_gdbarch_init): Update.
9442 * cris-tdep.c (cris_gdbarch_init): Update.
9443 * avr-tdep.c (avr_gdbarch_init): Update.
9444 * arm-tdep.c (arm_gdbarch_init): Update.
9445 * alpha-tdep.c (alpha_gdbarch_init): Update.
9447 2003-03-13 Andrew Cagney <cagney@redhat.com>
9449 * frame.c (legacy_frame_p): New function.
9450 (get_prev_frame): Use legacy_frame_p.
9451 * frame.h (legacy_frame_p): Declare.
9453 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9455 * MAINTAINERS (write after approval): Alphabetically
9458 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9460 * MAINTAINERS (write after approval): Add myself.
9462 2003-03-12 Andrew Cagney <cagney@redhat.com>
9464 * frame.c (get_prev_frame): Rename the frame parameter to
9466 (get_next_frame, legacy_get_prev_frame): Ditto.
9468 2003-03-12 Andrew Cagney <cagney@redhat.com>
9470 * frame.c (get_current_frame): Check target_has_registers before
9471 checking target_has_stack.
9472 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9473 instead of deprecated_selected_frame.
9474 * findvar.c (value_of_register): Pass "frame", not
9475 deprecated_selected_frame, to value_of_builtin_reg.
9477 2003-03-12 Andrew Cagney <cagney@redhat.com>
9479 * regcache.c (regcache_cooked_write_signed): New function.
9480 (regcache_cooked_write_unsigned): New function.
9481 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9482 (regcache_cooked_read_signed): Fix regnum in range assertion.
9483 * regcache.h (regcache_cooked_write_signed): Declare.
9484 (regcache_cooked_write_unsigned): Declare.
9486 2003-03-12 Andrew Cagney <cagney@redhat.com>
9488 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9489 * gdbarch.h, gdbarch.c: Re-generate.
9490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9491 * x86-64-tdep.h: Update.
9492 * x86-64-tdep.c (x86_64_init_abi): Update.
9493 * v850-tdep.c (v850_gdbarch_init): Update.
9494 * sparc-tdep.c (sparc_gdbarch_init): Update.
9495 * sh-tdep.c (sh_gdbarch_init): Update.
9496 * s390-tdep.c (s390_gdbarch_init): Update.
9497 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9498 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9499 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9500 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9501 * mips-tdep.c (mips_gdbarch_init): Update.
9502 * mcore-tdep.c (mcore_gdbarch_init): Update.
9503 * m68k-tdep.c (m68k_gdbarch_init): Update.
9504 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9505 * ia64-tdep.c (ia64_gdbarch_init): Update.
9506 * i386-tdep.c (i386_gdbarch_init): Update.
9507 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9508 * hppa-tdep.c (hppa_gdbarch_init): Update.
9509 * h8300-tdep.c (h8300_gdbarch_init): Update.
9510 * frv-tdep.c (frv_gdbarch_init): Update.
9511 * cris-tdep.c (cris_gdbarch_init): Update.
9512 * avr-tdep.c (avr_gdbarch_init): Update.
9513 * arm-tdep.c (arm_gdbarch_init): Update.
9514 * alpha-tdep.c (alpha_gdbarch_init): Update.
9515 * sh-tdep.c (sh_init_extra_frame_info): Update.
9516 (sh64_init_extra_frame_info): Update.
9517 * ns32knbsd-nat.c (frame_num_args): Update.
9518 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9519 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9520 (xstormy16_frame_chain_valid): Update.
9521 * vax-tdep.c (vax_saved_pc_after_call): Update.
9522 * v850-tdep.c (v850_frame_chain): Update.
9523 (v850_pop_frame): Update.
9524 (v850_init_extra_frame_info): Update.
9525 * sparc-tdep.c (setup_arbitrary_frame): Update.
9526 * ns32k-tdep.c (umax_frame_num_args): Update.
9527 * s390-tdep.c (s390_pop_frame_regular): Update.
9528 * mn10300-tdep.c (mn10300_frame_chain): Update.
9529 (mn10300_pop_frame_regular): Update.
9530 (mn10300_init_extra_frame_info): Update.
9531 * mips-tdep.c (mips_init_frame_pc_first): Update.
9532 (mips_frame_chain): Update.
9533 (mips_pop_frame): Update.
9534 * mcore-tdep.c (mcore_frame_chain): Update.
9535 (mcore_pop_frame): Update.
9536 (mcore_init_extra_frame_info): Update.
9537 * arch-utils.c (init_frame_pc_default): Update.
9538 * m68k-tdep.c (isi_frame_num_args): Update.
9539 (delta68_frame_num_args): Update.
9540 (news_frame_num_args): Update.
9541 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9542 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9543 (alpha_frame_chain): Update.
9544 (alpha_pop_frame): Update.
9545 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9546 (hppa_init_extra_frame_info): Update.
9547 (hppa_frame_chain): Update.
9548 (hppa_frame_chain_valid): Update.
9549 * cris-tdep.c (cris_init_extra_frame_info): Update.
9550 * avr-tdep.c (avr_init_extra_frame_info): Update.
9551 * arm-tdep.c (arm_frame_chain_valid): Update.
9552 (arm_init_extra_frame_info): Update.
9553 (arm_pop_frame): Update.
9554 * frame.c (frame_pc_unwind): Update.
9555 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9556 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9557 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9558 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9559 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9560 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9562 2003-03-12 Andrew Cagney <cagney@redhat.com>
9564 Eliminate the need for POP_FRAME.
9565 * frame.c (do_frame_unwind_register): New function.
9566 (frame_pop): When no POP_FRAME, pop the frame using register
9567 unwind and a scratch regcache.
9568 (frame_saved_regs_pop): Delete function.
9569 (trad_frame_unwinder): Update.
9570 * d10v-tdep.c (d10v_frame_pop): Delete function.
9571 (d10v_frame_unwind): Update.
9572 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9573 (sentinel_frame_unwinder): Update.
9574 * dummy-frame.c (dummy_frame_pop): Delete function.
9575 (dummy_frame_unwind): Update.
9576 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9577 (struct frame_unwind): Update.
9579 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9581 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9582 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9583 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9584 Do range checks on register number obtained from debugging info.
9585 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9586 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9587 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9589 (do_fp_register_row): Fix typo which caused double type to be
9590 used when attempting to unpack a float.
9592 2003-03-11 J. Brobecker <brobecker@gnat.com>
9594 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9596 2003-03-11 Andrew Cagney <cagney@redhat.com>
9598 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9599 frame. Problem found by Corinna Vinschen.
9601 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9603 * doublest.c (floatformat_from_length): Accept also
9604 the real size of 'long double' type.
9606 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9608 From Klee Dienes <kdienes@apple.com>:
9609 * breakpoint.c (bpstat_copy): Copy the command lines as well
9610 as the old value, to match what is freed in bpstat_clear.
9612 2003-03-10 David Carlton <carlton@math.stanford.edu>
9614 * minsyms.c (add_minsym_to_hash_table): Replace
9615 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9616 (compare_minimal_symbols, compact_minimal_symbols)
9617 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9618 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9619 of DEPRECATED_SYMBOL_MATCHES_NAME.
9620 (lookup_minimal_symbol_solib_trampoline): Ditto.
9622 2003-03-10 Andrew Cagney <cagney@redhat.com>
9624 * regcache.h (regcache_cooked_read_ftype): Define.
9625 (regcache_save, regcache_restore): Add a cooked_read parameter.
9626 * regcache.c (regcache_save, regcache_restore): Update.
9627 (do_cooked_read): New function.
9628 (regcache_cpy): Pass do_cooked_read to regcache_save and
9631 2003-03-10 Andrew Cagney <cagney@redhat.com>
9633 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9634 * gdbarch.h, gdbarch.c: Re-generate.
9635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9636 * x86-64-tdep.h: Update.
9637 * x86-64-tdep.c (x86_64_init_abi): Update.
9638 * v850-tdep.c (v850_gdbarch_init): Update.
9639 * sparc-tdep.c (sparc_gdbarch_init): Update.
9640 * sh-tdep.c (sh_gdbarch_init): Update.
9641 * s390-tdep.c (s390_gdbarch_init): Update.
9642 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9643 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9644 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9645 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9646 * mips-tdep.c (mips_gdbarch_init): Update.
9647 * mcore-tdep.c (mcore_gdbarch_init): Update.
9648 * m68k-tdep.c (m68k_gdbarch_init): Update.
9649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9650 * ia64-tdep.c (ia64_gdbarch_init): Update.
9651 * i386-tdep.c (i386_gdbarch_init): Update.
9652 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9653 * hppa-tdep.c (hppa_gdbarch_init): Update.
9654 * h8300-tdep.c (h8300_gdbarch_init): Update.
9655 * frv-tdep.c (frv_gdbarch_init): Update.
9656 * cris-tdep.c (cris_gdbarch_init): Update.
9657 * avr-tdep.c (avr_gdbarch_init): Update.
9658 * arm-tdep.c (arm_gdbarch_init): Update.
9659 * alpha-tdep.c (alpha_gdbarch_init): Update.
9660 * sh-tdep.c (sh_init_extra_frame_info): Update.
9661 (sh64_init_extra_frame_info): Update.
9662 * ns32knbsd-nat.c (frame_num_args): Update.
9663 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9664 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9665 (xstormy16_frame_chain_valid): Update.
9666 * vax-tdep.c (vax_saved_pc_after_call): Update.
9667 * v850-tdep.c (v850_frame_chain): Update.
9668 (v850_pop_frame): Update.
9669 (v850_init_extra_frame_info): Update.
9670 * sparc-tdep.c (setup_arbitrary_frame): Update.
9671 * ns32k-tdep.c (umax_frame_num_args): Update.
9672 * s390-tdep.c (s390_pop_frame_regular): Update.
9673 * mn10300-tdep.c (mn10300_frame_chain): Update.
9674 (mn10300_pop_frame_regular): Update.
9675 (mn10300_init_extra_frame_info): Update.
9676 * mips-tdep.c (mips_init_frame_pc_first): Update.
9677 (mips_frame_chain): Update.
9678 (mips_pop_frame): Update.
9679 * mcore-tdep.c (mcore_frame_chain): Update.
9680 (mcore_pop_frame): Update.
9681 (mcore_init_extra_frame_info): Update.
9682 * arch-utils.c (init_frame_pc_default): Update.
9683 * m68k-tdep.c (isi_frame_num_args): Update.
9684 (delta68_frame_num_args): Update.
9685 (news_frame_num_args): Update.
9686 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9687 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9688 (alpha_frame_chain): Update.
9689 (alpha_pop_frame): Update.
9690 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9691 (hppa_init_extra_frame_info): Update.
9692 (hppa_frame_chain): Update.
9693 (hppa_frame_chain_valid): Update.
9694 * cris-tdep.c (cris_init_extra_frame_info): Update.
9695 * avr-tdep.c (avr_init_extra_frame_info): Update.
9696 * arm-tdep.c (arm_frame_chain_valid): Update.
9697 (arm_init_extra_frame_info): Update.
9698 (arm_pop_frame): Update.
9699 * frame.c (frame_pc_unwind): Update.
9700 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9701 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9702 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9703 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9704 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9705 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9707 2003-03-10 Andrew Cagney <cagney@redhat.com>
9709 * gdbarch.sh (gdbarch_unwind_pc): New method.
9710 * gdbarch.h, gdbarch.c: Regenerate.
9711 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9712 but use read_pc and FRAME_SAVED_PC as fall backs.
9713 (frame_saved_regs_pc_unwind): Delete function.
9714 (trad_frame_unwinder): Update.
9715 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9716 (struct frame_unwind): Update.
9717 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9718 (dummy_frame_unwind): Update.
9719 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9720 (sentinel_frame_unwinder): Update.
9721 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9722 (d10v_frame_unwind): Update.
9723 (d10v_unwind_pc): New function.
9724 (d10v_gdbarch_init): Set unwind_pc.
9726 2003-03-10 Andrew Cagney <cagney@redhat.com>
9728 * gdbarch.h: Re-generate.
9730 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9732 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9735 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9737 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9739 2003-03-08 Andrew Cagney <cagney@redhat.com>
9741 * cli-out.c: Update copyright.
9742 (cli_out_data): Define typedef. Use instead of ui_out_data.
9744 2003-03-08 Andrew Cagney <cagney@redhat.com>
9746 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9749 2003-03-07 Andrew Cagney <cagney@redhat.com>
9751 * gdbarch.sh: Don't generate two macro definitions when an
9752 undefined macro taking no arguments.
9753 * gdbarch.h: Regenerate.
9755 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9757 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9758 (x86_64_unwind_dummy_id): New functions.
9759 (x86_64_init_abi): Register these two new functions.
9761 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9763 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9764 (x86_64_skip_prologue): Move prologue detection to
9766 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9768 2003-03-05 Andrew Cagney <cagney@redhat.com>
9770 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9771 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9772 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9773 to use unwind_dummy_id when a dummy frame.
9774 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9776 * gdbarch.h, gdbarch.c: Regneerate.
9778 2003-03-05 Andrew Cagney <cagney@redhat.com>
9780 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9781 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9782 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9785 2003-03-05 Andrew Cagney <cagney@redhat.com>
9787 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9788 (struct d10v_unwind_cache): Delete field "frameless". Replace
9789 "next_addr" with "sp_offset". Add "r11_offset".
9790 (d10v_frame_unwind_cache): Update.
9791 (prologue_find_regs): Update. When "mv r11, sp", save the
9792 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9793 RN was saved in r11_offset.
9795 2003-03-05 Andrew Cagney <cagney@redhat.com>
9797 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9798 cached PC value in the next frame.
9800 2003-03-05 Andrew Cagney <cagney@redhat.com>
9802 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9803 "id_unwind_cache" with "id".
9804 (frame_id_unwind): Delete declaration.
9805 * frame.c (frame_id_unwind): Delete function.
9806 (get_prev_frame): Call the frame id unwind method directly. Store
9807 the returned next frame's ID value in NEXT_FRAME. Note that there
9808 is a problem with the wrong unwind ID being called with the wrong
9811 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9813 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9815 2003-03-05 James Ingham <jingham@apple.com>
9816 Daniel Jacobowitz <drow@mvista.com>
9818 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9819 (auto_cp_abi): New variable.
9820 (current_cp_abi, num_cp_abis): Make static.
9821 (CP_ABI_MAX): Define.
9822 (cp_abis): Turn into an array.
9823 (value_virtual_fn_field): Fix formatting.
9824 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9826 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9827 (list_cp_abis, _initialize_cp_abi): New functions.
9828 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9829 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9830 switch_to_cp_abi. Update prototype for register_cp_abi.
9831 * Makefile.in (cp-abi.o): Update dependencies.
9832 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9833 instead of switch_to_cp_abi.
9834 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9836 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9838 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9840 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9842 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9843 * dwarf2loc.c: Include "regcache.h".
9844 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9846 * Makefile.in (dwarf2loc.o): Update dependencies.
9848 2003-03-04 Theodore A. Roth <troth@openavr.org>
9850 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9851 number of io registers reported by remote target is not a multiple of
9854 2003-03-04 David Carlton <carlton@math.stanford.edu>
9856 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9857 (lookup_symbol_aux_psymtabs): Update call to
9858 lookup_partial_symbol.
9859 (lookup_transparent_type, find_main_psymtab)
9860 (make_symbol_overload_list): Ditto.
9862 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9864 * MAINTAINERS (Write after approval): Update my email address.
9866 2003-03-03 Andrew Cagney <cagney@redhat.com>
9868 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9869 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9870 predicate. Replace MAX_REGISTER_RAW_SIZE.
9871 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9872 MAX_REGISTER_VIRTUAL_SIZE.
9873 * regcache.c (legacy_max_register_raw_size): New function.
9874 (legacy_max_register_virtual_size): New function.
9875 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9876 (MAX_REGISTER_RAW_SIZE): Define.
9877 (legacy_max_register_raw_size): Declare.
9878 (legacy_max_register_virtual_size): Declare.
9879 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9880 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9881 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9882 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9883 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9884 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9885 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9886 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9887 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9889 * vax-tdep.c (vax_gdbarch_init): Update.
9890 * v850-tdep.c (v850_gdbarch_init): Update.
9891 * sparc-tdep.c (sparc_gdbarch_init): Update.
9892 * sh-tdep.c (sh_gdbarch_init): Update.
9893 * s390-tdep.c (s390_gdbarch_init): Update.
9894 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9895 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9896 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9897 * mips-tdep.c (mips_gdbarch_init): Update.
9898 * mcore-tdep.c (mcore_gdbarch_init): Update.
9899 * m68k-tdep.c (m68k_gdbarch_init): Update.
9900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9901 * ia64-tdep.c (ia64_gdbarch_init): Update.
9902 * i386-tdep.c (i386_gdbarch_init): Update.
9903 * hppa-tdep.c (hppa_gdbarch_init): Update.
9904 * h8300-tdep.c (h8300_gdbarch_init): Update.
9905 * frv-tdep.c (frv_gdbarch_init): Update.
9906 * cris-tdep.c (cris_gdbarch_init): Update.
9907 * avr-tdep.c (avr_gdbarch_init): Update.
9908 * arm-tdep.c (arm_gdbarch_init): Update.
9909 * alpha-tdep.c (alpha_gdbarch_init): Update.
9910 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9911 max_register_raw_size or max_register_virtual_size.
9913 2003-03-03 David Carlton <carlton@math.stanford.edu>
9915 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9916 SYMBOL_MATCHES_NAME, add comment.
9917 (SYMBOL_MATCHES_NATURAL_NAME): New.
9918 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9919 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9920 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9921 * symtab.c (lookup_partial_symbol): Use
9922 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9924 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9925 SYMBOL_MATCHES_NAME.
9928 2003-03-03 David Carlton <carlton@math.stanford.edu>
9930 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9931 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9932 by regexp matching against SYMBOL_NATURAL_NAME.
9934 2003-03-03 David Carlton <carlton@math.stanford.edu>
9936 * linespec.c (find_method): Extract code into collect_methods.
9937 (collect_methods): New.
9939 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9941 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9944 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9945 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9947 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9949 * arch-utils.c (generic_register_byte): Fix to use the loop index
9950 and not regnum when summing the size of all registers up to regnum.
9952 2003-03-01 Andrew Cagney <cagney@redhat.com>
9954 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9955 FRAME_INIT_SAVED_REGS.
9956 * gdbarch.h, gdbarch.c: Regenerate.
9957 * stack.c (frame_info): Update.
9958 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9959 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9960 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9961 * ns32k-tdep.c (ns32k_pop_frame): Update.
9962 * mips-tdep.c (mips_pop_frame): Update.
9963 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9964 * ia64-tdep.c (ia64_frame_chain): Update.
9965 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9966 (ia64_frameless_function_invocation): Update.
9967 (ia64_init_extra_frame_info): Update.
9968 (ia64_pop_frame_regular): Update.
9969 * frame.h (struct frame_info): Update comment.
9970 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9971 * frame.c (frame_saved_regs_register_unwind): Update.
9972 (frame_saved_regs_register_unwind): Update.
9973 (deprecated_generic_get_saved_register): Update.
9974 * cris-tdep.c: Update comment.
9975 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9977 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9978 * x86-64-tdep.c (x86_64_init_abi): Update.
9979 * vax-tdep.c (vax_gdbarch_init): Update.
9980 * v850-tdep.c (v850_gdbarch_init): Update.
9981 * sparc-tdep.c (sparc_gdbarch_init): Update.
9982 * sh-tdep.c (sh_gdbarch_init): Update.
9983 * s390-tdep.c (s390_gdbarch_init): Update.
9984 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9985 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9986 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9987 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9988 * mips-tdep.c (mips_gdbarch_init): Update.
9989 * mcore-tdep.c (mcore_gdbarch_init): Update.
9990 * m68k-tdep.c (m68k_gdbarch_init): Update.
9991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9992 * ia64-tdep.c (ia64_gdbarch_init): Update.
9993 * i386-tdep.c (i386_gdbarch_init): Update.
9994 * frv-tdep.c (frv_gdbarch_init): Update.
9995 * avr-tdep.c (avr_gdbarch_init): Update.
9996 * arm-tdep.c (arm_gdbarch_init): Update.
9997 * alpha-tdep.c (alpha_gdbarch_init): Update.
9999 2003-03-01 Andrew Cagney <cagney@redhat.com>
10001 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10002 option enum and switch. When no windows, set the interpreter to
10005 2003-03-01 Andrew Cagney <cagney@redhat.com>
10007 * main.c (captured_main): Replace magic option characters with an
10010 2003-03-01 Andrew Cagney <cagney@redhat.com>
10012 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10013 INIT_EXTRA_FRAME_INFO.
10014 * gdbarch.h, gdbarch.c: Regenerate.
10015 * arm-tdep.c: Update comments.
10016 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10017 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10018 * frame.h, avr-tdep.c: Ditto.
10019 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10020 (create_new_frame, legacy_get_prev_frame): Ditto.
10021 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10022 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10023 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10024 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10025 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10026 * v850-tdep.c (v850_gdbarch_init): Ditto.
10027 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10028 * sh-tdep.c (sh_gdbarch_init): Ditto.
10029 * s390-tdep.c (s390_gdbarch_init): Ditto.
10030 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10031 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10032 * mips-tdep.c (mips_gdbarch_init): Ditto.
10033 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10034 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10035 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10036 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10037 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10038 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10039 * frv-tdep.c (frv_gdbarch_init): Ditto.
10040 * cris-tdep.c (cris_gdbarch_init): Ditto.
10041 * avr-tdep.c (avr_gdbarch_init): Ditto.
10042 * arm-tdep.c (arm_gdbarch_init): Ditto.
10043 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10044 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10046 2003-03-01 Andrew Cagney <cagney@redhat.com>
10048 * gdbarch.sh (register_type): New function with predicate.
10049 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10050 * gdbarch.h, gdbarch.c: Re-generate.
10051 * arch-utils.c (generic_register_byte): Use generic_register_size.
10052 (generic_register_size): When available, use
10053 gdbarch_register_type.
10054 * regcache.c (init_regcache_descr): When available, initialize the
10055 register type array using gdbarch_register_type. If the
10056 architecture supplies gdbarch_register_type, do not use the legacy
10058 * d10v-tdep.c (d10v_register_type): Replace
10059 d10v_register_virtual_type.
10060 (d10v_gdbarch_init): Set register_type instead of
10061 register_virtual_type.
10063 2003-03-01 Andrew Cagney <cagney@redhat.com>
10065 * Makefile.in (ax-gdb.o): Update dependencies.
10066 * ax-gdb.c: Include "regcache.h".
10067 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10068 * findvar.c (value_of_register): Ditto.
10069 * infcmd.c (default_print_registers_info): Ditto.
10071 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10073 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10074 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10076 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10078 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10081 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10083 * Makefile.in (dwarf2loc.o): Update dependencies.
10084 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10085 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10086 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10087 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10088 (locexpr_tracepoint_var_ref): New function.
10089 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10091 2003-02-28 Andrew Cagney <cagney@redhat.com>
10093 * regcache.c (register_size): New function.
10094 * regcache.h (register_size): Declare
10095 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10096 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10098 2003-02-28 David Carlton <carlton@math.stanford.edu>
10100 * linespec.c (decode_compound): Extract code into find_method.
10101 (find_method): New.
10103 2003-02-28 J. Brobecker <brobecker@gnat.com>
10105 * Makefile.in: Add rules to build and link in observer.o.
10107 2003-02-27 J. Brobecker <brobecker@gnat.com>
10109 * observer.c: Minor comments edits.
10111 2003-02-27 J. Brobecker <brobecker@gnat.com>
10113 * observer.h, observer.c: New file.
10115 2003-02-27 Andrew Cagney <cagney@redhat.com>
10117 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10119 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10121 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10122 (M6812_OP_STS_EXT): Likewise.
10123 (m6811_prologue): Use the above to recognize prologue.
10124 (m6812_prologue): Likewise.
10126 2003-02-27 David Carlton <carlton@math.stanford.edu>
10128 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10130 (compare_psymbols): Ditto.
10131 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10133 2003-02-27 Michael Snyder <msnyder@redhat.com>
10135 * f-lang.c (build_fortran_types): New function.
10136 (_initialize_f_language): Gdbarch-register built-in fortran types.
10137 * doublest.c (extract_floating): Fix warning text.
10139 2003-02-27 Andrew Cagney <cagney@redhat.com>
10141 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10142 predicate. Replaces PUSH_DUMMY_FRAME.
10143 * gdbarch.h, gdbarch.c: Regnerate.
10144 * valops.c (hand_function_call): Update. Call
10145 generic_push_dummy_frame directly.
10146 * vax-tdep.c (vax_gdbarch_init): Update.
10147 * sparc-tdep.c (sparc_gdbarch_init): Update.
10148 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10149 * m68k-tdep.c (m68k_gdbarch_init): Update.
10150 * hppa-tdep.c (hppa_gdbarch_init): Update.
10151 * alpha-tdep.c (alpha_gdbarch_init): Update.
10152 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10153 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10154 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10156 push_dummy_frame to generic_push_dummy_frame.
10157 * v850-tdep.c (v850_gdbarch_init): Ditto.
10158 * sh-tdep.c (sh_gdbarch_init): Ditto.
10159 * s390-tdep.c (s390_gdbarch_init): Ditto.
10160 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10162 * mips-tdep.c (mips_gdbarch_init): Ditto.
10163 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10166 * i386-tdep.c (i386_gdbarch_init): Ditto.
10167 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10168 * frv-tdep.c (frv_gdbarch_init): Ditto.
10169 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10170 * cris-tdep.c (cris_gdbarch_init): Ditto.
10171 * avr-tdep.c (avr_gdbarch_init): Ditto.
10172 * arm-tdep.c (arm_gdbarch_init): Ditto.
10174 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10176 * mips-tdep.c (show_mips_abi): New function.
10177 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10178 command ``show mips abi''.
10180 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10182 From Elena Zannoni <ezannoni@redhat.com>
10183 * dbxread.c (process_one_symbol): Only record line 0 if one or
10184 more sline entries have been seen for the function.
10186 2003-02-26 Michael Chastain <mec@shout.net>
10188 * configure: Regenerate with autoconf 000227.
10190 2003-02-26 Michael Chastain <mec@shout.net>
10192 Close PR build/660.
10193 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10194 for old libc5/glibc.
10195 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10197 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10199 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10200 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10202 2003-02-26 Michael Chastain <mec@shout.net>
10204 * configure.in: New variable HAVE_UINTPTR_T.
10205 * configure, config.in: Regenerated.
10207 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10210 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10212 2003-02-25 Andrew Cagney <cagney@redhat.com>
10214 * frame.c (get_prev_frame): Add comment on check for
10215 inside_entry_func. Only check for inside_entry_file when not a
10216 dummy and not a sentinel. Check that the new frame is not inner
10219 2003-02-25 Andrew Cagney <cagney@redhat.com>
10221 * frame.c (frame_debug): New variable.
10222 (_initialize_frame): Add "set/show debug frame" command.
10223 (get_prev_frame): When frame_debug, print reason why unwind
10226 2003-02-25 Michael Chastain <mec@shout.net>
10228 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10229 to avoid uintptr_t definition problems.
10231 2003-02-25 David Carlton <carlton@math.stanford.edu>
10233 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10234 (SYMBOL_LINKAGE_NAME): Ditto.
10235 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10236 SYMBOL_LINKAGE_NAME.
10237 (struct general_symbol_info): Expand comment.
10238 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10239 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10240 (SYMBOL_MATCHES_REGEXP): Ditto.
10241 * symtab.c (symbol_natural_name): New function.
10242 * objfiles.h: Replace all uses of SYMBOL_NAME by
10243 DEPRECATED_SYMBOL_NAME.
10244 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10245 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10246 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10247 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10248 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10249 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10250 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10251 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10252 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10253 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10254 * ada-exp.y: Ditto.
10255 * ada-exp.y: Update copyright.
10256 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10257 * cp-valprint.c: Ditto.
10259 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10261 * infptrace.c (detach): Do not flag error if ptrace detach fails
10262 and errno is set to ESRCH.
10264 2003-02-24 Andrew Cagney <cagney@redhat.com>
10266 * infptrace.c (udot_info): Change type of udot_off to long. Use
10267 paddr when printing udot_off's value.
10269 2003-02-24 David Carlton <carlton@math.stanford.edu>
10271 * symtab.c (make_symbol_overload_list): Only read in partial
10272 symtabs containing a matching partial symbol.
10274 2003-02-24 David Carlton <carlton@math.stanford.edu>
10276 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10277 do the comparison, not strcmp.
10278 * symfile.c (compare_psymbols): Ditto.
10279 * defs.h: Declare strcmp_iw_ordered.
10280 * utils.c (strcmp_iw_ordered): New function.
10282 2003-02-24 Jim Blandy <jimb@redhat.com>
10284 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10285 support, shared libs): Remove my name from here, to better reflect
10288 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10290 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10291 (target_ops): Add to_have_continuable_watchpoint.
10292 * target.c (update_current_target): Add INHERIT line for
10293 to_have_continuable_watchpoint.
10294 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10295 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10296 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10297 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10299 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10301 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10304 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10306 * solib.c (solib_open): Call target defined search function after
10307 failing with solib-search-path.
10308 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10309 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10311 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10313 * MAINTAINERS: Add myself to Write After section.
10315 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10317 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10319 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10321 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10322 (m68hc11_add_reggroups): New function.
10323 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10324 (m68hc11_gdbarch_init): Install the reggroups.
10325 (_initialize_m68hc11_tdep): Initialize them.
10327 2003-02-21 James E Wilson <wilson@tuliptree.org>
10329 * MAINTAINERS: Update my email address.
10331 2003-02-21 David Carlton <carlton@math.stanford.edu>
10333 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10335 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10337 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10338 * symtab.h: Add opaque declarations of struct axs_value and
10340 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10341 (struct location_funcs): New type.
10342 (struct symbol): Add "loc" to aux_value.
10343 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10344 * dwarf2read.c: Include "dwarf2expr.h".
10345 (dwarf2_symbol_mark_computed): New function.
10346 (read_func_scope): Use it.
10347 (var_decode_location): New function.
10348 (new_symbol): Use it.
10349 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10351 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10352 (dwarf2expr_h, dwarf2loc_h): New variables.
10353 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10354 (dwarf2expr.o, dwarf2loc.o): New rules.
10355 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10356 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10358 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10359 * m2-exp.y (yylex): Likewise.
10360 * printcmd.c (address_info, print_frame_args): Likewise.
10361 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10362 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10363 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10364 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10365 * symtab.c (lookup_block_symbol): Likewise.
10367 2003-02-20 Adam Fedor <fedor@gnu.org>
10369 * symtab.h: Remove objc_specific struct
10370 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10371 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10372 Have language_objc use cplus_specific struct.
10374 2003-02-20 Tom Tromey <tromey@redhat.com>
10376 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10377 TYPE_NAME, when printing a String value. PR java/1075.
10379 2003-02-20 Adam Fedor <fedor@gnu.org>
10381 * objc-lang.h (find_methods): Remove declaration.
10382 * objc-lang.c (find_methods): Make static.
10384 2003-02-20 Christopher Faylor <cgf@redhat.com>
10386 * win32-nat.c (get_image_name): Check return value from
10388 (child_xfer_memory): Ditto.
10390 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10392 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10393 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10394 '${exec_prefix}' (in addition to the expansion thereof) as
10396 * configure: Rebuilt.
10398 2003-02-20 David Carlton <carlton@math.stanford.edu>
10400 * symtab.c (search_symbols): Revert the search_symbols part of my
10401 2002-12-23 patch. Add comment.
10403 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10405 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10406 * dbxread.c (elfstab_build_psymtabs): Don't call
10407 install_minimal_symbols.
10408 (stabsect_build_psymtabs): Likewise.
10409 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10411 * somread.c (som_symfile_read): Call install_minimal_symbols
10412 and do_cleanups earlier.
10413 * nlmread.c (nlm_symfile_read): Likewise.
10414 * mdebugread.c (elfmdebug_build_psymtabs): Call
10415 install_minimal_symbols and make appropriate cleanups.
10417 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10419 * solib.c (reload_shared_libraries): New function.
10420 (_initialize_solib): Add callbacks for ``set solib-search-path''
10421 and ``set solib-absolute-prefix''.
10423 2003-02-20 David Carlton <carlton@math.stanford.edu>
10425 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10427 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10428 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10429 * ada-typeprint.c (ada_typedef_print): Ditto.
10430 * ax-gdb.c (gen_var_ref): Ditto.
10431 * breakpoint.c (print_one_breakpoint): Ditto.
10432 * buildsym.c (finish_block): Ditto.
10433 * c-valprint.c (c_val_print): Ditto.
10434 * expprint.c (print_subexp): Ditto.
10435 * findvar.c (locate_var_value): Ditto.
10436 * infcmd.c (jump_command): Ditto.
10437 * linespec.c (decode_line_2, decode_compound): Ditto.
10438 * maint.c (maintenance_translate_address): Ditto.
10439 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10440 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10442 * p-valprint.c (pascal_val_print): Ditto.
10443 * stabsread.c (define_symbol): Ditto.
10444 * stack.c (print_frame, frame_info, print_block_frame_locals)
10445 (print_frame_arg_vars, return_command): Ditto.
10446 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10447 * symmisc.c (print_symbol): Ditto.
10448 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10449 (compare_search_syms, print_symbol_info, print_msymbol_info)
10450 (rbreak_command): Ditto.
10451 * tracepoint.c (tracepoints_info): Ditto.
10452 * typeprint.c (typedef_print): Ditto.
10453 * valops.c (value_of_variable, hand_function_call): Ditto.
10454 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10455 * ada-typeprint.c: Update Copyright.
10456 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10457 * tracepoint.c, cli/cli-cmds.c: Ditto.
10459 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10461 * frame.c (generic_unwind_get_saved_register): Make non-static.
10462 * frame.h (generic_unwind_get_saved_register): Declare.
10463 * mips-tdep.c (read_next_frame_reg): Fetch register from
10464 current regcache when frame is NULL.
10465 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10467 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10468 instead of frame_register_unwind().
10470 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10472 * remote-sim.c (gdbsim_insert_breakpoint)
10473 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10476 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10478 * remote.c (_initialize_remote): Add commands "set/show remote
10479 hardware-watchpoint-limit" and "set/show remote
10480 hardware-breakpoint-limit".
10481 (remote_hw_watchpoint_limit): Initialize to -1.
10482 (remote_hw_breakpoint_limit): Ditto.
10483 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10485 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10487 * coff-pe-read.c: New file - support reading of minimal symbols from a
10488 portable executable using the export table.
10489 * coff-pe-read.h: New file.
10490 * coffread.c: Include coff-pe-read.h.
10491 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10492 debugging symbols found.
10493 * Makefile.in (SFILES): Add coff-pe-read.o.
10494 (coff_pe_read_h): Define.
10495 (COMMON_OBS): Add coff-pe-read.o.
10496 (coffread.o): Add coff_pe_read_h dependency.
10497 (coff-pe-read.o): New target.
10499 2003-02-19 David Carlton <carlton@math.stanford.edu>
10501 * Makefile.in (SFILES): Add block.c.
10503 (COMMON_OBS): Add block.o.
10505 (x86-64-tdep.o): Add $(block_h).
10506 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10507 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10508 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10509 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10510 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10511 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10512 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10513 * value.h: Add opaque declaration for struct block.
10514 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10515 * ada-lang.h: Ditto.
10516 * x86-64-tdep.c: #include "block.h"
10517 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10518 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10519 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10520 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10521 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10522 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10523 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10524 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10525 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10526 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10527 * symtab.c (block_function): Ditto.
10528 (contained_in): Ditto.
10529 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10530 block.h. Add opaque declaration for struct block.
10531 * symtab.h: Move block_function and contained_in declarations to
10532 block.h. Add opaque declarations for struct block, struct
10534 (struct block): Move to block.h.
10535 (struct blockvector): Ditto.
10536 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10537 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10538 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10539 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10540 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10542 * block.c: New file.
10543 * block.h: New file.
10545 2003-02-19 Theodore A. Roth <troth@openavr.org>
10547 * avr-tdep.c (avr_extract_return_value): Remove function.
10548 (avr_store_return_value): Remove function.
10549 (avr_extract_struct_value_address): Remove function.
10550 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10552 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10554 * rs6000-tdep.c: Include "gdb_assert.h".
10555 (registers_e500): Add "acc" and "spefscr".
10556 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10557 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10558 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10560 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10562 2003-02-18 Keith Seitz <keiths@redhat.com>
10564 * Makefile.in: Add gdbtk-interps.c.
10566 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10568 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10569 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10571 2003-02-18 Andrew Cagney <cagney@redhat.com>
10573 * symtab.h (struct objfile): Add opaque declaration.
10575 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10577 From Jim Ingham <jingham@apple.com>:
10578 * dbxread.c (process_one_symbol): Use last_function_start rather
10579 than function_start_offset to find the real beginning of the
10580 current function. The latter is just the text section offset on
10581 some systems, the former is always the real function start.
10583 2003-02-17 Andrew Cagney <cagney@redhat.com>
10585 * configure.in: Revert ${target} != ${host}.
10587 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10589 * configure.in (Makefile): Use the test ${target} != ${host},
10590 instead of the absence of the "nm.h" file, to determine of the
10591 configuration non-native.
10592 * configure: Regenerate.
10594 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10596 From Brian Ford <ford@vss.fsi.com>
10598 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10599 conditionalize tui_active test.
10600 (lookup_cmd_1): Ditto.
10602 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10604 * configure.in: Add check for _etext.
10605 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10607 * config.in, configure: regenerated.
10609 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10611 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10613 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10615 * main.c (tui_version): Delete variable.
10616 (captured_main): When --tui, set interpreter_p to "tui" instead of
10617 enabling tui_version.
10618 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10620 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10621 * cli/cli-cmds.c (disassemble_command): Ditto.
10622 * defs.h (tui_version): Delete declaration.
10623 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10624 (tui-interp.o): Add rules.
10625 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10627 2003-02-14 Christopher Faylor <cgf@redhat.com>
10629 * win32-nat.c (register_loaded_dll): Correctly set address range for
10632 2003-02-12 Jason Molenda (jmolenda@apple.com)
10634 * symmisc.c (print_objfile_statistics): Include information about
10635 the number of psymtabs and symtabs in each object file.
10637 2003-02-13 Keith R Seitz <keiths@redhat.com>
10639 * main.h (struct captured_main_args): Add interpreter_p.
10640 * main.c (captured_main): Initialize interpreter_p from context.
10641 * gdb.c (main): Set interpreter_p argument.
10642 * Makefile.in (gdb.o): Add dependency for interps.h.
10644 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10646 * event-top.c (cli_command_loop): Delete declaration.
10647 (_initialize_event_loop): Delete function setting event_loop_hook.
10648 * event-top.h (cli_command_loop): Declare. Update copyright.
10649 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10650 * interps.c (current_interp_command_loop): When event_loop_p, call
10653 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10655 * interps.h (interp_command_loop_ftype): Change return type to
10658 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10660 * x86-64-tdep.c (x86_64_extract_return_value)
10661 (x86_64_store_return_value): Use regcache instead of regbuf.
10662 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10663 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10665 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10667 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10668 * aclocal.m4: Regenerate.
10669 * configure: Regenerate.
10671 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10672 TCL_LD_SEARCH_FLAGS.
10674 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10676 * dwarf2cfi.c: Reindented.
10678 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10680 * interps.c (clear_interpreter_hooks): Convert function definition
10683 2003-02-07 David Carlton <carlton@math.stanford.edu>
10685 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10687 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10689 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10690 (struct type): ...to here.
10691 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10693 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10694 (replace_type): Set length on all type variants for a given type.
10696 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10698 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10700 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10702 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10704 * Makefile.in (symm-nat.o): Update dependencies.
10705 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10706 (lynx-nat.o, ia64-linux-nat.): Ditto.
10707 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10708 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10709 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10711 * Makefile.in (inflow_h): Define.
10712 (procfs.o, inflow.o, procfs.o): Update dependencies.
10713 * inftarg.c (child_stop): Delete extern declaration of
10714 inferior_process_group. Include "inflow.h".
10715 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10716 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10717 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10718 (our_process_group, inferior_process_group): Extern declarations.
10720 * procfs.c: Include "gdb_assert.h".
10722 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10723 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10724 * jv-typeprint.c (java_type_print_base): Ditto.
10725 * typeprint.c (typedef_print): Eliminate STREQ.
10726 * cli/cli-script.c (define_command, define_command): Ditto.
10727 * main.c (captured_main): Ditto.
10728 * values.c (lookup_internalvar): Ditto.
10729 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10730 within `if' conditional.
10731 * linespec.c (decode_line_2): Ditto.
10732 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10733 (bfd_openw_with_cleanup): Ditto.
10735 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10737 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10738 legacy_extract_return_value and store_return_value to
10739 legacy_return_value.
10741 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10743 * win32-nat.c (get_relocated_section_addrs): New function. Find
10744 section load addresses for symbol handling in relocated DLLs.
10745 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10747 2003-02-05 Fred Fish <fnf@intrinsity.com>
10749 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10751 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10753 (angel_RDI_info): Ditto.
10754 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10756 (threads_continue_all_with_signals): Ditto.
10758 2003-02-05 Jim Ingham <jingham@apple.com>
10759 Keith Seitz <keiths@redhat.com>
10760 Elena Zannoni <ezannoni@redhat.com>
10761 Andrew Cagney <ac131313@redhat.com>
10763 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10764 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10765 (SUBDIR_MI_OBS): Add "mi-interp.o".
10766 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10767 (SFILES): Add "interps.c".
10768 (COMMON_OBS): Add "interps.o".
10769 (interps_h, mi_main_h): Define.
10770 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10771 (mi-main.o, main.o, event-top.o): Update dependencies.
10772 * cli/cli-interp.c: New file.
10773 * interps.h, interps.c: New files.
10774 * top.c: (gdb_init): Don't install the default interpreter, handed
10776 * main.c: Include "interps.h".
10777 (interpreter_p): Note that it should malloc'ed.
10778 (captured_command_loop): Call current_interp_command_loop.
10779 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10780 xfree and xstrdup when updating interpreter_p. Install the
10781 default interpreter. Add hack to stop mi1's copyright notice
10783 * event-top.h (gdb_setup_readline): Declare.
10784 (gdb_disable_readline): Declare.
10785 * event-top.c: Include "interps.h".
10786 (display_gdb_prompt): Call current_interp_display_prompt_p.
10787 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10788 gdb_stdlog, and gdb_stdtarg.
10789 (_initialize_event_loop): Don't call gdb_setup_readline.
10790 * cli-out.c (cli_out_set_stream): New function.
10791 * cli-out.h (cli_out_set_stream): Declare.
10793 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10795 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10796 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10797 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10798 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10799 config/i386/i386v42mp.mt: Removed.
10801 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10803 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10806 2003-02-05 Michael Chastain <mec@shout.net>
10808 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10809 2.12.1 and earlier versions.
10811 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10813 Remove orphaned hosts, targets and files.
10814 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10815 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10816 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10817 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10818 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10819 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10820 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10821 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10822 * config/sparc/tm-sp64sim.h: Delete.
10823 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10825 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10826 mips*-dec-mach3* targets.
10828 2003-02-04 Michael Chastain <mec@shout.net>
10830 * NEWS: Fix typo: sepcifying -> specifying.
10832 2003-02-04 Michael Chastain <mec@shout.net>
10834 * dwarfread.c: Add documentation on the state of dwarf-1,
10835 looking towards obsoletion.
10837 2003-02-03 Michael Chastain <mec@shout.net>
10839 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10840 gdb/testsuite/gdb.c++/pr-1023.exp.
10842 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10844 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10845 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10847 * utils.c (init_page_info): Delete reference to MPW in comments.
10848 * main.c (captured_main): Delete #ifdef MPW.
10850 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10852 * NEWS: Note that the m32r-*-elf* is obsolete.
10853 * monitor.c (monitor_expect): Obsolete reference to m32r.
10854 * configure.tgt: Mark m32r-*-elf* as obsolete.
10855 * MAINTAINERS: Mark m32k as obsolete.
10856 * m32r-rom.c: Obsolete file.
10857 * config/m32r/m32r.mt: Obsolete file.
10858 * config/m32r/tm-m32r.h: Obsolete file.
10859 * m32r-stub.c: Obsolete file.
10860 * m32r-tdep.c: Obsolete file.
10862 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10864 * NEWS: Mention that the z8k-zilog-none is obsolete.
10865 * MAINTAINERS: Mark z8k as obsolete.
10866 * configure.tgt: Obsolete the z8k-*-coff* target.
10867 * config/z8k/z8k.mt: Obsolete file.
10868 * config/z8k/tm-z8k.h: Obsolete file.
10869 * z8k-tdep.c: Obsolete file.
10871 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10873 * NEWS: Mention that the mn10200-elf is obsolete.
10874 * configure.tgt: Obsolete mn10200-*-* target.
10875 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10876 mention that the mn10200 is obsolete.
10877 * breakpoint.h: Ditto.
10878 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10879 * config/mn10200/mn10200.mt: Obsolete file.
10880 * config/mn10200/tm-mn10200.h: Obsolete file.
10881 * mn10200-tdep.c: Obsolete file.
10883 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10885 * MAINTAINERS: Mark h8500 as obsolete.
10886 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10887 * findvar.c (value_from_register): Ditto.
10888 * h8500-tdep.c: Mark file as obsolete.
10889 * config/h8500/h8500.mt: Ditto.
10890 * config/h8500/tm-h8500.h: Ditto.
10891 * NEWS: Mention that h8500 is obsolete.
10893 2003-02-04 David Carlton <carlton@math.stanford.edu>
10895 * objfiles.c (allocate_objfile): Always set name. Add comment at
10897 * jv-lang.c (get_dynamics_objfile): Add comment.
10899 2003-02-04 David Carlton <carlton@math.stanford.edu>
10901 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10902 * printcmd.c (build_address_symbolic): Replace uses of
10903 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10904 SYMBOL_NAME, and asm_demangle.
10907 2003-02-04 David Carlton <carlton@math.stanford.edu>
10909 * linespec.c (decode_compound): Extract code into
10911 (lookup_prefix_sym): New function.
10913 2003-02-04 David Carlton <carlton@math.stanford.edu>
10915 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10916 FLOAT_COERCION_BADNESS.
10917 * gdbtypes.c (rank_one_type): Replace all uses of
10918 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10920 2003-02-04 Jim Blandy <jimb@redhat.com>
10922 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10923 section, let dwarf_macinfo_section point to it, not
10926 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10928 Pointed out by Anton Blanchard <anton@samba.org>.
10929 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10930 (ppc_linux_at_sigtramp_return_path): Use it.
10932 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10934 * defs.h (streq): Add prototype.
10935 * utils.c (streq): New function.
10937 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10938 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10939 * mdebugread.c (new_symbol): Likewise.
10940 * stabsread.c (define_symbol): Likewise.
10941 * coffread.c (process_coff_symbol): Likewise.
10942 * dwarfread.c (new_symbol): Likewise.
10944 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10945 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10947 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10948 SYMBOL_INIT_DEMANGLED_NAME.
10949 * objfiles.c: Include "hashtab.h".
10950 (allocate_objfile): Call htab_set_functions_ex for the
10951 demangled_names_hash.
10952 (free_objfile): Call htab_delete for the demangled_names_hash.
10953 * objfiles.h (struct htab): Add declaration.
10954 (struct objfile): Add demangled_names_hash.
10955 * symfile.c: Include "hashtab.h".
10956 (reread_symbols): Call htab_delete for the demangled_names_hash.
10957 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10958 SYMBOL_NAME in the bcache.
10959 * symtab.c: Include "hashtab.h". Update comments.
10960 (create_demangled_names_hash, symbol_set_names): New functions.
10961 (symbol_find_demangled_name): New function, broken out from
10962 symbol_init_demangled_names.
10963 (symbol_init_demangled_names): Use it.
10964 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10965 (SYMBOL_SET_NAMES): New macro.
10966 (symbol_set_names): Add prototype.
10968 2003-02-03 Jim Blandy <jimb@redhat.com>
10970 Use a single, consistent representation for an empty minimal
10971 symbol table in an objfile.
10972 * objfiles.c (terminate_minimal_symbol_table): New function.
10973 (allocate_objfile): Call it.
10974 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10975 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10977 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10978 objfile has minimal symbols, compare minimal_symbol_count to zero,
10979 instead of comparing msymbols with NULL.
10980 * objfiles.c (have_minimal_symbols): Same.
10981 * solib-sunos.c (solib_add_common_symbols): Call
10982 terminate_minimal_symbol_table.
10983 * symfile.c (reread_symbols): Same.
10985 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10987 * s390-tdep.c (s390_address_class_type_flags)
10988 (s390_address_class_type_flags_to_name)
10989 (s390_address_class_name_to_type_flags): New functions.
10990 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10991 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10993 2003-02-03 Michael Snyder <msnyder@redhat.com>
10995 * arm-tdep.c: Fix spell-o in comment.
10997 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10999 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11000 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11001 error messages to contain BFD filename.
11003 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11005 Fix PR gdb/742 gdb/743 gdb/877
11006 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11007 (do_mixed_source_and_assembly): Use
11008 make_cleanup_ui_out_tuple_begin_end and
11009 make_cleanup_ui_out_tuple_begin_end.
11010 (do_mixed_source_and_assembly): Ditto.
11011 * thread.c (do_captured_list_thread_ids): Ditto.
11012 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11013 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11014 ui_out_tuple_end): Delete prototypes.
11015 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11016 ui_out_list_end, ui_out_tuple_end): Delete.
11018 From Kevin Buettner <kevinb@redhat.com>:
11019 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11020 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11021 (do_cleanup_table_end): New functions.
11022 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11023 Use cleanups to invoke_ui_out_tuple_end().
11024 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11025 * cli/cli-setshow.c (cmd_show_list): Use
11026 make_cleanup_ui_out_tuple_begin_end.
11028 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11030 * frame.c (frame_unwind_register): New function.
11031 (frame_unwind_unsigned_register): Use.
11032 (frame_unwind_signed_register): Use.
11033 (frame_read_register): New function.
11034 * frame.h (frame_unwind_register): Declare.
11035 (frame_read_register): Declare.
11037 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11038 and frame_unwind_register instead of read_memory, write_register
11039 and deprecated_write_register_bytes.
11041 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11043 * frame.h: Note that namelen can be negative.
11044 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11047 * NEWS: Mention that the d10v's `regs' command is deprecated.
11048 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11049 (d10v_print_registers_info): New function.
11050 (show_regs): Call d10v_print_registers_info.
11051 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11053 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11055 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11056 lost in the previous patch.
11058 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11060 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11061 * stack.c (print_frame_info_base): Output complete FRAME tuple
11062 for synthesized frames.
11064 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11066 * mips-nat.c (zerobuf): Delete.
11067 (fetch_inferior_registers): Alloc local zerobuf.
11068 (fetch_core_registers): Alloc local zerobuf.
11069 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11070 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11071 * thread-db.c (thread_db_store_registers): Ditto.
11072 * sh-tdep.c (sh_do_register): Ditto.
11073 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11074 * remote-sim.c (gdbsim_store_register): Ditto.
11075 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11076 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11077 * monitor.c (monitor_supply_register): Ditto.
11078 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11079 * mips-nat.c (fetch_inferior_registers): Ditto.
11080 * m68klinux-nat.c (fetch_register): Ditto.
11081 * lynx-nat.c (fetch_inferior_registers): Ditto.
11082 (fetch_inferior_registers): Ditto.
11083 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11084 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11085 (hpux_thread_store_registers): Ditto.
11086 * hppah-nat.c (fetch_register): Ditto.
11087 * hppab-nat.c (fetch_register): Ditto.
11088 * hppa-tdep.c (pa_register_look_aside): Ditto.
11089 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11090 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11092 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11094 * gdbarch.sh: Explictly specify all method levels. When a
11095 variable with an empty level, provide a non-multi-arch default.
11096 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11097 * gdbarch.h: Re-generate.
11098 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11099 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11101 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11103 * defs.h (host_pointer_to_address): Delete declaration.
11104 (address_to_host_pointer): Delete declaration.
11105 * utils.c (host_pointer_to_address): Delete function.
11106 (address_to_host_pointer): Delete function.
11107 * procfs.c (procfs_address_to_host_pointer): New function.
11108 * procfs.c (proc_set_watchpoint): Use.
11109 (procfs_can_use_hw_breakpoint): Update comments.
11110 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11111 (som_solib_add): Use.
11112 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11113 * hppa-tdep.c (unwind_command): Use.
11115 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11117 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11120 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11121 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11122 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11123 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11124 (define_symbol): Update.
11125 * symfile.c (generic_load): Remove references to nindy.
11126 * symtab.c: Remove references to nindy.
11128 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11130 * infcmd.c (print_float_info): Delete code conditional on
11132 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11133 * config/m68k/nm-apollo68b.h: Ditto.
11134 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11135 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11136 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11138 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11140 * config/i386/tm-i386os9k.h: Removed.
11142 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11143 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11144 they're identical to i[3456]86-*-sysv* now.
11145 * config/i386/i386v32.mh: Removed.
11146 * config/i386/xm-i386v32.h: Removed.
11147 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11149 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11151 * config/i386/i386dgux.mh: Removed.
11152 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11154 * configure.in: Fix typo.
11155 * configure: Regenerated.
11157 2003-01-31 David Carlton <carlton@math.stanford.edu>
11159 * dwarf2read.c (dwarf2_locate_sections): Set
11160 dwarf_ranges_section.
11162 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11164 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11165 * utils.c: Update comments documenting legitimate uses of PTR.
11167 * utils.c: Re-indent.
11169 * config/djgpp/fnchange.lst: Delete nindy files.
11170 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11171 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11172 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11173 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11174 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11175 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11176 * Makefile.in (init.c): Remove nindy references.
11177 (saber_gdb): Delete rule.
11178 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11179 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11181 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11182 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11183 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11184 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11185 nindy-share/stop.h.
11186 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11187 * saber.suppress: Delete file.
11189 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11191 * dbxread.c (stabs_data): New static variable.
11192 (fill_symbuf): Support an in-memory buffer for stabs data.
11193 (stabs_seek): New function.
11194 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11195 (read_ofile_symtab): Use stabs_seek.
11196 (elfstab_build_psymtabs): Take an asection* instead of
11197 an offset and size. Relocate the stabs data if necessary.
11198 Save the section* for dbx_psymtab_to_symtab.
11199 * dwarf2read.c: Add section variables for each debug section.
11200 (dwarf2_locate_sections): Fill them in.
11201 (dwarf2_read_section): Take an asection* argument.
11202 Relocate the section contents if necessary.
11203 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11204 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11205 it to dwarf2_read_section.
11206 (dwarf2_build_frame_info): Update callers.
11207 * elfread.c (elf_symfile_read): Update call to
11208 elfstab_build_psymtabs.
11209 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11210 (DBX_STAB_SECTION): New macro.
11211 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11212 * symfile.c (symfile_dummy_outputs): New function.
11213 (symfile_relocate_debug_section): New function.
11214 * symfile.h (symfile_relocate_debug_section): Add prototype.
11216 2003-01-31 Richard Henderson <rth@redhat.com>
11218 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11219 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11220 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11221 * alpha-tdep.c (alpha_register_name): Add "unique".
11222 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11223 (ALPHA_UNIQUE_REGNUM): New.
11224 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11226 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11228 * README: Remove reference to Ericsson 1800 monitor.
11229 * Makefile.in (remote-es.o): Delete rule.
11230 (ALLDEPFILES): Delete remote-es.c.
11231 * remote-es.c: Delete file.
11232 * config/m68k/es1800.mt: Delete file.
11233 * config/djgpp/fnchange.lst: Update.
11234 * configure.tgt: Delete m68*-ericsson-* target.
11236 2003-01-31 Adam Fedor <fedor@gnu.org>
11238 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11239 Remove duplicate/shadowing variable of same name.
11241 2003-01-30 Jim Blandy <jimb@redhat.com>
11243 * symfile.c (find_separate_debug_file): Assert that the objfile's
11244 directory name we compute ends with a slash, and then assume that
11245 that's so everywhere we use it.
11247 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11249 * valops.c (value_assign): Flush frame cache after stores to memory
11252 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11254 * Makefile.in (mon960-rom.o): Delete rule.
11255 * mon960-rom.c: Delete file.
11257 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11259 * d10v-tdep.c: Include "frame-unwind.h".
11260 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11262 (next_addr, uses_frame): Delete.
11263 (struct d10v_unwind_cache): Define.
11264 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11265 Use info instead of next_addr and uses_frame globals.
11266 (d10v_frame_init_saved_regs): Delete function.
11267 (d10v_init_extra_frame_info): Delete function.
11268 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11269 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11270 init_frame_pc or frame_saved_pc.
11271 (d10v_pop_frame): Delete function.
11272 (do_d10v_pop_frame): Delete function.
11273 (d10v_frame_chain): Delete function.
11274 (d10v_frame_chain_valid): Delete function.
11275 (d10v_frame_pc_unwind): New function.
11276 (d10v_frame_id_unwind): New function.
11277 (saved_regs_unwinder): New function.
11278 (d10v_frame_register_unwind): New function.
11279 (d10v_frame_pop): New function.
11280 (d10v_frame_unwind): New variable.
11281 (d10v_frame_p): New function.
11282 (d10v_frame_saved_pc): Delete function.
11283 * Makefile.in (d10v-tdep.o): Update dependencies.
11285 2003-01-30 J. Brobecker <brobecker@gnat.com>
11287 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11288 causing some regressions due to a change in the default value
11291 2003-01-29 Richard Henderson <rth@redhat.com>
11292 Elena Zannoni <ezannoni@redhat.com>
11293 Daniel Jacobowitz <drow@mvista.com>
11296 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11298 (RANGES_SECTION): New.
11299 (dwarf_ranges_buffer): New variable.
11300 (struct comp_unit_head): Add member "die".
11301 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11302 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11303 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11304 (dwarf2_locate_sections): Likewise.
11305 (dwarf2_build_psymtabs): Read .debug_ranges.
11306 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11307 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11308 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11309 Look for DW_AT_ranges and return the bounding box.
11311 2003-01-29 Brian Ford <ford@vss.fsi.com>
11313 * win32-nat.c (cygwin_pid): Removed as unused.
11314 (child_attach): Try fall back to Cygwin pid.
11316 2003-01-29 Jim Blandy <jimb@redhat.com>
11318 * objfiles.h (struct objfile): Doc fix.
11320 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11322 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11323 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11324 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11325 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11326 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11327 (FRAME_SAVED_PC): Change to a function with predicate.
11328 * gdbarch.h, gdbarch.c: Re-generate.
11330 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11332 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11334 * complaints.c (complain): Delete function.
11335 * complaints.h (struct deprecated_complaint): Delete definition.
11336 (complain): Delete declaration.
11338 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11340 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11343 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11345 * sentinel-frame.h, sentinel-frame.c: New files.
11346 * Makefile.in (frame.o): Update dependencies.
11347 (SFILES): Add sentinel-frame.c.
11348 (sentinel_frame_h): Define.
11349 (COMMON_OBS): Add sentinel-frame.o.
11350 (sentinel-frame.o): Specify dependencies.
11351 * frame.c: Include "sentinel-frame.h".
11352 (frame_register_unwind): Rewrite assuming that there is always a a
11354 (frame_register, generic_unwind_get_saved_register): Ditto.
11355 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11356 (create_sentinel_frame, unwind_to_current_frame): New functions.
11357 (get_current_frame): Rewrite using create_sentinel_frame and
11358 unwind_to_current_frame. When possible, always create a frame.
11359 (create_new_frame): Set next to the sentinel frame.
11360 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11361 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11362 ID cache when necessary.
11363 (frame_saved_regs_id_unwind): Use frame_relative_level.
11364 (deprecated_generic_get_saved_register): Use frame_relative_level,
11365 get_frame_saved_regs, get_frame_pc, get_frame_base and
11367 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11370 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11372 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11374 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11376 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11377 (maintenance_set_profile_cmd): Use error () instead of warning ().
11379 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11381 * configure.in: Check that -pg works if using --enable-profiling.
11382 Check for monstartup and _mcleanup regardless of --enable-profiling.
11383 * maint.c: Check for monstartup and _mcleanup before using them.
11384 * config.in: Regenerated.
11385 * configure: Regenerated.
11387 2003-01-24 Nick Clifton <nickc@redhat.com>
11389 * Add sh2e support:
11391 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11393 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11394 (sh2e_show_regs): New.
11395 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11396 * config/sh/tm-sh.h: Added sh2e to comments.
11398 2003-01-23 Jim Blandy <jimb@redhat.com>
11400 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11401 symbols found)" message here; we haven't checked for a separate
11402 debug info file yet, so we don't know yet.
11403 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11404 we've looked everywhere. Also, there's no need to print a special
11405 message when we're loading the separate debug info file: the one
11406 symbol_file_add prints is fine.
11408 2003-01-23 Alexander Larsson <alexl@redhat.com>
11409 Jim Blandy <jimb@redhat.com>
11411 Add support for executables whose debug info has been separated
11412 out into a separate file, leaving only a link behind.
11413 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11414 and separate_debug_objfile_backlink.
11415 (put_objfile_before): New declaration.
11416 * symfile.c: #include "filenames.h".
11417 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11418 debug info in a separate file, read that, too. Save the addrs
11419 argument, so we can use it again to read the separated debug info;
11420 syms_from_objfile modifies the table we pass it.
11421 (reread_symbols): After re-reading an objfile, call
11422 reread_separate_symbols to refresh its separate debug info
11423 objfile, if it has one.
11424 (reread_separate_symbols, find_separate_debug_file,
11425 get_debug_link_info, separate_debug_file_exists): New functions.
11426 (debug_file_directory): New global var.
11427 (_initialize_symfile): Initialize debug_file_directory, and
11428 provide the new `set debug-file-directory' command to let the user
11430 * objfiles.c (free_objfile): If this objfile has its debug info in
11431 a separate objfile, free that one too. If this is itself a
11432 separate debug info objfile, clear our parent's backlink.
11433 (put_objfile_before): New function.
11434 * utils.c (gnu_debuglink_crc32): New function.
11435 * defs.h (gnu_debuglink_crc32): New declaration.
11436 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11437 * configure.in: Handle --with-separate-debug-dir config option.
11438 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11439 * acconfig.h (DEBUGDIR): New macro.
11440 * configure, aclocal.m4, config.in: Regenerated.
11442 2003-01-22 Jim Blandy <jimb@redhat.com>
11444 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11445 like the old symbol_file_add, but taking new arguments: you can
11446 now pass in either a `struct section_addr_info' list to say where
11447 each section is loaded, or a `struct section_offsets' table. Pass
11448 these new arguments through to syms_from_objfile as appropriate.
11449 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11450 with the appropriate quiescent values for the new arguments.
11452 * symfile.c: #include "gdb_assert.h".
11453 (syms_from_objfile): Add the ability to pass in a section offset
11454 table directly, as an alternative to the section_addr_info table.
11455 Document arguments better.
11456 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11457 * symfile.h (syms_from_objfile): Update declaration.
11458 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11460 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11462 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11464 Original patch by Tom Tromey <tromey@cygnus.com> and
11465 Jason Molenda <jmolenda@apple.com>.
11466 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11467 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11468 * NEWS: Mention profiling.
11469 * configure.in (--enable-gdbtk): Fix typo.
11470 (--enable-profiling): New. Set PROFILE_CFLAGS.
11471 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11473 (profiling_state): New variable.
11474 (mcleanup_wrapper): New function.
11475 (_initialize_maint): Remove NOTYET, fix call to
11476 add_setshow_boolean_cmd for "maint set profile".
11477 * configure: Regenerated.
11479 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11481 * Makefile.in (install-gdbtk): Install PNG images too.
11483 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11485 * exec.c (text_start): Delete global variable.
11486 (exec_file_attach): Make text_start local to the function.
11487 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11488 * valops.c (hand_function_call): Delete code that handles
11489 BEFORE_TEXT_END and AFTER_TEXT_END.
11490 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11491 of CALL_DUMMY_LOCATION.
11492 * gdbarch.c: Regenerate.
11493 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11494 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11495 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11496 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11497 (text_end): Delete extern declaration.
11499 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11501 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11502 * blockframe.c (backtrace_below_main): Move to "frame.c".
11503 (frame_chain_valid): Delete check for backtrace_below_main.
11504 (_initialize_blockframe): Delete initialization, move ``set
11505 backtrace-below-main'' command to "frame.c".
11506 (do_flush_frames_sfunc): Delete function.
11507 * frame.c: Include "command.h" and "gdbcmd.h".
11508 (frame_type_from_pc): New function.
11509 (create_new_frame): Use frame_type_from_pc.
11510 (legacy_get_prev_frame): New function.
11511 (get_prev_frame): Rewrite. When an old style frame, call
11512 legacy_get_prev_frame. Otherwize, unwind the PC first.
11513 (_initialize_frame): Add ``set backtrace-below-main'' command.
11514 * Makefile.in (frame.o): Update dependencies.
11516 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11518 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11519 DEPRECATED_REGISTERS_INFO.
11521 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11523 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11524 Maintainers'. Update `Various Maintainers'.
11526 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11528 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11529 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11530 Suppress actual parameters when `-'.
11531 * gdbarch.h, gdbarch.c: Regenerate.
11533 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11535 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11536 code handling dummy frames.
11538 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11540 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11541 (struct frame_unwind): Add field pop.
11542 * frame.h (frame_pop): Declare.
11543 * frame.c (frame_saved_regs_pop): New function.
11544 (trad_frame_unwinder): Add frame_saved_regs_pop.
11545 (frame_pop): New function.
11546 * dummy-frame.c (dummy_frame_pop): New function.
11547 (discard_innermost_dummy): New function.
11548 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11549 (dummy_frame_unwind): Add dummy_frame_pop.
11550 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11551 * valops.c (hand_function_call): Ditto.
11552 * stack.c (return_command): Ditto.
11554 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11556 * cris-tdep.c: Fix function declaration indentation.
11557 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11558 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11559 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11560 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11561 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11562 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11564 2003-01-18 Michael Chastain <mec@shout.net>
11566 * README (Unpacking and Installation -- quick overview):
11567 Warn against ".../gdb-5.3/gdb/configure".
11569 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11571 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11572 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11573 (struct frame_unwind): Declare opaque.
11574 (dummy_frame_p): Declare function.
11575 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11576 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11577 * dummy-frame.c: Include "frame-unwind.h".
11578 (dummy_frame_p): New function.
11579 (dummy_frame_unwind): New variable.
11580 * frame.c: Include "frame-unwind.h".
11581 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11582 to use the new unwind field.
11583 (set_unwind_by_pc): Delete function.
11584 (create_new_frame, get_prev_frame): Set unwind field using
11585 frame_unwind_find_by_pc.
11586 (trad_frame_unwind, trad_frame_unwinder): New variables.
11587 * frame.h (trad_frame_unwind): Declare variable.
11588 (frame_id_unwind_ftype): Delete declaration.
11589 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11590 (struct frame_unwind): Declare opaque.
11591 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11592 register_unwind with a single unwind pointer.
11593 * frame-unwind.h, frame-unwind.c: New files.
11594 * Makefile.in (SFILES): Add frame-unwind.c.
11595 (frame_unwind_h): Define.
11596 (COMMON_OBS): Add frame-unwind.o.
11597 (frame-unwind.o): Specify dependencies.
11598 (frame.o, dummy-frame.o): Update dependencies.
11600 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11602 * ada-valprint.c: Eliminate PTR.
11603 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11604 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11605 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11606 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11607 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11608 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11609 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11611 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11613 * main.c (captured_main): Don't use PTR.
11614 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11615 * gdbtypes.c (lookup_primitive_typename): Ditto.
11616 (lookup_struct_elt_type): Ditto.
11617 * f-valprint.c (info_common_command): Ditto.
11618 (list_all_visible_commons): Ditto.
11619 * jv-typeprint.c (java_type_print_base): Ditto.
11621 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11622 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11623 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11624 i386-interix-nat.c and i386-interix-tdep.c. Rename
11625 m68klinux-nat.c and m68klinux-tdep.c. Rename
11626 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11627 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11628 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11629 * main.c (captured_main): Use xfree, not free.
11631 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11633 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11634 ID back using a parameter.
11635 * frame.c (frame_id_unwind): Update call.
11636 (frame_saved_regs_id_unwind): Update.
11637 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11638 * dummy-frame.h (struct frame_id): Add opaque declaration.
11639 (dummy_frame_id_unwind): Update declaration.
11641 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11643 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11645 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11647 * MAINTAINERS (Stephen P. Smith): Updated email address.
11649 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11652 * breakpoint.c (until_break_command): Add new argument. Use it to
11653 decide whether to stop only at the current frame or not.
11654 * breakpoint.h (until_break_command): Update prototype.
11655 * infcmd.c (until_command): Add new argument to until_break_command
11657 (advance_command): New function.
11658 (_initialize_infcmd): Update help string for 'until' command.
11659 Add new 'advance' command.
11661 2003-01-14 David Carlton <carlton@math.stanford.edu>
11663 * linespec.c (decode_line_1): Normalize comments.
11664 (set_flags): Ditto.
11665 (locate_first_half): Ditto.
11666 (decode_compound): Ditto.
11667 (symtab_from_filename): Ditto.
11668 (decode_all_digits): Ditto.
11669 (decode_dollar): Ditto.
11670 (find_methods): Ditto.
11671 (find_toplevel_char): Ditto.
11673 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11675 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11676 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11677 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11678 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11679 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11680 * language.c, language.h, m32r-tdep.c: Update copyright.
11681 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11682 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11683 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11684 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11685 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11686 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11688 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11690 * stabsread.h (process_later, resolve_cfront_continuation):
11692 Update copyright years.
11693 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11694 Update copyright year.
11695 * dbxread.c(struct cont_elem): Obsolete.
11696 (process_later, process_now): Obsolete functions.
11697 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11698 Update copyright year.
11699 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11700 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11701 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11702 (parse_partial_symbols): Obsolete cfront support.
11704 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11706 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11707 read_cfront_baseclasses, read_cfront_member_functions,
11708 resolve_cfront_continuation,read_cfront_static_fields,
11709 copy_cfront_struct_fields): Obsolete functions.
11710 (define_symbol, read_one_struct_field): Obsolete cfront support.
11711 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11712 Update Copyright year.
11714 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11716 * stack.c (print_frame_info, print_stack_frame_base_stub,
11717 print_stack_frame_base, show_and_print_stack_frame_stub,
11718 show_and_print_stack_frame, print_only_stack_frame_stub,
11719 print_only_stack_frame): Delete functions.
11720 (print_stack_frame_stub): Call print_frame_info instead of
11721 print_frame_info_base.
11722 (print_frame_info_base): Rename to print_frame_info.
11723 (backtrace_command_1): Call print_frame_info, instead of
11724 print_frame_info_base.
11725 (current_frame_command): Call print_stack_frame, instead of
11726 print_only_stack_frame.
11727 (frame_command): Call print_stack_frame, instead of
11728 show_and_print_stack_frame.
11729 (up_command): Ditto.
11730 (down_command): Ditto.
11731 * frame.h (print_only_stack_frame): Delete prototype.
11732 * infrun.c (normal_stop): Call print_stack_frame, instead of
11733 show_and_print_stack_frame.
11734 * thread.c (info_threads_command): Call print_stack_frame, instead
11735 of print_only_stack_frame.
11737 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11739 * README (Graphical interface to GDB): Update URL. Point at
11742 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11745 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11747 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11750 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11752 * thread-db.c (attach_thread): Prototype.
11753 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11754 thread information (ti), and valid flags (th_valid, ti_valid).
11755 (attach_thread): Move target_pid_to_str call to after the thread
11756 is added to GDB's list. Initialize the cache.
11757 (thread_get_info_callback, thread_db_map_id2thr)
11758 (thread_db_get_info): New functions.
11759 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11760 (thread_db_store_registers, thread_db_thread_alive)
11761 (thread_db_get_thread_local_address): Use them.
11762 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11763 of calling error() for threads in unknown state.
11765 (clear_lwpid_callback): New function.
11766 (thread_db_resume): Use it to clear the cache.
11768 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11770 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11771 (resume_callback): Remove dead code.
11773 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11775 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11777 * gdbarch.h, gdbarch.c: Regenerate.
11778 * stack.c (frame_info): Only initialize the saved registers when
11779 FRAME_INIT_SAVED_REGS_P.
11780 * frame.c (frame_saved_regs_register_unwind): Assert
11781 FRAME_INIT_SAVED_REGS_P.
11782 (deprecated_generic_get_saved_register): Ditto.
11784 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11786 * source.c (openp): Squelch warning about "filename".
11788 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11790 * source.c (openp): If the file does not exist don't necessarily
11793 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11796 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11797 (integer_types_same_name_p): New function.
11798 (rank_one_type): Use it.
11799 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11801 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11803 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11805 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11806 * configure.in: Add --with-sysroot.
11807 * configure: Regenerated.
11808 * main.c (gdb_sysroot): New variable.
11809 (captured_main): Initialize gdb_sysroot.
11810 * defs.h (gdb_sysroot): New extern declaration.
11811 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11813 2003-01-12 Michael Chastain <mec@shout.net>
11815 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11817 2003-01-12 Michael Chastain <mec@shout.net>
11819 * top.c (print_gdb_version): Bump copyright year to 2003.
11821 2003-01-12 David Carlton <carlton@bactrian.org>
11823 * linespec.c (symtab_from_filename): Rename variable 's' to
11826 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11828 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11830 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11832 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11834 * d10v-tdep.c: Include "gdb_assert.h".
11835 (d10v_store_return_value): Rewrite to match current interface.
11836 (d10v_extract_struct_value_address): Ditto.
11837 (d10v_extract_return_value): Ditto.
11838 (d10v_gdbarch_init): Set store_restore_value,
11839 extract_struct_value_address and extract_return_value.
11841 2003-01-12 J. Brobecker <brobecker@gnat.com>
11843 * hpread.c (set_namestring): New procedure replacing the
11844 SET_NAMESTRING macro.
11845 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11846 by calls to set_namestring.
11848 2003-01-11 J. Brobecker <brobecker@gnat.com>
11850 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11851 a compilation warning.
11852 (hpread_process_one_debug_symbol): Likewise.
11854 2003-01-10 David Carlton <carlton@math.stanford.edu>
11856 * linespec.c (decode_line_1): Rename variable 's' to
11858 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11859 (decode_dollar): Ditto.
11860 (decode_variable): Ditto.
11861 (symbol_found): Ditto.
11863 2003-01-09 Michael Chastain <mec@shout.net>
11865 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11867 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11869 * win32-nat.c (set_process_privilege): New function.
11870 (child_attach): Call set_process_privilege() to enable the
11871 SE_DEBUG_NAME user privilege if available in process token.
11873 2003-01-10 J. Brobecker <brobecker@gnat.com>
11875 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11876 compilation error in the previous revision.
11878 2003-01-09 David Carlton <carlton@math.stanford.edu>
11880 * linespec.c: Update copyright.
11882 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11884 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11885 than inferior_ptid.
11886 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11888 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11890 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11892 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11893 (frame_saved_regs_zalloc): Update.
11894 (frame_saved_regs_register_unwind): Update.
11895 (create_new_frame): Update.
11896 (get_prev_frame): Update.
11897 (frame_extra_info_zalloc): Update.
11898 (deprecated_get_frame_saved_regs): Update.
11899 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11900 * cris-tdep.c: Update comment.
11902 * somsolib.h: Fix function indentation.
11903 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11904 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11905 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11906 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11907 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11909 * infrun.c (follow_fork): Use ISO C definition.
11910 * expprint.c (print_subexp): Use xfree instead of free.
11911 * charset.c: Include "gdb_string.h" instead of <string.h>.
11912 (register_iconv_charsets): Use ISO C definition.
11913 (host_charset, target_charset): Ditto.
11914 * Makefile.in (charset.o): Update dependencies.
11915 (mi-cmd-env.o): Update dependencies.
11917 2003-01-08 Andrew Cagney <cagney@redhat.com>
11919 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11922 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11924 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11925 build directories. Save edited gdb output in Mbuild.log. If a
11926 build fails, remove any final GDB executable.
11928 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11930 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11931 replacing hex constants with function names and stripping leading
11932 file name directory prefixes.
11934 2003-01-08 Andrew Cagney <cagney@redhat.com>
11936 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11939 2003-01-08 David Carlton <carlton@math.stanford.edu>
11941 * linespec.c (decode_line_1): Move code into decode_variable.
11942 (decode_variable): New function.
11944 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11946 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11948 2003-01-08 Andrew Cagney <cagney@redhat.com>
11950 * cris-tdep.c (cris_frame_init_saved_regs): Use
11951 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11953 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11954 (sh64_nofp_frame_init_saved_regs): Ditto.
11955 (sh_fp_frame_init_saved_regs): Ditto.
11956 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11957 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11958 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11959 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11961 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11963 * minsyms.c (lookup_minimal_symbol): Update comment.
11964 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11965 (lookup_minimal_symbol_solib_trampoline): Likewise.
11967 2003-01-08 Andrew Cagney <cagney@redhat.com>
11969 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11970 frame_relative_level.
11972 * alpha-tdep.c: Use get_frame_extra_info.
11973 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11974 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11975 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11976 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11978 * alpha-tdep.c: Use get_next_frame.
11979 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11980 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11981 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11982 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11983 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11984 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11985 * xstormy16-tdep.c: Ditto.
11987 2003-01-07 Andrew Cagney <cagney@redhat.com>
11989 * alpha-tdep.c: Use get_frame_base.
11990 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11991 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11992 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11993 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11994 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11995 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11996 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11997 * config/sparc/tm-sparc.h: Ditto.
11999 2003-01-07 Andrew Cagney <cagney@redhat.com>
12001 * frame.c (deprecated_get_frame_context): New function.
12002 (deprecated_set_frame_context): New function.
12003 * frame.h (deprecated_get_frame_context): Declare.
12004 (deprecated_set_frame_context): Declare.
12005 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12006 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12008 2003-01-07 Andrew Cagney <cagney@redhat.com>
12010 * frame.c (deprecated_set_frame_next_hack): New function.
12011 (deprecated_set_frame_prev_hack): New function.
12012 * frame.h (deprecated_set_frame_next_hack): Declare.
12013 (deprecated_set_frame_prev_hack): Declare.
12014 * mcore-tdep.c (analyze_dummy_frame): Use
12015 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12016 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12018 2003-01-07 David Carlton <carlton@math.stanford.edu>
12020 * linespec.c (decode_line_1): Move code into decode_dollar.
12021 (decode_dollar): New function.
12023 2003-01-07 Andrew Cagney <cagney@redhat.com>
12025 * arm-tdep.c (arm_init_extra_frame_info): Use
12026 deprecated_update_frame_base_hack.
12027 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12028 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12029 (fix_frame_pointer): Ditto.
12030 (mn10300_analyze_prologue): Ditto.
12032 2003-01-07 Andrew Cagney <cagney@redhat.com>
12034 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12035 extra_info using frame_extra_info_zalloc.
12036 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12037 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12038 (sh64_init_extra_frame_info): Ditto.
12039 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12040 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12041 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12042 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12043 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12044 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12045 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12046 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12047 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12048 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12049 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12050 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12052 * mn10300-tdep.c (analyze_dummy_frame): Use
12053 deprecated_set_frame_extra_info_hack.
12054 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12056 2003-01-07 J. Brobecker <brobecker@gnat.com>
12058 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12059 class is not scText. These do not define "real" procedures.
12060 (parse_partial_symbols): Likewise.
12062 2003-01-06 Michael Snyder <msnyder@redhat.com>
12064 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12066 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12068 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12069 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12070 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12071 deprecated_frame_xmalloc_with_cleanup.
12072 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12073 deprecated_frame_xmalloc.
12074 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12075 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12077 2003-01-06 Andrew Cagney <cagney@redhat.com>
12079 * x86-64-linux-tdep.c: Include "osabi.h".
12080 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12082 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12084 2003-01-06 Andrew Cagney <cagney@redhat.com>
12086 * MAINTAINERS (Target Instruction Set Architectures): Update
12087 arm-elf. Can be built with -Werror, has been multiarched.
12089 * value.h (unpack_long): Make buffer parameter constant.
12090 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12091 * scm-lang.h (scm_parse): Ditto.
12092 * defs.h (extract_typed_address, extract_address): Ditto.
12093 (extract_long_unsigned_integer): Ditto.
12094 * inferior.h (unsigned_pointer_to_address): Ditto.
12095 (signed_pointer_to_address): Ditto.
12096 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12097 * gdbarch.h, gdbarch.c: Regenerate.
12098 * findvar.c (extract_long_unsigned_integer): Update.
12099 (extract_address): Update.
12100 (extract_typed_address): Update.
12101 (unsigned_pointer_to_address): Update.
12102 * values.c (unpack_long): Update.
12103 (unpack_double): Update.
12104 (unpack_pointer): Update.
12105 (unpack_field_as_long): Update.
12106 * d10v-tdep.c (d10v_pointer_to_address): Update.
12107 * avr-tdep.c (avr_pointer_to_address): Update.
12108 * scm-lang.c (scm_unpack): Update.
12109 * findvar.c (signed_pointer_to_address): Update.
12111 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12113 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12114 since it is in i386-tdep.c.
12116 2003-01-06 J. Brobecker <brobecker@gnat.com>
12118 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12119 failure introduced in the previous change.
12121 2003-01-05 Michael Chastain <mec@shout.net>
12123 * README: Remove references to deleted remote-*.c files:
12124 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12125 remote-nrom.c, remote-os9k.c, remote-udi.c.
12127 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12129 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12130 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12131 i386_get_longjmp_target.
12133 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12135 * arm-tdep.c (prologue_cache): Change to a pointer.
12136 (_initialize_arm_tdep): Allocate prologue_cache.
12137 (check_prologue_cache): Update.
12138 (save_prologue_cache): Update.
12139 (arm_gdbarch_init): Update.
12141 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12143 * stabsread.c (update_method_name_from_physname): Call complaint()
12146 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12148 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12149 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12150 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12152 * blockframe.c: Include "gdbcmd.h" and "command.h".
12153 (backtrace_below_main): New variable.
12154 (file_frame_chain_valid, func_frame_chain_valid)
12155 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12156 (generic_func_frame_chain_valid): Remove functions.
12157 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12158 (_initialize_blockframe): New function.
12159 * Makefile.in (blockframe.o): Update dependencies.
12160 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12161 comment. Call frame_chain_valid ().
12162 * frame.h: Remove old prototypes. Add prototype for
12163 frame_chain_valid and update comments to match.
12164 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12165 Remove old comment.
12166 * gdbarch.h: Regenerated.
12167 * gdbarch.c: Regenerated.
12169 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12170 set_gdbarch_frame_chain_valid.
12171 * avr-tdep.c (avr_gdbarch_init): Likewise.
12172 * cris-tdep.c (cris_gdbarch_init): Likewise.
12173 * frv-tdep.c (frv_gdbarch_init): Likewise.
12174 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12175 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12176 (i386_nw_init_abi): Likewise.
12177 (i386_gdbarch_init): Likewise.
12178 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12180 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12181 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12182 * mips-tdep.c (mips_gdbarch_init): Likewise.
12183 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12184 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12185 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12186 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12187 * s390-tdep.c (s390_gdbarch_init): Likewise.
12188 * sh-tdep.c (sh_gdbarch_init): Likewise.
12189 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12190 * v850-tdep.c (v850_gdbarch_init): Likewise.
12191 * vax-tdep.c (vax_gdbarch_init): Likewise.
12192 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12194 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12195 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12196 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12197 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12198 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12199 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12200 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12201 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12203 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12205 * Makefile.in (acconfig_h): Remove incorrect macro.
12206 (config_h): Define.
12207 (osabi.o): Update dependencies.
12208 * configure.tgt: Set gdb_osabi based on target triplet.
12209 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12210 * configure: Regenerated.
12211 * config.in: Regenerated.
12212 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12213 (GDB_OSABI_DEFAULT): Define if not already defined.
12214 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12215 (set_osabi_string): New variables.
12216 (gdbarch_register_osabi): Add new OS ABI to
12217 gdb_osabi_available_names.
12218 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12219 (set_osabi, show_osabi): New functions.
12220 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12222 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12224 * arch-utils.c (gdbarch_info_init): Set osabi to
12225 GDB_OSABI_UNINITIALIZED.
12226 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12227 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12228 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12229 * gdbarch.c: Regenerated.
12230 * gdbarch.h: Regenerated.
12231 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12233 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12234 * osabi.h (enum gdb_osabi): Move to defs.h.
12235 (gdbarch_init_osabi): Update prototype.
12236 * defs.h (enum gdb_osabi): Moved here.
12237 * Makefile.in: Update dependencies.
12239 * alpha-tdep.h: Don't include "osabi.h".
12240 (struct gdbarch_tdep): Remove osabi member.
12241 * alpha-tdep.c: Include "osabi.h".
12242 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12243 iterate over arches. Update call to gdbarch_init_osabi.
12244 (alpha_dump_tdep): Don't dump osabi.
12245 * alpha-linux-tdep.c: Include "osabi.h".
12246 * alpha-osf1-tdep.c: Include "osabi.h".
12247 * alphafbsd-tdep.c: Include "osabi.h".
12248 * alphanbsd-tdep.c: Include "osabi.h".
12250 * arm-tdep.h: Don't include "osabi.h".
12251 (struct gdbarch_tdep): Remove osabi member.
12252 * arm-tdep.c: Include "osabi.h".
12253 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12254 iterate over arches. Update call to gdbarch_init_osabi.
12255 (arm_dump_tdep): Don't dump osabi.
12256 * arm-linux-tdep.c: Include "osabi.h".
12257 * armnbsd-tdep.c: Include "osabi.h".
12259 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12260 Update call to gdbarch_init_osabi.
12262 * i386-tdep.h: Don't include "osabi.h".
12263 (struct gdbarch_tdep): Remove osabi member.
12264 * i386-tdep.c: Include "osabi.h".
12265 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12266 iterate over arches. Update call to gdbarch_init_osabi.
12267 (i386_dump_tdep): Don't dump osabi.
12268 * i386-linux-tdep.c: Include "osabi.h".
12269 * i386-sol2-tdep.c: Include "osabi.h".
12270 * i386bsd-tdep.c: Include "osabi.h".
12271 * i386gnu-tdep.c: Include "osabi.h".
12272 * i386ly-tdep.c: Include "osabi.h".
12273 * i386nbsd-tdep.c: Include "osabi.h".
12274 * i386obsd-tdep.c: Include "osabi.h".
12276 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12277 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12278 check osabi when iterating over arches. Update call to
12279 gdbarch_init_osabi.
12280 (mips_dump_tdep): Don't dump osabi.
12282 * ns32k-tdep.h: Don't include "osabi.h".
12283 (struct gdbarch_tdep): Remove.
12284 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12285 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12286 allocate tdep. Update call to gdbarch_init_osabi.
12287 (ns32k_dump_tdep): Remove.
12288 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12289 * ns32knbsd-tdep.c: Include "osabi.h".
12291 * ppc-tdep.h: Don't include "osabi.h".
12292 (struct gdbarch_tdep): Remove osabi member.
12293 * rs6000-tdep.c: Include "osabi.h".
12294 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12295 osabi when iterating over arches. Update call to
12296 gdbarch_init_osabi.
12297 (rs6000_dump_tdep): Don't dump osabi.
12298 * ppc-linux-tdep.c: Include "osabi.h".
12299 * ppcnbsd-tdep.c: Include "osabi.h".
12301 * sh-tdep.h: Don't include "osabi.h".
12302 (struct gdbarch_tdep): Remove osabi member.
12303 * sh-tdep.c: Include "osabi.h".
12304 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12305 iterate over arches. Update call to gdbarch_init_osabi.
12306 (sh_dump_tdep): Don't dump osabi.
12307 * shnbsd-tdep.c: Include "osabi.h".
12309 * sparc-tdep.c: Include "osabi.h".
12310 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12311 iterate over arches. Update call to gdbarch_init_osabi.
12312 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12315 * vax-tdep.h: Don't include "osabi.h".
12316 (struct gdbarch_tdep): Remove.
12317 * vax-tdep.c: Include "osabi.h".
12318 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12319 iterate over arches. Don't allocate tdep. Update call
12320 to gdbarch_init_osabi.
12321 (vax_dump_tdep): Remove.
12322 (_initialize_vax_tdep): Update call to gdbarch_register.
12324 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12326 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12328 (breakpoint_re_set_one): Don't fetch the value for a disabled
12331 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12333 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12334 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12335 (COERCE_FLOAT_TO_DOUBLE): Remove.
12336 * gdbarch.c: Regenerate.
12337 * gdbarch.h: Regenerate.
12338 * Makefile.in: Remove value_h from gdbarch_h.
12339 * valops.c (coerce_float_to_double): New variable.
12340 (default_coerce_float_to_double): Remove.
12341 (standard_coerce_float_to_double): Remove.
12342 (value_arg_coerce): Use coerce_float_to_double.
12343 (_initialize_valops): Add "set coerce-float-to-double".
12344 * value.h (default_coerce_float_to_double): Remove prototype.
12345 (standard_coerce_float_to_double): Remove prototype.
12347 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12349 * mdebugread.c (parse_symbol): Likewise.
12350 * stabsread.c (define_symbol): Mark all functions as prototyped.
12352 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12353 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12354 set_gdbarch_coerce_float_to_double.
12355 * arm-tdep.c (arm_gdbarch_init): Likewise.
12356 * frv-tdep.c (frv_gdbarch_init): Likewise.
12357 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12358 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12359 * mips-tdep.c (mips_gdbarch_init): Likewise.
12360 (mips_coerce_float_to_double): Remove.
12361 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12362 (rs6000_coerce_float_to_double): Remove.
12363 * s390-tdep.c (s390_gdbarch_init): Likewise.
12364 * sh-tdep.c (sh_gdbarch_init): Likewise.
12365 (sh_coerce_float_to_double): Remove.
12366 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12367 (sparc_coerce_float_to_double): Remove.
12368 * v850-tdep.c (v850_gdbarch_init): Likewise.
12369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12370 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12371 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12372 (hppa_coerce_float_to_double): Remove prototype.
12373 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12375 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12377 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12379 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12381 Suggested by Stewart Brown <sb24@avaya.com>:
12382 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12383 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12384 (c_type_print_varspec_suffix): Likewise.
12386 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12388 * configure.in: Don't set and AC_SUBST SUBDIRS.
12389 * configure: Regenerated.
12391 * configure.in: Remove code dealing with shared libraries.
12392 * Makefile.in: Remove HLDFLAGS and HLDENV.
12393 * configure: Regenerated.
12395 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12397 * frame.c (deprecated_frame_xmalloc): New function.
12398 (deprecated_set_frame_saved_regs_hack): New function.
12399 (deprecated_set_frame_extra_info_hack): New function.
12400 * frame.h (deprecated_frame_xmalloc): Declare.
12401 (deprecated_set_frame_saved_regs_hack): Declare.
12402 (deprecated_set_frame_extra_info_hack): Declare.
12404 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12406 * configure.in: Move code that provides the --enable-gdbtk option
12407 right after the code that handles the --enable-tui option, and
12408 polish it somewhat.
12409 * configure: Regenerated.
12411 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12412 AC_CHECK_FUNCS and remove the old check for pread64.
12413 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12414 * acconfig.h (_GNU_SOURCE): Add.
12415 (HAVE_PREAD64): Remove.
12416 * configure, aclocal.m4, config.in: Regenerated.
12418 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12420 * alpha-tdep.c: Use get_frame_saved_regs.
12421 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12422 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12423 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12424 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12425 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12427 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12429 * configure.in: Remove all use of the SUBDIRS variable; add
12430 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12431 code providing the --enable-multi-ice option, and move it right in
12432 front of the code that checks whether gdbserver is supported.
12434 * configure: Regenerated.
12435 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12438 2003-01-03 Andrew Cagney <cagney@redhat.com>
12440 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12441 * avr-tdep.c, cris-tdep.c: Ditto.
12442 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12443 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12445 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12447 * configure.in: Remove --enable-netrom option.
12448 * configure: Regenerated.
12450 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12452 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12453 declaration for `struct re_pattern_buffer' instead.
12454 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12456 2003-01-03 J. Brobecker <brobecker@gnat.com>
12458 * mdebugread.c (parse_symbol): Count until the stEnd matching
12459 the structure name.
12461 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12463 * configure.in: Remove --with-cpu option.
12464 subscripts. Remove evil changequotes here.
12465 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12466 * config.in, configure: Regenerated.
12468 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12469 * configure.in: Cleanup section that sources GDB and BFD configure
12470 subscripts. Remove evil changequotes here.
12471 * config.in, configure: Regenerated.
12473 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12475 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12476 frame accessor methods.
12477 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12478 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12479 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12480 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12481 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12482 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12483 * z8k-tdep.c: Ditto.
12485 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12487 * configure.in: Remove UI_OUT configuration code.
12488 * ada-lang.c: Update assuming UI_OUT is always true.
12489 * Makefile.in (UIOUT_CFLAGS): Remove.
12490 * configure: Regenerated.
12491 * TODO: Remove blurb about elimination of -DUI_OUT.
12493 * configure.in: Move code that provides the --enable-gdbcli,
12494 --enable-gdbmi options right before the code that handles the
12495 --enable-tui option. Polish a bit.
12496 * configure: Regenerated.
12498 * configure.in: Rewrite check for GNU regex and the
12499 --without-included regex option, and move it into the "Checks for
12500 library functions" section. This makes us use the system regex
12501 again by default on systems with version 2 of the GNU C library.
12502 This was apparently broken.
12503 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12504 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12505 * config.in, configure: Regenerated.
12507 * configure.in: Move code that provides the --enable-tui option
12508 before the "Checks for libraries" section. Polish the code
12509 somewhat and set need_curses to yes if we build the TUI. Rewrite
12510 code that looks for a library providing termcap functionality to
12511 match more closely what's done in the Readline library, and move
12512 it into to the "Checks for libraries" section.
12513 * configure: Regenerated.
12514 * Makefile.in (TERMCAP): Remove variable.
12515 * config/i386/go32.mh (TERMCAP): Remove variable.
12517 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12519 * MAINTAINERS: Mention gdb_mbuild.sh.
12520 * gdb_mbuild.sh: Rewrite.
12522 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12524 * configure.in: Fix typo in last change.
12525 * config.in, configure: Regenerated.
12527 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12529 * valarith.c (value_binop): Delete obsolete code and comments.
12530 * configure.host: Ditto.
12531 * buildsym.h (make_blockvector): Ditto.
12532 * buildsym.c (make_blockvector): Ditto.
12533 * defs.h (enum language): Ditto.
12534 (chill_demangle): Ditto.
12535 * elfread.c (elf_symtab_read): Ditto.
12536 * dwarfread.c (CHILL_PRODUCER): Ditto.
12537 (set_cu_language): Ditto.
12538 (handle_producer): Ditto.
12539 * expprint.c (print_subexp): Ditto.
12540 * gdbtypes.c (chill_varying_type): Ditto.
12541 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12542 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12543 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12544 (chill_varying_type): Ditto.
12545 * language.h (_LANG_chill): Ditto.
12546 * language.c (binop_result_type, integral_type): Ditto.
12547 (character_type, string_type, structured_type): Ditto.
12548 (lang_bool_type, binop_type_check): Ditto.
12549 * stabsread.h (os9k_stabs): Ditto.
12550 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12551 (define_symbol, read_type, read_struct_fields): Ditto.
12552 (read_array_type, read_enum_type, read_huge_number): Ditto.
12553 (read_range_type, start_stabs): Ditto.
12554 * symfile.c (init_filename_language_table): Ditto.
12555 (add_psymbol_with_dem_name_to_list): Ditto.
12556 * symtab.c (symbol_init_language_specific): Ditto.
12557 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12558 * symtab.h (struct general_symbol_info): Ditto.
12559 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12560 * typeprint.c (typedef_print): Ditto.
12561 * utils.c (fprintf_symbol_filtered): Ditto.
12562 * valops.c (value_cast, search_struct_field, value_slice): Delete
12564 (varying_to_slice): Delete function.
12565 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12566 (varying_to_slice): Delete declaration.
12567 * MAINTAINERS: Update.
12569 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12571 * configure.in: Reorganize "Checks for library functions section"
12572 a bit. Remove check for `btowc' and `isascii' functions.
12573 * configure: Regenerated.
12575 * acconfig.h (_MSE_INT_H): Remove.
12576 * configure.in: Create "Checks for header files" section, and move
12577 appropriate tests there. Don't check for objlist.h, wchar.h,
12578 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12579 misdetection fix. Also add "Checks for types", "Checks for
12580 compiler characteristics" and "Checks for library functions"
12582 * config.in, configure: Regenerated.
12584 * configure.in: Create "Checks for programs" section, and move
12585 appropriate tests there.
12587 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12589 * configure.in: Create "Checks for libraries" section, and move
12590 appropriate tests there. Cleanup check for wctype in libw. Use
12591 AC_SEARCH_LIBS to see whether we need libsocket.
12592 * configure: Regenerated.
12594 For older changes see ChangeLog-2002
12600 version-control: never