1 2003-09-28 Andrew Cagney <cagney@redhat.com>
3 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
4 Rename VALUE_RETURNED_FROM_STACK.
5 * infcmd.c (print_return_value): Update.
6 * infcall.c (call_function_by_hand): Update.
8 2003-09-28 Mark Kettenis <kettenis@gnu.org>
10 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
11 regcache argument and reverse the order of the other two
12 arguments. Remove local regcache variable. Determine
13 architecture from REGCACHE. Update comments.
14 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
15 reverse the order of the other two arguments. Remove local
16 regcache variable. Determine architecture from REGCACHE. Update
18 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
19 prototypes. Update comments.
20 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
22 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
24 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
25 * i386-interix-nat.c (supply_fpregset): Update.
26 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
27 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
28 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
29 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
30 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
32 * i386obsd-tdep.c (fetch_core_registers): Update.
33 * i386v4-nat.c (supply_fpregset): Update.
34 * x86-64-linux-nat.c (supply_fpregset): Update.
35 * x86-64-linux-tdep.c (fetch_core_registers): Update.
37 2003-09-27 Mark Kettenis <kettenis@gnu.org>
39 * i386-tdep.h: Put opaque declarations in alphabetical
40 order. Remove spurious whitespace.
41 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
42 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
43 * i386-tdep.c (MM0_REGNUM): Remove define.
44 (i386_mmx_regnum_p): Add gdbarch argument.
45 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
46 Rewrite using new macro definitions for FPU/SSE registers.
47 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
48 definitions from i387-tdep.h.
49 (i386_register_name): Update.
50 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
51 new macro definitions for FPU/SSE registers.
52 (i386_extract_return_value): Determine whether floating-point
53 registers are present by examining REGCACHE's architecture.
54 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
55 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
57 (i386_register_type): Update.
58 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
59 definitions for FPU registers. Use REGCACHE's architecture to
60 determine the appropriate register numbers.
61 (i386_pseudo_register_read, i386_pseudo_register_write,
62 i386_register_reggroup_p): Update.
63 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
65 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
66 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
67 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
68 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
69 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
70 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
72 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
73 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
74 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
75 definitions for FPU/SSE registers.
76 (FXSAVE_MXCSR_ADDR): New define.
77 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
79 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
80 (I387_ST0_REGNUM): Define.
82 * regcache.h (get_regcache_arch): New prototype.
83 * regcache.c (get_regcache_arch): New function.
85 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
88 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
89 Initialize using ARRAY_SIZE.
91 2003-09-27 Andrew Cagney <cagney@redhat.com>
93 * arch-utils.c (deprecated_init_frame_pc_default): Rename
94 "init_frame_pc_default".
95 * arch-utils.h (deprecated_init_frame_pc_default): Update.
96 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
97 * vax-tdep.c (vax_gdbarch_init): Update.
98 * v850-tdep.c (v850_gdbarch_init): Update.
99 * sh64-tdep.c (sh64_gdbarch_init): Update.
100 * s390-tdep.c (s390_gdbarch_init): Update.
101 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
102 * mcore-tdep.c (mcore_gdbarch_init): Update.
103 * h8300-tdep.c (h8300_gdbarch_init): Update.
104 * cris-tdep.c (cris_gdbarch_init): Update.
105 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
107 2003-09-26 Mark Kettenis <kettenis@gnu.org>
109 * regset.h: New file.
110 * Makefile.in (regset_h): Add.
112 2003-09-25 Andrew Cagney <cagney@redhat.com>
114 * frame.h (deprecated_frame_saved_regs): Rename
115 get_frame_saved_regs.
116 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
117 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
118 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
119 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
120 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
122 2003-09-25 Andrew Cagney <cagney@redhat.com>
124 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
125 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
127 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
128 arm*-*-* do not use the new frame code.
130 2003-09-25 David Carlton <carlton@kealia.com>
132 * c-exp.y: Remove 'register' declarations.
133 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
135 2003-09-25 David Carlton <carlton@kealia.com>
137 * c-exp.y: Include cp-support.h. Add qualified_type.
138 (yylex): Delete nested type hack; add comments.
139 * cp-namespace.c (cp_lookup_nested_type): New function.
140 * cp-support.h: Declare cp_lookup_nested_type.
141 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
142 instead of value_struct_elt_for_reference.
143 * valops.c: Include cp-support.h.
144 (value_aggregate_elt): New function.
145 (value_namespace_elt): Ditto.
146 (value_struct_elt_for_reference): Make static.
147 * value.h: Delete declaration of value_struct_elt_for_reference;
148 add declaration for value_aggregate_elt.
149 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
152 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
154 * stack.c: Include "reggroups.h".
155 (frame_info): Only display registers in all_reggroup.
156 * Makefile.in (stack.o): Update dependencies.
158 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
160 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
161 "add ip, sp #n" in the prologue.
162 (arm_scan_prologue): Ditto.
164 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
166 * MAINTAINERS (write after approval): Add myself.
168 2003-09-25 Andreas Schwab <schwab@suse.de>
170 * m68k-tdep.c: Include "dwarf2-frame.h".
171 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
172 * Makefile.in (m68k-tdep.o): Update dependencies.
174 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
176 * sh-tdep.c (struct frame_extra_info): Remove.
177 (struct sh_frame_cache): New structure.
178 (GET_SOURCE_REG): New macro extracting source register of an opcode.
179 (GET_TARGET_REG): Ditto but target register.
180 (GET_PUSHED_REG): Remove.
181 (IS_MOV_ARG_TO_REG): New macro.
182 (IS_MOV_ARG_TO_IND_R14): New macro.
183 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
184 (IS_MOVW_PCREL_TO_REG): New macro.
185 (IS_MOVL_PCREL_TO_REG): New macro.
186 (IS_SUB_REG_FROM_SP): New macro.
187 (IS_ARG_MOV): Remove.
188 (IS_MOV_TO_R14): Remove.
189 (IS_RESTORE_FP): New macro.
192 (IS_MOV_FP_SP): New macro.
193 (IS_ADD_REG_TO_FP): New macro.
194 (IS_ADD_IMM_FP): New macro.
195 (sh_skip_prologue_hard_way): Remove.
196 (sh_saved_pc_after_call): Remove.
197 (sh_frame_chain): Remove.
198 (sh_find_callers_reg): Remove.
199 (sh_nofp_frame_init_saved_regs): Remove.
200 (sh_fp_frame_init_saved_regs): Remove.
201 (sh_init_extra_frame_info): Remove.
202 (sh_analyze_prologue): New function.
203 (sh_skip_prologue): Remove deprecated code. Rely on new function
204 sh_analyze_prologue when after_prologue fails.
205 (sh_frame_saved_pc): Remove.
206 (sh_alloc_frame_cache): New function.
207 (sh_frame_cache): Ditto.
208 (sh_frame_prev_register): Ditto.
209 (sh_frame_this_id): Ditto.
210 (sh_frame_unwind): New structure defining the heuristic frame
212 (sh_frame_sniffer): New function.
213 (sh_unwind_sp): Ditto.
214 (sh_unwind_pc): Ditto.
215 (sh_unwind_dummy_id): Ditto.
216 (sh_frame_base_address): Ditto.
217 (sh_frame_base): New structure defining new frame base code.
218 (sh_in_function_epilogue_p): New function.
219 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
220 code and to call all new code instead. Initialize dwarf2 and
221 heuristic frame sniffer.
223 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
225 * parser-defs.h (struct exp_descriptor): New definition, containing
226 language-specific info for printing, prefixifying, dumping, and
227 evaluating expressions.
228 (exp_descriptor_standard): Declare new variable.
229 (print_subexp): Make global and declare here (from expprint.c).
230 (dump_subexp): Ditto.
231 (dump_subexp_body_standard): Declare.
232 (operator_length_standard): Declare.
233 (op_name_standard): Declare.
234 (print_subexp): Declare.
235 (print_subexp_standard): Declare.
237 * language.h (struct language_defn): Add la_exp_desc field to hold
238 pointer to table for language-specific operators.
239 Remove evaluate_exp field, which is now in struct exp_descriptor.
241 * parse.c (operator_length): Move most code to new
242 operator_length_standard function. Use language-specific information.
243 (operator_length_standard): New function taking most code from
245 (exp_descriptor_standard): New constant.
247 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
248 and OP_EXTENDED_LAST.
250 * expprint.c (print_subexp): Use language-specific print_subexp.
251 Make global; remove static declaration.
252 Move most code to print_subexp_standard.
253 (print_subexp_standard): New function, containing code formerly in
255 (op_name): Add expression to argument signature.
256 Use langauge-specific op_name.
257 Move most code to op_name_standard.
258 (op_name_standard): New function, containing code formerly in op_name.
259 (dump_subexp): Use new version of op_name function.
260 Use language-specific dump_subexp_body, and move most existing code to
261 dump_subexp_body_standard.
262 (dump_raw_expression): Use new op_name interface.
263 (dump_subexp_body): Move most code to dump_subexp_body_standard.
264 (dump_subexp_body_standard): New function, containing code formerly
267 * language.c (unknown_language): Add default la_exp_desc field and
268 remove evaluate_exp field.
269 (auto_language): Ditto.
270 (local_language): Ditto.
271 * f-lang.c (f_language_defn): Ditto.
272 * c-lang.c (c_language_defn): Ditto.
273 (cplus_language_defn): Ditto.
274 (asm_language_defn): Ditto.
275 (minimal_language_defn): Ditto.
276 * p-lang.c (pascal_language_defn): Ditto.
277 * m2-lang.c (m2_language_defn): Ditto.
278 * objc-lang.c (objc_language_defn): Ditto.
280 * jv-lang.c (exp_descriptor_java): New variable, containing
281 Java-specific expression evaluator.
282 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
284 * scm-lang.c (exp_descriptor_scm): New variable, containing
285 Scheme-specific expression evaluator.
286 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
288 * objc-lang.c (print_object_command): Take evaluate_exp from the
291 * Makefile.in (eval.o): Add dependency on parser-defs.h.
293 * eval.c: Include parser-defs.h for the full declaration of
295 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
297 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
299 * parser-defs.h (operator_length): Declare.
301 * parse.c (length_of_subexp): Use operator_length to get operator
302 lengths and arities for operators.
303 Move most code to new operator_length function.
304 (operator_length): New function absorbing most code from
306 (prefixify_subexp): Remove large case and use operator_length instead.
307 (parse_exp_1): Use renamings:
308 dump_prefix_expression => dump_raw_expression and
309 dump_postfix_expression => dump_prefix_expression.
311 * expression.h (dump_prefix_expression): Rename to ...
312 (dump_raw_expression): New name.
313 (dump_postfix_expression): Rename to ...
314 (dump_prefix_expression): New name.
316 * expprint.c (dump_subexp): Make global. Add comment.
317 Move most existing code to dump_subexp_body.
318 (dump_subexp_body): New function.
319 (dump_prefix_expression): Rename to dump_raw_expression.
320 Remove attempt to print the expression via print_expression: it can't
321 work before the expression is prefixified.
322 (dump_raw_expression): Renamed from dump_prefix_expression.
323 (dump_postfix_expression): Rename to dump_prefix_expression, since
325 Remove 'note' parameter, since this routine must be used on
326 prefixified expression.
327 (dump_prefix_expression): Renamed from dump_postfix_expression.
329 2003-09-22 Jim Blandy <jimb@redhat.com>
331 * dwarf2read.c (read_array_type): When building the type for an
332 array of unspecified length, make sure to choose the upper bound
333 so that the array's total length comes out to be zero --- that's
334 how we represent such arrays.
336 2003-09-22 Michael Chastain <mec@shout.net>
338 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
340 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
342 * top.c (quit_force): Fix indirect call to quit_target so
343 a struct qt_args pointer is passed.
345 2003-09-22 Andrew Cagney <cagney@redhat.com>
347 * arch-utils.h (init_frame_pc_noop): Delete declaration.
348 * arch-utils.c (init_frame_pc_noop): Delete function.
349 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
351 * mips-tdep.c (mips_gdbarch_init): Ditto.
352 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
353 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
355 (DEPRECATED_INIT_FRAME_PC): Delete macro.
356 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
358 (DEPRECATED_INIT_FRAME_PC): Delete macro.
360 2003-09-22 Anthony Green <green@redhat.com>
362 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
365 2003-09-20 Andrew Cagney <cagney@redhat.com>
367 * breakpoint.c: Eliminate ARGSUSED.
368 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
369 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
370 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
371 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
372 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
373 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
374 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
375 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
376 * wince.c, remote-vx.c: Ditto.
378 * cli/cli-script.c: Remove "register" attributes.
379 * config/pa/tm-hppa.h: Ditto.
380 * cli/cli-decode.c: Ditto.
381 * cli/cli-cmds.c: Ditto.
383 2003-09-19 Andrew Cagney <cagney@redhat.com>
385 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
386 DEPRECATED_NPC_REGNUM.
387 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
389 2003-09-19 Christopher Faylor <cgf@redhat.com>
391 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
393 2003-09-19 Jim Blandy <jimb@redhat.com>
395 * macrotab.c (macro_include): Use the correct comparison to find
396 the appropriate place for this inclusion in the list.
398 2003-09-19 Andrew Cagney <cagney@redhat.com>
400 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
401 (DEPRECATED_HPUX_TEXT_END): Define.
402 (deprecated_hpux_text_end): Declare.
403 (struct target_ops): Declare opaque.
404 * hppah-nat.c (text_end): Make static.
405 (deprecated_hpux_text_end): New function.
406 * exec.c (text_end): Delete global variable.
407 (NEED_TEXT_START_END): Do not define.
408 (exec_file_attach): Replace code computing "text_end" code with
409 call to DEPRECATED_HPUX_TEXT_END.
411 2003-09-19 Andrew Cagney <cagney@redhat.com>
413 * utils.c (align_up, align_down): New functions.
414 * defs.h (align_up, align_down): Declare.
415 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
416 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
418 (round_up, round_down): Delete functions.
419 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
421 (ROUND_DOWN, ROUND_UP): Delete macros.
422 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
423 * h8300-tdep.c: Replace "round_up" and "round_down" with
424 "align_up" and "align_down".
425 (round_up, round_down): Delete macros.
426 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
428 (ROUND_UP, ROUND_DOWN): Delete macros.
430 2003-09-18 J. Brobecker <brobecker@gnat.com>
432 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
433 hard-coded constant. Use the proper machine name instead.
435 2003-09-17 Andrew Cagney <cagney@redhat.com>
437 * sparc-tdep.c (legacy_register_name): Delete function.
438 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
439 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
440 * infcmd.c (gdb_register_name): Delete variable.
441 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
442 REGISTER_NAME and "tm.h".
443 * gdbarch.h, gdbarch.c: Regenerate.
444 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
445 REGISTER_NAMES in comments.
446 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
447 * m68klinux-nat.c (regmap): Ditto.
449 2003-09-17 Jim Blandy <jimb@redhat.com>
451 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
453 2003-09-17 Andrew Cagney <cagney@redhat.com>
455 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
456 (ppcnbsd_init_abi): Set "use_struct_convention" to
457 "ppcnbsd_use_struct_convention".
459 2003-09-17 Mark Kettenis <kettenis@gnu.org>
461 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
462 * gdbarch.h, gdbarch.c: Regenerate.
463 (stabs_argument_has_addr): New architecture method.
464 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
465 * arch-utils.c: Include "buildsym.h".
466 (default_stabs_argument_has_addr): New function.
467 * stabsread.c (define_symbol): Use stabs_argument_has_addr
468 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
470 2003-09-17 Andrew Cagney <cagney@redhat.com>
472 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
473 * gdbarch.h, gdbarch.c: Regenerate.
474 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
475 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
476 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
477 * sparcnbsd-tdep.c: Update.
479 2003-09-17 Andrew Cagney <cagney@redhat.com>
481 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
482 * gdbarch.h, gdbarch.c: Regenerate.
483 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
484 * d10v-tdep.c, frame.c: Update.
485 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
486 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
487 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
488 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
489 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
490 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
491 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
492 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
493 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
494 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
495 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
496 * config/pa/nm-hppah.h: Update.
498 2003-09-16 Andrew Cagney <cagney@redhat.com>
500 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
501 "use_struct_convention" to "ppc_linux_use_struct_convention".
502 (ppc_linux_use_struct_convention): New function.
503 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
504 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
505 "rs6000_use_struct_convention".
506 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
508 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
511 2003-09-16 Andrew Cagney <cagney@redhat.com>
513 * buildsym.c: Remove more occurances of "register".
514 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
515 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
516 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
517 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
518 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
519 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
520 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
521 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
523 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
525 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
526 numbers to enumeration values.
527 * sh-tdep.c: Accomodate above change.
528 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
529 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
530 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
531 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
532 (IS_FPUSH): Rename from IS_FMOV.
533 (sh_extract_struct_value_address): Remove useless comment.
534 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
535 instead of own local values.
536 (sh_dump_tdep): Remove.
537 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
538 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
540 2003-09-15 Andrew Cagney <cagney@redhat.com>
542 * doublest.c (convert_floatformat_to_doublest): No longer need to
543 cast "exp_bias" to an int. Reverts 2002-12-04 change.
545 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
547 * values.c (unpack_double): Call floatformat_is_valid.
549 2003-09-15 Mark Kettenis <kettenis@gnu.org>
551 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
552 ps_strings into a long.
554 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
555 _initialize_am64fbsd_nat.
557 2003-09-15 Kevin Buettner <kevinb@redhat.com>
559 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
560 associated with DW_AT_ranges attribute is out of bounds.
562 2003-09-15 David Lecomber <dsl@sources.redhat.com>
564 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
566 2003-09-14 Michael Chastain <mec@shout.net>
568 * config/m68k/nm-apollo68v.h: Delete.
569 * config/m68k/xm-apollo68v.h: Delete.
571 2003-09-14 Andrew Cagney <cagney@redhat.com>
573 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
574 * dcache.c: Update copyrights and descriptions.
575 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
577 2003-09-14 Andrew Cagney <cagney@redhat.com>
579 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
580 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
582 2003-09-14 Andrew Cagney <cagney@redhat.com>
584 * alpha-nat.c: Remove some occurances of "register".
585 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
586 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
587 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
588 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
589 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
590 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
591 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
592 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
593 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
594 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
595 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
596 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
597 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
598 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
599 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
600 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
601 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
602 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
603 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
604 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
605 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
606 * values.c, vax-tdep.c, xcoffread.c: Ditto.
608 2003-09-13 Andrew Cagney <cagney@redhat.com>
610 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
611 * ppc-tdep.h (struct regcache): Declare opaque.
612 * objfiles.h (struct objfile_data): Declare opaque.
613 * cp-support.h (struct objfile): Declare opaque.
614 * linux-nat.h (target_waitstatus): Declare opaque.
616 2003-09-14 Mark Kettenis <kettenis@gnu.org>
618 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
619 (stabs_argument_has_addr): New architecture method.
620 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
621 * arch-utils.c: Include "buildsym.h".
622 (default_stabs_argument_has_addr): New function.
623 * stabsread.c (define_symbol): Use stabs_argument_has_addr
624 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
626 * cris-tdep.c (cris_gdbarch_init): Set
627 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
628 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
629 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
630 * mips-tdep.c (mips_gdbarch_init): Likewise.
631 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
632 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
634 2003-09-13 Andrew Cagney <cagney@redhat.com>
636 * values.c (using_struct_return): Delete "function" and "funcaddr"
638 * value.h (using_struct_return): Update declaration.
639 * infcmd.c (finish_command_continuation): Update.
640 (finish_command): Update.
641 * infcall.c (call_function_by_hand): Update.
642 * eval.c (evaluate_subexp_standard): Update.
644 2003-09-13 Christopher Faylor <cgf@redhat.com>
646 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
647 SSE registers since gdb will not operate correctly without this.
648 Restore include file ordering munged in previous change.
649 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
651 2003-09-13 Mark Kettenis <kettenis@gnu.org>
653 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
655 * gdbarch.c, gdbarch.h: Updated.
656 * infcall.c (call_function_by_hand): Update.
657 * stabsread.c (define_symbol): Updated.
659 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
661 2003-09-12 Christopher Faylor <cgf@redhat.com>
663 * win32-nat.c: Reorganize so that defines used by target headers are
664 actually defined by the system headers.
665 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
666 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
668 2003-09-12 Jim Blandy <jimb@redhat.com>
670 * dbxread.c (read_dbx_symtab): Don't report an internal error if
671 the file has no .data, .bss, or .rodata sections. Instead wait
672 until we see a variable alleged to live in one of those sections.
674 * dbxread.c (read_dbx_symtab): If we have no .data section and no
675 .bss section, presume that any variables we find live in the
678 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
679 offsets for global and static variables.
681 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
682 symbol types are, by definition, in the .data section, so it is
683 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
684 If there is no .data section, there should be no N_DATA or N_DATA
687 2003-09-12 Mark Kettenis <kettenis@gnu.org>
689 * amd64fbsd-tdep.c: Fix sigtramp recognition.
690 (amd64fbsd_sigcontext_addr): Rewrite.
691 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
693 (amd64fbsd_sc_reg_offset): Initialize with correct values.
694 (amd64fbsd_init_abi): Fix typo.
696 2003-09-12 Andrew Cagney <cagney@redhat.com>
698 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
699 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
701 2003-09-12 Andrew Cagney <cagney@redhat.com>
703 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
704 "entry_file_highpc". Update comments.
705 * defs.h (deprecated_inside_entry_file): Rename
707 * blockframe.c (deprecated_inside_entry_file): Rename
709 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
710 * vax-tdep.c (vax_frame_chain): Update.
711 * sh64-tdep.c (sh64_frame_chain): Update.
712 * sh-tdep.c (sh_frame_chain): Update.
713 * rs6000-tdep.c (rs6000_frame_chain): Update.
714 * ns32k-tdep.c (ns32k_frame_chain): Update.
715 * mips-tdep.c (mips_frame_chain): Update.
716 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
717 * m32r-tdep.c (m32r_frame_this_id): Update.
718 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
719 * frv-tdep.c (frv_frame_this_id): Update.
720 * d10v-tdep.c (d10v_frame_this_id): Update.
721 * cris-tdep.c (cris_frame_chain): Update.
722 * blockframe.c (legacy_frame_chain_valid): Update.
723 * avr-tdep.c (avr_frame_this_id): Update.
724 * arm-tdep.c (arm_prologue_this_id): Update.
725 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
726 * objfiles.c (objfile_relocate): Update.
727 * mipsread.c (mipscoff_symfile_read): Update.
728 (mipscoff_symfile_read): Update.
729 * mdebugread.c (parse_partial_symbols): Update.
730 * dwarfread.c (read_file_scope): Update.
731 * dwarf2read.c (read_file_scope): Update.
732 * dbxread.c (read_dbx_symtab): Update.
733 (read_dbx_symtab): Update.
734 * coffread.c (complete_symtab): Update.
736 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
738 * top.c (quit_target): New static helper function.
739 (quit_force): Moved code to quit_target(). Call quit_target()
740 via catch_errors() to catch errors during quit.
742 2003-09-11 David Carlton <carlton@kealia.com>
744 * buildsym.c (finish_block): Use allocate_block to allocate the
746 * mdebugread.c (new_block): Add FIXME.
748 2003-09-11 David Carlton <carlton@kealia.com>
750 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
751 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
752 (recursive_dump_type): Ditto.
753 * printcmd.c (print_formatted): Ditto.
754 * typeprint.c (print_type_scalar): Ditto.
755 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
756 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
757 * cp-support.h: Declare cp_check_possible_namespace_symbols,
758 maint_cplus_cmd_list.
759 * cp-support.c: Make maint_cplus_cmd_list extern.
760 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
762 (lookup_symbol_file): Look in possible namespace blocks when
764 (initialize_namespace_symtab): New.
765 (get_possible_namespace_block, free_namespace_block)
766 (check_possible_namespace_symbols)
767 (check_possible_namespace_symbols_loop)
768 (check_one_possible_namespace_symbol)
769 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
770 (_initialize_cp_namespace): Ditto.
771 * block.h: Declare allocate_block.
772 * block.c (allocate_block): New.
773 * jv-lang.c (get_java_class_symtab): Allocate blocks via
775 * symfile.h: Update declaration of add_psymbol_to_list.
776 * symfile.c (add_psymbol_to_list): Return the partial symbol in
778 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
779 scan_partial_symbols_call.
780 (scan_partial_symbols): Add NAMESPACE argument; update calls to
782 (add_partial_symbol): If necessary, scan mangled names for names
784 (add_partial_namespace): Add NAMESPACE argument; generate partial
785 symbols associated to namespaces.
786 (add_partial_enumeration): Add NAMESPACE argument.
787 (new_symbol): Allow namespace syms.
788 (read_namespace): Generate namespace syms.
789 * objfiles.h: Add opaque declaration of struct symtab.
790 (struct objfile): Add cp_namespace_symtab member.
791 * objfiles.c (allocate_objfile): Set
792 objfile->cp_namespace_symtab.
793 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
794 dictionary_h, command_h.
796 2003-09-11 Andrew Cagney <cagney@redhat.com>
798 * rs6000-tdep.c (rs6000_push_dummy_call): Use
799 regcache_raw_write_signed to set SP_REGNUM, move the operation to
800 near the function's end.
801 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
802 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
803 regcache_raw_write_signed to set SP_REGNUM.
805 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
807 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
808 orig_addrs is set up properly.
810 2003-09-11 Andrew Cagney <cagney@redhat.com>
812 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
813 * gdbarch.h, gdbarch.c: Re-generate.
814 * infcall.c (call_function_by_hand): Update.
815 * hppa-tdep.c (hppa_push_arguments): Update.
816 * ada-lang.c (place_on_stack): Update.
817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
818 * sparc-tdep.c (sparc_gdbarch_init): Update.
819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
820 * hppa-tdep.c (hppa_gdbarch_init): Update.
821 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
824 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
826 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
827 register do need a frame.
829 2003-09-11 Andrew Cagney <cagney@redhat.com>
831 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
832 buildable since GDB 5.0.
833 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
834 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
835 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
836 * irix4-nat.c: Delete file.
837 * config/mips/irix4.mh: Delete file.
838 * config/mips/irix3.mh: Delete file.
839 * config/mips/irix3.mt: Delete file.
840 * config/mips/tm-irix3.h: Delete file.
841 * config/mips/nm-irix3.h: Delete file.
842 * config/mips/xm-irix3.h: Delete file.
843 * config/mips/nm-irix4.h: Delete file.
844 * config/mips/xm-irix4.h: Delete file.
845 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
847 2003-09-10 J. Brobecker <brobecker@gnat.com>
849 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
850 * Makefile.in (hppa-tdep.o): Update dependencies.
852 2003-09-10 James E Wilson <wilson@specifixinc.com>
854 * MAINTAINERS: Change my e-mail address. Move to paper trail
857 2003-09-10 Kevin Buettner <kevinb@redhat.com>
859 * MAINTAINERS (frv): New ISA entry.
861 2003-09-10 Kevin Buettner <kevinb@redhat.com>
863 * frv-tdep.c (dis-asm.h): Include.
864 * Makefile.in (frv-tdep.o): Update dependencies.
866 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
868 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
869 Fix typo for high range of floating registers.
871 2003-09-09 David Carlton <carlton@kealia.com>
873 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
874 highpc initialization here out of scan_partial_symbols.
875 (scan_partial_symbols): Restructure into a recursive version,
876 calling add_partial_namespace and add_partial_enumeration when
878 (add_partial_namespace): New.
879 (add_partial_enumeration, locate_pdi_sibling): Ditto.
881 2003-09-09 Andrew Cagney <cagney@redhat.com>
883 * rs6000-tdep.c (ppc_push_return_address): Delete function.
884 (rs6000_push_dummy_call): Set LR to BP_ADDR.
885 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
886 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
888 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
889 (rs6000_push_dummy_call): Set the "TOC" register.
891 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
892 methods "max_register_raw_size", "max_register_virtual_size" or
893 "register_virtual_size".
895 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
897 * MAINTAINERS: Update my e-mail address.
899 2003-09-09 Andrew Cagney <cagney@redhat.com>
901 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
902 (rs6000_push_dummy_call): Store the struct return address.
903 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
905 2003-09-09 Andrew Cagney <cagney@redhat.com>
907 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
908 "ppc_sysv_abi_push_arguments".
909 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
910 "ppc_sysv_abi_push_arguments".
911 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
912 instead of "push_arguments".
913 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
915 2003-09-09 Andrew Cagney <cagney@redhat.com>
917 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
918 instead of CALL_DUMMY_ADDRESS.
920 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
922 * p-lang.c: Eliminate "register".
931 * objc-lang.c: Ditto.
933 2003-09-09 Nick Clifton <nickc@redhat.com>
935 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
937 2003-09-04 Andrew Cagney <cagney@redhat.com>
939 * avr-tdep.c: Include "dis-asm.h".
940 * cris-tdep.c: Include "dis-asm.h".
941 (cris_delayed_get_disassembler): Use "struct disassemble_info"
942 instead of corresponding typedef.
943 * h8300-tdep.c: Include "dis-asm.h".
944 * ia64-tdep.c: Include "dis-asm.h".
945 * i386-tdep.c: Include "dis-asm.h".
946 (i386_print_insn): Use "struct disassemble_info" instead of
947 corresponding typedef.
948 * m68k-tdep.c: Include "dis-asm.h".
949 * mcore-tdep.c: Include "dis-asm.h".
950 * mips-tdep.c: Include "dis-asm.h".
951 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
952 instead of corresponding typedef.
953 * ns32k-tdep.c: Include "dis-asm.h".
954 * s390-tdep.c: Include "dis-asm.h".
955 * sparc-tdep.c: Include "dis-asm.h".
956 * vax-tdep.c: Include "dis-asm.h".
957 * v850-tdep.c: Include "dis-asm.h".
958 * mn10300-tdep.c: Include "dis-asm.h".
959 * rs6000-tdep.c: Include "dis-asm.h".
960 * xstormy16-tdep.c: Include "dis-asm.h".
961 (_initialize_xstormy16_tdep): Delete "extern" declaration of
962 print_insn_xstormy16.
963 * Makefile.in (v850-tdep.o): Update dependencies.
964 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
965 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
966 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
967 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
968 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
969 (gdbarch_h): Remove $(dis_asm_h).
970 * disasm.c: Include "dis-asm.h".
971 (dis_asm_read_memory): Use "struct disassemble_info" instead of
972 corresponding typedef.
973 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
974 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
975 * gdbarch.sh: Do not include "dis-asm.h".
976 (struct disassemble_info): Declare opaque.
977 (TARGET_PRINT_INSN): Update declaration.
978 * gdbarch.h, gdbarch.c: Re-generate.
980 2003-09-08 Andrew Cagney <cagney@redhat.com>
982 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
983 CALL_DUMMY_ADDRESS, change to a predicate.
984 * gdbarch.h, gdbarch.c: Re-generate.
985 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
986 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
987 * infcall.c (call_function_by_hand): Ditto.
988 * sparc-tdep.c (sparc_push_return_address): Ditto.
989 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
990 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
991 CALL_DUMMY_ADDRESS with entry_point_address.
992 * v850-tdep.c (v850_push_return_address): Ditto.
993 * s390-tdep.c (s390_push_return_address): Ditto.
994 * rs6000-tdep.c (ppc_push_return_address): Ditto.
995 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
996 * mcore-tdep.c (mcore_push_return_address): Ditto.
997 * cris-tdep.c (cris_push_return_address): Ditto.
998 * arm-tdep.c (arm_push_return_address): Ditto.
1000 2003-09-08 Andrew Cagney <cagney@redhat.com>
1002 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1003 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1004 and REG_UNMODIFIED to REG_SAME_VALUE.
1005 (execute_cfa_program): Update.
1006 (dwarf2_frame_cache): Update. Initialize table to
1007 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1009 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1011 2003-09-08 Andrew Cagney <cagney@redhat.com>
1013 * gnu-nat.c: Remove "inline" function attribute.
1014 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1016 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1018 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1021 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1023 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1024 (frame_extra_info): Rename this struct to frv_unwind_cache.
1025 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1026 Add fields ``prev_sp'' and ``base''.
1027 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1028 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1029 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1031 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1032 Revise all callers. Fill in the unwind cache argument and make
1033 other adjustments to account for new frame mechanisms.
1034 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1035 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1036 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1037 (frv_frame_unwind, frv_frame_base): New structs.
1038 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1039 additional arguments expected by this method and adjust function
1041 (frv_gdbarch_init): Remove calls to the following functions:
1042 set_gdbarch_deprecated_init_frame_pc(),
1043 set_gdbarch_deprecated_saved_pc_after_call(),
1044 set_gdbarch_deprecated_frame_chain(),
1045 set_gdbarch_deprecated_frame_saved_pc(),
1046 set_gdbarch_deprecated_frame_init_saved_regs(),
1047 set_gdbarch_deprecated_push_arguments(),
1048 set_gdbarch_deprecated_push_return_address(),
1049 set_gdbarch_deprecated_pop_frame(),
1050 set_gdbarch_deprecated_call_dummy_words(),
1051 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1052 set_gdbarch_deprecated_init_extra_frame_info(),
1053 set_gdbarch_deprecated_dummy_write_sp(), and
1054 set_gdbarch_deprecated_pc_in_call_dummy().
1055 Add calls to the following functions:
1056 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1057 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1058 frame_base_set_default().
1059 * Makefile.in (frv-tdep.o): Update dependencies.
1061 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1063 * dwarf2-frame.c (read_encoded_value): Add support for
1064 DW_EH_PE_aligned encoding.
1066 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1068 * infrun.c (normal_stop): Don't print a message if the inferior
1071 2003-09-08 Jim Blandy <jimb@redhat.com>
1073 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1074 * dbxread.c: #include "gdb_assert.h".
1075 (read_dbx_symtab): If the objfile has no .data section, use the
1076 section index for the .bss section instead.
1078 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1080 * frame.c (deprecated_safe_get_selected_frame): New function.
1081 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1082 * findvar.c (read_var_value): Call it.
1084 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1086 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1087 (sh64-tdep.o): Add dependencies.
1088 * configure.tgt: Add FIXME to sh-*-linux*.
1089 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1090 (sh_gdbarch_init): Always set correct sh_show_regs function
1091 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1092 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1093 * sh64-tdep.c: New file, containing all sh64 related code from
1095 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1096 * config/sh/linux.mt (TDEPFILES): Ditto.
1097 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1098 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1099 * config/sh/wince.mt (TDEPFILES): Ditto.
1101 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1103 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1104 (stop_wait_callback): Handle !lp->signalled also.
1105 (lin_lwp_has_pending, flush_callback): New functions.
1106 (lin_lwp_wait): Call flush_callback.
1107 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1108 (linux_proc_pending_signals): New function.
1109 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1111 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1113 From Nick Kelsey <nickk@ubicom.com>:
1114 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1115 when the stop PC is at the beginning of a function also.
1117 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1119 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1120 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1122 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1124 * sol-thread.c: Include "gdb_string.h".
1126 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1128 * gcore.c: Reorder include files in alphabetical order. Include
1129 "gdb_assert.h". Various coding style fixes.
1130 (derive_stack_segment, derive_heap_segment): Replace check for
1131 non-null BOTTOM and TOP with gdb_assert.
1132 (derive_heap_segment): Replace check for successful creation of
1133 ZERO with gdb_assert.
1134 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1136 2003-09-04 Andrew Cagney <cagney@redhat.com>
1138 * thread-db.c (verbose_dlsym): New function.
1139 (thread_db_load): Use verbose_dlsym
1140 (thread_db_new_objfile): Print that libthread_db was loaded, and
1141 that thread debugging was enabled.
1143 2003-09-04 Andrew Cagney <cagney@redhat.com>
1145 * configure.tgt: Add "mips64*-*-*" target. Delete
1146 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1147 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1148 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1149 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1150 mips*-sony-*, and mips64*-*-elf* targets.
1151 * config/mips/embedl.mt: Delete file.
1152 * config/mips/embedl64.mt: Delete file.
1153 * config/mips/mips.mt: Delete file.
1154 * config/mips/mips64.mt: Delete file.
1155 * config/mips/tm-embed.h: Delete file.
1156 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1157 * config/mips/embed64.mt: Delete out-of-date comment.
1159 2003-09-04 Andrew Cagney <cagney@redhat.com>
1161 * hppa-tdep.c (hppa_gdbarch_init): Set
1162 "have_nonsteppable_watchpoint".
1163 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1164 * mips-tdep.c (mips_dump_tdep): Do not print
1165 HAVE_NONSTEPPABLE_WATCHPOINT.
1166 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1167 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1168 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1169 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1171 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1173 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1174 unused code. Add comment.
1176 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1178 * breakpoint.c (watchpoint_check): Check for pc being in an
1179 epilogue if watchpoint frame couldn't be found.
1181 2003-09-04 Andrew Cagney <cagney@redhat.com>
1183 * Makefile.in: Re-generate all dependencies.
1185 2003-09-03 Andrew Cagney <cagney@redhat.com>
1187 * arch-utils.h (legacy_print_insn): Delete declaration.
1188 * arch-utils.c (legacy_print_insn): Delete function.
1189 * disasm.c (deprecated_tm_print_insn_info): Delete.
1190 (_initialize_disasm): Delete function, contained code initializing
1191 deprecated_tm_print_insn_info.
1192 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1193 (deprecated_tm_print_insn_info): Delete.
1194 (TARGET_PRINT_INSN): Do not provide a default.
1195 * gdbarch.h, gdbarch.c: Re-generate.
1197 2003-09-03 Andrew Cagney <cagney@redhat.com>
1199 * disasm.c (fprintf_disasm): New function.
1200 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1201 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1202 reverts 2003-08-14 change.
1203 (_initialize_disasm): Call "init_disassemble_info", instead of
1204 INIT_DISASSEMBLE_INFO_NO_ARCH.
1206 2003-09-03 Michael Snyder <msnyder@redhat.com>
1208 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1210 2003-09-03 Andrew Cagney <cagney@redhat.com>
1212 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1213 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1214 * symfile.c (syms_from_objfile): Update.
1215 (reread_symbols): `Update
1216 * exec.c (exec_file_attach): Update.
1217 (exec_file_attach): Update.
1218 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1220 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1222 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1224 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1226 (arm_get_cache): Delete macro.
1227 (struct arm_prologue_cache): Update comments. Make saved_regs into
1228 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1230 (thumb_scan_prologue): Update for cache changes. Don't call
1231 DEPRECATED_PC_IN_CALL_DUMMY.
1232 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1233 argument and use it in desperation search for our prologue. Do not
1234 search past the specified PC.
1235 (arm_make_prologue_cache): Simplify.
1237 (arm_prologue_this_id, arm_prologue_prev_register)
1238 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1239 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1240 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1241 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1242 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1244 (arm_frame_chain_valid, arm_find_callers_reg)
1245 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1246 (arm_pop_frame): Delete obsolete methods.
1247 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1249 (arm_gdbarch_init): Update for new frame methods. Register prologue
1250 and sigtramp unwinders. Set the default frame base method.
1252 * Makefile.in (arm-tdep.o): Update dependencies.
1253 * varobj.c (find_frame_addr_in_frame_chain): Call
1254 get_frame_base_address.
1255 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1257 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1259 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1260 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1261 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1262 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1263 Take NEXT_FRAME and CACHE arguments. Call
1264 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1265 Set unwound_pc in CACHE instead of modifying the frame argument.
1266 Don't bother checking the frame type when looking for sigtramp
1268 (arm_make_prologue_cache, arm_frame_chain)
1269 (arm_init_extra_frame_info): New functions.
1271 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1273 * arm-tdep.c (arm_get_cache): Define.
1274 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1275 unwound_sp, unwound_pc, and saved_regs.
1276 (thumb_scan_prologue): Take a cache instead of the frame.
1277 (arm_scan_prologue): Likewise.
1278 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1279 instead of a temporary frame.
1280 (arm_init_extra_frame_info): Allocate and use a cache.
1281 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1283 2003-09-03 Andrew Cagney <cagney@redhat.com>
1285 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1286 * config/mips/wince.mt (TM_CLIBS): Ditto.
1287 * config/sh/wince.mt (TM_CLIBS): Ditto.
1288 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1289 * config/sparc/sp64.mt (CC): Delete.
1291 2003-09-03 Andrew Cagney <cagney@redhat.com>
1293 * defs.h: Do not include "arch-utils.h".
1294 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1295 GDB_MULTI_ARCH_PURE.
1296 * configure.in (GDB_MULTI_ARCH): Do not define.
1297 * configure, config.in: Regenerate.
1298 * configure.tgt: Do not set variable "gdb_multi_arch".
1299 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1300 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1301 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1302 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1303 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1304 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1305 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1306 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1307 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1308 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1309 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1310 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1311 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1312 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1313 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1314 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1315 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1316 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1318 2003-08-30 Michael Chastain <mec@shout.net>
1320 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1321 * config/m68k/nm-hp300hpux.h: Delete.
1322 * config/m68k/tm-hp300hpux.h: Delete.
1323 * config/m68k/xm-hp300hpux.h: Delete.
1324 * config/m68k/xm-hp300bsd.h: Delete.
1325 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1326 tm-hp300hpux.h, xm-hp300hpux.h.
1327 * somsolib.c: Remove comment about hp300 shared libraries.
1329 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1331 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1332 Only define PTRACE_GET_THREAD_AREA is not already defined.
1333 Various style fixes in code and comments and some additional
1334 spelling fixes in comments. Move after functions dealing with
1336 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1339 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1340 frame_unwind_register_unsigned instead of
1341 frame_unwind_unsigned_register.
1343 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1345 * configure.in: Search for gethostbyname in libnsl.
1346 * configure: Regenerated.
1348 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1350 * configure.in: Remove redundant AC_MSG_RESULT in check for
1351 uintptr_t in stdint.h.
1352 * configure: Regenerated.
1354 * amd64-nat.h (struct regcache): Add opaque declaration.
1356 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1357 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1358 Change "register array" to "register cache" in comments.
1359 (x86_64_linux_gregset64_reg_offset): New variable.
1360 (GETREGS_SUPPLIES): Remove macro.
1361 (supply_gregset): Call amd64_supply_native_gregset instead of
1362 x86_64_linux_supply_gregset.
1363 (fill_gregset): Rename `regno' to `regnum'. Call
1364 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1365 (store_regs): Rename `regno' to `regnum'.
1366 (store_fpregs): Rename `regno' to `regnum'.
1367 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1368 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1369 Reorganize function a bit.
1370 (store_inferior_registers): Rename `regno' to `regnum'. Use
1371 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1372 Reorganize function a bit.
1373 (_initialize_x86_64_linux_nat): New function.
1374 * config/i386/x86-64linux.mh.
1376 2003-08-29 Andrew Cagney <cagney@redhat.com>
1378 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1379 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1380 (target_remove_watchpoint): Delete macro.
1381 (target_insert_watchpoint): Delete macro.
1382 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1383 (remote_mips_stopped_by_watchpoint): Delete declaration.
1384 (remote_mips_remove_watchpoint): Delete declaration.
1385 (remote_mips_set_watchpoint): Delete declaration.
1386 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1387 * remote-mips.c (_initialize_remote_mips): Set
1388 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1389 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1390 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1391 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1392 (mips_stopped_by_watchpoint): Rename
1393 remote_mips_stopped_by_watchpoint.
1394 (mips_can_hardware_watchpoint): Rename
1395 remote_mips_can_use_hardware_watchpoint, update function
1398 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1400 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1401 USER_DS. We haven't given them a register number yet.
1403 * amd64-nat.h: New file.
1404 * amd64-nat.c: New file.
1405 * amd64fbsd-nat.c: Include "amd64-nat.h".
1406 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1407 (amd64fbsd32_r_reg_offset): New variable.
1408 (supply_gregset): Simply call amd64_supply_native_gregset.
1409 (fill_gregset): Rename `regno' to `regnum'. Simply call
1410 amd64_collect_native_gregset.
1411 (fill_fpregset): Rename `regno' to `regnum'.
1412 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1413 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1414 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1415 `fpregset_t'. Call amd64_supply_native_gregset instead of
1416 supply_gregset. Call x86_64_supply_fxsave instead of
1418 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1419 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1420 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1421 `fpregset_t'. Call amd64_collect_native_gregset instead of
1422 fill_gregset. Call x86_64_collect_fxsave instead of
1424 (_initialize_am64fbsd_nat): Initialize
1425 amd64_native_gregset32_reg_offset and
1426 amd64_native_gregset64_reg_offset.
1427 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1429 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1430 null pointer. Fix typo in comment.
1432 * regcache.c (supply_register): Reimplement to call
1433 regcache_raw_supply.
1434 (regcache_collect): Reimplement by calling regcache_raw_collect.
1436 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1438 * regcache.c (register_buffer): Consitify first argument.
1439 (regcache_raw_supply, regcache_raw_collect): New
1442 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1444 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1445 by Nathan J. Williams.
1447 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1449 * lin-lwp.c (wait_lwp): New function, copied from
1450 stop_wait_callback. Clean up.
1451 (stop_wait_callback): Use wait_lwp.
1453 2003-08-28 Andrew Cagney <cagney@redhat.com>
1455 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1456 flavour and disassembler options.
1457 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1458 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1459 deprecated_tm_print_insn_info.
1461 2003-08-27 Andrew Cagney <cagney@redhat.com>
1463 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1464 Use target_read_memory.
1465 (s390_get_frame_info): Update. Do not reference
1466 deprecated_tm_print_insn_info.
1467 (s390_check_function_end, s390_is_sigreturn): Ditto.
1469 2003-08-27 Andrew Cagney <cagney@redhat.com>
1471 * Makefile.in (cris-tdep.o): Update dependencies.
1472 * cris-tdep.c: Include "gdb_assert.h".
1473 (cris_gdbarch_init): Set print_insn.
1474 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1475 (cris_delayed_get_disassembler): Simplify, directly call the
1476 disassembler returned by cris_get_disassembler.
1477 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1478 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1479 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1480 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1481 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1482 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1483 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1484 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1485 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1486 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1487 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1488 (gdb_print_insn_sparc): Delete function.
1489 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1490 deprecated_tm_print_insn_info.
1491 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1492 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1493 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1494 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1495 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1496 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1497 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1498 (s390_gdbarch_init): Set print_insn.
1500 2003-08-27 Andrew Cagney <cagney@redhat.com>
1502 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1503 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1504 * infcall.c (call_function_by_hand): Convert the entry point
1505 address into a code address.
1507 2003-08-27 Andrew Cagney <cagney@redhat.com>
1509 * dsrec.c: Include "gdb_string.h".
1510 * Makefile.in (dsrec.o): Update dependencies.
1512 2003-08-27 Michael Chastain <mec@shout.net>
1514 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1516 2003-08-27 Andrew Cagney <cagney@redhat.com>
1518 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1519 (alpha_osf1_init_abi): Do not set call_dummy_address.
1521 2003-08-27 David Carlton <carlton@kealia.com>
1523 From Randolph Chung <tausq@debian.org>:
1524 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1525 compiles with -Wformat-nonliteral -Werror.
1527 2003-08-26 Jim Blandy <jimb@redhat.com>
1529 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1530 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1531 bfd_lookup_symbol, since we only want symbols in code sections.
1532 (look_for_base): Pass zero as the SECT_FLAGS argument to
1533 bfd_lookup_symbol, since we're not concerned about which section
1536 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1538 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1539 we are frameless or the return address register is already known.
1541 2003-08-26 Andrew Cagney <cagney@redhat.com>
1543 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1544 in size. Add comments.
1546 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1548 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1549 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1551 2003-08-26 Jason Merrill <jason@redhat.com>
1553 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1554 case out of #ifdef MIPS block.
1556 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1559 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1560 available before calling SECT_OFF_TEXT.
1561 * PROBLEMS: Remove description of java/1322.
1563 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1565 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1566 bof, and nat0-nat127 as pseudo-registers.
1567 (ia64_frame_cache): New struct used to cache frame info.
1568 (ia64_register_reggroup_p): New routine used to override default
1569 register grouping so registers without names are still saved and
1571 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1573 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1574 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1575 (ia64_alloc_frame_cache): New routine to create a new
1577 (examine_prologue): Change prototype to add next_frame pointer.
1578 Assume frameless until otherwise proven. Verify that the cfm for
1579 current frame matches the cfm that should occur for the prologues
1580 alloc insn and if equal, mark as not frameless. At end of routine,
1581 if not frameless, calculate registers for the previous frame and store
1582 in the cache, if a cache is provided.
1583 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1584 and pass 0 for next_frame.
1585 (ia64_store_return_value): Change to use convert_typed_floating()
1586 instead of calling ia64_convert_to_raw().
1587 (ia64_extract_return_value): Change to use convert_typed_floating()
1588 instead of calling ia64_convert_to_virtual().
1589 (ia64_frame_cache): New routine to support new frame model.
1590 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1591 (ia64_frame_sniffer): Ditto.
1592 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1593 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1594 (ia64_sigtramp_frame_prev_register): Ditto.
1595 (ia64_sigtramp_frame_sniffer): Ditto.
1596 (ia64_frame_base_address): Ditto.
1597 (ia64_extract_struct_value_address): Change to issue error message.
1598 (ia64_frame_align): New routine to align sp.
1599 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1600 (ia64_push_arguments): Removed. Logic moved to
1601 ia64_push_dummy_call().
1602 (ia64_push_return_address): Ditto.
1603 (ia64_unwind_dummy_id): New function.
1604 (ia64_unwind_pc): Ditto.
1605 (ia64_convert_register_p): Ditto.
1606 (ia64_register_to_value): Ditto.
1607 (ia64_value_to_register): Ditto.
1608 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1609 (ia64_register_byte, ia64_register_raw_size): Ditto.
1610 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1611 (ia64_saved_pc_after_call): Ditto.
1612 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1613 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1614 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1615 (ia64_register_convert_to_raw): Ditto.
1616 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1617 (ia64_init_extra_frame_info): Ditto.
1618 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1619 (ia64_gdbarch_init): Remove registering of deprecated functions that
1620 are no longer used. Add registration of new gdbarch functions.
1621 Remove registering deprecated_write_sp. Replace
1622 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1623 Delete set_gdbarch_deprecated_register_convertible(),
1624 set_gdbarch_deprecated_register_convert_to_virtual(), and
1625 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1626 set_gdbarch_deprecated_register_size(),
1627 set_gdbarch_deprecated_register_bytes(),
1628 set_gdbarch_pcregnum(),
1629 set_gdbarch_deprecated_register_byte(),
1630 set_gdbarch_deprecated_register_raw_size(),
1631 set_gdbarch_deprecated_max_register_raw_size(),
1632 set_gdbarch_deprecated_register_virtual_size(),
1633 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1634 Replace set_gdbarch_deprecated_extract_return_value() with
1635 set_gdbarch_extract_return_value(). Remove calls to:
1636 set_gdbarch_deprecated_saved_pc_after_call();
1637 set_gdbarch_deprecated_frame_chain(),
1638 set_gdbarch_deprecated_frame_saved_pc(),
1639 set_gdbarch_deprecated_frame_init_saved_regs(),
1640 set_gdbarch_deprecated_get_saved_register(),
1641 set_gdbarch_deprecated_call_dummy_words(),
1642 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1643 set_gdbarch_deprecated_init_extra_frame_info(),
1644 set_gdbarch_deprecated_frame_args_address(),
1645 set_gdbarch_deprecated_frame_locals_address(),
1646 and set_gdbarch_deprecated_dummy_write_sp().
1647 Add set_gdbarch_convert_register_p(),
1648 set_gdbarch_register_to_value(),
1649 set_gdbarch_value_to_register(),
1650 set_gdbarch_push_dummy_call(),
1651 set_gdbarch_frame_align(),
1652 set_gdbarch_unwind_dummy_id(),
1653 set_gdbarch_unwind_pc(),
1654 frame_unwind_append_sniffer(),
1655 frame_unwind_append_sniffer(),
1656 and frame_base_set_default().
1658 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1660 * configure.tgt: Document need for special "mipsisa64" handling.
1661 (mipsisa64*-*-linux64): Handle as target linux64.
1662 (mipsisa64*-*-*): Handle as target embed64.
1664 2003-08-18 Michael Chastain <mec@shout.net>
1666 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1669 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1671 * i387-tdep.h: Update copyright date.
1672 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1674 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1675 CFLAGS games to reflect reality.
1677 2003-08-24 Andrew Cagney <cagney@redhat.com>
1679 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1680 GDB_MULTI_ARCH is always non-zero.
1681 * osabi.c (_initialize_gdb_osabi): Ditto.
1682 (gdbarch_init_osabi): Ditto.
1683 * sparc-tdep.c: Ditto for #if code.
1685 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1687 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1689 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1691 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1692 x86_64_supply_fxsave.
1693 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1694 x86_64_supply_fxsave.
1695 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1696 x86_64_supply_fxsave.
1698 2003-08-23 Andreas Jaeger <aj@suse.de>
1700 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1703 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1705 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1706 i387_supply_register.
1707 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1708 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1710 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1712 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1714 * i386bsd-nat.c (supply_fpregset): Adjust call to
1716 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1717 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1719 (store_inferior_registers): Remove extraneous whitespace. Call
1720 i387_fill_fsave instead of fill_fpregset.
1721 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1722 (supply_fpregset): Likewise.
1723 * i386v4-nat.c (supply_fpregset): Adjust call to
1725 * i386-interix-nat.c (supply_fpregset): Adjust call to
1727 * i386-linux-nat.c (supply_fpregset): Adjust call to
1729 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1730 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1731 i387supply_fsave and i387_supply_fxsave.
1732 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1733 Incorporate code from `i387_supply_register.
1734 (i387_supply_register): Remove.
1735 (i387_supply_fxsave): Add `regnum' argument.
1737 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1739 (i387_supply_register): remove prototype.
1742 2003-08-22 Michael Chastain <mec@shout.net>
1744 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1745 Add lines for files in gdb/testsuite/gdb.cp/* that are
1746 still not 8.3 unique.
1748 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1750 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1751 TYPE_VPTR_FIELDNO is valid.
1753 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1755 * utils.c (set_width_command): Remove prototypes.
1756 (set_screen_size): New prototype.
1757 (init_page_info): Simplify by fetching the screen size from
1758 Readline. Call set_screen_size.
1759 (set_screen_size): New function.
1760 (set_width): Add missing whitespace in comment.
1761 (set_width_command): Call set_screen_size.
1762 (set_height_command): New function.
1763 (initialize_utils): Fix formatting. Make "set height" command
1764 call set_height_command. Remove redundant code that turns off
1765 pagination if output isn't a terminal. Remove redundant call to
1768 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1770 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1771 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1772 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1773 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1775 (sparc64_register_info): Give the reister with number
1776 SPARC64_STATE_REGNUM a name.
1777 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1779 (sparc64_push_dummy_call): Take BIAS into account when checking
1781 (sparc_software_single_step): Remove assertions that check whether
1782 NPC and NNPC were zero.
1783 (sparc_supply_rwindow): Make public. Merge functionality with
1784 sparc64_supply_rwindow.
1785 (sparc_fill_rwindow): Make public. Merge functionality with
1786 sparc64_fill_rwindow.
1787 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1788 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1789 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1790 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1791 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1793 * reggroups.c: Add whitespace after declarations of local
1794 variables in functions.
1796 2003-08-21 Michael Chastain <mec@shout.net>
1798 * gdbtypes.h: Change array bound type from an int to enum.
1800 2003-08-21 Andrew Cagney <cagney@redhat.com>
1802 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1803 * config/sparc/tm-sparc.h: Ditto.
1804 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1806 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1808 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1810 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1811 (register_objfile_data, set_objfile_data, objfile_data): New
1813 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1815 (allocate_objfile): Call objfile_alloc_data.
1816 (free_objfile): Call objfile_free_data.
1817 (struct objfile_data): New.
1818 (struct objfile_data_registration): New.
1819 (struct objfile_data_registry): New.
1820 (objfile_data_registry): New variable.
1821 (register_objfile_data): New function.
1822 (objfile_alloc_data, objfile_free_data): New functions.
1823 (set_objfile_data, objfile_data): New functions.
1824 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1825 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1826 (_initialize_dwarf2_frame): New function and prototype.
1828 2003-08-21 Andrew Cagney <cagney@redhat.com>
1830 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1831 a specific architecture.
1832 * arch-utils.h (set_architecture_from_arch_mach): Delete
1834 (target_architecture_hook): Delete declaration.
1835 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1836 (default_float_format): Assume GDB_MULTI_ARCH.
1837 (default_double_format): Assume GDB_MULTI_ARCH.
1838 (set_endian_from_file): Delete function.
1839 (arch_ok): Delete function.
1840 (set_arch): Delete function.
1841 (set_architecture_from_arch_mach): Delete function.
1842 (set_architecture_from_file): Delete function.
1843 (set_architecture): Assume GDB_MULTI_ARCH.
1844 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1846 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1848 Rewrite FreeBSD/sparc64 native configuration.
1849 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1850 * sparc64fbsd-nat.c: New file.
1851 * sparc64fbsd-tdep.c: New file.
1852 * sparc64-tdep.c sparc64-tdep.h: New files.
1853 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1854 sparc64fbsd-tdep.o): New dependencies.
1855 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1856 and sparc64fbsd-tdep.c.
1857 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1858 * config/sparc/fbsd.mh: Remove copyright notice.
1859 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1861 * config/sparc/fbsd.mt: Remove copyright notice.
1862 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1863 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1864 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1865 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1866 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1867 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1868 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1869 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1871 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1872 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1874 2003-08-21 Michael Chastain <mec@shout.net>
1876 * symtab.h: Add doco on the space critical structures and
1877 some measurements of space usage.
1879 2003-08-21 Michael Snyder <msnyder@redhat.com>
1881 * tracepoint.c (trace_dump_command): Trace break address
1882 is subject to DECR_PC_AFTER_BREAK.
1883 (set_traceframe_context): Make "trace_line" an int.
1884 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1886 2003-08-20 Michael Snyder <msnyder@redhat.com>
1888 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1889 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1890 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1892 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1893 functions, replace sh_push_dummy_call.
1894 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1896 2003-08-20 Michael Chastain <mec@shout.net>
1898 * gdbtypes.h (struct main_type): Rearrange to save space.
1900 2003-08-20 Michael Snyder <msnyder@redhat.com>
1902 * trad-frame.c: Comment typo fix.
1904 2003-08-20 Michael Snyder <msnyder@redhat.com>
1905 Kevin Buettner <kevinb@redhat.com>
1907 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1908 (frv_frame_init_saved_regs): Add declaration.
1909 (frame_extra_info): Add new field ``saved_regs''.
1910 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1911 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1912 Update frame related code.
1913 (frv_extract_struct_value_address): Adjust formatting.
1914 * Makefile.in (frv-tdep.o): Update dependencies.
1915 * config/frv/tm-frv.h (target_insert_watchpoint)
1916 (target_remove_watchpoint, target_insert_hw_breakpoint)
1917 (target_remove_hw_breakpoint): Delete these macros.
1918 (remote_insert_watchpoint, remote_remove_watchpoint)
1919 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1922 2003-08-20 Michael Chastain <mec@shout.net>
1924 * defs.h (ENUM_BITFIELD): New macro.
1925 * symtab.h (ENUM_BITFIELD): Use it.
1926 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1928 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1930 * MAINTAINERS (write after approval): Add myself.
1932 2003-08-18 Andrew Cagney <cagney@redhat.com>
1934 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1935 * gdbarch.h, gdbarch.c: Re-generate.
1936 * infcall.c (call_function_by_hand): Adjust the SP by
1937 frame_red_zone_size before allocating any stack space.
1938 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1939 * x86-64-tdep.c (x86_64_frame_align): New function.
1940 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1942 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1943 Remove code adjusting SP so that it skips over the Red Zone.
1945 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1947 * NEWS (New native configurations): Mention FreeBSD/amd64.
1949 2003-08-18 Andrew Cagney <cagney@redhat.com>
1951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1952 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1954 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1956 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1958 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1960 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1962 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1964 * i386-linux-nat.c: Include "linux-nat.h".
1965 (child_post_startup_inferior): New function.
1967 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1969 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1970 at the start of a frameless function. This probably fixes PR
1973 2003-08-17 Michael Chastain <mec@shout.net>
1975 * symfile.c (find_sym_fns): Remove special case for apollo target.
1977 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1979 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1980 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1981 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1982 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1983 (linux_supports_tracevforkdone): New function.
1984 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1986 (child_follow_fork): Handle vfork.
1987 (linux_handle_extended_wait): Likewise. Also handle exec.
1988 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1989 * NEWS: Mention fork tracing.
1991 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1993 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1995 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1997 * Makefile.in (i386-linux-nat.o): Update dependencies.
1998 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1999 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2000 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2001 * i386-linux-nat.c: Include "linux-nat.h".
2002 (child_post_startup_inferior): New function.
2003 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2004 * infptrace.c (kill_inferior): Wrap in #ifdef.
2005 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2006 attaching to each LWP.
2007 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2008 (init_lin_lwp_ops): Fill in some more operations.
2009 * linux-nat.h (linux_enable_event_reporting)
2010 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2012 * linux-nat.c (linux_enable_event_reporting): New function.
2013 (child_post_attach, linux_child_post_startup_inferior)
2014 (child_post_startup_inferior, child_follow_fork)
2015 (linux_handle_extended_wait, kill_inferior): New functions.
2017 2003-08-16 Andrew Cagney <cagney@redhat.com>
2019 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2020 * gdbarch.h, gdbarch.c: Re-generate.
2022 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2024 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2026 2003-08-16 Andrew Cagney <cagney@redhat.com>
2028 * NEWS: Mention that "set prompt-escape-char" was deleted.
2029 * top.c (get_prompt_1): Delete function.
2030 (gdb_prompt_escape):
2031 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2032 prompt-escape-char" command.
2033 (MAX_PROMPT_SIZE): Delete macro.
2034 (get_prompt): Simplify, do not call get_prompt_1.
2036 2003-08-16 Andrew Cagney <cagney@redhat.com>
2038 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2039 -Werror. -Wformat-nonliteral problems.
2041 2003-08-15 J. Brobecker <brobecker@gnat.com>
2043 Further multiarching work mostly for hppa64-*-hpux11:
2044 * hppa-tdep.h: New file.
2045 * hppa-tdep.c: #include hppa-tdep.c.
2046 (hppa32_num_regs): Renamed from hppa_num_regs.
2047 (hppa64_num_regs): New constant.
2048 (hppa64_call_dummy_breakpoint_offset): New constant.
2049 (hppa32_call_dummy_length): New constant.
2050 (hppa64_call_dummy_length): New constant.
2051 (hppa32_stack_align): Make name 32bit explicit.
2052 (hppa32_register_virtual_type): Likewise.
2053 (hppa32_extract_return_value): Likewise.
2054 (hppa32_use_struct_convention): Likewise.
2055 (hppa32_store_return_value): Likewise.
2056 (hppa64_register_virtual_type): New function.
2057 (hppa64_extract_return_value): New function.
2058 (hppa64_use_struct_convention): New function.
2059 (hppa64_store_return_value): New function.
2060 (hppa_frame_locals_address): Remove declaration, function does
2062 (hppa_register_byte): Add support for PA64 ABI.
2063 (hppa_gdbarch_init): Add support for PA64 ABI.
2064 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2065 Make name 32bit explicit.
2066 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2067 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2068 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2069 (hppa64_hpux_frame_base_before_sigtramp): New function.
2070 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2071 * config/pa/tm-hppa64.h: Remove macros that are no longer
2072 necessary now that the gdbarch vector is properly setup.
2073 Transform some macros into function calls. Some minor cleanup.
2074 * config/pa/tm-hppah.h: Update function calls in macros
2075 following the function renaming in hppa-hpux-tdep.c.
2076 * Makefile.in (hppa_tdep_h): New variable.
2077 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2079 2003-08-14 Michael Snyder <msnyder@redhat.com>
2081 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2083 2003-08-13 J. Brobecker <brobecker@gnat.com>
2085 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2086 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2089 2003-08-13 Michael Snyder <msnyder@redhat.com>
2091 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2092 (frv_saved_pc_after_call): Use deprecated ftype.
2093 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2094 (frv_remote_translate_xfer_address): Remove.
2095 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2097 2003-08-13 J. Brobecker <brobecker@gnat.com>
2099 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2100 initialization after the common gdbarch initialization, not before.
2102 2003-08-13 J. Brobecker <brobecker@gnat.com>
2104 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2105 (ADDR_BITS_REMOVE): Remove, redundant.
2107 2003-08-13 J. Brobecker <brobecker@gnat.com>
2109 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2110 gdbarch method to clear the 2 low bits of text addresses.
2112 2003-08-12 Andrew Cagney <cagney@redhat.com>
2114 * Makefile.in (dsrec.o): Update dependencies.
2115 * dsrec.c: Include "gdb_assert.h".
2116 (make_srec): Use snprintf instead of sprintf, use a literal format
2119 2003-08-12 Andrew Cagney <cagney@redhat.com>
2121 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2122 FRAME_OBSTACK_ZALLOC.
2124 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2126 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2129 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2131 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2132 amd64fbsd_sc_reg_offset): Add extern declarations.
2133 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2136 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2138 * MAINTAINERS (write after approval): Update my mail address.
2140 2003-08-10 Andrew Cagney <cagney@redhat.com>
2142 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2144 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2146 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2147 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2148 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2149 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2150 i386bsd_sc_reg_offset): Add extern declarations.
2151 * i386obsd-nat.c: Include "i386-tdep.h"
2152 (_initialize_i386obsd_nat): Remove extern declarations.
2153 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2155 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2158 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2159 instead of frame_read_register.
2160 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2161 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2163 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2164 instead of frame_unwind_unsigned_register. Use
2165 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2166 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2167 instead of read_register. Use builtin_type_void_data_ptr instead
2168 of builtin_type_void_func_ptr when extracting the address of the
2170 (i386_extract_return_value, i386_store_return_value,
2171 i386_pseudo_register_read, i386_pseudo_register_write): Use
2172 register_size instead REGISTER_RAW_SIZE.
2174 2003-08-10 Andrew Cagney <cagney@redhat.com>
2176 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2177 sprintf. Make "name" constant.
2179 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2181 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2182 instead of frame_read_register.
2183 (i387_print_float_info): Use get_frame_register and
2184 get_frame_register_unsigned instead of frame_register_read.
2186 * i386fbsd-nat.c: Include "i386-tdep.h".
2187 (child_resume): Make `eflags' an ULONGEST. Use
2188 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2189 instead of register_read and register_write.
2191 * i386bsd-nat.c (fetch_inferior_registers,
2192 store_inferior_registers): Don't use && at the end of a line.
2193 (_initialize_i386bsd_nat): Fix typo.
2195 * frame.c (_initialize_frame): Add missing backslash.
2197 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2198 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2199 and supply_register instead of manipulating the register buffer
2202 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2203 * config/i386/nm-i386sol2.h
2204 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2206 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2207 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2208 instructions that GCC likes to mingle into the prologue. Fixes
2209 gdb/1253 and gdb/1255.
2211 2003-08-09 Andrew Cagney <cagney@redhat.com>
2214 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2215 * command.h (add_setshow_uinteger_cmd): Declare.
2216 * frame.c (set_backtrace_cmd): New function.
2217 (show_backtrace_cmd): New function.
2218 * frame.c (_initialize_frame): Replace "set/show
2219 backtrace-below-main" with "set/show backtrace past-main". Add
2220 command "set/show backtrace limit".
2221 (backtrace_past_main): Rename "backtrace_below_main".
2222 (backtrace_limit): New variable.
2223 (get_prev_frame): Update. Check the backtrace_limit.
2225 2003-08-09 Andrew Cagney <cagney@redhat.com>
2227 * defs.h (xstrprintf): Declare.
2228 * utils.c (xstrprintf): New function.
2229 * breakpoint.c (insert_breakpoints): Replace sprintf and
2230 non-literal format strings, with xstrprintf and cleanups.
2231 (delete_breakpoint,breakpoint_re_set): Ditto.
2232 (commands_command, insert_breakpoints): Ditto.
2233 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2234 (break_at_finish_command_1): Ditto.
2236 2003-08-09 Andrew Cagney <cagney@redhat.com>
2238 * MAINTAINERS (language support): List Adam Fedor as Objective C
2241 2003-08-08 J. Brobecker <brobecker@gnat.com>
2243 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2244 are now multiarched.
2246 2003-08-08 J. Brobecker <brobecker@gnat.com>
2248 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2249 longer necessary now that hppa64 is partially multiarch'ed.
2251 2003-08-08 Andrew Cagney <cagney@redhat.com>
2253 * interps.c (interp_set): Check for a NULL "old_interp".
2255 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2257 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2258 (install-only): Support DESTDIR.
2259 (uninstall): Likewise.
2260 (install-gdbtk): Likewise.
2262 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2264 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2265 contains something meaningful at all times.
2267 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2269 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2271 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2273 * MAINTAINERS (write after approval): Added self.
2275 2003-08-07 Andrew Cagney <cagney@redhat.com>
2277 * inferior.h (AT_SYMBOL): Define.
2278 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2279 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2280 * mips-tdep.c (mips_call_dummy_address): Delete function.
2281 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2282 set call_dummy_address.
2284 2003-08-07 Andrew Cagney <cagney@redhat.com>
2286 * language.c (op_error): Delete function.
2287 (binop_type_check): Delete function.
2288 * language.h (type_op_error, range_op_error): Delete macros.
2289 (op_error): Delete declaration.
2291 2003-08-07 Andrew Cagney <cagney@redhat.com>
2293 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2295 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2297 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2298 (x86_64_push_arguments): Skip the red zone.
2300 2003-08-05 Andrew Cagney <cagney@redhat.com>
2302 * reggroups.c (reggroup_next): Check for the final entry.
2304 2003-08-04 Andrew Cagney <cagney@redhat.com>
2306 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2307 * cli/cli-script.c (define_command): Call query directly, instead
2308 of passing it a buffer.
2309 * ocd.c (ocd_error): Pass error a constant format string.
2310 * remote-mips.c (mips_error): Use fputs_filtered.
2312 * solib-svr4.c (_initialize_svr4_solib): Update
2313 register_gdbarch_data call.
2314 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2316 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2317 (register_gdbarch_data): Delete "free" parameter. Update
2319 * gdbarch.h, gdbarch.c: Re-generate.
2320 * reggroups.c (_initialize_reggroup): Update.
2321 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2322 * frame-base.c (_initialize_frame_base): Update.
2323 * frame-unwind.c (_initialize_frame_unwind): Update.
2324 * user-regs.c (_initialize_user_regs): Update.
2325 * remote.c (_initialize_remote): Update.
2326 * regcache.c (_initialize_regcache): Update.
2328 * regcache.c (xfree_regcache_descr): Delete function.
2329 (_initialize_regcache): Update call to register_gdbarch_data.
2330 (init_regcache_descr, init_legacy_regcache_descr): Use
2331 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2333 * remote.c (free_remote_state): Delete function.
2334 (_initialize_remote): Update register_gdbarch_data.
2335 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2336 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2338 2003-08-04 Andrew Cagney <cagney@redhat.com>
2340 * reggroups.c (struct reggroup_el): Define.
2341 (struct reggroups): Delete field "nr_group". Replace array
2342 "group" with a "first" to "last" linked list.
2343 (reggroups_init): Update. Allocate using gdbarch's obstack.
2344 (reggroups_free): Delete function.
2345 (add_group): Update. Add "el" parameter.
2346 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2347 (default_groups): Update.
2348 (reggroup_next): Replace reggroups.
2349 (reggroups_dump): Update.
2350 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2351 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2352 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2354 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2356 * Makefile.in (tui-interp.o): Update dependencies.
2358 2003-08-04 David Carlton <carlton@kealia.com>
2360 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2361 to internal_error call.
2362 * source.c (forward_search_command): Add "%s" format argument.
2363 (reverse_search_command): Ditto.
2364 * top.c (quit_confirm): Ditto.
2365 * cli/cli-setshow.c (do_setshow_command): Ditto.
2366 * cp-valprint.c (cp_print_class_method): Replace
2367 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2368 (cp_print_class_member): Ditto.
2369 * event-top.c (command_line_handler): Ditto.
2370 * linux-proc.c (linux_info_proc_cmd): Ditto.
2371 * p-typeprint.c (pascal_type_print_base): Ditto.
2372 * p-valprint.c (pascal_object_print_class_method): Ditto.
2373 (pascal_object_print_class_member): Ditto.
2374 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2375 * remote.c (remote_cisco_section_offsets): Ditto.
2376 * top.c (command_line_input): Ditto.
2377 * utils.c (vwarning,error_stream,quit): Ditto.
2378 * valprint.c (print_floating,print_binary_chars)
2379 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2381 2003-08-04 Andrew Cagney <cagney@redhat.com>
2383 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2385 2003-08-02 Andrew Cagney <cagney@redhat.com>
2387 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2388 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2391 2003-08-02 Andrew Cagney <cagney@redhat.com>
2393 * Makefile.in: Update all dependencies and definitions.
2395 2003-08-02 Adam Fedor <fedor@gnu.org>
2397 * linespec.c (is_objc_method_format): New function
2398 (decode_line_1, locate_first_half): Use it.
2401 2003-08-01 Andrew Cagney <cagney@redhat.com>
2403 * NEWS: Mention that m32r is multi-arch.
2404 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2405 * configure.tgt: Recognize m32r-*-*.
2406 * config/m32r/tm-m32r.h: Delete file.
2407 * config/m32r/m32r.mt: New file.
2408 * m32r-rom.c (m32r_upload_command): Use hostent only when
2409 gethostname succeeds, in order to avoid a compilation
2411 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2414 2003-08-01 Michael Snyder <msnyder@redhat.com>
2416 * sh-tdep.c (sh_frame_align): New gdbarch method.
2417 (sh_gdbarch_init): Set up frame_align method.
2419 2003-07-31 Michael Snyder <msnyder@redhat.com>
2421 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2422 which is already covered by the new frames infrastructure.
2424 2003-07-31 Andrew Cagney <cagney@redhat.com>
2426 * user-regs.c (struct user_reg): Add "next" link.
2427 (struct user_regs): Replace "user" with "first" and "last" links.
2428 (append_user_reg): Add pre-allocated "reg" parameter.
2429 (builtin_user_regs): Provide initial value for "last".
2430 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2431 (user_regs_init): Allocate memory from the gdbarch obstack.
2432 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2433 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2435 (usernum_to_user_reg): New function.
2436 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2437 (value_of_user_reg): Use usernum_to_user_reg.
2438 (user_regs_free): Delete function.
2439 (_initialize_user_regs): Update register_gdbarch_data call.
2441 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2443 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2445 2003-07-30 Michael Snyder <msnyder@redhat.com>
2447 * value.h (value_being_returned): Add a struct_addr argument.
2448 * infcall.c (call_function_by_hand): Pass struct_addr to
2449 value_being_returned.
2450 * infcmd.c (print_return_value): Pass zero as struct_addr.
2451 * values.c (value_being_returned): If struct_addr is passed,
2452 use it instead of trying to recover it from the inferior.
2454 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2456 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2457 the prologue analyzer won't need to attempt to extract the pc
2458 value from the woefully incomplete dummy frame.
2459 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2460 possible. Disable code which modifies the frame.
2462 2003-07-28 Andrew Cagney <cagney@redhat.com>
2464 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2466 (annotate_breakpoints_table, annotate_record): Ditto.
2467 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2468 (annotate_field_name_end, annotate_field_value): Ditto.
2469 (annotate_field_end, annotate_frame_source_begin): Ditto.
2470 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2471 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2472 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2473 (annotate_frame_address_end, annotate_frame_address): Ditto.
2474 (annotate_frame_args, annotate_frame_end): Ditto.
2475 (annotate_frame_where, annotate_arg_begin): Ditto.
2476 (annotate_arg_name_end, annotate_arg_value): Ditto.
2477 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2478 (annotate_function_call, annotate_signal_name): Ditto.
2479 (annotate_signal_string, annotate_signal_name_end): Ditto.
2480 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2481 (annotate_value_begin, annotate_value_history_value): Ditto.
2482 (annotate_value_history_end, annotate_value_end): Ditto.
2483 (annotate_display_begin, annotate_display_number_end): Ditto.
2484 (annotate_display_format, annotate_display_expression): Ditto.
2485 (annotate_display_expression_end, annotate_display_value): Ditto.
2486 (annotate_display_end, annotate_array_section_begin): Ditto.
2487 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2488 (annotate_elt, annotate_array_section_end): Ditto.
2490 2003-07-28 Andrew Cagney <cagney@redhat.com>
2492 * regcache.c (struct regcache_descr): Update comments on
2494 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2495 sizeof_raw_register_valid_p.
2496 (init_regcache_descr): Set nr_raw_registers and
2497 sizeof_raw_register_valid_p before calling
2498 init_legacy_regcache_descr.
2500 2003-07-28 Andrew Cagney <cagney@redhat.com>
2502 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2505 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2507 * thread.c (info_threads_command): Use get_selected_frame ().
2508 Check that there is at least one non-sentinel frame.
2510 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2512 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2513 (m68hc11_pop_frame): Remove.
2514 (m68hc11_frame_saved_pc): Remove.
2515 (m68hc11_frame_chain): Remove.
2516 (m68hc11_frame_init_saved_regs): Remove.
2517 (m68hc11_init_extra_frame_info): Remove.
2518 (m68hc11_store_struct_return): Remove.
2519 (m68hc11_saved_pc_after_call): Remove.
2521 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2523 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2524 frame unwind information.
2525 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2526 and adapted for frame unwinding.
2527 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2528 (m68hc11_unwind_pc): New function.
2529 (m68hc11_frame_unwind_cache): New function to analyze frames.
2530 (m68hc11_frame_this_id): New function to create new frame struct.
2531 (m68hc11_frame_prev_register): New function to unwind a register from
2533 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2534 (m68hc11_frame_p): New function for the above.
2535 (m68hc11_frame_base_address): New function to return fp of frame.
2536 (m68hc11_frame_args_address): Update for frame.
2537 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2538 (m68hc11_unwind_sp): New function.
2539 (m68hc11_unwind_dummy_id): New function.
2540 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2543 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2545 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2546 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2547 when we are beyond the current pc.
2549 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2551 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2552 from m68hc11_push_arguments.
2553 (m68hc11_push_arguments): Remove.
2554 (m68hc11_push_return_address): Remove.
2555 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2556 handlers; remove deprecated_extra_stack_alignment_needed.
2558 2003-07-27 Andrew Cagney <cagney@redhat.com>
2560 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2561 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2562 REAL_PC and not the pointer.
2563 * hppa-hpux-tdep.c: Include frame.h
2565 2003-07-27 Andrew Cagney <cagney@redhat.com>
2567 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2568 GDB_MULTI_ACH_PARTIAL.
2570 2003-07-27 Andrew Cagney <cagney@redhat.com>
2572 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2573 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2574 operator at start and not end of line.
2575 (decode_prologue): Ditto.
2576 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2577 frame_unwind_register_unsigned instead of
2578 frame_unwind_unsigned_register.
2579 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2581 (m32r_push_dummy_call): Use register_size instead of
2583 (m32r_frame_sniffer): Replace m32r_frame_p.
2584 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2585 * m32r-rom.c (report_transfer_performance): Delete extern
2587 (m32r_load, m32r_upload_command): Use print_transfer_performance
2588 instead of report_transfer_performance.
2589 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2590 / add_show_from_set.
2592 2003-07-26 Andrew Cagney <cagney@redhat.com>
2594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2595 store_return_value and extract_struct_value_address.
2597 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2600 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2601 NULL, default to the section containing PC.
2603 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2605 * NEWS: Mention "regs" deprecated for m68hc11 too.
2607 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2608 (m68hc11_print_register): New function to print out one register.
2609 (m68hc11_print_registers_info): New function to print registers.
2610 (show_regs): Deprecate and use the above.
2611 (m68hc11_gdbarch_init): Install the print_registers_info.
2613 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2615 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2616 that we have a SIGTRAP before returning non-zero.
2618 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2619 Elena Zannoni <ezannoni@redhat.com>
2621 * linespec.c (decode_line_2): Avoid crash if
2622 find_function_start_sal() returns empty record.
2624 2003-07-23 Andreas Schwab <schwab@suse.de>
2626 * ia64-tdep.c (ia64_print_insn): New function.
2627 (ia64_gdbarch_init): Set print_insn to it.
2628 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2629 deprecated_tm_print_insn_info.
2631 2003-07-22 Michael Snyder <msnyder@redhat.com>
2633 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2634 handle 8-bit returns (long long).
2635 (h8300h_extract_return_value): Ditto.
2636 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2638 2003-07-22 Andrew Cagney <cagney@redhat.com>
2640 * gdbarch.c Include "gdb_obstack.h".
2641 (struct gdbarch): Add an "obstack".
2642 (alloc_gdbarch_data): Allocate the gdbarch data using
2643 GDBARCH_OBSTACK_CALLOC.
2644 (free_gdbarch_data): Delete function.
2645 (gdbarch_obstack_zalloc): New function.
2646 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2647 Assert that the architecture is not initialized.
2648 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2649 vector from the obstack.
2650 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2651 architecture obstack.
2652 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2653 (set_gdbarch_data): Assert that the data is not initialized.
2654 (struct gdbarch_data): Delete member "free".
2655 (register_gdbarch_data): Do not initialize "free".
2656 * gdbarch.h, gdbarch.c: Re-generate.
2658 2003-07-22 Andrew Cagney <cagney@redhat.com>
2660 * configure.in (build_warnings): Add -Wformat-nonliteral.
2661 * configure: Re-generate.
2663 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2665 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2667 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2669 * findvar.c (read_var_value): Remove case for thread local storage
2670 variables. It is now entirely handled by the dwarf2 location
2672 * printcmd.c (address_info): Ditto.
2673 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2675 (struct symbol): Remove objfile field, which was used by
2676 LOC_THREAD_LOCAL_STATIC only.
2677 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2678 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2679 usage of objfile pointer.
2680 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2681 thread local variables.
2682 Add include of objfiles.h.
2683 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2685 * Makefile.in (dwarf2loc.o): Update dependencies.
2687 2003-07-22 Andrew Cagney <cagney@redhat.com>
2689 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2691 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2692 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2693 (struct value): Add opaque declaration.
2694 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2696 2003-07-21 Andrew Cagney <cagney@redhat.com>
2698 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2699 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2701 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2703 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2704 regcache_cooked_read_unsigned instead of read_register.
2705 (m68hc11_saved_pc_after_call): Likewise.
2706 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2707 instead of write_register.
2708 (m68hc11_register_type): New function.
2709 (m68hc11_register_virtual_type): Remove.
2710 (m68hc11_store_return_value): Convert to use the regcache.
2711 (m68hc11_extract_struct_value_address): Likewise.
2712 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2713 m68hc11_register_type; undeprecate store_return_value and
2714 extract_struct_value_address.
2716 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2718 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2719 and translate to use regcache.
2720 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2722 2003-07-18 Andrew Cagney <cagney@redhat.com>
2724 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2725 * gdbarch.h, gdbarch.c: Re-generate.
2726 * i386-tdep.c (i386_gdbarch_init): Do not set
2727 DWARF2_BUILD_FRAME_INFO.
2728 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2730 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2731 DWARF2_BUILD_FRAME_INFO.
2733 2003-07-18 Andrew Cagney <cagney@redhat.com>
2735 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2736 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2738 2003-07-18 Andrew Cagney <cagney@redhat.com>
2740 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2741 frame_unwind_address_in_block, instead of frame_pc_unwind.
2742 (dwarf2_frame_cache): Ditto.
2744 2003-07-18 Andrew Cagney <cagney@redhat.com>
2746 * user-regs.h (struct gdbarch): Declare opaque.
2747 * ui-out.h (struct ui_file): Declare opaque.
2748 * dwarf2-frame.h (struct frame_info): Declare opaque.
2750 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2752 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2754 (procfs_meminfo): Change strerror to safe_strerror.
2755 (procfs_can_run): Remove K&R badness.
2757 2003-07-17 Michael Snyder <msnyder@redhat.com>
2759 * remote-sim.c: Comment typo fix.
2761 2003-07-17 Andrew Cagney <cagney@redhat.com>
2763 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2765 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2766 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2767 GDB_MULTI_ARCH_PARTIAL.
2769 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2771 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2772 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2773 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2775 2003-07-16 Theodore A. Roth <troth@openavr.org>
2777 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2779 (avr_frame_unwind_cache): Don't unwind FP for main.
2781 Save the computed prev_sp.
2782 (avr_saved_regs_unwinder): Remove function.
2783 (avr_frame_prev_register): Use PC unwind logic from
2784 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2786 2003-07-16 Andrew Cagney <cagney@redhat.com>
2788 * frame-base.h (frame_base_p_ftype): Delete definition.
2789 (frame_base_append_predicate): Delete declaration.
2790 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2791 (frame_unwind_append_predicate): Delete declaration.
2792 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2793 (append_predicate): Delete parameter "p".
2794 (frame_unwind_append_predicate): Delete function.
2795 (frame_unwind_append_sniffer): Update call to append_predicate.
2796 (frame_unwind_free): Delete function.
2797 (_initialize_frame_unwind): Pass NULL as "free" to
2798 register_gdbarch_data.
2799 (frame_unwind_init): Append the dummy_frame_sniffer.
2800 (frame_unwind_find_by_frame): Simplify.
2801 * frame-base.c (struct frame_base_table): Delete field "p".
2802 (append_predicate): Delete parameter "p".
2803 (frame_base_append_predicate): Delete function.
2804 (frame_base_append_sniffer): Update call to append_predicate.
2805 (frame_base_free): Delete function.
2806 (frame_base_find_by_frame): Simplify.
2807 (_initialize_frame_base): Pass NULL as "free" to
2808 register_gdbarch_data.
2809 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2810 (x86_64_sigtramp_frame_sniffer): Replace
2811 "x86_64_sigtramp_frame_p".
2812 (x86_64_init_abi): Set the frame unwind sniffers.
2813 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2814 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2815 (m68k_gdbarch_init): Set the frame unwind sniffers.
2816 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2817 "i386_sigtramp_frame_p".
2818 (i386_frame_sniffer): Replace "i386_frame_p".
2819 (i386_gdbarch_init): Set the frame unwind sniffers.
2820 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2821 (avr_gdbarch_init): Set the frame unwind sniffers.
2822 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2823 "alpha_sigtramp_frame_p"
2824 (alpha_heuristic_frame_sniffer): Replace
2825 "alpha_heuristic_frame_p".
2826 (alpha_gdbarch_init): Set the frame unwind sniffers.
2827 (alpha_dwarf2_init_abi): Ditto.
2828 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2829 "alpha_debug_frame_p".
2830 (alpha_mdebug_frame_base_sniffer): Replace
2831 "alpha_mdebug_frame_base_p".
2832 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2833 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2834 (d10v_gdbarch_init): Set the frame unwind sniffer.
2835 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2836 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2837 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2838 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2839 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2840 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2842 2003-07-16 Michael Snyder <msnyder@redhat.com>
2844 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2845 should go thru sh_dsp_register_sim_regno, else the dsp regs
2846 will not get the right values.
2848 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2850 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2851 deprecated_store_floating by call to store_typed_floating.
2852 (sh_sh4_register_convert_to_raw): Substitute call to
2853 deprecated_extract_floating by call to extract_typed_floating.
2855 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2857 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2859 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2861 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2862 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2863 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2865 (do_pseudo_register): Remove.
2866 (sh_push_dummy_code): New function.
2867 (sh64_store_struct_return): Rename from sh_store_struct_return.
2868 Only called for sh64 now.
2869 (sh_extract_struct_value_address): Regcache'ify.
2870 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2871 and accomodate new tasks.
2872 (sh64_push_return_address): Rename from sh_push_return_address.
2873 Only called for sh64 now.
2874 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2876 (sh3e_sh4_extract_return_value): Regcache'ify.
2877 (sh_default_store_return_value): Ditto.
2878 (sh3e_sh4_store_return_value): Ditto.
2879 (sh_default_register_byte): Remove.
2880 (sh_sh4_register_byte): Remove.
2881 (sh_default_register_raw_size): Remove.
2882 (sh_sh4_register_raw_size): Remove.
2883 (sh_register_virtual_size): Remove.
2884 (sh_sh3e_register_virtual_type): Remove.
2885 (sh_sh3e_register_type): New function.
2886 (sh_sh4_register_virtual_type): Remove.
2887 (sh_sh4_register_type): New function.
2888 (sh_default_register_virtual_type): Remove.
2889 (sh_default_register_type): New function.
2890 (do_fv_register_info): Add parameters to accomodate call from
2891 sh_print_registers_info.
2892 (do_dr_register_info): Ditto.
2893 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2894 Add parameters to accomodate call from sh_print_registers_info.
2895 (sh_do_fp_register): Ditto.
2896 (sh64_do_pseudo_register): Call do_dr_register_info,
2897 do_fv_register_info and sh_do_fp_register with default parameters.
2898 (sh_do_register): Add parameters to accomodate call from
2899 sh_print_registers_info.
2900 (sh_print_register): Ditto.
2901 (sh_print_registers_info): Rename from sh_do_registers_info.
2902 Add parameters to be used as gdbarch_print_registers_info
2903 implementation. Accomodate removed do_pseudo_register function
2905 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2906 function pointer. Call sh_print_register with default parameters.
2907 (sh64_do_registers_info): Call sh_print_registers_info instead of
2908 sh_do_registers_info.
2909 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2910 detection of deprecated vs. non-deprecated functionality.
2911 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2912 function pointer assignments by direct function calls.
2914 2003-07-15 Andrew Cagney <cagney@redhat.com>
2916 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2917 (frame_register_unwind, create_new_frame): Ditto.
2918 (legacy_get_prev_frame, get_frame_type): Ditto.
2919 (get_frame_base_address): Use frame_base_find_by_frame.
2920 (get_frame_locals_address): Use frame_base_find_by_frame.
2921 (get_frame_args_address): Use frame_base_find_by_frame.
2922 * frame-base.h (frame_base_sniffer_ftype): Declare.
2923 (frame_base_append_sniffer): Declare.
2924 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2925 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2926 (frame_base_append_sniffer): New function.
2927 (frame_base_append_predicate): Add a NULL sniffer.
2928 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2929 (struct frame_base_table): Add "sniffer".
2930 (frame_base_free): Free the "sniffer" table.
2931 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2932 (frame_unwind_append_sniffer): Declare.
2933 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2934 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2935 (struct frame_unwind_table): Add "sniffer", delete "middle".
2936 (append_predicate): Add "sniffer" parameter, append the sniffer.
2937 (frame_unwind_init): Update append_predicate call.
2938 (frame_unwind_append_sniffer): New function.
2939 (frame_unwind_append_predicate): Update append_predicate call.
2940 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2942 2003-07-15 Andrew Cagney <cagney@redhat.com>
2944 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2945 before code inhibiting repeated unwind attempts. Add to
2946 commentary on that test's problems.
2947 * blockframe.c (inside_main_func): Look for "main" in the minimal
2949 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2952 2003-07-15 Andrew Cagney <cagney@redhat.com>
2954 * complaints.c (struct explanation): Define.
2955 (struct complaints): Change type of "explanation" to "struct
2957 (symfile_explanations): Convert to a "struct explanation" table.
2958 (vcomplaint): Update.
2960 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2962 * x86-64-linux-nat.c (regmap): Removed.
2963 (supply_gregset, fill_gregset): Call
2964 x86_64_linux_(fill,supply)_gregset functions.
2965 * x86-64-linux-tdep.c (USER_*): New defines.
2966 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2967 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2969 (fetch_core_registers): Ditto.
2970 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2971 * x86-64-linux-tdep.h: New file.
2972 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2974 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2976 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2978 * x86-64-tdep.c (x86_64_store_return_value): Use
2979 regcache_cooked_write_part instead of regcache_cooked_write.
2981 * configure.host: Add x86_64-*-freebsd*.
2982 * configure.tgt: Add x86_64-*-freebsd*.
2983 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2984 * amd64fbsd-nat.c: New file.
2985 * amd64fbsd-tdep.c: New file.
2986 * config/i386/nm-fbsd64.h: New file.
2987 * config/i386/fbsd64.mh: New file.
2988 * config/i386/fbsd64.mt: New file.
2990 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2992 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2993 `sc_regs_offset' and `sc_fpregs_offset'.
2994 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2995 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2996 (alpha_sigtramp_register_address): Rewrite to use new members of
2997 `struct gdbarch_tdep'.
2998 (alpha_gdbarch_init): Initialize new members of struct
3000 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3001 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3002 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3003 (alphafbsd_pc_in_sigtramp): Implement.
3004 (alphafbsd_sigtramp_offset): New function.
3005 (alphafbsd_sigcontext_addr): New function.
3006 (alphafbsd_init_abi): Initialize signal trampoline related members
3007 of `struct gdbarch_tdep'.
3008 (_initialize_alphafbsd_tdep): Add prototype.
3010 2003-07-11 Theodore A. Roth <troth@openavr.org>
3012 * Makefile.in (install-only): Quote sed expression when generating
3015 2003-07-11 Richard Henderson <rth@redhat.com>
3017 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3018 * dwarf2-frame.c: Include complaints.h.
3019 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3020 variable initialization; return NULL on error.
3021 (decode_frame_entry): New.
3023 2003-07-11 Andrew Cagney <cagney@redhat.com>
3025 * frame.h (frame_address_in_block): Delete declaration.
3026 * blockframe.c (frame_address_in_block): Delete function.
3027 (get_frame_block): Use get_frame_address_in_block.
3028 (block_innermost_frame): Ditto.
3029 * stack.c (print_frame, backtrace_command_1): Ditto.
3031 * frame.h (get_frame_address_in_block): Declare.
3032 (frame_unwind_address_in_block): Declare.
3033 * frame.c (frame_unwind_address_in_block): New function.
3034 (get_frame_address_in_block): New function.
3036 2003-07-10 Andrew Cagney <cagney@redhat.com>
3038 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3039 pre-default. Note: re-generate has no effect.
3041 2003-07-10 Andrew Cagney <cagney@redhat.com>
3043 * gdbarch.sh: When a variable, but not a function, compare against
3044 0. Fix problem in previous patch.
3045 * gdbarch.c: Re-generate.
3047 2003-07-10 Andrew Cagney <cagney@redhat.com>
3049 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3050 functions against NULL, not 0.
3051 * gdbarch.c: Re-generate.
3053 2003-07-10 Fred Fish <fnf@ninemoons.com>
3055 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3056 null string instead of a null pointer.
3057 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3059 2003-07-09 Michael Snyder <msnyder@redhat.com>
3061 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3063 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3065 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3066 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3067 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3068 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3069 * x86-64-tdep.c: ... from here.
3071 2003-07-09 Andreas Schwab <schwab@suse.de>
3073 * m68k-tdep.h (enum struct_return): Define.
3074 (struct gdbarch_tdep): Add struct_return.
3075 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3076 bytes are padded to the right, not to the left. Pass struct value
3077 address in register %a1, not on stack.
3078 (m68k_use_struct_convention): New function.
3079 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3080 struct_return in tdep to pcc_struct_return.
3081 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3084 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3086 * somread.c (som_symfile_offsets): Fix compilation error.
3088 2003-07-09 Andrew Cagney <cagney@redhat.com>
3090 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3091 Add comments about the checks.
3093 2003-07-08 Andrew Cagney <cagney@redhat.com>
3095 * Makefile.in: Make dependency section headers consistent.
3096 (config_h): Move to $BUILD headers section.
3097 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3098 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3099 (ada-exp.tab.c): Move to YACC/LEX section.
3100 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3101 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3103 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3105 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3106 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3107 of strerror with safe_strerror, use ISO C function definitions,
3108 and replace instances of sprintf with snprintf.
3110 2003-07-07 Andrew Cagney <cagney@redhat.com>
3112 * frame.c (get_prev_frame): Enable check for identical frames.
3113 Update comments. Update error messages.
3115 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3117 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3119 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3121 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3122 sort_symtab_syms, no longer necessary.
3124 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3126 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3128 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3130 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3131 (mips_register_byte): Likewise.
3133 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3135 * Makefile.in (sparc_tdep_h): New.
3136 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3137 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3138 * sparc-linux-nat.c: Include "sparc-tdep.h".
3139 * sparc-nat.c: Likewise.
3140 * sparc-tdep.c: Likewise.
3141 * sparc64nbsd-nat.c: Likewise.
3142 * sparcnbsd-nat.c: Likewise.
3143 * sparcnbsd-tdep.c: Likewise.
3144 * sparc-tdep.h: New file.
3145 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3146 and sparc_npc_regnum.
3148 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3150 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3151 (mips_linux_cannot_store_register): List supported instead of
3152 unsupported registers.
3154 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3156 * disasm.c (dump_insns): Separate instructions from addresses.
3158 2003-07-07 Andreas Schwab <schwab@suse.de>
3160 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3162 * m68k-tdep.c (NUM_FREGS): Delete.
3163 (SIG_PC_FP_OFFSET): Delete.
3164 (TARGET_M68K): Delete.
3165 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3166 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3167 P_MOVEL_SP, P_MOVEML_SP): Define.
3168 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3170 (m68k_register_raw_size): Delete.
3171 (m68k_register_virtual_size): Delete.
3172 (m68k_register_type): Renamed from m68k_register_virtual_type and
3173 add gdbarch argument.
3174 (m68k_store_struct_return): Delete.
3175 (m68k_deprecated_extract_return_value): Delete.
3176 (m68k_deprecated_extract_struct_value_address): Delete.
3177 (m68k_frame_chain): Delete.
3178 (m68k_frame_saved_pc): Delete.
3179 (m68k_fix_call_dummy): Delete.
3180 (m68k_push_dummy_frame): Delete.
3181 (m68k_pop_frame): Delete.
3182 (m68k_extract_return_value): New function.
3183 (m68k_store_return_value): Rewrite using regcache.
3184 (m68k_extract_struct_value_address): Rewrite using regcache.
3185 (m68k_push_dummy_call): New function.
3186 (struct m68k_frame_cache): Define.
3187 (m68k_alloc_frame_cache): New function.
3188 (m68k_analyze_frame_setup): New function.
3189 (m68k_analyze_register_saves): New function.
3190 (m68k_analyze_prologue): New function.
3191 (m68k_skip_prologue): Rewrite using above functions.
3192 (m68k_unwind_pc): New function.
3193 (m68k_frame_cache): New function.
3194 (m68k_frame_this_id): New function.
3195 (m68k_frame_prev_register): New function.
3196 (m68k_frame_unwind): New variable.
3197 (m68k_frame_p): New function.
3198 (m68k_sigtramp_frame_cache): New function.
3199 (m68k_sigtramp_frame_this_id): New function.
3200 (m68k_sigtramp_frame_prev_register): New function.
3201 (m68k_sigtramp_frame_unwind): New variable.
3202 (m68k_sigtramp_frame_p): New function.
3203 (m68k_frame_base_address): New function.
3204 (m68k_frame_base): New function.
3205 (m68k_unwind_dummy_id): New function.
3206 (fill_gregset): Use regcache_collect.
3207 (fill_fpregset): Likewise.
3208 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3210 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3211 deprecated_init_frame_pc, deprecated_store_struct_return,
3212 deprecated_extract_return_value, deprecated_store_return_value,
3213 deprecated_frame_chain, deprecated_frame_saved_pc,
3214 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3215 deprecated_register_virtual_size,
3216 deprecated_max_register_raw_size,
3217 deprecated_max_register_virtual_size,
3218 deprecated_register_virtual_type, deprecated_register_size,
3219 deprecated_register_byte, deprecated_register_bytes,
3220 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3221 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3222 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3223 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3224 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3225 deprecated_push_dummy_frame, deprecated_pop_frame,
3226 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3227 only if SYSCALL_TRAP is defined. Set extract_return_value,
3228 store_return_value, extract_struct_value_address, register_type,
3229 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3231 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3232 M68K_MAX_REGISTER_SIZE): Define.
3233 (struct m68k_sigtramp_info): Define.
3234 (struct gdbarch_tdep): Add get_sigtramp_info.
3235 * m68klinux-nat.c (fetch_register): Use register_size instead of
3236 REGISTER_RAW_SIZE. Don't put assignment in if.
3237 (store_register): Likewise.
3238 (fetch_inferior_registers): Likewise.
3239 (store_inferior_registers): Likewise.
3240 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3241 (m68k_linux_frame_saved_pc): Delete.
3242 (m68k_linux_sigcontext_reg_offset,
3243 m68k_linux_ucontext_reg_offset): Define.
3244 (m68k_linux_get_sigtramp_info): New function.
3245 (m68k_linux_extract_return_value): Rewrite using regcache.
3246 (m68k_linux_store_return_value): Likewise.
3247 (m68k_linux_extract_struct_value_address): Likewise.
3248 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3249 Don't set deprecated_frame_saved_pc,
3250 deprecated_extract_return_value, deprecated_store_return_value,
3251 deprecated_extract_struct_value_address. Set
3252 extract_return_value, store_return_value,
3253 extract_struct_value_address.
3255 2003-07-07 Andrew Cagney <cagney@redhat.com>
3257 * expprint.c: Include "user-regs.h" instead of "frame.h".
3258 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3259 frame_map_regnum_to_name.
3260 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3261 (frame_map_name_to_regnum): Simplify, call
3262 user_reg_map_name_to_regnum.
3263 (frame_map_regnum_to_name): Simplify, call
3264 user_reg_map_regnum_to_name.
3265 (frame_register_unwind): Update.
3266 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3267 (_initialize_frame_reg): Call user_reg_add_builtin.
3268 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3269 (value_of_register): Use value_of_user_reg.
3270 * eval.c (evaluate_subexp_standard): Update.
3271 * parse.c (write_dollar_variable): Update.
3272 * d10v-tdep.c (d10v_print_registers_info): Update.
3273 * infcmd.c (registers_info): Update.
3274 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3275 (builtin_regs_h): Delete macro.
3276 (user_regs_h): Define.
3277 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3278 (builtin-regs.o): Delete target.
3279 (user-regs.o): Specify dependencies.
3280 (expprint.o): Update dependencies.
3281 (findvar.o): Update dependencies.
3282 (frame.o): Update dependencies.
3283 (std-regs.o): Update dependencies.
3285 2003-07-06 Christopher Faylor <cgf@redhat.com>
3287 * win32-nat.c (solib_symbols_add): Use one variable for all section
3288 address stuff. Pass variable rather than address of variable to
3289 safe_symbol_file_add.
3291 2003-07-06 Andreas Schwab <schwab@suse.de>
3293 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3295 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3297 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3299 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3301 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3303 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3305 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3306 * config/i386/nto.mh: New file.
3307 * config/i386/nm-nto.h: New file.
3308 * configure.host: Add i[3456]86-*-nto*.
3310 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3312 * remote-vx.c (vx_add_symbols): Fix compilation error.
3314 2003-07-03 Andrew Cagney <cagney@redhat.com>
3316 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3317 * gdbarch.h, gdbarch.c: Re-generate.
3318 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3319 (legacy_register_name): Declare.
3320 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3321 (REGISTER_NAME): Define.
3322 * sparc-tdep.c (legacy_register_name): New function.
3323 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3324 (REGISTER_NAME): Define.
3325 (hppa64_register_name): Declare.
3326 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3327 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3328 (hppa64_register_name): New function.
3329 (hppa_register_name): New function.
3330 * arch-utils.c (legacy_register_name): Delete.
3331 * arch-utils.h (legacy_register_name): Delete.
3333 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3335 * cli/cli-interp.c (cli_interpreter_resume): Update the
3336 cli_uiout's stream to gdb_stdout.
3338 2003-07-03 Andrew Cagney <cagney@redhat.com>
3340 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3342 * gdbarch.h, gdbarch.c: Re-generate.
3343 * regcache.c (init_regcache_descr): Use legacy code when either
3344 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3346 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3348 * NEWS: Move "set logging" entry into GDB 6.0 section.
3350 2003-07-02 Jim Blandy <jimb@redhat.com>
3352 * s390-tdep.c (struct frame_extra_info): new member:
3353 'stack_bought_valid'.
3354 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3355 initialize fextra_info->stack_bought.
3356 (s390_frameless_function_invocation): Don't trust the value of
3357 fextra_info_ptr->stack_bought unless
3358 fextra_info->stack_bought_valid is set.
3360 New S390 prologue analyzer.
3361 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3362 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3363 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3364 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3365 compute_x_addr, s390_on_stack, s390_store,
3366 s390_get_signal_frame_info): New functions.
3367 (S390_NUM_SPILL_SLOTS): New macro.
3368 (s390_get_frame_info): Rewritten.
3369 (is_arg_reg): Deleted.
3371 Break out the decoding of S/390 instructions into separate
3372 functions, to make it more legible, and easier to check
3374 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3375 is_rx, is_rxe): New functions.
3376 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3377 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3378 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3379 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3380 enums for opcode values. (Is this an improvement?)
3382 2003-07-02 Andrew Cagney <cagney@redhat.com>
3384 * i386-tdep.c: Revert change committed as part of trad-frame code
3387 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3389 * breakpoint.c (insert_catchpoint): Make static.
3391 2003-07-02 Andreas Schwab <schwab@suse.de>
3393 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3394 former ia64_push_arguments and ia64_push_return_address, and use
3395 regcache functions instead of read/write_register.
3396 (ia64_gdbarch_init): Set push_dummy_call instead of
3397 deprecated_push_arguments and deprecated_push_return_address.
3399 2003-07-01 Andreas Jaeger <aj@suse.de>
3401 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3403 Set %rax only to number of SSE registers used.
3405 2003-07-01 Andrew Cagney <cagney@redhat.com>
3407 * trad-frame.h: Update comments, a -1 .addr is reserved.
3408 (trad_frame_value_p, trad_frame_addr_p): Declare.
3409 (trad_frame_reg_p): Declare.
3410 (trad_frame_set_value): Rename trad_frame_register_value.
3411 (trad_frame_set_unknown): Declare.
3412 * trad-frame.c (trad_frame_realreg_p): New function.
3413 (trad_frame_addr_p, trad_frame_value_p): New function.
3414 (trad_frame_set_unknown): New function.
3415 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3416 (trad_frame_prev_register): Use trad_frame_realreg_p,
3417 trad_frame_addr_p and trad_frame_value_p.
3418 (trad_frame_set_value): Rename trad_frame_register_value.
3419 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3420 and trad_frame_set_value.
3422 2003-06-30 Jim Blandy <jimb@redhat.com>
3424 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3425 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3426 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3427 for 16 registers, and then 32 more bytes.
3428 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3430 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3431 Move up in the file, since it's now used by is_simple_arg.
3432 (is_simple_arg): Don't assume registers are four bytes long.
3433 Exclude all double arguments. Extended floats are not simple
3435 (is_power_of_two): New function.
3436 (pass_by_copy_ref): Call is_power_of_two, and check that the
3437 length fits in a register, rather than listing all the acceptable
3438 sizes. Extended floats are not passed by reference.
3439 (s390_push_arguments): Don't assume registers are four bytes long.
3440 Reserve an argument register to point to the buffer for structures
3441 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3442 S390_STACK_FRAME_OVERHEAD.
3444 2003-06-30 Andreas Schwab <schwab@suse.de>
3446 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3447 format error message.
3449 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3451 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3453 2003-06-30 David Carlton <carlton@kealia.com>
3455 Band-aid for PR c++/1245.
3456 * Makefile.in (cp-support.o): Depend on complaints_h.
3457 * cp-support.c: Include complaints.h. Add declaration for
3458 find_last_component.
3459 (cp_find_first_component): Separate code into
3460 cp_find_first_component_aux.
3461 (cp_find_first_component_aux): Call demangled_name_complaint.
3462 (demangled_name_complaint): New.
3464 2003-06-30 Andrew Cagney <cagney@redhat.com>
3466 * remote.c (remote_write_bytes): Explicitly compute and then use
3467 the payload size. Update comments to reflect. Fixes problem of
3468 GDB not sending small packets as found by Fred Fish.
3470 2003-06-30 Andrew Cagney <cagney@redhat.com>
3472 * remote.c (remote_async_wait): Fix -Wformat problem.
3474 2003-06-29 Andrew Cagney <cagney@redhat.com>
3476 * remote.c (remote_wait): Call error, and not warning, when the
3478 (remote_async_wait): Ditto.
3480 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3482 * sparc-tdep.c (sparc_y_regnum): Make external again.
3484 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3486 * cli/cli-logging.c (pop_output_files): Add void to function
3489 2003-06-29 Andrew Cagney <cagney@redhat.com>
3491 * frame.c (frame_register_unwind): Use unsigned char when dumping
3492 the buffer contents.
3494 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3496 * cli/cli-logging.c: New file.
3497 * cli-out.c (struct ui_out_data): Add original_stream.
3498 (cli_redirect): New function.
3499 (cli_ui_out_impl): Add cli_redirect.
3500 (cli_out_new): Initialize original_stream.
3501 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3502 (uo_redirect, ui_out_redirect): New.
3503 * ui-out.h (struct ui_out_impl): Add redirect member.
3504 (redirect_ftype): New.
3505 (ui_out_redirect): Add prototype.
3506 * Makefile.in: Add rules for cli-logging.c.
3507 * NEWS: Mention "set logging".
3509 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3511 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3513 2003-06-27 Andrew Cagney <cagney@redhat.com>
3515 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3516 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3517 * avr-tdep.c (avr_call_dummy_address): Delete function.
3518 (avr_gdbarch_init): Do not set call_dummy_address.
3520 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3522 * symfile.c (syms_from_objfile): Move variables to inner block.
3523 Move the checks for the non-mainline case a bit earlier to avoid
3524 doing some useless computations.
3526 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3528 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3530 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3532 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3535 2003-06-26 Michael Chastain <mec@shout.net>
3537 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3538 gdb/testsuite/gdb.c++/pr-1210.exp.
3540 2003-06-26 Andrew Cagney <cagney@redhat.com>
3542 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3543 altivec_expression.h and altivec_registers.h.
3545 2003-06-26 Andrew Cagney <cagney@redhat.com>
3547 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3548 info->mach when MIPS16. Patch suggested by Fred Fish.
3550 2003-06-26 Andrew Cagney <cagney@redhat.com>
3552 * utils.c (internal_vproblem): Print the problem to a reason
3553 buffer and then pass to query. Make the msg variable more local.
3555 2003-06-26 Andrew Cagney <cagney@redhat.com>
3557 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3558 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3559 * gdbarch.h, gdbarch.c: Re-generate.
3560 * frame-base.c (default_frame_args_address): Update. Use
3561 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3563 (default_frame_locals_address): Ditto for
3564 DEPRECATED_FRAME_LOCALS_ADDRESS.
3565 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3566 (vax_frame_num_args): Update.
3567 (vax_gdbarch_init): Update.
3568 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3569 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3570 * mcore-tdep.c (mcore_gdbarch_init): Update.
3571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3572 * ia64-tdep.c (ia64_gdbarch_init): Update.
3573 * symtab.h (address_class): Update comments.
3574 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3575 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3576 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3577 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3578 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3579 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3580 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3581 * alpha-mdebug-tdep.c: Update.
3582 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3584 2003-06-26 Andreas Jaeger <aj@suse.de>
3586 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3587 of SSE registers so that varargs functions work. Rework handling
3588 of passing arguments on the stack.
3589 (x86_64_store_return_value): Return double and float values in SSE
3592 2003-06-24 Michael Chastain <mec@shout.net>
3594 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3595 the "constructor breakpoints ignored" bug.
3597 2003-06-25 David Carlton <carlton@kealia.com>
3599 * MAINTAINERS: Update e-mail address.
3601 2003-06-24 Jim Blandy <jimb@redhat.com>
3603 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3605 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3607 (ppc_linux_init_abi): Register it as the
3608 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3610 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3611 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3614 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3615 (ppc64_standard_linkage_target): Use it.
3617 2003-06-23 Andrew Cagney <cagney@redhat.com>
3619 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3620 for 0 "int0" and 4 "int32" sized registers.
3621 * gdbtypes.c (builtin_type_int0): Define.
3622 (build_gdbtypes): Initialize builtin_type_int0.
3623 * gdbtypes.h (builtin_type_int0): Declare.
3625 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3628 as characters are unsigned.
3630 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3633 * dwarfread.c (struct_type): Skip static fields without crashing.
3635 2003-06-22 Andrew Cagney <cagney@redhat.com>
3637 GDB 6.0 branch created.
3639 * PROBLEMS: Update. Empty.
3642 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3644 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3645 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3647 2003-06-22 Andrew Cagney <cagney@redhat.com>
3649 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3650 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3653 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3655 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3658 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3660 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3661 argument of val_print.
3662 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3663 to the address argument of baseclass_offset or target_read_memory.
3664 Do add it to the argument of cp_print_value_fields.
3666 2003-06-21 Andrew Cagney <cagney@redhat.com>
3668 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3669 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3670 instead of 0..NUM_REGS.
3671 (mips_register_reggroup_p): New function.
3672 (mips_pseudo_register_write): New function.
3673 (mips_pseudo_register_read): New function.
3674 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3675 based on the register's type.
3676 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3678 (mips_get_saved_register): Simplify. Assert that REGNO is a
3680 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3681 (mips_register_type): Replace mips_register_virtual_type. Map
3682 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3684 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3685 that the register is cooked / virtual.
3686 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3687 Only get the extra info when needed.
3688 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3689 (mips32_heuristic_proc_desc): Fetch the cooked register.
3690 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3691 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3692 (mips_print_register): Use gdbarch_register_type, instead of
3693 REGISTER_VIRTUAL_TYPE.
3694 (print_gp_register_row): Use gdbarch_register_type, instead of
3695 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3696 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3697 Print the pseudo / cooked registers.
3698 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3699 Print the pseudo / cooked registers.
3700 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3701 REG_NUM is pseudo / cooked.
3702 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3703 (mips_n32n64_xfer_return_value): Ditto.
3704 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3705 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3706 (mips_register_sim_regno): New function.
3707 (mips_gdbarch_init): Set deprecated_register_byte,
3708 register_group_p, pseudo_register_write, pseudo_register_read,
3709 register_sim_regno, and num_pseudo_regs. Set register_type,
3710 instead of register_virtual_type.
3711 * Makefile.in (mips-tdep.o): Update dependencies.
3712 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3713 REGISTER_VIRTUAL_TYPE.
3714 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3715 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3716 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3717 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3718 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3720 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3722 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3723 * cli/cli-cmds.c: Include "gdb_vfork.h".
3724 (shell_escape): Use vfork.
3726 2003-06-21 Andrew Cagney <cagney@redhat.com>
3728 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3729 32 bit floating-point register saves.
3731 * frame.h (deprecated_unwind_get_saved_register): Delete.
3732 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3733 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3734 and deprecated_get_next_frame_hack instead of
3735 deprecated_unwind_get_saved_register.
3737 * mips-tdep.c (mips_dump_tdep): Do not print
3738 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3740 * frame.c (get_frame_register): New function.
3741 (frame_unwind_register_signed): New function.
3742 (get_frame_register_signed): New function.
3743 (frame_unwind_register_unsigned): New function.
3744 (get_frame_register_unsigned): New function.
3745 * frame.h: Add comments on naming schema.
3746 (get_frame_register, frame_unwind_register_signed): Declare.
3747 (get_frame_register_signed, get_frame_register_signed): Declare.
3748 (frame_unwind_register_unsigned): Declare.
3749 (get_frame_register_unsigned): Declare.
3751 2003-06-20 Theodore A. Roth <troth@openavr.org>
3753 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3755 2003-06-20 Theodore A. Roth <troth@openavr.org>
3757 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3758 (avr_read_sp): Ditto.
3760 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3762 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3763 * config/arm/nm-linux.h: Likewise.
3764 * config/arm/tm-linux.h: Likewise.
3765 * config/ia64/nm-linux.h: Likewise.
3766 * config/ia64/tm-ia64.h: Likewise.
3767 * config/s390/tm-linux.h: Likewise.
3768 * config/s390/tm-s390.h: Likewise.
3769 * s390-nat.c: Likewise.
3770 * s390-tdep.c: Likewise.
3772 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3773 * config/ia64/linux.mt: Likewise.
3774 * config/m68k/linux.mh: Likewise.
3775 * config/mips/linux.mt: Likewise.
3776 * config/powerpc/linux.mh: Likewise.
3777 * config/sh/linux.mt: Likewise.
3779 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3781 * solib.c (solib_open): Change tests for whether to search
3782 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3785 2003-06-19 Theodore A. Roth <troth@openavr.org>
3787 * avr-tdep.c (avr_frame_address): Delete function.
3788 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3789 set_gdbarch_frame_args_address.
3791 2003-06-19 Andrew Cagney <cagney@redhat.com>
3793 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3794 (REGISTER_CONVERT_FROM_TYPE): Delete.
3795 (mips_register_convert_to_type): Delete declaration.
3796 (mips_register_convert_from_type): Delete declaration.
3797 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3800 2003-06-19 Michael Snyder <msnyder@redhat.com>
3802 * linux-nat.h: New file.
3803 * linux-nat.c: Include linux-nat.h.
3804 * lin-lwp.c: Include linux-nat.h.
3805 Move struct lwp_info def to linux-nat.h.
3806 * linux-proc.c: Include linux-nat.h.
3807 (linux_make_note_section): Iterate over lwps instead of threads.
3808 (linux_do_thread_registers): Use lwp instead of merged pid.
3809 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3810 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3811 Add dependency on linux_nat_h.
3813 2003-06-19 Theodore A. Roth <troth@openavr.org>
3815 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3817 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3819 * varobj.c (get_type, get_target_type): Use check_typedef.
3821 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3823 * breakpoint.c (insert_catchpoint): Call internal_error.
3825 2003-06-19 Theodore A. Roth <troth@openavr.org>
3827 * avr-tdep.c (avr_push_dummy_code): Delete function.
3828 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3830 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3832 * arch-utils.c (default_prepare_to_proceed): Remove.
3833 (generic_prepare_to_proceed): Remove.
3834 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3835 (generic_prepare_to_proceed): Remove prototype.
3836 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3837 * gdbarch.c: Regenerate.
3838 * gdbarch.h: Regenerate.
3839 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3840 * hppah-nat.c (hppa_switched_threads): Remove.
3841 * infrun.c (prepare_to_proceed): New static function, copied from
3842 generic_prepare_to_proceed. Remove select_it argument.
3843 (proceed): Call prepare_to_proceed.
3844 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3846 (ptrace_wait): Don't set the removed variables.
3847 (hppa_switched_threads): Remove.
3848 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3849 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3850 (lin_lwp_prepare_to_proceed): Remove prototype.
3851 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3852 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3854 2003-06-18 Theodore A. Roth <troth@openavr.org>
3856 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3858 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3859 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3860 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3861 (AVR_PROLOGUE_*): Enumerate prologue types.
3862 (struct frame_extra_info): Remove.
3863 (struct avr_unwind_cache): Define.
3864 (avr_write_sp): Delete function.
3865 (avr_read_fp): Ditto.
3866 (avr_init_extra_frame_info): Ditto.
3867 (avr_pop_frame): Ditto.
3868 (avr_frame_saved_pc): Ditto.
3869 (avr_saved_pc_after_call): Ditto.
3870 (avr_push_return_address): Ditto.
3871 (avr_frame_chain): Ditto.
3872 (avr_store_struct_return): Ditto.
3873 (avr_push_arguments): Ditto.
3874 (avr_scan_prologue): Update comments. Changed to set up the info for
3875 cache unwinding. Now returns end of prologue PC.
3876 (avr_skip_prologue): Better handling of functions lacking a prologue
3877 by using avr_scan_prologue.
3878 (avr_scan_arg_moves): New function.
3879 (avr_saved_regs_unwinder): Ditto.
3880 (avr_frame_unwind_cache): Ditto.
3881 (avr_unwind_pc): Ditto.
3882 (avr_frame_this_id): Ditto.
3883 (avr_frame_prev_register): Ditto.
3884 (avr_frame_p): Ditto.
3885 (avr_frame_base_address ): Ditto.
3886 (avr_unwind_dummy_id): Ditto.
3887 (avr_push_dummy_code): Ditto.
3888 (push_stack_item): Ditto.
3889 (pop_stack_item): Ditto.
3890 (avr_push_dummy_call): Ditto.
3891 (struct stack_item): Define.
3892 (avr_frame_unwind): Declare structure.
3893 (avr_frame_base): Ditto.
3894 (avr_gdbarch_init): Remove calls to
3895 set_gdbarch_deprecated_init_frame_pc,
3896 set_gdbarch_deprecated_target_read_fp,
3897 set_gdbarch_deprecated_dummy_write_sp,
3898 set_gdbarch_deprecated_fp_regnum,
3899 set_gdbarch_deprecated_push_arguments,
3900 set_gdbarch_deprecated_push_return_address,
3901 set_gdbarch_deprecated_pop_frame,
3902 set_gdbarch_deprecated_store_struct_return,
3903 set_gdbarch_deprecated_frame_init_saved_regs,
3904 set_gdbarch_deprecated_init_extra_frame_info,
3905 set_gdbarch_deprecated_frame_chain,
3906 set_gdbarch_deprecated_frame_saved_pc,
3907 set_gdbarch_deprecated_saved_pc_after_call.
3908 Add calls to set_gdbarch_push_dummy_call,
3909 set_gdbarch_push_dummy_code,
3910 frame_unwind_append_predicate,
3911 frame_base_set_default,
3912 set_gdbarch_unwind_dummy_id,
3913 set_gdbarch_unwind_pc.
3916 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3918 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3919 registers for H8/300S.
3920 (h8300_print_registers_info): Ditto.
3921 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3923 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3925 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3926 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3927 (lin_lwp_wait): Likewise. Update comments.
3928 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3929 (pull_pid_from_list, linux_record_stopped_pid): New.
3931 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3933 * ada-lang.c (scan_discrim_bound): Name first argument.
3934 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3935 declared by ALL_BLOCK_SYMBOLS.
3937 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3939 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3940 ("regcache.h"): Include it.
3941 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3943 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3945 * NEWS: Mention gdbserver detach change and "disconnect" command.
3946 * infcmd.c (disconnect_command): New function.
3947 (_initialize_infcmd): Add ``disconnect'' command.
3948 * remote.c (remote_async_detach): Delete.
3949 (remote_detach): Merge remote_async_detach.
3950 (remote_disconnect): New.
3951 (init_remote_ops): Set to_disconnect.
3952 (init_remote_cisco_ops): Likewise.
3953 (init_remote_async_ops): Likewise. Use remote_detach.
3954 * target.c (cleanup_target): Default to_disconnect.
3955 (update_current_target): Inherit to_disconnect.
3956 (target_disconnect, debug_to_disconnect): New functions.
3957 (setup_target_debug): Set to_disconnect.
3958 * target.h (struct target_ops): Add to_disconnect.
3959 (target_disconnect): Add prototype.
3961 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3963 * breakpoint.c (insert_catchpoint): New function.
3964 (insert_breakpoints): Use catch_exceptions to call
3965 insert_catchpoint. Disable catchpoints if they fail to insert.
3967 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3969 * symfile.c (reread_symbols): Clear sym_private.
3971 2003-06-17 Andrew Cagney <cagney@redhat.com>
3973 * trad-frame.h (struct frame_info): Add opaque declaration.
3974 * remote-fileio.h (struct cmd_list_element): Add opaque
3976 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3979 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3981 * remote.c (remote_prepare_to_store): Replace call to
3982 deprecated_read_register_bytes with multiple regcache_raw_read
3985 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3987 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3988 (nto_find_and_open_solib): Likewise.
3989 (nto_init_solib_absolute_prefix): Likewise.
3990 (_initialize_nto_tdep): Fix indentation.
3992 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3994 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3996 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3998 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4000 2003-06-17 Jim Blandy <jimb@redhat.com>
4002 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4004 2003-06-16 Theodore A. Roth <troth@openavr.org>
4006 * avr-tdep.c (avr_extract_return_value): New function.
4007 (avr_gdbarch_init): Set extract_return_value method.
4009 2003-06-16 Andrew Cagney <cagney@redhat.com>
4011 * frame.h (deprecated_get_next_frame_hack): Declare.
4012 * frame.c (legacy_saved_regs_prev_register): Only require
4013 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4014 there are always saved regs.
4015 (deprecated_generic_get_saved_register): Do not require
4016 DEPRECATED_FRAME_INIT_SAVED_REGS.
4017 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4018 use frame ID unwind instead.
4019 (deprecated_get_next_frame_hack): New function.
4021 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4023 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4024 (h8300_push_dummy_call): ...this function. Some minor optimization.
4025 (h8300_push_return_address): Remove.
4026 (h8300_gdbarch_init): Remove calls to
4027 set_gdbarch_deprecated_dummy_write_sp,
4028 set_gdbarch_deprecated_push_arguments and
4029 set_gdbarch_deprecated_push_return_address.
4030 Add call to set_gdbarch_push_dummy_call.
4032 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4034 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4035 (E_PSEUDO_EXR_REGNUM): Ditto.
4036 (h8300_is_argument_spill): Check for instructions moving argument
4037 registers into safe registers.
4038 (h8300_skip_prologue): Check for stm instruction to push registers
4039 used for register variables onto stack.
4040 (gdb_print_insn_h8300): Remove.
4041 (h8300_examine_prologue): Add a comment.
4042 (h8300_register_name): Take pseudo registers into account.
4043 (h8300s_register_name): Ditto.
4044 (h8300sx_register_name): Ditto.
4045 (h8300_print_register): Ditto.
4046 (h8300_print_registers_info): Define "nice" printing order.
4047 (h8300_saved_pc_after_call): Take pseudo registers into account.
4048 (h8300_register_type): Ditto. Return type used for remote connection
4049 when requesting real CCR or EXR register, return actual type when
4050 requesting pseudo CCR or EXR.
4051 (h8300_pseudo_register_read): New function.
4052 (h8300_pseudo_register_write): Ditto.
4053 (h8300_dbg_reg_to_regnum): Ditto.
4054 (h8300s_dbg_reg_to_regnum): Ditto.
4055 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4056 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4057 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4058 set_gdbarch_print_insn architecture dependent.
4059 Call set_gdbarch_pseudo_register_read and
4060 set_gdbarch_pseudo_register_write.
4061 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4063 2003-06-16 Andrew Cagney <cagney@redhat.com>
4065 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4066 * gdbarch.h, gdbarch.c: Re-generate.
4067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4068 * s390-tdep.c (s390_gdbarch_init): Update.
4069 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4070 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4071 * mips-tdep.c (mips_gdbarch_init): Update.
4072 * mcore-tdep.c (mcore_gdbarch_init): Update.
4073 * cris-tdep.c (cris_gdbarch_init): Update.
4074 * infcall.c (call_function_by_hand): Update.
4075 * ia64-tdep.c (ia64_push_arguments): Update comment.
4076 * frame.c (legacy_get_prev_frame): Do not assume
4077 SAVE_DUMMY_FRAME_TOS_P.
4078 * dummy-frame.c (find_dummy_frame): Update comment.
4080 2003-06-16 Andrew Cagney <cagney@redhat.com>
4082 * regcache.c (do_cooked_read): Do not use register_valid_p.
4084 2003-06-15 Theodore A. Roth <troth@openavr.org>
4086 * avr-tdep.c (avr_register_type): Remove a blank line.
4087 (avr_scan_prologue): Correct some comments.
4089 2003-06-15 Theodore A. Roth <troth@openavr.org>
4091 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4093 Properly scan prologues generated by gcc with the -mcall-prologues
4095 Add code to scan -mcall-prologues for mega devices.
4097 2003-06-15 Theodore A. Roth <troth@openavr.org>
4099 * avr-tdep.c (avr_register_byte): Delete function.
4100 (avr_register_raw_size): Delete function.
4101 (avr_register_virtual_size): Delete function.
4102 (avr_register_virtual_type): Delete function.
4103 (avr_register_type): New function.
4104 (avr_address_to_pointer): Remove unused code.
4105 (avr_read_fp): Need to read FP as two separate bytes due to change to
4106 avr_register_type() usage.
4107 (avr_gdbarch_init): Don't set deprecated_register_size.
4108 Don't set deprecated_register_bytes.
4109 Don't set deprecated_register_byte.
4110 Don't set deprecated_register_raw_size.
4111 Don't set deprecated_max_register_raw_size.
4112 Don't set deprecated_register_virtual_size.
4113 Don't set deprecated_max_register_virtual_size.
4114 Don't set deprecated_register_virtual_type.
4115 Set register_type method.
4117 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4119 * Makefile.in (linux-nat.o): Add rule.
4120 * linux-nat.c: New file.
4121 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4122 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4123 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4124 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4125 * config/arm/linux.mh (NATDEPFILES): Likewise.
4126 * config/i386/linux.mh (NATDEPFILES): Likewise.
4127 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4128 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4129 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4130 * config/mips/linux.mh (NATDEPFILES): Likewise.
4131 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4132 * config/s390/s390.mh (NATDEPFILES): Likewise.
4133 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4135 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4137 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4138 replace out-of-date comment.
4140 2003-06-15 Andrew Cagney <cagney@redhat.com>
4142 * rdi-share/host.h (Fail): Change to a varargs function.
4143 * remote-rdi.c (Fail): Update.
4145 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4147 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4148 (i386_convert_register_p, i386_register_to_value,
4149 i386_register_from_value): Handle types longer than 8 bytes.
4151 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4153 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4154 Move floating-point code to new function in i387-tdep.c.
4155 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4156 New functions containing code moved here from i386-tdep.c.
4157 * i387-tdep.h: Add opaque declaration for `struct type'.
4158 (i387_register_to_value, i387_value_to_register): New prototypes.
4159 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4160 (x86_64_init_abi): Set convert_register_p, register_to_value and
4161 value_to_register here.
4163 2003-06-14 Andrew Cagney <cagney@redhat.com>
4165 * mips-tdep.c (mips_register_to_value): Make static.
4166 (mips_value_to_register): Make static.
4167 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4168 * ia64-tdep.c (ia64_register_raw_size): Make static.
4169 (ia64_register_virtual_size): Make static.
4170 (ia64_register_byte): Make static.
4171 * i387-tdep.c: Include "i387-tdep.h".
4172 (print_387_control_word): Delete function.
4173 (print_387_status_word): Delete function.
4174 (print_387_status_bits): Delete function.
4175 (print_387_control_bits): Delete function.
4176 * Makefile.in (i387-tdep.o): Update dependencies.
4177 * rdi-share/host.h (Fail): Declare.
4178 * remote-rdi.c (Fail): Update to match declaration.
4180 2003-06-14 Andrew Cagney <cagney@redhat.com>
4182 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4183 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4184 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4185 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4186 * README: Delete reference to remote-array.
4187 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4188 (remote-array.o): Delete target.
4189 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4190 * remote-array.c: Delete file.
4192 2003-06-14 Andrew Cagney <cagney@redhat.com>
4193 Mark Kettenis <kettenis@gnu.org>
4195 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4196 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4197 parameter with "frame".
4198 * gdbarch.h, gdbarch.c: Re-generate.
4199 * frame.h (put_frame_register): Declare.
4200 * frame.c (put_frame_register): New function.
4201 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4202 (legacy_register_to_value): Rewrite, use "frame" to get the
4204 (legacy_value_to_register): Rewrite, use "frame" to find the
4205 register's location before storing.
4206 * arch-utils.h (legacy_convert_register_p): Update.
4207 (legacy_register_to_value, legacy_value_to_register): Update.
4208 * findvar.c (value_from_register): Rewrite, eliminate use of
4209 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4210 "frame" to REGISTER_TO_VALUE.
4211 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4212 lval_reg_frame_relative + lval_register branch of the switch. Do
4213 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4214 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4215 I386_EDI_REGNUM): New defines.
4216 (i386_next_regnum, i386_convert_register_p,
4217 i386_register_to_value, i386_value_to_register): New functions.
4218 (i386_register_convertible, i386_register_convert_to_virtual,
4219 i386_convert_to_raw): Remove functions.
4220 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4221 value_to_register instead of register_convertible,
4222 register_convert_to_virtual and register_convert_to_raw.
4223 * mips-tdep.c (mips_convert_register_p): New function.
4224 (mips_value_to_register): Replace mips_register_convert_from_type.
4225 (mips_register_to_value): Replace mips_register_convert_to_type.
4226 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4228 * alpha-tdep.c (alpha_convert_register_p): Update.
4229 (alpha_value_to_register): Update, store the register.
4230 (alpha_register_to_value): Update, fetch the register.
4232 2003-06-14 Theodore A. Roth <troth@openavr.org>
4234 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4235 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4236 Don't set deprecated_call_dummy_words.
4237 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4238 Don't set remote_translate_xfer_address.
4239 (avr_io_reg_read_command): Remove commented out debug printf.
4242 2003-06-14 Theodore A. Roth <troth@openavr.org>
4244 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4245 causes gdb to seg fault.
4247 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4249 * sparc-nat.c (fetch_inferior_registers): Correct
4250 a reference to "registers".
4252 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4254 * Makefile.in (exc_request_U_h): Define
4255 (exc_request_S_h): Likewise.
4256 (msg_reply_S_h): Likewise.
4257 (msg_U_h): Likewise.
4258 (notify_S_h): Likewise.
4259 (process_reply_S_h): Likewise.
4260 (gnu-nat.o): Depend on gdb_obstack_h
4261 * gnu-nat.c: Include "gdb_obstack.h".
4263 2003-06-13 Andrew Cagney <cagney@redhat.com>
4265 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4266 * gdbarch.h, gdbarch.c: Re-generate.
4268 2003-06-13 Andrew Cagney <cagney@redhat.com>
4270 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4271 when deprecated REGISTER macros can be deleted.
4272 * gdbarch.h, gdbarch.c: Re-generate.
4274 2003-06-13 Jim Blandy <jimb@redhat.com>
4276 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4277 Linux entry point symbols for _dl_debug_state, too.
4279 2003-06-13 Andrew Cagney <cagney@redhat.com>
4281 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4282 available, do not use the FP register, and always save the TOS.
4283 * dummy-frame.c (dummy_frame_this_id): Do not assert
4284 SAVE_DUMMY_FRAME_TOS.
4285 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4286 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4287 (i386_push_dummy_call): Add 8 to the returned SP.
4288 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4289 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4290 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4291 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4292 (x86_64_push_dummy_call): Return "sp + 16".
4293 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4294 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4295 save_dummy_frame_tos.
4297 2003-06-13 Jim Blandy <jimb@redhat.com>
4299 * frv-tdep.c (frv_use_struct_convention): Delete static
4300 declaration for function deleted in my change of 2003-06-12.
4302 2003-06-13 Theodore A. Roth <troth@openavr.org>
4304 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4305 (avr_pointer_to_address): Shift code addrs left 1 bit.
4306 (avr_convert_from_func_ptr_addr): Delete function since operation is
4307 better handled by avr_address_to_pointer and avr_pointer_to_address.
4308 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4310 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4312 From Kelley Cook <kelleycook@wideopenwest.com>:
4313 * configure.host: Accept i[34567]86 variants.
4314 * configure.tgt: Likewise.
4315 * nlm/configure.in: Likewise.
4316 * nlm/configure: Regenerated.
4318 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4320 * arm-tdep.c (solib-svr4.h): Dont' include it.
4321 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4322 * arm-linux-tdep.c: ... here. Make static.
4323 (arm_linux_init_abi): Register it.
4324 (solib-svr4.h): Include it.
4325 * Makefile.in: Update dependencies.
4326 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4327 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4329 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4331 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4332 indicate registers used for return values.
4333 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4334 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4336 (h8300_init_extra_frame_info): Ditto.
4337 (h8300_frame_locals_address): Removed.
4338 (h8300_frame_args_address): Removed.
4339 (h8300_extract_return_value): Use new regcache structure. Only care
4341 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4342 (h8300_store_return_value): Use new regcache structure. Only care
4344 (h8300h_store_return_value): Same function for 32 bit CPUs.
4345 (h8300_store_struct_return): Removed.
4346 (h8300_extract_struct_value_address): Use new regcache structure.
4347 (h8300h_extract_struct_value_address): Removed.
4348 (h8300_push_dummy_code): New function.
4349 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4350 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4351 set_gdbarch_store_return_value architecture dependent.
4352 Call set_gdbarch_push_dummy_code and
4353 set_gdbarch_extract_struct_value_address.
4354 Remove calls to set_gdbarch_frame_args_address,
4355 set_gdbarch_frame_locals_address,
4356 set_gdbarch_deprecated_store_struct_return,
4357 set_gdbarch_deprecated_extract_return_value,
4358 set_gdbarch_deprecated_extract_struct_value_address,
4359 set_gdbarch_deprecated_call_dummy_words and
4360 set_gdbarch_deprecated_sizeof_call_dummy_words.
4362 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4364 * h8300-tdep.c (h8300_register_byte): Remove.
4365 (h8300h_register_byte): Remove.
4366 (h8300_register_virtual_type): Remove. Substitute by...
4367 (h8300_register_type): New function.
4368 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4369 (h8300h_extract_struct_value_address): Ditto.
4370 (h8300_gdbarch_init): Drop calls to
4371 set_gdbarch_deprecated_register_byte and
4372 set_gdbarch_deprecated_register_virtual_type.
4373 Add call to set_gdbarch_register_type.
4375 2003-06-13 Andrew Cagney <cagney@redhat.com>
4377 * gdbarch.sh: Update comments on registers.
4378 (deprecated_register_byte): Rename register_byte.
4379 (deprecated_register_raw_size): Rename register_raw_size.
4380 (deprecated_register_virtual_size): Rename register_virtual_size.
4381 (deprecated_register_virtual_type): Rename register_virtual_type.
4382 * gdbarch.h, gdbarch.c: Re-generate.
4383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4384 * vax-tdep.c (vax_gdbarch_init): Update.
4385 * v850-tdep.c (v850_gdbarch_init): Update.
4386 * sparc-tdep.c (sparc_gdbarch_init): Update.
4387 * sh-tdep.c (sh_gdbarch_init): Update.
4388 * s390-tdep.c (s390_gdbarch_init): Update.
4389 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4390 * ns32k-tdep.c: Update.
4391 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4392 * mips-tdep.c (mips_gdbarch_init): Update.
4393 * mcore-tdep.c (mcore_gdbarch_init): Update.
4394 * m68k-tdep.c (m68k_gdbarch_init): Update.
4395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4396 * ia64-tdep.c (ia64_gdbarch_init): Update.
4397 * hppa-tdep.c (hppa_gdbarch_init): Update.
4398 * h8300-tdep.c (h8300_gdbarch_init): Update.
4399 * frv-tdep.c (frv_gdbarch_init): Update.
4400 * cris-tdep.c (cris_gdbarch_init): Update.
4401 * avr-tdep.c (avr_gdbarch_init): Update.
4402 * alpha-tdep.c (alpha_gdbarch_init): Update.
4403 * arm-tdep.c (arm_gdbarch_init): Update.
4405 2003-06-13 Andrew Cagney <cagney@redhat.com>
4407 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4408 mips_o32_use_struct_convention with always_use_struct_convention.
4410 2003-06-12 David Carlton <carlton@kealia.com>
4412 * cp-namespace.c (cp_set_block_scope): Comment out
4413 processing_has_namespace_info branch.
4415 2003-06-12 Jim Blandy <jimb@redhat.com>
4417 Recognize and skip 64-bit PowerPC Linux linkage functions.
4418 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4419 insn_pattern, insns_match_pattern, d_field, ds_field): New
4420 functions, macros, and types for working with PPC instructions.
4421 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4422 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4423 ppc64_skip_trampoline_code): New functions, variables, and macros
4424 for recognizing and skipping linkage functions.
4425 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4426 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4428 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4429 register offsets for both the 32- and 64-bit interfaces.
4431 Actually finish the job started by my change of 2003-05-29.
4432 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4433 other #definition of this.
4434 (ppc_linux_skip_trampoline_code): Remove declaration.
4435 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4437 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4440 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4441 'long' on ppc64-*-linux*.
4443 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4444 isn't #defined, assume the register doesn't exist: act as if
4445 tdep->ppc_mq_regnum were -1.
4447 * configure.host, configure.tgt: Add entries for
4448 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4450 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4453 * arch-utils.c (always_use_struct_convention): New function.
4454 * arch-utils.h (always_use_struct_convention): New prototype.
4455 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4456 (alpha_gdbarch_init): Register always_use_struct_convention,
4457 instead of alpha_use_struct_convention.
4458 * cris-tdep.c (cris_use_struct_convention): Delete.
4459 (cris_gdbarch_init): Register always_use_struct_convention,
4460 instead of cris_use_struct_convention.
4461 * frv-tdep.c (frv_use_struct_convention): Delete.
4462 (frv_gdbarch_init): Register always_use_struct_convention,
4463 instead of frv_use_struct_convention.
4464 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4465 (h8300_gdbarch_init): Register always_use_struct_convention,
4466 instead of h8300_use_struct_convention.
4467 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4468 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4469 instead of mips_o32_use_struct_convention.
4471 2003-06-12 Andrew Cagney <cagney@redhat.com>
4473 * wince.c: Include "mips-tdep.h".
4474 * mips-tdep.h (mips_next_pc): Declare.
4475 * mcore-tdep.c: Make more local functions static.
4476 * Makefile.in (wince.o): Update dependencies.
4478 2003-06-12 David Carlton <carlton@kealia.com>
4480 * symtab.c (lookup_symbol_aux_minsyms): Replace
4481 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4482 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4483 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4484 SYMBOL_NATURAL_NAME.
4486 2003-06-12 Andreas Schwab <schwab@suse.de>
4488 * Makefile.in (tuiDisassem.o): Update dependencies.
4490 2003-06-12 David Carlton <carlton@bactrian.org>
4492 * symtab.h: Delete declaration of make_symbol_overload_list.
4493 Add declaration of lookup_partial_symbol.
4494 * symtab.c (remove_params): Move to cp-support.c.
4495 (overload_list_add_symbol, make_symbol_overload_list)
4496 (sym_return_val_size, sym_return_val_index): Ditto.
4497 (lookup_partial_symbol): Make extern.
4498 * cp-support.h: Add declaration of make_symbol_overload_list.
4499 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4500 symtab.h, and block.h.
4501 (remove_params): Move here from symtab.c.
4502 (overload_list_add_symbol, make_symbol_overload_list)
4503 (sym_return_val_size, sym_return_val_index): Ditto.
4504 * valops.c: Include cp-support.h.
4505 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4506 frame_h, and block_h.
4507 (valops.o): Depend on cp_support_h.
4509 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4511 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4512 substitute by NUM_REGS throughout.
4513 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4514 (h8300s_register_name): New function for H8S registers.
4515 (h8300sx_register_name): Ditto for H8SX registers.
4516 (h8300_print_register): Revise register printing, avoid depending
4518 (h8300_register_byte): Only care for H8/300 registers.
4519 (h8300h_register_byte): New function for any other architecture.
4520 (h8300_register_raw_size): Remove.
4521 (h8300_register_virtual_type): Revise to return actually useful
4523 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4524 (h8300h_extract_struct_value_address): New function for any other
4526 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4527 set_gdbarch_register_name, set_gdbarch_register_byte,
4528 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4529 Remove calls to set_gdbarch_deprecated_register_size,
4530 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4531 set_gdbarch_deprecated_max_register_raw_size,
4532 set_gdbarch_register_virtual_size and
4533 set_gdbarch_deprecated_max_register_virtual_size entirely.
4534 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4535 set_gdbarch_long_double_bit.
4537 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4539 * doublest.c (convert_doublest_to_floatformat): When dealing
4540 with the implied integer bit, only alter mant_bits if we are
4541 processing a full 32 bits of mantissa.
4543 2003-06-11 David Carlton <carlton@bactrian.org>
4545 * dictionary.h: New.
4546 * dictionary.c: New.
4547 * block.h: Add opaque declaration for struct dictionary.
4548 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4550 (BLOCK_DICT): New macro.
4551 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4552 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4554 (ALL_BLOCK_SYMBOLS): Update definition.
4555 * Makefile.in (SFILES): Add dictionary.c.
4556 (dictionary_h): New.
4557 (COMMON_OBS): Add dictionary.o.
4558 (dictionary.o): New.
4559 (ada-lang.o): Depend on dictionary_h.
4560 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4561 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4562 (mi-cmd-stack.o): Ditto.
4563 (gdbtk-cmds.o): Update dependencies.
4564 (gdbtk-stack.o): Ditto.
4565 * ada-lang.c: Include dictionary.h.
4566 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4567 (fill_in_ada_prototype, debug_print_block): Ditto.
4568 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4569 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4571 * mdebugread.c: Include dictionary.h.
4572 (struct parse_stack): Delete 'maxsyms' member.
4573 (parse_symbol): Update calls to new_block. Delete calls to
4574 shrink_block. Use dictionary methods.
4575 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4576 Update calls to new_symtab. Don't maintain maxsyms data.
4577 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4578 (add_symbol): Just call dict_add_symbol.
4579 (new_symtab): Delete 'maxsyms' argument.
4580 (new_symtab): Update calls to new_block.
4581 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4582 (shrink_block): Delete function.
4583 (fixup_sigtramp): Update call to new_block. Add symbol via
4585 * jv-lang.c: Include dictionary.h.
4586 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4587 appropriately. Set class_symtab->free_func. Make sure the
4588 blockvector is big enough to hold two blocks.
4589 (add_class_symtab_symbol): Use dictionary methods.
4590 (free_class_block): New function.
4591 (type_from_class): Replace explicit iteration by
4593 * symtab.h (struct symtab): Replace 'free_ptr' method by
4595 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4597 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4599 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4600 Include dictionary.h.
4601 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4602 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4604 * objfiles.c: Include dictionary.h.
4605 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4606 * buildsym.c: Include dictionary.h.
4607 (finish_block): Use dictionary methods.
4608 (end_symtab): Set free_func to NULL, not free_ptr.
4609 * tracepoint.c: Include dictionary.h.
4610 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4611 (scope_info): Ditto.
4612 * stack.c: Include dictionary.h.
4613 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4614 (print_block_frame_labels, print_frame_arg_vars)
4615 (print_frame_args): Ditto.
4616 * symmisc.c (free_symtab_block): Use dictionary methods.
4617 (dump_symtab): Ditto.
4618 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4619 Include dictionary.h.
4620 * symfile.h: Delete declarations of sort_block_syms,
4622 * symfile.c (sort_block_syms): Delete.
4623 (sort_symtab_syms): Delete.
4624 * symtab.c: Include dictionary.h.
4625 (lookup_block_symbol): Use dictionary iterators.
4626 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4627 (search_symbols, make_symbol_completion_list): Ditto.
4628 (make_symbol_overload_list): Ditto.
4629 * valops.c (value_of_local): Use dict_empty.
4630 Include dictionary.h.
4632 2003-06-11 J. Brobecker <brobecker@gnat.com>
4634 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4636 2003-06-11 David Carlton <carlton@bactrian.org>
4638 * block.h (BLOCK_SHOULD_SORT): Delete.
4639 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4641 * ada-lang.c (ada_add_block_symbols): Ditto.
4642 * symfile.c (sort_block_syms): Delete.
4643 (sort_symtab_syms): Ditto.
4644 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4646 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4647 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4648 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4649 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4650 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4651 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4652 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4654 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4656 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4659 2003-06-11 Andrew Cagney <cagney@redhat.com>
4661 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4662 REGISTER_CONVERTIBLE.
4663 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4664 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4665 * gdbarch.h, gdbarch.c: Re-generate.
4666 * arch-utils.h (deprecated_register_convertible_not): Rename
4667 generic_register_convertible_not.
4668 * arch-utils.c (deprecated_register_convertible_not): Rename
4669 generic_register_convertible.
4670 (legacy_convert_register_p, legacy_register_to_value): Update.
4671 * sh-tdep.c (sh64_push_arguments): Update.
4672 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4673 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4674 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4675 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4676 * arch-utils.c (legacy_value_to_register): Update.
4677 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4678 (rs6000_register_convert_to_raw): Make parameter "from" const.
4679 * mips-tdep.c (mips_gdbarch_init): Update.
4680 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4681 * infcmd.c (default_print_registers_info): Update.
4682 * ia64-tdep.c (ia64_gdbarch_init): Update.
4683 (ia64_register_convert_to_raw): Make parameter "from" const.
4684 * i386-tdep.c (i386_gdbarch_init): Update.
4685 (i386_register_convert_to_raw): Update.
4687 2003-06-11 Andrew Cagney <cagney@redhat.com>
4689 * remote-fileio.c: Include "remote-fileio.h".
4690 * Makefile.in (remote-fileio.o): Update dependencies.
4691 (remote_fileio_h): Fix typo.
4693 2003-06-11 Andrew Cagney <cagney@redhat.com>
4695 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4696 (xstormy16_save_dummy_frame_tos): Make static.
4697 (_initialize_xstormy16_tdep): Add declaration.
4698 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4699 * v850-tdep.c: Make local functions static.
4700 (_initialize_v850_tdep): Add declaration.
4701 * sparc-tdep.c: Make local functions static.
4702 (_initialize_sparc_tdep): Add declaration.
4703 * sh-tdep.c: Make local functions static.
4704 (_initialize_sh_tdep): Add declaration.
4705 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4706 * s390-tdep.c: Make local functions static.
4707 (_initialize_s390_tdep): Add declaration.
4708 * dbxread.c (find_stab_function_addr): Make static.
4709 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4710 * ocd.c (_initialize_remote_ocd): Add declaration.
4711 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4712 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4713 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4714 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4715 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4716 * remote-array.c (_initialize_array): Add declaration.
4717 (_initialize_remote_monitors): Add declaration.
4718 * remote-mips.c: Make local functions static.
4719 (_initialize_remote_mips): Add declaration.
4720 * mcore-tdep.c: Make all local functions static.
4721 (_initialize_mcore_tdep): Add declaration.
4722 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4723 * abug-rom.c (_initialize_abug_rom): Add declaration.
4724 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4725 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4726 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4727 * remote-est.c (_initialize_est): Add declaration.
4728 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4729 (m68hc11_call_dummy_address): Make static.
4730 * ia64-tdep.c: Make local functions static.
4731 (_initialize_ia64_tdep): Add declaration.
4732 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4733 * monitor.c (monitor_wait_filter): Make static.
4734 (_initialize_remote_monitors): Add declaration.
4735 * remote-hms.c (_initialize_remote_hms): Add declaration.
4736 * remote-e7000.c (fetch_regs_from_dump): Make static.
4737 (expect_n): Make static.
4738 (_initialize_remote_e7000): Add declaration.
4739 * ser-e7kpc.c: Always include "defs.h".
4740 (_initialize_ser_e7000pc): Add declaration.
4741 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4742 * cris-tdep.c: Make all but one function static.
4743 (_initialize_cris_tdep): Add declaration.
4744 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4745 * solib.c (update_solib_list): Make static.
4746 (_initialize_solib): Add declaration.
4747 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4748 (_initialize_avr_tdep): Add declaration.
4749 * remote-rdi.c (voiddummy): Make static.
4750 (_initialize_remote_rdi): Add declaration.
4751 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4752 * remote-rdp.c (send_rdp): Make static.
4753 (_initialize_remote_rdp): Add declaration.
4754 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4756 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4758 * remote-fileio.c: Make ari happy.
4760 2003-06-10 J. Brobecker <brobecker@gnat.com>
4762 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4763 fetching the trailing bytes of the buffer we are about to write.
4765 2003-06-10 Andrew Cagney <cagney@redhat.com>
4767 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4768 * Makefile.in (remote-fileio.o): Update dependencies.
4769 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4770 include <setjmp.h>, or <sys/types.h> conditional on USG.
4771 (remote_fio_jmp_buf): Delete global variable.
4773 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4774 Martin M. Hunt <hunt@redhat.com>
4776 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4777 (SFILES): Add remote-fileio.c.
4778 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4779 dependencies for building remote.o.
4780 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4781 * remote-fileio.h: New header file defining remote File-I/O interface.
4782 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4783 static storage class.
4784 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4786 (_initialize_remote): Call initialize_remote_fileio().
4787 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4788 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4789 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4790 (captured_main): Initialize new ui_files.
4791 * ui-file.c: Add read and fgets input functions.
4792 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4793 (null_file_read): New function.
4794 (ui_file_read): New function.
4795 (set_ui_file_read): New function.
4796 (stdio_file_read): New function.
4797 * ui-file.h: New type ui_file_read_ftype.
4798 (set_ui_file_read): Declare.
4799 (ui_file_read): Declare.
4801 2003-06-09 Andrew Cagney <cagney@redhat.com>
4803 * frame.h (deprecated_unwind_get_saved_register): Rename
4804 generic_unwind_get_saved_register, update comments.
4805 * mips-tdep.c (mips_get_saved_register): Update.
4806 * frame.c (deprecated_unwind_get_saved_register): Update.
4808 2003-06-09 Andrew Cagney <cagney@redhat.com>
4810 * vax-tdep.c (vax_frame_locals_address): Delete function.
4811 (vax_gdbarch_init): Do not set frame_locals_address.
4812 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4813 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4814 * s390-tdep.c (s390_frame_args_address): Delete function.
4815 (s390_gdbarch_init): Do not set frame_args_address or
4816 frame_locals_address.
4817 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4818 (ns32k_gdbarch_init): Do not set frame_locals_address.
4819 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4820 (hppa_frame_locals_address): Delete function.
4821 (hppa_gdbarch_init): Do not set frame_args_address, or
4822 frame_locals_address.
4823 * arm-tdep.c (arm_frame_args_address): Delete.
4824 (arm_frame_locals_address): Delete.
4825 (arm_gdbarch_init): Do not set frame_args_address, or
4826 frame_locals_address.
4828 2003-06-09 Andrew Cagney <cagney@redhat.com>
4830 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4831 * gdbarch.h, gdbarch.c: Re-generate.
4832 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4833 * arch-utils.c (frame_num_args_unknown): Delete function.
4834 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4835 (frame_info): Use FRAME_NUM_ARGS_P.
4836 * arm-tdep.c (arm_frame_num_args): Delete function.
4837 (arm_gdbarch_init): Do not set frame_num_args.
4838 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4839 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4840 (hppa_gdbarch_init): Do not set frame_num_args.
4841 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4842 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4843 frame_num_args to default frame_num_args_unknown.
4844 * v850-tdep.c (v850_gdbarch_init): Ditto.
4845 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4846 * sh-tdep.c (sh_gdbarch_init): Ditto.
4847 * s390-tdep.c (s390_gdbarch_init): Ditto.
4848 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4849 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4850 * mips-tdep.c (mips_gdbarch_init): Ditto.
4851 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4852 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4854 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4855 * i386-tdep.c (i386_gdbarch_init): Ditto.
4856 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4857 * frv-tdep.c (frv_gdbarch_init): Ditto.
4858 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4859 * cris-tdep.c (cris_gdbarch_init): Ditto.
4860 * avr-tdep.c (avr_gdbarch_init): Ditto.
4861 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4863 2003-06-09 Andrew Cagney <cagney@redhat.com>
4865 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4866 (print_frame_args): Moved to "stack.c".
4867 * stack.c: Include "gdb_assert.h".
4868 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4869 (print_frame_args): Moved from "printcmd.c".
4870 * frame.h (print_frame_args): Delete declaration.
4871 * Makefile.in (stack.o): Update dependencies.
4873 2003-06-08 Andrew Cagney <cagney@redhat.com>
4875 * frame.c (get_prev_frame): Remove reference to
4876 frame_args_address_correct in comments.
4877 * frame-base.c (default_frame_args_address): Delete code
4878 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4879 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4880 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4881 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4882 (vax_frame_args_address_correct): Delete declaration.
4884 2003-06-08 Andrew Cagney <cagney@redhat.com>
4886 * gdbarch.sh (UNWIND_SP): Add.
4887 * gdbarch.h, gdbarch.c: Re-generate.
4888 * frame.c (frame_sp_unwind): New function.
4889 (get_frame_sp): New function.
4890 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4891 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4892 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4894 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4895 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4897 2003-06-08 Andrew Cagney <cagney@redhat.com>
4899 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4902 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4903 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4904 * config/m68k/tm-sun3.h: Update.
4905 * config/m68k/tm-m68klynx.h: Update.
4906 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4908 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4909 trad_frame". Update comments.
4910 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4911 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4912 (trad_frame_register_value, trad_frame_prev_register): Update.
4914 2003-06-08 Andrew Cagney <cagney@redhat.com>
4916 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4917 from GCC's acinclude.m4.
4918 * configure.in: Check for getopt's delcaration.
4919 * aclocal.m4, config.in, configure: Re-generate.
4920 * main.c (error_init): Delete declaration.
4921 * defs.h (error_init): Declare.
4922 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4923 (rs6000_convert_from_func_ptr_addr): Make static.
4924 (_initialize_rs6000_tdep): Add declaration.
4925 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4926 (show_commands, set_verbose, show_history): Delete declaration.
4927 * top.h (set_verbose): Add declaration.
4928 (show_history, set_history, show_commands): Add declaration.
4929 (do_restore_instream_cleanup): Add declaration.
4930 * objc-lang.c (specialcmp): Make static.
4931 (print_object_command): Make static.
4932 (find_objc_msgsend): Make static.
4933 (find_objc_msgcall_submethod_helper): Make static.
4934 (find_objc_msgcall_submethod): Make static.
4935 (_initialize_objc_language): Add declaration.
4936 (find_implementation_from_class): Make static.
4937 (find_implementation): Make static.
4938 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4939 * objc-lang.h (lookup_struct_typedef): Add declaration.
4940 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4941 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4942 (do_restore_user_call_depth): Make static.
4943 (do_restore_instream_cleanup): Delete declaration.
4944 (dont_repeat): Delete declaration.
4945 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4946 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4947 * reggroups.c (_initialize_reggroup): Add declaration.
4948 * cp-support.c (_initialize_cp_support): Add declaration.
4949 * cp-abi.c (_initialize_cp_abi): Add declaration.
4950 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4951 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4952 (_initialize_gnu_v3_abi): Add declaration.
4953 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4954 (_initialize_gnu_v2_abi): Add declaration.
4955 * frame-base.c (_initialize_frame_base): Add declaration.
4956 * doublest.c (floatformat_from_length): Make static.
4957 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4958 * frame.c (create_sentinel_frame): Make static.
4959 (_initialize_frame): Add declaration.
4960 * top.c (do_catch_errors): Make static.
4961 (gdb_rl_operate_and_get_next_completion): Make static.
4962 * typeprint.c: Include "typeprint.h".
4963 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4964 (sentinel_frame_this_id): Make static.
4965 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4966 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4967 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4968 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4969 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4970 * maint.c (maintenance_print_architecture): Make static.
4971 * signals/signals.c (_initialize_signals): Add declaration.
4972 * std-regs.c (_initialize_frame_reg): Add declaration.
4973 * jv-exp.y (push_variable): ISO C definition.
4974 (push_qualified_expression_name): Ditto.
4975 * memattr.c (_initialize_mem): Add declaration.
4976 * remote.c (remote_check_watch_resources): Make static.
4977 (remote_stopped_by_watchpoint): Make static.
4978 (remote_stopped_data_address): Make static.
4979 * d10v-tdep.c (nr_dmap_regs): Make static.
4980 (a0_regnum): Make static.
4981 (d10v_frame_unwind_cache): Make static.
4982 (d10v_frame_p): Make static.
4983 * osabi.c (show_osabi): Make static.
4984 (_initialize_gdb_osabi): Add extern declaration.
4985 * gdbtypes.c (make_qualified_type): Make static.
4986 (safe_parse_type): Make static.
4987 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4988 * macrotab.c (macro_bcache_free): Make static.
4989 * interps.c (interp_set_quiet): Make static.
4990 (interpreter_exec_cmd): Make static.
4991 * stack.h (select_frame_command): New file.
4992 * stack.c: Include "stack.h".
4993 (select_frame_command_wrapper): Delete function.
4994 (select_frame_command): Make global.
4995 * infcall.c: Include "infcall.h".
4996 * linespec.c: Include "linespec.h".
4997 * symfile.c (sections_overlap): Make static.
4998 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4999 * charset.c (_initialize_charset): Add missing prototype.
5000 * regcache.c (init_legacy_regcache_descr): Make static.
5001 (do_regcache_xfree): Make static.
5002 (regcache_xfer_part): Make static.
5003 (_initialize_regcache): Add missing prototype.
5004 * breakpoint.c (parse_breakpoint_sals): Make static.
5005 (breakpoint_sals_to_pc): Make static.
5006 * interps.h (clear_interpreter_hooks): ISO C declaration.
5007 * Makefile.in (stack_h): Define.
5008 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5009 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5011 2003-06-08 Andrew Cagney <cagney@redhat.com>
5013 * Makefile.in (d10v-tdep.o): Update dependencies.
5014 (SFILES): Add trad-frame.c.
5015 (trad_frame_h): Define.
5016 (COMMON_OBS): Add trad-frame.o.
5017 (trad-frame.o): Specify dependencies.
5018 * d10v-tdep.c: Include "trad-frame.h".
5019 (saved_regs_unwinder): Delete function.
5020 (d10v_frame_prev_register): Use trad_frame_prev_register.
5021 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5022 trad_frame", delete "regs" and "prev_sp".
5023 (prologue_find_regs): Use trad-frame.
5024 * trad-frame.h, trad-frame.c: New files.
5026 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5028 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5030 2003-06-07 Adam Fedor <fedor@gnu.org>
5032 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5033 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5034 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5035 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5036 resolve_msgsend_super, resolve_msgsend_super_stret):
5039 2003-06-07 Andrew Cagney <cagney@redhat.com>
5041 * symfile.h: Re-indent, clean up comments.
5043 2003-06-07 Andrew Cagney <cagney@redhat.com>
5045 * inferior.h (deprecated_write_sp): Replace
5046 generic_target_write_sp.
5047 * regcache.c (deprecated_write_sp): Replace
5048 generic_target_write_sp.
5049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5050 * vax-tdep.c (vax_gdbarch_init): Update.
5051 * v850-tdep.c (v850_gdbarch_init): Update.
5052 * sparc-tdep.c (sparc_gdbarch_init): Update.
5053 * sh-tdep.c (sh_gdbarch_init): Update.
5054 * s390-tdep.c (s390_gdbarch_init): Update.
5055 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5056 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5057 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5058 * mcore-tdep.c (mcore_gdbarch_init): Update.
5059 * m68k-tdep.c (m68k_gdbarch_init): Update.
5060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5061 * ia64-tdep.c (ia64_gdbarch_init): Update.
5062 * h8300-tdep.c (h8300_gdbarch_init): Update.
5063 * frv-tdep.c (frv_gdbarch_init): Update.
5064 * cris-tdep.c (cris_gdbarch_init): Update.
5065 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5067 2003-06-07 Andrew Cagney <cagney@redhat.com>
5069 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5070 Assert that PC_REGNUM is valid.
5071 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5073 2003-06-07 Andrew Cagney <cagney@redhat.com>
5075 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5076 * gdbarch.h, gdbarch.c: Regenerate.
5077 * mn10300-tdep.c: Include "gdb_assert.h".
5078 (mn10300_read_fp): New function.
5079 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5080 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5081 * ia64-tdep.c: Include "gdb_assert.h".
5082 (ia64_read_fp): New function.
5083 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5084 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5085 * regcache.c (generic_target_read_sp): Delete function.
5086 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5087 * inferior.h (generic_target_read_sp): Delete declaration.
5088 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5089 generic_target_read_sp.
5090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5091 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5092 * sh-tdep.c (sh_gdbarch_init): Ditto.
5093 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5094 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5096 2003-06-07 Andrew Cagney <cagney@redhat.com>
5098 * gdbarch.sh: Comment each field of startup_gdbarch.
5099 * gdbarch.h, gdbarch.c: Re-generate.
5101 2003-06-07 Andrew Cagney <cagney@redhat.com>
5103 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5104 * gdbarch.h, gdbarch.c: Re-generate.
5105 * regcache.c: Update comments on read_pc et.al.
5106 (generic_target_read_pc): Delete function.
5107 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5108 * inferior.h (generic_target_read_pc): Delete declaration.
5109 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5110 generic_target_read_pc.
5111 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5112 * sh-tdep.c (sh_gdbarch_init): Ditto.
5113 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5116 2003-06-07 Andrew Cagney <cagney@redhat.com>
5118 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5119 "index" with "special_local_sect". Use strcmp instead of STREQ.
5120 Append period to coments.
5122 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5124 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5125 (elfstab_offset_sections): Likewise.
5126 * gdb-stabs.h (stab_section_info): Likewise.
5127 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5128 * objfiles.c (objfile_relocate): Likewise.
5129 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5130 * remote.c (get_offsets): Likewise.
5131 (remote_cisco_objfile_relocate): Likewise.
5132 * somread.c (som_symfile_offsets): Likewise.
5133 * symfile.c (alloc_section_addr_info): New function.
5134 (build_section_addr_info_from_section_tab): Use it.
5135 (free_section_addr_info): Adjust.
5136 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5137 (syms_from_objfile): Allocate local_addr dynamically.
5138 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5140 (add_symbol_file_command): Allocate sect_opts dynamically.
5141 (reread_symbols): Avoid use of SECT_OFF_MAX.
5142 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5143 (alloc_section_addr_info): Declare it.
5144 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5145 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5147 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5149 2003-06-06 Andrew Cagney <cagney@redhat.com>
5151 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5152 (d10v_frame_unwind_cache): Do not set "return_pc".
5154 2003-06-06 Michael Snyder <msnyder@redhat.com>
5156 * h8300-tdep.c: Make tidy (long lines).
5158 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5160 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5161 to regcache_collect().
5163 2003-06-05 J. Brobecker <brobecker@gnat.com>
5165 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5166 pc_in_sigtramp multiarch method.
5167 (hppa_hpux_som_init_abi): Use it.
5168 (hppa_hpux_elf_init_abi): Likewise.
5169 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5170 macro has been multiarched.
5171 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5172 macro here, as hppa64 isn't multiarched yet.
5174 2003-06-05 Andrew Cagney <cagney@redhat.com>
5176 * Makefile.in (value_h): Add $(frame_h).
5177 * value.h: Include "frame.h".
5178 (struct value): Replace "frame_addr" with "frame_id".
5179 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5180 * values.c (allocate_value): Use VALUE_FRAME_ID.
5181 (value_copy): Use VALUE_FRAME_ID.
5182 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5183 * valops.c (value_assign): Update. Use frame_find_by_id.
5185 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5187 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5190 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5192 * thread-db.c (check_event): For create/death event breakpoints,
5193 loop through all messages to ensure that we read the message
5194 corresponding to the breakpoint we are at.
5196 2003-06-04 Michael Snyder <msnyder@redhat.com>
5198 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5200 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5202 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5203 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5204 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5205 when handling .eh_frame sections.
5207 2003-06-04 J. Brobecker <brobecker@gnat.com>
5209 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5210 prepare_to_proceed procedure instead of the hppa-specific one.
5211 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5213 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5215 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5216 * config.in: Regenerated.
5217 * configure.in: Add test for syscall function and check for
5218 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5219 * configure: Regenerated.
5220 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5222 (kill_lwp): New function that uses tkill syscall or
5223 uses kill, depending on whether threading model is nptl or not.
5224 All callers of kill() changed to use kill_lwp().
5225 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5226 see if all threads have already exited in the nptl model.
5227 (stop_and_resume_callback): New callback function used by the
5228 lin_lwp_wait thread exit handling code.
5229 (stop_wait_callback): Check for threads already having exited and
5230 delete such threads fromt the lwp list when discovered.
5231 (stop_callback): Don't assert retcode of kill call.
5233 Roland McGrath <roland@redhat.com>
5234 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5237 2003-06-03 Richard Henderson <rth@redhat.com>
5239 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5240 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5241 (alpha_sigtramp_frame_prev_register): Likewise.
5242 (alpha_heuristic_frame_prev_register): Likewise.
5243 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5245 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5246 alpha-specific register id names.
5247 (alpha_mdebug_frame_unwind_cache): Likewise.
5248 (alpha_mdebug_frame_prev_register): Likewise.
5250 2003-06-03 Richard Henderson <rth@redhat.com>
5252 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5253 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5254 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5255 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5257 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5258 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5259 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5261 * alpha-linux-tdep.c: Remove unnecessary includes.
5262 * Makefile.in (alpha-linux-tdep.o): Update.
5264 2003-06-03 Richard Henderson <rth@redhat.com>
5266 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5267 (alphabsd_fill_fpreg): Likewise.
5269 2003-06-03 J. Brobecker <brobecker@gnat.com>
5271 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5272 references to struct frame_info fields by calls to the equivalent
5273 accessors. Necessary now that frame_info is opaque.
5275 2003-06-03 J. Brobecker <brobecker@gnat.com>
5277 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5278 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5279 structure, field no longer exists.
5281 2003-06-03 J. Brobecker <brobecker@gnat.com>
5283 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5284 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5286 2003-06-03 J. Brobecker <brobecker@gnat.com>
5288 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5289 references to struct frame_info fields by calls to the equivalent
5290 accessors. Necessary now that frame_info is opaque.
5292 2003-06-03 J. Brobecker <brobecker@gnat.com>
5294 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5295 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5296 structure, field no longer exists.
5298 2003-06-03 Theodore A. Roth <troth@openavr.org>
5300 * remote.c (init_remote_state): Compute sizeof_g_packet by
5301 accumulation of the size of all registers instead of blindly using
5302 DEPRECATED_REGISTER_BYTES.
5304 2003-06-03 Michael Snyder <msnyder@redhat.com>
5306 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5307 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5310 2003-06-03 J. Brobecker <brobecker@gnat.com>
5312 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5313 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5315 2003-06-03 Andrew Cagney <cagney@redhat.com>
5317 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5318 (sparc_convert_to_raw): Delete function.
5319 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5320 register_convert_to_virtual.
5322 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5324 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5325 layer if not dealing with a statically-linked threaded program.
5327 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5329 * solib.c (solib_open): Update comment to reflect actual search order.
5331 2003-06-03 Andrew Cagney <cagney@redhat.com>
5333 * frame.c (get_frame_memory_signed): New function.
5334 (get_frame_memory, get_frame_memory_unsigned): New function.
5335 (get_frame_arch): New function.
5336 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5337 (get_frame_memory, get_frame_unsigned_memory): Declare.
5338 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5339 get_frame_memory_unsigned and get_frame_arch.
5340 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5342 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5344 * MAINTAINERS (write after approval): Add myself.
5346 2003-06-03 Jim Blandy <jimb@redhat.com>
5348 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5349 elements of gregset_t are 64 bits each, but access registers
5350 are still 32 bits, so they're packed two per gregset_t
5351 element. Unpack/pack them properly.
5353 2003-06-02 David Carlton <carlton@bactrian.org>
5355 * linespec.c (find_methods): Break out code into
5356 add_matching_methods and add_constructors.
5357 (add_matching_methods): New.
5358 (add_constructors): Ditto.
5360 2003-06-02 Andrew Cagney <cagney@redhat.com>
5362 * sparc-tdep.c (sparc_print_registers): Delete call to
5363 REGISTER_CONVERTIBLE.
5364 (sparc_gdbarch_init): Do not set register_convertible.
5365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5366 * frv-tdep.c (frv_gdbarch_init): Ditto.
5367 * cris-tdep.c (cris_gdbarch_init): Ditto.
5369 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5371 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5372 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5373 (syms_from_objfile): Ditto.
5375 2003-06-03 Andreas Schwab <schwab@suse.de>
5377 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5378 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5380 2003-06-02 Richard Henderson <rth@redhat.com>
5382 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5383 a member of all_reggroup.
5385 2003-06-02 Richard Henderson <rth@redhat.com>
5387 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5388 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5389 (alpha_lds, alpha_sts): New.
5390 (alpha_convert_register_p): Change from _register_convertible.
5391 (alpha_register_to_value): Change from _convert_to_virtual;
5392 restructure and fail for type sizes other than 4 or 8.
5393 (alpha_value_to_register): Similarly.
5394 (alpha_extract_return_value): Use alpha_sts.
5395 (alpha_store_return_value): Use alpha_lds.
5396 (alpha_gdbarch_init): Update hooks.
5398 2003-06-02 Richard Henderson <rth@redhat.com>
5400 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5402 (alpha_sigtramp_register_address): Likewise.
5404 2003-06-02 Richard Henderson <rth@redhat.com>
5406 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5407 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5408 * alpha-tdep.h: Declare them.
5410 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5411 Remove zerobuf. Don't error on UNIQUE.
5412 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5413 (ALPHA_REGSET_UNIQUE): Provide default.
5414 (supply_gregset): Use alpha_supply_int_regs.
5415 (fill_gregset): Use alpha_fill_int_regs.
5416 (supply_fpregset): Use alpha_supply_fp_regs.
5417 (fill_fpregset): Use alpha_fill_fp_regs.
5418 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5419 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5420 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5421 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5422 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5423 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5425 2003-06-02 Richard Henderson <rth@redhat.com>
5427 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5429 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5430 (alpha_store_return_value): Likewise.
5432 2003-06-02 David Carlton <carlton@math.stanford.edu>
5434 * block.c (contained_in): Add 'const' to arguments.
5435 (block_function): Ditto.
5436 * block.h: Update declarations for block_function and
5439 2003-06-02 David Carlton <carlton@math.stanford.edu>
5441 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5442 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5443 * p-valprint.c (pascal_val_print): Ditto.
5444 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5446 2003-06-02 Richard Henderson <rth@redhat.com>
5448 * alpha-tdep.c (alpha_push_dummy_call): Use
5449 builtin_type_ieee_double_little instead of builtin_type_double.
5451 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5452 sign-extension of 32-bit values.
5453 (alpha_store_return_value): Similarly.
5455 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5456 (alpha_extract_return_value): Likewise.
5457 (alpha_store_return_value): Likewise.
5459 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5460 (alpha_store_return_value): Error on IEEE Quad floats.
5462 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5463 (alpha_extract_struct_value_address): Likewise.
5464 (alpha_store_return_value): Likewise.
5465 (alpha_store_struct_return): Remove.
5466 (alpha_gdbarch_init): Update hook registration to match.
5468 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5469 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5470 macros where appropriate.
5471 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5472 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5474 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5475 for SP, GP; void_func_ptr for PC; non-language-specific types
5477 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5479 2003-06-02 Richard Henderson <rth@redhat.com>
5481 * top.h (lim_at_start): Declare.
5482 * main.c (captured_main): Set it.
5483 * top.c (lim_at_start): Define.
5484 (command_loop): Use it instead of &environ.
5485 * event-top.c (command_handler): Likewise.
5487 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5489 * mipsnbsd-tdep.c: Update copyright years.
5490 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5492 2003-06-01 Richard Henderson <rth@redhat.com>
5494 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5495 (alpha-linux-tdep.o): Update dependencies.
5496 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5497 * alpha-mdebug-tdep.c: Remove unneeded includes.
5499 2003-06-01 Richard Henderson <rth@redhat.com>
5501 * alpha-tdep.c (alpha_register_reggroup_p): New.
5502 (alpha_gdbarch_init): Register it.
5504 2003-06-02 Andrew Cagney <cagney@redhat.com>
5506 * dwarfread.c: Eliminate "register"
5507 (decode_die_type): Eliminate assignment within "if".
5508 (struct_type, decode_array_element_type): Ditto.
5509 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5510 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5511 (decode_modified_type, completedieinfo): Ditto.
5512 * block.c: Eliminate "register".
5513 (blockvector_for_pc_sect): Eliminate assignment within "if".
5514 * cp-support.h (struct symbol): Opaque declaration.
5515 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5517 2003-06-01 Richard Henderson <rth@redhat.com>
5519 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5520 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5522 2003-06-01 Adam Fedor <fedor@gnu.org>
5524 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5525 * gdbarch.[ch]: Regenerate.
5526 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5527 (hppa_gdbarch_init): Set it in the gdbarch vector.
5528 * i386-tdep.c (i386_fetch_pointer_argument): New
5529 (i386_gdbarch_init): Set it into gdbarch.
5530 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5531 (rs6000_gdbarch_init): Set it in gdbarch.
5532 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5533 (sparc_gdbarch_init): Set it in gdbarch.
5535 2003-06-01 Andrew Cagney <cagney@redhat.com>
5537 * defs.h (extract_address): Delete declaration.
5538 * findvar.c (extract_address): Delete function.
5539 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5540 extract_address with the inline equivalent,
5541 extract_unsigned_integer.
5542 (xstormy16_extract_struct_value_address): Ditto.
5543 (xstormy16_pointer_to_address): Ditto.
5544 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5545 * v850-tdep.c (v850_push_arguments): Ditto.
5546 (v850_extract_return_value): Ditto.
5547 (v850_extract_struct_value_address): Ditto.
5548 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5549 (sparcnbsd_get_longjmp_target_64): Ditto.
5550 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5551 (get_longjmp_target): Ditto.
5552 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5553 (sh64_extract_struct_value_address): Ditto.
5554 (sh_push_arguments): Ditto.
5555 (sh64_push_arguments): Ditto.
5556 * remote-vxsparc.c (vx_read_register): Ditto.
5557 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5558 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5559 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5560 * mipsv4-nat.c (get_longjmp_target): Ditto.
5561 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5562 * mips-nat.c (get_longjmp_target): Ditto.
5563 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5564 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5565 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5566 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5567 * irix5-nat.c (get_longjmp_target): Ditto.
5568 * irix4-nat.c (get_longjmp_target): Ditto.
5569 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5570 (ia64_push_arguments): Ditto.
5571 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5572 * h8300-tdep.c (h8300_push_arguments): Ditto.
5573 (h8300_store_return_value): Ditto.
5574 (h8300_extract_struct_value_address): Ditto.
5575 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5576 (frv_push_arguments): Ditto.
5577 * avr-tdep.c (avr_pointer_to_address): Ditto.
5578 (avr_push_arguments): Ditto.
5579 * arm-tdep.c (arm_push_dummy_call): Ditto.
5580 (arm_get_longjmp_target): Ditto.
5581 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5582 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5583 (alpha_get_longjmp_target): Ditto.
5585 * solib-irix.c (extract_mips_address): Inline extract_address,
5586 replacing it with extract_signed_integer.
5587 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5588 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5589 (first_link_map_member, open_symbol_file_object): Ditto.
5590 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5591 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5592 (LM_NEXT, LM_NAME): Ditto.
5594 2003-06-01 Richard Henderson <rth@redhat.com>
5596 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5597 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5598 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5599 (alpha_cannot_store_register): Likewise.
5600 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5601 * alpha-nat.c (supply_gregset): Likewise.
5602 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5604 2003-06-01 Andrew Cagney <cagney@redhat.com>
5606 * infcall.c (call_function_by_hand): Update comment on
5607 DEPRECATED_DUMMY_WRITE_SP.
5609 * mips-tdep.c (mips_gdbarch_init): Do not set
5610 deprecated_dummy_write_sp.
5611 (mips_eabi_push_dummy_call): Set the SP register.
5612 (mips_o64_push_dummy_call): Set the SP register.
5613 (mips_o32_push_dummy_call): Set the SP register.
5614 (mips_n32n64_push_dummy_call): Set the SP register.
5616 2003-06-01 Richard Henderson <rth@redhat.com>
5618 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5619 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5620 (supply_gregset): Likewise.
5621 * alpha-tdep.c (alpha_store_return_value): Likewise.
5622 (alpha_get_longjmp_target): Likewise.
5623 (alpha_register_name): Constify array.
5624 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5625 deprecated_register_size, deprecated_register_bytes,
5626 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5627 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5628 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5630 2003-06-01 Richard Henderson <rth@redhat.com>
5632 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5633 from arg_reg_buffer to regcache to avoid double conversion.
5635 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5637 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5639 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5640 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5642 2003-06-01 Richard Henderson <rth@redhat.com>
5644 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5645 (decode_frame_entry): Set it. Skip FDE augmentation.
5647 2003-06-01 Richard Henderson <rth@redhat.com>
5649 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5650 not overlapping PC_REGNUM.
5652 2003-06-01 Richard Henderson <rth@redhat.com>
5654 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5655 alpha_push_arguments. Don't dump argument register data to
5656 the target stack. Fix float and 128-bit long double semantics.
5657 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5658 (alpha_fix_call_dummy): Remove.
5659 (alpha_call_dummy_words): Remove.
5660 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5662 2003-06-01 Richard Henderson <rth@redhat.com>
5664 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5666 2003-06-01 Andrew Cagney <cagney@redhat.com>
5668 * mips-tdep.c (is_mips16_addr): New function.
5669 (make_mips16_addr, unmake_mips16_addr): New functions.
5670 (pc_is_mips16, mips_fetch_instruction): Use.
5671 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5672 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5673 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5674 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5676 * config/mips/tm-mips.h: Update copyright.
5677 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5678 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5679 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5680 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5681 (TM_PRINT_INSN_MACH): Delete.
5682 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5684 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5685 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5686 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5687 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5688 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5689 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5690 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5691 mips*-*-riscos* and mips*-*-sysv* onto mips.
5692 * config/mips/mips64.mt: New file.
5693 * config/mips/mips.mt: New file.
5694 * config/mips/littlemips.mt: Delete file.
5695 * config/mips/decstation.mt: Delete file.
5696 * config/mips/vr4300el.mt: Delete file.
5697 * config/mips/vr5000el.mt: Delete file.
5698 * config/mips/vr5000.mt: Delete file.
5699 * config/mips/vr4100.mt: Delete file.
5700 * config/mips/vr4xxxel.mt: Delete file.
5701 * config/mips/vr4300.mt: Delete file.
5702 * config/mips/vr4xxx.mt: Delete file.
5703 * config/mips/bigmips.mt: Delete file.
5704 * config/mips/bigmips64.mt: Delete file.
5705 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5706 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5707 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5708 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5709 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5711 * config/mips/tm-irix3.h: Ditto.
5712 * config/mips/tm-mipsv4.h: Ditto.
5713 * config/mips/tm-embed.h: Ditto.
5714 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5716 * config/mips/tm-vr5000el.h: Delete file.
5717 * config/mips/tm-tx39l.h: Delete file.
5718 * config/mips/tm-vr4300el.h: Delete file.
5719 * config/mips/tm-vr4xxxel.h: Delete file.
5720 * config/mips/tm-vr4300.h: Delete file.
5721 * config/mips/tm-vr4100.h: Delete file.
5722 * config/mips/tm-vr4xxx.h: Delete file.
5723 * config/mips/tm-vr5000.h: Delete file.
5724 * config/mips/tm-embedl64.h: Delete file.
5725 * config/mips/tm-embedl.h: Delete file.
5726 * config/mips/tm-embed64.h: Delete file.
5727 * config/mips/tm-bigmips64.h: Delete file.
5728 * config/mips/tm-bigmips.h: Delete file.
5730 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5733 * shnbsd-nat.c: Include "sh-tdep.h".
5735 From Richard Henderson <rth@redhat.com>:
5736 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5738 2003-05-31 Andrew Cagney <cagney@redhat.com>
5740 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5741 forward declaration.
5742 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5743 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5744 (mips_find_saved_regs): Use set_reg_offset.
5745 (mips_frame_init_saved_regs): Delete function.
5746 (mips_pop_frame): Call mips_find_saved_regs instead of
5747 DEPRECATED_FRAME_INIT_SAVED_REGS.
5749 2003-05-31 Andrew Cagney <cagney@redhat.com>
5751 * mips-tdep.c (mips_gdbarch_init): Do not set
5752 deprecated_max_register_raw_size, register_virtual_size, and
5753 deprecated_max_register_virtual_size.
5755 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5757 * i386-tdep.c: Include "dwarf2-frame.h".
5758 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5759 * Makefile.in (i386-tdep.o): Update dependencies.
5761 * dwarf2-frame.c, dwarf2-frame.h: New files.
5762 * Makefile.in (SFILES): Add dwarf2-frame.c.
5763 (dwarf2_frame_h): Define.
5764 (COMMON_OBS): Add dwarf2-frame.o.
5765 (dwarf2-frame.o): Add dependencies.
5767 2003-05-31 Andreas Jaeger <aj@suse.de>
5769 * x86-64-linux-nat.c: Fix comment.
5771 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5773 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5776 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5777 have a sigcontext_addr handler.
5778 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5779 sigcontext_addr handler.
5781 2003-05-31 Andrew Cagney <cagney@redhat.com>
5783 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5784 (print_fp_register_row): Replace do_fp_register_row.
5785 (mips_print_fp_register): Add "file" and "frame" parameters.
5786 (mips_print_register): Add "file" and "frame" parameters.
5787 (mips_print_registers_info): Replace mips_do_registers_info.
5788 (mips_gdbarch_init): Set print_registers_info instead of
5789 deprecated_do_registers_info.
5790 (mips_read_fp_register_single): Add "frame" parameter.
5791 (mips_read_fp_register_double): Add "frame" parameter.
5793 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5795 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5796 Fixes a bug where GDB would print the wrong register names for
5797 targets without SSE.
5799 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5800 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5803 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5804 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5805 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5808 From Michal Ludvig <mludvig@suse.cz>:
5809 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5811 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5812 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5813 I386_ST0_REGNUM): Move here from...
5814 * i386-tdep.c: ... here.
5815 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5816 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5817 registers if possible.
5818 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5819 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5821 (i386bsd_sc_reg_offset): New variable.
5822 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5823 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5825 (i386fbsd_sc_reg_offset): New variable.
5826 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5828 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5830 (i386fbsd4_sc_reg_offset): New variable.
5831 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5832 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5834 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5835 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5836 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5838 (i386nbsd_sc_reg_offset): New variable.
5839 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5840 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5842 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5844 (i386obsd_sc_reg_offset): New variable.
5845 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5846 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5848 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5849 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5850 for frame pointer offset in `struct sigcontext'.
5852 2003-05-31 Andrew Cagney <cagney@redhat.com>
5854 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5855 architecture methods call_dummy_words, sizeof_call_dummy_words,
5856 push_return_address, store_struct_return, and fix_call_dummy. Set
5857 push_dummy_call instead of deprecated_push_arguments.
5858 (mips_store_struct_return): Delete function.
5859 (mips_fix_call_dummy): Delete function.
5860 (mips_push_return_address): Delete function.
5861 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5862 RA_REGNUM and T9_REGNUM.
5863 (mips_n32n64_push_dummy_call): Ditto for
5864 mips_n32n64_push_arguments.
5865 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5866 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5868 2003-05-31 Andrew Cagney <cagney@redhat.com>
5870 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5871 "dummy_addr" to "bp_addr".
5872 * infcall.c (call_function_by_hand): Pass "funaddr" to
5873 gdbarch_push_dummy_call.
5874 * gdbarch.h, gdbarch.c: Re-generate.
5875 * i386-tdep.c (i386_push_dummy_call): Update.
5876 * arm-tdep.c (arm_push_dummy_call): Update.
5877 * d10v-tdep.c (d10v_push_dummy_call): Update.
5879 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5881 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5882 variable declarations.
5883 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5884 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5885 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5886 x86_64_init_frame_pc, x86_64_init_frame_pc,
5887 x86_64_function_has_prologue): Remove prototypes.
5888 (X86_64_NUM_GREGS): New define.
5889 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5890 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5891 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5892 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5893 XMM1_REGNUM): Remove defines.
5894 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5895 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5896 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5897 X86_64_XMM1_REGNUM): New defines.
5898 (struct x86_64_register_info): Renamed from `struct
5899 register_info'. Remove `size' member.
5900 (x86_64_register_info_table): Remove variable.
5901 (x86_64_register_info): New variable.
5902 (X86_64_NUM_REGS): New define.
5903 (X86_64_NUM_GREGS): Remove define.
5904 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5905 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5907 (x86_54_dwarf2_reg_to_regnum): Remove function.
5908 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5909 (x86_64_dwarf_reg_to_regnum): New function.
5910 (x86_64_register_name): Rewrite.
5911 (x86_64_register_raw_size): Remove function.
5912 (x86_64_register_byte_table): Remove variable.
5913 (x86_64_register_byte): Remove function.
5914 (x86_64_register_virtual_type): Remove function.
5915 (x86_64_register_type): New function.
5916 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5917 x86_64_register_convert_to_raw): Remove functions.
5918 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5919 (x86_64_use_struct_convention): Make static. Adjust for renamed
5921 (x86_64_frame_init_saved_regs): Remove function.
5922 (x86_64_push_arguments): Make static. Change to accept a regcache
5924 (x86_64_store_return_value, x86_64_extract_return_value): Make
5925 static. Rewrite based on i386 counterparts.
5926 (x86_64_push_dummy_call): New function.
5927 (X86_64_NUM_SAVED_REGS): New define.
5928 (x86_64_register_number): Remove function.
5929 (x86_64_store_struct_return): Remove function.
5930 (x86_64_frameless_function_invocation,
5931 x86_64_function_has_prologue): Remove functions.
5932 (PROLOG_BUFSIZE): Remove define.
5933 (struct x86_64_frame_cache): New structure.
5934 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5935 x86_64_frame_cache, x86_64_frame_this_id,
5936 x86_64_frame_prev_register, x86_64_frame_p,
5937 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5938 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5940 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5942 (x86_64_skip_prologue): Rewrite in terms of
5943 x86_64_analyze_prologue.
5944 (x86_64_frame_base_address): New function.
5945 (x86_64_frame_base): New variable.
5946 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5947 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5948 set deprecated_fp_regnum, deprecated_register_size,
5949 deprecated_register_bytes, register_raw_size, register_byte,
5950 register_virtual_type, register_convertiable,
5951 register_convert_to_virtual, convert_to_raw,
5952 deprecated_get_saved_register, deprecated_target_read_fp,
5953 deprecated_push_arguments, deprecated_push_return_address,
5954 deprecated_pop_frame, deprecated_store_struct_return,
5955 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5956 frameless_function_invocation, deprecated_frame_saved_pc,
5957 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5958 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5959 deprecated_init_frame_pc and virtual_frame_pointer. Call
5960 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5961 and x86_64_frame_p. Call frame_base_set_default to register
5963 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5964 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5965 (_initialize_x86_64_tdep): Remove function.
5966 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5967 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5968 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5970 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5971 (x86_64_linux_sigcontext_addr): Rewrite.
5972 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5973 x86_64_linux_frame_saved_pc): Remove functions.
5974 (x86_64_linux_pc_in_sigtramp): Renamed from
5975 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5977 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5979 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5980 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5981 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5982 (x86_64_regmap): Rename to regmap.
5983 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5985 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5987 (x86_64_fxsave_offset): Remove function.
5988 (supply_fpregset): Simply call x86_64_supply_fxsave.
5989 (fill_fpregset): Simply call x86_64_fill_fxsave.
5990 (fetch_inferior_registers, store_inferior_registers): Avoid
5991 asignment in if-statement.
5992 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5993 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5994 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5995 (fetch_core_registers): Remove function.
5996 (linux_elf_core_fns): Remove.
5997 (offsetoff): Don't define.
5998 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5999 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6000 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6002 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6003 protection against multiple includes instead of NM_X86_64_h. Add
6004 various comments. Include "config/nm-linux.h". Don't include
6006 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6007 GET_THREAD_SIGNALS): Remove defines.
6008 (x86_64_register_u_addr, kernel_u_size,
6009 lin_thread_get_thread_signals): Remove prototypes.
6010 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6011 [HAVE_LINK_H]: Don't include "solib.h".
6012 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6013 * config/i386/tm-x86-64linux.h: Fix comments.
6014 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6015 x86-64-tdep.o): Update dependencies.
6017 2003-05-30 Andrew Cagney <cagney@redhat.com>
6019 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6020 Change parameter type to a "struct regcache *".
6022 * gdbarch.sh: Regardless of the multi-arch level, always define
6023 the macro when not already defined.
6024 * gdbarch.h, gdbarch.c: Re-generate.
6026 2003-05-30 Richard Henderson <rth@redhat.com>
6028 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6029 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6030 (alpha_mdebug_frame_this_id): Likewise.
6031 (alpha_mdebug_frame_prev_register): Likewise.
6032 (alpha_mdebug_frame_base_address): Likewise.
6033 (alpha_mdebug_frame_locals_address): Likewise.
6034 (alpha_mdebug_frame_args_address): Likewise.
6035 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6036 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6037 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6039 (alpha_heuristic_frame_this_id): Make static.
6040 (alpha_heuristic_frame_prev_register): Likewise.
6041 (alpha_heuristic_frame_base_address): Likewise.
6042 * alpha-tdep.h: Update.
6044 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6046 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6047 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6049 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6050 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6051 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6052 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6053 I386_ST0_REGNUM): New defines.
6054 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6055 codestream_get): Remove define.
6056 (codestream_next_addr, condestream_addr, condestream_buf,
6057 codestream_off, codestream_cnt): Remove variables.
6058 (codestream_fill, codestream_seek, codestream_read): Remove
6060 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6062 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6063 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6064 i386_frame_saved_pc, i386_saved_pc_after_call,
6065 i386_frame_num_args, i386_frame_init_saved_regs,
6066 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6067 i386_push_arguments): Remove functions.
6068 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6069 functionality. Use i386_analyze_prologue instead of
6070 i386_get_frame_setup.
6071 (I386_NUM_SAVED_REGS): New define.
6072 (struct i386_frame_cache): New structure.
6073 (i386_alloc_frame_cache, i386_analyze_struct_return,
6074 i386_skip_probe, i386_analyze_frame_setup,
6075 i386_analyze_register_saves, i386_analyze_prologue,
6076 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6077 i386_frame_prev_register, i386_sigtramp_frame_cache,
6078 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6079 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6080 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6082 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6084 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6085 I386_EAX_REGNUM and I386_EDX_REGNUM.
6086 (i386_extract_return_value, i386_store_return_value): Use
6087 I386_ST0_REGNUM where appropriate.
6088 (i386_extract_struct_value_address): Rewrite to use extract_address.
6089 (i386_svr4_pc_in_sigtramp): Add comment.
6090 (i386_svr4_sigcontext_addr): Rewrite.
6091 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6093 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6094 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6095 of new defines. Set push_dummy_call, don't set
6096 deprecated_push_arguments, deprecated_push_return_address,
6097 deprecated_pop_frame. Don't set parm_boundary. Don't set
6098 deprecated_frame_chain, deprecated_frame_saved_pc,
6099 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6100 save_dummy_frame_tos, unwind_pc. Call
6101 frame_unwind_append_predicate and frame_base_set_default. Don't
6102 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6103 Don't set frameless_function_invocation. Don't set
6104 deprecated_register_bytes, deprecated_register_size,
6105 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6106 * i386-linux-tdep.c: Fix formatting in some comments.
6107 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6108 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6109 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6110 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6111 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6112 redundant parentheses.
6113 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6114 (i386_linux_sigcontext_addr): Use it. Rewrite.
6115 (find_minsym_and_objfile): Change name of second argument.
6116 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6117 changed. Use frame_pc_unwind instead of
6118 DEPRECATED_SAVED_PC_AFTER_CALL.
6119 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6120 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6121 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6123 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6125 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6126 (_initialize_i386_cygwin_tdep): New prototype.
6127 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6128 deprecated_frame_chain_valid.
6129 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6130 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6131 Rely on the SVR4 defaults.
6132 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6133 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6135 2003-05-30 Andrew Cagney <cagney@redhat.com>
6137 * infcall.c (call_function_by_hand): Always call
6138 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6140 2003-05-30 Richard Henderson <rth@redhat.com>
6142 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6145 2003-05-29 Jim Blandy <jimb@redhat.com>
6147 Use gdbarch methods for solib stuff on PowerPC Linux.
6148 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6149 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6151 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6152 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6153 giving the same effect as the #definitions above.
6155 2003-05-29 Adam Fedor <fedor@gnu.org>
6157 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6158 (find_implementation_from_class): Replace it with the standard
6159 case i.e. do nothing.
6161 2003-05-29 Richard Henderson <rth@redhat.com>
6163 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6164 (alpha_linux_sigtramp_offset): Use it. Make static.
6165 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6166 update for new frame model.
6167 * alpha-mdebug-tdep.c: New file.
6168 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6169 (alpha_osf1_init_abi): Install it.
6170 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6171 (linked_proc_desc_table): Remove.
6172 (alpha_frame_past_sigtramp_frame): Remove.
6173 (alpha_dynamic_sigtramp_offset): Remove.
6174 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6175 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6176 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6177 (push_sigtramp_desc): Remove.
6178 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6179 (alpha_cannot_store_register): Likewise.
6180 (alpha_sigcontext_addr): Remove.
6181 (alpha_find_saved_regs): Remove.
6182 (alpha_frame_init_saved_regs): Remove.
6183 (alpha_init_frame_pc_first): Remove.
6184 (read_next_frame_reg): Remove.
6185 (alpha_frame_saved_pc): Remove.
6186 (alpha_saved_pc_after_call): Remove.
6187 (temp_proc_desc, temp_saved_regs): Remove.
6188 (alpha_about_to_return): Remove.
6189 (cached_proc_desc): Remove.
6190 (alpha_frame_chain): Remove.
6191 (alpha_print_extra_frame_info): Remove.
6192 (alpha_init_extra_frame_info): Remove.
6193 (alpha_frame_locals_address): Remove.
6194 (alpha_frame_args_address): Remove.
6195 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6196 (alpha_push_dummy_frame): Remove.
6197 (alpha_pop_frame): Remove.
6198 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6199 (alpha_read_insn): New.
6200 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6201 for different insn encodings.
6202 (alpha_in_lenient_prologue): Remove.
6203 (struct alpha_sigtramp_unwind_cache): New.
6204 (alpha_sigtramp_frame_unwind_cache): New.
6205 (alpha_sigtramp_register_address): New.
6206 (alpha_sigtramp_frame_this_id): New.
6207 (alpha_sigtramp_frame_prev_register): New.
6208 (alpha_sigtramp_frame_unwind): New.
6209 (alpha_sigtramp_frame_p): New.
6210 (struct alpha_heuristic_unwind_cache): New.
6211 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6212 don't count nop insns that occur between functions.
6213 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6214 heuristic_proc_desc, but without the mdebug wrapping.
6215 (alpha_heuristic_frame_this_id): New.
6216 (alpha_heuristic_frame_prev_register): New.
6217 (alpha_heuristic_frame_unwind): New.
6218 (alpha_heuristic_frame_p): New.
6219 (alpha_heuristic_frame_base_address): New.
6220 (alpha_heuristic_frame_base): New.
6221 (alpha_unwind_dummy_id): New.
6222 (alpha_unwind_pc): New.
6223 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6224 frame related deprecated initializations; install replacements.
6225 (alpha_dump_tdep): Remove.
6226 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6227 (alpha_read_insn, alpha_after_prologue,
6228 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6229 alpha_heuristic_frame_prev_register,
6230 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6231 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6232 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6233 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6235 2003-05-29 Andrew Cagney <cagney@redhat.com>
6237 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6238 dependant on the availability of ASSERT_FUNCTION.
6239 (ASSERT_FUNCTION): Do not define when there is no function name.
6241 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6243 From Jimi X <jimix@watson.ibm.com>:
6244 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6246 2003-05-28 Jim Blandy <jimb@redhat.com>
6248 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6249 argument to ptrace to int; the system headers should give it the
6250 right type, and pointers don't fit in ints on powerpc64-*-*.
6252 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6254 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6257 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6259 * stabsread.c (dbx_lookup_type): Make static.
6261 (add_undefined_type): Ditto.
6262 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6265 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6267 * hpread.c (hpread_has_name): Make static.
6268 (hpread_psymtab_to_symtab): Ditto.
6269 (file_exists): Ditto.
6270 (hpread_call_pxdb): Ditto.
6271 (hpread_pxdb_needed): Ditto.
6272 (hpread_quick_traverse): Ditto.
6273 (hpread_get_header): Ditto.
6274 (hpread_get_lntt): Ditto.
6275 (hpread_get_slt): Ditto.
6278 2003-05-25 Andreas Schwab <schwab@suse.de>
6280 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6281 stack_align and deprecated_extra_stack_alignment_needed.
6282 (m68k_stack_align): Delete.
6284 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6285 (m68k_register_virtual_size): Likewise.
6286 (altos_skip_prologue): Remove obsolete function.
6287 (isi_frame_num_args): Likewise.
6288 (news_frame_num_args): Likewise.
6289 (m68k_fix_call_dummy): Make static.
6290 (m68k_push_dummy_frame): Likewise.
6291 (m68k_pop_frame): Likewise.
6292 (m68k_skip_prologue): Likewise.
6293 (m68k_frame_init_saved_regs): Likewise.
6294 (m68k_saved_pc_after_call): Likewise.
6295 (m68k_get_longjmp_target): Make multi-arch.
6296 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6297 structure. Register m68k_get_longjmp_target if enabled.
6298 * m68k-tdep.h (struct gdbarch_tdep): Define.
6299 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6301 * Makefile.in (config.status): Also depend on configure.tgt
6303 (m68klinux-tdep.o): Update dependencies.
6304 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6305 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6306 (M68K_LINUX_JB_PC): Define.
6307 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6308 and take additional parameter.
6309 (m68k_linux_sigtramp_saved_pc): Update.
6310 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6311 m68k_linux_pc_in_sigtramp, in_plt_section,
6312 find_solib_trampoline_target.
6313 * config/m68k/tm-linux.h: Don't include any tm headers.
6314 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6315 (JB_ELEMENT_SIZE): Likewise.
6317 (GET_LONGJMP_TARGET): Likewise.
6318 (IN_SIGTRAMP): Likewise.
6319 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6321 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6323 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6324 (sparc32_push_arguments): Re-implement by calling
6325 sparc32_do_push_arguments.
6327 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6329 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6330 SPARC_O1_REGNUM): New defines.
6331 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6332 (sparc32_store_return_value): New function.
6333 (sparc_extract_struct_value_address): Rewrite to operate on a
6335 (sparc_gdbarch_init): Don't set
6336 deprecated_extract_struct_value_address. Set
6337 extract_struct_value_address instead. Don't set
6338 deprecated_extract_return_value and deprecated_store_return_value
6339 for 32-bit targets. Set extract_return_value and
6340 store_return_value instead.
6341 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6342 DEPRECTAED_EXTRACT_RETURN_VALUE,
6343 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6344 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6345 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6346 (sparc_store_return_value): Remove prototype.
6347 (sparc32_store_return_value): New prototype.
6348 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6351 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6353 * sparcnbsd-tdep.c: Include "gdb_string.h".
6355 2003-05-23 Andrew Cagney <cagney@redhat.com>
6357 * p-valprint.c (pascal_val_print): Replace extract_address with
6358 the inline equivalent extract_unsigned_integer.
6359 * jv-valprint.c (java_value_print): Ditto.
6360 * ada-valprint.c (ada_val_print_1): Ditto.
6361 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6363 2003-05-23 Theodore A. Roth <troth@openavr.org>
6365 * blockframe.c (frameless_look_for_prologue): Remove unused
6366 after_prologue variable.
6368 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6370 * blockframe.c (get_pc_function_start): Rewrite to avoid
6371 asignments in if-statements.
6373 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6375 Committed by Elena Zannoni <ezannoni@redhat.com>.
6376 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6377 files, don't relocate absolute symbols (and do use mst_abs).
6379 2003-05-23 Andrew Cagney <cagney@redhat.com>
6381 * objc-lang.c: Include "gdb_assert.h".
6382 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6383 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6384 (gdb_check, gdb_check_fatal): Delete functions.
6385 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6387 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6388 * Makefile.in (objc-lang.o): Update dependencies.
6390 2003-05-22 Ian Lance Taylor <ian@airs.com>
6392 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6393 with fprintf_filtered, not fprintf_unfiltered.
6395 2003-05-22 Andrew Cagney <cagney@redhat.com>
6397 * stack.c (frame_info): Inline extract_address, replacing it with
6398 extract_unsigned_integer.
6399 * findvar.c (unsigned_pointer_to_address): Ditto.
6400 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6401 * dwarf2expr.c (dwarf2_read_address): Ditto.
6402 * frame.c (frame_pc_unwind): Update comment.
6403 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6405 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6407 * infptrace.c (detach): Call print_sys_errmsg rather than
6408 perror_with_name to issue warning message when errno is non-zero
6409 after calling ptrace detach.
6411 2003-05-21 J. Brobecker <brobecker@gnat.com>
6413 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6414 macro definitions from here...
6415 * hppa-tdep.c: ...to there.
6417 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6419 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6420 register_ptrace_addr(). Fix all callers.
6422 2003-05-21 Andreas Schwab <schwab@suse.de>
6424 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6426 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6428 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6429 (_initialize_m68k_linux_tdep): New function.
6430 (m68k_linux_frame_saved_pc): Make static.
6431 (m68k_linux_extract_return_value): Likewise.
6432 (m68k_linux_store_return_value): Likewise.
6433 (m68k_linux_extract_struct_value_address): Likewise.
6434 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6436 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6437 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6438 (DEPRECATED_FRAME_SAVED_PC): Remove.
6440 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6442 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6443 regset numbering rather than our own.
6445 2003-05-19 David Carlton <carlton@bactrian.org>
6447 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6449 2003-05-19 David Carlton <carlton@bactrian.org>
6451 Partial fix for PR c++/827.
6452 * cp-support.h: Include symtab.h.
6453 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6454 * cp-namespace.c: Update contributors.
6455 (cp_lookup_symbol_nonlocal): New.
6456 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6457 (lookup_symbol_file): Ditto.
6458 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6459 * block.h: Declare block_scope, block_using, block_global_block.
6460 * block.c (block_scope): New.
6461 (block_using, block_global_block): Ditto.
6462 * Makefile.in (cp_support_h): Depend on symtab_h.
6463 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6465 2003-05-19 David Carlton <carlton@bactrian.org>
6467 * language.h (struct language_defn): Add 'la_value_of_this'
6468 and 'la_lookup_symbol_nonlocal' members.
6469 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6470 lookup_symbol_static, lookup_symbol_global,
6471 lookup_symbol_aux_block.
6472 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6473 if we should search fields of this and how to do static/global
6475 (lookup_symbol_aux_block): Make extern.
6476 (basic_lookup_symbol_nonlocal): New.
6477 (lookup_symbol_static, lookup_symbol_global): Ditto.
6478 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6479 'la_lookup_symbol_nonlocal' members.
6480 * c-lang.c (c_language_defn, cplus_language_defn)
6481 (asm_language_defn, minimal_language_defn): Ditto.
6482 * jv-lang.c (java_language_defn): Ditto.
6483 * language.c (unknown_language_defn, auto_language_defn)
6484 (local_language_defn): Ditto.
6485 * m2-lang.c (m2_language_defn): Ditto.
6486 * objc-lang.c (objc_language_defn): Ditto.
6487 * scm-lang.c (scm_language_defn): Ditto.
6488 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6489 * p-lang.c (pascal_language_defn): Ditto for both.
6490 * Makefile.in (f-lang.o): Depend on value_h.
6493 2003-05-19 David Carlton <carlton@bactrian.org>
6495 * block.h: Declare block_static_block.
6496 * block.c (block_static_block): New.
6497 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6498 lookup_symbol_aux_local, calling block_static_block instead.
6499 (lookup_symbol_aux_local): Delete 'static_block' argument.
6501 2003-05-19 David Carlton <carlton@bactrian.org>
6503 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6505 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6507 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6508 register numbers mapping.
6510 2003-05-18 Adam Fedor <fedor@gnu.org>
6512 * symtab.c (completion_list_objc_symbol): New function.
6513 (make_symbol_completion_list): Use it to add ObjC symbols
6514 when looking though the list.
6515 (language_search_unquoted_string): New function.
6516 (make_file_symbol_completion_list): Use it.
6518 2003-05-18 Andreas Schwab <schwab@suse.de>
6520 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6522 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6523 as m68k_linux_extract_return_value.
6524 (DEPRECATED_STORE_RETURN_VALUE): Define as
6525 m68k_linux_store_return_value.
6526 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6527 m68k_linux_extract_struct_value_address.
6528 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6529 get_next_frame, get_frame_base, get_frame_pc.
6530 (m68k_linux_frame_saved_pc): Use get_frame_base.
6531 (m68k_linux_extract_return_value): New function.
6532 (m68k_linux_store_return_value): New function.
6533 (m68k_linux_extract_struct_value_address): New function.
6534 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6536 * c-exp.y (typebase): Remove duplicate occurence of
6537 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6538 of lookup_signed_typename.
6540 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6542 * dwarf2loc.c (find_location_expression): Change type of second
6543 argument to `size_t *'.
6544 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6547 2003-05-18 David Carlton <carlton@bactrian.org>
6549 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6550 'linkage_name'. Add comment.
6551 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6553 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6554 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6555 (lookup_block_symbol): Ditto.
6557 2003-05-16 Andrew Cagney <cagney@redhat.com>
6559 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6560 * gdbarch.h, gdbarch.c: Re-generate.
6561 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6562 * TODO (REGISTER_BYTES): Delete reference.
6563 * alpha-tdep.c (alpha_gdbarch_init): Update.
6564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6565 * x86-64-tdep.c (x86_64_init_abi): Update.
6566 * vax-tdep.c (vax_gdbarch_init): Update.
6567 * v850-tdep.c (v850_gdbarch_init): Update.
6568 * sparc-tdep.c (sparc_gdbarch_init): Update.
6569 * sh-tdep.c (sh_gdbarch_init): Update.
6570 * s390-tdep.c (s390_gdbarch_init): Update.
6571 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6572 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6573 (ns32k_gdbarch_init_32382): Update.
6574 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6575 * mcore-tdep.c (mcore_gdbarch_init): Update.
6576 * m68k-tdep.c (m68k_gdbarch_init): Update.
6577 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6578 * ia64-tdep.c (ia64_gdbarch_init): Update.
6579 * i386-tdep.c (i386_gdbarch_init): Update.
6580 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6581 * hppa-tdep.c (hppa_gdbarch_init): Update.
6582 * h8300-tdep.c (h8300_gdbarch_init): Update.
6583 * frv-tdep.c (frv_gdbarch_init): Update.
6584 * cris-tdep.c (cris_gdbarch_init): Update.
6585 * avr-tdep.c (avr_gdbarch_init): Update.
6586 * arm-tdep.c (arm_gdbarch_init): Update.
6587 * sparc-tdep.c (sparc_pop_frame): Update.
6588 * rs6000-tdep.c (rs6000_pop_frame): Update.
6589 * remote.c (init_remote_state): Update.
6590 (remote_prepare_to_store): Update.
6591 * remote-vx.c (vx_prepare_to_store): Update.
6592 * remote-sds.c (sds_fetch_registers): Update.
6593 (sds_prepare_to_store): Update.
6594 * remote-array.c: Update.
6595 * regcache.c (init_legacy_regcache_descr): Update.
6596 (init_regcache_descr): Update.
6597 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6598 (mips_o64_extract_return_value): Update.
6599 * irix5-nat.c (fetch_core_registers): Update.
6600 * irix4-nat.c (fetch_core_registers): Update.
6601 * i386-tdep.h: Update.
6602 * hppa-tdep.c (pa_do_registers_info): Update.
6603 (pa_do_strcat_registers_info): Update.
6604 * cris-tdep.c (cris_register_bytes_ok): Update.
6605 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6606 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6607 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6608 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6609 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6610 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6611 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6612 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6613 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6614 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6615 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6616 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6617 (REGISTER_BYTES_OK): Update.
6618 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6619 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6621 2003-05-16 Ian Lance Taylor <ian@airs.com>
6623 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6624 (vax_print_insn, print_insn_arg): Remove static functions.
6625 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6626 print_insn_vax from opcodes library.
6627 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6629 2003-05-15 Andrew Cagney <cagney@redhat.com>
6631 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6632 * target.h (memory_breakpoint_from_pc): Delete declaration.
6633 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6634 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6635 * monitor.c (monitor_insert_breakpoint): Use
6636 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6637 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6638 * gdbarch.h, gdbarch.c: Re-generate.
6639 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6640 (sparc_gdbarch_init): Set breakpoint_from_pc to
6641 sparc_breakpoint_from_pc.
6642 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6643 (BREAKPOINT_FROM_PC): Define.
6644 (sparc_breakpoint_from_pc): Declare.
6645 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6646 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6647 (BREAKPOINT_FROM_PC): Define.
6648 (BREAKPOINT): Delete macro.
6649 * target.h: Update comment.
6650 * s390-tdep.c (s390_gdbarch_init): Update comments.
6651 * remote.c: Update comments.
6652 * remote-mips.c: Update comments.
6653 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6654 * mem-break.c: Update comment.
6655 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6656 (ia64_memory_insert_breakpoint): Update.
6657 * config/sparc/tm-sparc.h: Update comment.
6658 * config/pa/tm-hppa64.h: Update comment.
6659 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6660 (rs6000_breakpoint_from_pc): Update.
6661 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6662 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6663 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6664 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6665 (mips_breakpoint_from_pc): Update.
6666 (mips_dump_tdep): Update.
6668 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6669 * minsyms.c (lookup_minimal_symbol): Inline
6670 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6672 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6673 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6674 * p-lang.c (pascal_printstr): Ditto.
6675 * objc-lang.c (objc_printstr): Ditto.
6676 * m2-lang.c (m2_printstr): Ditto.
6677 * jv-valprint.c (java_print_value_fields): Ditto.
6678 * f-lang.c (f_printstr): Ditto.
6679 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6680 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6681 for repeat_count_threshold.
6682 * Makefile.in (cp-valprint.o): Update dependencies.
6684 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6686 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6687 (examine_prologue): Support looking through leaf functions, knowing
6688 they start with mov r2,r12. Support skipping over indirect stores
6689 of the input registers. Upon hitting a non-nop branch instruction
6690 or predicated instruction, bail out by setting lim_pc to the current
6691 pc value in the loop. At the end, if the lim_pc value is still
6692 beyond our calculated value and we have trust_limit set,
6693 use the lim_pc value.
6695 2003-05-15 Andrew Cagney <cagney@redhat.com>
6697 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6698 generic_find_dummy_frame.
6699 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6700 (deprecated_generic_find_dummy_frame): Update.
6701 (deprecated_read_register_dummy): Update.
6702 * frame.c (deprecated_generic_get_saved_register): Update.
6704 2003-05-15 Theodore A. Roth <troth@openavr.org>
6706 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6707 (avr_gdbarch_init): Set breakpoint_from_pc method.
6709 2003-05-15 Andrew Cagney <cagney@redhat.com>
6711 * regcache.c (build_regcache): Set deprecated_register_valid
6713 (deprecated_grub_regcache_for_register_valid): Delete function.
6714 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6717 2003-05-15 David Carlton <carlton@bactrian.org>
6719 Committed by Elena Zannoni <ezannoni@redhat.com>
6720 * symtab.c (lookup_symbol_aux): Delete calls to
6721 lookup_symbol_aux_minsyms.
6722 (lookup_symbol_aux_minsyms): Comment out function and
6723 prototype. Delete lookup by mangled name.
6725 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6727 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6728 correctly indicate an empty stack and ``stack_allocated'' to the
6729 indicate the number of elements initially allocated.
6730 (dwarf_expr_grow_stack): Simplify method for computing new
6731 stack size. Don't loop infinitely if ``stack_len'' is zero.
6732 (execute_stack_op): Move ``ctx->in_reg'' initialization
6733 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6734 be used in conjuction with DW_OP_piece. Revise error message
6737 2003-05-14 Theodore A. Roth <troth@openavr.org>
6739 * MAINTAINERS: Update my email address.
6740 * avr-tdep.c: Ditto.
6742 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6744 * symtab.h (enum domain_enum): Rename from namespace_enum.
6745 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6746 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6747 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6748 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6749 TYPES_NAMESPACE, METHODS_NAMESPACE.
6750 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6751 (struct symbol, struct partial_symbol): Rename field
6752 'namespace_enum namespace' to 'domain_enum domain'.
6753 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6754 Delete old define kludge for namespace.
6756 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6757 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6758 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6759 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6760 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6761 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6762 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6763 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6764 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6765 occurrences of the above.
6767 2003-05-14 Ian Lance Taylor <ian@airs.com>
6769 * Makefile.in (install-only): Use $(SHELL) when running
6772 2003-05-13 Ian Lance Taylor <ian@airs.com>
6774 * MAINTAINERS (write after approval): Add myself.
6776 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6777 second and third arguments.
6778 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6779 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6781 2003-05-13 Andrew Cagney <cagney@redhat.com>
6783 * defs.h (store_address): Delete declaration.
6784 findvar.c (store_address): Delete function.
6785 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6786 store_unsigned_integer.
6787 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6788 * v850-tdep.c (v850_push_arguments): Ditto.
6789 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6790 * sh-tdep.c (sh64_get_saved_register): Ditto.
6791 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6792 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6793 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6794 (mips_get_saved_register): Ditto.
6795 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6796 (find_func_descr, ia64_push_arguments): Ditto.
6797 * i386-tdep.c (i386_push_arguments): Ditto.
6798 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6799 * frv-tdep.c (frv_push_arguments): Ditto.
6800 * frame.c (legacy_saved_regs_prev_register): Ditto.
6801 (deprecated_generic_get_saved_register): Ditto.
6802 * findvar.c (unsigned_address_to_pointer): Ditto.
6803 * dwarf2read.c (dwarf2_const_value): Ditto.
6804 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6805 * alpha-tdep.c (alpha_push_arguments): Ditto.
6807 2003-05-12 J. Brobecker <brobecker@gnat.com>
6809 * NEWS: Mention that the hppa-hpux port has been partially
6810 multiarched (32bit ABIT only, so far).
6812 2003-05-11 Andrew Cagney <cagney@redhat.com>
6814 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6815 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6816 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6817 sim/testsuite/sim/arm/misaligned2.ms, and
6818 sim/testsuite/sim/arm/misaligned3.ms.
6819 * disasm.h (struct ui_file): Add opaque struct declaration.
6820 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6821 * frame.h (struct ui_file): Ditto.
6823 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6825 * value.h: Pretty print.
6827 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6829 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6831 2003-05-08 Andrew Cagney <cagney@redhat.com>
6833 * regcache.h (max_register_size): Delete declaration.
6834 * regcache.c (max_register_size): Delete function.
6835 (struct regcache_descr): Delete field "max_register_size".
6836 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6837 registers fit in MAX_REGISTER_SIZE.
6838 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6839 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6840 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6841 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6842 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6843 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6844 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6845 * dve3900-rom.c, hppa-tdep.c: Ditto.
6847 2003-05-08 David Carlton <carlton@math.stanford.edu>
6849 * valops.c (push_word): Fix typo.
6851 2003-05-08 Andrew Cagney <cagney@redhat.com>
6853 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6854 * gdbarch.h: Re-generate.
6855 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6856 (legacy_max_register_raw_size): Delete declaration.
6857 * regcache.c (legacy_max_register_raw_size): Delete function.
6858 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6859 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6860 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6861 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6862 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6863 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6864 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6865 * findvar.c, dwarf2cfi.c: Ditto.
6867 2003-05-08 Andrew Cagney <cagney@redhat.com>
6869 * mips-tdep.c (read_signed_register): New function, moved to here
6871 (read_signed_register_pid): Ditto.
6872 * regcache.c (read_signed_register_pid): Delete function, moved to
6874 (read_signed_register): Ditto.
6875 * regcache.h (read_signed_register): Delete declaration.
6876 (read_signed_register_pid): Delete declaration.
6878 2003-05-08 Andrew Cagney <cagney@redhat.com>
6880 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6881 * gdbarch.h: Re-generate.
6882 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6883 (legacy_max_register_virtual_size): Delete declaration.
6884 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6885 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6886 * tracepoint.c (memrange_sortmerge): Ditto.
6887 * sparc-tdep.c (sparc_print_registers): Ditto.
6888 * regcache.c (legacy_max_register_virtual_size): Delete function.
6890 2002-05-08 J. Brobecker <brobecker@gnat.com>
6892 * fork-child.c (escape_bang_in_quoted_argument): New function.
6893 (fork_inferior): Escape '!' characters in quoted arguments
6896 2003-05-08 J. Brobecker <brobecker@gnat.com>
6898 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6899 the language of the CU is not currently supported by GDB.
6901 2003-05-08 J. Brobecker <brobecker@gnat.com>
6903 * defs.h (language): Add language_minimal enum value.
6904 * c-lang.c (minimal_language_defn): New language definition.
6905 (_initialize_c_language): Add the new minimal language to the list
6906 of languages known to GDB.
6908 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6910 * frame.c (get_frame_type): Don't attempt to lazily initialize
6911 frame's unwinder for legacy frames.
6913 2003-05-07 Andrew Cagney <cagney@redhat.com>
6915 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6916 and "regcache" parameters.
6917 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6919 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6921 * dwarf2read.c (dwarf_decode_lines): Only use output of
6922 check_cu_functions() when calling record_line(). Do not update
6923 the current address.
6925 2003-05-07 Andrew Cagney <cagney@redhat.com>
6927 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6930 2003-05-07 Jim Blandy <jimb@redhat.com>
6932 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6933 'maint info symtabs' and 'maint info psymtabs'.
6934 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6935 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6936 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6937 Declarations updated.
6938 * maint.c (maintenance_list_command): Delete.
6939 (_initialize_maint_cmds): Update calls to add_cmd.
6940 * gdbcmd.h (maintenancelistlist): Delete declaration.
6941 * cli/cli-cmds.c (maintenancelistlist): Delete.
6942 (init_cmd_lists): Don't initialize it.
6943 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6945 2003-05-07 Andrew Cagney <cagney@redhat.com>
6947 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6949 (d10v_print_registers_info): Update.
6950 (d10v_dmap_register, d10v_imap_register): Delete functions.
6951 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6952 and "imap_register".
6953 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6954 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6955 * arch-utils.c (generic_remote_translate_xfer_address): Add
6956 "regcache" and "gdbarch" parameters.
6957 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6958 parameter. Change class to multi-arch.
6959 * gdbarch.h, gdbarch.c: Re-generate.
6960 * remote.c (remote_xfer_memory): Use
6961 gdbarch_remote_translate_xfer_address.
6963 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6965 * infrun.c (prev_pc): Move declaration ahead of proceed().
6966 (proceed): Refresh prev_pc value before resuming.
6967 (stop_stepping): Remove code to refresh prev_pc.
6969 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6971 * nto-tdep.c: Removed stray comment.
6973 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6975 * i386-nto-tdep.c: Fix old K&R function definitions.
6976 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6977 Also change add_show_from_set() call to add_setshow_cmd().
6978 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6980 2003-05-05 Andrew Cagney <cagney@redhat.com>
6982 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6983 (fprint_dummy_frames): New function.
6984 (maintenance_print_dummy_frames): New function.
6985 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6986 * frame.c (fprint_frame_id): Make global.
6987 * frame.h (fprint_frame_id): Declare.
6988 * Makefile.in (dummy-frame.o): Update dependencies.
6990 2003-05-05 Andrew Cagney <cagney@redhat.com>
6992 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6993 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6994 SIZEOF_CALL_DUMMY_WORDS.
6995 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6996 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6997 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6998 CALL_DUMMY_BREAKPOINT_OFFSET.
6999 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7000 CALL_DUMMY_START_OFFSET.
7001 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7002 * gdbarch.h, gdbarch.c: Re-generate.
7003 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7004 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7005 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7006 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7007 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7008 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7009 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7010 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7011 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7012 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7013 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7014 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7015 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7016 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7017 * config/sparc/tm-sparc.h: Update.
7019 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7021 * configure.tgt: Add i[3456]86-*-nto*.
7022 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7023 * nto-tdep.c: New file. Neutrino target support routines.
7024 * nto-tdep.h: New file. Neutrino target header.
7025 * config/tm-qnxnto.h: New file.
7026 * config/i386/i386nto.mt: New file.
7027 * config/i386/tm-i386nto.h: New file.
7029 2003-05-04 Andrew Cagney <cagney@redhat.com>
7031 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7032 (load_infrun_state): Ditto.
7033 (struct thread_info): Drop "prev_func_name" field.
7034 * thread.c (load_infrun_state): Update.
7035 (save_infrun_state): Update.
7036 * infrun.c (prev_func_name): Delete variable.
7037 (init_wait_for_inferior): Do not clear prev_func_name.
7038 (stop_stepping, keep_going, context_switch): Do not swap
7040 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7041 instead of PC_IN_SIGTRAMP.
7043 2003-05-04 Andrew Cagney <cagney@redhat.com>
7045 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7046 REGISTER_BYTE with register_offset_hack.
7047 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7048 that REGISTER_BYTE is consistent with the regcache.
7049 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7050 * gdbarch.h, gdbarch.c: Regenerate.
7052 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7054 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7055 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7057 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7059 2003-05-03 J. Brobecker <brobecker@gnat.com>
7061 From Thierry Schneider <tpschneider1@yahoo.com>
7062 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7063 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7064 (mi-cmd-symbol.o): Add rule.
7066 2003-05-03 Andrew Cagney <cagney@redhat.com>
7068 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7069 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7070 * gdbarch.h, gdbarch.c: Re-generate.
7071 * d10v-tdep.c (d10v_push_dummy_code): New function.
7072 (d10v_gdbarch_init): Set push_dummy_code.
7073 * infcall.c (legacy_push_dummy_code): New function.
7074 (generic_push_dummy_code): New function.
7075 (push_dummy_code): New function.
7076 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7077 instead of dummy_addr, to push_dummy_call. Move call to
7078 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7080 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7082 2003-05-03 Andrew Cagney <cagney@redhat.com>
7084 * disasm.h (print_insn): Declare.
7085 * disasm.c (init_gdb_disassemble_info): New function.
7086 (gdb_disassembly): Call init_gdb_disassemble_info.
7087 (gdb_print_insn): New function.
7088 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7089 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7090 * mcore-tdep.c: Include "disasm.h"
7091 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7092 * d10v-tdep.c: Include "disasm.h".
7093 (display_trace): Call gdb_print_insn, instead of print_insn.
7094 (print_insn): Delete function.
7095 * printcmd.c: Include "disasm.h".
7096 (print_insn): Delete function.
7097 (print_formatted): Call gdb_print_insn, instead of print_insn.
7098 * Makefile.in (printcmd.o): Update dependencies.
7099 (mcore-tdep.o, d10v-tdep.o): Ditto.
7101 2003-05-02 Andrew Cagney <cagney@redhat.com>
7103 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7104 PC_REGNUM, re-indent.
7105 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7106 PC_REGNUM isn't set.
7108 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7109 * gdbarch.h, gdbarch.c: Re-generate.
7110 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7111 register_virtual_size, pc_regnum, or register_bytes.
7112 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7113 (d10v_register_type): Use D10V_PC_REGNUM.
7114 (d10v_print_registers_info, d10v_read_pc): Ditto.
7115 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7116 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7118 2003-05-02 David Carlton <carlton@bactrian.org>
7120 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7121 the name with mstrsave.
7123 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7125 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7126 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7127 (host_charset_name, target_charset_name): New vars for use by
7129 (host_charset_enum, target_charset_enum): New enums for set/show
7131 (set_charset_sfunc, set_host_charset_sfunc,
7132 set_target_charset_sfunc): New functions.
7133 (set_host_charset, set_target_charset): Make static.
7134 (list_charsets, set_host_charset_command,
7135 set_target_charset_command): Delete functions.
7136 (show_charset_command): Rewrite as....
7137 (show_charset): Hook this up with the set/show command mechanism.
7138 (_initialize_charset): Change names of charsets to match the
7139 set/show enums. Use host_charset_name and target_charset_name.
7140 Use set/show mechanism for charset, host-charset, target-charset
7141 commands. Do not make 'show host-charset' and 'show
7142 target-charset' be aliases of 'show charset'.
7144 * charset.h (set_host_charset, set_target_charset): Don't export,
7145 they are not used outside the file.
7147 2003-05-01 Andrew Cagney <cagney@redhat.com>
7149 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7150 (gdb_disassembly): Make "di" non static, always initialize and
7151 cleanup. Always use dis_asm_read_memory.
7152 (gdb_dis_asm_read_memory): Delete function.
7154 2003-05-01 Andrew Cagney <cagney@redhat.com>
7156 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7157 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7159 2003-04-30 Andrew Cagney <cagney@redhat.com>
7161 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7162 "tm_print_insn_info".
7163 (TARGET_PRINT_INSN_INFO): Delete macro.
7164 (dis_asm_read_memory): Delete function declaration.
7165 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7166 (tm_print_insn_info): Delete variable definition.
7167 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7168 * gdbarch.h, gdbarch.c: Re-generate.
7169 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7170 "deprecated_tm_print_insn_info".
7171 * mcore-tdep.c (mcore_dump_insn): Ditto.
7172 * mips-tdep.c (mips_gdbarch_init): Ditto.
7173 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7174 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7175 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7176 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7177 instead of TARGET_PRINT_INSN_INFO, add comment.
7178 * s390-tdep.c (s390_get_frame_info): Instead of
7179 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7180 (s390_check_function_end, s390_is_sigreturn): Ditto.
7181 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7182 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7183 * disasm.c: Include "gdbcore.h".
7184 (_initialize_disasm): New function, initialize
7185 "deprecated_tm_print_insn_info".
7186 (deprecated_tm_print_insn_info): New variable.
7187 (dis_asm_read_memory): Moved from "corefile.c", made static.
7188 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7189 * Makefile.in (disasm.o): Update dependencies.
7191 2003-04-30 Andrew Cagney <cagney@redhat.com>
7193 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7195 2003-04-29 Adam Fedor <fedor@gnu.org>
7197 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7198 * infcall.c (find_function_addr): Make non-static.
7199 * infcall.h (find_function_addr): Declare.
7200 * Makefile.in (eval.o): Update dependencies.
7202 2003-04-28 Adam Fedor <fedor@gnu.org>
7204 * symtab.c (symbol_find_demangled_name): Check for and demangle
7206 (symbol_init_demangled_name): Init for language_objc as well.
7208 2003-04-28 Andrew Cagney <cagney@redhat.com>
7210 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7211 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7212 * gdbarch.h, gdbarch.c: Re-generate.
7213 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7214 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7215 * inferior.h (deprecated_read_fp): Rename read_fp.
7216 (generic_target_read_fp): Delete declaration.
7217 * regcache.c (generic_target_read_fp): Delete function.
7218 (deprecated_read_fp): Replace read_fp, use
7219 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7220 * d10v-tdep.c (d10v_read_fp): Delete function.
7221 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7223 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7224 deprecated_target_read_fp to generic_target_read_fp.
7225 * sh-tdep.c (sh_gdbarch_init): Ditto.
7226 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7227 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7228 * frv-tdep.c (frv_gdbarch_init): Ditto.
7230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7231 deprecated_fp_regnum.
7232 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7233 * vax-tdep.c (vax_gdbarch_init): Ditto.
7234 * v850-tdep.c (v850_gdbarch_init): Ditto.
7235 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7236 * sh-tdep.c (sh_gdbarch_init): Ditto.
7237 * s390-tdep.c (s390_gdbarch_init): Ditto.
7238 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7239 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7240 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7241 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7243 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7244 * i386-tdep.c (i386_gdbarch_init): Ditto.
7245 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7246 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7247 * frv-tdep.c (frv_gdbarch_init): Ditto.
7248 * cris-tdep.c (cris_gdbarch_init): Ditto.
7249 * avr-tdep.c (avr_gdbarch_init): Ditto.
7250 * arm-tdep.c (arm_gdbarch_init): Ditto.
7251 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7253 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7254 * v850-tdep.c (v850_gdbarch_init): Ditto.
7255 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7256 * sh-tdep.c (sh_gdbarch_init): Ditto.
7257 * s390-tdep.c (s390_gdbarch_init): Ditto.
7258 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7259 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7260 * mips-tdep.c (mips_gdbarch_init): Ditto.
7261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7262 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7263 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7264 * frv-tdep.c (frv_gdbarch_init): Ditto.
7265 * avr-tdep.c (avr_gdbarch_init): Ditto.
7266 * arm-tdep.c (arm_gdbarch_init): Ditto.
7268 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7269 DEPRECATED_FP_REGNUM.
7270 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7271 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7272 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7273 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7274 (sparc32_register_virtual_type): Ditto.
7275 * sh-tdep.c (sh64_frame_chain): Ditto.
7276 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7277 (sh_nofp_frame_init_saved_regs): Ditto.
7278 (sh64_nofp_frame_init_saved_regs): Ditto.
7279 (sh_fp_frame_init_saved_regs): Ditto.
7280 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7281 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7282 * procfs.c (procfs_fetch_registers): Ditto.
7283 (procfs_store_registers): Ditto.
7284 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7285 (store_inferior_registers, fetch_core_registers): Ditto.
7286 (fetch_kcore_registers, clear_regs): Ditto.
7287 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7288 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7289 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7290 * nlm/i386.c (do_status): Ditto.
7291 * mipsv4-nat.c (supply_gregset): Ditto.
7292 * mips-tdep.c: Ditto for comments.
7293 * mips-nat.c (fetch_inferior_registers): Ditto.
7294 (store_inferior_registers, fetch_core_registers): Ditto.
7295 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7296 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7297 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7298 (i386_do_pop_frame, i386_register_type): Ditto.
7299 * hppa-tdep.c (hppa_frame_chain): Ditto.
7300 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7301 (hppa_pop_frame, hppa_read_fp): Ditto.
7302 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7303 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7304 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7305 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7306 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7307 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7308 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7309 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7310 * blockframe.c: Ditto for comments.
7311 * arch-utils.h: Ditto for comments.
7312 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7313 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7314 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7315 * alpha-tdep.h: Ditto for comments.
7316 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7317 (alpha_cannot_store_register): Ditto.
7318 (alpha_push_dummy_frame): Ditto.
7319 * alpha-nat.c (supply_gregset): Ditto.
7321 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7322 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7323 * config/sparc/tm-sparc.h: Update comment.
7325 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7326 deprecated_read_fp instead of TARGET_READ_FP.
7327 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7328 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7329 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7330 deprecated_read_fp instead of read_fp.
7331 * s390-tdep.c (s390_push_arguments): Ditto.
7332 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7333 * frame.h: Ditto in comments.
7334 * frame.c (legacy_get_prev_frame): Ditto.
7335 * dummy-frame.c (dummy_frame_this_id): Ditto.
7336 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7338 2003-04-28 Andrew Cagney <cagney@redhat.com>
7340 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7341 * gdbarch.h, gdbarch.c: Re-generate.
7342 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7343 * vax-tdep.c (_initialize_vax_tdep): Update.
7344 * v850-tdep.c (_initialize_v850_tdep): Update.
7345 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7346 * s390-tdep.c (_initialize_s390_tdep): Update.
7347 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7348 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7349 * mips-tdep.c (_initialize_mips_tdep): Update.
7350 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7351 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7352 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7353 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7354 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7355 * frv-tdep.c (_initialize_frv_tdep): Update.
7356 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7357 (_initialize_cris_tdep): Update.
7358 * arch-utils.c (legacy_print_insn): Update.
7359 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7361 2003-04-26 Adam Fedor <fedor@gnu.org>
7363 * linespec.c (decode_objc): New function to decode ObjC calls
7364 (decode_line_1): Check for ObjC calls (using decode_objc)
7365 * Makefile (linespec.o): Update dependencies.
7367 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7369 * breakpoint.h (struct breakpoint_ops): New.
7370 (struct breakpoint): Add ops member.
7372 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7373 (mention): Use new breakpoint ops member.
7374 (set_raw_breakpoint): Initialize ops field to NULL.
7375 (print_exception_catchpoint, print_one_exception_catchpoint)
7376 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7377 (gnu_v3_exception_catchpoint_ops): New.
7378 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7380 2003-04-25 Adam Fedor <fedor@gnu.org>
7382 * Makefile.in (COMMON_OBS): Add objc-lang.o
7384 2003-04-25 Andrew Cagney <cagney@redhat.com>
7386 * d10v-tdep.c (print_insn): Delete function.
7387 (display_trace): Use TARGET_PRINT_INSN.
7388 (_initialize_d10v_tdep): Do not set tm_print_insn.
7389 (d10v_gdbarch_init): Set print_insn.
7391 2003-04-25 Andrew Cagney <cagney@redhat.com>
7393 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7394 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7395 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7396 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7397 (nr_dmap_regs, a0_regnum): ... new functions.
7398 (d10v_print_registers_info): Use a0_regnum, use register_size.
7399 (d10v_register_byte): Delete function.
7400 (d10v_register_raw_size): Delete function.
7401 (d10v_register_type): Use a0_regnum.
7402 (d10v_print_registers_info): Use a0_regnum.
7403 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7404 (d10v_gdbarch_init): Do not set register_byte or
7405 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7406 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7408 (trace_command): Use XCALLOC.
7409 (print_insn): Delete reference to tm_print_insn.
7410 (saved_regs_unwinder): Use store_unsigned_integer instead of
7412 * frame.h (FRAME_OBSTACK_CALLOC): Define
7414 2003-04-25 David Carlton <carlton@bactrian.org>
7416 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7418 2003-04-24 Adam Fedor <fedor@gnu.org>
7420 * objc-lang.c: Include "valprint.h"
7421 * Makefile.in (objc-lang.o): Update dependencies.
7423 2003-04-24 Adam Fedor <fedor@gnu.org>
7425 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7426 architecture dependant compilation and mark as unimplemented
7427 (until they get put in the gdbarch vector).
7429 2003-04-23 David Carlton <carlton@bactrian.org>
7431 * cp-support.c (cp_find_first_component): Accept 'operator' in
7434 2003-04-23 Andrew Cagney <cagney@redhat.com>
7436 * infcall.c (call_function_by_hand): Eliminate redundant
7437 indentation. Move "saved_async" and "old_cleanups" to where they
7440 2003-04-23 Andrew Cagney <cagney@redhat.com>
7442 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7443 and "buffer". Move the "name" code to where it is needed.
7445 2003-04-23 Andrew Cagney <cagney@redhat.com>
7447 * infcall.c (call_function_by_hand): Move variables "start_sp",
7448 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7449 code to ON_STACK switch branch.
7451 2003-04-23 Andrew Cagney <cagney@redhat.com>
7453 * infcall.c (call_function_by_hand): Make declaration of "i",
7454 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7457 2003-04-23 Andrew Cagney <cagney@redhat.com>
7459 * infcall.c (call_function_by_hand): Delete variable
7460 "n_method_args". Localize "param_type"'s declaration to the loop
7461 that it is used. Reinstate code assigning to said variable -
7462 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7463 Rationalize code using "param_type".
7465 2003-04-22 Andrew Cagney <cagney@redhat.com>
7467 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7468 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7469 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7470 to DEPRECATED_PUSH_RETURN_ADDRESS.
7472 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7474 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7475 on the DWARF2 register number prior to fetching a register.
7477 2003-04-22 J. Brobecker <brobecker@gnat.com>
7479 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7480 Update all the tests using SOFT_FLOAT considering the fact that
7481 this macro was always set to 0.
7482 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7483 considering the fact that this macro was always set to 0.
7484 * hppa-tdep.h (hppa_store_return_value): Likewise.
7485 (hppa_extract_return_value): Likewise.
7487 2003-04-22 J. Brobecker <brobecker@gnat.com>
7489 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7490 the hppa-pro target only.
7492 2003-04-21 J. Brobecker <brobecker@gnat.com>
7494 Ongoing multi-arch conversion effort for HP/UX:
7495 * config/pa/tm-hppa.h: Move all macro that are no longer
7496 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7497 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7499 2003-04-21 J. Brobecker <brobecker@gnat.com>
7501 * config/pa/tm-hppa.h: Obsolete a section that was only used
7504 2003-04-21 J. Brobecker <brobecker@gnat.com>
7506 Ongoing multi-arch conversion for HP/UX.
7507 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7508 if already defined (allows hppa64 to stay non-multiarched for now).
7509 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7511 2003-04-21 Andrew Cagney <cagney@redhat.com>
7513 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7515 2003-04-21 Andrew Cagney <cagney@redhat.com>
7517 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7518 "i386_num_mmx_regs".
7520 2003-04-21 Andrew Cagney <cagney@redhat.com>
7522 * infcall.c: New file.
7523 * infcall.h: New file.
7524 * valarith.c: Include "infcall.h".
7525 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7526 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7527 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7528 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7529 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7530 (SFILES): Add "infcall.c"
7531 (COMMON_OBS): Add "infcall.o".
7532 (infcall.o): Specify dependencies.
7533 * value.h (call_function_by_hand): Delete declaration.
7534 * inferior.h (run_stack_dummy): Delete declaration.
7535 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7536 (run_stack_dummy): Move to "infcall.c", merged into
7537 call_function_by_hand.
7538 * valops.c (call_function_by_hand): Moved to "infcall.c".
7539 (find_function_addr, value_arg_coerce): Ditto.
7540 (unwindonsignal_p, coerce_float_to_double): Ditto.
7541 (_initialize_valops): Move "set/show coerce-float-to-double", and
7542 "set/show unwindonsignal" commands to "infcall.c".
7543 * v850-tdep.c, target.h: Update comments.
7544 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7545 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7546 (sh64_init_extra_frame_info): Update comments.
7547 * mn10300-tdep.c: Update comments.
7548 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7549 * config/sparc/tm-sparc.h: Update comments.
7550 * breakpoint.h: Update comments.
7551 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7552 * arm-tdep.c: Update comment.
7554 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7556 * i386-tdep.c (i386_num_register_names): New variable.
7557 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7558 (MM0_REGNUM): Remove redundant parentheses in define.
7559 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7560 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7561 i386_mxcsr_regnum_p): Remove redundant parentheses.
7562 (i386_register_name): Use i386_num_register_names.
7564 * i386-tdep.c (i386_extract_return_value,
7565 i386_store_return_value): Correct check for availability of
7566 floating-point registers.
7568 * i386-tdep.c (i386_frame_num_args): Remove function.
7569 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7571 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7572 mmx_regnum_to_fp_regnum. Adjust all callers.
7574 * i386-tdep.c (i386_get_longjmp_target): Use
7575 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7576 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7579 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7581 * core-regset.c: Update comments to reflect reality. Re-order
7583 (fetch_core_registers): Use switch instead of if. Remove
7584 redundant prototype.
7586 2003-04-18 Jim Blandy <jimb@redhat.com>
7588 * s390-tdep.c (s390_frame_align): New function.
7589 (s390_gdbarch_init): Register it with the gdbarch object.
7591 2003-04-17 Richard Henderson <rth@redhat.com>
7593 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7595 2003-04-17 Michael Snyder <msnyder@redhat.com>
7596 Karen Bennet <bennet@redhat.com>
7598 Committed by Elena Zannoni <ezannoni@redhat.com>
7599 * gdb_gcore.sh: New script to create a core dump of a process.
7601 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7603 * values.c (value_being_returned): Don't fetch the return
7604 value if the return type is void.
7606 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7608 * thread-db.c: Reindented.
7610 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7612 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7613 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7640 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7642 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7643 the size of ``long double'' to 16, instead of 8.
7645 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7647 * i386-linux-nat.c: Add some whitespace to make things more
7649 (fetch_register, store_register, fetch_inferior_registers,
7650 store_inferior_registers): Get rid of assignment in if-statement.
7651 (store_register): Fix typo in error message.
7653 2003-04-16 Andrew Cagney <cagney@redhat.com>
7655 * utils.c (xmmalloc): Always allocate something, matches
7656 libiberty/xmalloc's semantics.
7657 (xmrealloc, xmcalloc): Ditto.
7659 2003-04-16 Andrew Cagney <cagney@redhat.com>
7661 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7663 (get_frame_type): Initialize unwind and type when needed.
7664 (get_frame_id, frame_register_unwind): Ditto.
7666 2003-04-16 Andrew Cagney <cagney@redhat.com>
7668 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7670 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7671 * sparcl-stub.c: Obsolete file.
7672 * config/sparc/tm-sparclet.h: Obsolete file.
7673 * sparclet-stub.c: Obsolete file.
7674 * sparclet-rom.c: Obsolete file.
7675 * sparcl-tdep.c: Obsolete file.
7676 * config/sparc/tm-sparclite.h: Obsolete file.
7677 * config/sparc/sparclite.mt: Obsolete file.
7678 * config/sparc/sparclet.mt: Obsolete file.
7679 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7680 sparc86x-*-* obsolete.
7682 2003-04-15 David Carlton <carlton@math.stanford.edu>
7684 * Makefile.in (SFILES): Add cp-namespace.c.
7685 (COMMON_OBS): Add cp-namespace.o.
7686 (block.o): Depend on gdb_obstack_h and cp_support_h.
7687 (buildsym.o): Depend on cp_support_h.
7688 (cp-namespace.o): New.
7689 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7690 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7691 (dwarf2read.o): Depend on cp_support_h.
7692 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7693 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7694 processing_current_namespace.
7695 (read_namespace): Update processing_current_namespace; check for
7696 anonymous namespaces.
7697 (dwarf2_name): New function.
7698 (dwarf2_extension): Ditto.
7699 * cp-support.h: Update copyright, contributors.
7700 Add inclusion guards.
7701 Add opaque declaration for structs obstack, block, symbol.
7702 (struct using_direct): New struct.
7703 Add declarations for cp_find_first_component,
7704 cp_entire_prefix_len, processing_has_namespace_info,
7705 processing_current_namespace, cp_is_anonymous,
7706 cp_add_using_directive, cp_initialize_namespace,
7707 cp_finalize_namespace, cp_set_block_scope,
7708 cp_scan_for_anonymous_namespaces.
7709 * cp-namespace.c: New file.
7710 * cp-support.c: Update copyright.
7711 Include ctype.h, gdb_assert.h, gdbcmd.h.
7712 New variable maint_cplus_cmd_list.
7713 (cp_find_first_component): New function.
7714 (cp_entire_prefix_len, maint_cplus_command)
7715 (first_component_command, _initialize_cp_support): Ditto.
7716 * buildsym.c: Include cp-support.h.
7717 New variable using_list.
7718 (add_symbol_to_list): Check for anonymous namespaces.
7719 (finish_block): Set block's scope.
7720 (start_symtab): Initialize C++ namespace support.
7721 (end_symtab): Finalize C++ namespace support.
7722 * block.h: Add opaque declarations for structs
7723 block_namespace_info, using_direct, and obstack.
7724 Add declarations for block_set_scope and block_set_using.
7725 (struct block): Add 'language_specific' member.
7726 (BLOCK_NAMESPACE): New macro.
7727 * block.c: Include gdb_obstack.h and cp-support.h.
7728 (struct block_namespace_info): New struct.
7729 (block_set_scope): New function.
7730 (block_set_using, block_initialize_namespace): Ditto.
7732 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7734 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7735 (locate_base): Return early if there aren't any link map offsets.
7736 (svr4_solib_create_inferior_hook): Warn if shared library support
7739 2003-04-14 David Carlton <carlton@math.stanford.edu>
7741 * symtab.c (symbol_set_names): Add prefix when storing Java names
7742 in hash table. Fix for PR java/1039.
7744 2003-04-14 David Carlton <carlton@math.stanford.edu>
7746 * symtab.c (symbol_set_names): Rename 'name' arg to
7747 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7748 * symtab.h: Change 'name' argument in declaration of
7749 symbol_set_names to 'linkage_name'.
7750 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7752 2003-04-14 Andrew Cagney <cagney@redhat.com>
7754 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7755 return the fully sign-extended register value.
7756 (get_frame_pointer): Ditto.
7757 (mips_pop_frame): Initialize "proc_desc" after checking for a
7760 2003-04-14 Andrew Cagney <cagney@redhat.com>
7762 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7763 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7764 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7765 (mips_push_register): Delete function.
7766 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7769 2003-04-14 Jim Blandy <jimb@redhat.com>
7771 * symmisc.c: #include "gdb_regex.h".
7772 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7774 * maint.c (maintenance_list_command): New function.
7775 (_initialize_maint_cmds): Register the above as commands.
7776 * symtab.h (maintenance_list_symtabs,
7777 maintenance_list_psymtabs): New declarations.
7778 * cli/cli-cmds.c (maintenancelistlist): New variable.
7779 (init_cmd_lists): Initialize it.
7780 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7781 * gdbcmd.h (maintenancelistlist): New declaration.
7782 * Makefile.in (symmisc.o): Update dependencies.
7784 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7786 * s390-nat.c: Include asm/types.h for addr_t.
7788 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7790 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7791 actually incoming type.
7793 2003-04-13 Andrew Cagney <cagney@redhat.com>
7795 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7796 get_next_frame and get_frame_saved_regs.
7798 2003-04-13 Andrew Cagney <cagney@redhat.com>
7800 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7801 of gdbarch_num_regs.
7803 2003-04-13 Andrew Cagney <cagney@redhat.com>
7805 * frame.h: Mention what replaced what in "struct frame_info".
7806 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7807 deprecated_update_frame_base_hack and
7808 deprecated_update_frame_pc_hack.
7809 * hppa-tdep.c: Ditto.
7811 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7813 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7814 to read_reg and update its comment. Remove regnum member.
7815 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7816 Don't call read_reg when setting in_reg. Call read_reg to get
7817 the frame base if it's in a register. Return the register number
7818 on the stack instead of in the context. Remove extra arguments
7820 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7821 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7822 the register number on the expression stack.
7823 (needs_frame_read_reg): Remove extra arguments.
7825 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7827 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7829 (execute_stack_op): All callers updated.
7830 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7831 * dwarf2loc.c (find_location_expression): New function.
7832 (dwarf_expr_frame_base): Call it.
7833 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7834 (dwarf2_tracepoint_var_ref): New function, broken out from
7835 locexpr_tracepoint_var_ref.
7836 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7838 (loclist_read_variable, loclist_read_needs_frame): New functions.
7839 (loclist_describe_location, loclist_tracepoint_var_ref): New
7841 (dwarf2_loclist_funcs): New struct location_funcs.
7842 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7843 (struct dwarf2_locexpr_baton): Add comments.
7844 (dwarf2_loclist_funcs): New extern.
7845 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7846 base_address and base_known.
7847 (dwarf_loc_buffer): New variable.
7848 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7849 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7850 (dwarf2_has_info): Initialize dwarf_loc_offset.
7851 (dwarf2_build_psymtabs): Read in .debug_loc.
7852 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7854 (psymtab_to_symtab_1): Likewise. Move base address calculation
7856 (dwarf2_get_pc_bounds): ... here. Use the base address from
7858 (dwarf2_symbol_mark_computed): Handle location lists.
7860 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7862 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7863 if the linkage name demangled successfully.
7865 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7867 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7868 disassmbly_flavour): Removed.
7870 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7872 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7874 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7876 2003-04-12 Andrew Cagney <cagney@redhat.com>
7878 * frame.h (struct frame_info): Move definition from here ...
7879 * frame.c (struct frame_info): ... to here.
7881 2003-04-12 Andrew Cagney <cagney@redhat.com>
7883 * gdbthread.h (save_infrun_state): Delete parameter
7885 (struct thread_info): Delete field "prev_func_start".
7886 (load_infrun_state): Ditto.
7887 * thread.c (load_infrun_state, save_infrun_state): Update.
7888 * infrun.c (prev_func_start): Delete variable.
7889 (context_switch, init_wait_for_inferior): Update.
7890 (stop_stepping, keep_going): Update.
7892 2003-04-12 Andrew Cagney <cagney@redhat.com>
7894 * gdbarch.sh: Add missing opaque declarations.
7895 * gdbarch.h: Regnerate.
7896 * symtab.h: Add missing opaque declarations.
7897 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7898 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7899 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7900 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7901 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7902 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7903 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7904 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7905 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7906 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7907 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7908 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7909 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7911 2003-04-11 Andrew Cagney <cagney@redhat.com>
7913 * frame.c (get_frame_id): Return this frame's "id".
7914 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7916 (legacy_saved_regs_this_id): Replace function body with
7918 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7919 FRAME_OBSTACK_ZALLOC.
7920 (create_new_frame): Mark the frame ID as valid.
7922 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7924 * Makefile.in (libbfd_h): Added missing setting.
7925 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7926 according to the selected ABI.
7928 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7930 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7932 2003-04-11 Andrew Cagney <cagney@redhat.com>
7934 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7935 SAVED_PC_AFTER_CALL.
7936 * gdbarch.h, gdbarch.c: Regenerate.
7937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7938 * x86-64-tdep.c (x86_64_init_abi): Update.
7939 * vax-tdep.c (vax_gdbarch_init): Update.
7940 * v850-tdep.c (v850_gdbarch_init): Update.
7941 * sparc-tdep.c (sparc_gdbarch_init): Update.
7942 * sh-tdep.c (sh_gdbarch_init): Update.
7943 * s390-tdep.c (s390_gdbarch_init): Update.
7944 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7945 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7946 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7947 * mips-tdep.c (mips_gdbarch_init): Update.
7948 * mcore-tdep.c (mcore_gdbarch_init): Update.
7949 * m68k-tdep.c (m68k_gdbarch_init): Update.
7950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7951 * ia64-tdep.c (ia64_gdbarch_init): Update.
7952 (ia64_saved_pc_after_call): Update declaration.
7953 * i386ly-tdep.c (i386lynx_init_abi): Update.
7954 * i386-tdep.c (i386_gdbarch_init): Update.
7955 * hppa-tdep.c (hppa_gdbarch_init): Update.
7956 * h8300-tdep.c (h8300_gdbarch_init): Update.
7957 * frv-tdep.c (frv_gdbarch_init): Update.
7958 * cris-tdep.c (cris_gdbarch_init): Update.
7959 * avr-tdep.c (avr_gdbarch_init): Update.
7960 * arm-tdep.c (arm_gdbarch_init): Update.
7961 * alpha-tdep.c (alpha_gdbarch_init): Update.
7962 * ns32knbsd-nat.c (frame_num_args): Update.
7963 * ns32k-tdep.c (umax_frame_num_args): Update.
7964 * mips-tdep.c (mips_init_frame_pc_first): Update.
7965 * infrun.c (step_over_function): Update.
7966 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7967 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7968 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7969 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7970 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7971 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7972 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7973 * arch-utils.c (init_frame_pc_default): Update.
7974 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7975 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7978 2003-04-11 Andrew Cagney <cagney@redhat.com>
7980 * i387-tdep.c: Update copyright.
7981 (i387_to_double): Delete function.
7982 (double_to_i387): Delete function.
7984 2003-04-10 Andrew Cagney <cagney@redhat.com>
7986 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7987 frame's function's address. Simplify.
7988 (d10v_frame_unwind_cache): Check that the frame's function is
7991 2003-04-10 Jim Blandy <jimb@redhat.com>
7993 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7994 call to set_gdbarch_deprecated_push_arguments.
7996 2003-04-10 Andrew Cagney <cagney@redhat.com>
7998 * frame.c (fprint_frame_id): New function.
7999 (fprint_frame_type, fprint_frame): New function.
8000 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8001 (create_sentinel_frame, get_frame_id): Ditto.
8002 (frame_id_p, frame_id_eq): Ditto.
8003 (frame_id_inner, create_new_frame): Ditto.
8004 (legacy_get_prev_frame, get_prev_frame): Ditto.
8005 (deprecated_update_frame_pc_hack): Ditto.
8006 (frame_register_unwind): Ditto.
8007 (deprecated_update_frame_base_hack): Ditto.
8009 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8011 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8012 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8013 frame_chain function.
8014 * Makefile.in: Add dependencies due to above change.
8016 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8018 * blockframe.c (legacy_frame_chain_valid): Move call to
8019 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8022 2003-04-09 Andrew Cagney <cagney@redhat.com>
8024 * frame.h (struct frame_id): Replace "pc" and "base" with
8025 "stack_addr" and "code_addr". Update comments.
8026 (frame_id_build): Update parameter names and comment.
8027 (struct frame_info): Replace "id_p" and "id" with "this_id".
8028 * dummy-frame.c (dummy_frame_this_id): Update.
8029 * breakpoint.c (print_one_breakpoint): Update.
8030 * frame.c (get_frame_id): Update.
8031 (get_frame_base, frame_id_build): Update.
8032 (create_sentinel_frame, legacy_get_prev_frame): Update.
8033 (deprecated_update_frame_base_hack): Update.
8034 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8035 (frame_id_inner): Ditto.
8037 2003-04-09 Andrew Cagney <cagney@redhat.com>
8039 * defs.h (gdb_print_host_address): Make "addr" parameter a
8041 * utils.c (gdb_print_host_address): Update.
8043 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8045 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8046 register number for R0 is 0.
8048 2003-04-09 J. Brobecker <brobecker@gnat.com>
8050 * frame.h (struct gdbarch): Add opaque structure definition
8051 to avoid a compilation warning on LynxOS 4.0.
8053 2003-04-09 Andrew Cagney <cagney@redhat.com>
8055 * frame.h (struct frame_info): Delete field "pc". Replace
8056 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8058 * frame.c (frame_pc_unwind): Update.
8059 (create_sentinel_frame): Do not set "pc".
8060 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8061 (get_frame_pc): Call frame_pc_unwind.
8062 (deprecated_update_frame_pc_hack): Update.
8063 (create_new_frame): Use "pc" not "->pc".
8065 2003-04-09 Andrew Cagney <cagney@redhat.com>
8067 * frame.c (get_frame_id): Eliminate code updating "frame".
8068 (legacy_get_prev_frame): Ditto.
8069 (get_frame_base): Return id.base directly.
8070 (deprecated_update_frame_base_hack): Update "id.base".
8071 * frame.h (struct frame_info): Delete field "frame".
8073 2003-04-09 Andrew Cagney <cagney@redhat.com>
8075 * NEWS: Mention that the "Sequent family" is obsolete.
8076 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8077 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8078 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8079 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8080 * config/i386/tm-ptx4.h: Obsolete file.
8081 * config/i386/tm-ptx.h: Obsolete file.
8082 * symm-tdep.c: Obsolete file.
8083 * config/i386/symmetry.mt: Obsolete file.
8084 * config/i386/tm-symmetry.h: Obsolete file.
8085 * symm-nat.c: Obsolete file.
8086 * config/i386/nm-symmetry.h: Obsolete file.
8087 * config/i386/xm-symmetry.h: Obsolete file.
8088 * config/i386/symmetry.mh: Obsolete file.
8089 * config/i386/nm-ptx4.h: Obsolete file.
8090 * config/i386/ptx4.mh: Obsolete file.
8091 * config/i386/ptx.mt: Obsolete file.
8092 * config/i386/ptx.mh: Obsolete file.
8093 * config/i386/xm-ptx4.h: Obsolete file.
8094 * config/i386/xm-ptx.h: Obsolete file.
8096 2003-04-09 Andrew Cagney <cagney@redhat.com>
8098 Obsolete mips*-*-mach3*.
8099 * NEWS: Mention that mips*-*-mach3* is obsolete.
8100 * m3-nat.c: Obsolete file.
8101 * config/nm-m3.h: Obsolete file.
8102 * config/mips/tm-mipsm3.h: Obsolete file.
8103 * config/mips/mipsm3.mt: Obsolete file.
8104 * config/mips/mipsm3.mh: Obsolete file.
8105 * config/mips/xm-mipsm3.h: Obsolete file.
8106 * mipsm3-nat.c: Obsolete file.
8107 * configure.host: Obsolete mips-dec-mach3*.
8108 * configure.tgt: Obsolete mips*-*-mach3*.
8110 2003-04-09 Andrew Cagney <cagney@redhat.com>
8112 * doublest.h: Update copyright.
8113 (deprecated_store_floating, deprecated_extract_floating): Rename
8114 store_floating and extract_floating. Update comments.
8115 * doublest.c: Update copyright.
8116 (extract_floating_by_length): Replace extract_floating.
8117 (store_floating_by_length): Replace store_floating.
8118 (deprecated_extract_floating): New function.
8119 (deprecated_store_floating): New function.
8120 (extract_typed_floating): Call extract_floating_by_length.
8121 (store_typed_floating): Call store_floating_by_length.
8122 * x86-64-tdep.c (x86_64_store_return_value): Update.
8123 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8124 (sh64_extract_return_value): Update.
8125 (sh_sh4_register_convert_to_virtual): Update.
8126 (sh_sh64_register_convert_to_virtual): Update.
8127 (sh_sh4_register_convert_to_raw): Update.
8128 (sh_sh64_register_convert_to_raw): Update.
8129 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8130 (rs6000_register_convert_to_raw): Update.
8131 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8132 (ia64_register_convert_to_raw): Update.
8133 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8134 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8135 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8136 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8137 (alpha_register_convert_to_raw): Update.
8139 2003-04-08 Andrew Cagney <cagney@redhat.com>
8141 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8142 * gdbarch.h, gdbarch.c: Re-generate.
8143 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8144 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8145 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8146 conditionally, use frame_pc_unwind as an alternative. Add
8148 * arch-utils.c (init_frame_pc_default): Only call
8149 SAVED_PC_AFTER_CALL when available.
8151 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8153 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8154 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8155 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8156 (start_remote): Ditto.
8157 (handle_inferior_event): Ditto.
8158 (save_inferior_status): Ditto.
8159 (restore_inferior_status): Ditto.
8160 * infcmd.c (attach_command): Ditto.
8161 * fork-child.c (startup_inferior): Ditto.
8162 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8163 * alpha-tdep.c (heuristic_proc_start): Ditto.
8164 * mips-tdep.c (heuristic_proc_start): Ditto.
8165 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8166 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8167 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8168 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8169 * remote-vx.c (vx_create_inferior): Ditto.
8171 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8173 * infrun.c (stop_soon_quietly): Make it an enum, to better
8174 override the default behavior of handle_inferior_event.
8175 (clear_proceed_status): Update uses of stop_soon_quietly to
8176 reflect that it is now an enum.
8177 (start_remote): Ditto.
8178 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8179 is set to handle the new GNU/Linux kernel behavior for
8180 attach/sigstop. Update uses of stop_soon_quietly.
8181 * inferior.h (enum stop_kind): New enum.
8182 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8183 Reset normal handle_inferior_event behavior, afterwards.
8184 * fork-child.c (startup_inferior): Update.
8185 * alpha-tdep.c (heuristic_proc_start): Update.
8186 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8187 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8188 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8189 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8190 * remote-vx.c (vx_create_inferior): Update.
8191 * mips-tdep.c (heuristic_proc_start): Update.
8193 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8195 * disasm.c (dump_insns): Move variables inside loop, or they will
8196 be freed more than once, causing wild memory corruptions.
8197 (gdb_disassembly): Look for the substring "-thread",
8198 instead of "-threads" in the target name, to make sure to find
8199 the 'multi-thread' target. Also, make sure we do the right thing
8200 with the "core" target.
8202 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8204 * mips-tdep.c (mips_print_fp_register): New function, created from
8205 do_fp_register_row(). Registers are now (also) printed as hex.
8206 Only one register is printed per row.
8207 (mips_print_register, do_fp_register_row): Print floating point
8208 registers with mips_print_fp_register().
8210 2003-04-06 Andrew Cagney <cagney@redhat.com>
8212 * valprint.h (inspect_it): Add extern declaration.
8213 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8214 (selectors_info, classes_info): Ditto.
8215 (find_objc_msgcall): Fix indentation.
8216 (objc_printstr): Delete extern declarations.
8218 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8220 2003-04-06 Andrew Cagney <cagney@redhat.com>
8222 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8224 * frame.c (legacy_saved_regs_this_id): Update.
8225 (legacy_get_prev_frame): Update.
8226 * xstormy16-tdep.c: Update comment.
8227 * sparc-tdep.c (sparc_frame_chain): Update comment.
8228 * blockframe.c (legacy_frame_chain_valid): Update.
8230 2003-04-06 Andrew Cagney <cagney@redhat.com>
8232 * valprint.c (val_print_type_code_int): Delete #ifdef
8233 PRINT_TYPELESS_INTEGER code.
8235 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8236 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8237 multi-arch definition.
8238 * gdbarch.h: Re-generate.
8240 2003-04-05 Andrew Cagney <cagney@redhat.com>
8242 Eliminate FRAME_FIND_SAVED_REGS.
8243 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8244 Change FSR parameter to a pointer.
8245 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8246 Assume FSR parameter is a pointer.
8247 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8249 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8250 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8251 saved_regs a pointer.
8252 (hppa_frame_saved_pc): Ditto.
8253 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8254 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8256 (restore_pc_queue): Make fsr a pointer.
8257 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8258 (hppa_frame_chain): Make saved_regs a pointer, call
8259 hppa_frame_init_saved_regs.
8260 * sparc-tdep.c: Include "gdb_assert.h".
8261 (sparc_frame_find_saved_regs): Replace internal_error with
8263 * remote-vxsparc.c (vx_read_register): Delete reference to
8264 FRAME_FIND_SAVED_REGS.
8265 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8266 * gdbarch.h: Regenerate.
8267 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8268 (deprecated_get_frame_saved_regs): Delete declaration.
8269 (struct frame_saved_regs): Delete definition.
8270 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8271 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8272 (hppa_frame_find_saved_regs): Delete declaration.
8273 (FRAME_FIND_SAVED_REGS): Delete macro.
8274 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8275 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8276 FRAME_FIND_SAVED_REGS in comment.
8278 2003-04-05 Andrew Cagney <cagney@redhat.com>
8280 * frame.c (frame_func_unwind, get_frame_func): New functions.
8281 * frame.h (get_frame_func, frame_func_unwind): Declare.
8282 (struct frame_info): Add field "prev_func" for caching the
8283 previous frame's function address.
8284 * arm-tdep.c (arm_frameless_function_invocation): Combine
8285 get_pc_function_start and get_frame_pc into get_frame_func.
8286 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8287 (sh64_nofp_frame_init_saved_regs): Ditto.
8288 * s390-tdep.c (s390_function_start): Ditto.
8289 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8290 (rs6000_frameless_function_invocation): Ditto.
8291 (rs6000_frame_saved_pc): Ditto.
8292 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8293 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8294 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8295 (i386_frame_init_saved_regs): Ditto.
8296 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8297 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8298 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8299 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8300 * blockframe.c (frameless_look_for_prologue): Ditto.
8302 2003-04-05 Andrew Cagney <cagney@redhat.com>
8304 * frame.c (legacy_get_prev_frame): Link prev to next at the
8305 function start. Update comments.
8307 2003-04-05 Andrew Cagney <cagney@redhat.com>
8309 * frame.c (get_frame_id): Update comment.
8310 (legacy_get_prev_frame): Update comment.
8311 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8312 * gdbarch.h: Regenerate.
8313 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8314 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8316 2003-04-05 Andrew Cagney <cagney@redhat.com>
8318 * stack.c (print_frame_info): Use get_frame_pc.
8320 2003-04-04 Andrew Cagney <cagney@redhat.com>
8322 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8323 the frame's type from the unwinder.
8324 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8325 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8326 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8327 (get_frame_base_address): Use get_frame_type.
8328 (get_frame_locals_address, get_frame_args_address): Ditto.
8329 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8330 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8331 (struct frame_info): Add comment explaining why the frame contains
8333 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8334 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8335 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8337 * frame-unwind.h: Include "frame.h".
8338 (struct frame_unwind): Add "type" field.
8339 * Makefile.in (frame_unwind_h): Add $(frame_h).
8341 2003-04-04 Andrew Cagney <cagney@redhat.com>
8343 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8344 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8345 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8347 (d10v_unwind_dummy_id): Use frame_id_build.
8348 * frame.c (find_frame_sal): Use get_frame_pc.
8349 (create_new_frame): Use deprecated_update_frame_pc_hack and
8350 deprecated_update_frame_base_hack.
8351 (create_sentinel_frame): Add comment about ->pc going away.
8352 (get_prev_frame): Add comment about ->pc going away.
8353 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8354 frame_id_build, deprecated_update_frame_pc_hack and
8355 deprecated_update_frame_base_hack.
8356 (select_frame): Use get_frame_pc.
8357 (legacy_saved_regs_this_id): Use frame_id_build.
8359 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8361 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8362 signed integer case.
8363 (classify_argument): Handle enumerations and references.
8365 2003-04-04 Andrew Cagney <cagney@redhat.com>
8367 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8370 2003-04-01 Adam Fedor <fedor@gnu.org>
8372 * gdb/objc-lang.c (selectors_info): Replace calls to
8373 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8374 SYMBOL_NATURAL_NAME.
8375 (classes_info, find_methods): Likewise.
8377 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8379 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8380 ``mach'' to the value determined by bfd_default_set_arch_mach().
8382 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8384 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8385 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8386 (mi-cmd-file.o): Update dependencies.
8388 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8390 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8391 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8393 2003-04-01 Adam Fedor <fedor@gnu.org>
8395 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8396 * language.h (struct language_defn): Add la_demangle.
8397 (language_demangle): Declare.
8398 * language.c (language_demangle): New function.
8399 (unk_lang_demangle): Likewise.
8400 (unknown_language_defn, auto_language_defn, local_language_defn):
8401 Add ukn_lang_demangle.
8402 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8403 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8404 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8405 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8406 * jv-lang.c (java_demangle): New function
8407 (java_language_defn): Use it for la_demangle element.
8408 * objc-lang.c (objc_demangle): Add options argument
8409 (objc_language_defn): Use objc_demangle for la_demangle element.
8410 * maint.c (maintenance_demangle): Replace switch with
8411 call to language_demangle.
8412 * utils.c (fprintf_symbol_filtered): Likewise.
8414 2003-04-01 Andrew Cagney <cagney@redhat.com>
8416 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8417 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8418 PRINT_TYPELESS_INTEGER.
8419 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8420 PUSH_RETURN_ADDRESS.
8422 2003-04-01 Andrew Cagney <cagney@redhat.com>
8424 * Makefile.in (d10v-tdep.o): Update dependencies.
8425 * d10v-tdep.c: Include "frame-base.h".
8426 (d10v_frame_unwind): Make constant.
8427 (d10v_frame_base_address): New function.
8428 (d10v_frame_base): New variable.
8429 (d10v_gdbarch_init): Set frame_base default.
8430 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8432 (d10v_frame_unwind_cache): Set and use "prev_sp".
8433 (d10v_frame_this_id): Use the previous frame's inner most stack
8434 address and this frame's func address for the frame ID. Use
8435 frame_id_build. Don't analyze beyond the current instruction.
8437 2003-04-01 Andrew Cagney <cagney@redhat.com>
8439 * frame.h (get_frame_locals_address, get_frame_args_address):
8440 Refer to the base address, instead of the address of the first
8443 2003-04-01 Andrew Cagney <cagney@redhat.com>
8445 Add frame debug info addresses:
8446 * frame-base.c: New file.
8447 * frame-base.h: New file.
8448 * frame.h (struct frame_base): Add opaque declaration.
8449 (get_frame_base): Update comment.
8450 (get_frame_base_address): Declare.
8451 (get_frame_locals_address): Declare.
8452 (get_frame_args_address): Declare.
8453 (struct frame_info): Add "base" and "base_cache". Update
8454 comments on the unwinder.
8455 * frame.c: Include "frame-base.h".
8456 (get_frame_locals_address): New function.
8457 (get_frame_base_address): New function.
8458 (get_frame_args_address): New function.
8459 * findvar.c (read_var_value): Use get_frame_locals_address and
8460 get_frame_args_address.
8461 * stack.c (frame_info): Use get_frame_locals_address and
8462 get_frame_args_address.
8463 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8464 moved to "frame-base.c".
8465 * printcmd.c (print_frame_nameless_args): Ditto.
8466 * symtab.h (address_class): Update comments.
8467 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8468 get_frame_base_address.
8469 * dwarf2expr.c (execute_stack_op): Ditto.
8470 * Makefile.in (frame_base_h): Define.
8471 (frame.o): Update dependencies.
8472 (frame-base.o): Add dependencies.
8473 (SFILES): Add frame-base.c.
8474 (COMMON_OBS): Add frame-base.o.
8476 2003-04-01 Andrew Cagney <cagney@redhat.com>
8478 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8479 CALL_DUMMY_LENGTH): Ditto.
8480 * gdbarch.c: Re-generate.
8481 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8482 (CALL_DUMMY_LENGTH): Delete macro.
8483 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8484 * arm-tdep.c (arm_gdbarch_init): Ditto.
8485 * avr-tdep.c (avr_gdbarch_init): Ditto.
8486 * cris-tdep.c (cris_gdbarch_init): Ditto.
8487 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8488 * frv-tdep.c (frv_gdbarch_init): Ditto.
8489 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8490 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8491 * i386-tdep.c (i386_gdbarch_init): Ditto.
8492 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8494 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8495 * mips-tdep.c (mips_gdbarch_init): Ditto.
8496 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8497 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8498 * s390-tdep.c (s390_gdbarch_init): Ditto.
8499 * sh-tdep.c (sh_gdbarch_init): Ditto.
8500 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8501 * v850-tdep.c (v850_gdbarch_init): Ditto.
8502 * vax-tdep.c (vax_gdbarch_init): Ditto.
8503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8505 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8507 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8509 2003-04-01 Andrew Cagney <cagney@redhat.com>
8511 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8512 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8513 * gdbarch.h, gdbarch.c: Re-generate.
8514 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8515 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8516 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8517 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8518 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8519 * infcmd.c (run_stack_dummy): Simplify assuming
8520 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8521 * infrun.c (handle_inferior_event): Ditto.
8522 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8523 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8524 * arm-tdep.c (arm_gdbarch_init): Ditto.
8525 * avr-tdep.c (avr_gdbarch_init): Ditto.
8526 * cris-tdep.c (cris_gdbarch_init): Ditto.
8527 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8528 * frv-tdep.c (frv_gdbarch_init): Ditto.
8529 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8530 * i386-tdep.c (i386_gdbarch_init): Ditto.
8531 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8533 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8534 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8535 * mips-tdep.c (mips_gdbarch_init): Ditto.
8536 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8537 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8538 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8539 * s390-tdep.c (s390_gdbarch_init): Ditto.
8540 * sh-tdep.c (sh_gdbarch_init): Ditto.
8541 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8542 * v850-tdep.c (v850_gdbarch_init): Ditto.
8543 * vax-tdep.c (vax_gdbarch_init): Ditto.
8544 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8546 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8548 * symfile.c (symfile_relocate_debug_section): Update call to
8549 bfd_simple_get_relocated_section_contents.
8551 2003-03-31 Andrew Cagney <cagney@redhat.com>
8553 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8554 * gdbarch.h, gdbarch.c: Regenerate.
8555 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8556 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8558 * frame.h (generic_fix_call_dummy): Delete declaration.
8559 * dummy-frame.h: Update comment.
8560 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8563 * sh-tdep.c (sh_gdbarch_init): Ditto.
8564 * s390-tdep.c (s390_gdbarch_init): Ditto.
8565 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8566 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8568 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8569 * i386-tdep.c (i386_gdbarch_init): Ditto.
8570 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8571 * frv-tdep.c (frv_gdbarch_init): Ditto.
8572 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8573 * cris-tdep.c (cris_gdbarch_init): Ditto.
8574 * avr-tdep.c (avr_gdbarch_init): Ditto.
8575 * arm-tdep.c (arm_gdbarch_init): Ditto.
8577 2003-03-31 J. Brobecker <brobecker@gnat.com>
8579 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8580 (INIT_FRAME_AP): Likewise.
8581 (EXTRA_FRAME_INFO): Likewise.
8583 2003-03-31 Andrew Cagney <cagney@redhat.com>
8585 * gdbarch.sh: Include "symfile.h".
8586 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8587 * gdbarch.h, gdbarch.c: Re-generate.
8588 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8590 call_dummy_address, the default is at entry_point_address.
8591 * v850-tdep.c (v850_gdbarch_init): Ditto.
8592 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8593 * sh-tdep.c (sh_gdbarch_init): Ditto.
8594 * s390-tdep.c (s390_gdbarch_init): Ditto.
8595 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8596 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8597 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8598 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8599 * i386-tdep.c (i386_gdbarch_init): Ditto.
8600 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8601 * frv-tdep.c (frv_gdbarch_init): Ditto.
8602 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8603 * cris-tdep.c (cris_gdbarch_init): Ditto.
8604 * arm-tdep.c (arm_gdbarch_init): Ditto.
8606 2003-03-31 Andrew Cagney <cagney@redhat.com>
8608 * gdbarch.sh (CALL_DUMMY_P): Delete.
8609 * gdbarch.h, gdbarch.c: Re-generate.
8610 * inferior.h (CALL_DUMMY_P): Delete macro.
8611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8612 * vax-tdep.c (vax_gdbarch_init): Update.
8613 * v850-tdep.c (v850_gdbarch_init): Update.
8614 * sparc-tdep.c (sparc_gdbarch_init): Update.
8615 * sh-tdep.c (sh_gdbarch_init): Update.
8616 * s390-tdep.c (s390_gdbarch_init): Update.
8617 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8618 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8619 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8620 * mips-tdep.c (mips_gdbarch_init): Update.
8621 * mcore-tdep.c (mcore_gdbarch_init): Update.
8622 * m68k-tdep.c (m68k_gdbarch_init): Update.
8623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8624 * ia64-tdep.c (ia64_gdbarch_init): Update.
8625 * i386-tdep.c (i386_gdbarch_init): Update.
8626 * h8300-tdep.c (h8300_gdbarch_init): Update.
8627 * frv-tdep.c (frv_gdbarch_init): Update.
8628 * d10v-tdep.c (d10v_gdbarch_init): Update.
8629 * cris-tdep.c (cris_gdbarch_init): Update.
8630 * breakpoint.c (deprecated_frame_in_dummy): Update.
8631 * avr-tdep.c (avr_gdbarch_init): Update.
8632 * alpha-tdep.c (alpha_gdbarch_init): Update.
8633 * arm-tdep.c (arm_gdbarch_init): Update.
8634 * dummy-frame.c (dummy_frame_this_id): Update comments.
8635 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8636 * frame.c (legacy_get_prev_frame): Ditto.
8637 * valops.c (call_function_by_hand): Delete function.
8638 (hand_function_call): Rename to call_function_by_hand
8640 2003-03-30 Andrew Cagney <cagney@redhat.com>
8642 2002-11-10 Klee Dienes <kdienes@apple.com>
8643 * value.h (struct value): Update comment.
8645 2003-03-30 Andrew Cagney <cagney@redhat.com>
8647 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8649 (d10v_gdbarch_init): Do not set fp_regnum.
8651 * frame.c (get_frame_base): Force ID initialization.
8652 (get_prev_frame): Move computation of the frame ID from here ...
8653 (get_frame_id): ... to here.
8654 (legacy_get_prev_frame): Mark the frame ID as valid.
8655 * frame.h (struct frame_info): Add field "id_p".
8657 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8659 * i386-tdep.c (i386_store_struct_return): Removed.
8660 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8662 2003-03-30 Andrew Cagney <cagney@redhat.com>
8664 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8665 * gdbarch.h, gdbarch.c: Regenerate.
8666 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8668 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8669 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8670 * i386-tdep.c (i386_gdbarch_init): Ditto.
8671 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8672 * cris-tdep.c (cris_gdbarch_init): Ditto.
8673 * vax-tdep.c (vax_gdbarch_init): Ditto.
8674 * s390-tdep.c (s390_gdbarch_init): Ditto.
8675 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8676 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8677 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8678 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8679 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8680 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8681 * sparc-tdep.c (sparc_gdbarch_init): Update.
8682 * sh-tdep.c (sh_gdbarch_init): Update.
8683 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8684 * mips-tdep.c (mips_gdbarch_init): Update.
8685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8686 * ia64-tdep.c (ia64_gdbarch_init): Update.
8687 * frv-tdep.c (frv_gdbarch_init): Update.
8688 * avr-tdep.c (avr_gdbarch_init): Update.
8689 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8690 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8691 instead of when push_dummy_call is not available.
8693 2003-03-30 Andrew Cagney <cagney@redhat.com>
8695 * infttrace.c: Include "gdbthread.h".
8696 (parent_attach_all): Fix function signature.
8697 (call_ptrace): Update call.
8698 * Makefile.in (infttrace.o): Update dependencies.
8700 2003-03-30 Andrew Cagney <cagney@redhat.com>
8702 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8703 PUSH_RETURN_ADDRESS.
8704 * gdbarch.h, gdbarch.c: Regenerate.
8705 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8706 * x86-64-tdep.c (x86_64_init_abi): Update.
8707 * v850-tdep.c (v850_gdbarch_init): Update.
8708 * sparc-tdep.c (sparc_gdbarch_init): Update.
8709 * sh-tdep.c (sh_gdbarch_init): Update.
8710 * s390-tdep.c (s390_gdbarch_init): Update.
8711 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8712 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8713 * mips-tdep.c (mips_gdbarch_init): Update.
8714 * mcore-tdep.c (mcore_gdbarch_init): Update.
8715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8716 * ia64-tdep.c (ia64_gdbarch_init): Update.
8717 * i386-tdep.c (i386_gdbarch_init): Update.
8718 * h8300-tdep.c (h8300_gdbarch_init): Update.
8719 * frv-tdep.c (frv_gdbarch_init): Update.
8720 * cris-tdep.c (cris_gdbarch_init): Update.
8721 * avr-tdep.c (avr_gdbarch_init): Update.
8722 * arm-tdep.c (arm_gdbarch_init): Update.
8723 * valops.c (hand_function_call): Update.
8725 2003-03-29 Andrew Cagney <cagney@redhat.com>
8727 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8728 sizeof_call_dummy_words.
8729 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8731 * gdbarch.h: Regenerate.
8733 2003-03-29 Andrew Cagney <cagney@redhat.com>
8735 * infttrace.h: New file.
8736 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8737 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8738 (hpread_read_doc_function_type): Detect an initialized type1.
8739 (hpread_quick_traverse): Initialize mod_name_string.
8740 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8741 (som_solib_get_solib_by_pc): Declare.
8742 (so_lib_thread_start_addr): Declare.
8743 (no_shared_libraries): Declare.
8744 * somread.c (init_import_symbols): Make static. Add forward
8746 * config/pa/nm-hppah.h: Include "infttrace.h" for
8748 (hppa_insert_hw_watchpoint): Declare.
8749 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8750 * hppah-nat.c: Include "gdb_string.h".
8751 (parent_attach_all): Delete extern declaration, moved to
8753 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8755 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8756 * Makefile.in (infttrace_h): Define.
8757 (hpread.o): Update dependencies.
8758 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8759 * hppa-hpux-tdep.c: Include "gdb_string.h".
8760 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8761 * infrun.c (handle_inferior_event): Always initialize
8762 stepped_after_stopped_by_watchpoint. Add default and remove
8763 fallthrough in switch statement.
8764 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8766 (hppa_remove_hw_watchpoint): Ditto.
8768 2003-03-29 Andrew Cagney <cagney@redhat.com>
8770 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8773 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8775 * arm-tdep.c (arm_push_arguments): Delete.
8776 (struct stack_item): New type.
8777 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8778 (arm_store_struct_return): Delte.
8779 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8780 arm_push_arguments or arm_store_struct_return.
8782 2003-03-28 Andrew Cagney <cagney@redhat.com>
8784 * Makefile.in (d10v-tdep.o): Update dependencies.
8785 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8786 * d10v-tdep.c: Include "remote.h".
8787 (target_resume_hook): Delete extern declaration.
8788 (target_wait_loop_hook): Ditto.
8789 (tdisassemble_command): Eliminate assignment in "if" conditional.
8790 (d10v_ts2_register_sim_regno): Eliminate call to
8791 legacy_register_sim_regno.
8792 (d10v_ts3_register_sim_regno): Ditto.
8794 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8796 * thread.c: Reindented.
8798 * linux-proc.c: Ditto.
8800 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8802 * MAINTAINERS (write after approval): Add myself.
8804 2003-03-27 Theodore A. Roth <troth@openavr.org>
8806 * objc-exp.y: Add missing semi-colons.
8808 2003-03-27 Andrew Cagney <cagney@redhat.com>
8810 * regcache.c (write_sp): Delete function and references.
8811 * inferior.h (write_sp): Delete declaration.
8812 * valops.c (hand_function_call): Replace write_sp with
8814 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8815 (sparc_pop_frame): Ditto.
8817 2003-03-27 Andrew Cagney <cagney@redhat.com>
8819 * NEWS: Mention removal of support for hppa*-*-bsd* and
8820 hppa*-*-osf* natives, and hppa*-*-pro* target.
8821 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8822 * config/pa/xm-pa.h: Obsolete file.
8823 * config/pa/xm-hppab.h: Obsolete file.
8824 * config/pa/nm-hppab.h: Obsolete file.
8825 * config/pa/tm-hppab.h: Obsolete file.
8826 * config/pa/tm-hppao.h: Obsolete file.
8827 * config/pa/nm-hppao.h: Obsolete file.
8828 * config/pa/tm-pro.h: Obsolete file.
8829 * config/pa/hppaosf.mt: Obsolete file.
8830 * config/pa/hppaosf.mh: Obsolete file.
8831 * config/pa/hppapro.mt: Obsolete file.
8832 * config/pa/hppabsd.mt: Obsolete file.
8833 * config/pa/hppabsd.mh: Obsolete file.
8834 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8835 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8838 2003-03-27 Andrew Cagney <cagney@redhat.com>
8840 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8841 push_arguments. Don't set push_return_address or write_sp.
8842 (d10v_push_dummy_call): Replace d10v_push_arguments.
8843 (d10v_push_return_address, d10v_write_sp): Delete function,
8844 handled by push_dummy_call.
8846 2003-03-26 Andrew Cagney <cagney@redhat.com>
8848 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8849 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8850 regcache and dummy_addr parameters.
8851 * gdbarch.h, gdbarch.c: Re-generate.
8852 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8853 available; assume it will handle stack alignment and return
8854 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8855 legacy_push_arguments.
8856 (legacy_push_arguments): Rename default_push_arguments.
8857 * value.h (legacy_push_arguments): Rename default_push_arguments.
8858 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8859 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8860 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8861 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8862 * config/i386/tm-symmetry.h: Update.
8863 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8864 * x86-64-tdep.c (x86_64_init_abi): Update.
8865 * v850-tdep.c (v850_gdbarch_init): Update.
8866 * sparc-tdep.c (sparc_gdbarch_init): Update.
8867 * sh-tdep.c (sh_gdbarch_init): Update.
8868 * s390-tdep.c (s390_gdbarch_init): Update.
8869 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8870 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8871 * mips-tdep.c (mips_gdbarch_init): Update.
8872 * mcore-tdep.c (mcore_gdbarch_init): Update.
8873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8874 * ia64-tdep.c (ia64_gdbarch_init): Update.
8875 * i386-tdep.c (i386_gdbarch_init): Update.
8876 * hppa-tdep.c (hppa_gdbarch_init): Update.
8877 * h8300-tdep.c (h8300_gdbarch_init): Update.
8878 * frv-tdep.c (frv_gdbarch_init): Update.
8879 * d10v-tdep.c (d10v_gdbarch_init): Update.
8880 * cris-tdep.c (cris_gdbarch_init): Update.
8881 * avr-tdep.c (avr_gdbarch_init): Update.
8882 * arm-tdep.c (arm_gdbarch_init): Update.
8883 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8884 * alpha-tdep.c (alpha_gdbarch_init): Update.
8886 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8888 * signals/signals.c (do_target_signal_to_host): Correct realtime
8891 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8893 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8894 (struct sal_chain, map_catch_names): Remove.
8895 (catch_exception_command_1): Don't call
8896 handle_gnu_4_16_catch_command.
8898 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8900 From Mark Dettinger <dettinge@de.ibm.com>:
8901 * dwarf2cfi.c (read_2u): Increment pointer by two.
8903 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8905 * signals/signals.c: Fix typos in last change.
8907 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8909 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8910 not already defined. Use __SIGRTMIN if available.
8911 (target_signal_from_host): Remove SIGRTMIN block.
8912 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8913 the signal is within the realtime range.
8915 2003-03-25 Adam Fedor <fedor@gnu.org>
8917 * Makefile.in (infrun.o): Add $(language_h)
8918 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8919 for language specific trampolines.
8920 * language.h (struct language_defn): Add skip_trampoline.
8921 (skip_language_trampoline): Declare.
8922 * language.c (unk_lang_trampoline, skip_language_trampoline):
8924 (unknown_language_defn, auto_language_defn, local_language_defn):
8925 Add ukn_lang_trampoline.
8926 * ada-lang.c (ada_language_defn): Add NULL for language
8927 specific skip_trampoline.
8928 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8929 scm-lang.c: Likewise.
8930 * objc-lang.c (objc_skip_trampoline): New function.
8931 (objc_language_defn): Add objc_skip_trampoline.
8933 2003-03-25 Andrew Cagney <cagney@redhat.com>
8935 * frame.c (get_prev_frame): Delay validating a frame's ID -
8936 non-NULL, didn't go backwards - until an attempt to unwind it to
8939 2003-03-25 Andrew Cagney <cagney@redhat.com>
8941 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8942 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8943 * gdbarch.h, gdbarch.c: Re-generate.
8944 * config/sparc/tm-sparc.h
8945 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8946 * sparc-tdep.c (sparc_gdbarch_init): Set
8947 deprecated_extra_stack_alignment_needed.
8948 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8949 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8950 extra_stack_alignment_needed.
8951 * v850-tdep.c (v850_gdbarch_init): Ditto.
8952 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8953 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8954 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8955 * cris-tdep.c (cris_gdbarch_init): Ditto.
8956 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8959 2003-03-25 Andrew Cagney <cagney@redhat.com>
8961 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8962 STORE_STRUCT_RETURN.
8963 * gdbarch.h, gdbarch.c: Regenerate.
8964 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8965 (d10v_push_arguments): Set the struct return register.
8966 (d10v_gdbarch_init): Update.
8967 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8968 * x86-64-tdep.c (x86_64_init_abi): Update.
8969 * vax-tdep.c (vax_gdbarch_init): Update.
8970 * v850-tdep.c (v850_gdbarch_init): Update.
8971 * sparc-tdep.c (sparc_gdbarch_init): Update.
8972 * sh-tdep.c (sh_gdbarch_init): Update.
8973 * s390-tdep.c (s390_gdbarch_init): Update.
8974 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8975 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8976 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8977 * mips-tdep.c (mips_gdbarch_init): Update.
8978 * mcore-tdep.c (mcore_gdbarch_init): Update.
8979 * m68k-tdep.c (m68k_gdbarch_init): Update.
8980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8981 * ia64-tdep.c (ia64_gdbarch_init): Update.
8982 * i386-tdep.c (i386_gdbarch_init): Update.
8983 * hppa-tdep.c (hppa_gdbarch_init): Update.
8984 * h8300-tdep.c (h8300_gdbarch_init): Update.
8985 * frv-tdep.c (frv_gdbarch_init): Update.
8986 * cris-tdep.c (cris_gdbarch_init): Update.
8987 * avr-tdep.c (avr_gdbarch_init): Update.
8988 * arm-tdep.c (arm_gdbarch_init): Update.
8989 * alpha-tdep.c (alpha_gdbarch_init): Update.
8991 2003-03-25 Andrew Cagney <cagney@redhat.com>
8993 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8994 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8995 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8996 * gdbarch.h, gdbarch.c: Regenerate.
8997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8998 call_dummy_stack_adjust_p.
8999 * vax-tdep.c (vax_gdbarch_init): Ditto.
9000 * v850-tdep.c (v850_gdbarch_init): Ditto.
9001 * sh-tdep.c (sh_gdbarch_init): Ditto.
9002 * s390-tdep.c (s390_gdbarch_init): Ditto.
9003 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9004 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9005 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9006 * mips-tdep.c (mips_gdbarch_init): Ditto.
9007 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9008 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9009 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9010 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9011 * i386-tdep.c (i386_gdbarch_init): Ditto.
9012 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9013 * frv-tdep.c (frv_gdbarch_init): Ditto.
9014 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9015 * cris-tdep.c (cris_gdbarch_init): Ditto.
9016 * avr-tdep.c (avr_gdbarch_init): Ditto.
9017 * arm-tdep.c (arm_gdbarch_init): Ditto.
9018 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9019 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9020 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9021 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9022 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9023 call_dummy_stack_adjust_p.
9024 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9025 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9026 * sparc-tdep.c (sparc32_push_arguments): Update.
9027 * valops.c (hand_function_call): Update.
9029 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9032 set_gdbarch_char_signed.
9034 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9037 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9039 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9041 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9042 (_initialize_arm_tdep): Don't set tm_print_insn.
9044 2003-03-24 Adam Fedor <fedor@gnu.org>
9046 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9047 * objc-lang.h: Add multiple inclusion protection.
9048 (start_msglist, add_msglist, end_msglist): Additional declarations.
9050 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9052 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9053 value was renamed to ARM_FLOAT_SOFT_FPA.
9055 2003-03-23 Andrew Cagney <cagney@redhat.com>
9057 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9058 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9059 * gdbarch.h, gdbarch.c: Regenerate.
9060 * valops.c (hand_function_call): Update.
9061 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9062 * frame.c (legacy_saved_regs_this_id): Update.
9063 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9064 * dummy-frame.h: Update.
9065 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9066 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9067 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9068 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9069 * config/m68k/tm-sun3.h: Update.
9070 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9071 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9072 * x86-64-tdep.c (x86_64_init_abi): Update.
9073 * vax-tdep.c (vax_gdbarch_init): Update.
9074 * v850-tdep.c (v850_gdbarch_init): Update.
9075 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9076 * sh-tdep.c (sh_gdbarch_init): Update.
9077 * s390-tdep.c (s390_gdbarch_init): Update.
9078 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9079 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9080 (frame_get_saved_regs): Update.
9081 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9082 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9083 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9084 * mips-tdep.c (mips_gdbarch_init): Update.
9085 * mcore-tdep.c (mcore_gdbarch_init): Update.
9086 * m68k-tdep.c (m68k_gdbarch_init): Update.
9087 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9088 * ia64-tdep.c (ia64_gdbarch_init): Update.
9089 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9090 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9091 (i386_interix_back_one_frame): Update.
9092 * hppa-tdep.c (hppa_gdbarch_init): Update.
9093 (hppa_init_extra_frame_info): Update.
9094 * h8300-tdep.c (h8300_gdbarch_init): Update.
9095 * frv-tdep.c (frv_gdbarch_init): Update.
9096 * cris-tdep.c (cris_gdbarch_init): Update.
9097 * avr-tdep.c (avr_gdbarch_init): Update.
9098 * arm-tdep.c (arm_gdbarch_init): Update.
9099 * alpha-tdep.c (alpha_gdbarch_init): Update.
9101 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9103 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9104 (arm_get_fp_model): Declare.
9105 * arm-tdep.c (fp_model_strings): New string array.
9106 (arm_fp_model, current_fp_model): New variables.
9107 (arm_get_fp_model): New function.
9108 (arm_set_fp): New function.
9109 (set_fp_model_sfunc): New function.
9110 (show_fp_model): New function.
9111 (_initialize_arm_tdep): Add new command to set/show the FPU.
9112 (arm_extract_return_value): Use arm_get_fp_model.
9113 (arm_store_return_value): Likewise.
9114 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9115 to initialize the floating-point data types.
9116 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9119 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9121 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9122 the current setting of each value.
9123 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9124 new_set and new_show. Use add_setshow_cmd_full and
9125 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9126 commands and add new version as subcommands of "set/show arm".
9128 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9130 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9131 (set_arm_command, show_arm_command): New functions.
9132 (_initialize_arm_tdep): Add them.
9133 (num_disassembly_options): Renamed from num_flavor_options.
9134 (valid_disassembly_styles): Renamed from valid_flavors.
9135 (disassembly_style): Renamed from disassembly_flavor.
9136 (set_disassembly_style_sfunc): Renamed from
9137 set_disassembly_flavor_sfunc.
9138 (set_disassembly_style): Renamed from set_disassembly_flavor.
9139 (arm_othernames): Updated.
9140 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9141 command. Add "set/show arm disassembly" commands. Deprecate
9142 "othernames" command.
9144 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9146 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9147 (arm-tdep.o): Depend on elf_arm_h.
9149 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9151 * Makefile.in (coff_internal_h): Define.
9152 (arm-tdep.o): Update dependencies.
9154 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9156 * arm-tdep.c (prologue_cache): Delete.
9157 (check_prologue_cache, save_prologue_cache): Delete.
9158 (arm_scan_prologue): Don't check or update the prologue_cache.
9159 (arm_gdb_arch_init): Don't initialize it.
9160 (_initialize_arm_tdep): Likewise.
9162 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9164 * MAINTAINERS (tui): Maintainer of tui code.
9166 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9168 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9169 (i386-cygwin-tdep.o): Add dependencies.
9170 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9171 * i386-cygwin-tdep.c: New file.
9172 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9173 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9175 2003-03-20 Andrew Cagney <cagney@redhat.com>
9177 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9178 (handle_inferior_event): Remove code calling
9179 DYNAMIC_TRAMPOLINE_NEXTPC.
9181 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9182 already has a full path.
9184 * main.c (gdb_main): Return 1.
9185 (captured_main): Call error to report an invalid interpreter.
9187 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9188 * alpha-osf1-tdep.c: Include "gdb_string.h".
9190 2003-03-19 J. Brobecker <brobecker@gnat.com>
9192 Continuing work to convert the hppa targets to multiarch partial.
9194 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9195 method, now that hppa_push_dummy_frame has a conformant prototype.
9196 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9197 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9198 for the switch to multiarch partial.
9200 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9202 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9203 when iss is issNull.
9205 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9207 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9208 NUM_REGS bounds check.
9210 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9212 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9213 * mips-tdep.c (gdb_assert.h): Include.
9214 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9215 (mips_register_name): Handle integer registers explicitly. Add
9217 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9218 (mips_lsi33k_reg_names): Don't list integer registers; they're
9219 handled by mips_register_name() now.
9220 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9221 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9222 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9223 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9224 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9226 2003-03-18 Andrew Cagney <cagney@redhat.com>
9228 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9230 * gdbtypes.h (print_scalar_formatted): Update declaration.
9231 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9233 2003-03-18 J. Brobecker <brobecker@gnat.com>
9235 * infrun.c (observer.h): Add #include.
9236 (normal_stop): Add call to observer_notify_normal_stop.
9237 * Makefile.in (infrun.o): Add dependency on observer.h.
9239 2003-03-18 J. Brobecker <brobecker@gnat.com>
9241 Continuing work to convert the hppa targets to multiarch partial.
9242 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9243 parameter. Reformat comment.
9244 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9245 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9246 to match new profile.
9248 2003-03-18 J. Brobecker <brobecker@gnat.com>
9250 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9251 appear to be working in any case.
9253 2003-03-18 J. Brobecker <brobecker@gnat.com>
9255 * observer.c (observer_test_first_observer): New static variable.
9256 (observer_test_second_observer): Likewise.
9257 (observer_test_third_observer): Likewise.
9258 (observer_test_first_notification_function): New static function.
9259 (observer_test_second_notification_function): Likewise.
9260 (observer_test_third_notification_function): Likewise.
9262 2003-03-17 J. Brobecker <brobecker@gnat.com>
9264 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9265 * somsolib.c (gdb_assert.h): Likewise.
9266 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9267 (somsolib.o): Likewise.
9269 2003-03-17 Andrew Cagney <cagney@redhat.com>
9271 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9272 BFD. Simplify setting of di.endian.
9274 2003-03-17 Andrew Cagney <cagney@redhat.com>
9276 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9277 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9279 From Elena Zannoni <ezannoni@redhat.com>
9280 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9281 vector and floating-point parameters.
9282 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9284 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9286 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9288 * MAINTAINERS: Remove my name from several maintainership roles.
9290 2003-03-17 Andrew Cagney <cagney@redhat.com>
9292 Fix frame off-by-one bug.
9293 * frame-unwind.h (frame_this_id_ftype): Replace
9294 frame_unwind_id_ftype.
9295 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9296 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9297 with "prev_register".
9298 * frame-unwind.c (frame_unwind_find_by_pc): Return
9299 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9301 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9302 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9303 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9304 (dummy_frame_unwind): Update.
9305 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9306 sentinel_frame_register_unwind.
9307 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9308 (sentinel_frame_unwinder): Update.
9309 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9310 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9311 * frame.c (create_sentinel_frame): Update. Initialize
9312 "prologue_cache" instead of "unwind_cache".
9313 (frame_register_unwind): Call this frame's prev_register with the
9314 next frame and this frame's prologue cache.
9315 (get_prev_frame): Simplify. Always call prev frame's this_id with
9316 this frame and prev frame's prologue cache. Document that this
9317 call is shifted one to the left when compared to the
9318 frame_register_unwind call.
9319 (legacy_saved_regs_prev_register): Replace
9320 frame_saved_regs_register_unwind.
9321 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9322 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9323 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9324 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9325 (d10v_frame_unwind): Update.
9326 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9327 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9328 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9329 "saved_regs" with "this_saved_regs".
9331 2003-03-16 Andrew Cagney <cagney@redhat.com>
9333 * frame.c (frame_pop): Don't call target_store_registers. Fix
9334 problem reported by Mark Kettenis.
9336 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9338 * i386-tdep.c (i386_register_type): Renamed from
9339 i386_register_virtual_type. Adjust function signature.
9340 (i386_gdbarch_init): Set register_type instead of
9341 deprecated_max_register_raw_size,
9342 deprecated_max_register_virtual_size and register_virtual_type.
9344 2003-03-14 Andrew Cagney <cagney@redhat.com>
9346 * frame.c (get_prev_frame): When a legacy frame, always call
9347 legacy_get_prev_frame. Simplify unwind code using assumption that
9348 the unwinder is new.
9349 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9350 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9351 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9353 2003-03-14 Andrew Cagney <cagney@redhat.com>
9355 * frame.c (get_saved_register): Delete function.
9356 * frame.h (get_saved_register): Delete declaration.
9357 * xstormy16-tdep.c: Update comment.
9358 * regcache.h: Update comments.
9359 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9360 get_saved_register and extract_address, use
9361 frame_read_unsigned_register.
9362 (sparc_frame_saved_pc): Ditto.
9363 (sparc_get_saved_register): Instead of get_saved_register, use
9365 (sparc_pop_frame): Ditto.
9366 * findvar.c: Update comments.
9367 (value_of_register): Call frame_register instead of
9369 (value_from_register): Ditto.
9370 * config/sparc/tm-sparc.h: Update comment.
9371 * breakpoint.c: Update comment.
9373 2003-03-14 Andrew Cagney <cagney@redhat.com>
9375 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9377 * gdbarch.h, gdbarch.c: Re-generate.
9378 * frame.h: Update comments.
9379 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9380 * x86-64-tdep.c (x86_64_init_abi): Update.
9381 * sparc-tdep.c (sparc_gdbarch_init): Update.
9382 * sh-tdep.c (sh_gdbarch_init): Update.
9383 * mips-tdep.c (mips_gdbarch_init): Update.
9384 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9385 * cris-tdep.c (cris_gdbarch_init): Update.
9386 * ia64-tdep.c (ia64_gdbarch_init): Update.
9387 * frame.c (frame_register): Update.
9388 (get_saved_register): Update.
9389 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9391 2003-03-13 Andrew Cagney <cagney@redhat.com>
9393 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9394 * gdbarch.h, gdbarch.c: Regenerate.
9395 * valops.c (hand_function_call): Update comment.
9396 * stack.c (return_command): Update comment.
9397 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9398 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9400 * x86-64-tdep.c (x86_64_init_abi): Update.
9401 * vax-tdep.c (vax_gdbarch_init): Update.
9402 * v850-tdep.c (v850_gdbarch_init): Update.
9403 * sparc-tdep.c (sparc_gdbarch_init): Update.
9404 * sh-tdep.c (sh_gdbarch_init): Update.
9405 * s390-tdep.c (s390_gdbarch_init): Update.
9406 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9407 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9408 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9409 * mips-tdep.c (mips_gdbarch_init): Update.
9410 * mcore-tdep.c (mcore_gdbarch_init): Update.
9411 * m68k-tdep.c (m68k_gdbarch_init): Update.
9412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9413 * ia64-tdep.c (ia64_gdbarch_init): Update.
9414 * i386-tdep.c (i386_gdbarch_init): Update.
9415 * hppa-tdep.c (hppa_gdbarch_init): Update.
9416 * h8300-tdep.c (h8300_gdbarch_init): Update.
9417 * frv-tdep.c (frv_gdbarch_init): Update.
9418 * cris-tdep.c (cris_gdbarch_init): Update.
9419 * avr-tdep.c (avr_gdbarch_init): Update.
9420 * arm-tdep.c (arm_gdbarch_init): Update.
9421 * alpha-tdep.c (alpha_gdbarch_init): Update.
9423 2003-03-13 Andrew Cagney <cagney@redhat.com>
9425 * frame.c (legacy_frame_p): New function.
9426 (get_prev_frame): Use legacy_frame_p.
9427 * frame.h (legacy_frame_p): Declare.
9429 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9431 * MAINTAINERS (write after approval): Alphabetically
9434 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9436 * MAINTAINERS (write after approval): Add myself.
9438 2003-03-12 Andrew Cagney <cagney@redhat.com>
9440 * frame.c (get_prev_frame): Rename the frame parameter to
9442 (get_next_frame, legacy_get_prev_frame): Ditto.
9444 2003-03-12 Andrew Cagney <cagney@redhat.com>
9446 * frame.c (get_current_frame): Check target_has_registers before
9447 checking target_has_stack.
9448 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9449 instead of deprecated_selected_frame.
9450 * findvar.c (value_of_register): Pass "frame", not
9451 deprecated_selected_frame, to value_of_builtin_reg.
9453 2003-03-12 Andrew Cagney <cagney@redhat.com>
9455 * regcache.c (regcache_cooked_write_signed): New function.
9456 (regcache_cooked_write_unsigned): New function.
9457 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9458 (regcache_cooked_read_signed): Fix regnum in range assertion.
9459 * regcache.h (regcache_cooked_write_signed): Declare.
9460 (regcache_cooked_write_unsigned): Declare.
9462 2003-03-12 Andrew Cagney <cagney@redhat.com>
9464 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9465 * gdbarch.h, gdbarch.c: Re-generate.
9466 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9467 * x86-64-tdep.h: Update.
9468 * x86-64-tdep.c (x86_64_init_abi): Update.
9469 * v850-tdep.c (v850_gdbarch_init): Update.
9470 * sparc-tdep.c (sparc_gdbarch_init): Update.
9471 * sh-tdep.c (sh_gdbarch_init): Update.
9472 * s390-tdep.c (s390_gdbarch_init): Update.
9473 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9474 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9475 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9476 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9477 * mips-tdep.c (mips_gdbarch_init): Update.
9478 * mcore-tdep.c (mcore_gdbarch_init): Update.
9479 * m68k-tdep.c (m68k_gdbarch_init): Update.
9480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9481 * ia64-tdep.c (ia64_gdbarch_init): Update.
9482 * i386-tdep.c (i386_gdbarch_init): Update.
9483 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9484 * hppa-tdep.c (hppa_gdbarch_init): Update.
9485 * h8300-tdep.c (h8300_gdbarch_init): Update.
9486 * frv-tdep.c (frv_gdbarch_init): Update.
9487 * cris-tdep.c (cris_gdbarch_init): Update.
9488 * avr-tdep.c (avr_gdbarch_init): Update.
9489 * arm-tdep.c (arm_gdbarch_init): Update.
9490 * alpha-tdep.c (alpha_gdbarch_init): Update.
9491 * sh-tdep.c (sh_init_extra_frame_info): Update.
9492 (sh64_init_extra_frame_info): Update.
9493 * ns32knbsd-nat.c (frame_num_args): Update.
9494 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9495 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9496 (xstormy16_frame_chain_valid): Update.
9497 * vax-tdep.c (vax_saved_pc_after_call): Update.
9498 * v850-tdep.c (v850_frame_chain): Update.
9499 (v850_pop_frame): Update.
9500 (v850_init_extra_frame_info): Update.
9501 * sparc-tdep.c (setup_arbitrary_frame): Update.
9502 * ns32k-tdep.c (umax_frame_num_args): Update.
9503 * s390-tdep.c (s390_pop_frame_regular): Update.
9504 * mn10300-tdep.c (mn10300_frame_chain): Update.
9505 (mn10300_pop_frame_regular): Update.
9506 (mn10300_init_extra_frame_info): Update.
9507 * mips-tdep.c (mips_init_frame_pc_first): Update.
9508 (mips_frame_chain): Update.
9509 (mips_pop_frame): Update.
9510 * mcore-tdep.c (mcore_frame_chain): Update.
9511 (mcore_pop_frame): Update.
9512 (mcore_init_extra_frame_info): Update.
9513 * arch-utils.c (init_frame_pc_default): Update.
9514 * m68k-tdep.c (isi_frame_num_args): Update.
9515 (delta68_frame_num_args): Update.
9516 (news_frame_num_args): Update.
9517 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9518 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9519 (alpha_frame_chain): Update.
9520 (alpha_pop_frame): Update.
9521 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9522 (hppa_init_extra_frame_info): Update.
9523 (hppa_frame_chain): Update.
9524 (hppa_frame_chain_valid): Update.
9525 * cris-tdep.c (cris_init_extra_frame_info): Update.
9526 * avr-tdep.c (avr_init_extra_frame_info): Update.
9527 * arm-tdep.c (arm_frame_chain_valid): Update.
9528 (arm_init_extra_frame_info): Update.
9529 (arm_pop_frame): Update.
9530 * frame.c (frame_pc_unwind): Update.
9531 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9532 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9533 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9534 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9535 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9536 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9538 2003-03-12 Andrew Cagney <cagney@redhat.com>
9540 Eliminate the need for POP_FRAME.
9541 * frame.c (do_frame_unwind_register): New function.
9542 (frame_pop): When no POP_FRAME, pop the frame using register
9543 unwind and a scratch regcache.
9544 (frame_saved_regs_pop): Delete function.
9545 (trad_frame_unwinder): Update.
9546 * d10v-tdep.c (d10v_frame_pop): Delete function.
9547 (d10v_frame_unwind): Update.
9548 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9549 (sentinel_frame_unwinder): Update.
9550 * dummy-frame.c (dummy_frame_pop): Delete function.
9551 (dummy_frame_unwind): Update.
9552 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9553 (struct frame_unwind): Update.
9555 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9557 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9558 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9559 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9560 Do range checks on register number obtained from debugging info.
9561 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9562 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9563 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9565 (do_fp_register_row): Fix typo which caused double type to be
9566 used when attempting to unpack a float.
9568 2003-03-11 J. Brobecker <brobecker@gnat.com>
9570 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9572 2003-03-11 Andrew Cagney <cagney@redhat.com>
9574 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9575 frame. Problem found by Corinna Vinschen.
9577 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9579 * doublest.c (floatformat_from_length): Accept also
9580 the real size of 'long double' type.
9582 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9584 From Klee Dienes <kdienes@apple.com>:
9585 * breakpoint.c (bpstat_copy): Copy the command lines as well
9586 as the old value, to match what is freed in bpstat_clear.
9588 2003-03-10 David Carlton <carlton@math.stanford.edu>
9590 * minsyms.c (add_minsym_to_hash_table): Replace
9591 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9592 (compare_minimal_symbols, compact_minimal_symbols)
9593 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9594 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9595 of DEPRECATED_SYMBOL_MATCHES_NAME.
9596 (lookup_minimal_symbol_solib_trampoline): Ditto.
9598 2003-03-10 Andrew Cagney <cagney@redhat.com>
9600 * regcache.h (regcache_cooked_read_ftype): Define.
9601 (regcache_save, regcache_restore): Add a cooked_read parameter.
9602 * regcache.c (regcache_save, regcache_restore): Update.
9603 (do_cooked_read): New function.
9604 (regcache_cpy): Pass do_cooked_read to regcache_save and
9607 2003-03-10 Andrew Cagney <cagney@redhat.com>
9609 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9610 * gdbarch.h, gdbarch.c: Re-generate.
9611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9612 * x86-64-tdep.h: Update.
9613 * x86-64-tdep.c (x86_64_init_abi): Update.
9614 * v850-tdep.c (v850_gdbarch_init): Update.
9615 * sparc-tdep.c (sparc_gdbarch_init): Update.
9616 * sh-tdep.c (sh_gdbarch_init): Update.
9617 * s390-tdep.c (s390_gdbarch_init): Update.
9618 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9619 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9620 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9621 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9622 * mips-tdep.c (mips_gdbarch_init): Update.
9623 * mcore-tdep.c (mcore_gdbarch_init): Update.
9624 * m68k-tdep.c (m68k_gdbarch_init): Update.
9625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9626 * ia64-tdep.c (ia64_gdbarch_init): Update.
9627 * i386-tdep.c (i386_gdbarch_init): Update.
9628 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9629 * hppa-tdep.c (hppa_gdbarch_init): Update.
9630 * h8300-tdep.c (h8300_gdbarch_init): Update.
9631 * frv-tdep.c (frv_gdbarch_init): Update.
9632 * cris-tdep.c (cris_gdbarch_init): Update.
9633 * avr-tdep.c (avr_gdbarch_init): Update.
9634 * arm-tdep.c (arm_gdbarch_init): Update.
9635 * alpha-tdep.c (alpha_gdbarch_init): Update.
9636 * sh-tdep.c (sh_init_extra_frame_info): Update.
9637 (sh64_init_extra_frame_info): Update.
9638 * ns32knbsd-nat.c (frame_num_args): Update.
9639 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9640 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9641 (xstormy16_frame_chain_valid): Update.
9642 * vax-tdep.c (vax_saved_pc_after_call): Update.
9643 * v850-tdep.c (v850_frame_chain): Update.
9644 (v850_pop_frame): Update.
9645 (v850_init_extra_frame_info): Update.
9646 * sparc-tdep.c (setup_arbitrary_frame): Update.
9647 * ns32k-tdep.c (umax_frame_num_args): Update.
9648 * s390-tdep.c (s390_pop_frame_regular): Update.
9649 * mn10300-tdep.c (mn10300_frame_chain): Update.
9650 (mn10300_pop_frame_regular): Update.
9651 (mn10300_init_extra_frame_info): Update.
9652 * mips-tdep.c (mips_init_frame_pc_first): Update.
9653 (mips_frame_chain): Update.
9654 (mips_pop_frame): Update.
9655 * mcore-tdep.c (mcore_frame_chain): Update.
9656 (mcore_pop_frame): Update.
9657 (mcore_init_extra_frame_info): Update.
9658 * arch-utils.c (init_frame_pc_default): Update.
9659 * m68k-tdep.c (isi_frame_num_args): Update.
9660 (delta68_frame_num_args): Update.
9661 (news_frame_num_args): Update.
9662 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9663 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9664 (alpha_frame_chain): Update.
9665 (alpha_pop_frame): Update.
9666 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9667 (hppa_init_extra_frame_info): Update.
9668 (hppa_frame_chain): Update.
9669 (hppa_frame_chain_valid): Update.
9670 * cris-tdep.c (cris_init_extra_frame_info): Update.
9671 * avr-tdep.c (avr_init_extra_frame_info): Update.
9672 * arm-tdep.c (arm_frame_chain_valid): Update.
9673 (arm_init_extra_frame_info): Update.
9674 (arm_pop_frame): Update.
9675 * frame.c (frame_pc_unwind): Update.
9676 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9677 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9678 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9679 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9680 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9681 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9683 2003-03-10 Andrew Cagney <cagney@redhat.com>
9685 * gdbarch.sh (gdbarch_unwind_pc): New method.
9686 * gdbarch.h, gdbarch.c: Regenerate.
9687 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9688 but use read_pc and FRAME_SAVED_PC as fall backs.
9689 (frame_saved_regs_pc_unwind): Delete function.
9690 (trad_frame_unwinder): Update.
9691 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9692 (struct frame_unwind): Update.
9693 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9694 (dummy_frame_unwind): Update.
9695 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9696 (sentinel_frame_unwinder): Update.
9697 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9698 (d10v_frame_unwind): Update.
9699 (d10v_unwind_pc): New function.
9700 (d10v_gdbarch_init): Set unwind_pc.
9702 2003-03-10 Andrew Cagney <cagney@redhat.com>
9704 * gdbarch.h: Re-generate.
9706 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9708 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9711 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9713 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9715 2003-03-08 Andrew Cagney <cagney@redhat.com>
9717 * cli-out.c: Update copyright.
9718 (cli_out_data): Define typedef. Use instead of ui_out_data.
9720 2003-03-08 Andrew Cagney <cagney@redhat.com>
9722 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9725 2003-03-07 Andrew Cagney <cagney@redhat.com>
9727 * gdbarch.sh: Don't generate two macro definitions when an
9728 undefined macro taking no arguments.
9729 * gdbarch.h: Regenerate.
9731 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9733 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9734 (x86_64_unwind_dummy_id): New functions.
9735 (x86_64_init_abi): Register these two new functions.
9737 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9739 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9740 (x86_64_skip_prologue): Move prologue detection to
9742 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9744 2003-03-05 Andrew Cagney <cagney@redhat.com>
9746 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9747 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9748 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9749 to use unwind_dummy_id when a dummy frame.
9750 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9752 * gdbarch.h, gdbarch.c: Regneerate.
9754 2003-03-05 Andrew Cagney <cagney@redhat.com>
9756 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9757 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9758 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9761 2003-03-05 Andrew Cagney <cagney@redhat.com>
9763 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9764 (struct d10v_unwind_cache): Delete field "frameless". Replace
9765 "next_addr" with "sp_offset". Add "r11_offset".
9766 (d10v_frame_unwind_cache): Update.
9767 (prologue_find_regs): Update. When "mv r11, sp", save the
9768 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9769 RN was saved in r11_offset.
9771 2003-03-05 Andrew Cagney <cagney@redhat.com>
9773 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9774 cached PC value in the next frame.
9776 2003-03-05 Andrew Cagney <cagney@redhat.com>
9778 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9779 "id_unwind_cache" with "id".
9780 (frame_id_unwind): Delete declaration.
9781 * frame.c (frame_id_unwind): Delete function.
9782 (get_prev_frame): Call the frame id unwind method directly. Store
9783 the returned next frame's ID value in NEXT_FRAME. Note that there
9784 is a problem with the wrong unwind ID being called with the wrong
9787 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9789 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9791 2003-03-05 James Ingham <jingham@apple.com>
9792 Daniel Jacobowitz <drow@mvista.com>
9794 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9795 (auto_cp_abi): New variable.
9796 (current_cp_abi, num_cp_abis): Make static.
9797 (CP_ABI_MAX): Define.
9798 (cp_abis): Turn into an array.
9799 (value_virtual_fn_field): Fix formatting.
9800 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9802 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9803 (list_cp_abis, _initialize_cp_abi): New functions.
9804 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9805 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9806 switch_to_cp_abi. Update prototype for register_cp_abi.
9807 * Makefile.in (cp-abi.o): Update dependencies.
9808 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9809 instead of switch_to_cp_abi.
9810 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9812 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9814 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9816 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9818 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9819 * dwarf2loc.c: Include "regcache.h".
9820 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9822 * Makefile.in (dwarf2loc.o): Update dependencies.
9824 2003-03-04 Theodore A. Roth <troth@openavr.org>
9826 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9827 number of io registers reported by remote target is not a multiple of
9830 2003-03-04 David Carlton <carlton@math.stanford.edu>
9832 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9833 (lookup_symbol_aux_psymtabs): Update call to
9834 lookup_partial_symbol.
9835 (lookup_transparent_type, find_main_psymtab)
9836 (make_symbol_overload_list): Ditto.
9838 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9840 * MAINTAINERS (Write after approval): Update my email address.
9842 2003-03-03 Andrew Cagney <cagney@redhat.com>
9844 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9845 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9846 predicate. Replace MAX_REGISTER_RAW_SIZE.
9847 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9848 MAX_REGISTER_VIRTUAL_SIZE.
9849 * regcache.c (legacy_max_register_raw_size): New function.
9850 (legacy_max_register_virtual_size): New function.
9851 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9852 (MAX_REGISTER_RAW_SIZE): Define.
9853 (legacy_max_register_raw_size): Declare.
9854 (legacy_max_register_virtual_size): Declare.
9855 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9856 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9857 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9858 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9859 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9860 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9861 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9862 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9863 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9865 * vax-tdep.c (vax_gdbarch_init): Update.
9866 * v850-tdep.c (v850_gdbarch_init): Update.
9867 * sparc-tdep.c (sparc_gdbarch_init): Update.
9868 * sh-tdep.c (sh_gdbarch_init): Update.
9869 * s390-tdep.c (s390_gdbarch_init): Update.
9870 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9871 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9872 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9873 * mips-tdep.c (mips_gdbarch_init): Update.
9874 * mcore-tdep.c (mcore_gdbarch_init): Update.
9875 * m68k-tdep.c (m68k_gdbarch_init): Update.
9876 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9877 * ia64-tdep.c (ia64_gdbarch_init): Update.
9878 * i386-tdep.c (i386_gdbarch_init): Update.
9879 * hppa-tdep.c (hppa_gdbarch_init): Update.
9880 * h8300-tdep.c (h8300_gdbarch_init): Update.
9881 * frv-tdep.c (frv_gdbarch_init): Update.
9882 * cris-tdep.c (cris_gdbarch_init): Update.
9883 * avr-tdep.c (avr_gdbarch_init): Update.
9884 * arm-tdep.c (arm_gdbarch_init): Update.
9885 * alpha-tdep.c (alpha_gdbarch_init): Update.
9886 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9887 max_register_raw_size or max_register_virtual_size.
9889 2003-03-03 David Carlton <carlton@math.stanford.edu>
9891 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9892 SYMBOL_MATCHES_NAME, add comment.
9893 (SYMBOL_MATCHES_NATURAL_NAME): New.
9894 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9895 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9896 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9897 * symtab.c (lookup_partial_symbol): Use
9898 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9900 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9901 SYMBOL_MATCHES_NAME.
9904 2003-03-03 David Carlton <carlton@math.stanford.edu>
9906 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9907 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9908 by regexp matching against SYMBOL_NATURAL_NAME.
9910 2003-03-03 David Carlton <carlton@math.stanford.edu>
9912 * linespec.c (find_method): Extract code into collect_methods.
9913 (collect_methods): New.
9915 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9917 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9920 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9921 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9923 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9925 * arch-utils.c (generic_register_byte): Fix to use the loop index
9926 and not regnum when summing the size of all registers up to regnum.
9928 2003-03-01 Andrew Cagney <cagney@redhat.com>
9930 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9931 FRAME_INIT_SAVED_REGS.
9932 * gdbarch.h, gdbarch.c: Regenerate.
9933 * stack.c (frame_info): Update.
9934 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9935 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9936 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9937 * ns32k-tdep.c (ns32k_pop_frame): Update.
9938 * mips-tdep.c (mips_pop_frame): Update.
9939 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9940 * ia64-tdep.c (ia64_frame_chain): Update.
9941 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9942 (ia64_frameless_function_invocation): Update.
9943 (ia64_init_extra_frame_info): Update.
9944 (ia64_pop_frame_regular): Update.
9945 * frame.h (struct frame_info): Update comment.
9946 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9947 * frame.c (frame_saved_regs_register_unwind): Update.
9948 (frame_saved_regs_register_unwind): Update.
9949 (deprecated_generic_get_saved_register): Update.
9950 * cris-tdep.c: Update comment.
9951 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9954 * x86-64-tdep.c (x86_64_init_abi): Update.
9955 * vax-tdep.c (vax_gdbarch_init): Update.
9956 * v850-tdep.c (v850_gdbarch_init): Update.
9957 * sparc-tdep.c (sparc_gdbarch_init): Update.
9958 * sh-tdep.c (sh_gdbarch_init): Update.
9959 * s390-tdep.c (s390_gdbarch_init): Update.
9960 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9961 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9962 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9963 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9964 * mips-tdep.c (mips_gdbarch_init): Update.
9965 * mcore-tdep.c (mcore_gdbarch_init): Update.
9966 * m68k-tdep.c (m68k_gdbarch_init): Update.
9967 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9968 * ia64-tdep.c (ia64_gdbarch_init): Update.
9969 * i386-tdep.c (i386_gdbarch_init): Update.
9970 * frv-tdep.c (frv_gdbarch_init): Update.
9971 * avr-tdep.c (avr_gdbarch_init): Update.
9972 * arm-tdep.c (arm_gdbarch_init): Update.
9973 * alpha-tdep.c (alpha_gdbarch_init): Update.
9975 2003-03-01 Andrew Cagney <cagney@redhat.com>
9977 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9978 option enum and switch. When no windows, set the interpreter to
9981 2003-03-01 Andrew Cagney <cagney@redhat.com>
9983 * main.c (captured_main): Replace magic option characters with an
9986 2003-03-01 Andrew Cagney <cagney@redhat.com>
9988 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9989 INIT_EXTRA_FRAME_INFO.
9990 * gdbarch.h, gdbarch.c: Regenerate.
9991 * arm-tdep.c: Update comments.
9992 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9993 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9994 * frame.h, avr-tdep.c: Ditto.
9995 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9996 (create_new_frame, legacy_get_prev_frame): Ditto.
9997 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9998 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10000 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10001 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10002 * v850-tdep.c (v850_gdbarch_init): Ditto.
10003 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10004 * sh-tdep.c (sh_gdbarch_init): Ditto.
10005 * s390-tdep.c (s390_gdbarch_init): Ditto.
10006 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10007 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10008 * mips-tdep.c (mips_gdbarch_init): Ditto.
10009 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10010 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10011 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10012 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10013 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10014 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10015 * frv-tdep.c (frv_gdbarch_init): Ditto.
10016 * cris-tdep.c (cris_gdbarch_init): Ditto.
10017 * avr-tdep.c (avr_gdbarch_init): Ditto.
10018 * arm-tdep.c (arm_gdbarch_init): Ditto.
10019 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10020 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10022 2003-03-01 Andrew Cagney <cagney@redhat.com>
10024 * gdbarch.sh (register_type): New function with predicate.
10025 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10026 * gdbarch.h, gdbarch.c: Re-generate.
10027 * arch-utils.c (generic_register_byte): Use generic_register_size.
10028 (generic_register_size): When available, use
10029 gdbarch_register_type.
10030 * regcache.c (init_regcache_descr): When available, initialize the
10031 register type array using gdbarch_register_type. If the
10032 architecture supplies gdbarch_register_type, do not use the legacy
10034 * d10v-tdep.c (d10v_register_type): Replace
10035 d10v_register_virtual_type.
10036 (d10v_gdbarch_init): Set register_type instead of
10037 register_virtual_type.
10039 2003-03-01 Andrew Cagney <cagney@redhat.com>
10041 * Makefile.in (ax-gdb.o): Update dependencies.
10042 * ax-gdb.c: Include "regcache.h".
10043 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10044 * findvar.c (value_of_register): Ditto.
10045 * infcmd.c (default_print_registers_info): Ditto.
10047 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10049 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10050 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10052 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10054 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10057 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10059 * Makefile.in (dwarf2loc.o): Update dependencies.
10060 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10061 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10062 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10063 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10064 (locexpr_tracepoint_var_ref): New function.
10065 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10067 2003-02-28 Andrew Cagney <cagney@redhat.com>
10069 * regcache.c (register_size): New function.
10070 * regcache.h (register_size): Declare
10071 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10072 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10074 2003-02-28 David Carlton <carlton@math.stanford.edu>
10076 * linespec.c (decode_compound): Extract code into find_method.
10077 (find_method): New.
10079 2003-02-28 J. Brobecker <brobecker@gnat.com>
10081 * Makefile.in: Add rules to build and link in observer.o.
10083 2003-02-27 J. Brobecker <brobecker@gnat.com>
10085 * observer.c: Minor comments edits.
10087 2003-02-27 J. Brobecker <brobecker@gnat.com>
10089 * observer.h, observer.c: New file.
10091 2003-02-27 Andrew Cagney <cagney@redhat.com>
10093 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10095 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10097 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10098 (M6812_OP_STS_EXT): Likewise.
10099 (m6811_prologue): Use the above to recognize prologue.
10100 (m6812_prologue): Likewise.
10102 2003-02-27 David Carlton <carlton@math.stanford.edu>
10104 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10106 (compare_psymbols): Ditto.
10107 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10109 2003-02-27 Michael Snyder <msnyder@redhat.com>
10111 * f-lang.c (build_fortran_types): New function.
10112 (_initialize_f_language): Gdbarch-register built-in fortran types.
10113 * doublest.c (extract_floating): Fix warning text.
10115 2003-02-27 Andrew Cagney <cagney@redhat.com>
10117 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10118 predicate. Replaces PUSH_DUMMY_FRAME.
10119 * gdbarch.h, gdbarch.c: Regnerate.
10120 * valops.c (hand_function_call): Update. Call
10121 generic_push_dummy_frame directly.
10122 * vax-tdep.c (vax_gdbarch_init): Update.
10123 * sparc-tdep.c (sparc_gdbarch_init): Update.
10124 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10125 * m68k-tdep.c (m68k_gdbarch_init): Update.
10126 * hppa-tdep.c (hppa_gdbarch_init): Update.
10127 * alpha-tdep.c (alpha_gdbarch_init): Update.
10128 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10129 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10130 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10132 push_dummy_frame to generic_push_dummy_frame.
10133 * v850-tdep.c (v850_gdbarch_init): Ditto.
10134 * sh-tdep.c (sh_gdbarch_init): Ditto.
10135 * s390-tdep.c (s390_gdbarch_init): Ditto.
10136 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10137 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10138 * mips-tdep.c (mips_gdbarch_init): Ditto.
10139 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10141 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10142 * i386-tdep.c (i386_gdbarch_init): Ditto.
10143 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10144 * frv-tdep.c (frv_gdbarch_init): Ditto.
10145 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10146 * cris-tdep.c (cris_gdbarch_init): Ditto.
10147 * avr-tdep.c (avr_gdbarch_init): Ditto.
10148 * arm-tdep.c (arm_gdbarch_init): Ditto.
10150 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10152 * mips-tdep.c (show_mips_abi): New function.
10153 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10154 command ``show mips abi''.
10156 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10158 From Elena Zannoni <ezannoni@redhat.com>
10159 * dbxread.c (process_one_symbol): Only record line 0 if one or
10160 more sline entries have been seen for the function.
10162 2003-02-26 Michael Chastain <mec@shout.net>
10164 * configure: Regenerate with autoconf 000227.
10166 2003-02-26 Michael Chastain <mec@shout.net>
10168 Close PR build/660.
10169 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10170 for old libc5/glibc.
10171 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10173 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10175 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10176 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10178 2003-02-26 Michael Chastain <mec@shout.net>
10180 * configure.in: New variable HAVE_UINTPTR_T.
10181 * configure, config.in: Regenerated.
10183 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10186 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10188 2003-02-25 Andrew Cagney <cagney@redhat.com>
10190 * frame.c (get_prev_frame): Add comment on check for
10191 inside_entry_func. Only check for inside_entry_file when not a
10192 dummy and not a sentinel. Check that the new frame is not inner
10195 2003-02-25 Andrew Cagney <cagney@redhat.com>
10197 * frame.c (frame_debug): New variable.
10198 (_initialize_frame): Add "set/show debug frame" command.
10199 (get_prev_frame): When frame_debug, print reason why unwind
10202 2003-02-25 Michael Chastain <mec@shout.net>
10204 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10205 to avoid uintptr_t definition problems.
10207 2003-02-25 David Carlton <carlton@math.stanford.edu>
10209 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10210 (SYMBOL_LINKAGE_NAME): Ditto.
10211 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10212 SYMBOL_LINKAGE_NAME.
10213 (struct general_symbol_info): Expand comment.
10214 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10215 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10216 (SYMBOL_MATCHES_REGEXP): Ditto.
10217 * symtab.c (symbol_natural_name): New function.
10218 * objfiles.h: Replace all uses of SYMBOL_NAME by
10219 DEPRECATED_SYMBOL_NAME.
10220 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10221 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10222 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10223 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10224 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10225 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10226 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10227 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10228 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10229 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10230 * ada-exp.y: Ditto.
10231 * ada-exp.y: Update copyright.
10232 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10233 * cp-valprint.c: Ditto.
10235 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10237 * infptrace.c (detach): Do not flag error if ptrace detach fails
10238 and errno is set to ESRCH.
10240 2003-02-24 Andrew Cagney <cagney@redhat.com>
10242 * infptrace.c (udot_info): Change type of udot_off to long. Use
10243 paddr when printing udot_off's value.
10245 2003-02-24 David Carlton <carlton@math.stanford.edu>
10247 * symtab.c (make_symbol_overload_list): Only read in partial
10248 symtabs containing a matching partial symbol.
10250 2003-02-24 David Carlton <carlton@math.stanford.edu>
10252 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10253 do the comparison, not strcmp.
10254 * symfile.c (compare_psymbols): Ditto.
10255 * defs.h: Declare strcmp_iw_ordered.
10256 * utils.c (strcmp_iw_ordered): New function.
10258 2003-02-24 Jim Blandy <jimb@redhat.com>
10260 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10261 support, shared libs): Remove my name from here, to better reflect
10264 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10266 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10267 (target_ops): Add to_have_continuable_watchpoint.
10268 * target.c (update_current_target): Add INHERIT line for
10269 to_have_continuable_watchpoint.
10270 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10271 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10272 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10273 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10275 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10277 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10280 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10282 * solib.c (solib_open): Call target defined search function after
10283 failing with solib-search-path.
10284 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10285 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10287 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10289 * MAINTAINERS: Add myself to Write After section.
10291 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10293 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10295 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10297 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10298 (m68hc11_add_reggroups): New function.
10299 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10300 (m68hc11_gdbarch_init): Install the reggroups.
10301 (_initialize_m68hc11_tdep): Initialize them.
10303 2003-02-21 James E Wilson <wilson@tuliptree.org>
10305 * MAINTAINERS: Update my email address.
10307 2003-02-21 David Carlton <carlton@math.stanford.edu>
10309 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10311 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10313 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10314 * symtab.h: Add opaque declarations of struct axs_value and
10316 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10317 (struct location_funcs): New type.
10318 (struct symbol): Add "loc" to aux_value.
10319 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10320 * dwarf2read.c: Include "dwarf2expr.h".
10321 (dwarf2_symbol_mark_computed): New function.
10322 (read_func_scope): Use it.
10323 (var_decode_location): New function.
10324 (new_symbol): Use it.
10325 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10327 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10328 (dwarf2expr_h, dwarf2loc_h): New variables.
10329 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10330 (dwarf2expr.o, dwarf2loc.o): New rules.
10331 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10332 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10334 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10335 * m2-exp.y (yylex): Likewise.
10336 * printcmd.c (address_info, print_frame_args): Likewise.
10337 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10338 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10339 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10340 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10341 * symtab.c (lookup_block_symbol): Likewise.
10343 2003-02-20 Adam Fedor <fedor@gnu.org>
10345 * symtab.h: Remove objc_specific struct
10346 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10347 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10348 Have language_objc use cplus_specific struct.
10350 2003-02-20 Tom Tromey <tromey@redhat.com>
10352 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10353 TYPE_NAME, when printing a String value. PR java/1075.
10355 2003-02-20 Adam Fedor <fedor@gnu.org>
10357 * objc-lang.h (find_methods): Remove declaration.
10358 * objc-lang.c (find_methods): Make static.
10360 2003-02-20 Christopher Faylor <cgf@redhat.com>
10362 * win32-nat.c (get_image_name): Check return value from
10364 (child_xfer_memory): Ditto.
10366 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10368 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10369 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10370 '${exec_prefix}' (in addition to the expansion thereof) as
10372 * configure: Rebuilt.
10374 2003-02-20 David Carlton <carlton@math.stanford.edu>
10376 * symtab.c (search_symbols): Revert the search_symbols part of my
10377 2002-12-23 patch. Add comment.
10379 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10381 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10382 * dbxread.c (elfstab_build_psymtabs): Don't call
10383 install_minimal_symbols.
10384 (stabsect_build_psymtabs): Likewise.
10385 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10387 * somread.c (som_symfile_read): Call install_minimal_symbols
10388 and do_cleanups earlier.
10389 * nlmread.c (nlm_symfile_read): Likewise.
10390 * mdebugread.c (elfmdebug_build_psymtabs): Call
10391 install_minimal_symbols and make appropriate cleanups.
10393 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10395 * solib.c (reload_shared_libraries): New function.
10396 (_initialize_solib): Add callbacks for ``set solib-search-path''
10397 and ``set solib-absolute-prefix''.
10399 2003-02-20 David Carlton <carlton@math.stanford.edu>
10401 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10403 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10404 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10405 * ada-typeprint.c (ada_typedef_print): Ditto.
10406 * ax-gdb.c (gen_var_ref): Ditto.
10407 * breakpoint.c (print_one_breakpoint): Ditto.
10408 * buildsym.c (finish_block): Ditto.
10409 * c-valprint.c (c_val_print): Ditto.
10410 * expprint.c (print_subexp): Ditto.
10411 * findvar.c (locate_var_value): Ditto.
10412 * infcmd.c (jump_command): Ditto.
10413 * linespec.c (decode_line_2, decode_compound): Ditto.
10414 * maint.c (maintenance_translate_address): Ditto.
10415 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10416 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10418 * p-valprint.c (pascal_val_print): Ditto.
10419 * stabsread.c (define_symbol): Ditto.
10420 * stack.c (print_frame, frame_info, print_block_frame_locals)
10421 (print_frame_arg_vars, return_command): Ditto.
10422 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10423 * symmisc.c (print_symbol): Ditto.
10424 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10425 (compare_search_syms, print_symbol_info, print_msymbol_info)
10426 (rbreak_command): Ditto.
10427 * tracepoint.c (tracepoints_info): Ditto.
10428 * typeprint.c (typedef_print): Ditto.
10429 * valops.c (value_of_variable, hand_function_call): Ditto.
10430 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10431 * ada-typeprint.c: Update Copyright.
10432 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10433 * tracepoint.c, cli/cli-cmds.c: Ditto.
10435 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10437 * frame.c (generic_unwind_get_saved_register): Make non-static.
10438 * frame.h (generic_unwind_get_saved_register): Declare.
10439 * mips-tdep.c (read_next_frame_reg): Fetch register from
10440 current regcache when frame is NULL.
10441 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10443 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10444 instead of frame_register_unwind().
10446 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10448 * remote-sim.c (gdbsim_insert_breakpoint)
10449 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10452 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10454 * remote.c (_initialize_remote): Add commands "set/show remote
10455 hardware-watchpoint-limit" and "set/show remote
10456 hardware-breakpoint-limit".
10457 (remote_hw_watchpoint_limit): Initialize to -1.
10458 (remote_hw_breakpoint_limit): Ditto.
10459 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10461 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10463 * coff-pe-read.c: New file - support reading of minimal symbols from a
10464 portable executable using the export table.
10465 * coff-pe-read.h: New file.
10466 * coffread.c: Include coff-pe-read.h.
10467 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10468 debugging symbols found.
10469 * Makefile.in (SFILES): Add coff-pe-read.o.
10470 (coff_pe_read_h): Define.
10471 (COMMON_OBS): Add coff-pe-read.o.
10472 (coffread.o): Add coff_pe_read_h dependency.
10473 (coff-pe-read.o): New target.
10475 2003-02-19 David Carlton <carlton@math.stanford.edu>
10477 * Makefile.in (SFILES): Add block.c.
10479 (COMMON_OBS): Add block.o.
10481 (x86-64-tdep.o): Add $(block_h).
10482 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10483 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10484 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10485 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10486 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10487 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10488 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10489 * value.h: Add opaque declaration for struct block.
10490 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10491 * ada-lang.h: Ditto.
10492 * x86-64-tdep.c: #include "block.h"
10493 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10494 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10495 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10496 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10497 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10498 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10499 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10500 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10501 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10502 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10503 * symtab.c (block_function): Ditto.
10504 (contained_in): Ditto.
10505 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10506 block.h. Add opaque declaration for struct block.
10507 * symtab.h: Move block_function and contained_in declarations to
10508 block.h. Add opaque declarations for struct block, struct
10510 (struct block): Move to block.h.
10511 (struct blockvector): Ditto.
10512 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10513 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10514 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10515 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10516 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10518 * block.c: New file.
10519 * block.h: New file.
10521 2003-02-19 Theodore A. Roth <troth@openavr.org>
10523 * avr-tdep.c (avr_extract_return_value): Remove function.
10524 (avr_store_return_value): Remove function.
10525 (avr_extract_struct_value_address): Remove function.
10526 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10528 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10530 * rs6000-tdep.c: Include "gdb_assert.h".
10531 (registers_e500): Add "acc" and "spefscr".
10532 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10533 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10534 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10536 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10538 2003-02-18 Keith Seitz <keiths@redhat.com>
10540 * Makefile.in: Add gdbtk-interps.c.
10542 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10544 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10545 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10547 2003-02-18 Andrew Cagney <cagney@redhat.com>
10549 * symtab.h (struct objfile): Add opaque declaration.
10551 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10553 From Jim Ingham <jingham@apple.com>:
10554 * dbxread.c (process_one_symbol): Use last_function_start rather
10555 than function_start_offset to find the real beginning of the
10556 current function. The latter is just the text section offset on
10557 some systems, the former is always the real function start.
10559 2003-02-17 Andrew Cagney <cagney@redhat.com>
10561 * configure.in: Revert ${target} != ${host}.
10563 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10565 * configure.in (Makefile): Use the test ${target} != ${host},
10566 instead of the absence of the "nm.h" file, to determine of the
10567 configuration non-native.
10568 * configure: Regenerate.
10570 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10572 From Brian Ford <ford@vss.fsi.com>
10574 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10575 conditionalize tui_active test.
10576 (lookup_cmd_1): Ditto.
10578 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10580 * configure.in: Add check for _etext.
10581 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10583 * config.in, configure: regenerated.
10585 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10587 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10589 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10591 * main.c (tui_version): Delete variable.
10592 (captured_main): When --tui, set interpreter_p to "tui" instead of
10593 enabling tui_version.
10594 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10596 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10597 * cli/cli-cmds.c (disassemble_command): Ditto.
10598 * defs.h (tui_version): Delete declaration.
10599 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10600 (tui-interp.o): Add rules.
10601 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10603 2003-02-14 Christopher Faylor <cgf@redhat.com>
10605 * win32-nat.c (register_loaded_dll): Correctly set address range for
10608 2003-02-12 Jason Molenda (jmolenda@apple.com)
10610 * symmisc.c (print_objfile_statistics): Include information about
10611 the number of psymtabs and symtabs in each object file.
10613 2003-02-13 Keith R Seitz <keiths@redhat.com>
10615 * main.h (struct captured_main_args): Add interpreter_p.
10616 * main.c (captured_main): Initialize interpreter_p from context.
10617 * gdb.c (main): Set interpreter_p argument.
10618 * Makefile.in (gdb.o): Add dependency for interps.h.
10620 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10622 * event-top.c (cli_command_loop): Delete declaration.
10623 (_initialize_event_loop): Delete function setting event_loop_hook.
10624 * event-top.h (cli_command_loop): Declare. Update copyright.
10625 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10626 * interps.c (current_interp_command_loop): When event_loop_p, call
10629 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10631 * interps.h (interp_command_loop_ftype): Change return type to
10634 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10636 * x86-64-tdep.c (x86_64_extract_return_value)
10637 (x86_64_store_return_value): Use regcache instead of regbuf.
10638 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10639 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10641 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10643 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10644 * aclocal.m4: Regenerate.
10645 * configure: Regenerate.
10647 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10648 TCL_LD_SEARCH_FLAGS.
10650 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10652 * dwarf2cfi.c: Reindented.
10654 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10656 * interps.c (clear_interpreter_hooks): Convert function definition
10659 2003-02-07 David Carlton <carlton@math.stanford.edu>
10661 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10663 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10665 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10666 (struct type): ...to here.
10667 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10669 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10670 (replace_type): Set length on all type variants for a given type.
10672 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10674 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10676 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10678 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10680 * Makefile.in (symm-nat.o): Update dependencies.
10681 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10682 (lynx-nat.o, ia64-linux-nat.): Ditto.
10683 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10684 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10685 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10687 * Makefile.in (inflow_h): Define.
10688 (procfs.o, inflow.o, procfs.o): Update dependencies.
10689 * inftarg.c (child_stop): Delete extern declaration of
10690 inferior_process_group. Include "inflow.h".
10691 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10692 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10693 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10694 (our_process_group, inferior_process_group): Extern declarations.
10696 * procfs.c: Include "gdb_assert.h".
10698 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10699 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10700 * jv-typeprint.c (java_type_print_base): Ditto.
10701 * typeprint.c (typedef_print): Eliminate STREQ.
10702 * cli/cli-script.c (define_command, define_command): Ditto.
10703 * main.c (captured_main): Ditto.
10704 * values.c (lookup_internalvar): Ditto.
10705 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10706 within `if' conditional.
10707 * linespec.c (decode_line_2): Ditto.
10708 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10709 (bfd_openw_with_cleanup): Ditto.
10711 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10713 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10714 legacy_extract_return_value and store_return_value to
10715 legacy_return_value.
10717 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10719 * win32-nat.c (get_relocated_section_addrs): New function. Find
10720 section load addresses for symbol handling in relocated DLLs.
10721 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10723 2003-02-05 Fred Fish <fnf@intrinsity.com>
10725 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10727 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10729 (angel_RDI_info): Ditto.
10730 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10732 (threads_continue_all_with_signals): Ditto.
10734 2003-02-05 Jim Ingham <jingham@apple.com>
10735 Keith Seitz <keiths@redhat.com>
10736 Elena Zannoni <ezannoni@redhat.com>
10737 Andrew Cagney <ac131313@redhat.com>
10739 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10740 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10741 (SUBDIR_MI_OBS): Add "mi-interp.o".
10742 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10743 (SFILES): Add "interps.c".
10744 (COMMON_OBS): Add "interps.o".
10745 (interps_h, mi_main_h): Define.
10746 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10747 (mi-main.o, main.o, event-top.o): Update dependencies.
10748 * cli/cli-interp.c: New file.
10749 * interps.h, interps.c: New files.
10750 * top.c: (gdb_init): Don't install the default interpreter, handed
10752 * main.c: Include "interps.h".
10753 (interpreter_p): Note that it should malloc'ed.
10754 (captured_command_loop): Call current_interp_command_loop.
10755 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10756 xfree and xstrdup when updating interpreter_p. Install the
10757 default interpreter. Add hack to stop mi1's copyright notice
10759 * event-top.h (gdb_setup_readline): Declare.
10760 (gdb_disable_readline): Declare.
10761 * event-top.c: Include "interps.h".
10762 (display_gdb_prompt): Call current_interp_display_prompt_p.
10763 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10764 gdb_stdlog, and gdb_stdtarg.
10765 (_initialize_event_loop): Don't call gdb_setup_readline.
10766 * cli-out.c (cli_out_set_stream): New function.
10767 * cli-out.h (cli_out_set_stream): Declare.
10769 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10771 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10772 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10773 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10774 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10775 config/i386/i386v42mp.mt: Removed.
10777 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10779 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10782 2003-02-05 Michael Chastain <mec@shout.net>
10784 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10785 2.12.1 and earlier versions.
10787 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10789 Remove orphaned hosts, targets and files.
10790 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10791 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10792 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10793 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10794 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10795 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10796 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10797 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10798 * config/sparc/tm-sp64sim.h: Delete.
10799 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10801 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10802 mips*-dec-mach3* targets.
10804 2003-02-04 Michael Chastain <mec@shout.net>
10806 * NEWS: Fix typo: sepcifying -> specifying.
10808 2003-02-04 Michael Chastain <mec@shout.net>
10810 * dwarfread.c: Add documentation on the state of dwarf-1,
10811 looking towards obsoletion.
10813 2003-02-03 Michael Chastain <mec@shout.net>
10815 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10816 gdb/testsuite/gdb.c++/pr-1023.exp.
10818 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10820 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10821 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10823 * utils.c (init_page_info): Delete reference to MPW in comments.
10824 * main.c (captured_main): Delete #ifdef MPW.
10826 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10828 * NEWS: Note that the m32r-*-elf* is obsolete.
10829 * monitor.c (monitor_expect): Obsolete reference to m32r.
10830 * configure.tgt: Mark m32r-*-elf* as obsolete.
10831 * MAINTAINERS: Mark m32k as obsolete.
10832 * m32r-rom.c: Obsolete file.
10833 * config/m32r/m32r.mt: Obsolete file.
10834 * config/m32r/tm-m32r.h: Obsolete file.
10835 * m32r-stub.c: Obsolete file.
10836 * m32r-tdep.c: Obsolete file.
10838 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10840 * NEWS: Mention that the z8k-zilog-none is obsolete.
10841 * MAINTAINERS: Mark z8k as obsolete.
10842 * configure.tgt: Obsolete the z8k-*-coff* target.
10843 * config/z8k/z8k.mt: Obsolete file.
10844 * config/z8k/tm-z8k.h: Obsolete file.
10845 * z8k-tdep.c: Obsolete file.
10847 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10849 * NEWS: Mention that the mn10200-elf is obsolete.
10850 * configure.tgt: Obsolete mn10200-*-* target.
10851 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10852 mention that the mn10200 is obsolete.
10853 * breakpoint.h: Ditto.
10854 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10855 * config/mn10200/mn10200.mt: Obsolete file.
10856 * config/mn10200/tm-mn10200.h: Obsolete file.
10857 * mn10200-tdep.c: Obsolete file.
10859 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10861 * MAINTAINERS: Mark h8500 as obsolete.
10862 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10863 * findvar.c (value_from_register): Ditto.
10864 * h8500-tdep.c: Mark file as obsolete.
10865 * config/h8500/h8500.mt: Ditto.
10866 * config/h8500/tm-h8500.h: Ditto.
10867 * NEWS: Mention that h8500 is obsolete.
10869 2003-02-04 David Carlton <carlton@math.stanford.edu>
10871 * objfiles.c (allocate_objfile): Always set name. Add comment at
10873 * jv-lang.c (get_dynamics_objfile): Add comment.
10875 2003-02-04 David Carlton <carlton@math.stanford.edu>
10877 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10878 * printcmd.c (build_address_symbolic): Replace uses of
10879 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10880 SYMBOL_NAME, and asm_demangle.
10883 2003-02-04 David Carlton <carlton@math.stanford.edu>
10885 * linespec.c (decode_compound): Extract code into
10887 (lookup_prefix_sym): New function.
10889 2003-02-04 David Carlton <carlton@math.stanford.edu>
10891 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10892 FLOAT_COERCION_BADNESS.
10893 * gdbtypes.c (rank_one_type): Replace all uses of
10894 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10896 2003-02-04 Jim Blandy <jimb@redhat.com>
10898 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10899 section, let dwarf_macinfo_section point to it, not
10902 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10904 Pointed out by Anton Blanchard <anton@samba.org>.
10905 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10906 (ppc_linux_at_sigtramp_return_path): Use it.
10908 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10910 * defs.h (streq): Add prototype.
10911 * utils.c (streq): New function.
10913 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10914 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10915 * mdebugread.c (new_symbol): Likewise.
10916 * stabsread.c (define_symbol): Likewise.
10917 * coffread.c (process_coff_symbol): Likewise.
10918 * dwarfread.c (new_symbol): Likewise.
10920 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10921 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10923 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10924 SYMBOL_INIT_DEMANGLED_NAME.
10925 * objfiles.c: Include "hashtab.h".
10926 (allocate_objfile): Call htab_set_functions_ex for the
10927 demangled_names_hash.
10928 (free_objfile): Call htab_delete for the demangled_names_hash.
10929 * objfiles.h (struct htab): Add declaration.
10930 (struct objfile): Add demangled_names_hash.
10931 * symfile.c: Include "hashtab.h".
10932 (reread_symbols): Call htab_delete for the demangled_names_hash.
10933 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10934 SYMBOL_NAME in the bcache.
10935 * symtab.c: Include "hashtab.h". Update comments.
10936 (create_demangled_names_hash, symbol_set_names): New functions.
10937 (symbol_find_demangled_name): New function, broken out from
10938 symbol_init_demangled_names.
10939 (symbol_init_demangled_names): Use it.
10940 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10941 (SYMBOL_SET_NAMES): New macro.
10942 (symbol_set_names): Add prototype.
10944 2003-02-03 Jim Blandy <jimb@redhat.com>
10946 Use a single, consistent representation for an empty minimal
10947 symbol table in an objfile.
10948 * objfiles.c (terminate_minimal_symbol_table): New function.
10949 (allocate_objfile): Call it.
10950 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10951 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10953 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10954 objfile has minimal symbols, compare minimal_symbol_count to zero,
10955 instead of comparing msymbols with NULL.
10956 * objfiles.c (have_minimal_symbols): Same.
10957 * solib-sunos.c (solib_add_common_symbols): Call
10958 terminate_minimal_symbol_table.
10959 * symfile.c (reread_symbols): Same.
10961 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10963 * s390-tdep.c (s390_address_class_type_flags)
10964 (s390_address_class_type_flags_to_name)
10965 (s390_address_class_name_to_type_flags): New functions.
10966 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10967 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10969 2003-02-03 Michael Snyder <msnyder@redhat.com>
10971 * arm-tdep.c: Fix spell-o in comment.
10973 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10975 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10976 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10977 error messages to contain BFD filename.
10979 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10981 Fix PR gdb/742 gdb/743 gdb/877
10982 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10983 (do_mixed_source_and_assembly): Use
10984 make_cleanup_ui_out_tuple_begin_end and
10985 make_cleanup_ui_out_tuple_begin_end.
10986 (do_mixed_source_and_assembly): Ditto.
10987 * thread.c (do_captured_list_thread_ids): Ditto.
10988 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10989 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10990 ui_out_tuple_end): Delete prototypes.
10991 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10992 ui_out_list_end, ui_out_tuple_end): Delete.
10994 From Kevin Buettner <kevinb@redhat.com>:
10995 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10996 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10997 (do_cleanup_table_end): New functions.
10998 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10999 Use cleanups to invoke_ui_out_tuple_end().
11000 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11001 * cli/cli-setshow.c (cmd_show_list): Use
11002 make_cleanup_ui_out_tuple_begin_end.
11004 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11006 * frame.c (frame_unwind_register): New function.
11007 (frame_unwind_unsigned_register): Use.
11008 (frame_unwind_signed_register): Use.
11009 (frame_read_register): New function.
11010 * frame.h (frame_unwind_register): Declare.
11011 (frame_read_register): Declare.
11013 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11014 and frame_unwind_register instead of read_memory, write_register
11015 and deprecated_write_register_bytes.
11017 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11019 * frame.h: Note that namelen can be negative.
11020 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11023 * NEWS: Mention that the d10v's `regs' command is deprecated.
11024 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11025 (d10v_print_registers_info): New function.
11026 (show_regs): Call d10v_print_registers_info.
11027 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11029 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11031 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11032 lost in the previous patch.
11034 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11036 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11037 * stack.c (print_frame_info_base): Output complete FRAME tuple
11038 for synthesized frames.
11040 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11042 * mips-nat.c (zerobuf): Delete.
11043 (fetch_inferior_registers): Alloc local zerobuf.
11044 (fetch_core_registers): Alloc local zerobuf.
11045 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11046 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11047 * thread-db.c (thread_db_store_registers): Ditto.
11048 * sh-tdep.c (sh_do_register): Ditto.
11049 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11050 * remote-sim.c (gdbsim_store_register): Ditto.
11051 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11052 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11053 * monitor.c (monitor_supply_register): Ditto.
11054 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11055 * mips-nat.c (fetch_inferior_registers): Ditto.
11056 * m68klinux-nat.c (fetch_register): Ditto.
11057 * lynx-nat.c (fetch_inferior_registers): Ditto.
11058 (fetch_inferior_registers): Ditto.
11059 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11060 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11061 (hpux_thread_store_registers): Ditto.
11062 * hppah-nat.c (fetch_register): Ditto.
11063 * hppab-nat.c (fetch_register): Ditto.
11064 * hppa-tdep.c (pa_register_look_aside): Ditto.
11065 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11066 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11068 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11070 * gdbarch.sh: Explictly specify all method levels. When a
11071 variable with an empty level, provide a non-multi-arch default.
11072 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11073 * gdbarch.h: Re-generate.
11074 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11075 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11077 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11079 * defs.h (host_pointer_to_address): Delete declaration.
11080 (address_to_host_pointer): Delete declaration.
11081 * utils.c (host_pointer_to_address): Delete function.
11082 (address_to_host_pointer): Delete function.
11083 * procfs.c (procfs_address_to_host_pointer): New function.
11084 * procfs.c (proc_set_watchpoint): Use.
11085 (procfs_can_use_hw_breakpoint): Update comments.
11086 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11087 (som_solib_add): Use.
11088 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11089 * hppa-tdep.c (unwind_command): Use.
11091 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11093 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11096 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11097 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11098 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11099 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11100 (define_symbol): Update.
11101 * symfile.c (generic_load): Remove references to nindy.
11102 * symtab.c: Remove references to nindy.
11104 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11106 * infcmd.c (print_float_info): Delete code conditional on
11108 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11109 * config/m68k/nm-apollo68b.h: Ditto.
11110 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11111 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11112 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11114 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11116 * config/i386/tm-i386os9k.h: Removed.
11118 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11119 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11120 they're identical to i[3456]86-*-sysv* now.
11121 * config/i386/i386v32.mh: Removed.
11122 * config/i386/xm-i386v32.h: Removed.
11123 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11125 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11127 * config/i386/i386dgux.mh: Removed.
11128 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11130 * configure.in: Fix typo.
11131 * configure: Regenerated.
11133 2003-01-31 David Carlton <carlton@math.stanford.edu>
11135 * dwarf2read.c (dwarf2_locate_sections): Set
11136 dwarf_ranges_section.
11138 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11140 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11141 * utils.c: Update comments documenting legitimate uses of PTR.
11143 * utils.c: Re-indent.
11145 * config/djgpp/fnchange.lst: Delete nindy files.
11146 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11147 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11148 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11149 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11150 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11151 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11152 * Makefile.in (init.c): Remove nindy references.
11153 (saber_gdb): Delete rule.
11154 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11155 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11157 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11158 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11159 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11160 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11161 nindy-share/stop.h.
11162 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11163 * saber.suppress: Delete file.
11165 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11167 * dbxread.c (stabs_data): New static variable.
11168 (fill_symbuf): Support an in-memory buffer for stabs data.
11169 (stabs_seek): New function.
11170 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11171 (read_ofile_symtab): Use stabs_seek.
11172 (elfstab_build_psymtabs): Take an asection* instead of
11173 an offset and size. Relocate the stabs data if necessary.
11174 Save the section* for dbx_psymtab_to_symtab.
11175 * dwarf2read.c: Add section variables for each debug section.
11176 (dwarf2_locate_sections): Fill them in.
11177 (dwarf2_read_section): Take an asection* argument.
11178 Relocate the section contents if necessary.
11179 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11180 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11181 it to dwarf2_read_section.
11182 (dwarf2_build_frame_info): Update callers.
11183 * elfread.c (elf_symfile_read): Update call to
11184 elfstab_build_psymtabs.
11185 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11186 (DBX_STAB_SECTION): New macro.
11187 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11188 * symfile.c (symfile_dummy_outputs): New function.
11189 (symfile_relocate_debug_section): New function.
11190 * symfile.h (symfile_relocate_debug_section): Add prototype.
11192 2003-01-31 Richard Henderson <rth@redhat.com>
11194 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11195 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11196 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11197 * alpha-tdep.c (alpha_register_name): Add "unique".
11198 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11199 (ALPHA_UNIQUE_REGNUM): New.
11200 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11202 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11204 * README: Remove reference to Ericsson 1800 monitor.
11205 * Makefile.in (remote-es.o): Delete rule.
11206 (ALLDEPFILES): Delete remote-es.c.
11207 * remote-es.c: Delete file.
11208 * config/m68k/es1800.mt: Delete file.
11209 * config/djgpp/fnchange.lst: Update.
11210 * configure.tgt: Delete m68*-ericsson-* target.
11212 2003-01-31 Adam Fedor <fedor@gnu.org>
11214 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11215 Remove duplicate/shadowing variable of same name.
11217 2003-01-30 Jim Blandy <jimb@redhat.com>
11219 * symfile.c (find_separate_debug_file): Assert that the objfile's
11220 directory name we compute ends with a slash, and then assume that
11221 that's so everywhere we use it.
11223 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11225 * valops.c (value_assign): Flush frame cache after stores to memory
11228 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11230 * Makefile.in (mon960-rom.o): Delete rule.
11231 * mon960-rom.c: Delete file.
11233 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11235 * d10v-tdep.c: Include "frame-unwind.h".
11236 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11238 (next_addr, uses_frame): Delete.
11239 (struct d10v_unwind_cache): Define.
11240 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11241 Use info instead of next_addr and uses_frame globals.
11242 (d10v_frame_init_saved_regs): Delete function.
11243 (d10v_init_extra_frame_info): Delete function.
11244 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11245 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11246 init_frame_pc or frame_saved_pc.
11247 (d10v_pop_frame): Delete function.
11248 (do_d10v_pop_frame): Delete function.
11249 (d10v_frame_chain): Delete function.
11250 (d10v_frame_chain_valid): Delete function.
11251 (d10v_frame_pc_unwind): New function.
11252 (d10v_frame_id_unwind): New function.
11253 (saved_regs_unwinder): New function.
11254 (d10v_frame_register_unwind): New function.
11255 (d10v_frame_pop): New function.
11256 (d10v_frame_unwind): New variable.
11257 (d10v_frame_p): New function.
11258 (d10v_frame_saved_pc): Delete function.
11259 * Makefile.in (d10v-tdep.o): Update dependencies.
11261 2003-01-30 J. Brobecker <brobecker@gnat.com>
11263 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11264 causing some regressions due to a change in the default value
11267 2003-01-29 Richard Henderson <rth@redhat.com>
11268 Elena Zannoni <ezannoni@redhat.com>
11269 Daniel Jacobowitz <drow@mvista.com>
11272 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11274 (RANGES_SECTION): New.
11275 (dwarf_ranges_buffer): New variable.
11276 (struct comp_unit_head): Add member "die".
11277 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11278 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11279 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11280 (dwarf2_locate_sections): Likewise.
11281 (dwarf2_build_psymtabs): Read .debug_ranges.
11282 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11283 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11284 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11285 Look for DW_AT_ranges and return the bounding box.
11287 2003-01-29 Brian Ford <ford@vss.fsi.com>
11289 * win32-nat.c (cygwin_pid): Removed as unused.
11290 (child_attach): Try fall back to Cygwin pid.
11292 2003-01-29 Jim Blandy <jimb@redhat.com>
11294 * objfiles.h (struct objfile): Doc fix.
11296 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11298 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11299 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11300 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11301 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11302 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11303 (FRAME_SAVED_PC): Change to a function with predicate.
11304 * gdbarch.h, gdbarch.c: Re-generate.
11306 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11308 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11310 * complaints.c (complain): Delete function.
11311 * complaints.h (struct deprecated_complaint): Delete definition.
11312 (complain): Delete declaration.
11314 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11316 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11319 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11321 * sentinel-frame.h, sentinel-frame.c: New files.
11322 * Makefile.in (frame.o): Update dependencies.
11323 (SFILES): Add sentinel-frame.c.
11324 (sentinel_frame_h): Define.
11325 (COMMON_OBS): Add sentinel-frame.o.
11326 (sentinel-frame.o): Specify dependencies.
11327 * frame.c: Include "sentinel-frame.h".
11328 (frame_register_unwind): Rewrite assuming that there is always a a
11330 (frame_register, generic_unwind_get_saved_register): Ditto.
11331 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11332 (create_sentinel_frame, unwind_to_current_frame): New functions.
11333 (get_current_frame): Rewrite using create_sentinel_frame and
11334 unwind_to_current_frame. When possible, always create a frame.
11335 (create_new_frame): Set next to the sentinel frame.
11336 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11337 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11338 ID cache when necessary.
11339 (frame_saved_regs_id_unwind): Use frame_relative_level.
11340 (deprecated_generic_get_saved_register): Use frame_relative_level,
11341 get_frame_saved_regs, get_frame_pc, get_frame_base and
11343 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11346 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11348 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11350 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11352 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11353 (maintenance_set_profile_cmd): Use error () instead of warning ().
11355 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11357 * configure.in: Check that -pg works if using --enable-profiling.
11358 Check for monstartup and _mcleanup regardless of --enable-profiling.
11359 * maint.c: Check for monstartup and _mcleanup before using them.
11360 * config.in: Regenerated.
11361 * configure: Regenerated.
11363 2003-01-24 Nick Clifton <nickc@redhat.com>
11365 * Add sh2e support:
11367 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11369 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11370 (sh2e_show_regs): New.
11371 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11372 * config/sh/tm-sh.h: Added sh2e to comments.
11374 2003-01-23 Jim Blandy <jimb@redhat.com>
11376 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11377 symbols found)" message here; we haven't checked for a separate
11378 debug info file yet, so we don't know yet.
11379 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11380 we've looked everywhere. Also, there's no need to print a special
11381 message when we're loading the separate debug info file: the one
11382 symbol_file_add prints is fine.
11384 2003-01-23 Alexander Larsson <alexl@redhat.com>
11385 Jim Blandy <jimb@redhat.com>
11387 Add support for executables whose debug info has been separated
11388 out into a separate file, leaving only a link behind.
11389 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11390 and separate_debug_objfile_backlink.
11391 (put_objfile_before): New declaration.
11392 * symfile.c: #include "filenames.h".
11393 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11394 debug info in a separate file, read that, too. Save the addrs
11395 argument, so we can use it again to read the separated debug info;
11396 syms_from_objfile modifies the table we pass it.
11397 (reread_symbols): After re-reading an objfile, call
11398 reread_separate_symbols to refresh its separate debug info
11399 objfile, if it has one.
11400 (reread_separate_symbols, find_separate_debug_file,
11401 get_debug_link_info, separate_debug_file_exists): New functions.
11402 (debug_file_directory): New global var.
11403 (_initialize_symfile): Initialize debug_file_directory, and
11404 provide the new `set debug-file-directory' command to let the user
11406 * objfiles.c (free_objfile): If this objfile has its debug info in
11407 a separate objfile, free that one too. If this is itself a
11408 separate debug info objfile, clear our parent's backlink.
11409 (put_objfile_before): New function.
11410 * utils.c (gnu_debuglink_crc32): New function.
11411 * defs.h (gnu_debuglink_crc32): New declaration.
11412 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11413 * configure.in: Handle --with-separate-debug-dir config option.
11414 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11415 * acconfig.h (DEBUGDIR): New macro.
11416 * configure, aclocal.m4, config.in: Regenerated.
11418 2003-01-22 Jim Blandy <jimb@redhat.com>
11420 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11421 like the old symbol_file_add, but taking new arguments: you can
11422 now pass in either a `struct section_addr_info' list to say where
11423 each section is loaded, or a `struct section_offsets' table. Pass
11424 these new arguments through to syms_from_objfile as appropriate.
11425 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11426 with the appropriate quiescent values for the new arguments.
11428 * symfile.c: #include "gdb_assert.h".
11429 (syms_from_objfile): Add the ability to pass in a section offset
11430 table directly, as an alternative to the section_addr_info table.
11431 Document arguments better.
11432 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11433 * symfile.h (syms_from_objfile): Update declaration.
11434 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11436 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11438 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11440 Original patch by Tom Tromey <tromey@cygnus.com> and
11441 Jason Molenda <jmolenda@apple.com>.
11442 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11443 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11444 * NEWS: Mention profiling.
11445 * configure.in (--enable-gdbtk): Fix typo.
11446 (--enable-profiling): New. Set PROFILE_CFLAGS.
11447 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11449 (profiling_state): New variable.
11450 (mcleanup_wrapper): New function.
11451 (_initialize_maint): Remove NOTYET, fix call to
11452 add_setshow_boolean_cmd for "maint set profile".
11453 * configure: Regenerated.
11455 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11457 * Makefile.in (install-gdbtk): Install PNG images too.
11459 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11461 * exec.c (text_start): Delete global variable.
11462 (exec_file_attach): Make text_start local to the function.
11463 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11464 * valops.c (hand_function_call): Delete code that handles
11465 BEFORE_TEXT_END and AFTER_TEXT_END.
11466 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11467 of CALL_DUMMY_LOCATION.
11468 * gdbarch.c: Regenerate.
11469 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11470 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11471 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11472 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11473 (text_end): Delete extern declaration.
11475 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11477 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11478 * blockframe.c (backtrace_below_main): Move to "frame.c".
11479 (frame_chain_valid): Delete check for backtrace_below_main.
11480 (_initialize_blockframe): Delete initialization, move ``set
11481 backtrace-below-main'' command to "frame.c".
11482 (do_flush_frames_sfunc): Delete function.
11483 * frame.c: Include "command.h" and "gdbcmd.h".
11484 (frame_type_from_pc): New function.
11485 (create_new_frame): Use frame_type_from_pc.
11486 (legacy_get_prev_frame): New function.
11487 (get_prev_frame): Rewrite. When an old style frame, call
11488 legacy_get_prev_frame. Otherwize, unwind the PC first.
11489 (_initialize_frame): Add ``set backtrace-below-main'' command.
11490 * Makefile.in (frame.o): Update dependencies.
11492 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11494 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11495 DEPRECATED_REGISTERS_INFO.
11497 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11499 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11500 Maintainers'. Update `Various Maintainers'.
11502 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11504 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11505 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11506 Suppress actual parameters when `-'.
11507 * gdbarch.h, gdbarch.c: Regenerate.
11509 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11511 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11512 code handling dummy frames.
11514 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11516 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11517 (struct frame_unwind): Add field pop.
11518 * frame.h (frame_pop): Declare.
11519 * frame.c (frame_saved_regs_pop): New function.
11520 (trad_frame_unwinder): Add frame_saved_regs_pop.
11521 (frame_pop): New function.
11522 * dummy-frame.c (dummy_frame_pop): New function.
11523 (discard_innermost_dummy): New function.
11524 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11525 (dummy_frame_unwind): Add dummy_frame_pop.
11526 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11527 * valops.c (hand_function_call): Ditto.
11528 * stack.c (return_command): Ditto.
11530 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11532 * cris-tdep.c: Fix function declaration indentation.
11533 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11534 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11535 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11536 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11537 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11538 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11540 2003-01-18 Michael Chastain <mec@shout.net>
11542 * README (Unpacking and Installation -- quick overview):
11543 Warn against ".../gdb-5.3/gdb/configure".
11545 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11547 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11548 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11549 (struct frame_unwind): Declare opaque.
11550 (dummy_frame_p): Declare function.
11551 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11552 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11553 * dummy-frame.c: Include "frame-unwind.h".
11554 (dummy_frame_p): New function.
11555 (dummy_frame_unwind): New variable.
11556 * frame.c: Include "frame-unwind.h".
11557 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11558 to use the new unwind field.
11559 (set_unwind_by_pc): Delete function.
11560 (create_new_frame, get_prev_frame): Set unwind field using
11561 frame_unwind_find_by_pc.
11562 (trad_frame_unwind, trad_frame_unwinder): New variables.
11563 * frame.h (trad_frame_unwind): Declare variable.
11564 (frame_id_unwind_ftype): Delete declaration.
11565 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11566 (struct frame_unwind): Declare opaque.
11567 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11568 register_unwind with a single unwind pointer.
11569 * frame-unwind.h, frame-unwind.c: New files.
11570 * Makefile.in (SFILES): Add frame-unwind.c.
11571 (frame_unwind_h): Define.
11572 (COMMON_OBS): Add frame-unwind.o.
11573 (frame-unwind.o): Specify dependencies.
11574 (frame.o, dummy-frame.o): Update dependencies.
11576 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11578 * ada-valprint.c: Eliminate PTR.
11579 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11580 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11581 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11582 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11583 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11584 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11585 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11587 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11589 * main.c (captured_main): Don't use PTR.
11590 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11591 * gdbtypes.c (lookup_primitive_typename): Ditto.
11592 (lookup_struct_elt_type): Ditto.
11593 * f-valprint.c (info_common_command): Ditto.
11594 (list_all_visible_commons): Ditto.
11595 * jv-typeprint.c (java_type_print_base): Ditto.
11597 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11598 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11599 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11600 i386-interix-nat.c and i386-interix-tdep.c. Rename
11601 m68klinux-nat.c and m68klinux-tdep.c. Rename
11602 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11603 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11604 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11605 * main.c (captured_main): Use xfree, not free.
11607 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11609 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11610 ID back using a parameter.
11611 * frame.c (frame_id_unwind): Update call.
11612 (frame_saved_regs_id_unwind): Update.
11613 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11614 * dummy-frame.h (struct frame_id): Add opaque declaration.
11615 (dummy_frame_id_unwind): Update declaration.
11617 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11619 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11621 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11623 * MAINTAINERS (Stephen P. Smith): Updated email address.
11625 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11628 * breakpoint.c (until_break_command): Add new argument. Use it to
11629 decide whether to stop only at the current frame or not.
11630 * breakpoint.h (until_break_command): Update prototype.
11631 * infcmd.c (until_command): Add new argument to until_break_command
11633 (advance_command): New function.
11634 (_initialize_infcmd): Update help string for 'until' command.
11635 Add new 'advance' command.
11637 2003-01-14 David Carlton <carlton@math.stanford.edu>
11639 * linespec.c (decode_line_1): Normalize comments.
11640 (set_flags): Ditto.
11641 (locate_first_half): Ditto.
11642 (decode_compound): Ditto.
11643 (symtab_from_filename): Ditto.
11644 (decode_all_digits): Ditto.
11645 (decode_dollar): Ditto.
11646 (find_methods): Ditto.
11647 (find_toplevel_char): Ditto.
11649 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11651 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11652 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11653 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11654 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11655 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11656 * language.c, language.h, m32r-tdep.c: Update copyright.
11657 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11658 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11659 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11660 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11661 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11662 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11664 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11666 * stabsread.h (process_later, resolve_cfront_continuation):
11668 Update copyright years.
11669 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11670 Update copyright year.
11671 * dbxread.c(struct cont_elem): Obsolete.
11672 (process_later, process_now): Obsolete functions.
11673 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11674 Update copyright year.
11675 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11676 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11677 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11678 (parse_partial_symbols): Obsolete cfront support.
11680 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11682 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11683 read_cfront_baseclasses, read_cfront_member_functions,
11684 resolve_cfront_continuation,read_cfront_static_fields,
11685 copy_cfront_struct_fields): Obsolete functions.
11686 (define_symbol, read_one_struct_field): Obsolete cfront support.
11687 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11688 Update Copyright year.
11690 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11692 * stack.c (print_frame_info, print_stack_frame_base_stub,
11693 print_stack_frame_base, show_and_print_stack_frame_stub,
11694 show_and_print_stack_frame, print_only_stack_frame_stub,
11695 print_only_stack_frame): Delete functions.
11696 (print_stack_frame_stub): Call print_frame_info instead of
11697 print_frame_info_base.
11698 (print_frame_info_base): Rename to print_frame_info.
11699 (backtrace_command_1): Call print_frame_info, instead of
11700 print_frame_info_base.
11701 (current_frame_command): Call print_stack_frame, instead of
11702 print_only_stack_frame.
11703 (frame_command): Call print_stack_frame, instead of
11704 show_and_print_stack_frame.
11705 (up_command): Ditto.
11706 (down_command): Ditto.
11707 * frame.h (print_only_stack_frame): Delete prototype.
11708 * infrun.c (normal_stop): Call print_stack_frame, instead of
11709 show_and_print_stack_frame.
11710 * thread.c (info_threads_command): Call print_stack_frame, instead
11711 of print_only_stack_frame.
11713 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11715 * README (Graphical interface to GDB): Update URL. Point at
11718 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11721 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11723 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11726 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11728 * thread-db.c (attach_thread): Prototype.
11729 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11730 thread information (ti), and valid flags (th_valid, ti_valid).
11731 (attach_thread): Move target_pid_to_str call to after the thread
11732 is added to GDB's list. Initialize the cache.
11733 (thread_get_info_callback, thread_db_map_id2thr)
11734 (thread_db_get_info): New functions.
11735 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11736 (thread_db_store_registers, thread_db_thread_alive)
11737 (thread_db_get_thread_local_address): Use them.
11738 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11739 of calling error() for threads in unknown state.
11741 (clear_lwpid_callback): New function.
11742 (thread_db_resume): Use it to clear the cache.
11744 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11746 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11747 (resume_callback): Remove dead code.
11749 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11751 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11753 * gdbarch.h, gdbarch.c: Regenerate.
11754 * stack.c (frame_info): Only initialize the saved registers when
11755 FRAME_INIT_SAVED_REGS_P.
11756 * frame.c (frame_saved_regs_register_unwind): Assert
11757 FRAME_INIT_SAVED_REGS_P.
11758 (deprecated_generic_get_saved_register): Ditto.
11760 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11762 * source.c (openp): Squelch warning about "filename".
11764 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11766 * source.c (openp): If the file does not exist don't necessarily
11769 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11772 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11773 (integer_types_same_name_p): New function.
11774 (rank_one_type): Use it.
11775 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11777 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11779 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11781 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11782 * configure.in: Add --with-sysroot.
11783 * configure: Regenerated.
11784 * main.c (gdb_sysroot): New variable.
11785 (captured_main): Initialize gdb_sysroot.
11786 * defs.h (gdb_sysroot): New extern declaration.
11787 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11789 2003-01-12 Michael Chastain <mec@shout.net>
11791 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11793 2003-01-12 Michael Chastain <mec@shout.net>
11795 * top.c (print_gdb_version): Bump copyright year to 2003.
11797 2003-01-12 David Carlton <carlton@bactrian.org>
11799 * linespec.c (symtab_from_filename): Rename variable 's' to
11802 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11804 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11806 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11808 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11810 * d10v-tdep.c: Include "gdb_assert.h".
11811 (d10v_store_return_value): Rewrite to match current interface.
11812 (d10v_extract_struct_value_address): Ditto.
11813 (d10v_extract_return_value): Ditto.
11814 (d10v_gdbarch_init): Set store_restore_value,
11815 extract_struct_value_address and extract_return_value.
11817 2003-01-12 J. Brobecker <brobecker@gnat.com>
11819 * hpread.c (set_namestring): New procedure replacing the
11820 SET_NAMESTRING macro.
11821 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11822 by calls to set_namestring.
11824 2003-01-11 J. Brobecker <brobecker@gnat.com>
11826 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11827 a compilation warning.
11828 (hpread_process_one_debug_symbol): Likewise.
11830 2003-01-10 David Carlton <carlton@math.stanford.edu>
11832 * linespec.c (decode_line_1): Rename variable 's' to
11834 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11835 (decode_dollar): Ditto.
11836 (decode_variable): Ditto.
11837 (symbol_found): Ditto.
11839 2003-01-09 Michael Chastain <mec@shout.net>
11841 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11843 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11845 * win32-nat.c (set_process_privilege): New function.
11846 (child_attach): Call set_process_privilege() to enable the
11847 SE_DEBUG_NAME user privilege if available in process token.
11849 2003-01-10 J. Brobecker <brobecker@gnat.com>
11851 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11852 compilation error in the previous revision.
11854 2003-01-09 David Carlton <carlton@math.stanford.edu>
11856 * linespec.c: Update copyright.
11858 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11860 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11861 than inferior_ptid.
11862 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11864 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11866 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11868 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11869 (frame_saved_regs_zalloc): Update.
11870 (frame_saved_regs_register_unwind): Update.
11871 (create_new_frame): Update.
11872 (get_prev_frame): Update.
11873 (frame_extra_info_zalloc): Update.
11874 (deprecated_get_frame_saved_regs): Update.
11875 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11876 * cris-tdep.c: Update comment.
11878 * somsolib.h: Fix function indentation.
11879 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11880 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11881 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11882 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11883 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11885 * infrun.c (follow_fork): Use ISO C definition.
11886 * expprint.c (print_subexp): Use xfree instead of free.
11887 * charset.c: Include "gdb_string.h" instead of <string.h>.
11888 (register_iconv_charsets): Use ISO C definition.
11889 (host_charset, target_charset): Ditto.
11890 * Makefile.in (charset.o): Update dependencies.
11891 (mi-cmd-env.o): Update dependencies.
11893 2003-01-08 Andrew Cagney <cagney@redhat.com>
11895 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11898 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11900 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11901 build directories. Save edited gdb output in Mbuild.log. If a
11902 build fails, remove any final GDB executable.
11904 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11906 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11907 replacing hex constants with function names and stripping leading
11908 file name directory prefixes.
11910 2003-01-08 Andrew Cagney <cagney@redhat.com>
11912 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11915 2003-01-08 David Carlton <carlton@math.stanford.edu>
11917 * linespec.c (decode_line_1): Move code into decode_variable.
11918 (decode_variable): New function.
11920 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11922 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11924 2003-01-08 Andrew Cagney <cagney@redhat.com>
11926 * cris-tdep.c (cris_frame_init_saved_regs): Use
11927 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11929 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11930 (sh64_nofp_frame_init_saved_regs): Ditto.
11931 (sh_fp_frame_init_saved_regs): Ditto.
11932 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11933 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11934 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11935 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11937 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11939 * minsyms.c (lookup_minimal_symbol): Update comment.
11940 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11941 (lookup_minimal_symbol_solib_trampoline): Likewise.
11943 2003-01-08 Andrew Cagney <cagney@redhat.com>
11945 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11946 frame_relative_level.
11948 * alpha-tdep.c: Use get_frame_extra_info.
11949 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11950 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11951 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11952 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11954 * alpha-tdep.c: Use get_next_frame.
11955 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11956 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11957 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11958 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11959 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11960 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11961 * xstormy16-tdep.c: Ditto.
11963 2003-01-07 Andrew Cagney <cagney@redhat.com>
11965 * alpha-tdep.c: Use get_frame_base.
11966 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11967 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11968 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11969 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11970 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11971 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11972 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11973 * config/sparc/tm-sparc.h: Ditto.
11975 2003-01-07 Andrew Cagney <cagney@redhat.com>
11977 * frame.c (deprecated_get_frame_context): New function.
11978 (deprecated_set_frame_context): New function.
11979 * frame.h (deprecated_get_frame_context): Declare.
11980 (deprecated_set_frame_context): Declare.
11981 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11982 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11984 2003-01-07 Andrew Cagney <cagney@redhat.com>
11986 * frame.c (deprecated_set_frame_next_hack): New function.
11987 (deprecated_set_frame_prev_hack): New function.
11988 * frame.h (deprecated_set_frame_next_hack): Declare.
11989 (deprecated_set_frame_prev_hack): Declare.
11990 * mcore-tdep.c (analyze_dummy_frame): Use
11991 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11992 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11994 2003-01-07 David Carlton <carlton@math.stanford.edu>
11996 * linespec.c (decode_line_1): Move code into decode_dollar.
11997 (decode_dollar): New function.
11999 2003-01-07 Andrew Cagney <cagney@redhat.com>
12001 * arm-tdep.c (arm_init_extra_frame_info): Use
12002 deprecated_update_frame_base_hack.
12003 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12004 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12005 (fix_frame_pointer): Ditto.
12006 (mn10300_analyze_prologue): Ditto.
12008 2003-01-07 Andrew Cagney <cagney@redhat.com>
12010 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12011 extra_info using frame_extra_info_zalloc.
12012 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12013 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12014 (sh64_init_extra_frame_info): Ditto.
12015 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12016 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12017 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12018 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12019 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12020 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12021 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12022 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12023 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12024 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12025 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12026 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12028 * mn10300-tdep.c (analyze_dummy_frame): Use
12029 deprecated_set_frame_extra_info_hack.
12030 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12032 2003-01-07 J. Brobecker <brobecker@gnat.com>
12034 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12035 class is not scText. These do not define "real" procedures.
12036 (parse_partial_symbols): Likewise.
12038 2003-01-06 Michael Snyder <msnyder@redhat.com>
12040 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12042 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12044 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12045 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12046 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12047 deprecated_frame_xmalloc_with_cleanup.
12048 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12049 deprecated_frame_xmalloc.
12050 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12051 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12053 2003-01-06 Andrew Cagney <cagney@redhat.com>
12055 * x86-64-linux-tdep.c: Include "osabi.h".
12056 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12058 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12060 2003-01-06 Andrew Cagney <cagney@redhat.com>
12062 * MAINTAINERS (Target Instruction Set Architectures): Update
12063 arm-elf. Can be built with -Werror, has been multiarched.
12065 * value.h (unpack_long): Make buffer parameter constant.
12066 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12067 * scm-lang.h (scm_parse): Ditto.
12068 * defs.h (extract_typed_address, extract_address): Ditto.
12069 (extract_long_unsigned_integer): Ditto.
12070 * inferior.h (unsigned_pointer_to_address): Ditto.
12071 (signed_pointer_to_address): Ditto.
12072 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12073 * gdbarch.h, gdbarch.c: Regenerate.
12074 * findvar.c (extract_long_unsigned_integer): Update.
12075 (extract_address): Update.
12076 (extract_typed_address): Update.
12077 (unsigned_pointer_to_address): Update.
12078 * values.c (unpack_long): Update.
12079 (unpack_double): Update.
12080 (unpack_pointer): Update.
12081 (unpack_field_as_long): Update.
12082 * d10v-tdep.c (d10v_pointer_to_address): Update.
12083 * avr-tdep.c (avr_pointer_to_address): Update.
12084 * scm-lang.c (scm_unpack): Update.
12085 * findvar.c (signed_pointer_to_address): Update.
12087 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12089 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12090 since it is in i386-tdep.c.
12092 2003-01-06 J. Brobecker <brobecker@gnat.com>
12094 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12095 failure introduced in the previous change.
12097 2003-01-05 Michael Chastain <mec@shout.net>
12099 * README: Remove references to deleted remote-*.c files:
12100 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12101 remote-nrom.c, remote-os9k.c, remote-udi.c.
12103 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12105 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12106 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12107 i386_get_longjmp_target.
12109 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12111 * arm-tdep.c (prologue_cache): Change to a pointer.
12112 (_initialize_arm_tdep): Allocate prologue_cache.
12113 (check_prologue_cache): Update.
12114 (save_prologue_cache): Update.
12115 (arm_gdbarch_init): Update.
12117 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12119 * stabsread.c (update_method_name_from_physname): Call complaint()
12122 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12124 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12125 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12126 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12128 * blockframe.c: Include "gdbcmd.h" and "command.h".
12129 (backtrace_below_main): New variable.
12130 (file_frame_chain_valid, func_frame_chain_valid)
12131 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12132 (generic_func_frame_chain_valid): Remove functions.
12133 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12134 (_initialize_blockframe): New function.
12135 * Makefile.in (blockframe.o): Update dependencies.
12136 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12137 comment. Call frame_chain_valid ().
12138 * frame.h: Remove old prototypes. Add prototype for
12139 frame_chain_valid and update comments to match.
12140 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12141 Remove old comment.
12142 * gdbarch.h: Regenerated.
12143 * gdbarch.c: Regenerated.
12145 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12146 set_gdbarch_frame_chain_valid.
12147 * avr-tdep.c (avr_gdbarch_init): Likewise.
12148 * cris-tdep.c (cris_gdbarch_init): Likewise.
12149 * frv-tdep.c (frv_gdbarch_init): Likewise.
12150 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12151 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12152 (i386_nw_init_abi): Likewise.
12153 (i386_gdbarch_init): Likewise.
12154 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12156 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12157 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12158 * mips-tdep.c (mips_gdbarch_init): Likewise.
12159 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12160 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12161 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12162 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12163 * s390-tdep.c (s390_gdbarch_init): Likewise.
12164 * sh-tdep.c (sh_gdbarch_init): Likewise.
12165 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12166 * v850-tdep.c (v850_gdbarch_init): Likewise.
12167 * vax-tdep.c (vax_gdbarch_init): Likewise.
12168 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12170 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12171 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12172 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12173 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12174 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12175 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12176 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12177 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12179 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12181 * Makefile.in (acconfig_h): Remove incorrect macro.
12182 (config_h): Define.
12183 (osabi.o): Update dependencies.
12184 * configure.tgt: Set gdb_osabi based on target triplet.
12185 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12186 * configure: Regenerated.
12187 * config.in: Regenerated.
12188 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12189 (GDB_OSABI_DEFAULT): Define if not already defined.
12190 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12191 (set_osabi_string): New variables.
12192 (gdbarch_register_osabi): Add new OS ABI to
12193 gdb_osabi_available_names.
12194 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12195 (set_osabi, show_osabi): New functions.
12196 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12198 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12200 * arch-utils.c (gdbarch_info_init): Set osabi to
12201 GDB_OSABI_UNINITIALIZED.
12202 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12203 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12204 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12205 * gdbarch.c: Regenerated.
12206 * gdbarch.h: Regenerated.
12207 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12209 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12210 * osabi.h (enum gdb_osabi): Move to defs.h.
12211 (gdbarch_init_osabi): Update prototype.
12212 * defs.h (enum gdb_osabi): Moved here.
12213 * Makefile.in: Update dependencies.
12215 * alpha-tdep.h: Don't include "osabi.h".
12216 (struct gdbarch_tdep): Remove osabi member.
12217 * alpha-tdep.c: Include "osabi.h".
12218 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12219 iterate over arches. Update call to gdbarch_init_osabi.
12220 (alpha_dump_tdep): Don't dump osabi.
12221 * alpha-linux-tdep.c: Include "osabi.h".
12222 * alpha-osf1-tdep.c: Include "osabi.h".
12223 * alphafbsd-tdep.c: Include "osabi.h".
12224 * alphanbsd-tdep.c: Include "osabi.h".
12226 * arm-tdep.h: Don't include "osabi.h".
12227 (struct gdbarch_tdep): Remove osabi member.
12228 * arm-tdep.c: Include "osabi.h".
12229 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12230 iterate over arches. Update call to gdbarch_init_osabi.
12231 (arm_dump_tdep): Don't dump osabi.
12232 * arm-linux-tdep.c: Include "osabi.h".
12233 * armnbsd-tdep.c: Include "osabi.h".
12235 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12236 Update call to gdbarch_init_osabi.
12238 * i386-tdep.h: Don't include "osabi.h".
12239 (struct gdbarch_tdep): Remove osabi member.
12240 * i386-tdep.c: Include "osabi.h".
12241 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12242 iterate over arches. Update call to gdbarch_init_osabi.
12243 (i386_dump_tdep): Don't dump osabi.
12244 * i386-linux-tdep.c: Include "osabi.h".
12245 * i386-sol2-tdep.c: Include "osabi.h".
12246 * i386bsd-tdep.c: Include "osabi.h".
12247 * i386gnu-tdep.c: Include "osabi.h".
12248 * i386ly-tdep.c: Include "osabi.h".
12249 * i386nbsd-tdep.c: Include "osabi.h".
12250 * i386obsd-tdep.c: Include "osabi.h".
12252 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12253 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12254 check osabi when iterating over arches. Update call to
12255 gdbarch_init_osabi.
12256 (mips_dump_tdep): Don't dump osabi.
12258 * ns32k-tdep.h: Don't include "osabi.h".
12259 (struct gdbarch_tdep): Remove.
12260 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12261 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12262 allocate tdep. Update call to gdbarch_init_osabi.
12263 (ns32k_dump_tdep): Remove.
12264 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12265 * ns32knbsd-tdep.c: Include "osabi.h".
12267 * ppc-tdep.h: Don't include "osabi.h".
12268 (struct gdbarch_tdep): Remove osabi member.
12269 * rs6000-tdep.c: Include "osabi.h".
12270 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12271 osabi when iterating over arches. Update call to
12272 gdbarch_init_osabi.
12273 (rs6000_dump_tdep): Don't dump osabi.
12274 * ppc-linux-tdep.c: Include "osabi.h".
12275 * ppcnbsd-tdep.c: Include "osabi.h".
12277 * sh-tdep.h: Don't include "osabi.h".
12278 (struct gdbarch_tdep): Remove osabi member.
12279 * sh-tdep.c: Include "osabi.h".
12280 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12281 iterate over arches. Update call to gdbarch_init_osabi.
12282 (sh_dump_tdep): Don't dump osabi.
12283 * shnbsd-tdep.c: Include "osabi.h".
12285 * sparc-tdep.c: Include "osabi.h".
12286 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12287 iterate over arches. Update call to gdbarch_init_osabi.
12288 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12291 * vax-tdep.h: Don't include "osabi.h".
12292 (struct gdbarch_tdep): Remove.
12293 * vax-tdep.c: Include "osabi.h".
12294 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12295 iterate over arches. Don't allocate tdep. Update call
12296 to gdbarch_init_osabi.
12297 (vax_dump_tdep): Remove.
12298 (_initialize_vax_tdep): Update call to gdbarch_register.
12300 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12302 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12304 (breakpoint_re_set_one): Don't fetch the value for a disabled
12307 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12309 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12310 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12311 (COERCE_FLOAT_TO_DOUBLE): Remove.
12312 * gdbarch.c: Regenerate.
12313 * gdbarch.h: Regenerate.
12314 * Makefile.in: Remove value_h from gdbarch_h.
12315 * valops.c (coerce_float_to_double): New variable.
12316 (default_coerce_float_to_double): Remove.
12317 (standard_coerce_float_to_double): Remove.
12318 (value_arg_coerce): Use coerce_float_to_double.
12319 (_initialize_valops): Add "set coerce-float-to-double".
12320 * value.h (default_coerce_float_to_double): Remove prototype.
12321 (standard_coerce_float_to_double): Remove prototype.
12323 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12325 * mdebugread.c (parse_symbol): Likewise.
12326 * stabsread.c (define_symbol): Mark all functions as prototyped.
12328 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12329 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12330 set_gdbarch_coerce_float_to_double.
12331 * arm-tdep.c (arm_gdbarch_init): Likewise.
12332 * frv-tdep.c (frv_gdbarch_init): Likewise.
12333 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12334 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12335 * mips-tdep.c (mips_gdbarch_init): Likewise.
12336 (mips_coerce_float_to_double): Remove.
12337 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12338 (rs6000_coerce_float_to_double): Remove.
12339 * s390-tdep.c (s390_gdbarch_init): Likewise.
12340 * sh-tdep.c (sh_gdbarch_init): Likewise.
12341 (sh_coerce_float_to_double): Remove.
12342 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12343 (sparc_coerce_float_to_double): Remove.
12344 * v850-tdep.c (v850_gdbarch_init): Likewise.
12345 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12346 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12347 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12348 (hppa_coerce_float_to_double): Remove prototype.
12349 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12351 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12353 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12355 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12357 Suggested by Stewart Brown <sb24@avaya.com>:
12358 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12359 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12360 (c_type_print_varspec_suffix): Likewise.
12362 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12364 * configure.in: Don't set and AC_SUBST SUBDIRS.
12365 * configure: Regenerated.
12367 * configure.in: Remove code dealing with shared libraries.
12368 * Makefile.in: Remove HLDFLAGS and HLDENV.
12369 * configure: Regenerated.
12371 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12373 * frame.c (deprecated_frame_xmalloc): New function.
12374 (deprecated_set_frame_saved_regs_hack): New function.
12375 (deprecated_set_frame_extra_info_hack): New function.
12376 * frame.h (deprecated_frame_xmalloc): Declare.
12377 (deprecated_set_frame_saved_regs_hack): Declare.
12378 (deprecated_set_frame_extra_info_hack): Declare.
12380 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12382 * configure.in: Move code that provides the --enable-gdbtk option
12383 right after the code that handles the --enable-tui option, and
12384 polish it somewhat.
12385 * configure: Regenerated.
12387 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12388 AC_CHECK_FUNCS and remove the old check for pread64.
12389 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12390 * acconfig.h (_GNU_SOURCE): Add.
12391 (HAVE_PREAD64): Remove.
12392 * configure, aclocal.m4, config.in: Regenerated.
12394 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12396 * alpha-tdep.c: Use get_frame_saved_regs.
12397 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12398 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12399 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12400 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12401 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12403 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12405 * configure.in: Remove all use of the SUBDIRS variable; add
12406 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12407 code providing the --enable-multi-ice option, and move it right in
12408 front of the code that checks whether gdbserver is supported.
12410 * configure: Regenerated.
12411 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12414 2003-01-03 Andrew Cagney <cagney@redhat.com>
12416 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12417 * avr-tdep.c, cris-tdep.c: Ditto.
12418 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12419 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12421 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12423 * configure.in: Remove --enable-netrom option.
12424 * configure: Regenerated.
12426 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12428 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12429 declaration for `struct re_pattern_buffer' instead.
12430 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12432 2003-01-03 J. Brobecker <brobecker@gnat.com>
12434 * mdebugread.c (parse_symbol): Count until the stEnd matching
12435 the structure name.
12437 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12439 * configure.in: Remove --with-cpu option.
12440 subscripts. Remove evil changequotes here.
12441 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12442 * config.in, configure: Regenerated.
12444 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12445 * configure.in: Cleanup section that sources GDB and BFD configure
12446 subscripts. Remove evil changequotes here.
12447 * config.in, configure: Regenerated.
12449 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12451 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12452 frame accessor methods.
12453 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12454 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12455 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12456 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12457 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12458 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12459 * z8k-tdep.c: Ditto.
12461 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12463 * configure.in: Remove UI_OUT configuration code.
12464 * ada-lang.c: Update assuming UI_OUT is always true.
12465 * Makefile.in (UIOUT_CFLAGS): Remove.
12466 * configure: Regenerated.
12467 * TODO: Remove blurb about elimination of -DUI_OUT.
12469 * configure.in: Move code that provides the --enable-gdbcli,
12470 --enable-gdbmi options right before the code that handles the
12471 --enable-tui option. Polish a bit.
12472 * configure: Regenerated.
12474 * configure.in: Rewrite check for GNU regex and the
12475 --without-included regex option, and move it into the "Checks for
12476 library functions" section. This makes us use the system regex
12477 again by default on systems with version 2 of the GNU C library.
12478 This was apparently broken.
12479 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12480 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12481 * config.in, configure: Regenerated.
12483 * configure.in: Move code that provides the --enable-tui option
12484 before the "Checks for libraries" section. Polish the code
12485 somewhat and set need_curses to yes if we build the TUI. Rewrite
12486 code that looks for a library providing termcap functionality to
12487 match more closely what's done in the Readline library, and move
12488 it into to the "Checks for libraries" section.
12489 * configure: Regenerated.
12490 * Makefile.in (TERMCAP): Remove variable.
12491 * config/i386/go32.mh (TERMCAP): Remove variable.
12493 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12495 * MAINTAINERS: Mention gdb_mbuild.sh.
12496 * gdb_mbuild.sh: Rewrite.
12498 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12500 * configure.in: Fix typo in last change.
12501 * config.in, configure: Regenerated.
12503 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12505 * valarith.c (value_binop): Delete obsolete code and comments.
12506 * configure.host: Ditto.
12507 * buildsym.h (make_blockvector): Ditto.
12508 * buildsym.c (make_blockvector): Ditto.
12509 * defs.h (enum language): Ditto.
12510 (chill_demangle): Ditto.
12511 * elfread.c (elf_symtab_read): Ditto.
12512 * dwarfread.c (CHILL_PRODUCER): Ditto.
12513 (set_cu_language): Ditto.
12514 (handle_producer): Ditto.
12515 * expprint.c (print_subexp): Ditto.
12516 * gdbtypes.c (chill_varying_type): Ditto.
12517 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12518 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12519 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12520 (chill_varying_type): Ditto.
12521 * language.h (_LANG_chill): Ditto.
12522 * language.c (binop_result_type, integral_type): Ditto.
12523 (character_type, string_type, structured_type): Ditto.
12524 (lang_bool_type, binop_type_check): Ditto.
12525 * stabsread.h (os9k_stabs): Ditto.
12526 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12527 (define_symbol, read_type, read_struct_fields): Ditto.
12528 (read_array_type, read_enum_type, read_huge_number): Ditto.
12529 (read_range_type, start_stabs): Ditto.
12530 * symfile.c (init_filename_language_table): Ditto.
12531 (add_psymbol_with_dem_name_to_list): Ditto.
12532 * symtab.c (symbol_init_language_specific): Ditto.
12533 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12534 * symtab.h (struct general_symbol_info): Ditto.
12535 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12536 * typeprint.c (typedef_print): Ditto.
12537 * utils.c (fprintf_symbol_filtered): Ditto.
12538 * valops.c (value_cast, search_struct_field, value_slice): Delete
12540 (varying_to_slice): Delete function.
12541 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12542 (varying_to_slice): Delete declaration.
12543 * MAINTAINERS: Update.
12545 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12547 * configure.in: Reorganize "Checks for library functions section"
12548 a bit. Remove check for `btowc' and `isascii' functions.
12549 * configure: Regenerated.
12551 * acconfig.h (_MSE_INT_H): Remove.
12552 * configure.in: Create "Checks for header files" section, and move
12553 appropriate tests there. Don't check for objlist.h, wchar.h,
12554 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12555 misdetection fix. Also add "Checks for types", "Checks for
12556 compiler characteristics" and "Checks for library functions"
12558 * config.in, configure: Regenerated.
12560 * configure.in: Create "Checks for programs" section, and move
12561 appropriate tests there.
12563 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12565 * configure.in: Create "Checks for libraries" section, and move
12566 appropriate tests there. Cleanup check for wctype in libw. Use
12567 AC_SEARCH_LIBS to see whether we need libsocket.
12568 * configure: Regenerated.
12570 For older changes see ChangeLog-2002
12576 version-control: never