1 2003-09-27 Mark Kettenis <kettenis@gnu.org>
3 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
4 Initialize using ARRAY_SIZE.
6 2003-09-27 Andrew Cagney <cagney@redhat.com>
8 * arch-utils.c (deprecated_init_frame_pc_default): Rename
9 "init_frame_pc_default".
10 * arch-utils.h (deprecated_init_frame_pc_default): Update.
11 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12 * vax-tdep.c (vax_gdbarch_init): Update.
13 * v850-tdep.c (v850_gdbarch_init): Update.
14 * sh64-tdep.c (sh64_gdbarch_init): Update.
15 * s390-tdep.c (s390_gdbarch_init): Update.
16 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
17 * mcore-tdep.c (mcore_gdbarch_init): Update.
18 * h8300-tdep.c (h8300_gdbarch_init): Update.
19 * cris-tdep.c (cris_gdbarch_init): Update.
20 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
22 2003-09-26 Mark Kettenis <kettenis@gnu.org>
25 * Makefile.in (regset_h): Add.
27 2003-09-25 Andrew Cagney <cagney@redhat.com>
29 * frame.h (deprecated_frame_saved_regs): Rename
31 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
32 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
33 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
34 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
35 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
37 2003-09-25 Andrew Cagney <cagney@redhat.com>
39 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
40 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
42 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
43 arm*-*-* do not use the new frame code.
45 2003-09-25 David Carlton <carlton@kealia.com>
47 * c-exp.y: Remove 'register' declarations.
48 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
50 2003-09-25 David Carlton <carlton@kealia.com>
52 * c-exp.y: Include cp-support.h. Add qualified_type.
53 (yylex): Delete nested type hack; add comments.
54 * cp-namespace.c (cp_lookup_nested_type): New function.
55 * cp-support.h: Declare cp_lookup_nested_type.
56 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
57 instead of value_struct_elt_for_reference.
58 * valops.c: Include cp-support.h.
59 (value_aggregate_elt): New function.
60 (value_namespace_elt): Ditto.
61 (value_struct_elt_for_reference): Make static.
62 * value.h: Delete declaration of value_struct_elt_for_reference;
63 add declaration for value_aggregate_elt.
64 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
67 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
69 * stack.c: Include "reggroups.h".
70 (frame_info): Only display registers in all_reggroup.
71 * Makefile.in (stack.o): Update dependencies.
73 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
75 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
76 "add ip, sp #n" in the prologue.
77 (arm_scan_prologue): Ditto.
79 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
81 * MAINTAINERS (write after approval): Add myself.
83 2003-09-25 Andreas Schwab <schwab@suse.de>
85 * m68k-tdep.c: Include "dwarf2-frame.h".
86 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
87 * Makefile.in (m68k-tdep.o): Update dependencies.
89 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
91 * sh-tdep.c (struct frame_extra_info): Remove.
92 (struct sh_frame_cache): New structure.
93 (GET_SOURCE_REG): New macro extracting source register of an opcode.
94 (GET_TARGET_REG): Ditto but target register.
95 (GET_PUSHED_REG): Remove.
96 (IS_MOV_ARG_TO_REG): New macro.
97 (IS_MOV_ARG_TO_IND_R14): New macro.
98 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
99 (IS_MOVW_PCREL_TO_REG): New macro.
100 (IS_MOVL_PCREL_TO_REG): New macro.
101 (IS_SUB_REG_FROM_SP): New macro.
102 (IS_ARG_MOV): Remove.
103 (IS_MOV_TO_R14): Remove.
104 (IS_RESTORE_FP): New macro.
107 (IS_MOV_FP_SP): New macro.
108 (IS_ADD_REG_TO_FP): New macro.
109 (IS_ADD_IMM_FP): New macro.
110 (sh_skip_prologue_hard_way): Remove.
111 (sh_saved_pc_after_call): Remove.
112 (sh_frame_chain): Remove.
113 (sh_find_callers_reg): Remove.
114 (sh_nofp_frame_init_saved_regs): Remove.
115 (sh_fp_frame_init_saved_regs): Remove.
116 (sh_init_extra_frame_info): Remove.
117 (sh_analyze_prologue): New function.
118 (sh_skip_prologue): Remove deprecated code. Rely on new function
119 sh_analyze_prologue when after_prologue fails.
120 (sh_frame_saved_pc): Remove.
121 (sh_alloc_frame_cache): New function.
122 (sh_frame_cache): Ditto.
123 (sh_frame_prev_register): Ditto.
124 (sh_frame_this_id): Ditto.
125 (sh_frame_unwind): New structure defining the heuristic frame
127 (sh_frame_sniffer): New function.
128 (sh_unwind_sp): Ditto.
129 (sh_unwind_pc): Ditto.
130 (sh_unwind_dummy_id): Ditto.
131 (sh_frame_base_address): Ditto.
132 (sh_frame_base): New structure defining new frame base code.
133 (sh_in_function_epilogue_p): New function.
134 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
135 code and to call all new code instead. Initialize dwarf2 and
136 heuristic frame sniffer.
138 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
140 * parser-defs.h (struct exp_descriptor): New definition, containing
141 language-specific info for printing, prefixifying, dumping, and
142 evaluating expressions.
143 (exp_descriptor_standard): Declare new variable.
144 (print_subexp): Make global and declare here (from expprint.c).
145 (dump_subexp): Ditto.
146 (dump_subexp_body_standard): Declare.
147 (operator_length_standard): Declare.
148 (op_name_standard): Declare.
149 (print_subexp): Declare.
150 (print_subexp_standard): Declare.
152 * language.h (struct language_defn): Add la_exp_desc field to hold
153 pointer to table for language-specific operators.
154 Remove evaluate_exp field, which is now in struct exp_descriptor.
156 * parse.c (operator_length): Move most code to new
157 operator_length_standard function. Use language-specific information.
158 (operator_length_standard): New function taking most code from
160 (exp_descriptor_standard): New constant.
162 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
163 and OP_EXTENDED_LAST.
165 * expprint.c (print_subexp): Use language-specific print_subexp.
166 Make global; remove static declaration.
167 Move most code to print_subexp_standard.
168 (print_subexp_standard): New function, containing code formerly in
170 (op_name): Add expression to argument signature.
171 Use langauge-specific op_name.
172 Move most code to op_name_standard.
173 (op_name_standard): New function, containing code formerly in op_name.
174 (dump_subexp): Use new version of op_name function.
175 Use language-specific dump_subexp_body, and move most existing code to
176 dump_subexp_body_standard.
177 (dump_raw_expression): Use new op_name interface.
178 (dump_subexp_body): Move most code to dump_subexp_body_standard.
179 (dump_subexp_body_standard): New function, containing code formerly
182 * language.c (unknown_language): Add default la_exp_desc field and
183 remove evaluate_exp field.
184 (auto_language): Ditto.
185 (local_language): Ditto.
186 * f-lang.c (f_language_defn): Ditto.
187 * c-lang.c (c_language_defn): Ditto.
188 (cplus_language_defn): Ditto.
189 (asm_language_defn): Ditto.
190 (minimal_language_defn): Ditto.
191 * p-lang.c (pascal_language_defn): Ditto.
192 * m2-lang.c (m2_language_defn): Ditto.
193 * objc-lang.c (objc_language_defn): Ditto.
195 * jv-lang.c (exp_descriptor_java): New variable, containing
196 Java-specific expression evaluator.
197 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
199 * scm-lang.c (exp_descriptor_scm): New variable, containing
200 Scheme-specific expression evaluator.
201 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
203 * objc-lang.c (print_object_command): Take evaluate_exp from the
206 * Makefile.in (eval.o): Add dependency on parser-defs.h.
208 * eval.c: Include parser-defs.h for the full declaration of
210 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
212 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
214 * parser-defs.h (operator_length): Declare.
216 * parse.c (length_of_subexp): Use operator_length to get operator
217 lengths and arities for operators.
218 Move most code to new operator_length function.
219 (operator_length): New function absorbing most code from
221 (prefixify_subexp): Remove large case and use operator_length instead.
222 (parse_exp_1): Use renamings:
223 dump_prefix_expression => dump_raw_expression and
224 dump_postfix_expression => dump_prefix_expression.
226 * expression.h (dump_prefix_expression): Rename to ...
227 (dump_raw_expression): New name.
228 (dump_postfix_expression): Rename to ...
229 (dump_prefix_expression): New name.
231 * expprint.c (dump_subexp): Make global. Add comment.
232 Move most existing code to dump_subexp_body.
233 (dump_subexp_body): New function.
234 (dump_prefix_expression): Rename to dump_raw_expression.
235 Remove attempt to print the expression via print_expression: it can't
236 work before the expression is prefixified.
237 (dump_raw_expression): Renamed from dump_prefix_expression.
238 (dump_postfix_expression): Rename to dump_prefix_expression, since
240 Remove 'note' parameter, since this routine must be used on
241 prefixified expression.
242 (dump_prefix_expression): Renamed from dump_postfix_expression.
244 2003-09-22 Jim Blandy <jimb@redhat.com>
246 * dwarf2read.c (read_array_type): When building the type for an
247 array of unspecified length, make sure to choose the upper bound
248 so that the array's total length comes out to be zero --- that's
249 how we represent such arrays.
251 2003-09-22 Michael Chastain <mec@shout.net>
253 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
255 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
257 * top.c (quit_force): Fix indirect call to quit_target so
258 a struct qt_args pointer is passed.
260 2003-09-22 Andrew Cagney <cagney@redhat.com>
262 * arch-utils.h (init_frame_pc_noop): Delete declaration.
263 * arch-utils.c (init_frame_pc_noop): Delete function.
264 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
266 * mips-tdep.c (mips_gdbarch_init): Ditto.
267 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
268 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
270 (DEPRECATED_INIT_FRAME_PC): Delete macro.
271 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
273 (DEPRECATED_INIT_FRAME_PC): Delete macro.
275 2003-09-22 Anthony Green <green@redhat.com>
277 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
280 2003-09-20 Andrew Cagney <cagney@redhat.com>
282 * breakpoint.c: Eliminate ARGSUSED.
283 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
284 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
285 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
286 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
287 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
288 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
289 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
290 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
291 * wince.c, remote-vx.c: Ditto.
293 * cli/cli-script.c: Remove "register" attributes.
294 * config/pa/tm-hppa.h: Ditto.
295 * cli/cli-decode.c: Ditto.
296 * cli/cli-cmds.c: Ditto.
298 2003-09-19 Andrew Cagney <cagney@redhat.com>
300 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
301 DEPRECATED_NPC_REGNUM.
302 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
304 2003-09-19 Christopher Faylor <cgf@redhat.com>
306 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
308 2003-09-19 Jim Blandy <jimb@redhat.com>
310 * macrotab.c (macro_include): Use the correct comparison to find
311 the appropriate place for this inclusion in the list.
313 2003-09-19 Andrew Cagney <cagney@redhat.com>
315 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
316 (DEPRECATED_HPUX_TEXT_END): Define.
317 (deprecated_hpux_text_end): Declare.
318 (struct target_ops): Declare opaque.
319 * hppah-nat.c (text_end): Make static.
320 (deprecated_hpux_text_end): New function.
321 * exec.c (text_end): Delete global variable.
322 (NEED_TEXT_START_END): Do not define.
323 (exec_file_attach): Replace code computing "text_end" code with
324 call to DEPRECATED_HPUX_TEXT_END.
326 2003-09-19 Andrew Cagney <cagney@redhat.com>
328 * utils.c (align_up, align_down): New functions.
329 * defs.h (align_up, align_down): Declare.
330 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
331 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
333 (round_up, round_down): Delete functions.
334 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
336 (ROUND_DOWN, ROUND_UP): Delete macros.
337 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
338 * h8300-tdep.c: Replace "round_up" and "round_down" with
339 "align_up" and "align_down".
340 (round_up, round_down): Delete macros.
341 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
343 (ROUND_UP, ROUND_DOWN): Delete macros.
345 2003-09-18 J. Brobecker <brobecker@gnat.com>
347 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
348 hard-coded constant. Use the proper machine name instead.
350 2003-09-17 Andrew Cagney <cagney@redhat.com>
352 * sparc-tdep.c (legacy_register_name): Delete function.
353 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
354 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
355 * infcmd.c (gdb_register_name): Delete variable.
356 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
357 REGISTER_NAME and "tm.h".
358 * gdbarch.h, gdbarch.c: Regenerate.
359 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
360 REGISTER_NAMES in comments.
361 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
362 * m68klinux-nat.c (regmap): Ditto.
364 2003-09-17 Jim Blandy <jimb@redhat.com>
366 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
368 2003-09-17 Andrew Cagney <cagney@redhat.com>
370 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
371 (ppcnbsd_init_abi): Set "use_struct_convention" to
372 "ppcnbsd_use_struct_convention".
374 2003-09-17 Mark Kettenis <kettenis@gnu.org>
376 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
377 * gdbarch.h, gdbarch.c: Regenerate.
378 (stabs_argument_has_addr): New architecture method.
379 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
380 * arch-utils.c: Include "buildsym.h".
381 (default_stabs_argument_has_addr): New function.
382 * stabsread.c (define_symbol): Use stabs_argument_has_addr
383 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
385 2003-09-17 Andrew Cagney <cagney@redhat.com>
387 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
388 * gdbarch.h, gdbarch.c: Regenerate.
389 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
390 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
391 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
392 * sparcnbsd-tdep.c: Update.
394 2003-09-17 Andrew Cagney <cagney@redhat.com>
396 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
397 * gdbarch.h, gdbarch.c: Regenerate.
398 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
399 * d10v-tdep.c, frame.c: Update.
400 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
401 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
402 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
403 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
404 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
405 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
406 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
407 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
408 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
409 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
410 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
411 * config/pa/nm-hppah.h: Update.
413 2003-09-16 Andrew Cagney <cagney@redhat.com>
415 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
416 "use_struct_convention" to "ppc_linux_use_struct_convention".
417 (ppc_linux_use_struct_convention): New function.
418 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
419 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
420 "rs6000_use_struct_convention".
421 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
423 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
426 2003-09-16 Andrew Cagney <cagney@redhat.com>
428 * buildsym.c: Remove more occurances of "register".
429 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
430 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
431 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
432 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
433 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
434 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
435 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
436 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
438 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
440 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
441 numbers to enumeration values.
442 * sh-tdep.c: Accomodate above change.
443 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
444 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
445 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
446 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
447 (IS_FPUSH): Rename from IS_FMOV.
448 (sh_extract_struct_value_address): Remove useless comment.
449 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
450 instead of own local values.
451 (sh_dump_tdep): Remove.
452 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
453 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
455 2003-09-15 Andrew Cagney <cagney@redhat.com>
457 * doublest.c (convert_floatformat_to_doublest): No longer need to
458 cast "exp_bias" to an int. Reverts 2002-12-04 change.
460 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
462 * values.c (unpack_double): Call floatformat_is_valid.
464 2003-09-15 Mark Kettenis <kettenis@gnu.org>
466 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
467 ps_strings into a long.
469 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
470 _initialize_am64fbsd_nat.
472 2003-09-15 Kevin Buettner <kevinb@redhat.com>
474 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
475 associated with DW_AT_ranges attribute is out of bounds.
477 2003-09-15 David Lecomber <dsl@sources.redhat.com>
479 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
481 2003-09-14 Michael Chastain <mec@shout.net>
483 * config/m68k/nm-apollo68v.h: Delete.
484 * config/m68k/xm-apollo68v.h: Delete.
486 2003-09-14 Andrew Cagney <cagney@redhat.com>
488 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
489 * dcache.c: Update copyrights and descriptions.
490 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
492 2003-09-14 Andrew Cagney <cagney@redhat.com>
494 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
495 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
497 2003-09-14 Andrew Cagney <cagney@redhat.com>
499 * alpha-nat.c: Remove some occurances of "register".
500 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
501 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
502 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
503 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
504 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
505 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
506 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
507 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
508 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
509 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
510 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
511 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
512 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
513 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
514 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
515 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
516 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
517 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
518 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
519 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
520 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
521 * values.c, vax-tdep.c, xcoffread.c: Ditto.
523 2003-09-13 Andrew Cagney <cagney@redhat.com>
525 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
526 * ppc-tdep.h (struct regcache): Declare opaque.
527 * objfiles.h (struct objfile_data): Declare opaque.
528 * cp-support.h (struct objfile): Declare opaque.
529 * linux-nat.h (target_waitstatus): Declare opaque.
531 2003-09-14 Mark Kettenis <kettenis@gnu.org>
533 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
534 (stabs_argument_has_addr): New architecture method.
535 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
536 * arch-utils.c: Include "buildsym.h".
537 (default_stabs_argument_has_addr): New function.
538 * stabsread.c (define_symbol): Use stabs_argument_has_addr
539 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
541 * cris-tdep.c (cris_gdbarch_init): Set
542 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
543 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
544 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
545 * mips-tdep.c (mips_gdbarch_init): Likewise.
546 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
547 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
549 2003-09-13 Andrew Cagney <cagney@redhat.com>
551 * values.c (using_struct_return): Delete "function" and "funcaddr"
553 * value.h (using_struct_return): Update declaration.
554 * infcmd.c (finish_command_continuation): Update.
555 (finish_command): Update.
556 * infcall.c (call_function_by_hand): Update.
557 * eval.c (evaluate_subexp_standard): Update.
559 2003-09-13 Christopher Faylor <cgf@redhat.com>
561 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
562 SSE registers since gdb will not operate correctly without this.
563 Restore include file ordering munged in previous change.
564 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
566 2003-09-13 Mark Kettenis <kettenis@gnu.org>
568 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
570 * gdbarch.c, gdbarch.h: Updated.
571 * infcall.c (call_function_by_hand): Update.
572 * stabsread.c (define_symbol): Updated.
574 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
576 2003-09-12 Christopher Faylor <cgf@redhat.com>
578 * win32-nat.c: Reorganize so that defines used by target headers are
579 actually defined by the system headers.
580 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
581 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
583 2003-09-12 Jim Blandy <jimb@redhat.com>
585 * dbxread.c (read_dbx_symtab): Don't report an internal error if
586 the file has no .data, .bss, or .rodata sections. Instead wait
587 until we see a variable alleged to live in one of those sections.
589 * dbxread.c (read_dbx_symtab): If we have no .data section and no
590 .bss section, presume that any variables we find live in the
593 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
594 offsets for global and static variables.
596 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
597 symbol types are, by definition, in the .data section, so it is
598 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
599 If there is no .data section, there should be no N_DATA or N_DATA
602 2003-09-12 Mark Kettenis <kettenis@gnu.org>
604 * amd64fbsd-tdep.c: Fix sigtramp recognition.
605 (amd64fbsd_sigcontext_addr): Rewrite.
606 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
608 (amd64fbsd_sc_reg_offset): Initialize with correct values.
609 (amd64fbsd_init_abi): Fix typo.
611 2003-09-12 Andrew Cagney <cagney@redhat.com>
613 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
614 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
616 2003-09-12 Andrew Cagney <cagney@redhat.com>
618 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
619 "entry_file_highpc". Update comments.
620 * defs.h (deprecated_inside_entry_file): Rename
622 * blockframe.c (deprecated_inside_entry_file): Rename
624 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
625 * vax-tdep.c (vax_frame_chain): Update.
626 * sh64-tdep.c (sh64_frame_chain): Update.
627 * sh-tdep.c (sh_frame_chain): Update.
628 * rs6000-tdep.c (rs6000_frame_chain): Update.
629 * ns32k-tdep.c (ns32k_frame_chain): Update.
630 * mips-tdep.c (mips_frame_chain): Update.
631 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
632 * m32r-tdep.c (m32r_frame_this_id): Update.
633 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
634 * frv-tdep.c (frv_frame_this_id): Update.
635 * d10v-tdep.c (d10v_frame_this_id): Update.
636 * cris-tdep.c (cris_frame_chain): Update.
637 * blockframe.c (legacy_frame_chain_valid): Update.
638 * avr-tdep.c (avr_frame_this_id): Update.
639 * arm-tdep.c (arm_prologue_this_id): Update.
640 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
641 * objfiles.c (objfile_relocate): Update.
642 * mipsread.c (mipscoff_symfile_read): Update.
643 (mipscoff_symfile_read): Update.
644 * mdebugread.c (parse_partial_symbols): Update.
645 * dwarfread.c (read_file_scope): Update.
646 * dwarf2read.c (read_file_scope): Update.
647 * dbxread.c (read_dbx_symtab): Update.
648 (read_dbx_symtab): Update.
649 * coffread.c (complete_symtab): Update.
651 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
653 * top.c (quit_target): New static helper function.
654 (quit_force): Moved code to quit_target(). Call quit_target()
655 via catch_errors() to catch errors during quit.
657 2003-09-11 David Carlton <carlton@kealia.com>
659 * buildsym.c (finish_block): Use allocate_block to allocate the
661 * mdebugread.c (new_block): Add FIXME.
663 2003-09-11 David Carlton <carlton@kealia.com>
665 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
666 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
667 (recursive_dump_type): Ditto.
668 * printcmd.c (print_formatted): Ditto.
669 * typeprint.c (print_type_scalar): Ditto.
670 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
671 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
672 * cp-support.h: Declare cp_check_possible_namespace_symbols,
673 maint_cplus_cmd_list.
674 * cp-support.c: Make maint_cplus_cmd_list extern.
675 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
677 (lookup_symbol_file): Look in possible namespace blocks when
679 (initialize_namespace_symtab): New.
680 (get_possible_namespace_block, free_namespace_block)
681 (check_possible_namespace_symbols)
682 (check_possible_namespace_symbols_loop)
683 (check_one_possible_namespace_symbol)
684 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
685 (_initialize_cp_namespace): Ditto.
686 * block.h: Declare allocate_block.
687 * block.c (allocate_block): New.
688 * jv-lang.c (get_java_class_symtab): Allocate blocks via
690 * symfile.h: Update declaration of add_psymbol_to_list.
691 * symfile.c (add_psymbol_to_list): Return the partial symbol in
693 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
694 scan_partial_symbols_call.
695 (scan_partial_symbols): Add NAMESPACE argument; update calls to
697 (add_partial_symbol): If necessary, scan mangled names for names
699 (add_partial_namespace): Add NAMESPACE argument; generate partial
700 symbols associated to namespaces.
701 (add_partial_enumeration): Add NAMESPACE argument.
702 (new_symbol): Allow namespace syms.
703 (read_namespace): Generate namespace syms.
704 * objfiles.h: Add opaque declaration of struct symtab.
705 (struct objfile): Add cp_namespace_symtab member.
706 * objfiles.c (allocate_objfile): Set
707 objfile->cp_namespace_symtab.
708 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
709 dictionary_h, command_h.
711 2003-09-11 Andrew Cagney <cagney@redhat.com>
713 * rs6000-tdep.c (rs6000_push_dummy_call): Use
714 regcache_raw_write_signed to set SP_REGNUM, move the operation to
715 near the function's end.
716 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
717 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
718 regcache_raw_write_signed to set SP_REGNUM.
720 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
722 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
723 orig_addrs is set up properly.
725 2003-09-11 Andrew Cagney <cagney@redhat.com>
727 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
728 * gdbarch.h, gdbarch.c: Re-generate.
729 * infcall.c (call_function_by_hand): Update.
730 * hppa-tdep.c (hppa_push_arguments): Update.
731 * ada-lang.c (place_on_stack): Update.
732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
733 * sparc-tdep.c (sparc_gdbarch_init): Update.
734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
735 * hppa-tdep.c (hppa_gdbarch_init): Update.
736 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
739 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
741 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
742 register do need a frame.
744 2003-09-11 Andrew Cagney <cagney@redhat.com>
746 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
747 buildable since GDB 5.0.
748 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
749 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
750 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
751 * irix4-nat.c: Delete file.
752 * config/mips/irix4.mh: Delete file.
753 * config/mips/irix3.mh: Delete file.
754 * config/mips/irix3.mt: Delete file.
755 * config/mips/tm-irix3.h: Delete file.
756 * config/mips/nm-irix3.h: Delete file.
757 * config/mips/xm-irix3.h: Delete file.
758 * config/mips/nm-irix4.h: Delete file.
759 * config/mips/xm-irix4.h: Delete file.
760 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
762 2003-09-10 J. Brobecker <brobecker@gnat.com>
764 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
765 * Makefile.in (hppa-tdep.o): Update dependencies.
767 2003-09-10 James E Wilson <wilson@specifixinc.com>
769 * MAINTAINERS: Change my e-mail address. Move to paper trail
772 2003-09-10 Kevin Buettner <kevinb@redhat.com>
774 * MAINTAINERS (frv): New ISA entry.
776 2003-09-10 Kevin Buettner <kevinb@redhat.com>
778 * frv-tdep.c (dis-asm.h): Include.
779 * Makefile.in (frv-tdep.o): Update dependencies.
781 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
783 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
784 Fix typo for high range of floating registers.
786 2003-09-09 David Carlton <carlton@kealia.com>
788 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
789 highpc initialization here out of scan_partial_symbols.
790 (scan_partial_symbols): Restructure into a recursive version,
791 calling add_partial_namespace and add_partial_enumeration when
793 (add_partial_namespace): New.
794 (add_partial_enumeration, locate_pdi_sibling): Ditto.
796 2003-09-09 Andrew Cagney <cagney@redhat.com>
798 * rs6000-tdep.c (ppc_push_return_address): Delete function.
799 (rs6000_push_dummy_call): Set LR to BP_ADDR.
800 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
801 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
803 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
804 (rs6000_push_dummy_call): Set the "TOC" register.
806 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
807 methods "max_register_raw_size", "max_register_virtual_size" or
808 "register_virtual_size".
810 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
812 * MAINTAINERS: Update my e-mail address.
814 2003-09-09 Andrew Cagney <cagney@redhat.com>
816 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
817 (rs6000_push_dummy_call): Store the struct return address.
818 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
820 2003-09-09 Andrew Cagney <cagney@redhat.com>
822 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
823 "ppc_sysv_abi_push_arguments".
824 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
825 "ppc_sysv_abi_push_arguments".
826 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
827 instead of "push_arguments".
828 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
830 2003-09-09 Andrew Cagney <cagney@redhat.com>
832 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
833 instead of CALL_DUMMY_ADDRESS.
835 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
837 * p-lang.c: Eliminate "register".
846 * objc-lang.c: Ditto.
848 2003-09-09 Nick Clifton <nickc@redhat.com>
850 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
852 2003-09-04 Andrew Cagney <cagney@redhat.com>
854 * avr-tdep.c: Include "dis-asm.h".
855 * cris-tdep.c: Include "dis-asm.h".
856 (cris_delayed_get_disassembler): Use "struct disassemble_info"
857 instead of corresponding typedef.
858 * h8300-tdep.c: Include "dis-asm.h".
859 * ia64-tdep.c: Include "dis-asm.h".
860 * i386-tdep.c: Include "dis-asm.h".
861 (i386_print_insn): Use "struct disassemble_info" instead of
862 corresponding typedef.
863 * m68k-tdep.c: Include "dis-asm.h".
864 * mcore-tdep.c: Include "dis-asm.h".
865 * mips-tdep.c: Include "dis-asm.h".
866 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
867 instead of corresponding typedef.
868 * ns32k-tdep.c: Include "dis-asm.h".
869 * s390-tdep.c: Include "dis-asm.h".
870 * sparc-tdep.c: Include "dis-asm.h".
871 * vax-tdep.c: Include "dis-asm.h".
872 * v850-tdep.c: Include "dis-asm.h".
873 * mn10300-tdep.c: Include "dis-asm.h".
874 * rs6000-tdep.c: Include "dis-asm.h".
875 * xstormy16-tdep.c: Include "dis-asm.h".
876 (_initialize_xstormy16_tdep): Delete "extern" declaration of
877 print_insn_xstormy16.
878 * Makefile.in (v850-tdep.o): Update dependencies.
879 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
880 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
881 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
882 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
883 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
884 (gdbarch_h): Remove $(dis_asm_h).
885 * disasm.c: Include "dis-asm.h".
886 (dis_asm_read_memory): Use "struct disassemble_info" instead of
887 corresponding typedef.
888 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
889 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
890 * gdbarch.sh: Do not include "dis-asm.h".
891 (struct disassemble_info): Declare opaque.
892 (TARGET_PRINT_INSN): Update declaration.
893 * gdbarch.h, gdbarch.c: Re-generate.
895 2003-09-08 Andrew Cagney <cagney@redhat.com>
897 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
898 CALL_DUMMY_ADDRESS, change to a predicate.
899 * gdbarch.h, gdbarch.c: Re-generate.
900 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
901 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
902 * infcall.c (call_function_by_hand): Ditto.
903 * sparc-tdep.c (sparc_push_return_address): Ditto.
904 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
905 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
906 CALL_DUMMY_ADDRESS with entry_point_address.
907 * v850-tdep.c (v850_push_return_address): Ditto.
908 * s390-tdep.c (s390_push_return_address): Ditto.
909 * rs6000-tdep.c (ppc_push_return_address): Ditto.
910 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
911 * mcore-tdep.c (mcore_push_return_address): Ditto.
912 * cris-tdep.c (cris_push_return_address): Ditto.
913 * arm-tdep.c (arm_push_return_address): Ditto.
915 2003-09-08 Andrew Cagney <cagney@redhat.com>
917 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
918 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
919 and REG_UNMODIFIED to REG_SAME_VALUE.
920 (execute_cfa_program): Update.
921 (dwarf2_frame_cache): Update. Initialize table to
922 REG_UNSPECIFIED, complain if CFI fails to specify a register's
924 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
926 2003-09-08 Andrew Cagney <cagney@redhat.com>
928 * gnu-nat.c: Remove "inline" function attribute.
929 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
931 2003-09-08 Kevin Buettner <kevinb@redhat.com>
933 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
936 2003-09-08 Kevin Buettner <kevinb@redhat.com>
938 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
939 (frame_extra_info): Rename this struct to frv_unwind_cache.
940 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
941 Add fields ``prev_sp'' and ``base''.
942 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
943 (frv_saved_pc_after_call, frv_init_extra_frame_info)
944 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
946 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
947 Revise all callers. Fill in the unwind cache argument and make
948 other adjustments to account for new frame mechanisms.
949 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
950 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
951 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
952 (frv_frame_unwind, frv_frame_base): New structs.
953 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
954 additional arguments expected by this method and adjust function
956 (frv_gdbarch_init): Remove calls to the following functions:
957 set_gdbarch_deprecated_init_frame_pc(),
958 set_gdbarch_deprecated_saved_pc_after_call(),
959 set_gdbarch_deprecated_frame_chain(),
960 set_gdbarch_deprecated_frame_saved_pc(),
961 set_gdbarch_deprecated_frame_init_saved_regs(),
962 set_gdbarch_deprecated_push_arguments(),
963 set_gdbarch_deprecated_push_return_address(),
964 set_gdbarch_deprecated_pop_frame(),
965 set_gdbarch_deprecated_call_dummy_words(),
966 set_gdbarch_deprecated_sizeof_call_dummy_words(),
967 set_gdbarch_deprecated_init_extra_frame_info(),
968 set_gdbarch_deprecated_dummy_write_sp(), and
969 set_gdbarch_deprecated_pc_in_call_dummy().
970 Add calls to the following functions:
971 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
972 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
973 frame_base_set_default().
974 * Makefile.in (frv-tdep.o): Update dependencies.
976 2003-09-09 Mark Kettenis <kettenis@gnu.org>
978 * dwarf2-frame.c (read_encoded_value): Add support for
979 DW_EH_PE_aligned encoding.
981 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
983 * infrun.c (normal_stop): Don't print a message if the inferior
986 2003-09-08 Jim Blandy <jimb@redhat.com>
988 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
989 * dbxread.c: #include "gdb_assert.h".
990 (read_dbx_symtab): If the objfile has no .data section, use the
991 section index for the .bss section instead.
993 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
995 * frame.c (deprecated_safe_get_selected_frame): New function.
996 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
997 * findvar.c (read_var_value): Call it.
999 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1001 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1002 (sh64-tdep.o): Add dependencies.
1003 * configure.tgt: Add FIXME to sh-*-linux*.
1004 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1005 (sh_gdbarch_init): Always set correct sh_show_regs function
1006 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1007 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1008 * sh64-tdep.c: New file, containing all sh64 related code from
1010 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1011 * config/sh/linux.mt (TDEPFILES): Ditto.
1012 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1013 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1014 * config/sh/wince.mt (TDEPFILES): Ditto.
1016 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1018 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1019 (stop_wait_callback): Handle !lp->signalled also.
1020 (lin_lwp_has_pending, flush_callback): New functions.
1021 (lin_lwp_wait): Call flush_callback.
1022 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1023 (linux_proc_pending_signals): New function.
1024 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1026 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1028 From Nick Kelsey <nickk@ubicom.com>:
1029 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1030 when the stop PC is at the beginning of a function also.
1032 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1034 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1035 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1037 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1039 * sol-thread.c: Include "gdb_string.h".
1041 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1043 * gcore.c: Reorder include files in alphabetical order. Include
1044 "gdb_assert.h". Various coding style fixes.
1045 (derive_stack_segment, derive_heap_segment): Replace check for
1046 non-null BOTTOM and TOP with gdb_assert.
1047 (derive_heap_segment): Replace check for successful creation of
1048 ZERO with gdb_assert.
1049 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1051 2003-09-04 Andrew Cagney <cagney@redhat.com>
1053 * thread-db.c (verbose_dlsym): New function.
1054 (thread_db_load): Use verbose_dlsym
1055 (thread_db_new_objfile): Print that libthread_db was loaded, and
1056 that thread debugging was enabled.
1058 2003-09-04 Andrew Cagney <cagney@redhat.com>
1060 * configure.tgt: Add "mips64*-*-*" target. Delete
1061 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1062 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1063 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1064 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1065 mips*-sony-*, and mips64*-*-elf* targets.
1066 * config/mips/embedl.mt: Delete file.
1067 * config/mips/embedl64.mt: Delete file.
1068 * config/mips/mips.mt: Delete file.
1069 * config/mips/mips64.mt: Delete file.
1070 * config/mips/tm-embed.h: Delete file.
1071 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1072 * config/mips/embed64.mt: Delete out-of-date comment.
1074 2003-09-04 Andrew Cagney <cagney@redhat.com>
1076 * hppa-tdep.c (hppa_gdbarch_init): Set
1077 "have_nonsteppable_watchpoint".
1078 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1079 * mips-tdep.c (mips_dump_tdep): Do not print
1080 HAVE_NONSTEPPABLE_WATCHPOINT.
1081 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1082 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1083 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1084 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1086 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1088 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1089 unused code. Add comment.
1091 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1093 * breakpoint.c (watchpoint_check): Check for pc being in an
1094 epilogue if watchpoint frame couldn't be found.
1096 2003-09-04 Andrew Cagney <cagney@redhat.com>
1098 * Makefile.in: Re-generate all dependencies.
1100 2003-09-03 Andrew Cagney <cagney@redhat.com>
1102 * arch-utils.h (legacy_print_insn): Delete declaration.
1103 * arch-utils.c (legacy_print_insn): Delete function.
1104 * disasm.c (deprecated_tm_print_insn_info): Delete.
1105 (_initialize_disasm): Delete function, contained code initializing
1106 deprecated_tm_print_insn_info.
1107 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1108 (deprecated_tm_print_insn_info): Delete.
1109 (TARGET_PRINT_INSN): Do not provide a default.
1110 * gdbarch.h, gdbarch.c: Re-generate.
1112 2003-09-03 Andrew Cagney <cagney@redhat.com>
1114 * disasm.c (fprintf_disasm): New function.
1115 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1116 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1117 reverts 2003-08-14 change.
1118 (_initialize_disasm): Call "init_disassemble_info", instead of
1119 INIT_DISASSEMBLE_INFO_NO_ARCH.
1121 2003-09-03 Michael Snyder <msnyder@redhat.com>
1123 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1125 2003-09-03 Andrew Cagney <cagney@redhat.com>
1127 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1128 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1129 * symfile.c (syms_from_objfile): Update.
1130 (reread_symbols): `Update
1131 * exec.c (exec_file_attach): Update.
1132 (exec_file_attach): Update.
1133 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1135 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1137 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1139 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1141 (arm_get_cache): Delete macro.
1142 (struct arm_prologue_cache): Update comments. Make saved_regs into
1143 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1145 (thumb_scan_prologue): Update for cache changes. Don't call
1146 DEPRECATED_PC_IN_CALL_DUMMY.
1147 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1148 argument and use it in desperation search for our prologue. Do not
1149 search past the specified PC.
1150 (arm_make_prologue_cache): Simplify.
1152 (arm_prologue_this_id, arm_prologue_prev_register)
1153 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1154 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1155 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1156 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1157 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1159 (arm_frame_chain_valid, arm_find_callers_reg)
1160 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1161 (arm_pop_frame): Delete obsolete methods.
1162 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1164 (arm_gdbarch_init): Update for new frame methods. Register prologue
1165 and sigtramp unwinders. Set the default frame base method.
1167 * Makefile.in (arm-tdep.o): Update dependencies.
1168 * varobj.c (find_frame_addr_in_frame_chain): Call
1169 get_frame_base_address.
1170 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1172 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1174 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1175 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1176 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1177 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1178 Take NEXT_FRAME and CACHE arguments. Call
1179 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1180 Set unwound_pc in CACHE instead of modifying the frame argument.
1181 Don't bother checking the frame type when looking for sigtramp
1183 (arm_make_prologue_cache, arm_frame_chain)
1184 (arm_init_extra_frame_info): New functions.
1186 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1188 * arm-tdep.c (arm_get_cache): Define.
1189 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1190 unwound_sp, unwound_pc, and saved_regs.
1191 (thumb_scan_prologue): Take a cache instead of the frame.
1192 (arm_scan_prologue): Likewise.
1193 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1194 instead of a temporary frame.
1195 (arm_init_extra_frame_info): Allocate and use a cache.
1196 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1198 2003-09-03 Andrew Cagney <cagney@redhat.com>
1200 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1201 * config/mips/wince.mt (TM_CLIBS): Ditto.
1202 * config/sh/wince.mt (TM_CLIBS): Ditto.
1203 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1204 * config/sparc/sp64.mt (CC): Delete.
1206 2003-09-03 Andrew Cagney <cagney@redhat.com>
1208 * defs.h: Do not include "arch-utils.h".
1209 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1210 GDB_MULTI_ARCH_PURE.
1211 * configure.in (GDB_MULTI_ARCH): Do not define.
1212 * configure, config.in: Regenerate.
1213 * configure.tgt: Do not set variable "gdb_multi_arch".
1214 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1215 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1216 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1217 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1218 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1219 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1220 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1221 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1222 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1223 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1224 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1225 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1226 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1227 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1228 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1229 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1230 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1231 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1233 2003-08-30 Michael Chastain <mec@shout.net>
1235 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1236 * config/m68k/nm-hp300hpux.h: Delete.
1237 * config/m68k/tm-hp300hpux.h: Delete.
1238 * config/m68k/xm-hp300hpux.h: Delete.
1239 * config/m68k/xm-hp300bsd.h: Delete.
1240 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1241 tm-hp300hpux.h, xm-hp300hpux.h.
1242 * somsolib.c: Remove comment about hp300 shared libraries.
1244 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1246 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1247 Only define PTRACE_GET_THREAD_AREA is not already defined.
1248 Various style fixes in code and comments and some additional
1249 spelling fixes in comments. Move after functions dealing with
1251 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1254 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1255 frame_unwind_register_unsigned instead of
1256 frame_unwind_unsigned_register.
1258 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1260 * configure.in: Search for gethostbyname in libnsl.
1261 * configure: Regenerated.
1263 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1265 * configure.in: Remove redundant AC_MSG_RESULT in check for
1266 uintptr_t in stdint.h.
1267 * configure: Regenerated.
1269 * amd64-nat.h (struct regcache): Add opaque declaration.
1271 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1272 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1273 Change "register array" to "register cache" in comments.
1274 (x86_64_linux_gregset64_reg_offset): New variable.
1275 (GETREGS_SUPPLIES): Remove macro.
1276 (supply_gregset): Call amd64_supply_native_gregset instead of
1277 x86_64_linux_supply_gregset.
1278 (fill_gregset): Rename `regno' to `regnum'. Call
1279 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1280 (store_regs): Rename `regno' to `regnum'.
1281 (store_fpregs): Rename `regno' to `regnum'.
1282 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1283 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1284 Reorganize function a bit.
1285 (store_inferior_registers): Rename `regno' to `regnum'. Use
1286 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1287 Reorganize function a bit.
1288 (_initialize_x86_64_linux_nat): New function.
1289 * config/i386/x86-64linux.mh.
1291 2003-08-29 Andrew Cagney <cagney@redhat.com>
1293 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1294 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1295 (target_remove_watchpoint): Delete macro.
1296 (target_insert_watchpoint): Delete macro.
1297 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1298 (remote_mips_stopped_by_watchpoint): Delete declaration.
1299 (remote_mips_remove_watchpoint): Delete declaration.
1300 (remote_mips_set_watchpoint): Delete declaration.
1301 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1302 * remote-mips.c (_initialize_remote_mips): Set
1303 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1304 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1305 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1306 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1307 (mips_stopped_by_watchpoint): Rename
1308 remote_mips_stopped_by_watchpoint.
1309 (mips_can_hardware_watchpoint): Rename
1310 remote_mips_can_use_hardware_watchpoint, update function
1313 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1315 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1316 USER_DS. We haven't given them a register number yet.
1318 * amd64-nat.h: New file.
1319 * amd64-nat.c: New file.
1320 * amd64fbsd-nat.c: Include "amd64-nat.h".
1321 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1322 (amd64fbsd32_r_reg_offset): New variable.
1323 (supply_gregset): Simply call amd64_supply_native_gregset.
1324 (fill_gregset): Rename `regno' to `regnum'. Simply call
1325 amd64_collect_native_gregset.
1326 (fill_fpregset): Rename `regno' to `regnum'.
1327 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1328 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1329 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1330 `fpregset_t'. Call amd64_supply_native_gregset instead of
1331 supply_gregset. Call x86_64_supply_fxsave instead of
1333 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1334 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1335 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1336 `fpregset_t'. Call amd64_collect_native_gregset instead of
1337 fill_gregset. Call x86_64_collect_fxsave instead of
1339 (_initialize_am64fbsd_nat): Initialize
1340 amd64_native_gregset32_reg_offset and
1341 amd64_native_gregset64_reg_offset.
1342 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1344 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1345 null pointer. Fix typo in comment.
1347 * regcache.c (supply_register): Reimplement to call
1348 regcache_raw_supply.
1349 (regcache_collect): Reimplement by calling regcache_raw_collect.
1351 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1353 * regcache.c (register_buffer): Consitify first argument.
1354 (regcache_raw_supply, regcache_raw_collect): New
1357 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1359 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1360 by Nathan J. Williams.
1362 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1364 * lin-lwp.c (wait_lwp): New function, copied from
1365 stop_wait_callback. Clean up.
1366 (stop_wait_callback): Use wait_lwp.
1368 2003-08-28 Andrew Cagney <cagney@redhat.com>
1370 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1371 flavour and disassembler options.
1372 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1373 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1374 deprecated_tm_print_insn_info.
1376 2003-08-27 Andrew Cagney <cagney@redhat.com>
1378 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1379 Use target_read_memory.
1380 (s390_get_frame_info): Update. Do not reference
1381 deprecated_tm_print_insn_info.
1382 (s390_check_function_end, s390_is_sigreturn): Ditto.
1384 2003-08-27 Andrew Cagney <cagney@redhat.com>
1386 * Makefile.in (cris-tdep.o): Update dependencies.
1387 * cris-tdep.c: Include "gdb_assert.h".
1388 (cris_gdbarch_init): Set print_insn.
1389 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1390 (cris_delayed_get_disassembler): Simplify, directly call the
1391 disassembler returned by cris_get_disassembler.
1392 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1393 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1394 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1395 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1396 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1397 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1398 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1399 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1400 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1401 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1402 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1403 (gdb_print_insn_sparc): Delete function.
1404 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1405 deprecated_tm_print_insn_info.
1406 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1407 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1408 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1409 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1410 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1411 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1412 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1413 (s390_gdbarch_init): Set print_insn.
1415 2003-08-27 Andrew Cagney <cagney@redhat.com>
1417 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1418 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1419 * infcall.c (call_function_by_hand): Convert the entry point
1420 address into a code address.
1422 2003-08-27 Andrew Cagney <cagney@redhat.com>
1424 * dsrec.c: Include "gdb_string.h".
1425 * Makefile.in (dsrec.o): Update dependencies.
1427 2003-08-27 Michael Chastain <mec@shout.net>
1429 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1431 2003-08-27 Andrew Cagney <cagney@redhat.com>
1433 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1434 (alpha_osf1_init_abi): Do not set call_dummy_address.
1436 2003-08-27 David Carlton <carlton@kealia.com>
1438 From Randolph Chung <tausq@debian.org>:
1439 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1440 compiles with -Wformat-nonliteral -Werror.
1442 2003-08-26 Jim Blandy <jimb@redhat.com>
1444 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1445 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1446 bfd_lookup_symbol, since we only want symbols in code sections.
1447 (look_for_base): Pass zero as the SECT_FLAGS argument to
1448 bfd_lookup_symbol, since we're not concerned about which section
1451 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1453 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1454 we are frameless or the return address register is already known.
1456 2003-08-26 Andrew Cagney <cagney@redhat.com>
1458 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1459 in size. Add comments.
1461 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1463 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1464 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1466 2003-08-26 Jason Merrill <jason@redhat.com>
1468 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1469 case out of #ifdef MIPS block.
1471 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1474 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1475 available before calling SECT_OFF_TEXT.
1476 * PROBLEMS: Remove description of java/1322.
1478 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1480 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1481 bof, and nat0-nat127 as pseudo-registers.
1482 (ia64_frame_cache): New struct used to cache frame info.
1483 (ia64_register_reggroup_p): New routine used to override default
1484 register grouping so registers without names are still saved and
1486 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1488 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1489 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1490 (ia64_alloc_frame_cache): New routine to create a new
1492 (examine_prologue): Change prototype to add next_frame pointer.
1493 Assume frameless until otherwise proven. Verify that the cfm for
1494 current frame matches the cfm that should occur for the prologues
1495 alloc insn and if equal, mark as not frameless. At end of routine,
1496 if not frameless, calculate registers for the previous frame and store
1497 in the cache, if a cache is provided.
1498 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1499 and pass 0 for next_frame.
1500 (ia64_store_return_value): Change to use convert_typed_floating()
1501 instead of calling ia64_convert_to_raw().
1502 (ia64_extract_return_value): Change to use convert_typed_floating()
1503 instead of calling ia64_convert_to_virtual().
1504 (ia64_frame_cache): New routine to support new frame model.
1505 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1506 (ia64_frame_sniffer): Ditto.
1507 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1508 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1509 (ia64_sigtramp_frame_prev_register): Ditto.
1510 (ia64_sigtramp_frame_sniffer): Ditto.
1511 (ia64_frame_base_address): Ditto.
1512 (ia64_extract_struct_value_address): Change to issue error message.
1513 (ia64_frame_align): New routine to align sp.
1514 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1515 (ia64_push_arguments): Removed. Logic moved to
1516 ia64_push_dummy_call().
1517 (ia64_push_return_address): Ditto.
1518 (ia64_unwind_dummy_id): New function.
1519 (ia64_unwind_pc): Ditto.
1520 (ia64_convert_register_p): Ditto.
1521 (ia64_register_to_value): Ditto.
1522 (ia64_value_to_register): Ditto.
1523 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1524 (ia64_register_byte, ia64_register_raw_size): Ditto.
1525 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1526 (ia64_saved_pc_after_call): Ditto.
1527 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1528 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1529 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1530 (ia64_register_convert_to_raw): Ditto.
1531 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1532 (ia64_init_extra_frame_info): Ditto.
1533 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1534 (ia64_gdbarch_init): Remove registering of deprecated functions that
1535 are no longer used. Add registration of new gdbarch functions.
1536 Remove registering deprecated_write_sp. Replace
1537 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1538 Delete set_gdbarch_deprecated_register_convertible(),
1539 set_gdbarch_deprecated_register_convert_to_virtual(), and
1540 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1541 set_gdbarch_deprecated_register_size(),
1542 set_gdbarch_deprecated_register_bytes(),
1543 set_gdbarch_pcregnum(),
1544 set_gdbarch_deprecated_register_byte(),
1545 set_gdbarch_deprecated_register_raw_size(),
1546 set_gdbarch_deprecated_max_register_raw_size(),
1547 set_gdbarch_deprecated_register_virtual_size(),
1548 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1549 Replace set_gdbarch_deprecated_extract_return_value() with
1550 set_gdbarch_extract_return_value(). Remove calls to:
1551 set_gdbarch_deprecated_saved_pc_after_call();
1552 set_gdbarch_deprecated_frame_chain(),
1553 set_gdbarch_deprecated_frame_saved_pc(),
1554 set_gdbarch_deprecated_frame_init_saved_regs(),
1555 set_gdbarch_deprecated_get_saved_register(),
1556 set_gdbarch_deprecated_call_dummy_words(),
1557 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1558 set_gdbarch_deprecated_init_extra_frame_info(),
1559 set_gdbarch_deprecated_frame_args_address(),
1560 set_gdbarch_deprecated_frame_locals_address(),
1561 and set_gdbarch_deprecated_dummy_write_sp().
1562 Add set_gdbarch_convert_register_p(),
1563 set_gdbarch_register_to_value(),
1564 set_gdbarch_value_to_register(),
1565 set_gdbarch_push_dummy_call(),
1566 set_gdbarch_frame_align(),
1567 set_gdbarch_unwind_dummy_id(),
1568 set_gdbarch_unwind_pc(),
1569 frame_unwind_append_sniffer(),
1570 frame_unwind_append_sniffer(),
1571 and frame_base_set_default().
1573 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1575 * configure.tgt: Document need for special "mipsisa64" handling.
1576 (mipsisa64*-*-linux64): Handle as target linux64.
1577 (mipsisa64*-*-*): Handle as target embed64.
1579 2003-08-18 Michael Chastain <mec@shout.net>
1581 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1584 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1586 * i387-tdep.h: Update copyright date.
1587 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1589 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1590 CFLAGS games to reflect reality.
1592 2003-08-24 Andrew Cagney <cagney@redhat.com>
1594 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1595 GDB_MULTI_ARCH is always non-zero.
1596 * osabi.c (_initialize_gdb_osabi): Ditto.
1597 (gdbarch_init_osabi): Ditto.
1598 * sparc-tdep.c: Ditto for #if code.
1600 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1602 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1604 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1606 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1607 x86_64_supply_fxsave.
1608 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1609 x86_64_supply_fxsave.
1610 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1611 x86_64_supply_fxsave.
1613 2003-08-23 Andreas Jaeger <aj@suse.de>
1615 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1618 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1620 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1621 i387_supply_register.
1622 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1623 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1625 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1627 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1629 * i386bsd-nat.c (supply_fpregset): Adjust call to
1631 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1632 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1634 (store_inferior_registers): Remove extraneous whitespace. Call
1635 i387_fill_fsave instead of fill_fpregset.
1636 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1637 (supply_fpregset): Likewise.
1638 * i386v4-nat.c (supply_fpregset): Adjust call to
1640 * i386-interix-nat.c (supply_fpregset): Adjust call to
1642 * i386-linux-nat.c (supply_fpregset): Adjust call to
1644 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1645 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1646 i387supply_fsave and i387_supply_fxsave.
1647 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1648 Incorporate code from `i387_supply_register.
1649 (i387_supply_register): Remove.
1650 (i387_supply_fxsave): Add `regnum' argument.
1652 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1654 (i387_supply_register): remove prototype.
1657 2003-08-22 Michael Chastain <mec@shout.net>
1659 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1660 Add lines for files in gdb/testsuite/gdb.cp/* that are
1661 still not 8.3 unique.
1663 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1665 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1666 TYPE_VPTR_FIELDNO is valid.
1668 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1670 * utils.c (set_width_command): Remove prototypes.
1671 (set_screen_size): New prototype.
1672 (init_page_info): Simplify by fetching the screen size from
1673 Readline. Call set_screen_size.
1674 (set_screen_size): New function.
1675 (set_width): Add missing whitespace in comment.
1676 (set_width_command): Call set_screen_size.
1677 (set_height_command): New function.
1678 (initialize_utils): Fix formatting. Make "set height" command
1679 call set_height_command. Remove redundant code that turns off
1680 pagination if output isn't a terminal. Remove redundant call to
1683 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1685 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1686 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1687 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1688 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1690 (sparc64_register_info): Give the reister with number
1691 SPARC64_STATE_REGNUM a name.
1692 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1694 (sparc64_push_dummy_call): Take BIAS into account when checking
1696 (sparc_software_single_step): Remove assertions that check whether
1697 NPC and NNPC were zero.
1698 (sparc_supply_rwindow): Make public. Merge functionality with
1699 sparc64_supply_rwindow.
1700 (sparc_fill_rwindow): Make public. Merge functionality with
1701 sparc64_fill_rwindow.
1702 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1703 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1704 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1705 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1706 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1708 * reggroups.c: Add whitespace after declarations of local
1709 variables in functions.
1711 2003-08-21 Michael Chastain <mec@shout.net>
1713 * gdbtypes.h: Change array bound type from an int to enum.
1715 2003-08-21 Andrew Cagney <cagney@redhat.com>
1717 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1718 * config/sparc/tm-sparc.h: Ditto.
1719 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1721 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1723 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1725 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1726 (register_objfile_data, set_objfile_data, objfile_data): New
1728 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1730 (allocate_objfile): Call objfile_alloc_data.
1731 (free_objfile): Call objfile_free_data.
1732 (struct objfile_data): New.
1733 (struct objfile_data_registration): New.
1734 (struct objfile_data_registry): New.
1735 (objfile_data_registry): New variable.
1736 (register_objfile_data): New function.
1737 (objfile_alloc_data, objfile_free_data): New functions.
1738 (set_objfile_data, objfile_data): New functions.
1739 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1740 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1741 (_initialize_dwarf2_frame): New function and prototype.
1743 2003-08-21 Andrew Cagney <cagney@redhat.com>
1745 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1746 a specific architecture.
1747 * arch-utils.h (set_architecture_from_arch_mach): Delete
1749 (target_architecture_hook): Delete declaration.
1750 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1751 (default_float_format): Assume GDB_MULTI_ARCH.
1752 (default_double_format): Assume GDB_MULTI_ARCH.
1753 (set_endian_from_file): Delete function.
1754 (arch_ok): Delete function.
1755 (set_arch): Delete function.
1756 (set_architecture_from_arch_mach): Delete function.
1757 (set_architecture_from_file): Delete function.
1758 (set_architecture): Assume GDB_MULTI_ARCH.
1759 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1761 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1763 Rewrite FreeBSD/sparc64 native configuration.
1764 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1765 * sparc64fbsd-nat.c: New file.
1766 * sparc64fbsd-tdep.c: New file.
1767 * sparc64-tdep.c sparc64-tdep.h: New files.
1768 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1769 sparc64fbsd-tdep.o): New dependencies.
1770 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1771 and sparc64fbsd-tdep.c.
1772 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1773 * config/sparc/fbsd.mh: Remove copyright notice.
1774 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1776 * config/sparc/fbsd.mt: Remove copyright notice.
1777 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1778 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1779 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1780 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1781 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1782 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1783 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1784 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1786 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1787 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1789 2003-08-21 Michael Chastain <mec@shout.net>
1791 * symtab.h: Add doco on the space critical structures and
1792 some measurements of space usage.
1794 2003-08-21 Michael Snyder <msnyder@redhat.com>
1796 * tracepoint.c (trace_dump_command): Trace break address
1797 is subject to DECR_PC_AFTER_BREAK.
1798 (set_traceframe_context): Make "trace_line" an int.
1799 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1801 2003-08-20 Michael Snyder <msnyder@redhat.com>
1803 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1804 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1805 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1807 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1808 functions, replace sh_push_dummy_call.
1809 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1811 2003-08-20 Michael Chastain <mec@shout.net>
1813 * gdbtypes.h (struct main_type): Rearrange to save space.
1815 2003-08-20 Michael Snyder <msnyder@redhat.com>
1817 * trad-frame.c: Comment typo fix.
1819 2003-08-20 Michael Snyder <msnyder@redhat.com>
1820 Kevin Buettner <kevinb@redhat.com>
1822 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1823 (frv_frame_init_saved_regs): Add declaration.
1824 (frame_extra_info): Add new field ``saved_regs''.
1825 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1826 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1827 Update frame related code.
1828 (frv_extract_struct_value_address): Adjust formatting.
1829 * Makefile.in (frv-tdep.o): Update dependencies.
1830 * config/frv/tm-frv.h (target_insert_watchpoint)
1831 (target_remove_watchpoint, target_insert_hw_breakpoint)
1832 (target_remove_hw_breakpoint): Delete these macros.
1833 (remote_insert_watchpoint, remote_remove_watchpoint)
1834 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1837 2003-08-20 Michael Chastain <mec@shout.net>
1839 * defs.h (ENUM_BITFIELD): New macro.
1840 * symtab.h (ENUM_BITFIELD): Use it.
1841 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1843 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1845 * MAINTAINERS (write after approval): Add myself.
1847 2003-08-18 Andrew Cagney <cagney@redhat.com>
1849 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1850 * gdbarch.h, gdbarch.c: Re-generate.
1851 * infcall.c (call_function_by_hand): Adjust the SP by
1852 frame_red_zone_size before allocating any stack space.
1853 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1854 * x86-64-tdep.c (x86_64_frame_align): New function.
1855 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1857 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1858 Remove code adjusting SP so that it skips over the Red Zone.
1860 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1862 * NEWS (New native configurations): Mention FreeBSD/amd64.
1864 2003-08-18 Andrew Cagney <cagney@redhat.com>
1866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1867 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1869 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1871 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1873 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1875 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1877 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1879 * i386-linux-nat.c: Include "linux-nat.h".
1880 (child_post_startup_inferior): New function.
1882 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1884 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1885 at the start of a frameless function. This probably fixes PR
1888 2003-08-17 Michael Chastain <mec@shout.net>
1890 * symfile.c (find_sym_fns): Remove special case for apollo target.
1892 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1894 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1895 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1896 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1897 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1898 (linux_supports_tracevforkdone): New function.
1899 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1901 (child_follow_fork): Handle vfork.
1902 (linux_handle_extended_wait): Likewise. Also handle exec.
1903 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1904 * NEWS: Mention fork tracing.
1906 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1908 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1910 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1912 * Makefile.in (i386-linux-nat.o): Update dependencies.
1913 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1914 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1915 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1916 * i386-linux-nat.c: Include "linux-nat.h".
1917 (child_post_startup_inferior): New function.
1918 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1919 * infptrace.c (kill_inferior): Wrap in #ifdef.
1920 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1921 attaching to each LWP.
1922 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1923 (init_lin_lwp_ops): Fill in some more operations.
1924 * linux-nat.h (linux_enable_event_reporting)
1925 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1927 * linux-nat.c (linux_enable_event_reporting): New function.
1928 (child_post_attach, linux_child_post_startup_inferior)
1929 (child_post_startup_inferior, child_follow_fork)
1930 (linux_handle_extended_wait, kill_inferior): New functions.
1932 2003-08-16 Andrew Cagney <cagney@redhat.com>
1934 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1935 * gdbarch.h, gdbarch.c: Re-generate.
1937 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1939 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1941 2003-08-16 Andrew Cagney <cagney@redhat.com>
1943 * NEWS: Mention that "set prompt-escape-char" was deleted.
1944 * top.c (get_prompt_1): Delete function.
1945 (gdb_prompt_escape):
1946 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1947 prompt-escape-char" command.
1948 (MAX_PROMPT_SIZE): Delete macro.
1949 (get_prompt): Simplify, do not call get_prompt_1.
1951 2003-08-16 Andrew Cagney <cagney@redhat.com>
1953 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1954 -Werror. -Wformat-nonliteral problems.
1956 2003-08-15 J. Brobecker <brobecker@gnat.com>
1958 Further multiarching work mostly for hppa64-*-hpux11:
1959 * hppa-tdep.h: New file.
1960 * hppa-tdep.c: #include hppa-tdep.c.
1961 (hppa32_num_regs): Renamed from hppa_num_regs.
1962 (hppa64_num_regs): New constant.
1963 (hppa64_call_dummy_breakpoint_offset): New constant.
1964 (hppa32_call_dummy_length): New constant.
1965 (hppa64_call_dummy_length): New constant.
1966 (hppa32_stack_align): Make name 32bit explicit.
1967 (hppa32_register_virtual_type): Likewise.
1968 (hppa32_extract_return_value): Likewise.
1969 (hppa32_use_struct_convention): Likewise.
1970 (hppa32_store_return_value): Likewise.
1971 (hppa64_register_virtual_type): New function.
1972 (hppa64_extract_return_value): New function.
1973 (hppa64_use_struct_convention): New function.
1974 (hppa64_store_return_value): New function.
1975 (hppa_frame_locals_address): Remove declaration, function does
1977 (hppa_register_byte): Add support for PA64 ABI.
1978 (hppa_gdbarch_init): Add support for PA64 ABI.
1979 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1980 Make name 32bit explicit.
1981 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1982 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1983 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1984 (hppa64_hpux_frame_base_before_sigtramp): New function.
1985 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1986 * config/pa/tm-hppa64.h: Remove macros that are no longer
1987 necessary now that the gdbarch vector is properly setup.
1988 Transform some macros into function calls. Some minor cleanup.
1989 * config/pa/tm-hppah.h: Update function calls in macros
1990 following the function renaming in hppa-hpux-tdep.c.
1991 * Makefile.in (hppa_tdep_h): New variable.
1992 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1994 2003-08-14 Michael Snyder <msnyder@redhat.com>
1996 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1998 2003-08-13 J. Brobecker <brobecker@gnat.com>
2000 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2001 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2004 2003-08-13 Michael Snyder <msnyder@redhat.com>
2006 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2007 (frv_saved_pc_after_call): Use deprecated ftype.
2008 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2009 (frv_remote_translate_xfer_address): Remove.
2010 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2012 2003-08-13 J. Brobecker <brobecker@gnat.com>
2014 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2015 initialization after the common gdbarch initialization, not before.
2017 2003-08-13 J. Brobecker <brobecker@gnat.com>
2019 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2020 (ADDR_BITS_REMOVE): Remove, redundant.
2022 2003-08-13 J. Brobecker <brobecker@gnat.com>
2024 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2025 gdbarch method to clear the 2 low bits of text addresses.
2027 2003-08-12 Andrew Cagney <cagney@redhat.com>
2029 * Makefile.in (dsrec.o): Update dependencies.
2030 * dsrec.c: Include "gdb_assert.h".
2031 (make_srec): Use snprintf instead of sprintf, use a literal format
2034 2003-08-12 Andrew Cagney <cagney@redhat.com>
2036 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2037 FRAME_OBSTACK_ZALLOC.
2039 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2041 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2044 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2046 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2047 amd64fbsd_sc_reg_offset): Add extern declarations.
2048 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2051 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2053 * MAINTAINERS (write after approval): Update my mail address.
2055 2003-08-10 Andrew Cagney <cagney@redhat.com>
2057 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2059 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2061 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2062 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2063 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2064 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2065 i386bsd_sc_reg_offset): Add extern declarations.
2066 * i386obsd-nat.c: Include "i386-tdep.h"
2067 (_initialize_i386obsd_nat): Remove extern declarations.
2068 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2070 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2073 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2074 instead of frame_read_register.
2075 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2076 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2078 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2079 instead of frame_unwind_unsigned_register. Use
2080 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2081 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2082 instead of read_register. Use builtin_type_void_data_ptr instead
2083 of builtin_type_void_func_ptr when extracting the address of the
2085 (i386_extract_return_value, i386_store_return_value,
2086 i386_pseudo_register_read, i386_pseudo_register_write): Use
2087 register_size instead REGISTER_RAW_SIZE.
2089 2003-08-10 Andrew Cagney <cagney@redhat.com>
2091 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2092 sprintf. Make "name" constant.
2094 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2096 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2097 instead of frame_read_register.
2098 (i387_print_float_info): Use get_frame_register and
2099 get_frame_register_unsigned instead of frame_register_read.
2101 * i386fbsd-nat.c: Include "i386-tdep.h".
2102 (child_resume): Make `eflags' an ULONGEST. Use
2103 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2104 instead of register_read and register_write.
2106 * i386bsd-nat.c (fetch_inferior_registers,
2107 store_inferior_registers): Don't use && at the end of a line.
2108 (_initialize_i386bsd_nat): Fix typo.
2110 * frame.c (_initialize_frame): Add missing backslash.
2112 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2113 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2114 and supply_register instead of manipulating the register buffer
2117 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2118 * config/i386/nm-i386sol2.h
2119 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2121 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2122 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2123 instructions that GCC likes to mingle into the prologue. Fixes
2124 gdb/1253 and gdb/1255.
2126 2003-08-09 Andrew Cagney <cagney@redhat.com>
2129 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2130 * command.h (add_setshow_uinteger_cmd): Declare.
2131 * frame.c (set_backtrace_cmd): New function.
2132 (show_backtrace_cmd): New function.
2133 * frame.c (_initialize_frame): Replace "set/show
2134 backtrace-below-main" with "set/show backtrace past-main". Add
2135 command "set/show backtrace limit".
2136 (backtrace_past_main): Rename "backtrace_below_main".
2137 (backtrace_limit): New variable.
2138 (get_prev_frame): Update. Check the backtrace_limit.
2140 2003-08-09 Andrew Cagney <cagney@redhat.com>
2142 * defs.h (xstrprintf): Declare.
2143 * utils.c (xstrprintf): New function.
2144 * breakpoint.c (insert_breakpoints): Replace sprintf and
2145 non-literal format strings, with xstrprintf and cleanups.
2146 (delete_breakpoint,breakpoint_re_set): Ditto.
2147 (commands_command, insert_breakpoints): Ditto.
2148 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2149 (break_at_finish_command_1): Ditto.
2151 2003-08-09 Andrew Cagney <cagney@redhat.com>
2153 * MAINTAINERS (language support): List Adam Fedor as Objective C
2156 2003-08-08 J. Brobecker <brobecker@gnat.com>
2158 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2159 are now multiarched.
2161 2003-08-08 J. Brobecker <brobecker@gnat.com>
2163 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2164 longer necessary now that hppa64 is partially multiarch'ed.
2166 2003-08-08 Andrew Cagney <cagney@redhat.com>
2168 * interps.c (interp_set): Check for a NULL "old_interp".
2170 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2172 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2173 (install-only): Support DESTDIR.
2174 (uninstall): Likewise.
2175 (install-gdbtk): Likewise.
2177 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2179 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2180 contains something meaningful at all times.
2182 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2184 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2186 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2188 * MAINTAINERS (write after approval): Added self.
2190 2003-08-07 Andrew Cagney <cagney@redhat.com>
2192 * inferior.h (AT_SYMBOL): Define.
2193 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2194 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2195 * mips-tdep.c (mips_call_dummy_address): Delete function.
2196 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2197 set call_dummy_address.
2199 2003-08-07 Andrew Cagney <cagney@redhat.com>
2201 * language.c (op_error): Delete function.
2202 (binop_type_check): Delete function.
2203 * language.h (type_op_error, range_op_error): Delete macros.
2204 (op_error): Delete declaration.
2206 2003-08-07 Andrew Cagney <cagney@redhat.com>
2208 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2210 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2212 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2213 (x86_64_push_arguments): Skip the red zone.
2215 2003-08-05 Andrew Cagney <cagney@redhat.com>
2217 * reggroups.c (reggroup_next): Check for the final entry.
2219 2003-08-04 Andrew Cagney <cagney@redhat.com>
2221 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2222 * cli/cli-script.c (define_command): Call query directly, instead
2223 of passing it a buffer.
2224 * ocd.c (ocd_error): Pass error a constant format string.
2225 * remote-mips.c (mips_error): Use fputs_filtered.
2227 * solib-svr4.c (_initialize_svr4_solib): Update
2228 register_gdbarch_data call.
2229 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2231 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2232 (register_gdbarch_data): Delete "free" parameter. Update
2234 * gdbarch.h, gdbarch.c: Re-generate.
2235 * reggroups.c (_initialize_reggroup): Update.
2236 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2237 * frame-base.c (_initialize_frame_base): Update.
2238 * frame-unwind.c (_initialize_frame_unwind): Update.
2239 * user-regs.c (_initialize_user_regs): Update.
2240 * remote.c (_initialize_remote): Update.
2241 * regcache.c (_initialize_regcache): Update.
2243 * regcache.c (xfree_regcache_descr): Delete function.
2244 (_initialize_regcache): Update call to register_gdbarch_data.
2245 (init_regcache_descr, init_legacy_regcache_descr): Use
2246 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2248 * remote.c (free_remote_state): Delete function.
2249 (_initialize_remote): Update register_gdbarch_data.
2250 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2251 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2253 2003-08-04 Andrew Cagney <cagney@redhat.com>
2255 * reggroups.c (struct reggroup_el): Define.
2256 (struct reggroups): Delete field "nr_group". Replace array
2257 "group" with a "first" to "last" linked list.
2258 (reggroups_init): Update. Allocate using gdbarch's obstack.
2259 (reggroups_free): Delete function.
2260 (add_group): Update. Add "el" parameter.
2261 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2262 (default_groups): Update.
2263 (reggroup_next): Replace reggroups.
2264 (reggroups_dump): Update.
2265 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2266 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2267 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2269 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2271 * Makefile.in (tui-interp.o): Update dependencies.
2273 2003-08-04 David Carlton <carlton@kealia.com>
2275 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2276 to internal_error call.
2277 * source.c (forward_search_command): Add "%s" format argument.
2278 (reverse_search_command): Ditto.
2279 * top.c (quit_confirm): Ditto.
2280 * cli/cli-setshow.c (do_setshow_command): Ditto.
2281 * cp-valprint.c (cp_print_class_method): Replace
2282 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2283 (cp_print_class_member): Ditto.
2284 * event-top.c (command_line_handler): Ditto.
2285 * linux-proc.c (linux_info_proc_cmd): Ditto.
2286 * p-typeprint.c (pascal_type_print_base): Ditto.
2287 * p-valprint.c (pascal_object_print_class_method): Ditto.
2288 (pascal_object_print_class_member): Ditto.
2289 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2290 * remote.c (remote_cisco_section_offsets): Ditto.
2291 * top.c (command_line_input): Ditto.
2292 * utils.c (vwarning,error_stream,quit): Ditto.
2293 * valprint.c (print_floating,print_binary_chars)
2294 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2296 2003-08-04 Andrew Cagney <cagney@redhat.com>
2298 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2300 2003-08-02 Andrew Cagney <cagney@redhat.com>
2302 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2303 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2306 2003-08-02 Andrew Cagney <cagney@redhat.com>
2308 * Makefile.in: Update all dependencies and definitions.
2310 2003-08-02 Adam Fedor <fedor@gnu.org>
2312 * linespec.c (is_objc_method_format): New function
2313 (decode_line_1, locate_first_half): Use it.
2316 2003-08-01 Andrew Cagney <cagney@redhat.com>
2318 * NEWS: Mention that m32r is multi-arch.
2319 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2320 * configure.tgt: Recognize m32r-*-*.
2321 * config/m32r/tm-m32r.h: Delete file.
2322 * config/m32r/m32r.mt: New file.
2323 * m32r-rom.c (m32r_upload_command): Use hostent only when
2324 gethostname succeeds, in order to avoid a compilation
2326 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2329 2003-08-01 Michael Snyder <msnyder@redhat.com>
2331 * sh-tdep.c (sh_frame_align): New gdbarch method.
2332 (sh_gdbarch_init): Set up frame_align method.
2334 2003-07-31 Michael Snyder <msnyder@redhat.com>
2336 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2337 which is already covered by the new frames infrastructure.
2339 2003-07-31 Andrew Cagney <cagney@redhat.com>
2341 * user-regs.c (struct user_reg): Add "next" link.
2342 (struct user_regs): Replace "user" with "first" and "last" links.
2343 (append_user_reg): Add pre-allocated "reg" parameter.
2344 (builtin_user_regs): Provide initial value for "last".
2345 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2346 (user_regs_init): Allocate memory from the gdbarch obstack.
2347 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2348 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2350 (usernum_to_user_reg): New function.
2351 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2352 (value_of_user_reg): Use usernum_to_user_reg.
2353 (user_regs_free): Delete function.
2354 (_initialize_user_regs): Update register_gdbarch_data call.
2356 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2358 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2360 2003-07-30 Michael Snyder <msnyder@redhat.com>
2362 * value.h (value_being_returned): Add a struct_addr argument.
2363 * infcall.c (call_function_by_hand): Pass struct_addr to
2364 value_being_returned.
2365 * infcmd.c (print_return_value): Pass zero as struct_addr.
2366 * values.c (value_being_returned): If struct_addr is passed,
2367 use it instead of trying to recover it from the inferior.
2369 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2371 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2372 the prologue analyzer won't need to attempt to extract the pc
2373 value from the woefully incomplete dummy frame.
2374 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2375 possible. Disable code which modifies the frame.
2377 2003-07-28 Andrew Cagney <cagney@redhat.com>
2379 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2381 (annotate_breakpoints_table, annotate_record): Ditto.
2382 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2383 (annotate_field_name_end, annotate_field_value): Ditto.
2384 (annotate_field_end, annotate_frame_source_begin): Ditto.
2385 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2386 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2387 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2388 (annotate_frame_address_end, annotate_frame_address): Ditto.
2389 (annotate_frame_args, annotate_frame_end): Ditto.
2390 (annotate_frame_where, annotate_arg_begin): Ditto.
2391 (annotate_arg_name_end, annotate_arg_value): Ditto.
2392 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2393 (annotate_function_call, annotate_signal_name): Ditto.
2394 (annotate_signal_string, annotate_signal_name_end): Ditto.
2395 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2396 (annotate_value_begin, annotate_value_history_value): Ditto.
2397 (annotate_value_history_end, annotate_value_end): Ditto.
2398 (annotate_display_begin, annotate_display_number_end): Ditto.
2399 (annotate_display_format, annotate_display_expression): Ditto.
2400 (annotate_display_expression_end, annotate_display_value): Ditto.
2401 (annotate_display_end, annotate_array_section_begin): Ditto.
2402 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2403 (annotate_elt, annotate_array_section_end): Ditto.
2405 2003-07-28 Andrew Cagney <cagney@redhat.com>
2407 * regcache.c (struct regcache_descr): Update comments on
2409 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2410 sizeof_raw_register_valid_p.
2411 (init_regcache_descr): Set nr_raw_registers and
2412 sizeof_raw_register_valid_p before calling
2413 init_legacy_regcache_descr.
2415 2003-07-28 Andrew Cagney <cagney@redhat.com>
2417 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2420 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2422 * thread.c (info_threads_command): Use get_selected_frame ().
2423 Check that there is at least one non-sentinel frame.
2425 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2427 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2428 (m68hc11_pop_frame): Remove.
2429 (m68hc11_frame_saved_pc): Remove.
2430 (m68hc11_frame_chain): Remove.
2431 (m68hc11_frame_init_saved_regs): Remove.
2432 (m68hc11_init_extra_frame_info): Remove.
2433 (m68hc11_store_struct_return): Remove.
2434 (m68hc11_saved_pc_after_call): Remove.
2436 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2438 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2439 frame unwind information.
2440 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2441 and adapted for frame unwinding.
2442 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2443 (m68hc11_unwind_pc): New function.
2444 (m68hc11_frame_unwind_cache): New function to analyze frames.
2445 (m68hc11_frame_this_id): New function to create new frame struct.
2446 (m68hc11_frame_prev_register): New function to unwind a register from
2448 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2449 (m68hc11_frame_p): New function for the above.
2450 (m68hc11_frame_base_address): New function to return fp of frame.
2451 (m68hc11_frame_args_address): Update for frame.
2452 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2453 (m68hc11_unwind_sp): New function.
2454 (m68hc11_unwind_dummy_id): New function.
2455 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2458 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2460 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2461 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2462 when we are beyond the current pc.
2464 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2466 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2467 from m68hc11_push_arguments.
2468 (m68hc11_push_arguments): Remove.
2469 (m68hc11_push_return_address): Remove.
2470 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2471 handlers; remove deprecated_extra_stack_alignment_needed.
2473 2003-07-27 Andrew Cagney <cagney@redhat.com>
2475 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2476 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2477 REAL_PC and not the pointer.
2478 * hppa-hpux-tdep.c: Include frame.h
2480 2003-07-27 Andrew Cagney <cagney@redhat.com>
2482 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2483 GDB_MULTI_ACH_PARTIAL.
2485 2003-07-27 Andrew Cagney <cagney@redhat.com>
2487 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2488 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2489 operator at start and not end of line.
2490 (decode_prologue): Ditto.
2491 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2492 frame_unwind_register_unsigned instead of
2493 frame_unwind_unsigned_register.
2494 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2496 (m32r_push_dummy_call): Use register_size instead of
2498 (m32r_frame_sniffer): Replace m32r_frame_p.
2499 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2500 * m32r-rom.c (report_transfer_performance): Delete extern
2502 (m32r_load, m32r_upload_command): Use print_transfer_performance
2503 instead of report_transfer_performance.
2504 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2505 / add_show_from_set.
2507 2003-07-26 Andrew Cagney <cagney@redhat.com>
2509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2510 store_return_value and extract_struct_value_address.
2512 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2515 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2516 NULL, default to the section containing PC.
2518 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2520 * NEWS: Mention "regs" deprecated for m68hc11 too.
2522 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2523 (m68hc11_print_register): New function to print out one register.
2524 (m68hc11_print_registers_info): New function to print registers.
2525 (show_regs): Deprecate and use the above.
2526 (m68hc11_gdbarch_init): Install the print_registers_info.
2528 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2530 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2531 that we have a SIGTRAP before returning non-zero.
2533 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2534 Elena Zannoni <ezannoni@redhat.com>
2536 * linespec.c (decode_line_2): Avoid crash if
2537 find_function_start_sal() returns empty record.
2539 2003-07-23 Andreas Schwab <schwab@suse.de>
2541 * ia64-tdep.c (ia64_print_insn): New function.
2542 (ia64_gdbarch_init): Set print_insn to it.
2543 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2544 deprecated_tm_print_insn_info.
2546 2003-07-22 Michael Snyder <msnyder@redhat.com>
2548 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2549 handle 8-bit returns (long long).
2550 (h8300h_extract_return_value): Ditto.
2551 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2553 2003-07-22 Andrew Cagney <cagney@redhat.com>
2555 * gdbarch.c Include "gdb_obstack.h".
2556 (struct gdbarch): Add an "obstack".
2557 (alloc_gdbarch_data): Allocate the gdbarch data using
2558 GDBARCH_OBSTACK_CALLOC.
2559 (free_gdbarch_data): Delete function.
2560 (gdbarch_obstack_zalloc): New function.
2561 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2562 Assert that the architecture is not initialized.
2563 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2564 vector from the obstack.
2565 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2566 architecture obstack.
2567 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2568 (set_gdbarch_data): Assert that the data is not initialized.
2569 (struct gdbarch_data): Delete member "free".
2570 (register_gdbarch_data): Do not initialize "free".
2571 * gdbarch.h, gdbarch.c: Re-generate.
2573 2003-07-22 Andrew Cagney <cagney@redhat.com>
2575 * configure.in (build_warnings): Add -Wformat-nonliteral.
2576 * configure: Re-generate.
2578 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2580 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2582 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2584 * findvar.c (read_var_value): Remove case for thread local storage
2585 variables. It is now entirely handled by the dwarf2 location
2587 * printcmd.c (address_info): Ditto.
2588 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2590 (struct symbol): Remove objfile field, which was used by
2591 LOC_THREAD_LOCAL_STATIC only.
2592 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2593 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2594 usage of objfile pointer.
2595 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2596 thread local variables.
2597 Add include of objfiles.h.
2598 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2600 * Makefile.in (dwarf2loc.o): Update dependencies.
2602 2003-07-22 Andrew Cagney <cagney@redhat.com>
2604 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2606 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2607 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2608 (struct value): Add opaque declaration.
2609 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2611 2003-07-21 Andrew Cagney <cagney@redhat.com>
2613 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2614 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2616 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2618 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2619 regcache_cooked_read_unsigned instead of read_register.
2620 (m68hc11_saved_pc_after_call): Likewise.
2621 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2622 instead of write_register.
2623 (m68hc11_register_type): New function.
2624 (m68hc11_register_virtual_type): Remove.
2625 (m68hc11_store_return_value): Convert to use the regcache.
2626 (m68hc11_extract_struct_value_address): Likewise.
2627 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2628 m68hc11_register_type; undeprecate store_return_value and
2629 extract_struct_value_address.
2631 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2633 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2634 and translate to use regcache.
2635 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2637 2003-07-18 Andrew Cagney <cagney@redhat.com>
2639 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2640 * gdbarch.h, gdbarch.c: Re-generate.
2641 * i386-tdep.c (i386_gdbarch_init): Do not set
2642 DWARF2_BUILD_FRAME_INFO.
2643 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2645 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2646 DWARF2_BUILD_FRAME_INFO.
2648 2003-07-18 Andrew Cagney <cagney@redhat.com>
2650 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2651 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2653 2003-07-18 Andrew Cagney <cagney@redhat.com>
2655 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2656 frame_unwind_address_in_block, instead of frame_pc_unwind.
2657 (dwarf2_frame_cache): Ditto.
2659 2003-07-18 Andrew Cagney <cagney@redhat.com>
2661 * user-regs.h (struct gdbarch): Declare opaque.
2662 * ui-out.h (struct ui_file): Declare opaque.
2663 * dwarf2-frame.h (struct frame_info): Declare opaque.
2665 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2667 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2669 (procfs_meminfo): Change strerror to safe_strerror.
2670 (procfs_can_run): Remove K&R badness.
2672 2003-07-17 Michael Snyder <msnyder@redhat.com>
2674 * remote-sim.c: Comment typo fix.
2676 2003-07-17 Andrew Cagney <cagney@redhat.com>
2678 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2680 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2681 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2682 GDB_MULTI_ARCH_PARTIAL.
2684 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2686 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2687 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2688 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2690 2003-07-16 Theodore A. Roth <troth@openavr.org>
2692 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2694 (avr_frame_unwind_cache): Don't unwind FP for main.
2696 Save the computed prev_sp.
2697 (avr_saved_regs_unwinder): Remove function.
2698 (avr_frame_prev_register): Use PC unwind logic from
2699 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2701 2003-07-16 Andrew Cagney <cagney@redhat.com>
2703 * frame-base.h (frame_base_p_ftype): Delete definition.
2704 (frame_base_append_predicate): Delete declaration.
2705 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2706 (frame_unwind_append_predicate): Delete declaration.
2707 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2708 (append_predicate): Delete parameter "p".
2709 (frame_unwind_append_predicate): Delete function.
2710 (frame_unwind_append_sniffer): Update call to append_predicate.
2711 (frame_unwind_free): Delete function.
2712 (_initialize_frame_unwind): Pass NULL as "free" to
2713 register_gdbarch_data.
2714 (frame_unwind_init): Append the dummy_frame_sniffer.
2715 (frame_unwind_find_by_frame): Simplify.
2716 * frame-base.c (struct frame_base_table): Delete field "p".
2717 (append_predicate): Delete parameter "p".
2718 (frame_base_append_predicate): Delete function.
2719 (frame_base_append_sniffer): Update call to append_predicate.
2720 (frame_base_free): Delete function.
2721 (frame_base_find_by_frame): Simplify.
2722 (_initialize_frame_base): Pass NULL as "free" to
2723 register_gdbarch_data.
2724 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2725 (x86_64_sigtramp_frame_sniffer): Replace
2726 "x86_64_sigtramp_frame_p".
2727 (x86_64_init_abi): Set the frame unwind sniffers.
2728 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2729 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2730 (m68k_gdbarch_init): Set the frame unwind sniffers.
2731 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2732 "i386_sigtramp_frame_p".
2733 (i386_frame_sniffer): Replace "i386_frame_p".
2734 (i386_gdbarch_init): Set the frame unwind sniffers.
2735 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2736 (avr_gdbarch_init): Set the frame unwind sniffers.
2737 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2738 "alpha_sigtramp_frame_p"
2739 (alpha_heuristic_frame_sniffer): Replace
2740 "alpha_heuristic_frame_p".
2741 (alpha_gdbarch_init): Set the frame unwind sniffers.
2742 (alpha_dwarf2_init_abi): Ditto.
2743 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2744 "alpha_debug_frame_p".
2745 (alpha_mdebug_frame_base_sniffer): Replace
2746 "alpha_mdebug_frame_base_p".
2747 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2748 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2749 (d10v_gdbarch_init): Set the frame unwind sniffer.
2750 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2751 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2752 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2753 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2754 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2755 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2757 2003-07-16 Michael Snyder <msnyder@redhat.com>
2759 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2760 should go thru sh_dsp_register_sim_regno, else the dsp regs
2761 will not get the right values.
2763 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2765 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2766 deprecated_store_floating by call to store_typed_floating.
2767 (sh_sh4_register_convert_to_raw): Substitute call to
2768 deprecated_extract_floating by call to extract_typed_floating.
2770 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2772 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2774 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2776 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2777 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2778 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2780 (do_pseudo_register): Remove.
2781 (sh_push_dummy_code): New function.
2782 (sh64_store_struct_return): Rename from sh_store_struct_return.
2783 Only called for sh64 now.
2784 (sh_extract_struct_value_address): Regcache'ify.
2785 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2786 and accomodate new tasks.
2787 (sh64_push_return_address): Rename from sh_push_return_address.
2788 Only called for sh64 now.
2789 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2791 (sh3e_sh4_extract_return_value): Regcache'ify.
2792 (sh_default_store_return_value): Ditto.
2793 (sh3e_sh4_store_return_value): Ditto.
2794 (sh_default_register_byte): Remove.
2795 (sh_sh4_register_byte): Remove.
2796 (sh_default_register_raw_size): Remove.
2797 (sh_sh4_register_raw_size): Remove.
2798 (sh_register_virtual_size): Remove.
2799 (sh_sh3e_register_virtual_type): Remove.
2800 (sh_sh3e_register_type): New function.
2801 (sh_sh4_register_virtual_type): Remove.
2802 (sh_sh4_register_type): New function.
2803 (sh_default_register_virtual_type): Remove.
2804 (sh_default_register_type): New function.
2805 (do_fv_register_info): Add parameters to accomodate call from
2806 sh_print_registers_info.
2807 (do_dr_register_info): Ditto.
2808 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2809 Add parameters to accomodate call from sh_print_registers_info.
2810 (sh_do_fp_register): Ditto.
2811 (sh64_do_pseudo_register): Call do_dr_register_info,
2812 do_fv_register_info and sh_do_fp_register with default parameters.
2813 (sh_do_register): Add parameters to accomodate call from
2814 sh_print_registers_info.
2815 (sh_print_register): Ditto.
2816 (sh_print_registers_info): Rename from sh_do_registers_info.
2817 Add parameters to be used as gdbarch_print_registers_info
2818 implementation. Accomodate removed do_pseudo_register function
2820 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2821 function pointer. Call sh_print_register with default parameters.
2822 (sh64_do_registers_info): Call sh_print_registers_info instead of
2823 sh_do_registers_info.
2824 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2825 detection of deprecated vs. non-deprecated functionality.
2826 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2827 function pointer assignments by direct function calls.
2829 2003-07-15 Andrew Cagney <cagney@redhat.com>
2831 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2832 (frame_register_unwind, create_new_frame): Ditto.
2833 (legacy_get_prev_frame, get_frame_type): Ditto.
2834 (get_frame_base_address): Use frame_base_find_by_frame.
2835 (get_frame_locals_address): Use frame_base_find_by_frame.
2836 (get_frame_args_address): Use frame_base_find_by_frame.
2837 * frame-base.h (frame_base_sniffer_ftype): Declare.
2838 (frame_base_append_sniffer): Declare.
2839 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2840 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2841 (frame_base_append_sniffer): New function.
2842 (frame_base_append_predicate): Add a NULL sniffer.
2843 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2844 (struct frame_base_table): Add "sniffer".
2845 (frame_base_free): Free the "sniffer" table.
2846 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2847 (frame_unwind_append_sniffer): Declare.
2848 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2849 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2850 (struct frame_unwind_table): Add "sniffer", delete "middle".
2851 (append_predicate): Add "sniffer" parameter, append the sniffer.
2852 (frame_unwind_init): Update append_predicate call.
2853 (frame_unwind_append_sniffer): New function.
2854 (frame_unwind_append_predicate): Update append_predicate call.
2855 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2857 2003-07-15 Andrew Cagney <cagney@redhat.com>
2859 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2860 before code inhibiting repeated unwind attempts. Add to
2861 commentary on that test's problems.
2862 * blockframe.c (inside_main_func): Look for "main" in the minimal
2864 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2867 2003-07-15 Andrew Cagney <cagney@redhat.com>
2869 * complaints.c (struct explanation): Define.
2870 (struct complaints): Change type of "explanation" to "struct
2872 (symfile_explanations): Convert to a "struct explanation" table.
2873 (vcomplaint): Update.
2875 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2877 * x86-64-linux-nat.c (regmap): Removed.
2878 (supply_gregset, fill_gregset): Call
2879 x86_64_linux_(fill,supply)_gregset functions.
2880 * x86-64-linux-tdep.c (USER_*): New defines.
2881 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2882 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2884 (fetch_core_registers): Ditto.
2885 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2886 * x86-64-linux-tdep.h: New file.
2887 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2889 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2891 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2893 * x86-64-tdep.c (x86_64_store_return_value): Use
2894 regcache_cooked_write_part instead of regcache_cooked_write.
2896 * configure.host: Add x86_64-*-freebsd*.
2897 * configure.tgt: Add x86_64-*-freebsd*.
2898 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2899 * amd64fbsd-nat.c: New file.
2900 * amd64fbsd-tdep.c: New file.
2901 * config/i386/nm-fbsd64.h: New file.
2902 * config/i386/fbsd64.mh: New file.
2903 * config/i386/fbsd64.mt: New file.
2905 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2907 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2908 `sc_regs_offset' and `sc_fpregs_offset'.
2909 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2910 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2911 (alpha_sigtramp_register_address): Rewrite to use new members of
2912 `struct gdbarch_tdep'.
2913 (alpha_gdbarch_init): Initialize new members of struct
2915 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2916 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2917 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2918 (alphafbsd_pc_in_sigtramp): Implement.
2919 (alphafbsd_sigtramp_offset): New function.
2920 (alphafbsd_sigcontext_addr): New function.
2921 (alphafbsd_init_abi): Initialize signal trampoline related members
2922 of `struct gdbarch_tdep'.
2923 (_initialize_alphafbsd_tdep): Add prototype.
2925 2003-07-11 Theodore A. Roth <troth@openavr.org>
2927 * Makefile.in (install-only): Quote sed expression when generating
2930 2003-07-11 Richard Henderson <rth@redhat.com>
2932 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2933 * dwarf2-frame.c: Include complaints.h.
2934 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2935 variable initialization; return NULL on error.
2936 (decode_frame_entry): New.
2938 2003-07-11 Andrew Cagney <cagney@redhat.com>
2940 * frame.h (frame_address_in_block): Delete declaration.
2941 * blockframe.c (frame_address_in_block): Delete function.
2942 (get_frame_block): Use get_frame_address_in_block.
2943 (block_innermost_frame): Ditto.
2944 * stack.c (print_frame, backtrace_command_1): Ditto.
2946 * frame.h (get_frame_address_in_block): Declare.
2947 (frame_unwind_address_in_block): Declare.
2948 * frame.c (frame_unwind_address_in_block): New function.
2949 (get_frame_address_in_block): New function.
2951 2003-07-10 Andrew Cagney <cagney@redhat.com>
2953 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2954 pre-default. Note: re-generate has no effect.
2956 2003-07-10 Andrew Cagney <cagney@redhat.com>
2958 * gdbarch.sh: When a variable, but not a function, compare against
2959 0. Fix problem in previous patch.
2960 * gdbarch.c: Re-generate.
2962 2003-07-10 Andrew Cagney <cagney@redhat.com>
2964 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2965 functions against NULL, not 0.
2966 * gdbarch.c: Re-generate.
2968 2003-07-10 Fred Fish <fnf@ninemoons.com>
2970 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2971 null string instead of a null pointer.
2972 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2974 2003-07-09 Michael Snyder <msnyder@redhat.com>
2976 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2978 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2980 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2981 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2982 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2983 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2984 * x86-64-tdep.c: ... from here.
2986 2003-07-09 Andreas Schwab <schwab@suse.de>
2988 * m68k-tdep.h (enum struct_return): Define.
2989 (struct gdbarch_tdep): Add struct_return.
2990 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2991 bytes are padded to the right, not to the left. Pass struct value
2992 address in register %a1, not on stack.
2993 (m68k_use_struct_convention): New function.
2994 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2995 struct_return in tdep to pcc_struct_return.
2996 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2999 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3001 * somread.c (som_symfile_offsets): Fix compilation error.
3003 2003-07-09 Andrew Cagney <cagney@redhat.com>
3005 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3006 Add comments about the checks.
3008 2003-07-08 Andrew Cagney <cagney@redhat.com>
3010 * Makefile.in: Make dependency section headers consistent.
3011 (config_h): Move to $BUILD headers section.
3012 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3013 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3014 (ada-exp.tab.c): Move to YACC/LEX section.
3015 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3016 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3018 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3020 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3021 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3022 of strerror with safe_strerror, use ISO C function definitions,
3023 and replace instances of sprintf with snprintf.
3025 2003-07-07 Andrew Cagney <cagney@redhat.com>
3027 * frame.c (get_prev_frame): Enable check for identical frames.
3028 Update comments. Update error messages.
3030 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3032 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3034 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3036 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3037 sort_symtab_syms, no longer necessary.
3039 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3041 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3043 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3045 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3046 (mips_register_byte): Likewise.
3048 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3050 * Makefile.in (sparc_tdep_h): New.
3051 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3052 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3053 * sparc-linux-nat.c: Include "sparc-tdep.h".
3054 * sparc-nat.c: Likewise.
3055 * sparc-tdep.c: Likewise.
3056 * sparc64nbsd-nat.c: Likewise.
3057 * sparcnbsd-nat.c: Likewise.
3058 * sparcnbsd-tdep.c: Likewise.
3059 * sparc-tdep.h: New file.
3060 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3061 and sparc_npc_regnum.
3063 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3065 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3066 (mips_linux_cannot_store_register): List supported instead of
3067 unsupported registers.
3069 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3071 * disasm.c (dump_insns): Separate instructions from addresses.
3073 2003-07-07 Andreas Schwab <schwab@suse.de>
3075 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3077 * m68k-tdep.c (NUM_FREGS): Delete.
3078 (SIG_PC_FP_OFFSET): Delete.
3079 (TARGET_M68K): Delete.
3080 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3081 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3082 P_MOVEL_SP, P_MOVEML_SP): Define.
3083 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3085 (m68k_register_raw_size): Delete.
3086 (m68k_register_virtual_size): Delete.
3087 (m68k_register_type): Renamed from m68k_register_virtual_type and
3088 add gdbarch argument.
3089 (m68k_store_struct_return): Delete.
3090 (m68k_deprecated_extract_return_value): Delete.
3091 (m68k_deprecated_extract_struct_value_address): Delete.
3092 (m68k_frame_chain): Delete.
3093 (m68k_frame_saved_pc): Delete.
3094 (m68k_fix_call_dummy): Delete.
3095 (m68k_push_dummy_frame): Delete.
3096 (m68k_pop_frame): Delete.
3097 (m68k_extract_return_value): New function.
3098 (m68k_store_return_value): Rewrite using regcache.
3099 (m68k_extract_struct_value_address): Rewrite using regcache.
3100 (m68k_push_dummy_call): New function.
3101 (struct m68k_frame_cache): Define.
3102 (m68k_alloc_frame_cache): New function.
3103 (m68k_analyze_frame_setup): New function.
3104 (m68k_analyze_register_saves): New function.
3105 (m68k_analyze_prologue): New function.
3106 (m68k_skip_prologue): Rewrite using above functions.
3107 (m68k_unwind_pc): New function.
3108 (m68k_frame_cache): New function.
3109 (m68k_frame_this_id): New function.
3110 (m68k_frame_prev_register): New function.
3111 (m68k_frame_unwind): New variable.
3112 (m68k_frame_p): New function.
3113 (m68k_sigtramp_frame_cache): New function.
3114 (m68k_sigtramp_frame_this_id): New function.
3115 (m68k_sigtramp_frame_prev_register): New function.
3116 (m68k_sigtramp_frame_unwind): New variable.
3117 (m68k_sigtramp_frame_p): New function.
3118 (m68k_frame_base_address): New function.
3119 (m68k_frame_base): New function.
3120 (m68k_unwind_dummy_id): New function.
3121 (fill_gregset): Use regcache_collect.
3122 (fill_fpregset): Likewise.
3123 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3125 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3126 deprecated_init_frame_pc, deprecated_store_struct_return,
3127 deprecated_extract_return_value, deprecated_store_return_value,
3128 deprecated_frame_chain, deprecated_frame_saved_pc,
3129 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3130 deprecated_register_virtual_size,
3131 deprecated_max_register_raw_size,
3132 deprecated_max_register_virtual_size,
3133 deprecated_register_virtual_type, deprecated_register_size,
3134 deprecated_register_byte, deprecated_register_bytes,
3135 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3136 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3137 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3138 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3139 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3140 deprecated_push_dummy_frame, deprecated_pop_frame,
3141 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3142 only if SYSCALL_TRAP is defined. Set extract_return_value,
3143 store_return_value, extract_struct_value_address, register_type,
3144 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3146 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3147 M68K_MAX_REGISTER_SIZE): Define.
3148 (struct m68k_sigtramp_info): Define.
3149 (struct gdbarch_tdep): Add get_sigtramp_info.
3150 * m68klinux-nat.c (fetch_register): Use register_size instead of
3151 REGISTER_RAW_SIZE. Don't put assignment in if.
3152 (store_register): Likewise.
3153 (fetch_inferior_registers): Likewise.
3154 (store_inferior_registers): Likewise.
3155 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3156 (m68k_linux_frame_saved_pc): Delete.
3157 (m68k_linux_sigcontext_reg_offset,
3158 m68k_linux_ucontext_reg_offset): Define.
3159 (m68k_linux_get_sigtramp_info): New function.
3160 (m68k_linux_extract_return_value): Rewrite using regcache.
3161 (m68k_linux_store_return_value): Likewise.
3162 (m68k_linux_extract_struct_value_address): Likewise.
3163 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3164 Don't set deprecated_frame_saved_pc,
3165 deprecated_extract_return_value, deprecated_store_return_value,
3166 deprecated_extract_struct_value_address. Set
3167 extract_return_value, store_return_value,
3168 extract_struct_value_address.
3170 2003-07-07 Andrew Cagney <cagney@redhat.com>
3172 * expprint.c: Include "user-regs.h" instead of "frame.h".
3173 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3174 frame_map_regnum_to_name.
3175 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3176 (frame_map_name_to_regnum): Simplify, call
3177 user_reg_map_name_to_regnum.
3178 (frame_map_regnum_to_name): Simplify, call
3179 user_reg_map_regnum_to_name.
3180 (frame_register_unwind): Update.
3181 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3182 (_initialize_frame_reg): Call user_reg_add_builtin.
3183 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3184 (value_of_register): Use value_of_user_reg.
3185 * eval.c (evaluate_subexp_standard): Update.
3186 * parse.c (write_dollar_variable): Update.
3187 * d10v-tdep.c (d10v_print_registers_info): Update.
3188 * infcmd.c (registers_info): Update.
3189 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3190 (builtin_regs_h): Delete macro.
3191 (user_regs_h): Define.
3192 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3193 (builtin-regs.o): Delete target.
3194 (user-regs.o): Specify dependencies.
3195 (expprint.o): Update dependencies.
3196 (findvar.o): Update dependencies.
3197 (frame.o): Update dependencies.
3198 (std-regs.o): Update dependencies.
3200 2003-07-06 Christopher Faylor <cgf@redhat.com>
3202 * win32-nat.c (solib_symbols_add): Use one variable for all section
3203 address stuff. Pass variable rather than address of variable to
3204 safe_symbol_file_add.
3206 2003-07-06 Andreas Schwab <schwab@suse.de>
3208 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3210 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3212 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3214 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3216 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3218 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3220 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3221 * config/i386/nto.mh: New file.
3222 * config/i386/nm-nto.h: New file.
3223 * configure.host: Add i[3456]86-*-nto*.
3225 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3227 * remote-vx.c (vx_add_symbols): Fix compilation error.
3229 2003-07-03 Andrew Cagney <cagney@redhat.com>
3231 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3232 * gdbarch.h, gdbarch.c: Re-generate.
3233 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3234 (legacy_register_name): Declare.
3235 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3236 (REGISTER_NAME): Define.
3237 * sparc-tdep.c (legacy_register_name): New function.
3238 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3239 (REGISTER_NAME): Define.
3240 (hppa64_register_name): Declare.
3241 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3242 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3243 (hppa64_register_name): New function.
3244 (hppa_register_name): New function.
3245 * arch-utils.c (legacy_register_name): Delete.
3246 * arch-utils.h (legacy_register_name): Delete.
3248 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3250 * cli/cli-interp.c (cli_interpreter_resume): Update the
3251 cli_uiout's stream to gdb_stdout.
3253 2003-07-03 Andrew Cagney <cagney@redhat.com>
3255 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3257 * gdbarch.h, gdbarch.c: Re-generate.
3258 * regcache.c (init_regcache_descr): Use legacy code when either
3259 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3261 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3263 * NEWS: Move "set logging" entry into GDB 6.0 section.
3265 2003-07-02 Jim Blandy <jimb@redhat.com>
3267 * s390-tdep.c (struct frame_extra_info): new member:
3268 'stack_bought_valid'.
3269 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3270 initialize fextra_info->stack_bought.
3271 (s390_frameless_function_invocation): Don't trust the value of
3272 fextra_info_ptr->stack_bought unless
3273 fextra_info->stack_bought_valid is set.
3275 New S390 prologue analyzer.
3276 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3277 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3278 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3279 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3280 compute_x_addr, s390_on_stack, s390_store,
3281 s390_get_signal_frame_info): New functions.
3282 (S390_NUM_SPILL_SLOTS): New macro.
3283 (s390_get_frame_info): Rewritten.
3284 (is_arg_reg): Deleted.
3286 Break out the decoding of S/390 instructions into separate
3287 functions, to make it more legible, and easier to check
3289 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3290 is_rx, is_rxe): New functions.
3291 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3292 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3293 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3294 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3295 enums for opcode values. (Is this an improvement?)
3297 2003-07-02 Andrew Cagney <cagney@redhat.com>
3299 * i386-tdep.c: Revert change committed as part of trad-frame code
3302 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3304 * breakpoint.c (insert_catchpoint): Make static.
3306 2003-07-02 Andreas Schwab <schwab@suse.de>
3308 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3309 former ia64_push_arguments and ia64_push_return_address, and use
3310 regcache functions instead of read/write_register.
3311 (ia64_gdbarch_init): Set push_dummy_call instead of
3312 deprecated_push_arguments and deprecated_push_return_address.
3314 2003-07-01 Andreas Jaeger <aj@suse.de>
3316 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3318 Set %rax only to number of SSE registers used.
3320 2003-07-01 Andrew Cagney <cagney@redhat.com>
3322 * trad-frame.h: Update comments, a -1 .addr is reserved.
3323 (trad_frame_value_p, trad_frame_addr_p): Declare.
3324 (trad_frame_reg_p): Declare.
3325 (trad_frame_set_value): Rename trad_frame_register_value.
3326 (trad_frame_set_unknown): Declare.
3327 * trad-frame.c (trad_frame_realreg_p): New function.
3328 (trad_frame_addr_p, trad_frame_value_p): New function.
3329 (trad_frame_set_unknown): New function.
3330 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3331 (trad_frame_prev_register): Use trad_frame_realreg_p,
3332 trad_frame_addr_p and trad_frame_value_p.
3333 (trad_frame_set_value): Rename trad_frame_register_value.
3334 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3335 and trad_frame_set_value.
3337 2003-06-30 Jim Blandy <jimb@redhat.com>
3339 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3340 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3341 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3342 for 16 registers, and then 32 more bytes.
3343 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3345 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3346 Move up in the file, since it's now used by is_simple_arg.
3347 (is_simple_arg): Don't assume registers are four bytes long.
3348 Exclude all double arguments. Extended floats are not simple
3350 (is_power_of_two): New function.
3351 (pass_by_copy_ref): Call is_power_of_two, and check that the
3352 length fits in a register, rather than listing all the acceptable
3353 sizes. Extended floats are not passed by reference.
3354 (s390_push_arguments): Don't assume registers are four bytes long.
3355 Reserve an argument register to point to the buffer for structures
3356 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3357 S390_STACK_FRAME_OVERHEAD.
3359 2003-06-30 Andreas Schwab <schwab@suse.de>
3361 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3362 format error message.
3364 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3366 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3368 2003-06-30 David Carlton <carlton@kealia.com>
3370 Band-aid for PR c++/1245.
3371 * Makefile.in (cp-support.o): Depend on complaints_h.
3372 * cp-support.c: Include complaints.h. Add declaration for
3373 find_last_component.
3374 (cp_find_first_component): Separate code into
3375 cp_find_first_component_aux.
3376 (cp_find_first_component_aux): Call demangled_name_complaint.
3377 (demangled_name_complaint): New.
3379 2003-06-30 Andrew Cagney <cagney@redhat.com>
3381 * remote.c (remote_write_bytes): Explicitly compute and then use
3382 the payload size. Update comments to reflect. Fixes problem of
3383 GDB not sending small packets as found by Fred Fish.
3385 2003-06-30 Andrew Cagney <cagney@redhat.com>
3387 * remote.c (remote_async_wait): Fix -Wformat problem.
3389 2003-06-29 Andrew Cagney <cagney@redhat.com>
3391 * remote.c (remote_wait): Call error, and not warning, when the
3393 (remote_async_wait): Ditto.
3395 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3397 * sparc-tdep.c (sparc_y_regnum): Make external again.
3399 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3401 * cli/cli-logging.c (pop_output_files): Add void to function
3404 2003-06-29 Andrew Cagney <cagney@redhat.com>
3406 * frame.c (frame_register_unwind): Use unsigned char when dumping
3407 the buffer contents.
3409 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3411 * cli/cli-logging.c: New file.
3412 * cli-out.c (struct ui_out_data): Add original_stream.
3413 (cli_redirect): New function.
3414 (cli_ui_out_impl): Add cli_redirect.
3415 (cli_out_new): Initialize original_stream.
3416 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3417 (uo_redirect, ui_out_redirect): New.
3418 * ui-out.h (struct ui_out_impl): Add redirect member.
3419 (redirect_ftype): New.
3420 (ui_out_redirect): Add prototype.
3421 * Makefile.in: Add rules for cli-logging.c.
3422 * NEWS: Mention "set logging".
3424 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3426 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3428 2003-06-27 Andrew Cagney <cagney@redhat.com>
3430 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3431 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3432 * avr-tdep.c (avr_call_dummy_address): Delete function.
3433 (avr_gdbarch_init): Do not set call_dummy_address.
3435 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3437 * symfile.c (syms_from_objfile): Move variables to inner block.
3438 Move the checks for the non-mainline case a bit earlier to avoid
3439 doing some useless computations.
3441 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3443 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3445 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3447 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3450 2003-06-26 Michael Chastain <mec@shout.net>
3452 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3453 gdb/testsuite/gdb.c++/pr-1210.exp.
3455 2003-06-26 Andrew Cagney <cagney@redhat.com>
3457 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3458 altivec_expression.h and altivec_registers.h.
3460 2003-06-26 Andrew Cagney <cagney@redhat.com>
3462 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3463 info->mach when MIPS16. Patch suggested by Fred Fish.
3465 2003-06-26 Andrew Cagney <cagney@redhat.com>
3467 * utils.c (internal_vproblem): Print the problem to a reason
3468 buffer and then pass to query. Make the msg variable more local.
3470 2003-06-26 Andrew Cagney <cagney@redhat.com>
3472 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3473 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3474 * gdbarch.h, gdbarch.c: Re-generate.
3475 * frame-base.c (default_frame_args_address): Update. Use
3476 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3478 (default_frame_locals_address): Ditto for
3479 DEPRECATED_FRAME_LOCALS_ADDRESS.
3480 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3481 (vax_frame_num_args): Update.
3482 (vax_gdbarch_init): Update.
3483 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3484 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3485 * mcore-tdep.c (mcore_gdbarch_init): Update.
3486 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3487 * ia64-tdep.c (ia64_gdbarch_init): Update.
3488 * symtab.h (address_class): Update comments.
3489 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3490 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3491 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3492 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3493 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3494 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3495 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3496 * alpha-mdebug-tdep.c: Update.
3497 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3499 2003-06-26 Andreas Jaeger <aj@suse.de>
3501 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3502 of SSE registers so that varargs functions work. Rework handling
3503 of passing arguments on the stack.
3504 (x86_64_store_return_value): Return double and float values in SSE
3507 2003-06-24 Michael Chastain <mec@shout.net>
3509 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3510 the "constructor breakpoints ignored" bug.
3512 2003-06-25 David Carlton <carlton@kealia.com>
3514 * MAINTAINERS: Update e-mail address.
3516 2003-06-24 Jim Blandy <jimb@redhat.com>
3518 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3520 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3522 (ppc_linux_init_abi): Register it as the
3523 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3525 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3526 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3529 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3530 (ppc64_standard_linkage_target): Use it.
3532 2003-06-23 Andrew Cagney <cagney@redhat.com>
3534 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3535 for 0 "int0" and 4 "int32" sized registers.
3536 * gdbtypes.c (builtin_type_int0): Define.
3537 (build_gdbtypes): Initialize builtin_type_int0.
3538 * gdbtypes.h (builtin_type_int0): Declare.
3540 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3543 as characters are unsigned.
3545 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3548 * dwarfread.c (struct_type): Skip static fields without crashing.
3550 2003-06-22 Andrew Cagney <cagney@redhat.com>
3552 GDB 6.0 branch created.
3554 * PROBLEMS: Update. Empty.
3557 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3559 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3560 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3562 2003-06-22 Andrew Cagney <cagney@redhat.com>
3564 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3565 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3568 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3570 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3573 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3575 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3576 argument of val_print.
3577 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3578 to the address argument of baseclass_offset or target_read_memory.
3579 Do add it to the argument of cp_print_value_fields.
3581 2003-06-21 Andrew Cagney <cagney@redhat.com>
3583 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3584 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3585 instead of 0..NUM_REGS.
3586 (mips_register_reggroup_p): New function.
3587 (mips_pseudo_register_write): New function.
3588 (mips_pseudo_register_read): New function.
3589 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3590 based on the register's type.
3591 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3593 (mips_get_saved_register): Simplify. Assert that REGNO is a
3595 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3596 (mips_register_type): Replace mips_register_virtual_type. Map
3597 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3599 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3600 that the register is cooked / virtual.
3601 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3602 Only get the extra info when needed.
3603 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3604 (mips32_heuristic_proc_desc): Fetch the cooked register.
3605 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3606 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3607 (mips_print_register): Use gdbarch_register_type, instead of
3608 REGISTER_VIRTUAL_TYPE.
3609 (print_gp_register_row): Use gdbarch_register_type, instead of
3610 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3611 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3612 Print the pseudo / cooked registers.
3613 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3614 Print the pseudo / cooked registers.
3615 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3616 REG_NUM is pseudo / cooked.
3617 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3618 (mips_n32n64_xfer_return_value): Ditto.
3619 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3620 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3621 (mips_register_sim_regno): New function.
3622 (mips_gdbarch_init): Set deprecated_register_byte,
3623 register_group_p, pseudo_register_write, pseudo_register_read,
3624 register_sim_regno, and num_pseudo_regs. Set register_type,
3625 instead of register_virtual_type.
3626 * Makefile.in (mips-tdep.o): Update dependencies.
3627 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3628 REGISTER_VIRTUAL_TYPE.
3629 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3630 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3631 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3632 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3633 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3635 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3637 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3638 * cli/cli-cmds.c: Include "gdb_vfork.h".
3639 (shell_escape): Use vfork.
3641 2003-06-21 Andrew Cagney <cagney@redhat.com>
3643 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3644 32 bit floating-point register saves.
3646 * frame.h (deprecated_unwind_get_saved_register): Delete.
3647 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3648 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3649 and deprecated_get_next_frame_hack instead of
3650 deprecated_unwind_get_saved_register.
3652 * mips-tdep.c (mips_dump_tdep): Do not print
3653 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3655 * frame.c (get_frame_register): New function.
3656 (frame_unwind_register_signed): New function.
3657 (get_frame_register_signed): New function.
3658 (frame_unwind_register_unsigned): New function.
3659 (get_frame_register_unsigned): New function.
3660 * frame.h: Add comments on naming schema.
3661 (get_frame_register, frame_unwind_register_signed): Declare.
3662 (get_frame_register_signed, get_frame_register_signed): Declare.
3663 (frame_unwind_register_unsigned): Declare.
3664 (get_frame_register_unsigned): Declare.
3666 2003-06-20 Theodore A. Roth <troth@openavr.org>
3668 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3670 2003-06-20 Theodore A. Roth <troth@openavr.org>
3672 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3673 (avr_read_sp): Ditto.
3675 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3677 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3678 * config/arm/nm-linux.h: Likewise.
3679 * config/arm/tm-linux.h: Likewise.
3680 * config/ia64/nm-linux.h: Likewise.
3681 * config/ia64/tm-ia64.h: Likewise.
3682 * config/s390/tm-linux.h: Likewise.
3683 * config/s390/tm-s390.h: Likewise.
3684 * s390-nat.c: Likewise.
3685 * s390-tdep.c: Likewise.
3687 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3688 * config/ia64/linux.mt: Likewise.
3689 * config/m68k/linux.mh: Likewise.
3690 * config/mips/linux.mt: Likewise.
3691 * config/powerpc/linux.mh: Likewise.
3692 * config/sh/linux.mt: Likewise.
3694 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3696 * solib.c (solib_open): Change tests for whether to search
3697 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3700 2003-06-19 Theodore A. Roth <troth@openavr.org>
3702 * avr-tdep.c (avr_frame_address): Delete function.
3703 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3704 set_gdbarch_frame_args_address.
3706 2003-06-19 Andrew Cagney <cagney@redhat.com>
3708 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3709 (REGISTER_CONVERT_FROM_TYPE): Delete.
3710 (mips_register_convert_to_type): Delete declaration.
3711 (mips_register_convert_from_type): Delete declaration.
3712 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3715 2003-06-19 Michael Snyder <msnyder@redhat.com>
3717 * linux-nat.h: New file.
3718 * linux-nat.c: Include linux-nat.h.
3719 * lin-lwp.c: Include linux-nat.h.
3720 Move struct lwp_info def to linux-nat.h.
3721 * linux-proc.c: Include linux-nat.h.
3722 (linux_make_note_section): Iterate over lwps instead of threads.
3723 (linux_do_thread_registers): Use lwp instead of merged pid.
3724 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3725 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3726 Add dependency on linux_nat_h.
3728 2003-06-19 Theodore A. Roth <troth@openavr.org>
3730 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3732 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3734 * varobj.c (get_type, get_target_type): Use check_typedef.
3736 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3738 * breakpoint.c (insert_catchpoint): Call internal_error.
3740 2003-06-19 Theodore A. Roth <troth@openavr.org>
3742 * avr-tdep.c (avr_push_dummy_code): Delete function.
3743 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3745 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3747 * arch-utils.c (default_prepare_to_proceed): Remove.
3748 (generic_prepare_to_proceed): Remove.
3749 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3750 (generic_prepare_to_proceed): Remove prototype.
3751 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3752 * gdbarch.c: Regenerate.
3753 * gdbarch.h: Regenerate.
3754 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3755 * hppah-nat.c (hppa_switched_threads): Remove.
3756 * infrun.c (prepare_to_proceed): New static function, copied from
3757 generic_prepare_to_proceed. Remove select_it argument.
3758 (proceed): Call prepare_to_proceed.
3759 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3761 (ptrace_wait): Don't set the removed variables.
3762 (hppa_switched_threads): Remove.
3763 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3764 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3765 (lin_lwp_prepare_to_proceed): Remove prototype.
3766 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3767 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3769 2003-06-18 Theodore A. Roth <troth@openavr.org>
3771 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3773 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3774 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3775 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3776 (AVR_PROLOGUE_*): Enumerate prologue types.
3777 (struct frame_extra_info): Remove.
3778 (struct avr_unwind_cache): Define.
3779 (avr_write_sp): Delete function.
3780 (avr_read_fp): Ditto.
3781 (avr_init_extra_frame_info): Ditto.
3782 (avr_pop_frame): Ditto.
3783 (avr_frame_saved_pc): Ditto.
3784 (avr_saved_pc_after_call): Ditto.
3785 (avr_push_return_address): Ditto.
3786 (avr_frame_chain): Ditto.
3787 (avr_store_struct_return): Ditto.
3788 (avr_push_arguments): Ditto.
3789 (avr_scan_prologue): Update comments. Changed to set up the info for
3790 cache unwinding. Now returns end of prologue PC.
3791 (avr_skip_prologue): Better handling of functions lacking a prologue
3792 by using avr_scan_prologue.
3793 (avr_scan_arg_moves): New function.
3794 (avr_saved_regs_unwinder): Ditto.
3795 (avr_frame_unwind_cache): Ditto.
3796 (avr_unwind_pc): Ditto.
3797 (avr_frame_this_id): Ditto.
3798 (avr_frame_prev_register): Ditto.
3799 (avr_frame_p): Ditto.
3800 (avr_frame_base_address ): Ditto.
3801 (avr_unwind_dummy_id): Ditto.
3802 (avr_push_dummy_code): Ditto.
3803 (push_stack_item): Ditto.
3804 (pop_stack_item): Ditto.
3805 (avr_push_dummy_call): Ditto.
3806 (struct stack_item): Define.
3807 (avr_frame_unwind): Declare structure.
3808 (avr_frame_base): Ditto.
3809 (avr_gdbarch_init): Remove calls to
3810 set_gdbarch_deprecated_init_frame_pc,
3811 set_gdbarch_deprecated_target_read_fp,
3812 set_gdbarch_deprecated_dummy_write_sp,
3813 set_gdbarch_deprecated_fp_regnum,
3814 set_gdbarch_deprecated_push_arguments,
3815 set_gdbarch_deprecated_push_return_address,
3816 set_gdbarch_deprecated_pop_frame,
3817 set_gdbarch_deprecated_store_struct_return,
3818 set_gdbarch_deprecated_frame_init_saved_regs,
3819 set_gdbarch_deprecated_init_extra_frame_info,
3820 set_gdbarch_deprecated_frame_chain,
3821 set_gdbarch_deprecated_frame_saved_pc,
3822 set_gdbarch_deprecated_saved_pc_after_call.
3823 Add calls to set_gdbarch_push_dummy_call,
3824 set_gdbarch_push_dummy_code,
3825 frame_unwind_append_predicate,
3826 frame_base_set_default,
3827 set_gdbarch_unwind_dummy_id,
3828 set_gdbarch_unwind_pc.
3831 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3833 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3834 registers for H8/300S.
3835 (h8300_print_registers_info): Ditto.
3836 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3838 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3840 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3841 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3842 (lin_lwp_wait): Likewise. Update comments.
3843 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3844 (pull_pid_from_list, linux_record_stopped_pid): New.
3846 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3848 * ada-lang.c (scan_discrim_bound): Name first argument.
3849 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3850 declared by ALL_BLOCK_SYMBOLS.
3852 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3854 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3855 ("regcache.h"): Include it.
3856 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3858 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3860 * NEWS: Mention gdbserver detach change and "disconnect" command.
3861 * infcmd.c (disconnect_command): New function.
3862 (_initialize_infcmd): Add ``disconnect'' command.
3863 * remote.c (remote_async_detach): Delete.
3864 (remote_detach): Merge remote_async_detach.
3865 (remote_disconnect): New.
3866 (init_remote_ops): Set to_disconnect.
3867 (init_remote_cisco_ops): Likewise.
3868 (init_remote_async_ops): Likewise. Use remote_detach.
3869 * target.c (cleanup_target): Default to_disconnect.
3870 (update_current_target): Inherit to_disconnect.
3871 (target_disconnect, debug_to_disconnect): New functions.
3872 (setup_target_debug): Set to_disconnect.
3873 * target.h (struct target_ops): Add to_disconnect.
3874 (target_disconnect): Add prototype.
3876 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3878 * breakpoint.c (insert_catchpoint): New function.
3879 (insert_breakpoints): Use catch_exceptions to call
3880 insert_catchpoint. Disable catchpoints if they fail to insert.
3882 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3884 * symfile.c (reread_symbols): Clear sym_private.
3886 2003-06-17 Andrew Cagney <cagney@redhat.com>
3888 * trad-frame.h (struct frame_info): Add opaque declaration.
3889 * remote-fileio.h (struct cmd_list_element): Add opaque
3891 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3894 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3896 * remote.c (remote_prepare_to_store): Replace call to
3897 deprecated_read_register_bytes with multiple regcache_raw_read
3900 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3902 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3903 (nto_find_and_open_solib): Likewise.
3904 (nto_init_solib_absolute_prefix): Likewise.
3905 (_initialize_nto_tdep): Fix indentation.
3907 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3909 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3911 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3913 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3915 2003-06-17 Jim Blandy <jimb@redhat.com>
3917 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3919 2003-06-16 Theodore A. Roth <troth@openavr.org>
3921 * avr-tdep.c (avr_extract_return_value): New function.
3922 (avr_gdbarch_init): Set extract_return_value method.
3924 2003-06-16 Andrew Cagney <cagney@redhat.com>
3926 * frame.h (deprecated_get_next_frame_hack): Declare.
3927 * frame.c (legacy_saved_regs_prev_register): Only require
3928 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3929 there are always saved regs.
3930 (deprecated_generic_get_saved_register): Do not require
3931 DEPRECATED_FRAME_INIT_SAVED_REGS.
3932 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3933 use frame ID unwind instead.
3934 (deprecated_get_next_frame_hack): New function.
3936 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3938 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3939 (h8300_push_dummy_call): ...this function. Some minor optimization.
3940 (h8300_push_return_address): Remove.
3941 (h8300_gdbarch_init): Remove calls to
3942 set_gdbarch_deprecated_dummy_write_sp,
3943 set_gdbarch_deprecated_push_arguments and
3944 set_gdbarch_deprecated_push_return_address.
3945 Add call to set_gdbarch_push_dummy_call.
3947 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3949 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3950 (E_PSEUDO_EXR_REGNUM): Ditto.
3951 (h8300_is_argument_spill): Check for instructions moving argument
3952 registers into safe registers.
3953 (h8300_skip_prologue): Check for stm instruction to push registers
3954 used for register variables onto stack.
3955 (gdb_print_insn_h8300): Remove.
3956 (h8300_examine_prologue): Add a comment.
3957 (h8300_register_name): Take pseudo registers into account.
3958 (h8300s_register_name): Ditto.
3959 (h8300sx_register_name): Ditto.
3960 (h8300_print_register): Ditto.
3961 (h8300_print_registers_info): Define "nice" printing order.
3962 (h8300_saved_pc_after_call): Take pseudo registers into account.
3963 (h8300_register_type): Ditto. Return type used for remote connection
3964 when requesting real CCR or EXR register, return actual type when
3965 requesting pseudo CCR or EXR.
3966 (h8300_pseudo_register_read): New function.
3967 (h8300_pseudo_register_write): Ditto.
3968 (h8300_dbg_reg_to_regnum): Ditto.
3969 (h8300s_dbg_reg_to_regnum): Ditto.
3970 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3971 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3972 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3973 set_gdbarch_print_insn architecture dependent.
3974 Call set_gdbarch_pseudo_register_read and
3975 set_gdbarch_pseudo_register_write.
3976 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3978 2003-06-16 Andrew Cagney <cagney@redhat.com>
3980 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3981 * gdbarch.h, gdbarch.c: Re-generate.
3982 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3983 * s390-tdep.c (s390_gdbarch_init): Update.
3984 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3985 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3986 * mips-tdep.c (mips_gdbarch_init): Update.
3987 * mcore-tdep.c (mcore_gdbarch_init): Update.
3988 * cris-tdep.c (cris_gdbarch_init): Update.
3989 * infcall.c (call_function_by_hand): Update.
3990 * ia64-tdep.c (ia64_push_arguments): Update comment.
3991 * frame.c (legacy_get_prev_frame): Do not assume
3992 SAVE_DUMMY_FRAME_TOS_P.
3993 * dummy-frame.c (find_dummy_frame): Update comment.
3995 2003-06-16 Andrew Cagney <cagney@redhat.com>
3997 * regcache.c (do_cooked_read): Do not use register_valid_p.
3999 2003-06-15 Theodore A. Roth <troth@openavr.org>
4001 * avr-tdep.c (avr_register_type): Remove a blank line.
4002 (avr_scan_prologue): Correct some comments.
4004 2003-06-15 Theodore A. Roth <troth@openavr.org>
4006 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4008 Properly scan prologues generated by gcc with the -mcall-prologues
4010 Add code to scan -mcall-prologues for mega devices.
4012 2003-06-15 Theodore A. Roth <troth@openavr.org>
4014 * avr-tdep.c (avr_register_byte): Delete function.
4015 (avr_register_raw_size): Delete function.
4016 (avr_register_virtual_size): Delete function.
4017 (avr_register_virtual_type): Delete function.
4018 (avr_register_type): New function.
4019 (avr_address_to_pointer): Remove unused code.
4020 (avr_read_fp): Need to read FP as two separate bytes due to change to
4021 avr_register_type() usage.
4022 (avr_gdbarch_init): Don't set deprecated_register_size.
4023 Don't set deprecated_register_bytes.
4024 Don't set deprecated_register_byte.
4025 Don't set deprecated_register_raw_size.
4026 Don't set deprecated_max_register_raw_size.
4027 Don't set deprecated_register_virtual_size.
4028 Don't set deprecated_max_register_virtual_size.
4029 Don't set deprecated_register_virtual_type.
4030 Set register_type method.
4032 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4034 * Makefile.in (linux-nat.o): Add rule.
4035 * linux-nat.c: New file.
4036 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4037 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4038 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4039 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4040 * config/arm/linux.mh (NATDEPFILES): Likewise.
4041 * config/i386/linux.mh (NATDEPFILES): Likewise.
4042 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4043 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4044 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4045 * config/mips/linux.mh (NATDEPFILES): Likewise.
4046 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4047 * config/s390/s390.mh (NATDEPFILES): Likewise.
4048 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4050 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4052 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4053 replace out-of-date comment.
4055 2003-06-15 Andrew Cagney <cagney@redhat.com>
4057 * rdi-share/host.h (Fail): Change to a varargs function.
4058 * remote-rdi.c (Fail): Update.
4060 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4062 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4063 (i386_convert_register_p, i386_register_to_value,
4064 i386_register_from_value): Handle types longer than 8 bytes.
4066 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4068 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4069 Move floating-point code to new function in i387-tdep.c.
4070 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4071 New functions containing code moved here from i386-tdep.c.
4072 * i387-tdep.h: Add opaque declaration for `struct type'.
4073 (i387_register_to_value, i387_value_to_register): New prototypes.
4074 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4075 (x86_64_init_abi): Set convert_register_p, register_to_value and
4076 value_to_register here.
4078 2003-06-14 Andrew Cagney <cagney@redhat.com>
4080 * mips-tdep.c (mips_register_to_value): Make static.
4081 (mips_value_to_register): Make static.
4082 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4083 * ia64-tdep.c (ia64_register_raw_size): Make static.
4084 (ia64_register_virtual_size): Make static.
4085 (ia64_register_byte): Make static.
4086 * i387-tdep.c: Include "i387-tdep.h".
4087 (print_387_control_word): Delete function.
4088 (print_387_status_word): Delete function.
4089 (print_387_status_bits): Delete function.
4090 (print_387_control_bits): Delete function.
4091 * Makefile.in (i387-tdep.o): Update dependencies.
4092 * rdi-share/host.h (Fail): Declare.
4093 * remote-rdi.c (Fail): Update to match declaration.
4095 2003-06-14 Andrew Cagney <cagney@redhat.com>
4097 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4098 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4099 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4100 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4101 * README: Delete reference to remote-array.
4102 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4103 (remote-array.o): Delete target.
4104 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4105 * remote-array.c: Delete file.
4107 2003-06-14 Andrew Cagney <cagney@redhat.com>
4108 Mark Kettenis <kettenis@gnu.org>
4110 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4111 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4112 parameter with "frame".
4113 * gdbarch.h, gdbarch.c: Re-generate.
4114 * frame.h (put_frame_register): Declare.
4115 * frame.c (put_frame_register): New function.
4116 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4117 (legacy_register_to_value): Rewrite, use "frame" to get the
4119 (legacy_value_to_register): Rewrite, use "frame" to find the
4120 register's location before storing.
4121 * arch-utils.h (legacy_convert_register_p): Update.
4122 (legacy_register_to_value, legacy_value_to_register): Update.
4123 * findvar.c (value_from_register): Rewrite, eliminate use of
4124 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4125 "frame" to REGISTER_TO_VALUE.
4126 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4127 lval_reg_frame_relative + lval_register branch of the switch. Do
4128 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4129 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4130 I386_EDI_REGNUM): New defines.
4131 (i386_next_regnum, i386_convert_register_p,
4132 i386_register_to_value, i386_value_to_register): New functions.
4133 (i386_register_convertible, i386_register_convert_to_virtual,
4134 i386_convert_to_raw): Remove functions.
4135 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4136 value_to_register instead of register_convertible,
4137 register_convert_to_virtual and register_convert_to_raw.
4138 * mips-tdep.c (mips_convert_register_p): New function.
4139 (mips_value_to_register): Replace mips_register_convert_from_type.
4140 (mips_register_to_value): Replace mips_register_convert_to_type.
4141 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4143 * alpha-tdep.c (alpha_convert_register_p): Update.
4144 (alpha_value_to_register): Update, store the register.
4145 (alpha_register_to_value): Update, fetch the register.
4147 2003-06-14 Theodore A. Roth <troth@openavr.org>
4149 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4150 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4151 Don't set deprecated_call_dummy_words.
4152 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4153 Don't set remote_translate_xfer_address.
4154 (avr_io_reg_read_command): Remove commented out debug printf.
4157 2003-06-14 Theodore A. Roth <troth@openavr.org>
4159 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4160 causes gdb to seg fault.
4162 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4164 * sparc-nat.c (fetch_inferior_registers): Correct
4165 a reference to "registers".
4167 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4169 * Makefile.in (exc_request_U_h): Define
4170 (exc_request_S_h): Likewise.
4171 (msg_reply_S_h): Likewise.
4172 (msg_U_h): Likewise.
4173 (notify_S_h): Likewise.
4174 (process_reply_S_h): Likewise.
4175 (gnu-nat.o): Depend on gdb_obstack_h
4176 * gnu-nat.c: Include "gdb_obstack.h".
4178 2003-06-13 Andrew Cagney <cagney@redhat.com>
4180 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4181 * gdbarch.h, gdbarch.c: Re-generate.
4183 2003-06-13 Andrew Cagney <cagney@redhat.com>
4185 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4186 when deprecated REGISTER macros can be deleted.
4187 * gdbarch.h, gdbarch.c: Re-generate.
4189 2003-06-13 Jim Blandy <jimb@redhat.com>
4191 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4192 Linux entry point symbols for _dl_debug_state, too.
4194 2003-06-13 Andrew Cagney <cagney@redhat.com>
4196 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4197 available, do not use the FP register, and always save the TOS.
4198 * dummy-frame.c (dummy_frame_this_id): Do not assert
4199 SAVE_DUMMY_FRAME_TOS.
4200 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4201 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4202 (i386_push_dummy_call): Add 8 to the returned SP.
4203 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4204 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4205 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4206 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4207 (x86_64_push_dummy_call): Return "sp + 16".
4208 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4209 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4210 save_dummy_frame_tos.
4212 2003-06-13 Jim Blandy <jimb@redhat.com>
4214 * frv-tdep.c (frv_use_struct_convention): Delete static
4215 declaration for function deleted in my change of 2003-06-12.
4217 2003-06-13 Theodore A. Roth <troth@openavr.org>
4219 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4220 (avr_pointer_to_address): Shift code addrs left 1 bit.
4221 (avr_convert_from_func_ptr_addr): Delete function since operation is
4222 better handled by avr_address_to_pointer and avr_pointer_to_address.
4223 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4225 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4227 From Kelley Cook <kelleycook@wideopenwest.com>:
4228 * configure.host: Accept i[34567]86 variants.
4229 * configure.tgt: Likewise.
4230 * nlm/configure.in: Likewise.
4231 * nlm/configure: Regenerated.
4233 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4235 * arm-tdep.c (solib-svr4.h): Dont' include it.
4236 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4237 * arm-linux-tdep.c: ... here. Make static.
4238 (arm_linux_init_abi): Register it.
4239 (solib-svr4.h): Include it.
4240 * Makefile.in: Update dependencies.
4241 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4242 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4244 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4246 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4247 indicate registers used for return values.
4248 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4249 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4251 (h8300_init_extra_frame_info): Ditto.
4252 (h8300_frame_locals_address): Removed.
4253 (h8300_frame_args_address): Removed.
4254 (h8300_extract_return_value): Use new regcache structure. Only care
4256 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4257 (h8300_store_return_value): Use new regcache structure. Only care
4259 (h8300h_store_return_value): Same function for 32 bit CPUs.
4260 (h8300_store_struct_return): Removed.
4261 (h8300_extract_struct_value_address): Use new regcache structure.
4262 (h8300h_extract_struct_value_address): Removed.
4263 (h8300_push_dummy_code): New function.
4264 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4265 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4266 set_gdbarch_store_return_value architecture dependent.
4267 Call set_gdbarch_push_dummy_code and
4268 set_gdbarch_extract_struct_value_address.
4269 Remove calls to set_gdbarch_frame_args_address,
4270 set_gdbarch_frame_locals_address,
4271 set_gdbarch_deprecated_store_struct_return,
4272 set_gdbarch_deprecated_extract_return_value,
4273 set_gdbarch_deprecated_extract_struct_value_address,
4274 set_gdbarch_deprecated_call_dummy_words and
4275 set_gdbarch_deprecated_sizeof_call_dummy_words.
4277 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4279 * h8300-tdep.c (h8300_register_byte): Remove.
4280 (h8300h_register_byte): Remove.
4281 (h8300_register_virtual_type): Remove. Substitute by...
4282 (h8300_register_type): New function.
4283 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4284 (h8300h_extract_struct_value_address): Ditto.
4285 (h8300_gdbarch_init): Drop calls to
4286 set_gdbarch_deprecated_register_byte and
4287 set_gdbarch_deprecated_register_virtual_type.
4288 Add call to set_gdbarch_register_type.
4290 2003-06-13 Andrew Cagney <cagney@redhat.com>
4292 * gdbarch.sh: Update comments on registers.
4293 (deprecated_register_byte): Rename register_byte.
4294 (deprecated_register_raw_size): Rename register_raw_size.
4295 (deprecated_register_virtual_size): Rename register_virtual_size.
4296 (deprecated_register_virtual_type): Rename register_virtual_type.
4297 * gdbarch.h, gdbarch.c: Re-generate.
4298 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4299 * vax-tdep.c (vax_gdbarch_init): Update.
4300 * v850-tdep.c (v850_gdbarch_init): Update.
4301 * sparc-tdep.c (sparc_gdbarch_init): Update.
4302 * sh-tdep.c (sh_gdbarch_init): Update.
4303 * s390-tdep.c (s390_gdbarch_init): Update.
4304 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4305 * ns32k-tdep.c: Update.
4306 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4307 * mips-tdep.c (mips_gdbarch_init): Update.
4308 * mcore-tdep.c (mcore_gdbarch_init): Update.
4309 * m68k-tdep.c (m68k_gdbarch_init): Update.
4310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4311 * ia64-tdep.c (ia64_gdbarch_init): Update.
4312 * hppa-tdep.c (hppa_gdbarch_init): Update.
4313 * h8300-tdep.c (h8300_gdbarch_init): Update.
4314 * frv-tdep.c (frv_gdbarch_init): Update.
4315 * cris-tdep.c (cris_gdbarch_init): Update.
4316 * avr-tdep.c (avr_gdbarch_init): Update.
4317 * alpha-tdep.c (alpha_gdbarch_init): Update.
4318 * arm-tdep.c (arm_gdbarch_init): Update.
4320 2003-06-13 Andrew Cagney <cagney@redhat.com>
4322 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4323 mips_o32_use_struct_convention with always_use_struct_convention.
4325 2003-06-12 David Carlton <carlton@kealia.com>
4327 * cp-namespace.c (cp_set_block_scope): Comment out
4328 processing_has_namespace_info branch.
4330 2003-06-12 Jim Blandy <jimb@redhat.com>
4332 Recognize and skip 64-bit PowerPC Linux linkage functions.
4333 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4334 insn_pattern, insns_match_pattern, d_field, ds_field): New
4335 functions, macros, and types for working with PPC instructions.
4336 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4337 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4338 ppc64_skip_trampoline_code): New functions, variables, and macros
4339 for recognizing and skipping linkage functions.
4340 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4341 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4343 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4344 register offsets for both the 32- and 64-bit interfaces.
4346 Actually finish the job started by my change of 2003-05-29.
4347 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4348 other #definition of this.
4349 (ppc_linux_skip_trampoline_code): Remove declaration.
4350 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4352 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4355 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4356 'long' on ppc64-*-linux*.
4358 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4359 isn't #defined, assume the register doesn't exist: act as if
4360 tdep->ppc_mq_regnum were -1.
4362 * configure.host, configure.tgt: Add entries for
4363 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4365 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4368 * arch-utils.c (always_use_struct_convention): New function.
4369 * arch-utils.h (always_use_struct_convention): New prototype.
4370 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4371 (alpha_gdbarch_init): Register always_use_struct_convention,
4372 instead of alpha_use_struct_convention.
4373 * cris-tdep.c (cris_use_struct_convention): Delete.
4374 (cris_gdbarch_init): Register always_use_struct_convention,
4375 instead of cris_use_struct_convention.
4376 * frv-tdep.c (frv_use_struct_convention): Delete.
4377 (frv_gdbarch_init): Register always_use_struct_convention,
4378 instead of frv_use_struct_convention.
4379 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4380 (h8300_gdbarch_init): Register always_use_struct_convention,
4381 instead of h8300_use_struct_convention.
4382 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4383 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4384 instead of mips_o32_use_struct_convention.
4386 2003-06-12 Andrew Cagney <cagney@redhat.com>
4388 * wince.c: Include "mips-tdep.h".
4389 * mips-tdep.h (mips_next_pc): Declare.
4390 * mcore-tdep.c: Make more local functions static.
4391 * Makefile.in (wince.o): Update dependencies.
4393 2003-06-12 David Carlton <carlton@kealia.com>
4395 * symtab.c (lookup_symbol_aux_minsyms): Replace
4396 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4397 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4398 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4399 SYMBOL_NATURAL_NAME.
4401 2003-06-12 Andreas Schwab <schwab@suse.de>
4403 * Makefile.in (tuiDisassem.o): Update dependencies.
4405 2003-06-12 David Carlton <carlton@bactrian.org>
4407 * symtab.h: Delete declaration of make_symbol_overload_list.
4408 Add declaration of lookup_partial_symbol.
4409 * symtab.c (remove_params): Move to cp-support.c.
4410 (overload_list_add_symbol, make_symbol_overload_list)
4411 (sym_return_val_size, sym_return_val_index): Ditto.
4412 (lookup_partial_symbol): Make extern.
4413 * cp-support.h: Add declaration of make_symbol_overload_list.
4414 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4415 symtab.h, and block.h.
4416 (remove_params): Move here from symtab.c.
4417 (overload_list_add_symbol, make_symbol_overload_list)
4418 (sym_return_val_size, sym_return_val_index): Ditto.
4419 * valops.c: Include cp-support.h.
4420 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4421 frame_h, and block_h.
4422 (valops.o): Depend on cp_support_h.
4424 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4426 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4427 substitute by NUM_REGS throughout.
4428 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4429 (h8300s_register_name): New function for H8S registers.
4430 (h8300sx_register_name): Ditto for H8SX registers.
4431 (h8300_print_register): Revise register printing, avoid depending
4433 (h8300_register_byte): Only care for H8/300 registers.
4434 (h8300h_register_byte): New function for any other architecture.
4435 (h8300_register_raw_size): Remove.
4436 (h8300_register_virtual_type): Revise to return actually useful
4438 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4439 (h8300h_extract_struct_value_address): New function for any other
4441 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4442 set_gdbarch_register_name, set_gdbarch_register_byte,
4443 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4444 Remove calls to set_gdbarch_deprecated_register_size,
4445 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4446 set_gdbarch_deprecated_max_register_raw_size,
4447 set_gdbarch_register_virtual_size and
4448 set_gdbarch_deprecated_max_register_virtual_size entirely.
4449 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4450 set_gdbarch_long_double_bit.
4452 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4454 * doublest.c (convert_doublest_to_floatformat): When dealing
4455 with the implied integer bit, only alter mant_bits if we are
4456 processing a full 32 bits of mantissa.
4458 2003-06-11 David Carlton <carlton@bactrian.org>
4460 * dictionary.h: New.
4461 * dictionary.c: New.
4462 * block.h: Add opaque declaration for struct dictionary.
4463 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4465 (BLOCK_DICT): New macro.
4466 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4467 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4469 (ALL_BLOCK_SYMBOLS): Update definition.
4470 * Makefile.in (SFILES): Add dictionary.c.
4471 (dictionary_h): New.
4472 (COMMON_OBS): Add dictionary.o.
4473 (dictionary.o): New.
4474 (ada-lang.o): Depend on dictionary_h.
4475 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4476 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4477 (mi-cmd-stack.o): Ditto.
4478 (gdbtk-cmds.o): Update dependencies.
4479 (gdbtk-stack.o): Ditto.
4480 * ada-lang.c: Include dictionary.h.
4481 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4482 (fill_in_ada_prototype, debug_print_block): Ditto.
4483 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4484 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4486 * mdebugread.c: Include dictionary.h.
4487 (struct parse_stack): Delete 'maxsyms' member.
4488 (parse_symbol): Update calls to new_block. Delete calls to
4489 shrink_block. Use dictionary methods.
4490 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4491 Update calls to new_symtab. Don't maintain maxsyms data.
4492 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4493 (add_symbol): Just call dict_add_symbol.
4494 (new_symtab): Delete 'maxsyms' argument.
4495 (new_symtab): Update calls to new_block.
4496 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4497 (shrink_block): Delete function.
4498 (fixup_sigtramp): Update call to new_block. Add symbol via
4500 * jv-lang.c: Include dictionary.h.
4501 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4502 appropriately. Set class_symtab->free_func. Make sure the
4503 blockvector is big enough to hold two blocks.
4504 (add_class_symtab_symbol): Use dictionary methods.
4505 (free_class_block): New function.
4506 (type_from_class): Replace explicit iteration by
4508 * symtab.h (struct symtab): Replace 'free_ptr' method by
4510 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4512 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4514 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4515 Include dictionary.h.
4516 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4517 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4519 * objfiles.c: Include dictionary.h.
4520 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4521 * buildsym.c: Include dictionary.h.
4522 (finish_block): Use dictionary methods.
4523 (end_symtab): Set free_func to NULL, not free_ptr.
4524 * tracepoint.c: Include dictionary.h.
4525 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4526 (scope_info): Ditto.
4527 * stack.c: Include dictionary.h.
4528 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4529 (print_block_frame_labels, print_frame_arg_vars)
4530 (print_frame_args): Ditto.
4531 * symmisc.c (free_symtab_block): Use dictionary methods.
4532 (dump_symtab): Ditto.
4533 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4534 Include dictionary.h.
4535 * symfile.h: Delete declarations of sort_block_syms,
4537 * symfile.c (sort_block_syms): Delete.
4538 (sort_symtab_syms): Delete.
4539 * symtab.c: Include dictionary.h.
4540 (lookup_block_symbol): Use dictionary iterators.
4541 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4542 (search_symbols, make_symbol_completion_list): Ditto.
4543 (make_symbol_overload_list): Ditto.
4544 * valops.c (value_of_local): Use dict_empty.
4545 Include dictionary.h.
4547 2003-06-11 J. Brobecker <brobecker@gnat.com>
4549 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4551 2003-06-11 David Carlton <carlton@bactrian.org>
4553 * block.h (BLOCK_SHOULD_SORT): Delete.
4554 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4556 * ada-lang.c (ada_add_block_symbols): Ditto.
4557 * symfile.c (sort_block_syms): Delete.
4558 (sort_symtab_syms): Ditto.
4559 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4561 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4562 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4563 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4564 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4565 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4566 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4567 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4569 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4571 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4574 2003-06-11 Andrew Cagney <cagney@redhat.com>
4576 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4577 REGISTER_CONVERTIBLE.
4578 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4579 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4580 * gdbarch.h, gdbarch.c: Re-generate.
4581 * arch-utils.h (deprecated_register_convertible_not): Rename
4582 generic_register_convertible_not.
4583 * arch-utils.c (deprecated_register_convertible_not): Rename
4584 generic_register_convertible.
4585 (legacy_convert_register_p, legacy_register_to_value): Update.
4586 * sh-tdep.c (sh64_push_arguments): Update.
4587 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4588 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4589 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4590 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4591 * arch-utils.c (legacy_value_to_register): Update.
4592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4593 (rs6000_register_convert_to_raw): Make parameter "from" const.
4594 * mips-tdep.c (mips_gdbarch_init): Update.
4595 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4596 * infcmd.c (default_print_registers_info): Update.
4597 * ia64-tdep.c (ia64_gdbarch_init): Update.
4598 (ia64_register_convert_to_raw): Make parameter "from" const.
4599 * i386-tdep.c (i386_gdbarch_init): Update.
4600 (i386_register_convert_to_raw): Update.
4602 2003-06-11 Andrew Cagney <cagney@redhat.com>
4604 * remote-fileio.c: Include "remote-fileio.h".
4605 * Makefile.in (remote-fileio.o): Update dependencies.
4606 (remote_fileio_h): Fix typo.
4608 2003-06-11 Andrew Cagney <cagney@redhat.com>
4610 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4611 (xstormy16_save_dummy_frame_tos): Make static.
4612 (_initialize_xstormy16_tdep): Add declaration.
4613 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4614 * v850-tdep.c: Make local functions static.
4615 (_initialize_v850_tdep): Add declaration.
4616 * sparc-tdep.c: Make local functions static.
4617 (_initialize_sparc_tdep): Add declaration.
4618 * sh-tdep.c: Make local functions static.
4619 (_initialize_sh_tdep): Add declaration.
4620 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4621 * s390-tdep.c: Make local functions static.
4622 (_initialize_s390_tdep): Add declaration.
4623 * dbxread.c (find_stab_function_addr): Make static.
4624 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4625 * ocd.c (_initialize_remote_ocd): Add declaration.
4626 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4627 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4628 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4629 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4630 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4631 * remote-array.c (_initialize_array): Add declaration.
4632 (_initialize_remote_monitors): Add declaration.
4633 * remote-mips.c: Make local functions static.
4634 (_initialize_remote_mips): Add declaration.
4635 * mcore-tdep.c: Make all local functions static.
4636 (_initialize_mcore_tdep): Add declaration.
4637 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4638 * abug-rom.c (_initialize_abug_rom): Add declaration.
4639 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4640 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4641 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4642 * remote-est.c (_initialize_est): Add declaration.
4643 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4644 (m68hc11_call_dummy_address): Make static.
4645 * ia64-tdep.c: Make local functions static.
4646 (_initialize_ia64_tdep): Add declaration.
4647 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4648 * monitor.c (monitor_wait_filter): Make static.
4649 (_initialize_remote_monitors): Add declaration.
4650 * remote-hms.c (_initialize_remote_hms): Add declaration.
4651 * remote-e7000.c (fetch_regs_from_dump): Make static.
4652 (expect_n): Make static.
4653 (_initialize_remote_e7000): Add declaration.
4654 * ser-e7kpc.c: Always include "defs.h".
4655 (_initialize_ser_e7000pc): Add declaration.
4656 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4657 * cris-tdep.c: Make all but one function static.
4658 (_initialize_cris_tdep): Add declaration.
4659 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4660 * solib.c (update_solib_list): Make static.
4661 (_initialize_solib): Add declaration.
4662 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4663 (_initialize_avr_tdep): Add declaration.
4664 * remote-rdi.c (voiddummy): Make static.
4665 (_initialize_remote_rdi): Add declaration.
4666 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4667 * remote-rdp.c (send_rdp): Make static.
4668 (_initialize_remote_rdp): Add declaration.
4669 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4671 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4673 * remote-fileio.c: Make ari happy.
4675 2003-06-10 J. Brobecker <brobecker@gnat.com>
4677 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4678 fetching the trailing bytes of the buffer we are about to write.
4680 2003-06-10 Andrew Cagney <cagney@redhat.com>
4682 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4683 * Makefile.in (remote-fileio.o): Update dependencies.
4684 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4685 include <setjmp.h>, or <sys/types.h> conditional on USG.
4686 (remote_fio_jmp_buf): Delete global variable.
4688 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4689 Martin M. Hunt <hunt@redhat.com>
4691 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4692 (SFILES): Add remote-fileio.c.
4693 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4694 dependencies for building remote.o.
4695 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4696 * remote-fileio.h: New header file defining remote File-I/O interface.
4697 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4698 static storage class.
4699 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4701 (_initialize_remote): Call initialize_remote_fileio().
4702 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4703 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4704 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4705 (captured_main): Initialize new ui_files.
4706 * ui-file.c: Add read and fgets input functions.
4707 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4708 (null_file_read): New function.
4709 (ui_file_read): New function.
4710 (set_ui_file_read): New function.
4711 (stdio_file_read): New function.
4712 * ui-file.h: New type ui_file_read_ftype.
4713 (set_ui_file_read): Declare.
4714 (ui_file_read): Declare.
4716 2003-06-09 Andrew Cagney <cagney@redhat.com>
4718 * frame.h (deprecated_unwind_get_saved_register): Rename
4719 generic_unwind_get_saved_register, update comments.
4720 * mips-tdep.c (mips_get_saved_register): Update.
4721 * frame.c (deprecated_unwind_get_saved_register): Update.
4723 2003-06-09 Andrew Cagney <cagney@redhat.com>
4725 * vax-tdep.c (vax_frame_locals_address): Delete function.
4726 (vax_gdbarch_init): Do not set frame_locals_address.
4727 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4728 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4729 * s390-tdep.c (s390_frame_args_address): Delete function.
4730 (s390_gdbarch_init): Do not set frame_args_address or
4731 frame_locals_address.
4732 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4733 (ns32k_gdbarch_init): Do not set frame_locals_address.
4734 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4735 (hppa_frame_locals_address): Delete function.
4736 (hppa_gdbarch_init): Do not set frame_args_address, or
4737 frame_locals_address.
4738 * arm-tdep.c (arm_frame_args_address): Delete.
4739 (arm_frame_locals_address): Delete.
4740 (arm_gdbarch_init): Do not set frame_args_address, or
4741 frame_locals_address.
4743 2003-06-09 Andrew Cagney <cagney@redhat.com>
4745 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4746 * gdbarch.h, gdbarch.c: Re-generate.
4747 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4748 * arch-utils.c (frame_num_args_unknown): Delete function.
4749 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4750 (frame_info): Use FRAME_NUM_ARGS_P.
4751 * arm-tdep.c (arm_frame_num_args): Delete function.
4752 (arm_gdbarch_init): Do not set frame_num_args.
4753 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4754 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4755 (hppa_gdbarch_init): Do not set frame_num_args.
4756 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4758 frame_num_args to default frame_num_args_unknown.
4759 * v850-tdep.c (v850_gdbarch_init): Ditto.
4760 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4761 * sh-tdep.c (sh_gdbarch_init): Ditto.
4762 * s390-tdep.c (s390_gdbarch_init): Ditto.
4763 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4764 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4765 * mips-tdep.c (mips_gdbarch_init): Ditto.
4766 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4767 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4768 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4769 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4770 * i386-tdep.c (i386_gdbarch_init): Ditto.
4771 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4772 * frv-tdep.c (frv_gdbarch_init): Ditto.
4773 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4774 * cris-tdep.c (cris_gdbarch_init): Ditto.
4775 * avr-tdep.c (avr_gdbarch_init): Ditto.
4776 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4778 2003-06-09 Andrew Cagney <cagney@redhat.com>
4780 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4781 (print_frame_args): Moved to "stack.c".
4782 * stack.c: Include "gdb_assert.h".
4783 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4784 (print_frame_args): Moved from "printcmd.c".
4785 * frame.h (print_frame_args): Delete declaration.
4786 * Makefile.in (stack.o): Update dependencies.
4788 2003-06-08 Andrew Cagney <cagney@redhat.com>
4790 * frame.c (get_prev_frame): Remove reference to
4791 frame_args_address_correct in comments.
4792 * frame-base.c (default_frame_args_address): Delete code
4793 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4794 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4795 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4796 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4797 (vax_frame_args_address_correct): Delete declaration.
4799 2003-06-08 Andrew Cagney <cagney@redhat.com>
4801 * gdbarch.sh (UNWIND_SP): Add.
4802 * gdbarch.h, gdbarch.c: Re-generate.
4803 * frame.c (frame_sp_unwind): New function.
4804 (get_frame_sp): New function.
4805 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4806 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4807 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4809 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4810 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4812 2003-06-08 Andrew Cagney <cagney@redhat.com>
4814 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4817 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4818 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4819 * config/m68k/tm-sun3.h: Update.
4820 * config/m68k/tm-m68klynx.h: Update.
4821 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4823 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4824 trad_frame". Update comments.
4825 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4826 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4827 (trad_frame_register_value, trad_frame_prev_register): Update.
4829 2003-06-08 Andrew Cagney <cagney@redhat.com>
4831 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4832 from GCC's acinclude.m4.
4833 * configure.in: Check for getopt's delcaration.
4834 * aclocal.m4, config.in, configure: Re-generate.
4835 * main.c (error_init): Delete declaration.
4836 * defs.h (error_init): Declare.
4837 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4838 (rs6000_convert_from_func_ptr_addr): Make static.
4839 (_initialize_rs6000_tdep): Add declaration.
4840 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4841 (show_commands, set_verbose, show_history): Delete declaration.
4842 * top.h (set_verbose): Add declaration.
4843 (show_history, set_history, show_commands): Add declaration.
4844 (do_restore_instream_cleanup): Add declaration.
4845 * objc-lang.c (specialcmp): Make static.
4846 (print_object_command): Make static.
4847 (find_objc_msgsend): Make static.
4848 (find_objc_msgcall_submethod_helper): Make static.
4849 (find_objc_msgcall_submethod): Make static.
4850 (_initialize_objc_language): Add declaration.
4851 (find_implementation_from_class): Make static.
4852 (find_implementation): Make static.
4853 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4854 * objc-lang.h (lookup_struct_typedef): Add declaration.
4855 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4856 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4857 (do_restore_user_call_depth): Make static.
4858 (do_restore_instream_cleanup): Delete declaration.
4859 (dont_repeat): Delete declaration.
4860 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4861 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4862 * reggroups.c (_initialize_reggroup): Add declaration.
4863 * cp-support.c (_initialize_cp_support): Add declaration.
4864 * cp-abi.c (_initialize_cp_abi): Add declaration.
4865 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4866 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4867 (_initialize_gnu_v3_abi): Add declaration.
4868 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4869 (_initialize_gnu_v2_abi): Add declaration.
4870 * frame-base.c (_initialize_frame_base): Add declaration.
4871 * doublest.c (floatformat_from_length): Make static.
4872 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4873 * frame.c (create_sentinel_frame): Make static.
4874 (_initialize_frame): Add declaration.
4875 * top.c (do_catch_errors): Make static.
4876 (gdb_rl_operate_and_get_next_completion): Make static.
4877 * typeprint.c: Include "typeprint.h".
4878 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4879 (sentinel_frame_this_id): Make static.
4880 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4881 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4882 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4883 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4884 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4885 * maint.c (maintenance_print_architecture): Make static.
4886 * signals/signals.c (_initialize_signals): Add declaration.
4887 * std-regs.c (_initialize_frame_reg): Add declaration.
4888 * jv-exp.y (push_variable): ISO C definition.
4889 (push_qualified_expression_name): Ditto.
4890 * memattr.c (_initialize_mem): Add declaration.
4891 * remote.c (remote_check_watch_resources): Make static.
4892 (remote_stopped_by_watchpoint): Make static.
4893 (remote_stopped_data_address): Make static.
4894 * d10v-tdep.c (nr_dmap_regs): Make static.
4895 (a0_regnum): Make static.
4896 (d10v_frame_unwind_cache): Make static.
4897 (d10v_frame_p): Make static.
4898 * osabi.c (show_osabi): Make static.
4899 (_initialize_gdb_osabi): Add extern declaration.
4900 * gdbtypes.c (make_qualified_type): Make static.
4901 (safe_parse_type): Make static.
4902 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4903 * macrotab.c (macro_bcache_free): Make static.
4904 * interps.c (interp_set_quiet): Make static.
4905 (interpreter_exec_cmd): Make static.
4906 * stack.h (select_frame_command): New file.
4907 * stack.c: Include "stack.h".
4908 (select_frame_command_wrapper): Delete function.
4909 (select_frame_command): Make global.
4910 * infcall.c: Include "infcall.h".
4911 * linespec.c: Include "linespec.h".
4912 * symfile.c (sections_overlap): Make static.
4913 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4914 * charset.c (_initialize_charset): Add missing prototype.
4915 * regcache.c (init_legacy_regcache_descr): Make static.
4916 (do_regcache_xfree): Make static.
4917 (regcache_xfer_part): Make static.
4918 (_initialize_regcache): Add missing prototype.
4919 * breakpoint.c (parse_breakpoint_sals): Make static.
4920 (breakpoint_sals_to_pc): Make static.
4921 * interps.h (clear_interpreter_hooks): ISO C declaration.
4922 * Makefile.in (stack_h): Define.
4923 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4924 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4926 2003-06-08 Andrew Cagney <cagney@redhat.com>
4928 * Makefile.in (d10v-tdep.o): Update dependencies.
4929 (SFILES): Add trad-frame.c.
4930 (trad_frame_h): Define.
4931 (COMMON_OBS): Add trad-frame.o.
4932 (trad-frame.o): Specify dependencies.
4933 * d10v-tdep.c: Include "trad-frame.h".
4934 (saved_regs_unwinder): Delete function.
4935 (d10v_frame_prev_register): Use trad_frame_prev_register.
4936 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4937 trad_frame", delete "regs" and "prev_sp".
4938 (prologue_find_regs): Use trad-frame.
4939 * trad-frame.h, trad-frame.c: New files.
4941 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4943 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4945 2003-06-07 Adam Fedor <fedor@gnu.org>
4947 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4948 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4949 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4950 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4951 resolve_msgsend_super, resolve_msgsend_super_stret):
4954 2003-06-07 Andrew Cagney <cagney@redhat.com>
4956 * symfile.h: Re-indent, clean up comments.
4958 2003-06-07 Andrew Cagney <cagney@redhat.com>
4960 * inferior.h (deprecated_write_sp): Replace
4961 generic_target_write_sp.
4962 * regcache.c (deprecated_write_sp): Replace
4963 generic_target_write_sp.
4964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4965 * vax-tdep.c (vax_gdbarch_init): Update.
4966 * v850-tdep.c (v850_gdbarch_init): Update.
4967 * sparc-tdep.c (sparc_gdbarch_init): Update.
4968 * sh-tdep.c (sh_gdbarch_init): Update.
4969 * s390-tdep.c (s390_gdbarch_init): Update.
4970 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4971 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4972 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4973 * mcore-tdep.c (mcore_gdbarch_init): Update.
4974 * m68k-tdep.c (m68k_gdbarch_init): Update.
4975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4976 * ia64-tdep.c (ia64_gdbarch_init): Update.
4977 * h8300-tdep.c (h8300_gdbarch_init): Update.
4978 * frv-tdep.c (frv_gdbarch_init): Update.
4979 * cris-tdep.c (cris_gdbarch_init): Update.
4980 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4982 2003-06-07 Andrew Cagney <cagney@redhat.com>
4984 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4985 Assert that PC_REGNUM is valid.
4986 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4988 2003-06-07 Andrew Cagney <cagney@redhat.com>
4990 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4991 * gdbarch.h, gdbarch.c: Regenerate.
4992 * mn10300-tdep.c: Include "gdb_assert.h".
4993 (mn10300_read_fp): New function.
4994 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4995 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4996 * ia64-tdep.c: Include "gdb_assert.h".
4997 (ia64_read_fp): New function.
4998 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4999 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5000 * regcache.c (generic_target_read_sp): Delete function.
5001 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5002 * inferior.h (generic_target_read_sp): Delete declaration.
5003 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5004 generic_target_read_sp.
5005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5006 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5007 * sh-tdep.c (sh_gdbarch_init): Ditto.
5008 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5009 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5011 2003-06-07 Andrew Cagney <cagney@redhat.com>
5013 * gdbarch.sh: Comment each field of startup_gdbarch.
5014 * gdbarch.h, gdbarch.c: Re-generate.
5016 2003-06-07 Andrew Cagney <cagney@redhat.com>
5018 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5019 * gdbarch.h, gdbarch.c: Re-generate.
5020 * regcache.c: Update comments on read_pc et.al.
5021 (generic_target_read_pc): Delete function.
5022 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5023 * inferior.h (generic_target_read_pc): Delete declaration.
5024 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5025 generic_target_read_pc.
5026 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5027 * sh-tdep.c (sh_gdbarch_init): Ditto.
5028 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5029 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5031 2003-06-07 Andrew Cagney <cagney@redhat.com>
5033 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5034 "index" with "special_local_sect". Use strcmp instead of STREQ.
5035 Append period to coments.
5037 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5039 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5040 (elfstab_offset_sections): Likewise.
5041 * gdb-stabs.h (stab_section_info): Likewise.
5042 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5043 * objfiles.c (objfile_relocate): Likewise.
5044 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5045 * remote.c (get_offsets): Likewise.
5046 (remote_cisco_objfile_relocate): Likewise.
5047 * somread.c (som_symfile_offsets): Likewise.
5048 * symfile.c (alloc_section_addr_info): New function.
5049 (build_section_addr_info_from_section_tab): Use it.
5050 (free_section_addr_info): Adjust.
5051 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5052 (syms_from_objfile): Allocate local_addr dynamically.
5053 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5055 (add_symbol_file_command): Allocate sect_opts dynamically.
5056 (reread_symbols): Avoid use of SECT_OFF_MAX.
5057 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5058 (alloc_section_addr_info): Declare it.
5059 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5060 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5062 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5064 2003-06-06 Andrew Cagney <cagney@redhat.com>
5066 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5067 (d10v_frame_unwind_cache): Do not set "return_pc".
5069 2003-06-06 Michael Snyder <msnyder@redhat.com>
5071 * h8300-tdep.c: Make tidy (long lines).
5073 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5075 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5076 to regcache_collect().
5078 2003-06-05 J. Brobecker <brobecker@gnat.com>
5080 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5081 pc_in_sigtramp multiarch method.
5082 (hppa_hpux_som_init_abi): Use it.
5083 (hppa_hpux_elf_init_abi): Likewise.
5084 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5085 macro has been multiarched.
5086 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5087 macro here, as hppa64 isn't multiarched yet.
5089 2003-06-05 Andrew Cagney <cagney@redhat.com>
5091 * Makefile.in (value_h): Add $(frame_h).
5092 * value.h: Include "frame.h".
5093 (struct value): Replace "frame_addr" with "frame_id".
5094 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5095 * values.c (allocate_value): Use VALUE_FRAME_ID.
5096 (value_copy): Use VALUE_FRAME_ID.
5097 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5098 * valops.c (value_assign): Update. Use frame_find_by_id.
5100 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5102 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5105 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5107 * thread-db.c (check_event): For create/death event breakpoints,
5108 loop through all messages to ensure that we read the message
5109 corresponding to the breakpoint we are at.
5111 2003-06-04 Michael Snyder <msnyder@redhat.com>
5113 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5115 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5117 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5118 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5119 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5120 when handling .eh_frame sections.
5122 2003-06-04 J. Brobecker <brobecker@gnat.com>
5124 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5125 prepare_to_proceed procedure instead of the hppa-specific one.
5126 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5128 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5130 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5131 * config.in: Regenerated.
5132 * configure.in: Add test for syscall function and check for
5133 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5134 * configure: Regenerated.
5135 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5137 (kill_lwp): New function that uses tkill syscall or
5138 uses kill, depending on whether threading model is nptl or not.
5139 All callers of kill() changed to use kill_lwp().
5140 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5141 see if all threads have already exited in the nptl model.
5142 (stop_and_resume_callback): New callback function used by the
5143 lin_lwp_wait thread exit handling code.
5144 (stop_wait_callback): Check for threads already having exited and
5145 delete such threads fromt the lwp list when discovered.
5146 (stop_callback): Don't assert retcode of kill call.
5148 Roland McGrath <roland@redhat.com>
5149 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5152 2003-06-03 Richard Henderson <rth@redhat.com>
5154 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5155 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5156 (alpha_sigtramp_frame_prev_register): Likewise.
5157 (alpha_heuristic_frame_prev_register): Likewise.
5158 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5160 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5161 alpha-specific register id names.
5162 (alpha_mdebug_frame_unwind_cache): Likewise.
5163 (alpha_mdebug_frame_prev_register): Likewise.
5165 2003-06-03 Richard Henderson <rth@redhat.com>
5167 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5168 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5169 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5170 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5172 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5173 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5174 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5176 * alpha-linux-tdep.c: Remove unnecessary includes.
5177 * Makefile.in (alpha-linux-tdep.o): Update.
5179 2003-06-03 Richard Henderson <rth@redhat.com>
5181 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5182 (alphabsd_fill_fpreg): Likewise.
5184 2003-06-03 J. Brobecker <brobecker@gnat.com>
5186 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5187 references to struct frame_info fields by calls to the equivalent
5188 accessors. Necessary now that frame_info is opaque.
5190 2003-06-03 J. Brobecker <brobecker@gnat.com>
5192 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5193 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5194 structure, field no longer exists.
5196 2003-06-03 J. Brobecker <brobecker@gnat.com>
5198 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5199 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5201 2003-06-03 J. Brobecker <brobecker@gnat.com>
5203 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5204 references to struct frame_info fields by calls to the equivalent
5205 accessors. Necessary now that frame_info is opaque.
5207 2003-06-03 J. Brobecker <brobecker@gnat.com>
5209 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5210 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5211 structure, field no longer exists.
5213 2003-06-03 Theodore A. Roth <troth@openavr.org>
5215 * remote.c (init_remote_state): Compute sizeof_g_packet by
5216 accumulation of the size of all registers instead of blindly using
5217 DEPRECATED_REGISTER_BYTES.
5219 2003-06-03 Michael Snyder <msnyder@redhat.com>
5221 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5222 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5225 2003-06-03 J. Brobecker <brobecker@gnat.com>
5227 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5228 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5230 2003-06-03 Andrew Cagney <cagney@redhat.com>
5232 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5233 (sparc_convert_to_raw): Delete function.
5234 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5235 register_convert_to_virtual.
5237 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5239 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5240 layer if not dealing with a statically-linked threaded program.
5242 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5244 * solib.c (solib_open): Update comment to reflect actual search order.
5246 2003-06-03 Andrew Cagney <cagney@redhat.com>
5248 * frame.c (get_frame_memory_signed): New function.
5249 (get_frame_memory, get_frame_memory_unsigned): New function.
5250 (get_frame_arch): New function.
5251 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5252 (get_frame_memory, get_frame_unsigned_memory): Declare.
5253 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5254 get_frame_memory_unsigned and get_frame_arch.
5255 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5257 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5259 * MAINTAINERS (write after approval): Add myself.
5261 2003-06-03 Jim Blandy <jimb@redhat.com>
5263 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5264 elements of gregset_t are 64 bits each, but access registers
5265 are still 32 bits, so they're packed two per gregset_t
5266 element. Unpack/pack them properly.
5268 2003-06-02 David Carlton <carlton@bactrian.org>
5270 * linespec.c (find_methods): Break out code into
5271 add_matching_methods and add_constructors.
5272 (add_matching_methods): New.
5273 (add_constructors): Ditto.
5275 2003-06-02 Andrew Cagney <cagney@redhat.com>
5277 * sparc-tdep.c (sparc_print_registers): Delete call to
5278 REGISTER_CONVERTIBLE.
5279 (sparc_gdbarch_init): Do not set register_convertible.
5280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5281 * frv-tdep.c (frv_gdbarch_init): Ditto.
5282 * cris-tdep.c (cris_gdbarch_init): Ditto.
5284 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5286 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5287 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5288 (syms_from_objfile): Ditto.
5290 2003-06-03 Andreas Schwab <schwab@suse.de>
5292 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5293 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5295 2003-06-02 Richard Henderson <rth@redhat.com>
5297 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5298 a member of all_reggroup.
5300 2003-06-02 Richard Henderson <rth@redhat.com>
5302 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5303 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5304 (alpha_lds, alpha_sts): New.
5305 (alpha_convert_register_p): Change from _register_convertible.
5306 (alpha_register_to_value): Change from _convert_to_virtual;
5307 restructure and fail for type sizes other than 4 or 8.
5308 (alpha_value_to_register): Similarly.
5309 (alpha_extract_return_value): Use alpha_sts.
5310 (alpha_store_return_value): Use alpha_lds.
5311 (alpha_gdbarch_init): Update hooks.
5313 2003-06-02 Richard Henderson <rth@redhat.com>
5315 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5317 (alpha_sigtramp_register_address): Likewise.
5319 2003-06-02 Richard Henderson <rth@redhat.com>
5321 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5322 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5323 * alpha-tdep.h: Declare them.
5325 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5326 Remove zerobuf. Don't error on UNIQUE.
5327 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5328 (ALPHA_REGSET_UNIQUE): Provide default.
5329 (supply_gregset): Use alpha_supply_int_regs.
5330 (fill_gregset): Use alpha_fill_int_regs.
5331 (supply_fpregset): Use alpha_supply_fp_regs.
5332 (fill_fpregset): Use alpha_fill_fp_regs.
5333 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5334 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5335 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5336 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5337 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5338 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5340 2003-06-02 Richard Henderson <rth@redhat.com>
5342 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5344 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5345 (alpha_store_return_value): Likewise.
5347 2003-06-02 David Carlton <carlton@math.stanford.edu>
5349 * block.c (contained_in): Add 'const' to arguments.
5350 (block_function): Ditto.
5351 * block.h: Update declarations for block_function and
5354 2003-06-02 David Carlton <carlton@math.stanford.edu>
5356 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5357 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5358 * p-valprint.c (pascal_val_print): Ditto.
5359 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5361 2003-06-02 Richard Henderson <rth@redhat.com>
5363 * alpha-tdep.c (alpha_push_dummy_call): Use
5364 builtin_type_ieee_double_little instead of builtin_type_double.
5366 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5367 sign-extension of 32-bit values.
5368 (alpha_store_return_value): Similarly.
5370 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5371 (alpha_extract_return_value): Likewise.
5372 (alpha_store_return_value): Likewise.
5374 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5375 (alpha_store_return_value): Error on IEEE Quad floats.
5377 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5378 (alpha_extract_struct_value_address): Likewise.
5379 (alpha_store_return_value): Likewise.
5380 (alpha_store_struct_return): Remove.
5381 (alpha_gdbarch_init): Update hook registration to match.
5383 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5384 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5385 macros where appropriate.
5386 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5387 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5389 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5390 for SP, GP; void_func_ptr for PC; non-language-specific types
5392 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5394 2003-06-02 Richard Henderson <rth@redhat.com>
5396 * top.h (lim_at_start): Declare.
5397 * main.c (captured_main): Set it.
5398 * top.c (lim_at_start): Define.
5399 (command_loop): Use it instead of &environ.
5400 * event-top.c (command_handler): Likewise.
5402 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5404 * mipsnbsd-tdep.c: Update copyright years.
5405 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5407 2003-06-01 Richard Henderson <rth@redhat.com>
5409 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5410 (alpha-linux-tdep.o): Update dependencies.
5411 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5412 * alpha-mdebug-tdep.c: Remove unneeded includes.
5414 2003-06-01 Richard Henderson <rth@redhat.com>
5416 * alpha-tdep.c (alpha_register_reggroup_p): New.
5417 (alpha_gdbarch_init): Register it.
5419 2003-06-02 Andrew Cagney <cagney@redhat.com>
5421 * dwarfread.c: Eliminate "register"
5422 (decode_die_type): Eliminate assignment within "if".
5423 (struct_type, decode_array_element_type): Ditto.
5424 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5425 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5426 (decode_modified_type, completedieinfo): Ditto.
5427 * block.c: Eliminate "register".
5428 (blockvector_for_pc_sect): Eliminate assignment within "if".
5429 * cp-support.h (struct symbol): Opaque declaration.
5430 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5432 2003-06-01 Richard Henderson <rth@redhat.com>
5434 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5435 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5437 2003-06-01 Adam Fedor <fedor@gnu.org>
5439 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5440 * gdbarch.[ch]: Regenerate.
5441 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5442 (hppa_gdbarch_init): Set it in the gdbarch vector.
5443 * i386-tdep.c (i386_fetch_pointer_argument): New
5444 (i386_gdbarch_init): Set it into gdbarch.
5445 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5446 (rs6000_gdbarch_init): Set it in gdbarch.
5447 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5448 (sparc_gdbarch_init): Set it in gdbarch.
5450 2003-06-01 Andrew Cagney <cagney@redhat.com>
5452 * defs.h (extract_address): Delete declaration.
5453 * findvar.c (extract_address): Delete function.
5454 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5455 extract_address with the inline equivalent,
5456 extract_unsigned_integer.
5457 (xstormy16_extract_struct_value_address): Ditto.
5458 (xstormy16_pointer_to_address): Ditto.
5459 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5460 * v850-tdep.c (v850_push_arguments): Ditto.
5461 (v850_extract_return_value): Ditto.
5462 (v850_extract_struct_value_address): Ditto.
5463 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5464 (sparcnbsd_get_longjmp_target_64): Ditto.
5465 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5466 (get_longjmp_target): Ditto.
5467 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5468 (sh64_extract_struct_value_address): Ditto.
5469 (sh_push_arguments): Ditto.
5470 (sh64_push_arguments): Ditto.
5471 * remote-vxsparc.c (vx_read_register): Ditto.
5472 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5473 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5474 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5475 * mipsv4-nat.c (get_longjmp_target): Ditto.
5476 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5477 * mips-nat.c (get_longjmp_target): Ditto.
5478 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5479 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5480 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5481 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5482 * irix5-nat.c (get_longjmp_target): Ditto.
5483 * irix4-nat.c (get_longjmp_target): Ditto.
5484 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5485 (ia64_push_arguments): Ditto.
5486 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5487 * h8300-tdep.c (h8300_push_arguments): Ditto.
5488 (h8300_store_return_value): Ditto.
5489 (h8300_extract_struct_value_address): Ditto.
5490 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5491 (frv_push_arguments): Ditto.
5492 * avr-tdep.c (avr_pointer_to_address): Ditto.
5493 (avr_push_arguments): Ditto.
5494 * arm-tdep.c (arm_push_dummy_call): Ditto.
5495 (arm_get_longjmp_target): Ditto.
5496 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5497 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5498 (alpha_get_longjmp_target): Ditto.
5500 * solib-irix.c (extract_mips_address): Inline extract_address,
5501 replacing it with extract_signed_integer.
5502 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5503 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5504 (first_link_map_member, open_symbol_file_object): Ditto.
5505 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5506 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5507 (LM_NEXT, LM_NAME): Ditto.
5509 2003-06-01 Richard Henderson <rth@redhat.com>
5511 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5512 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5513 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5514 (alpha_cannot_store_register): Likewise.
5515 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5516 * alpha-nat.c (supply_gregset): Likewise.
5517 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5519 2003-06-01 Andrew Cagney <cagney@redhat.com>
5521 * infcall.c (call_function_by_hand): Update comment on
5522 DEPRECATED_DUMMY_WRITE_SP.
5524 * mips-tdep.c (mips_gdbarch_init): Do not set
5525 deprecated_dummy_write_sp.
5526 (mips_eabi_push_dummy_call): Set the SP register.
5527 (mips_o64_push_dummy_call): Set the SP register.
5528 (mips_o32_push_dummy_call): Set the SP register.
5529 (mips_n32n64_push_dummy_call): Set the SP register.
5531 2003-06-01 Richard Henderson <rth@redhat.com>
5533 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5534 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5535 (supply_gregset): Likewise.
5536 * alpha-tdep.c (alpha_store_return_value): Likewise.
5537 (alpha_get_longjmp_target): Likewise.
5538 (alpha_register_name): Constify array.
5539 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5540 deprecated_register_size, deprecated_register_bytes,
5541 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5542 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5543 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5545 2003-06-01 Richard Henderson <rth@redhat.com>
5547 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5548 from arg_reg_buffer to regcache to avoid double conversion.
5550 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5552 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5554 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5555 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5557 2003-06-01 Richard Henderson <rth@redhat.com>
5559 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5560 (decode_frame_entry): Set it. Skip FDE augmentation.
5562 2003-06-01 Richard Henderson <rth@redhat.com>
5564 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5565 not overlapping PC_REGNUM.
5567 2003-06-01 Richard Henderson <rth@redhat.com>
5569 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5570 alpha_push_arguments. Don't dump argument register data to
5571 the target stack. Fix float and 128-bit long double semantics.
5572 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5573 (alpha_fix_call_dummy): Remove.
5574 (alpha_call_dummy_words): Remove.
5575 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5577 2003-06-01 Richard Henderson <rth@redhat.com>
5579 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5581 2003-06-01 Andrew Cagney <cagney@redhat.com>
5583 * mips-tdep.c (is_mips16_addr): New function.
5584 (make_mips16_addr, unmake_mips16_addr): New functions.
5585 (pc_is_mips16, mips_fetch_instruction): Use.
5586 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5587 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5588 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5589 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5591 * config/mips/tm-mips.h: Update copyright.
5592 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5593 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5594 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5595 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5596 (TM_PRINT_INSN_MACH): Delete.
5597 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5599 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5600 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5601 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5602 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5603 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5604 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5605 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5606 mips*-*-riscos* and mips*-*-sysv* onto mips.
5607 * config/mips/mips64.mt: New file.
5608 * config/mips/mips.mt: New file.
5609 * config/mips/littlemips.mt: Delete file.
5610 * config/mips/decstation.mt: Delete file.
5611 * config/mips/vr4300el.mt: Delete file.
5612 * config/mips/vr5000el.mt: Delete file.
5613 * config/mips/vr5000.mt: Delete file.
5614 * config/mips/vr4100.mt: Delete file.
5615 * config/mips/vr4xxxel.mt: Delete file.
5616 * config/mips/vr4300.mt: Delete file.
5617 * config/mips/vr4xxx.mt: Delete file.
5618 * config/mips/bigmips.mt: Delete file.
5619 * config/mips/bigmips64.mt: Delete file.
5620 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5621 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5622 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5623 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5624 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5626 * config/mips/tm-irix3.h: Ditto.
5627 * config/mips/tm-mipsv4.h: Ditto.
5628 * config/mips/tm-embed.h: Ditto.
5629 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5631 * config/mips/tm-vr5000el.h: Delete file.
5632 * config/mips/tm-tx39l.h: Delete file.
5633 * config/mips/tm-vr4300el.h: Delete file.
5634 * config/mips/tm-vr4xxxel.h: Delete file.
5635 * config/mips/tm-vr4300.h: Delete file.
5636 * config/mips/tm-vr4100.h: Delete file.
5637 * config/mips/tm-vr4xxx.h: Delete file.
5638 * config/mips/tm-vr5000.h: Delete file.
5639 * config/mips/tm-embedl64.h: Delete file.
5640 * config/mips/tm-embedl.h: Delete file.
5641 * config/mips/tm-embed64.h: Delete file.
5642 * config/mips/tm-bigmips64.h: Delete file.
5643 * config/mips/tm-bigmips.h: Delete file.
5645 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5648 * shnbsd-nat.c: Include "sh-tdep.h".
5650 From Richard Henderson <rth@redhat.com>:
5651 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5653 2003-05-31 Andrew Cagney <cagney@redhat.com>
5655 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5656 forward declaration.
5657 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5658 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5659 (mips_find_saved_regs): Use set_reg_offset.
5660 (mips_frame_init_saved_regs): Delete function.
5661 (mips_pop_frame): Call mips_find_saved_regs instead of
5662 DEPRECATED_FRAME_INIT_SAVED_REGS.
5664 2003-05-31 Andrew Cagney <cagney@redhat.com>
5666 * mips-tdep.c (mips_gdbarch_init): Do not set
5667 deprecated_max_register_raw_size, register_virtual_size, and
5668 deprecated_max_register_virtual_size.
5670 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5672 * i386-tdep.c: Include "dwarf2-frame.h".
5673 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5674 * Makefile.in (i386-tdep.o): Update dependencies.
5676 * dwarf2-frame.c, dwarf2-frame.h: New files.
5677 * Makefile.in (SFILES): Add dwarf2-frame.c.
5678 (dwarf2_frame_h): Define.
5679 (COMMON_OBS): Add dwarf2-frame.o.
5680 (dwarf2-frame.o): Add dependencies.
5682 2003-05-31 Andreas Jaeger <aj@suse.de>
5684 * x86-64-linux-nat.c: Fix comment.
5686 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5688 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5691 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5692 have a sigcontext_addr handler.
5693 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5694 sigcontext_addr handler.
5696 2003-05-31 Andrew Cagney <cagney@redhat.com>
5698 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5699 (print_fp_register_row): Replace do_fp_register_row.
5700 (mips_print_fp_register): Add "file" and "frame" parameters.
5701 (mips_print_register): Add "file" and "frame" parameters.
5702 (mips_print_registers_info): Replace mips_do_registers_info.
5703 (mips_gdbarch_init): Set print_registers_info instead of
5704 deprecated_do_registers_info.
5705 (mips_read_fp_register_single): Add "frame" parameter.
5706 (mips_read_fp_register_double): Add "frame" parameter.
5708 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5710 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5711 Fixes a bug where GDB would print the wrong register names for
5712 targets without SSE.
5714 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5715 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5718 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5719 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5720 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5723 From Michal Ludvig <mludvig@suse.cz>:
5724 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5726 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5727 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5728 I386_ST0_REGNUM): Move here from...
5729 * i386-tdep.c: ... here.
5730 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5731 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5732 registers if possible.
5733 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5734 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5736 (i386bsd_sc_reg_offset): New variable.
5737 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5738 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5740 (i386fbsd_sc_reg_offset): New variable.
5741 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5743 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5745 (i386fbsd4_sc_reg_offset): New variable.
5746 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5747 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5749 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5750 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5751 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5753 (i386nbsd_sc_reg_offset): New variable.
5754 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5755 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5757 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5759 (i386obsd_sc_reg_offset): New variable.
5760 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5761 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5763 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5764 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5765 for frame pointer offset in `struct sigcontext'.
5767 2003-05-31 Andrew Cagney <cagney@redhat.com>
5769 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5770 architecture methods call_dummy_words, sizeof_call_dummy_words,
5771 push_return_address, store_struct_return, and fix_call_dummy. Set
5772 push_dummy_call instead of deprecated_push_arguments.
5773 (mips_store_struct_return): Delete function.
5774 (mips_fix_call_dummy): Delete function.
5775 (mips_push_return_address): Delete function.
5776 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5777 RA_REGNUM and T9_REGNUM.
5778 (mips_n32n64_push_dummy_call): Ditto for
5779 mips_n32n64_push_arguments.
5780 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5781 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5783 2003-05-31 Andrew Cagney <cagney@redhat.com>
5785 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5786 "dummy_addr" to "bp_addr".
5787 * infcall.c (call_function_by_hand): Pass "funaddr" to
5788 gdbarch_push_dummy_call.
5789 * gdbarch.h, gdbarch.c: Re-generate.
5790 * i386-tdep.c (i386_push_dummy_call): Update.
5791 * arm-tdep.c (arm_push_dummy_call): Update.
5792 * d10v-tdep.c (d10v_push_dummy_call): Update.
5794 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5796 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5797 variable declarations.
5798 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5799 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5800 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5801 x86_64_init_frame_pc, x86_64_init_frame_pc,
5802 x86_64_function_has_prologue): Remove prototypes.
5803 (X86_64_NUM_GREGS): New define.
5804 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5805 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5806 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5807 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5808 XMM1_REGNUM): Remove defines.
5809 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5810 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5811 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5812 X86_64_XMM1_REGNUM): New defines.
5813 (struct x86_64_register_info): Renamed from `struct
5814 register_info'. Remove `size' member.
5815 (x86_64_register_info_table): Remove variable.
5816 (x86_64_register_info): New variable.
5817 (X86_64_NUM_REGS): New define.
5818 (X86_64_NUM_GREGS): Remove define.
5819 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5820 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5822 (x86_54_dwarf2_reg_to_regnum): Remove function.
5823 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5824 (x86_64_dwarf_reg_to_regnum): New function.
5825 (x86_64_register_name): Rewrite.
5826 (x86_64_register_raw_size): Remove function.
5827 (x86_64_register_byte_table): Remove variable.
5828 (x86_64_register_byte): Remove function.
5829 (x86_64_register_virtual_type): Remove function.
5830 (x86_64_register_type): New function.
5831 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5832 x86_64_register_convert_to_raw): Remove functions.
5833 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5834 (x86_64_use_struct_convention): Make static. Adjust for renamed
5836 (x86_64_frame_init_saved_regs): Remove function.
5837 (x86_64_push_arguments): Make static. Change to accept a regcache
5839 (x86_64_store_return_value, x86_64_extract_return_value): Make
5840 static. Rewrite based on i386 counterparts.
5841 (x86_64_push_dummy_call): New function.
5842 (X86_64_NUM_SAVED_REGS): New define.
5843 (x86_64_register_number): Remove function.
5844 (x86_64_store_struct_return): Remove function.
5845 (x86_64_frameless_function_invocation,
5846 x86_64_function_has_prologue): Remove functions.
5847 (PROLOG_BUFSIZE): Remove define.
5848 (struct x86_64_frame_cache): New structure.
5849 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5850 x86_64_frame_cache, x86_64_frame_this_id,
5851 x86_64_frame_prev_register, x86_64_frame_p,
5852 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5853 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5855 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5857 (x86_64_skip_prologue): Rewrite in terms of
5858 x86_64_analyze_prologue.
5859 (x86_64_frame_base_address): New function.
5860 (x86_64_frame_base): New variable.
5861 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5862 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5863 set deprecated_fp_regnum, deprecated_register_size,
5864 deprecated_register_bytes, register_raw_size, register_byte,
5865 register_virtual_type, register_convertiable,
5866 register_convert_to_virtual, convert_to_raw,
5867 deprecated_get_saved_register, deprecated_target_read_fp,
5868 deprecated_push_arguments, deprecated_push_return_address,
5869 deprecated_pop_frame, deprecated_store_struct_return,
5870 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5871 frameless_function_invocation, deprecated_frame_saved_pc,
5872 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5873 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5874 deprecated_init_frame_pc and virtual_frame_pointer. Call
5875 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5876 and x86_64_frame_p. Call frame_base_set_default to register
5878 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5879 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5880 (_initialize_x86_64_tdep): Remove function.
5881 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5882 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5883 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5885 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5886 (x86_64_linux_sigcontext_addr): Rewrite.
5887 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5888 x86_64_linux_frame_saved_pc): Remove functions.
5889 (x86_64_linux_pc_in_sigtramp): Renamed from
5890 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5892 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5894 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5895 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5896 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5897 (x86_64_regmap): Rename to regmap.
5898 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5900 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5902 (x86_64_fxsave_offset): Remove function.
5903 (supply_fpregset): Simply call x86_64_supply_fxsave.
5904 (fill_fpregset): Simply call x86_64_fill_fxsave.
5905 (fetch_inferior_registers, store_inferior_registers): Avoid
5906 asignment in if-statement.
5907 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5908 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5909 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5910 (fetch_core_registers): Remove function.
5911 (linux_elf_core_fns): Remove.
5912 (offsetoff): Don't define.
5913 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5914 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5915 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5917 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5918 protection against multiple includes instead of NM_X86_64_h. Add
5919 various comments. Include "config/nm-linux.h". Don't include
5921 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5922 GET_THREAD_SIGNALS): Remove defines.
5923 (x86_64_register_u_addr, kernel_u_size,
5924 lin_thread_get_thread_signals): Remove prototypes.
5925 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5926 [HAVE_LINK_H]: Don't include "solib.h".
5927 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5928 * config/i386/tm-x86-64linux.h: Fix comments.
5929 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5930 x86-64-tdep.o): Update dependencies.
5932 2003-05-30 Andrew Cagney <cagney@redhat.com>
5934 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5935 Change parameter type to a "struct regcache *".
5937 * gdbarch.sh: Regardless of the multi-arch level, always define
5938 the macro when not already defined.
5939 * gdbarch.h, gdbarch.c: Re-generate.
5941 2003-05-30 Richard Henderson <rth@redhat.com>
5943 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5944 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5945 (alpha_mdebug_frame_this_id): Likewise.
5946 (alpha_mdebug_frame_prev_register): Likewise.
5947 (alpha_mdebug_frame_base_address): Likewise.
5948 (alpha_mdebug_frame_locals_address): Likewise.
5949 (alpha_mdebug_frame_args_address): Likewise.
5950 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5951 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5952 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5954 (alpha_heuristic_frame_this_id): Make static.
5955 (alpha_heuristic_frame_prev_register): Likewise.
5956 (alpha_heuristic_frame_base_address): Likewise.
5957 * alpha-tdep.h: Update.
5959 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5961 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5962 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5964 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5965 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5966 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5967 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5968 I386_ST0_REGNUM): New defines.
5969 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5970 codestream_get): Remove define.
5971 (codestream_next_addr, condestream_addr, condestream_buf,
5972 codestream_off, codestream_cnt): Remove variables.
5973 (codestream_fill, codestream_seek, codestream_read): Remove
5975 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5977 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5978 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5979 i386_frame_saved_pc, i386_saved_pc_after_call,
5980 i386_frame_num_args, i386_frame_init_saved_regs,
5981 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5982 i386_push_arguments): Remove functions.
5983 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5984 functionality. Use i386_analyze_prologue instead of
5985 i386_get_frame_setup.
5986 (I386_NUM_SAVED_REGS): New define.
5987 (struct i386_frame_cache): New structure.
5988 (i386_alloc_frame_cache, i386_analyze_struct_return,
5989 i386_skip_probe, i386_analyze_frame_setup,
5990 i386_analyze_register_saves, i386_analyze_prologue,
5991 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5992 i386_frame_prev_register, i386_sigtramp_frame_cache,
5993 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5994 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5995 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5997 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5999 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6000 I386_EAX_REGNUM and I386_EDX_REGNUM.
6001 (i386_extract_return_value, i386_store_return_value): Use
6002 I386_ST0_REGNUM where appropriate.
6003 (i386_extract_struct_value_address): Rewrite to use extract_address.
6004 (i386_svr4_pc_in_sigtramp): Add comment.
6005 (i386_svr4_sigcontext_addr): Rewrite.
6006 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6008 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6009 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6010 of new defines. Set push_dummy_call, don't set
6011 deprecated_push_arguments, deprecated_push_return_address,
6012 deprecated_pop_frame. Don't set parm_boundary. Don't set
6013 deprecated_frame_chain, deprecated_frame_saved_pc,
6014 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6015 save_dummy_frame_tos, unwind_pc. Call
6016 frame_unwind_append_predicate and frame_base_set_default. Don't
6017 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6018 Don't set frameless_function_invocation. Don't set
6019 deprecated_register_bytes, deprecated_register_size,
6020 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6021 * i386-linux-tdep.c: Fix formatting in some comments.
6022 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6023 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6024 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6025 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6026 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6027 redundant parentheses.
6028 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6029 (i386_linux_sigcontext_addr): Use it. Rewrite.
6030 (find_minsym_and_objfile): Change name of second argument.
6031 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6032 changed. Use frame_pc_unwind instead of
6033 DEPRECATED_SAVED_PC_AFTER_CALL.
6034 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6035 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6036 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6038 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6040 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6041 (_initialize_i386_cygwin_tdep): New prototype.
6042 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6043 deprecated_frame_chain_valid.
6044 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6045 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6046 Rely on the SVR4 defaults.
6047 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6048 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6050 2003-05-30 Andrew Cagney <cagney@redhat.com>
6052 * infcall.c (call_function_by_hand): Always call
6053 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6055 2003-05-30 Richard Henderson <rth@redhat.com>
6057 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6060 2003-05-29 Jim Blandy <jimb@redhat.com>
6062 Use gdbarch methods for solib stuff on PowerPC Linux.
6063 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6064 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6066 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6067 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6068 giving the same effect as the #definitions above.
6070 2003-05-29 Adam Fedor <fedor@gnu.org>
6072 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6073 (find_implementation_from_class): Replace it with the standard
6074 case i.e. do nothing.
6076 2003-05-29 Richard Henderson <rth@redhat.com>
6078 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6079 (alpha_linux_sigtramp_offset): Use it. Make static.
6080 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6081 update for new frame model.
6082 * alpha-mdebug-tdep.c: New file.
6083 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6084 (alpha_osf1_init_abi): Install it.
6085 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6086 (linked_proc_desc_table): Remove.
6087 (alpha_frame_past_sigtramp_frame): Remove.
6088 (alpha_dynamic_sigtramp_offset): Remove.
6089 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6090 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6091 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6092 (push_sigtramp_desc): Remove.
6093 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6094 (alpha_cannot_store_register): Likewise.
6095 (alpha_sigcontext_addr): Remove.
6096 (alpha_find_saved_regs): Remove.
6097 (alpha_frame_init_saved_regs): Remove.
6098 (alpha_init_frame_pc_first): Remove.
6099 (read_next_frame_reg): Remove.
6100 (alpha_frame_saved_pc): Remove.
6101 (alpha_saved_pc_after_call): Remove.
6102 (temp_proc_desc, temp_saved_regs): Remove.
6103 (alpha_about_to_return): Remove.
6104 (cached_proc_desc): Remove.
6105 (alpha_frame_chain): Remove.
6106 (alpha_print_extra_frame_info): Remove.
6107 (alpha_init_extra_frame_info): Remove.
6108 (alpha_frame_locals_address): Remove.
6109 (alpha_frame_args_address): Remove.
6110 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6111 (alpha_push_dummy_frame): Remove.
6112 (alpha_pop_frame): Remove.
6113 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6114 (alpha_read_insn): New.
6115 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6116 for different insn encodings.
6117 (alpha_in_lenient_prologue): Remove.
6118 (struct alpha_sigtramp_unwind_cache): New.
6119 (alpha_sigtramp_frame_unwind_cache): New.
6120 (alpha_sigtramp_register_address): New.
6121 (alpha_sigtramp_frame_this_id): New.
6122 (alpha_sigtramp_frame_prev_register): New.
6123 (alpha_sigtramp_frame_unwind): New.
6124 (alpha_sigtramp_frame_p): New.
6125 (struct alpha_heuristic_unwind_cache): New.
6126 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6127 don't count nop insns that occur between functions.
6128 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6129 heuristic_proc_desc, but without the mdebug wrapping.
6130 (alpha_heuristic_frame_this_id): New.
6131 (alpha_heuristic_frame_prev_register): New.
6132 (alpha_heuristic_frame_unwind): New.
6133 (alpha_heuristic_frame_p): New.
6134 (alpha_heuristic_frame_base_address): New.
6135 (alpha_heuristic_frame_base): New.
6136 (alpha_unwind_dummy_id): New.
6137 (alpha_unwind_pc): New.
6138 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6139 frame related deprecated initializations; install replacements.
6140 (alpha_dump_tdep): Remove.
6141 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6142 (alpha_read_insn, alpha_after_prologue,
6143 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6144 alpha_heuristic_frame_prev_register,
6145 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6146 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6147 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6148 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6150 2003-05-29 Andrew Cagney <cagney@redhat.com>
6152 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6153 dependant on the availability of ASSERT_FUNCTION.
6154 (ASSERT_FUNCTION): Do not define when there is no function name.
6156 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6158 From Jimi X <jimix@watson.ibm.com>:
6159 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6161 2003-05-28 Jim Blandy <jimb@redhat.com>
6163 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6164 argument to ptrace to int; the system headers should give it the
6165 right type, and pointers don't fit in ints on powerpc64-*-*.
6167 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6169 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6172 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6174 * stabsread.c (dbx_lookup_type): Make static.
6176 (add_undefined_type): Ditto.
6177 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6180 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6182 * hpread.c (hpread_has_name): Make static.
6183 (hpread_psymtab_to_symtab): Ditto.
6184 (file_exists): Ditto.
6185 (hpread_call_pxdb): Ditto.
6186 (hpread_pxdb_needed): Ditto.
6187 (hpread_quick_traverse): Ditto.
6188 (hpread_get_header): Ditto.
6189 (hpread_get_lntt): Ditto.
6190 (hpread_get_slt): Ditto.
6193 2003-05-25 Andreas Schwab <schwab@suse.de>
6195 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6196 stack_align and deprecated_extra_stack_alignment_needed.
6197 (m68k_stack_align): Delete.
6199 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6200 (m68k_register_virtual_size): Likewise.
6201 (altos_skip_prologue): Remove obsolete function.
6202 (isi_frame_num_args): Likewise.
6203 (news_frame_num_args): Likewise.
6204 (m68k_fix_call_dummy): Make static.
6205 (m68k_push_dummy_frame): Likewise.
6206 (m68k_pop_frame): Likewise.
6207 (m68k_skip_prologue): Likewise.
6208 (m68k_frame_init_saved_regs): Likewise.
6209 (m68k_saved_pc_after_call): Likewise.
6210 (m68k_get_longjmp_target): Make multi-arch.
6211 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6212 structure. Register m68k_get_longjmp_target if enabled.
6213 * m68k-tdep.h (struct gdbarch_tdep): Define.
6214 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6216 * Makefile.in (config.status): Also depend on configure.tgt
6218 (m68klinux-tdep.o): Update dependencies.
6219 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6220 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6221 (M68K_LINUX_JB_PC): Define.
6222 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6223 and take additional parameter.
6224 (m68k_linux_sigtramp_saved_pc): Update.
6225 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6226 m68k_linux_pc_in_sigtramp, in_plt_section,
6227 find_solib_trampoline_target.
6228 * config/m68k/tm-linux.h: Don't include any tm headers.
6229 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6230 (JB_ELEMENT_SIZE): Likewise.
6232 (GET_LONGJMP_TARGET): Likewise.
6233 (IN_SIGTRAMP): Likewise.
6234 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6236 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6238 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6239 (sparc32_push_arguments): Re-implement by calling
6240 sparc32_do_push_arguments.
6242 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6244 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6245 SPARC_O1_REGNUM): New defines.
6246 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6247 (sparc32_store_return_value): New function.
6248 (sparc_extract_struct_value_address): Rewrite to operate on a
6250 (sparc_gdbarch_init): Don't set
6251 deprecated_extract_struct_value_address. Set
6252 extract_struct_value_address instead. Don't set
6253 deprecated_extract_return_value and deprecated_store_return_value
6254 for 32-bit targets. Set extract_return_value and
6255 store_return_value instead.
6256 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6257 DEPRECTAED_EXTRACT_RETURN_VALUE,
6258 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6259 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6260 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6261 (sparc_store_return_value): Remove prototype.
6262 (sparc32_store_return_value): New prototype.
6263 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6266 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6268 * sparcnbsd-tdep.c: Include "gdb_string.h".
6270 2003-05-23 Andrew Cagney <cagney@redhat.com>
6272 * p-valprint.c (pascal_val_print): Replace extract_address with
6273 the inline equivalent extract_unsigned_integer.
6274 * jv-valprint.c (java_value_print): Ditto.
6275 * ada-valprint.c (ada_val_print_1): Ditto.
6276 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6278 2003-05-23 Theodore A. Roth <troth@openavr.org>
6280 * blockframe.c (frameless_look_for_prologue): Remove unused
6281 after_prologue variable.
6283 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6285 * blockframe.c (get_pc_function_start): Rewrite to avoid
6286 asignments in if-statements.
6288 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6290 Committed by Elena Zannoni <ezannoni@redhat.com>.
6291 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6292 files, don't relocate absolute symbols (and do use mst_abs).
6294 2003-05-23 Andrew Cagney <cagney@redhat.com>
6296 * objc-lang.c: Include "gdb_assert.h".
6297 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6298 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6299 (gdb_check, gdb_check_fatal): Delete functions.
6300 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6302 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6303 * Makefile.in (objc-lang.o): Update dependencies.
6305 2003-05-22 Ian Lance Taylor <ian@airs.com>
6307 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6308 with fprintf_filtered, not fprintf_unfiltered.
6310 2003-05-22 Andrew Cagney <cagney@redhat.com>
6312 * stack.c (frame_info): Inline extract_address, replacing it with
6313 extract_unsigned_integer.
6314 * findvar.c (unsigned_pointer_to_address): Ditto.
6315 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6316 * dwarf2expr.c (dwarf2_read_address): Ditto.
6317 * frame.c (frame_pc_unwind): Update comment.
6318 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6320 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6322 * infptrace.c (detach): Call print_sys_errmsg rather than
6323 perror_with_name to issue warning message when errno is non-zero
6324 after calling ptrace detach.
6326 2003-05-21 J. Brobecker <brobecker@gnat.com>
6328 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6329 macro definitions from here...
6330 * hppa-tdep.c: ...to there.
6332 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6334 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6335 register_ptrace_addr(). Fix all callers.
6337 2003-05-21 Andreas Schwab <schwab@suse.de>
6339 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6341 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6343 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6344 (_initialize_m68k_linux_tdep): New function.
6345 (m68k_linux_frame_saved_pc): Make static.
6346 (m68k_linux_extract_return_value): Likewise.
6347 (m68k_linux_store_return_value): Likewise.
6348 (m68k_linux_extract_struct_value_address): Likewise.
6349 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6351 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6352 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6353 (DEPRECATED_FRAME_SAVED_PC): Remove.
6355 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6357 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6358 regset numbering rather than our own.
6360 2003-05-19 David Carlton <carlton@bactrian.org>
6362 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6364 2003-05-19 David Carlton <carlton@bactrian.org>
6366 Partial fix for PR c++/827.
6367 * cp-support.h: Include symtab.h.
6368 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6369 * cp-namespace.c: Update contributors.
6370 (cp_lookup_symbol_nonlocal): New.
6371 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6372 (lookup_symbol_file): Ditto.
6373 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6374 * block.h: Declare block_scope, block_using, block_global_block.
6375 * block.c (block_scope): New.
6376 (block_using, block_global_block): Ditto.
6377 * Makefile.in (cp_support_h): Depend on symtab_h.
6378 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6380 2003-05-19 David Carlton <carlton@bactrian.org>
6382 * language.h (struct language_defn): Add 'la_value_of_this'
6383 and 'la_lookup_symbol_nonlocal' members.
6384 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6385 lookup_symbol_static, lookup_symbol_global,
6386 lookup_symbol_aux_block.
6387 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6388 if we should search fields of this and how to do static/global
6390 (lookup_symbol_aux_block): Make extern.
6391 (basic_lookup_symbol_nonlocal): New.
6392 (lookup_symbol_static, lookup_symbol_global): Ditto.
6393 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6394 'la_lookup_symbol_nonlocal' members.
6395 * c-lang.c (c_language_defn, cplus_language_defn)
6396 (asm_language_defn, minimal_language_defn): Ditto.
6397 * jv-lang.c (java_language_defn): Ditto.
6398 * language.c (unknown_language_defn, auto_language_defn)
6399 (local_language_defn): Ditto.
6400 * m2-lang.c (m2_language_defn): Ditto.
6401 * objc-lang.c (objc_language_defn): Ditto.
6402 * scm-lang.c (scm_language_defn): Ditto.
6403 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6404 * p-lang.c (pascal_language_defn): Ditto for both.
6405 * Makefile.in (f-lang.o): Depend on value_h.
6408 2003-05-19 David Carlton <carlton@bactrian.org>
6410 * block.h: Declare block_static_block.
6411 * block.c (block_static_block): New.
6412 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6413 lookup_symbol_aux_local, calling block_static_block instead.
6414 (lookup_symbol_aux_local): Delete 'static_block' argument.
6416 2003-05-19 David Carlton <carlton@bactrian.org>
6418 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6420 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6422 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6423 register numbers mapping.
6425 2003-05-18 Adam Fedor <fedor@gnu.org>
6427 * symtab.c (completion_list_objc_symbol): New function.
6428 (make_symbol_completion_list): Use it to add ObjC symbols
6429 when looking though the list.
6430 (language_search_unquoted_string): New function.
6431 (make_file_symbol_completion_list): Use it.
6433 2003-05-18 Andreas Schwab <schwab@suse.de>
6435 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6437 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6438 as m68k_linux_extract_return_value.
6439 (DEPRECATED_STORE_RETURN_VALUE): Define as
6440 m68k_linux_store_return_value.
6441 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6442 m68k_linux_extract_struct_value_address.
6443 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6444 get_next_frame, get_frame_base, get_frame_pc.
6445 (m68k_linux_frame_saved_pc): Use get_frame_base.
6446 (m68k_linux_extract_return_value): New function.
6447 (m68k_linux_store_return_value): New function.
6448 (m68k_linux_extract_struct_value_address): New function.
6449 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6451 * c-exp.y (typebase): Remove duplicate occurence of
6452 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6453 of lookup_signed_typename.
6455 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6457 * dwarf2loc.c (find_location_expression): Change type of second
6458 argument to `size_t *'.
6459 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6462 2003-05-18 David Carlton <carlton@bactrian.org>
6464 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6465 'linkage_name'. Add comment.
6466 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6468 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6469 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6470 (lookup_block_symbol): Ditto.
6472 2003-05-16 Andrew Cagney <cagney@redhat.com>
6474 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6475 * gdbarch.h, gdbarch.c: Re-generate.
6476 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6477 * TODO (REGISTER_BYTES): Delete reference.
6478 * alpha-tdep.c (alpha_gdbarch_init): Update.
6479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6480 * x86-64-tdep.c (x86_64_init_abi): Update.
6481 * vax-tdep.c (vax_gdbarch_init): Update.
6482 * v850-tdep.c (v850_gdbarch_init): Update.
6483 * sparc-tdep.c (sparc_gdbarch_init): Update.
6484 * sh-tdep.c (sh_gdbarch_init): Update.
6485 * s390-tdep.c (s390_gdbarch_init): Update.
6486 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6487 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6488 (ns32k_gdbarch_init_32382): Update.
6489 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6490 * mcore-tdep.c (mcore_gdbarch_init): Update.
6491 * m68k-tdep.c (m68k_gdbarch_init): Update.
6492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6493 * ia64-tdep.c (ia64_gdbarch_init): Update.
6494 * i386-tdep.c (i386_gdbarch_init): Update.
6495 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6496 * hppa-tdep.c (hppa_gdbarch_init): Update.
6497 * h8300-tdep.c (h8300_gdbarch_init): Update.
6498 * frv-tdep.c (frv_gdbarch_init): Update.
6499 * cris-tdep.c (cris_gdbarch_init): Update.
6500 * avr-tdep.c (avr_gdbarch_init): Update.
6501 * arm-tdep.c (arm_gdbarch_init): Update.
6502 * sparc-tdep.c (sparc_pop_frame): Update.
6503 * rs6000-tdep.c (rs6000_pop_frame): Update.
6504 * remote.c (init_remote_state): Update.
6505 (remote_prepare_to_store): Update.
6506 * remote-vx.c (vx_prepare_to_store): Update.
6507 * remote-sds.c (sds_fetch_registers): Update.
6508 (sds_prepare_to_store): Update.
6509 * remote-array.c: Update.
6510 * regcache.c (init_legacy_regcache_descr): Update.
6511 (init_regcache_descr): Update.
6512 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6513 (mips_o64_extract_return_value): Update.
6514 * irix5-nat.c (fetch_core_registers): Update.
6515 * irix4-nat.c (fetch_core_registers): Update.
6516 * i386-tdep.h: Update.
6517 * hppa-tdep.c (pa_do_registers_info): Update.
6518 (pa_do_strcat_registers_info): Update.
6519 * cris-tdep.c (cris_register_bytes_ok): Update.
6520 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6521 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6522 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6523 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6524 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6525 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6526 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6527 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6528 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6529 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6530 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6531 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6532 (REGISTER_BYTES_OK): Update.
6533 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6534 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6536 2003-05-16 Ian Lance Taylor <ian@airs.com>
6538 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6539 (vax_print_insn, print_insn_arg): Remove static functions.
6540 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6541 print_insn_vax from opcodes library.
6542 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6544 2003-05-15 Andrew Cagney <cagney@redhat.com>
6546 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6547 * target.h (memory_breakpoint_from_pc): Delete declaration.
6548 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6549 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6550 * monitor.c (monitor_insert_breakpoint): Use
6551 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6552 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6553 * gdbarch.h, gdbarch.c: Re-generate.
6554 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6555 (sparc_gdbarch_init): Set breakpoint_from_pc to
6556 sparc_breakpoint_from_pc.
6557 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6558 (BREAKPOINT_FROM_PC): Define.
6559 (sparc_breakpoint_from_pc): Declare.
6560 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6561 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6562 (BREAKPOINT_FROM_PC): Define.
6563 (BREAKPOINT): Delete macro.
6564 * target.h: Update comment.
6565 * s390-tdep.c (s390_gdbarch_init): Update comments.
6566 * remote.c: Update comments.
6567 * remote-mips.c: Update comments.
6568 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6569 * mem-break.c: Update comment.
6570 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6571 (ia64_memory_insert_breakpoint): Update.
6572 * config/sparc/tm-sparc.h: Update comment.
6573 * config/pa/tm-hppa64.h: Update comment.
6574 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6575 (rs6000_breakpoint_from_pc): Update.
6576 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6577 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6578 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6579 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6580 (mips_breakpoint_from_pc): Update.
6581 (mips_dump_tdep): Update.
6583 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6584 * minsyms.c (lookup_minimal_symbol): Inline
6585 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6587 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6588 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6589 * p-lang.c (pascal_printstr): Ditto.
6590 * objc-lang.c (objc_printstr): Ditto.
6591 * m2-lang.c (m2_printstr): Ditto.
6592 * jv-valprint.c (java_print_value_fields): Ditto.
6593 * f-lang.c (f_printstr): Ditto.
6594 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6595 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6596 for repeat_count_threshold.
6597 * Makefile.in (cp-valprint.o): Update dependencies.
6599 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6601 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6602 (examine_prologue): Support looking through leaf functions, knowing
6603 they start with mov r2,r12. Support skipping over indirect stores
6604 of the input registers. Upon hitting a non-nop branch instruction
6605 or predicated instruction, bail out by setting lim_pc to the current
6606 pc value in the loop. At the end, if the lim_pc value is still
6607 beyond our calculated value and we have trust_limit set,
6608 use the lim_pc value.
6610 2003-05-15 Andrew Cagney <cagney@redhat.com>
6612 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6613 generic_find_dummy_frame.
6614 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6615 (deprecated_generic_find_dummy_frame): Update.
6616 (deprecated_read_register_dummy): Update.
6617 * frame.c (deprecated_generic_get_saved_register): Update.
6619 2003-05-15 Theodore A. Roth <troth@openavr.org>
6621 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6622 (avr_gdbarch_init): Set breakpoint_from_pc method.
6624 2003-05-15 Andrew Cagney <cagney@redhat.com>
6626 * regcache.c (build_regcache): Set deprecated_register_valid
6628 (deprecated_grub_regcache_for_register_valid): Delete function.
6629 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6632 2003-05-15 David Carlton <carlton@bactrian.org>
6634 Committed by Elena Zannoni <ezannoni@redhat.com>
6635 * symtab.c (lookup_symbol_aux): Delete calls to
6636 lookup_symbol_aux_minsyms.
6637 (lookup_symbol_aux_minsyms): Comment out function and
6638 prototype. Delete lookup by mangled name.
6640 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6642 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6643 correctly indicate an empty stack and ``stack_allocated'' to the
6644 indicate the number of elements initially allocated.
6645 (dwarf_expr_grow_stack): Simplify method for computing new
6646 stack size. Don't loop infinitely if ``stack_len'' is zero.
6647 (execute_stack_op): Move ``ctx->in_reg'' initialization
6648 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6649 be used in conjuction with DW_OP_piece. Revise error message
6652 2003-05-14 Theodore A. Roth <troth@openavr.org>
6654 * MAINTAINERS: Update my email address.
6655 * avr-tdep.c: Ditto.
6657 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6659 * symtab.h (enum domain_enum): Rename from namespace_enum.
6660 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6661 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6662 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6663 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6664 TYPES_NAMESPACE, METHODS_NAMESPACE.
6665 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6666 (struct symbol, struct partial_symbol): Rename field
6667 'namespace_enum namespace' to 'domain_enum domain'.
6668 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6669 Delete old define kludge for namespace.
6671 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6672 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6673 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6674 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6675 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6676 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6677 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6678 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6679 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6680 occurrences of the above.
6682 2003-05-14 Ian Lance Taylor <ian@airs.com>
6684 * Makefile.in (install-only): Use $(SHELL) when running
6687 2003-05-13 Ian Lance Taylor <ian@airs.com>
6689 * MAINTAINERS (write after approval): Add myself.
6691 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6692 second and third arguments.
6693 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6694 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6696 2003-05-13 Andrew Cagney <cagney@redhat.com>
6698 * defs.h (store_address): Delete declaration.
6699 findvar.c (store_address): Delete function.
6700 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6701 store_unsigned_integer.
6702 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6703 * v850-tdep.c (v850_push_arguments): Ditto.
6704 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6705 * sh-tdep.c (sh64_get_saved_register): Ditto.
6706 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6707 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6708 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6709 (mips_get_saved_register): Ditto.
6710 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6711 (find_func_descr, ia64_push_arguments): Ditto.
6712 * i386-tdep.c (i386_push_arguments): Ditto.
6713 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6714 * frv-tdep.c (frv_push_arguments): Ditto.
6715 * frame.c (legacy_saved_regs_prev_register): Ditto.
6716 (deprecated_generic_get_saved_register): Ditto.
6717 * findvar.c (unsigned_address_to_pointer): Ditto.
6718 * dwarf2read.c (dwarf2_const_value): Ditto.
6719 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6720 * alpha-tdep.c (alpha_push_arguments): Ditto.
6722 2003-05-12 J. Brobecker <brobecker@gnat.com>
6724 * NEWS: Mention that the hppa-hpux port has been partially
6725 multiarched (32bit ABIT only, so far).
6727 2003-05-11 Andrew Cagney <cagney@redhat.com>
6729 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6730 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6731 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6732 sim/testsuite/sim/arm/misaligned2.ms, and
6733 sim/testsuite/sim/arm/misaligned3.ms.
6734 * disasm.h (struct ui_file): Add opaque struct declaration.
6735 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6736 * frame.h (struct ui_file): Ditto.
6738 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6740 * value.h: Pretty print.
6742 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6744 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6746 2003-05-08 Andrew Cagney <cagney@redhat.com>
6748 * regcache.h (max_register_size): Delete declaration.
6749 * regcache.c (max_register_size): Delete function.
6750 (struct regcache_descr): Delete field "max_register_size".
6751 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6752 registers fit in MAX_REGISTER_SIZE.
6753 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6754 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6755 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6756 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6757 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6758 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6759 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6760 * dve3900-rom.c, hppa-tdep.c: Ditto.
6762 2003-05-08 David Carlton <carlton@math.stanford.edu>
6764 * valops.c (push_word): Fix typo.
6766 2003-05-08 Andrew Cagney <cagney@redhat.com>
6768 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6769 * gdbarch.h: Re-generate.
6770 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6771 (legacy_max_register_raw_size): Delete declaration.
6772 * regcache.c (legacy_max_register_raw_size): Delete function.
6773 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6774 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6775 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6776 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6777 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6778 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6779 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6780 * findvar.c, dwarf2cfi.c: Ditto.
6782 2003-05-08 Andrew Cagney <cagney@redhat.com>
6784 * mips-tdep.c (read_signed_register): New function, moved to here
6786 (read_signed_register_pid): Ditto.
6787 * regcache.c (read_signed_register_pid): Delete function, moved to
6789 (read_signed_register): Ditto.
6790 * regcache.h (read_signed_register): Delete declaration.
6791 (read_signed_register_pid): Delete declaration.
6793 2003-05-08 Andrew Cagney <cagney@redhat.com>
6795 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6796 * gdbarch.h: Re-generate.
6797 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6798 (legacy_max_register_virtual_size): Delete declaration.
6799 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6800 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6801 * tracepoint.c (memrange_sortmerge): Ditto.
6802 * sparc-tdep.c (sparc_print_registers): Ditto.
6803 * regcache.c (legacy_max_register_virtual_size): Delete function.
6805 2002-05-08 J. Brobecker <brobecker@gnat.com>
6807 * fork-child.c (escape_bang_in_quoted_argument): New function.
6808 (fork_inferior): Escape '!' characters in quoted arguments
6811 2003-05-08 J. Brobecker <brobecker@gnat.com>
6813 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6814 the language of the CU is not currently supported by GDB.
6816 2003-05-08 J. Brobecker <brobecker@gnat.com>
6818 * defs.h (language): Add language_minimal enum value.
6819 * c-lang.c (minimal_language_defn): New language definition.
6820 (_initialize_c_language): Add the new minimal language to the list
6821 of languages known to GDB.
6823 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6825 * frame.c (get_frame_type): Don't attempt to lazily initialize
6826 frame's unwinder for legacy frames.
6828 2003-05-07 Andrew Cagney <cagney@redhat.com>
6830 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6831 and "regcache" parameters.
6832 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6834 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6836 * dwarf2read.c (dwarf_decode_lines): Only use output of
6837 check_cu_functions() when calling record_line(). Do not update
6838 the current address.
6840 2003-05-07 Andrew Cagney <cagney@redhat.com>
6842 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6845 2003-05-07 Jim Blandy <jimb@redhat.com>
6847 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6848 'maint info symtabs' and 'maint info psymtabs'.
6849 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6850 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6851 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6852 Declarations updated.
6853 * maint.c (maintenance_list_command): Delete.
6854 (_initialize_maint_cmds): Update calls to add_cmd.
6855 * gdbcmd.h (maintenancelistlist): Delete declaration.
6856 * cli/cli-cmds.c (maintenancelistlist): Delete.
6857 (init_cmd_lists): Don't initialize it.
6858 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6860 2003-05-07 Andrew Cagney <cagney@redhat.com>
6862 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6864 (d10v_print_registers_info): Update.
6865 (d10v_dmap_register, d10v_imap_register): Delete functions.
6866 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6867 and "imap_register".
6868 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6869 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6870 * arch-utils.c (generic_remote_translate_xfer_address): Add
6871 "regcache" and "gdbarch" parameters.
6872 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6873 parameter. Change class to multi-arch.
6874 * gdbarch.h, gdbarch.c: Re-generate.
6875 * remote.c (remote_xfer_memory): Use
6876 gdbarch_remote_translate_xfer_address.
6878 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6880 * infrun.c (prev_pc): Move declaration ahead of proceed().
6881 (proceed): Refresh prev_pc value before resuming.
6882 (stop_stepping): Remove code to refresh prev_pc.
6884 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6886 * nto-tdep.c: Removed stray comment.
6888 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6890 * i386-nto-tdep.c: Fix old K&R function definitions.
6891 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6892 Also change add_show_from_set() call to add_setshow_cmd().
6893 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6895 2003-05-05 Andrew Cagney <cagney@redhat.com>
6897 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6898 (fprint_dummy_frames): New function.
6899 (maintenance_print_dummy_frames): New function.
6900 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6901 * frame.c (fprint_frame_id): Make global.
6902 * frame.h (fprint_frame_id): Declare.
6903 * Makefile.in (dummy-frame.o): Update dependencies.
6905 2003-05-05 Andrew Cagney <cagney@redhat.com>
6907 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6908 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6909 SIZEOF_CALL_DUMMY_WORDS.
6910 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6911 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6912 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6913 CALL_DUMMY_BREAKPOINT_OFFSET.
6914 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6915 CALL_DUMMY_START_OFFSET.
6916 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6917 * gdbarch.h, gdbarch.c: Re-generate.
6918 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6919 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6920 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6921 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6922 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6923 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6924 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6925 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6926 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6927 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6928 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6929 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6930 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6931 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6932 * config/sparc/tm-sparc.h: Update.
6934 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6936 * configure.tgt: Add i[3456]86-*-nto*.
6937 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6938 * nto-tdep.c: New file. Neutrino target support routines.
6939 * nto-tdep.h: New file. Neutrino target header.
6940 * config/tm-qnxnto.h: New file.
6941 * config/i386/i386nto.mt: New file.
6942 * config/i386/tm-i386nto.h: New file.
6944 2003-05-04 Andrew Cagney <cagney@redhat.com>
6946 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6947 (load_infrun_state): Ditto.
6948 (struct thread_info): Drop "prev_func_name" field.
6949 * thread.c (load_infrun_state): Update.
6950 (save_infrun_state): Update.
6951 * infrun.c (prev_func_name): Delete variable.
6952 (init_wait_for_inferior): Do not clear prev_func_name.
6953 (stop_stepping, keep_going, context_switch): Do not swap
6955 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6956 instead of PC_IN_SIGTRAMP.
6958 2003-05-04 Andrew Cagney <cagney@redhat.com>
6960 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6961 REGISTER_BYTE with register_offset_hack.
6962 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6963 that REGISTER_BYTE is consistent with the regcache.
6964 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6965 * gdbarch.h, gdbarch.c: Regenerate.
6967 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6969 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6970 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6972 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6974 2003-05-03 J. Brobecker <brobecker@gnat.com>
6976 From Thierry Schneider <tpschneider1@yahoo.com>
6977 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6978 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6979 (mi-cmd-symbol.o): Add rule.
6981 2003-05-03 Andrew Cagney <cagney@redhat.com>
6983 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6984 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6985 * gdbarch.h, gdbarch.c: Re-generate.
6986 * d10v-tdep.c (d10v_push_dummy_code): New function.
6987 (d10v_gdbarch_init): Set push_dummy_code.
6988 * infcall.c (legacy_push_dummy_code): New function.
6989 (generic_push_dummy_code): New function.
6990 (push_dummy_code): New function.
6991 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6992 instead of dummy_addr, to push_dummy_call. Move call to
6993 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6995 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6997 2003-05-03 Andrew Cagney <cagney@redhat.com>
6999 * disasm.h (print_insn): Declare.
7000 * disasm.c (init_gdb_disassemble_info): New function.
7001 (gdb_disassembly): Call init_gdb_disassemble_info.
7002 (gdb_print_insn): New function.
7003 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7004 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7005 * mcore-tdep.c: Include "disasm.h"
7006 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7007 * d10v-tdep.c: Include "disasm.h".
7008 (display_trace): Call gdb_print_insn, instead of print_insn.
7009 (print_insn): Delete function.
7010 * printcmd.c: Include "disasm.h".
7011 (print_insn): Delete function.
7012 (print_formatted): Call gdb_print_insn, instead of print_insn.
7013 * Makefile.in (printcmd.o): Update dependencies.
7014 (mcore-tdep.o, d10v-tdep.o): Ditto.
7016 2003-05-02 Andrew Cagney <cagney@redhat.com>
7018 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7019 PC_REGNUM, re-indent.
7020 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7021 PC_REGNUM isn't set.
7023 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7024 * gdbarch.h, gdbarch.c: Re-generate.
7025 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7026 register_virtual_size, pc_regnum, or register_bytes.
7027 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7028 (d10v_register_type): Use D10V_PC_REGNUM.
7029 (d10v_print_registers_info, d10v_read_pc): Ditto.
7030 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7031 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7033 2003-05-02 David Carlton <carlton@bactrian.org>
7035 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7036 the name with mstrsave.
7038 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7040 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7041 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7042 (host_charset_name, target_charset_name): New vars for use by
7044 (host_charset_enum, target_charset_enum): New enums for set/show
7046 (set_charset_sfunc, set_host_charset_sfunc,
7047 set_target_charset_sfunc): New functions.
7048 (set_host_charset, set_target_charset): Make static.
7049 (list_charsets, set_host_charset_command,
7050 set_target_charset_command): Delete functions.
7051 (show_charset_command): Rewrite as....
7052 (show_charset): Hook this up with the set/show command mechanism.
7053 (_initialize_charset): Change names of charsets to match the
7054 set/show enums. Use host_charset_name and target_charset_name.
7055 Use set/show mechanism for charset, host-charset, target-charset
7056 commands. Do not make 'show host-charset' and 'show
7057 target-charset' be aliases of 'show charset'.
7059 * charset.h (set_host_charset, set_target_charset): Don't export,
7060 they are not used outside the file.
7062 2003-05-01 Andrew Cagney <cagney@redhat.com>
7064 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7065 (gdb_disassembly): Make "di" non static, always initialize and
7066 cleanup. Always use dis_asm_read_memory.
7067 (gdb_dis_asm_read_memory): Delete function.
7069 2003-05-01 Andrew Cagney <cagney@redhat.com>
7071 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7072 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7074 2003-04-30 Andrew Cagney <cagney@redhat.com>
7076 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7077 "tm_print_insn_info".
7078 (TARGET_PRINT_INSN_INFO): Delete macro.
7079 (dis_asm_read_memory): Delete function declaration.
7080 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7081 (tm_print_insn_info): Delete variable definition.
7082 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7083 * gdbarch.h, gdbarch.c: Re-generate.
7084 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7085 "deprecated_tm_print_insn_info".
7086 * mcore-tdep.c (mcore_dump_insn): Ditto.
7087 * mips-tdep.c (mips_gdbarch_init): Ditto.
7088 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7089 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7090 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7091 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7092 instead of TARGET_PRINT_INSN_INFO, add comment.
7093 * s390-tdep.c (s390_get_frame_info): Instead of
7094 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7095 (s390_check_function_end, s390_is_sigreturn): Ditto.
7096 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7097 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7098 * disasm.c: Include "gdbcore.h".
7099 (_initialize_disasm): New function, initialize
7100 "deprecated_tm_print_insn_info".
7101 (deprecated_tm_print_insn_info): New variable.
7102 (dis_asm_read_memory): Moved from "corefile.c", made static.
7103 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7104 * Makefile.in (disasm.o): Update dependencies.
7106 2003-04-30 Andrew Cagney <cagney@redhat.com>
7108 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7110 2003-04-29 Adam Fedor <fedor@gnu.org>
7112 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7113 * infcall.c (find_function_addr): Make non-static.
7114 * infcall.h (find_function_addr): Declare.
7115 * Makefile.in (eval.o): Update dependencies.
7117 2003-04-28 Adam Fedor <fedor@gnu.org>
7119 * symtab.c (symbol_find_demangled_name): Check for and demangle
7121 (symbol_init_demangled_name): Init for language_objc as well.
7123 2003-04-28 Andrew Cagney <cagney@redhat.com>
7125 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7126 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7127 * gdbarch.h, gdbarch.c: Re-generate.
7128 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7129 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7130 * inferior.h (deprecated_read_fp): Rename read_fp.
7131 (generic_target_read_fp): Delete declaration.
7132 * regcache.c (generic_target_read_fp): Delete function.
7133 (deprecated_read_fp): Replace read_fp, use
7134 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7135 * d10v-tdep.c (d10v_read_fp): Delete function.
7136 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7138 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7139 deprecated_target_read_fp to generic_target_read_fp.
7140 * sh-tdep.c (sh_gdbarch_init): Ditto.
7141 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7143 * frv-tdep.c (frv_gdbarch_init): Ditto.
7145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7146 deprecated_fp_regnum.
7147 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7148 * vax-tdep.c (vax_gdbarch_init): Ditto.
7149 * v850-tdep.c (v850_gdbarch_init): Ditto.
7150 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7151 * sh-tdep.c (sh_gdbarch_init): Ditto.
7152 * s390-tdep.c (s390_gdbarch_init): Ditto.
7153 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7154 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7155 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7156 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7158 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7159 * i386-tdep.c (i386_gdbarch_init): Ditto.
7160 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7161 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7162 * frv-tdep.c (frv_gdbarch_init): Ditto.
7163 * cris-tdep.c (cris_gdbarch_init): Ditto.
7164 * avr-tdep.c (avr_gdbarch_init): Ditto.
7165 * arm-tdep.c (arm_gdbarch_init): Ditto.
7166 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7168 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7169 * v850-tdep.c (v850_gdbarch_init): Ditto.
7170 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7171 * sh-tdep.c (sh_gdbarch_init): Ditto.
7172 * s390-tdep.c (s390_gdbarch_init): Ditto.
7173 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7174 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7175 * mips-tdep.c (mips_gdbarch_init): Ditto.
7176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7177 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7178 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7179 * frv-tdep.c (frv_gdbarch_init): Ditto.
7180 * avr-tdep.c (avr_gdbarch_init): Ditto.
7181 * arm-tdep.c (arm_gdbarch_init): Ditto.
7183 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7184 DEPRECATED_FP_REGNUM.
7185 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7186 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7187 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7188 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7189 (sparc32_register_virtual_type): Ditto.
7190 * sh-tdep.c (sh64_frame_chain): Ditto.
7191 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7192 (sh_nofp_frame_init_saved_regs): Ditto.
7193 (sh64_nofp_frame_init_saved_regs): Ditto.
7194 (sh_fp_frame_init_saved_regs): Ditto.
7195 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7196 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7197 * procfs.c (procfs_fetch_registers): Ditto.
7198 (procfs_store_registers): Ditto.
7199 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7200 (store_inferior_registers, fetch_core_registers): Ditto.
7201 (fetch_kcore_registers, clear_regs): Ditto.
7202 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7203 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7204 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7205 * nlm/i386.c (do_status): Ditto.
7206 * mipsv4-nat.c (supply_gregset): Ditto.
7207 * mips-tdep.c: Ditto for comments.
7208 * mips-nat.c (fetch_inferior_registers): Ditto.
7209 (store_inferior_registers, fetch_core_registers): Ditto.
7210 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7211 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7212 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7213 (i386_do_pop_frame, i386_register_type): Ditto.
7214 * hppa-tdep.c (hppa_frame_chain): Ditto.
7215 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7216 (hppa_pop_frame, hppa_read_fp): Ditto.
7217 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7218 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7219 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7220 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7221 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7222 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7223 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7224 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7225 * blockframe.c: Ditto for comments.
7226 * arch-utils.h: Ditto for comments.
7227 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7228 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7229 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7230 * alpha-tdep.h: Ditto for comments.
7231 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7232 (alpha_cannot_store_register): Ditto.
7233 (alpha_push_dummy_frame): Ditto.
7234 * alpha-nat.c (supply_gregset): Ditto.
7236 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7237 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7238 * config/sparc/tm-sparc.h: Update comment.
7240 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7241 deprecated_read_fp instead of TARGET_READ_FP.
7242 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7243 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7244 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7245 deprecated_read_fp instead of read_fp.
7246 * s390-tdep.c (s390_push_arguments): Ditto.
7247 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7248 * frame.h: Ditto in comments.
7249 * frame.c (legacy_get_prev_frame): Ditto.
7250 * dummy-frame.c (dummy_frame_this_id): Ditto.
7251 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7253 2003-04-28 Andrew Cagney <cagney@redhat.com>
7255 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7256 * gdbarch.h, gdbarch.c: Re-generate.
7257 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7258 * vax-tdep.c (_initialize_vax_tdep): Update.
7259 * v850-tdep.c (_initialize_v850_tdep): Update.
7260 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7261 * s390-tdep.c (_initialize_s390_tdep): Update.
7262 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7263 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7264 * mips-tdep.c (_initialize_mips_tdep): Update.
7265 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7266 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7267 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7268 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7269 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7270 * frv-tdep.c (_initialize_frv_tdep): Update.
7271 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7272 (_initialize_cris_tdep): Update.
7273 * arch-utils.c (legacy_print_insn): Update.
7274 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7276 2003-04-26 Adam Fedor <fedor@gnu.org>
7278 * linespec.c (decode_objc): New function to decode ObjC calls
7279 (decode_line_1): Check for ObjC calls (using decode_objc)
7280 * Makefile (linespec.o): Update dependencies.
7282 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7284 * breakpoint.h (struct breakpoint_ops): New.
7285 (struct breakpoint): Add ops member.
7287 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7288 (mention): Use new breakpoint ops member.
7289 (set_raw_breakpoint): Initialize ops field to NULL.
7290 (print_exception_catchpoint, print_one_exception_catchpoint)
7291 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7292 (gnu_v3_exception_catchpoint_ops): New.
7293 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7295 2003-04-25 Adam Fedor <fedor@gnu.org>
7297 * Makefile.in (COMMON_OBS): Add objc-lang.o
7299 2003-04-25 Andrew Cagney <cagney@redhat.com>
7301 * d10v-tdep.c (print_insn): Delete function.
7302 (display_trace): Use TARGET_PRINT_INSN.
7303 (_initialize_d10v_tdep): Do not set tm_print_insn.
7304 (d10v_gdbarch_init): Set print_insn.
7306 2003-04-25 Andrew Cagney <cagney@redhat.com>
7308 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7309 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7310 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7311 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7312 (nr_dmap_regs, a0_regnum): ... new functions.
7313 (d10v_print_registers_info): Use a0_regnum, use register_size.
7314 (d10v_register_byte): Delete function.
7315 (d10v_register_raw_size): Delete function.
7316 (d10v_register_type): Use a0_regnum.
7317 (d10v_print_registers_info): Use a0_regnum.
7318 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7319 (d10v_gdbarch_init): Do not set register_byte or
7320 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7321 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7323 (trace_command): Use XCALLOC.
7324 (print_insn): Delete reference to tm_print_insn.
7325 (saved_regs_unwinder): Use store_unsigned_integer instead of
7327 * frame.h (FRAME_OBSTACK_CALLOC): Define
7329 2003-04-25 David Carlton <carlton@bactrian.org>
7331 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7333 2003-04-24 Adam Fedor <fedor@gnu.org>
7335 * objc-lang.c: Include "valprint.h"
7336 * Makefile.in (objc-lang.o): Update dependencies.
7338 2003-04-24 Adam Fedor <fedor@gnu.org>
7340 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7341 architecture dependant compilation and mark as unimplemented
7342 (until they get put in the gdbarch vector).
7344 2003-04-23 David Carlton <carlton@bactrian.org>
7346 * cp-support.c (cp_find_first_component): Accept 'operator' in
7349 2003-04-23 Andrew Cagney <cagney@redhat.com>
7351 * infcall.c (call_function_by_hand): Eliminate redundant
7352 indentation. Move "saved_async" and "old_cleanups" to where they
7355 2003-04-23 Andrew Cagney <cagney@redhat.com>
7357 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7358 and "buffer". Move the "name" code to where it is needed.
7360 2003-04-23 Andrew Cagney <cagney@redhat.com>
7362 * infcall.c (call_function_by_hand): Move variables "start_sp",
7363 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7364 code to ON_STACK switch branch.
7366 2003-04-23 Andrew Cagney <cagney@redhat.com>
7368 * infcall.c (call_function_by_hand): Make declaration of "i",
7369 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7372 2003-04-23 Andrew Cagney <cagney@redhat.com>
7374 * infcall.c (call_function_by_hand): Delete variable
7375 "n_method_args". Localize "param_type"'s declaration to the loop
7376 that it is used. Reinstate code assigning to said variable -
7377 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7378 Rationalize code using "param_type".
7380 2003-04-22 Andrew Cagney <cagney@redhat.com>
7382 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7383 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7384 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7385 to DEPRECATED_PUSH_RETURN_ADDRESS.
7387 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7389 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7390 on the DWARF2 register number prior to fetching a register.
7392 2003-04-22 J. Brobecker <brobecker@gnat.com>
7394 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7395 Update all the tests using SOFT_FLOAT considering the fact that
7396 this macro was always set to 0.
7397 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7398 considering the fact that this macro was always set to 0.
7399 * hppa-tdep.h (hppa_store_return_value): Likewise.
7400 (hppa_extract_return_value): Likewise.
7402 2003-04-22 J. Brobecker <brobecker@gnat.com>
7404 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7405 the hppa-pro target only.
7407 2003-04-21 J. Brobecker <brobecker@gnat.com>
7409 Ongoing multi-arch conversion effort for HP/UX:
7410 * config/pa/tm-hppa.h: Move all macro that are no longer
7411 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7412 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7414 2003-04-21 J. Brobecker <brobecker@gnat.com>
7416 * config/pa/tm-hppa.h: Obsolete a section that was only used
7419 2003-04-21 J. Brobecker <brobecker@gnat.com>
7421 Ongoing multi-arch conversion for HP/UX.
7422 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7423 if already defined (allows hppa64 to stay non-multiarched for now).
7424 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7426 2003-04-21 Andrew Cagney <cagney@redhat.com>
7428 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7430 2003-04-21 Andrew Cagney <cagney@redhat.com>
7432 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7433 "i386_num_mmx_regs".
7435 2003-04-21 Andrew Cagney <cagney@redhat.com>
7437 * infcall.c: New file.
7438 * infcall.h: New file.
7439 * valarith.c: Include "infcall.h".
7440 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7441 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7442 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7443 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7444 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7445 (SFILES): Add "infcall.c"
7446 (COMMON_OBS): Add "infcall.o".
7447 (infcall.o): Specify dependencies.
7448 * value.h (call_function_by_hand): Delete declaration.
7449 * inferior.h (run_stack_dummy): Delete declaration.
7450 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7451 (run_stack_dummy): Move to "infcall.c", merged into
7452 call_function_by_hand.
7453 * valops.c (call_function_by_hand): Moved to "infcall.c".
7454 (find_function_addr, value_arg_coerce): Ditto.
7455 (unwindonsignal_p, coerce_float_to_double): Ditto.
7456 (_initialize_valops): Move "set/show coerce-float-to-double", and
7457 "set/show unwindonsignal" commands to "infcall.c".
7458 * v850-tdep.c, target.h: Update comments.
7459 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7460 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7461 (sh64_init_extra_frame_info): Update comments.
7462 * mn10300-tdep.c: Update comments.
7463 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7464 * config/sparc/tm-sparc.h: Update comments.
7465 * breakpoint.h: Update comments.
7466 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7467 * arm-tdep.c: Update comment.
7469 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7471 * i386-tdep.c (i386_num_register_names): New variable.
7472 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7473 (MM0_REGNUM): Remove redundant parentheses in define.
7474 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7475 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7476 i386_mxcsr_regnum_p): Remove redundant parentheses.
7477 (i386_register_name): Use i386_num_register_names.
7479 * i386-tdep.c (i386_extract_return_value,
7480 i386_store_return_value): Correct check for availability of
7481 floating-point registers.
7483 * i386-tdep.c (i386_frame_num_args): Remove function.
7484 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7486 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7487 mmx_regnum_to_fp_regnum. Adjust all callers.
7489 * i386-tdep.c (i386_get_longjmp_target): Use
7490 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7491 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7494 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7496 * core-regset.c: Update comments to reflect reality. Re-order
7498 (fetch_core_registers): Use switch instead of if. Remove
7499 redundant prototype.
7501 2003-04-18 Jim Blandy <jimb@redhat.com>
7503 * s390-tdep.c (s390_frame_align): New function.
7504 (s390_gdbarch_init): Register it with the gdbarch object.
7506 2003-04-17 Richard Henderson <rth@redhat.com>
7508 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7510 2003-04-17 Michael Snyder <msnyder@redhat.com>
7511 Karen Bennet <bennet@redhat.com>
7513 Committed by Elena Zannoni <ezannoni@redhat.com>
7514 * gdb_gcore.sh: New script to create a core dump of a process.
7516 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7518 * values.c (value_being_returned): Don't fetch the return
7519 value if the return type is void.
7521 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7523 * thread-db.c: Reindented.
7525 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7527 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7528 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7555 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7557 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7558 the size of ``long double'' to 16, instead of 8.
7560 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7562 * i386-linux-nat.c: Add some whitespace to make things more
7564 (fetch_register, store_register, fetch_inferior_registers,
7565 store_inferior_registers): Get rid of assignment in if-statement.
7566 (store_register): Fix typo in error message.
7568 2003-04-16 Andrew Cagney <cagney@redhat.com>
7570 * utils.c (xmmalloc): Always allocate something, matches
7571 libiberty/xmalloc's semantics.
7572 (xmrealloc, xmcalloc): Ditto.
7574 2003-04-16 Andrew Cagney <cagney@redhat.com>
7576 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7578 (get_frame_type): Initialize unwind and type when needed.
7579 (get_frame_id, frame_register_unwind): Ditto.
7581 2003-04-16 Andrew Cagney <cagney@redhat.com>
7583 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7585 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7586 * sparcl-stub.c: Obsolete file.
7587 * config/sparc/tm-sparclet.h: Obsolete file.
7588 * sparclet-stub.c: Obsolete file.
7589 * sparclet-rom.c: Obsolete file.
7590 * sparcl-tdep.c: Obsolete file.
7591 * config/sparc/tm-sparclite.h: Obsolete file.
7592 * config/sparc/sparclite.mt: Obsolete file.
7593 * config/sparc/sparclet.mt: Obsolete file.
7594 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7595 sparc86x-*-* obsolete.
7597 2003-04-15 David Carlton <carlton@math.stanford.edu>
7599 * Makefile.in (SFILES): Add cp-namespace.c.
7600 (COMMON_OBS): Add cp-namespace.o.
7601 (block.o): Depend on gdb_obstack_h and cp_support_h.
7602 (buildsym.o): Depend on cp_support_h.
7603 (cp-namespace.o): New.
7604 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7605 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7606 (dwarf2read.o): Depend on cp_support_h.
7607 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7608 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7609 processing_current_namespace.
7610 (read_namespace): Update processing_current_namespace; check for
7611 anonymous namespaces.
7612 (dwarf2_name): New function.
7613 (dwarf2_extension): Ditto.
7614 * cp-support.h: Update copyright, contributors.
7615 Add inclusion guards.
7616 Add opaque declaration for structs obstack, block, symbol.
7617 (struct using_direct): New struct.
7618 Add declarations for cp_find_first_component,
7619 cp_entire_prefix_len, processing_has_namespace_info,
7620 processing_current_namespace, cp_is_anonymous,
7621 cp_add_using_directive, cp_initialize_namespace,
7622 cp_finalize_namespace, cp_set_block_scope,
7623 cp_scan_for_anonymous_namespaces.
7624 * cp-namespace.c: New file.
7625 * cp-support.c: Update copyright.
7626 Include ctype.h, gdb_assert.h, gdbcmd.h.
7627 New variable maint_cplus_cmd_list.
7628 (cp_find_first_component): New function.
7629 (cp_entire_prefix_len, maint_cplus_command)
7630 (first_component_command, _initialize_cp_support): Ditto.
7631 * buildsym.c: Include cp-support.h.
7632 New variable using_list.
7633 (add_symbol_to_list): Check for anonymous namespaces.
7634 (finish_block): Set block's scope.
7635 (start_symtab): Initialize C++ namespace support.
7636 (end_symtab): Finalize C++ namespace support.
7637 * block.h: Add opaque declarations for structs
7638 block_namespace_info, using_direct, and obstack.
7639 Add declarations for block_set_scope and block_set_using.
7640 (struct block): Add 'language_specific' member.
7641 (BLOCK_NAMESPACE): New macro.
7642 * block.c: Include gdb_obstack.h and cp-support.h.
7643 (struct block_namespace_info): New struct.
7644 (block_set_scope): New function.
7645 (block_set_using, block_initialize_namespace): Ditto.
7647 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7649 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7650 (locate_base): Return early if there aren't any link map offsets.
7651 (svr4_solib_create_inferior_hook): Warn if shared library support
7654 2003-04-14 David Carlton <carlton@math.stanford.edu>
7656 * symtab.c (symbol_set_names): Add prefix when storing Java names
7657 in hash table. Fix for PR java/1039.
7659 2003-04-14 David Carlton <carlton@math.stanford.edu>
7661 * symtab.c (symbol_set_names): Rename 'name' arg to
7662 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7663 * symtab.h: Change 'name' argument in declaration of
7664 symbol_set_names to 'linkage_name'.
7665 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7667 2003-04-14 Andrew Cagney <cagney@redhat.com>
7669 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7670 return the fully sign-extended register value.
7671 (get_frame_pointer): Ditto.
7672 (mips_pop_frame): Initialize "proc_desc" after checking for a
7675 2003-04-14 Andrew Cagney <cagney@redhat.com>
7677 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7678 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7679 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7680 (mips_push_register): Delete function.
7681 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7684 2003-04-14 Jim Blandy <jimb@redhat.com>
7686 * symmisc.c: #include "gdb_regex.h".
7687 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7689 * maint.c (maintenance_list_command): New function.
7690 (_initialize_maint_cmds): Register the above as commands.
7691 * symtab.h (maintenance_list_symtabs,
7692 maintenance_list_psymtabs): New declarations.
7693 * cli/cli-cmds.c (maintenancelistlist): New variable.
7694 (init_cmd_lists): Initialize it.
7695 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7696 * gdbcmd.h (maintenancelistlist): New declaration.
7697 * Makefile.in (symmisc.o): Update dependencies.
7699 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7701 * s390-nat.c: Include asm/types.h for addr_t.
7703 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7705 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7706 actually incoming type.
7708 2003-04-13 Andrew Cagney <cagney@redhat.com>
7710 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7711 get_next_frame and get_frame_saved_regs.
7713 2003-04-13 Andrew Cagney <cagney@redhat.com>
7715 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7716 of gdbarch_num_regs.
7718 2003-04-13 Andrew Cagney <cagney@redhat.com>
7720 * frame.h: Mention what replaced what in "struct frame_info".
7721 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7722 deprecated_update_frame_base_hack and
7723 deprecated_update_frame_pc_hack.
7724 * hppa-tdep.c: Ditto.
7726 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7728 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7729 to read_reg and update its comment. Remove regnum member.
7730 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7731 Don't call read_reg when setting in_reg. Call read_reg to get
7732 the frame base if it's in a register. Return the register number
7733 on the stack instead of in the context. Remove extra arguments
7735 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7736 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7737 the register number on the expression stack.
7738 (needs_frame_read_reg): Remove extra arguments.
7740 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7742 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7744 (execute_stack_op): All callers updated.
7745 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7746 * dwarf2loc.c (find_location_expression): New function.
7747 (dwarf_expr_frame_base): Call it.
7748 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7749 (dwarf2_tracepoint_var_ref): New function, broken out from
7750 locexpr_tracepoint_var_ref.
7751 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7753 (loclist_read_variable, loclist_read_needs_frame): New functions.
7754 (loclist_describe_location, loclist_tracepoint_var_ref): New
7756 (dwarf2_loclist_funcs): New struct location_funcs.
7757 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7758 (struct dwarf2_locexpr_baton): Add comments.
7759 (dwarf2_loclist_funcs): New extern.
7760 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7761 base_address and base_known.
7762 (dwarf_loc_buffer): New variable.
7763 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7764 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7765 (dwarf2_has_info): Initialize dwarf_loc_offset.
7766 (dwarf2_build_psymtabs): Read in .debug_loc.
7767 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7769 (psymtab_to_symtab_1): Likewise. Move base address calculation
7771 (dwarf2_get_pc_bounds): ... here. Use the base address from
7773 (dwarf2_symbol_mark_computed): Handle location lists.
7775 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7777 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7778 if the linkage name demangled successfully.
7780 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7782 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7783 disassmbly_flavour): Removed.
7785 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7787 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7789 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7791 2003-04-12 Andrew Cagney <cagney@redhat.com>
7793 * frame.h (struct frame_info): Move definition from here ...
7794 * frame.c (struct frame_info): ... to here.
7796 2003-04-12 Andrew Cagney <cagney@redhat.com>
7798 * gdbthread.h (save_infrun_state): Delete parameter
7800 (struct thread_info): Delete field "prev_func_start".
7801 (load_infrun_state): Ditto.
7802 * thread.c (load_infrun_state, save_infrun_state): Update.
7803 * infrun.c (prev_func_start): Delete variable.
7804 (context_switch, init_wait_for_inferior): Update.
7805 (stop_stepping, keep_going): Update.
7807 2003-04-12 Andrew Cagney <cagney@redhat.com>
7809 * gdbarch.sh: Add missing opaque declarations.
7810 * gdbarch.h: Regnerate.
7811 * symtab.h: Add missing opaque declarations.
7812 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7813 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7814 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7815 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7816 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7817 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7818 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7819 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7820 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7821 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7822 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7823 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7824 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7826 2003-04-11 Andrew Cagney <cagney@redhat.com>
7828 * frame.c (get_frame_id): Return this frame's "id".
7829 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7831 (legacy_saved_regs_this_id): Replace function body with
7833 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7834 FRAME_OBSTACK_ZALLOC.
7835 (create_new_frame): Mark the frame ID as valid.
7837 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7839 * Makefile.in (libbfd_h): Added missing setting.
7840 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7841 according to the selected ABI.
7843 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7845 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7847 2003-04-11 Andrew Cagney <cagney@redhat.com>
7849 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7850 SAVED_PC_AFTER_CALL.
7851 * gdbarch.h, gdbarch.c: Regenerate.
7852 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7853 * x86-64-tdep.c (x86_64_init_abi): Update.
7854 * vax-tdep.c (vax_gdbarch_init): Update.
7855 * v850-tdep.c (v850_gdbarch_init): Update.
7856 * sparc-tdep.c (sparc_gdbarch_init): Update.
7857 * sh-tdep.c (sh_gdbarch_init): Update.
7858 * s390-tdep.c (s390_gdbarch_init): Update.
7859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7860 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7861 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7862 * mips-tdep.c (mips_gdbarch_init): Update.
7863 * mcore-tdep.c (mcore_gdbarch_init): Update.
7864 * m68k-tdep.c (m68k_gdbarch_init): Update.
7865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7866 * ia64-tdep.c (ia64_gdbarch_init): Update.
7867 (ia64_saved_pc_after_call): Update declaration.
7868 * i386ly-tdep.c (i386lynx_init_abi): Update.
7869 * i386-tdep.c (i386_gdbarch_init): Update.
7870 * hppa-tdep.c (hppa_gdbarch_init): Update.
7871 * h8300-tdep.c (h8300_gdbarch_init): Update.
7872 * frv-tdep.c (frv_gdbarch_init): Update.
7873 * cris-tdep.c (cris_gdbarch_init): Update.
7874 * avr-tdep.c (avr_gdbarch_init): Update.
7875 * arm-tdep.c (arm_gdbarch_init): Update.
7876 * alpha-tdep.c (alpha_gdbarch_init): Update.
7877 * ns32knbsd-nat.c (frame_num_args): Update.
7878 * ns32k-tdep.c (umax_frame_num_args): Update.
7879 * mips-tdep.c (mips_init_frame_pc_first): Update.
7880 * infrun.c (step_over_function): Update.
7881 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7882 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7883 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7884 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7885 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7886 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7887 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7888 * arch-utils.c (init_frame_pc_default): Update.
7889 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7890 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7893 2003-04-11 Andrew Cagney <cagney@redhat.com>
7895 * i387-tdep.c: Update copyright.
7896 (i387_to_double): Delete function.
7897 (double_to_i387): Delete function.
7899 2003-04-10 Andrew Cagney <cagney@redhat.com>
7901 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7902 frame's function's address. Simplify.
7903 (d10v_frame_unwind_cache): Check that the frame's function is
7906 2003-04-10 Jim Blandy <jimb@redhat.com>
7908 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7909 call to set_gdbarch_deprecated_push_arguments.
7911 2003-04-10 Andrew Cagney <cagney@redhat.com>
7913 * frame.c (fprint_frame_id): New function.
7914 (fprint_frame_type, fprint_frame): New function.
7915 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7916 (create_sentinel_frame, get_frame_id): Ditto.
7917 (frame_id_p, frame_id_eq): Ditto.
7918 (frame_id_inner, create_new_frame): Ditto.
7919 (legacy_get_prev_frame, get_prev_frame): Ditto.
7920 (deprecated_update_frame_pc_hack): Ditto.
7921 (frame_register_unwind): Ditto.
7922 (deprecated_update_frame_base_hack): Ditto.
7924 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7926 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7927 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7928 frame_chain function.
7929 * Makefile.in: Add dependencies due to above change.
7931 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7933 * blockframe.c (legacy_frame_chain_valid): Move call to
7934 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7937 2003-04-09 Andrew Cagney <cagney@redhat.com>
7939 * frame.h (struct frame_id): Replace "pc" and "base" with
7940 "stack_addr" and "code_addr". Update comments.
7941 (frame_id_build): Update parameter names and comment.
7942 (struct frame_info): Replace "id_p" and "id" with "this_id".
7943 * dummy-frame.c (dummy_frame_this_id): Update.
7944 * breakpoint.c (print_one_breakpoint): Update.
7945 * frame.c (get_frame_id): Update.
7946 (get_frame_base, frame_id_build): Update.
7947 (create_sentinel_frame, legacy_get_prev_frame): Update.
7948 (deprecated_update_frame_base_hack): Update.
7949 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7950 (frame_id_inner): Ditto.
7952 2003-04-09 Andrew Cagney <cagney@redhat.com>
7954 * defs.h (gdb_print_host_address): Make "addr" parameter a
7956 * utils.c (gdb_print_host_address): Update.
7958 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7960 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7961 register number for R0 is 0.
7963 2003-04-09 J. Brobecker <brobecker@gnat.com>
7965 * frame.h (struct gdbarch): Add opaque structure definition
7966 to avoid a compilation warning on LynxOS 4.0.
7968 2003-04-09 Andrew Cagney <cagney@redhat.com>
7970 * frame.h (struct frame_info): Delete field "pc". Replace
7971 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7973 * frame.c (frame_pc_unwind): Update.
7974 (create_sentinel_frame): Do not set "pc".
7975 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7976 (get_frame_pc): Call frame_pc_unwind.
7977 (deprecated_update_frame_pc_hack): Update.
7978 (create_new_frame): Use "pc" not "->pc".
7980 2003-04-09 Andrew Cagney <cagney@redhat.com>
7982 * frame.c (get_frame_id): Eliminate code updating "frame".
7983 (legacy_get_prev_frame): Ditto.
7984 (get_frame_base): Return id.base directly.
7985 (deprecated_update_frame_base_hack): Update "id.base".
7986 * frame.h (struct frame_info): Delete field "frame".
7988 2003-04-09 Andrew Cagney <cagney@redhat.com>
7990 * NEWS: Mention that the "Sequent family" is obsolete.
7991 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7992 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7993 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7994 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7995 * config/i386/tm-ptx4.h: Obsolete file.
7996 * config/i386/tm-ptx.h: Obsolete file.
7997 * symm-tdep.c: Obsolete file.
7998 * config/i386/symmetry.mt: Obsolete file.
7999 * config/i386/tm-symmetry.h: Obsolete file.
8000 * symm-nat.c: Obsolete file.
8001 * config/i386/nm-symmetry.h: Obsolete file.
8002 * config/i386/xm-symmetry.h: Obsolete file.
8003 * config/i386/symmetry.mh: Obsolete file.
8004 * config/i386/nm-ptx4.h: Obsolete file.
8005 * config/i386/ptx4.mh: Obsolete file.
8006 * config/i386/ptx.mt: Obsolete file.
8007 * config/i386/ptx.mh: Obsolete file.
8008 * config/i386/xm-ptx4.h: Obsolete file.
8009 * config/i386/xm-ptx.h: Obsolete file.
8011 2003-04-09 Andrew Cagney <cagney@redhat.com>
8013 Obsolete mips*-*-mach3*.
8014 * NEWS: Mention that mips*-*-mach3* is obsolete.
8015 * m3-nat.c: Obsolete file.
8016 * config/nm-m3.h: Obsolete file.
8017 * config/mips/tm-mipsm3.h: Obsolete file.
8018 * config/mips/mipsm3.mt: Obsolete file.
8019 * config/mips/mipsm3.mh: Obsolete file.
8020 * config/mips/xm-mipsm3.h: Obsolete file.
8021 * mipsm3-nat.c: Obsolete file.
8022 * configure.host: Obsolete mips-dec-mach3*.
8023 * configure.tgt: Obsolete mips*-*-mach3*.
8025 2003-04-09 Andrew Cagney <cagney@redhat.com>
8027 * doublest.h: Update copyright.
8028 (deprecated_store_floating, deprecated_extract_floating): Rename
8029 store_floating and extract_floating. Update comments.
8030 * doublest.c: Update copyright.
8031 (extract_floating_by_length): Replace extract_floating.
8032 (store_floating_by_length): Replace store_floating.
8033 (deprecated_extract_floating): New function.
8034 (deprecated_store_floating): New function.
8035 (extract_typed_floating): Call extract_floating_by_length.
8036 (store_typed_floating): Call store_floating_by_length.
8037 * x86-64-tdep.c (x86_64_store_return_value): Update.
8038 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8039 (sh64_extract_return_value): Update.
8040 (sh_sh4_register_convert_to_virtual): Update.
8041 (sh_sh64_register_convert_to_virtual): Update.
8042 (sh_sh4_register_convert_to_raw): Update.
8043 (sh_sh64_register_convert_to_raw): Update.
8044 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8045 (rs6000_register_convert_to_raw): Update.
8046 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8047 (ia64_register_convert_to_raw): Update.
8048 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8049 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8050 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8051 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8052 (alpha_register_convert_to_raw): Update.
8054 2003-04-08 Andrew Cagney <cagney@redhat.com>
8056 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8057 * gdbarch.h, gdbarch.c: Re-generate.
8058 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8059 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8060 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8061 conditionally, use frame_pc_unwind as an alternative. Add
8063 * arch-utils.c (init_frame_pc_default): Only call
8064 SAVED_PC_AFTER_CALL when available.
8066 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8068 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8069 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8070 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8071 (start_remote): Ditto.
8072 (handle_inferior_event): Ditto.
8073 (save_inferior_status): Ditto.
8074 (restore_inferior_status): Ditto.
8075 * infcmd.c (attach_command): Ditto.
8076 * fork-child.c (startup_inferior): Ditto.
8077 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8078 * alpha-tdep.c (heuristic_proc_start): Ditto.
8079 * mips-tdep.c (heuristic_proc_start): Ditto.
8080 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8081 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8082 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8083 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8084 * remote-vx.c (vx_create_inferior): Ditto.
8086 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8088 * infrun.c (stop_soon_quietly): Make it an enum, to better
8089 override the default behavior of handle_inferior_event.
8090 (clear_proceed_status): Update uses of stop_soon_quietly to
8091 reflect that it is now an enum.
8092 (start_remote): Ditto.
8093 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8094 is set to handle the new GNU/Linux kernel behavior for
8095 attach/sigstop. Update uses of stop_soon_quietly.
8096 * inferior.h (enum stop_kind): New enum.
8097 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8098 Reset normal handle_inferior_event behavior, afterwards.
8099 * fork-child.c (startup_inferior): Update.
8100 * alpha-tdep.c (heuristic_proc_start): Update.
8101 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8102 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8103 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8104 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8105 * remote-vx.c (vx_create_inferior): Update.
8106 * mips-tdep.c (heuristic_proc_start): Update.
8108 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8110 * disasm.c (dump_insns): Move variables inside loop, or they will
8111 be freed more than once, causing wild memory corruptions.
8112 (gdb_disassembly): Look for the substring "-thread",
8113 instead of "-threads" in the target name, to make sure to find
8114 the 'multi-thread' target. Also, make sure we do the right thing
8115 with the "core" target.
8117 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8119 * mips-tdep.c (mips_print_fp_register): New function, created from
8120 do_fp_register_row(). Registers are now (also) printed as hex.
8121 Only one register is printed per row.
8122 (mips_print_register, do_fp_register_row): Print floating point
8123 registers with mips_print_fp_register().
8125 2003-04-06 Andrew Cagney <cagney@redhat.com>
8127 * valprint.h (inspect_it): Add extern declaration.
8128 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8129 (selectors_info, classes_info): Ditto.
8130 (find_objc_msgcall): Fix indentation.
8131 (objc_printstr): Delete extern declarations.
8133 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8135 2003-04-06 Andrew Cagney <cagney@redhat.com>
8137 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8139 * frame.c (legacy_saved_regs_this_id): Update.
8140 (legacy_get_prev_frame): Update.
8141 * xstormy16-tdep.c: Update comment.
8142 * sparc-tdep.c (sparc_frame_chain): Update comment.
8143 * blockframe.c (legacy_frame_chain_valid): Update.
8145 2003-04-06 Andrew Cagney <cagney@redhat.com>
8147 * valprint.c (val_print_type_code_int): Delete #ifdef
8148 PRINT_TYPELESS_INTEGER code.
8150 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8151 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8152 multi-arch definition.
8153 * gdbarch.h: Re-generate.
8155 2003-04-05 Andrew Cagney <cagney@redhat.com>
8157 Eliminate FRAME_FIND_SAVED_REGS.
8158 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8159 Change FSR parameter to a pointer.
8160 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8161 Assume FSR parameter is a pointer.
8162 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8164 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8165 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8166 saved_regs a pointer.
8167 (hppa_frame_saved_pc): Ditto.
8168 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8169 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8171 (restore_pc_queue): Make fsr a pointer.
8172 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8173 (hppa_frame_chain): Make saved_regs a pointer, call
8174 hppa_frame_init_saved_regs.
8175 * sparc-tdep.c: Include "gdb_assert.h".
8176 (sparc_frame_find_saved_regs): Replace internal_error with
8178 * remote-vxsparc.c (vx_read_register): Delete reference to
8179 FRAME_FIND_SAVED_REGS.
8180 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8181 * gdbarch.h: Regenerate.
8182 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8183 (deprecated_get_frame_saved_regs): Delete declaration.
8184 (struct frame_saved_regs): Delete definition.
8185 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8186 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8187 (hppa_frame_find_saved_regs): Delete declaration.
8188 (FRAME_FIND_SAVED_REGS): Delete macro.
8189 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8190 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8191 FRAME_FIND_SAVED_REGS in comment.
8193 2003-04-05 Andrew Cagney <cagney@redhat.com>
8195 * frame.c (frame_func_unwind, get_frame_func): New functions.
8196 * frame.h (get_frame_func, frame_func_unwind): Declare.
8197 (struct frame_info): Add field "prev_func" for caching the
8198 previous frame's function address.
8199 * arm-tdep.c (arm_frameless_function_invocation): Combine
8200 get_pc_function_start and get_frame_pc into get_frame_func.
8201 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8202 (sh64_nofp_frame_init_saved_regs): Ditto.
8203 * s390-tdep.c (s390_function_start): Ditto.
8204 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8205 (rs6000_frameless_function_invocation): Ditto.
8206 (rs6000_frame_saved_pc): Ditto.
8207 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8208 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8209 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8210 (i386_frame_init_saved_regs): Ditto.
8211 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8212 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8213 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8214 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8215 * blockframe.c (frameless_look_for_prologue): Ditto.
8217 2003-04-05 Andrew Cagney <cagney@redhat.com>
8219 * frame.c (legacy_get_prev_frame): Link prev to next at the
8220 function start. Update comments.
8222 2003-04-05 Andrew Cagney <cagney@redhat.com>
8224 * frame.c (get_frame_id): Update comment.
8225 (legacy_get_prev_frame): Update comment.
8226 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8227 * gdbarch.h: Regenerate.
8228 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8229 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8231 2003-04-05 Andrew Cagney <cagney@redhat.com>
8233 * stack.c (print_frame_info): Use get_frame_pc.
8235 2003-04-04 Andrew Cagney <cagney@redhat.com>
8237 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8238 the frame's type from the unwinder.
8239 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8240 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8241 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8242 (get_frame_base_address): Use get_frame_type.
8243 (get_frame_locals_address, get_frame_args_address): Ditto.
8244 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8245 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8246 (struct frame_info): Add comment explaining why the frame contains
8248 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8249 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8250 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8252 * frame-unwind.h: Include "frame.h".
8253 (struct frame_unwind): Add "type" field.
8254 * Makefile.in (frame_unwind_h): Add $(frame_h).
8256 2003-04-04 Andrew Cagney <cagney@redhat.com>
8258 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8259 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8260 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8262 (d10v_unwind_dummy_id): Use frame_id_build.
8263 * frame.c (find_frame_sal): Use get_frame_pc.
8264 (create_new_frame): Use deprecated_update_frame_pc_hack and
8265 deprecated_update_frame_base_hack.
8266 (create_sentinel_frame): Add comment about ->pc going away.
8267 (get_prev_frame): Add comment about ->pc going away.
8268 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8269 frame_id_build, deprecated_update_frame_pc_hack and
8270 deprecated_update_frame_base_hack.
8271 (select_frame): Use get_frame_pc.
8272 (legacy_saved_regs_this_id): Use frame_id_build.
8274 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8276 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8277 signed integer case.
8278 (classify_argument): Handle enumerations and references.
8280 2003-04-04 Andrew Cagney <cagney@redhat.com>
8282 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8285 2003-04-01 Adam Fedor <fedor@gnu.org>
8287 * gdb/objc-lang.c (selectors_info): Replace calls to
8288 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8289 SYMBOL_NATURAL_NAME.
8290 (classes_info, find_methods): Likewise.
8292 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8294 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8295 ``mach'' to the value determined by bfd_default_set_arch_mach().
8297 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8299 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8300 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8301 (mi-cmd-file.o): Update dependencies.
8303 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8305 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8306 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8308 2003-04-01 Adam Fedor <fedor@gnu.org>
8310 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8311 * language.h (struct language_defn): Add la_demangle.
8312 (language_demangle): Declare.
8313 * language.c (language_demangle): New function.
8314 (unk_lang_demangle): Likewise.
8315 (unknown_language_defn, auto_language_defn, local_language_defn):
8316 Add ukn_lang_demangle.
8317 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8318 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8319 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8320 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8321 * jv-lang.c (java_demangle): New function
8322 (java_language_defn): Use it for la_demangle element.
8323 * objc-lang.c (objc_demangle): Add options argument
8324 (objc_language_defn): Use objc_demangle for la_demangle element.
8325 * maint.c (maintenance_demangle): Replace switch with
8326 call to language_demangle.
8327 * utils.c (fprintf_symbol_filtered): Likewise.
8329 2003-04-01 Andrew Cagney <cagney@redhat.com>
8331 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8332 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8333 PRINT_TYPELESS_INTEGER.
8334 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8335 PUSH_RETURN_ADDRESS.
8337 2003-04-01 Andrew Cagney <cagney@redhat.com>
8339 * Makefile.in (d10v-tdep.o): Update dependencies.
8340 * d10v-tdep.c: Include "frame-base.h".
8341 (d10v_frame_unwind): Make constant.
8342 (d10v_frame_base_address): New function.
8343 (d10v_frame_base): New variable.
8344 (d10v_gdbarch_init): Set frame_base default.
8345 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8347 (d10v_frame_unwind_cache): Set and use "prev_sp".
8348 (d10v_frame_this_id): Use the previous frame's inner most stack
8349 address and this frame's func address for the frame ID. Use
8350 frame_id_build. Don't analyze beyond the current instruction.
8352 2003-04-01 Andrew Cagney <cagney@redhat.com>
8354 * frame.h (get_frame_locals_address, get_frame_args_address):
8355 Refer to the base address, instead of the address of the first
8358 2003-04-01 Andrew Cagney <cagney@redhat.com>
8360 Add frame debug info addresses:
8361 * frame-base.c: New file.
8362 * frame-base.h: New file.
8363 * frame.h (struct frame_base): Add opaque declaration.
8364 (get_frame_base): Update comment.
8365 (get_frame_base_address): Declare.
8366 (get_frame_locals_address): Declare.
8367 (get_frame_args_address): Declare.
8368 (struct frame_info): Add "base" and "base_cache". Update
8369 comments on the unwinder.
8370 * frame.c: Include "frame-base.h".
8371 (get_frame_locals_address): New function.
8372 (get_frame_base_address): New function.
8373 (get_frame_args_address): New function.
8374 * findvar.c (read_var_value): Use get_frame_locals_address and
8375 get_frame_args_address.
8376 * stack.c (frame_info): Use get_frame_locals_address and
8377 get_frame_args_address.
8378 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8379 moved to "frame-base.c".
8380 * printcmd.c (print_frame_nameless_args): Ditto.
8381 * symtab.h (address_class): Update comments.
8382 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8383 get_frame_base_address.
8384 * dwarf2expr.c (execute_stack_op): Ditto.
8385 * Makefile.in (frame_base_h): Define.
8386 (frame.o): Update dependencies.
8387 (frame-base.o): Add dependencies.
8388 (SFILES): Add frame-base.c.
8389 (COMMON_OBS): Add frame-base.o.
8391 2003-04-01 Andrew Cagney <cagney@redhat.com>
8393 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8394 CALL_DUMMY_LENGTH): Ditto.
8395 * gdbarch.c: Re-generate.
8396 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8397 (CALL_DUMMY_LENGTH): Delete macro.
8398 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8399 * arm-tdep.c (arm_gdbarch_init): Ditto.
8400 * avr-tdep.c (avr_gdbarch_init): Ditto.
8401 * cris-tdep.c (cris_gdbarch_init): Ditto.
8402 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8403 * frv-tdep.c (frv_gdbarch_init): Ditto.
8404 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8405 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8406 * i386-tdep.c (i386_gdbarch_init): Ditto.
8407 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8409 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8410 * mips-tdep.c (mips_gdbarch_init): Ditto.
8411 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8412 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8413 * s390-tdep.c (s390_gdbarch_init): Ditto.
8414 * sh-tdep.c (sh_gdbarch_init): Ditto.
8415 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8416 * v850-tdep.c (v850_gdbarch_init): Ditto.
8417 * vax-tdep.c (vax_gdbarch_init): Ditto.
8418 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8420 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8422 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8424 2003-04-01 Andrew Cagney <cagney@redhat.com>
8426 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8427 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8428 * gdbarch.h, gdbarch.c: Re-generate.
8429 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8430 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8431 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8432 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8433 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8434 * infcmd.c (run_stack_dummy): Simplify assuming
8435 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8436 * infrun.c (handle_inferior_event): Ditto.
8437 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8438 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8439 * arm-tdep.c (arm_gdbarch_init): Ditto.
8440 * avr-tdep.c (avr_gdbarch_init): Ditto.
8441 * cris-tdep.c (cris_gdbarch_init): Ditto.
8442 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8443 * frv-tdep.c (frv_gdbarch_init): Ditto.
8444 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8445 * i386-tdep.c (i386_gdbarch_init): Ditto.
8446 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8448 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8449 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8450 * mips-tdep.c (mips_gdbarch_init): Ditto.
8451 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8452 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8453 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8454 * s390-tdep.c (s390_gdbarch_init): Ditto.
8455 * sh-tdep.c (sh_gdbarch_init): Ditto.
8456 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8457 * v850-tdep.c (v850_gdbarch_init): Ditto.
8458 * vax-tdep.c (vax_gdbarch_init): Ditto.
8459 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8461 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8463 * symfile.c (symfile_relocate_debug_section): Update call to
8464 bfd_simple_get_relocated_section_contents.
8466 2003-03-31 Andrew Cagney <cagney@redhat.com>
8468 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8469 * gdbarch.h, gdbarch.c: Regenerate.
8470 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8471 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8473 * frame.h (generic_fix_call_dummy): Delete declaration.
8474 * dummy-frame.h: Update comment.
8475 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8478 * sh-tdep.c (sh_gdbarch_init): Ditto.
8479 * s390-tdep.c (s390_gdbarch_init): Ditto.
8480 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8481 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8483 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8484 * i386-tdep.c (i386_gdbarch_init): Ditto.
8485 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8486 * frv-tdep.c (frv_gdbarch_init): Ditto.
8487 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8488 * cris-tdep.c (cris_gdbarch_init): Ditto.
8489 * avr-tdep.c (avr_gdbarch_init): Ditto.
8490 * arm-tdep.c (arm_gdbarch_init): Ditto.
8492 2003-03-31 J. Brobecker <brobecker@gnat.com>
8494 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8495 (INIT_FRAME_AP): Likewise.
8496 (EXTRA_FRAME_INFO): Likewise.
8498 2003-03-31 Andrew Cagney <cagney@redhat.com>
8500 * gdbarch.sh: Include "symfile.h".
8501 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8502 * gdbarch.h, gdbarch.c: Re-generate.
8503 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8505 call_dummy_address, the default is at entry_point_address.
8506 * v850-tdep.c (v850_gdbarch_init): Ditto.
8507 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8508 * sh-tdep.c (sh_gdbarch_init): Ditto.
8509 * s390-tdep.c (s390_gdbarch_init): Ditto.
8510 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8511 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8512 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8513 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8514 * i386-tdep.c (i386_gdbarch_init): Ditto.
8515 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8516 * frv-tdep.c (frv_gdbarch_init): Ditto.
8517 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8518 * cris-tdep.c (cris_gdbarch_init): Ditto.
8519 * arm-tdep.c (arm_gdbarch_init): Ditto.
8521 2003-03-31 Andrew Cagney <cagney@redhat.com>
8523 * gdbarch.sh (CALL_DUMMY_P): Delete.
8524 * gdbarch.h, gdbarch.c: Re-generate.
8525 * inferior.h (CALL_DUMMY_P): Delete macro.
8526 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8527 * vax-tdep.c (vax_gdbarch_init): Update.
8528 * v850-tdep.c (v850_gdbarch_init): Update.
8529 * sparc-tdep.c (sparc_gdbarch_init): Update.
8530 * sh-tdep.c (sh_gdbarch_init): Update.
8531 * s390-tdep.c (s390_gdbarch_init): Update.
8532 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8533 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8534 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8535 * mips-tdep.c (mips_gdbarch_init): Update.
8536 * mcore-tdep.c (mcore_gdbarch_init): Update.
8537 * m68k-tdep.c (m68k_gdbarch_init): Update.
8538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8539 * ia64-tdep.c (ia64_gdbarch_init): Update.
8540 * i386-tdep.c (i386_gdbarch_init): Update.
8541 * h8300-tdep.c (h8300_gdbarch_init): Update.
8542 * frv-tdep.c (frv_gdbarch_init): Update.
8543 * d10v-tdep.c (d10v_gdbarch_init): Update.
8544 * cris-tdep.c (cris_gdbarch_init): Update.
8545 * breakpoint.c (deprecated_frame_in_dummy): Update.
8546 * avr-tdep.c (avr_gdbarch_init): Update.
8547 * alpha-tdep.c (alpha_gdbarch_init): Update.
8548 * arm-tdep.c (arm_gdbarch_init): Update.
8549 * dummy-frame.c (dummy_frame_this_id): Update comments.
8550 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8551 * frame.c (legacy_get_prev_frame): Ditto.
8552 * valops.c (call_function_by_hand): Delete function.
8553 (hand_function_call): Rename to call_function_by_hand
8555 2003-03-30 Andrew Cagney <cagney@redhat.com>
8557 2002-11-10 Klee Dienes <kdienes@apple.com>
8558 * value.h (struct value): Update comment.
8560 2003-03-30 Andrew Cagney <cagney@redhat.com>
8562 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8564 (d10v_gdbarch_init): Do not set fp_regnum.
8566 * frame.c (get_frame_base): Force ID initialization.
8567 (get_prev_frame): Move computation of the frame ID from here ...
8568 (get_frame_id): ... to here.
8569 (legacy_get_prev_frame): Mark the frame ID as valid.
8570 * frame.h (struct frame_info): Add field "id_p".
8572 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8574 * i386-tdep.c (i386_store_struct_return): Removed.
8575 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8577 2003-03-30 Andrew Cagney <cagney@redhat.com>
8579 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8580 * gdbarch.h, gdbarch.c: Regenerate.
8581 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8583 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8584 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8585 * i386-tdep.c (i386_gdbarch_init): Ditto.
8586 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8587 * cris-tdep.c (cris_gdbarch_init): Ditto.
8588 * vax-tdep.c (vax_gdbarch_init): Ditto.
8589 * s390-tdep.c (s390_gdbarch_init): Ditto.
8590 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8591 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8592 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8593 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8594 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8595 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8596 * sparc-tdep.c (sparc_gdbarch_init): Update.
8597 * sh-tdep.c (sh_gdbarch_init): Update.
8598 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8599 * mips-tdep.c (mips_gdbarch_init): Update.
8600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8601 * ia64-tdep.c (ia64_gdbarch_init): Update.
8602 * frv-tdep.c (frv_gdbarch_init): Update.
8603 * avr-tdep.c (avr_gdbarch_init): Update.
8604 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8605 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8606 instead of when push_dummy_call is not available.
8608 2003-03-30 Andrew Cagney <cagney@redhat.com>
8610 * infttrace.c: Include "gdbthread.h".
8611 (parent_attach_all): Fix function signature.
8612 (call_ptrace): Update call.
8613 * Makefile.in (infttrace.o): Update dependencies.
8615 2003-03-30 Andrew Cagney <cagney@redhat.com>
8617 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8618 PUSH_RETURN_ADDRESS.
8619 * gdbarch.h, gdbarch.c: Regenerate.
8620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8621 * x86-64-tdep.c (x86_64_init_abi): Update.
8622 * v850-tdep.c (v850_gdbarch_init): Update.
8623 * sparc-tdep.c (sparc_gdbarch_init): Update.
8624 * sh-tdep.c (sh_gdbarch_init): Update.
8625 * s390-tdep.c (s390_gdbarch_init): Update.
8626 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8627 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8628 * mips-tdep.c (mips_gdbarch_init): Update.
8629 * mcore-tdep.c (mcore_gdbarch_init): Update.
8630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8631 * ia64-tdep.c (ia64_gdbarch_init): Update.
8632 * i386-tdep.c (i386_gdbarch_init): Update.
8633 * h8300-tdep.c (h8300_gdbarch_init): Update.
8634 * frv-tdep.c (frv_gdbarch_init): Update.
8635 * cris-tdep.c (cris_gdbarch_init): Update.
8636 * avr-tdep.c (avr_gdbarch_init): Update.
8637 * arm-tdep.c (arm_gdbarch_init): Update.
8638 * valops.c (hand_function_call): Update.
8640 2003-03-29 Andrew Cagney <cagney@redhat.com>
8642 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8643 sizeof_call_dummy_words.
8644 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8646 * gdbarch.h: Regenerate.
8648 2003-03-29 Andrew Cagney <cagney@redhat.com>
8650 * infttrace.h: New file.
8651 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8652 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8653 (hpread_read_doc_function_type): Detect an initialized type1.
8654 (hpread_quick_traverse): Initialize mod_name_string.
8655 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8656 (som_solib_get_solib_by_pc): Declare.
8657 (so_lib_thread_start_addr): Declare.
8658 (no_shared_libraries): Declare.
8659 * somread.c (init_import_symbols): Make static. Add forward
8661 * config/pa/nm-hppah.h: Include "infttrace.h" for
8663 (hppa_insert_hw_watchpoint): Declare.
8664 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8665 * hppah-nat.c: Include "gdb_string.h".
8666 (parent_attach_all): Delete extern declaration, moved to
8668 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8670 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8671 * Makefile.in (infttrace_h): Define.
8672 (hpread.o): Update dependencies.
8673 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8674 * hppa-hpux-tdep.c: Include "gdb_string.h".
8675 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8676 * infrun.c (handle_inferior_event): Always initialize
8677 stepped_after_stopped_by_watchpoint. Add default and remove
8678 fallthrough in switch statement.
8679 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8681 (hppa_remove_hw_watchpoint): Ditto.
8683 2003-03-29 Andrew Cagney <cagney@redhat.com>
8685 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8688 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8690 * arm-tdep.c (arm_push_arguments): Delete.
8691 (struct stack_item): New type.
8692 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8693 (arm_store_struct_return): Delte.
8694 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8695 arm_push_arguments or arm_store_struct_return.
8697 2003-03-28 Andrew Cagney <cagney@redhat.com>
8699 * Makefile.in (d10v-tdep.o): Update dependencies.
8700 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8701 * d10v-tdep.c: Include "remote.h".
8702 (target_resume_hook): Delete extern declaration.
8703 (target_wait_loop_hook): Ditto.
8704 (tdisassemble_command): Eliminate assignment in "if" conditional.
8705 (d10v_ts2_register_sim_regno): Eliminate call to
8706 legacy_register_sim_regno.
8707 (d10v_ts3_register_sim_regno): Ditto.
8709 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8711 * thread.c: Reindented.
8713 * linux-proc.c: Ditto.
8715 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8717 * MAINTAINERS (write after approval): Add myself.
8719 2003-03-27 Theodore A. Roth <troth@openavr.org>
8721 * objc-exp.y: Add missing semi-colons.
8723 2003-03-27 Andrew Cagney <cagney@redhat.com>
8725 * regcache.c (write_sp): Delete function and references.
8726 * inferior.h (write_sp): Delete declaration.
8727 * valops.c (hand_function_call): Replace write_sp with
8729 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8730 (sparc_pop_frame): Ditto.
8732 2003-03-27 Andrew Cagney <cagney@redhat.com>
8734 * NEWS: Mention removal of support for hppa*-*-bsd* and
8735 hppa*-*-osf* natives, and hppa*-*-pro* target.
8736 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8737 * config/pa/xm-pa.h: Obsolete file.
8738 * config/pa/xm-hppab.h: Obsolete file.
8739 * config/pa/nm-hppab.h: Obsolete file.
8740 * config/pa/tm-hppab.h: Obsolete file.
8741 * config/pa/tm-hppao.h: Obsolete file.
8742 * config/pa/nm-hppao.h: Obsolete file.
8743 * config/pa/tm-pro.h: Obsolete file.
8744 * config/pa/hppaosf.mt: Obsolete file.
8745 * config/pa/hppaosf.mh: Obsolete file.
8746 * config/pa/hppapro.mt: Obsolete file.
8747 * config/pa/hppabsd.mt: Obsolete file.
8748 * config/pa/hppabsd.mh: Obsolete file.
8749 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8750 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8753 2003-03-27 Andrew Cagney <cagney@redhat.com>
8755 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8756 push_arguments. Don't set push_return_address or write_sp.
8757 (d10v_push_dummy_call): Replace d10v_push_arguments.
8758 (d10v_push_return_address, d10v_write_sp): Delete function,
8759 handled by push_dummy_call.
8761 2003-03-26 Andrew Cagney <cagney@redhat.com>
8763 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8764 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8765 regcache and dummy_addr parameters.
8766 * gdbarch.h, gdbarch.c: Re-generate.
8767 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8768 available; assume it will handle stack alignment and return
8769 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8770 legacy_push_arguments.
8771 (legacy_push_arguments): Rename default_push_arguments.
8772 * value.h (legacy_push_arguments): Rename default_push_arguments.
8773 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8774 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8775 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8776 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8777 * config/i386/tm-symmetry.h: Update.
8778 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8779 * x86-64-tdep.c (x86_64_init_abi): Update.
8780 * v850-tdep.c (v850_gdbarch_init): Update.
8781 * sparc-tdep.c (sparc_gdbarch_init): Update.
8782 * sh-tdep.c (sh_gdbarch_init): Update.
8783 * s390-tdep.c (s390_gdbarch_init): Update.
8784 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8785 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8786 * mips-tdep.c (mips_gdbarch_init): Update.
8787 * mcore-tdep.c (mcore_gdbarch_init): Update.
8788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8789 * ia64-tdep.c (ia64_gdbarch_init): Update.
8790 * i386-tdep.c (i386_gdbarch_init): Update.
8791 * hppa-tdep.c (hppa_gdbarch_init): Update.
8792 * h8300-tdep.c (h8300_gdbarch_init): Update.
8793 * frv-tdep.c (frv_gdbarch_init): Update.
8794 * d10v-tdep.c (d10v_gdbarch_init): Update.
8795 * cris-tdep.c (cris_gdbarch_init): Update.
8796 * avr-tdep.c (avr_gdbarch_init): Update.
8797 * arm-tdep.c (arm_gdbarch_init): Update.
8798 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8799 * alpha-tdep.c (alpha_gdbarch_init): Update.
8801 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8803 * signals/signals.c (do_target_signal_to_host): Correct realtime
8806 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8808 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8809 (struct sal_chain, map_catch_names): Remove.
8810 (catch_exception_command_1): Don't call
8811 handle_gnu_4_16_catch_command.
8813 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8815 From Mark Dettinger <dettinge@de.ibm.com>:
8816 * dwarf2cfi.c (read_2u): Increment pointer by two.
8818 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8820 * signals/signals.c: Fix typos in last change.
8822 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8824 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8825 not already defined. Use __SIGRTMIN if available.
8826 (target_signal_from_host): Remove SIGRTMIN block.
8827 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8828 the signal is within the realtime range.
8830 2003-03-25 Adam Fedor <fedor@gnu.org>
8832 * Makefile.in (infrun.o): Add $(language_h)
8833 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8834 for language specific trampolines.
8835 * language.h (struct language_defn): Add skip_trampoline.
8836 (skip_language_trampoline): Declare.
8837 * language.c (unk_lang_trampoline, skip_language_trampoline):
8839 (unknown_language_defn, auto_language_defn, local_language_defn):
8840 Add ukn_lang_trampoline.
8841 * ada-lang.c (ada_language_defn): Add NULL for language
8842 specific skip_trampoline.
8843 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8844 scm-lang.c: Likewise.
8845 * objc-lang.c (objc_skip_trampoline): New function.
8846 (objc_language_defn): Add objc_skip_trampoline.
8848 2003-03-25 Andrew Cagney <cagney@redhat.com>
8850 * frame.c (get_prev_frame): Delay validating a frame's ID -
8851 non-NULL, didn't go backwards - until an attempt to unwind it to
8854 2003-03-25 Andrew Cagney <cagney@redhat.com>
8856 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8857 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8858 * gdbarch.h, gdbarch.c: Re-generate.
8859 * config/sparc/tm-sparc.h
8860 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8861 * sparc-tdep.c (sparc_gdbarch_init): Set
8862 deprecated_extra_stack_alignment_needed.
8863 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8865 extra_stack_alignment_needed.
8866 * v850-tdep.c (v850_gdbarch_init): Ditto.
8867 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8868 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8869 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8870 * cris-tdep.c (cris_gdbarch_init): Ditto.
8871 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8872 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8874 2003-03-25 Andrew Cagney <cagney@redhat.com>
8876 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8877 STORE_STRUCT_RETURN.
8878 * gdbarch.h, gdbarch.c: Regenerate.
8879 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8880 (d10v_push_arguments): Set the struct return register.
8881 (d10v_gdbarch_init): Update.
8882 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8883 * x86-64-tdep.c (x86_64_init_abi): Update.
8884 * vax-tdep.c (vax_gdbarch_init): Update.
8885 * v850-tdep.c (v850_gdbarch_init): Update.
8886 * sparc-tdep.c (sparc_gdbarch_init): Update.
8887 * sh-tdep.c (sh_gdbarch_init): Update.
8888 * s390-tdep.c (s390_gdbarch_init): Update.
8889 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8890 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8891 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8892 * mips-tdep.c (mips_gdbarch_init): Update.
8893 * mcore-tdep.c (mcore_gdbarch_init): Update.
8894 * m68k-tdep.c (m68k_gdbarch_init): Update.
8895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8896 * ia64-tdep.c (ia64_gdbarch_init): Update.
8897 * i386-tdep.c (i386_gdbarch_init): Update.
8898 * hppa-tdep.c (hppa_gdbarch_init): Update.
8899 * h8300-tdep.c (h8300_gdbarch_init): Update.
8900 * frv-tdep.c (frv_gdbarch_init): Update.
8901 * cris-tdep.c (cris_gdbarch_init): Update.
8902 * avr-tdep.c (avr_gdbarch_init): Update.
8903 * arm-tdep.c (arm_gdbarch_init): Update.
8904 * alpha-tdep.c (alpha_gdbarch_init): Update.
8906 2003-03-25 Andrew Cagney <cagney@redhat.com>
8908 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8909 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8910 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8911 * gdbarch.h, gdbarch.c: Regenerate.
8912 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8913 call_dummy_stack_adjust_p.
8914 * vax-tdep.c (vax_gdbarch_init): Ditto.
8915 * v850-tdep.c (v850_gdbarch_init): Ditto.
8916 * sh-tdep.c (sh_gdbarch_init): Ditto.
8917 * s390-tdep.c (s390_gdbarch_init): Ditto.
8918 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8919 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8920 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8921 * mips-tdep.c (mips_gdbarch_init): Ditto.
8922 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8923 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8925 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8926 * i386-tdep.c (i386_gdbarch_init): Ditto.
8927 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8928 * frv-tdep.c (frv_gdbarch_init): Ditto.
8929 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8930 * cris-tdep.c (cris_gdbarch_init): Ditto.
8931 * avr-tdep.c (avr_gdbarch_init): Ditto.
8932 * arm-tdep.c (arm_gdbarch_init): Ditto.
8933 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8934 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8935 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8936 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8937 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8938 call_dummy_stack_adjust_p.
8939 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8940 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8941 * sparc-tdep.c (sparc32_push_arguments): Update.
8942 * valops.c (hand_function_call): Update.
8944 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8947 set_gdbarch_char_signed.
8949 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8952 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8954 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8956 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8957 (_initialize_arm_tdep): Don't set tm_print_insn.
8959 2003-03-24 Adam Fedor <fedor@gnu.org>
8961 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8962 * objc-lang.h: Add multiple inclusion protection.
8963 (start_msglist, add_msglist, end_msglist): Additional declarations.
8965 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8967 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8968 value was renamed to ARM_FLOAT_SOFT_FPA.
8970 2003-03-23 Andrew Cagney <cagney@redhat.com>
8972 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8973 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8974 * gdbarch.h, gdbarch.c: Regenerate.
8975 * valops.c (hand_function_call): Update.
8976 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8977 * frame.c (legacy_saved_regs_this_id): Update.
8978 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8979 * dummy-frame.h: Update.
8980 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8981 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8982 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8983 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8984 * config/m68k/tm-sun3.h: Update.
8985 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8986 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8987 * x86-64-tdep.c (x86_64_init_abi): Update.
8988 * vax-tdep.c (vax_gdbarch_init): Update.
8989 * v850-tdep.c (v850_gdbarch_init): Update.
8990 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8991 * sh-tdep.c (sh_gdbarch_init): Update.
8992 * s390-tdep.c (s390_gdbarch_init): Update.
8993 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8994 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8995 (frame_get_saved_regs): Update.
8996 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8997 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8998 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8999 * mips-tdep.c (mips_gdbarch_init): Update.
9000 * mcore-tdep.c (mcore_gdbarch_init): Update.
9001 * m68k-tdep.c (m68k_gdbarch_init): Update.
9002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9003 * ia64-tdep.c (ia64_gdbarch_init): Update.
9004 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9005 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9006 (i386_interix_back_one_frame): Update.
9007 * hppa-tdep.c (hppa_gdbarch_init): Update.
9008 (hppa_init_extra_frame_info): Update.
9009 * h8300-tdep.c (h8300_gdbarch_init): Update.
9010 * frv-tdep.c (frv_gdbarch_init): Update.
9011 * cris-tdep.c (cris_gdbarch_init): Update.
9012 * avr-tdep.c (avr_gdbarch_init): Update.
9013 * arm-tdep.c (arm_gdbarch_init): Update.
9014 * alpha-tdep.c (alpha_gdbarch_init): Update.
9016 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9018 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9019 (arm_get_fp_model): Declare.
9020 * arm-tdep.c (fp_model_strings): New string array.
9021 (arm_fp_model, current_fp_model): New variables.
9022 (arm_get_fp_model): New function.
9023 (arm_set_fp): New function.
9024 (set_fp_model_sfunc): New function.
9025 (show_fp_model): New function.
9026 (_initialize_arm_tdep): Add new command to set/show the FPU.
9027 (arm_extract_return_value): Use arm_get_fp_model.
9028 (arm_store_return_value): Likewise.
9029 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9030 to initialize the floating-point data types.
9031 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9034 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9036 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9037 the current setting of each value.
9038 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9039 new_set and new_show. Use add_setshow_cmd_full and
9040 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9041 commands and add new version as subcommands of "set/show arm".
9043 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9045 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9046 (set_arm_command, show_arm_command): New functions.
9047 (_initialize_arm_tdep): Add them.
9048 (num_disassembly_options): Renamed from num_flavor_options.
9049 (valid_disassembly_styles): Renamed from valid_flavors.
9050 (disassembly_style): Renamed from disassembly_flavor.
9051 (set_disassembly_style_sfunc): Renamed from
9052 set_disassembly_flavor_sfunc.
9053 (set_disassembly_style): Renamed from set_disassembly_flavor.
9054 (arm_othernames): Updated.
9055 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9056 command. Add "set/show arm disassembly" commands. Deprecate
9057 "othernames" command.
9059 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9061 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9062 (arm-tdep.o): Depend on elf_arm_h.
9064 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9066 * Makefile.in (coff_internal_h): Define.
9067 (arm-tdep.o): Update dependencies.
9069 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9071 * arm-tdep.c (prologue_cache): Delete.
9072 (check_prologue_cache, save_prologue_cache): Delete.
9073 (arm_scan_prologue): Don't check or update the prologue_cache.
9074 (arm_gdb_arch_init): Don't initialize it.
9075 (_initialize_arm_tdep): Likewise.
9077 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9079 * MAINTAINERS (tui): Maintainer of tui code.
9081 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9083 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9084 (i386-cygwin-tdep.o): Add dependencies.
9085 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9086 * i386-cygwin-tdep.c: New file.
9087 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9088 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9090 2003-03-20 Andrew Cagney <cagney@redhat.com>
9092 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9093 (handle_inferior_event): Remove code calling
9094 DYNAMIC_TRAMPOLINE_NEXTPC.
9096 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9097 already has a full path.
9099 * main.c (gdb_main): Return 1.
9100 (captured_main): Call error to report an invalid interpreter.
9102 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9103 * alpha-osf1-tdep.c: Include "gdb_string.h".
9105 2003-03-19 J. Brobecker <brobecker@gnat.com>
9107 Continuing work to convert the hppa targets to multiarch partial.
9109 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9110 method, now that hppa_push_dummy_frame has a conformant prototype.
9111 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9112 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9113 for the switch to multiarch partial.
9115 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9117 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9118 when iss is issNull.
9120 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9122 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9123 NUM_REGS bounds check.
9125 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9127 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9128 * mips-tdep.c (gdb_assert.h): Include.
9129 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9130 (mips_register_name): Handle integer registers explicitly. Add
9132 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9133 (mips_lsi33k_reg_names): Don't list integer registers; they're
9134 handled by mips_register_name() now.
9135 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9136 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9137 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9138 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9139 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9141 2003-03-18 Andrew Cagney <cagney@redhat.com>
9143 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9145 * gdbtypes.h (print_scalar_formatted): Update declaration.
9146 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9148 2003-03-18 J. Brobecker <brobecker@gnat.com>
9150 * infrun.c (observer.h): Add #include.
9151 (normal_stop): Add call to observer_notify_normal_stop.
9152 * Makefile.in (infrun.o): Add dependency on observer.h.
9154 2003-03-18 J. Brobecker <brobecker@gnat.com>
9156 Continuing work to convert the hppa targets to multiarch partial.
9157 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9158 parameter. Reformat comment.
9159 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9160 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9161 to match new profile.
9163 2003-03-18 J. Brobecker <brobecker@gnat.com>
9165 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9166 appear to be working in any case.
9168 2003-03-18 J. Brobecker <brobecker@gnat.com>
9170 * observer.c (observer_test_first_observer): New static variable.
9171 (observer_test_second_observer): Likewise.
9172 (observer_test_third_observer): Likewise.
9173 (observer_test_first_notification_function): New static function.
9174 (observer_test_second_notification_function): Likewise.
9175 (observer_test_third_notification_function): Likewise.
9177 2003-03-17 J. Brobecker <brobecker@gnat.com>
9179 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9180 * somsolib.c (gdb_assert.h): Likewise.
9181 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9182 (somsolib.o): Likewise.
9184 2003-03-17 Andrew Cagney <cagney@redhat.com>
9186 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9187 BFD. Simplify setting of di.endian.
9189 2003-03-17 Andrew Cagney <cagney@redhat.com>
9191 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9192 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9194 From Elena Zannoni <ezannoni@redhat.com>
9195 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9196 vector and floating-point parameters.
9197 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9199 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9201 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9203 * MAINTAINERS: Remove my name from several maintainership roles.
9205 2003-03-17 Andrew Cagney <cagney@redhat.com>
9207 Fix frame off-by-one bug.
9208 * frame-unwind.h (frame_this_id_ftype): Replace
9209 frame_unwind_id_ftype.
9210 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9211 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9212 with "prev_register".
9213 * frame-unwind.c (frame_unwind_find_by_pc): Return
9214 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9216 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9217 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9218 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9219 (dummy_frame_unwind): Update.
9220 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9221 sentinel_frame_register_unwind.
9222 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9223 (sentinel_frame_unwinder): Update.
9224 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9225 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9226 * frame.c (create_sentinel_frame): Update. Initialize
9227 "prologue_cache" instead of "unwind_cache".
9228 (frame_register_unwind): Call this frame's prev_register with the
9229 next frame and this frame's prologue cache.
9230 (get_prev_frame): Simplify. Always call prev frame's this_id with
9231 this frame and prev frame's prologue cache. Document that this
9232 call is shifted one to the left when compared to the
9233 frame_register_unwind call.
9234 (legacy_saved_regs_prev_register): Replace
9235 frame_saved_regs_register_unwind.
9236 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9237 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9238 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9239 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9240 (d10v_frame_unwind): Update.
9241 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9242 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9243 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9244 "saved_regs" with "this_saved_regs".
9246 2003-03-16 Andrew Cagney <cagney@redhat.com>
9248 * frame.c (frame_pop): Don't call target_store_registers. Fix
9249 problem reported by Mark Kettenis.
9251 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9253 * i386-tdep.c (i386_register_type): Renamed from
9254 i386_register_virtual_type. Adjust function signature.
9255 (i386_gdbarch_init): Set register_type instead of
9256 deprecated_max_register_raw_size,
9257 deprecated_max_register_virtual_size and register_virtual_type.
9259 2003-03-14 Andrew Cagney <cagney@redhat.com>
9261 * frame.c (get_prev_frame): When a legacy frame, always call
9262 legacy_get_prev_frame. Simplify unwind code using assumption that
9263 the unwinder is new.
9264 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9265 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9266 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9268 2003-03-14 Andrew Cagney <cagney@redhat.com>
9270 * frame.c (get_saved_register): Delete function.
9271 * frame.h (get_saved_register): Delete declaration.
9272 * xstormy16-tdep.c: Update comment.
9273 * regcache.h: Update comments.
9274 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9275 get_saved_register and extract_address, use
9276 frame_read_unsigned_register.
9277 (sparc_frame_saved_pc): Ditto.
9278 (sparc_get_saved_register): Instead of get_saved_register, use
9280 (sparc_pop_frame): Ditto.
9281 * findvar.c: Update comments.
9282 (value_of_register): Call frame_register instead of
9284 (value_from_register): Ditto.
9285 * config/sparc/tm-sparc.h: Update comment.
9286 * breakpoint.c: Update comment.
9288 2003-03-14 Andrew Cagney <cagney@redhat.com>
9290 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9292 * gdbarch.h, gdbarch.c: Re-generate.
9293 * frame.h: Update comments.
9294 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9295 * x86-64-tdep.c (x86_64_init_abi): Update.
9296 * sparc-tdep.c (sparc_gdbarch_init): Update.
9297 * sh-tdep.c (sh_gdbarch_init): Update.
9298 * mips-tdep.c (mips_gdbarch_init): Update.
9299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9300 * cris-tdep.c (cris_gdbarch_init): Update.
9301 * ia64-tdep.c (ia64_gdbarch_init): Update.
9302 * frame.c (frame_register): Update.
9303 (get_saved_register): Update.
9304 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9306 2003-03-13 Andrew Cagney <cagney@redhat.com>
9308 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9309 * gdbarch.h, gdbarch.c: Regenerate.
9310 * valops.c (hand_function_call): Update comment.
9311 * stack.c (return_command): Update comment.
9312 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9313 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9315 * x86-64-tdep.c (x86_64_init_abi): Update.
9316 * vax-tdep.c (vax_gdbarch_init): Update.
9317 * v850-tdep.c (v850_gdbarch_init): Update.
9318 * sparc-tdep.c (sparc_gdbarch_init): Update.
9319 * sh-tdep.c (sh_gdbarch_init): Update.
9320 * s390-tdep.c (s390_gdbarch_init): Update.
9321 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9322 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9323 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9324 * mips-tdep.c (mips_gdbarch_init): Update.
9325 * mcore-tdep.c (mcore_gdbarch_init): Update.
9326 * m68k-tdep.c (m68k_gdbarch_init): Update.
9327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9328 * ia64-tdep.c (ia64_gdbarch_init): Update.
9329 * i386-tdep.c (i386_gdbarch_init): Update.
9330 * hppa-tdep.c (hppa_gdbarch_init): Update.
9331 * h8300-tdep.c (h8300_gdbarch_init): Update.
9332 * frv-tdep.c (frv_gdbarch_init): Update.
9333 * cris-tdep.c (cris_gdbarch_init): Update.
9334 * avr-tdep.c (avr_gdbarch_init): Update.
9335 * arm-tdep.c (arm_gdbarch_init): Update.
9336 * alpha-tdep.c (alpha_gdbarch_init): Update.
9338 2003-03-13 Andrew Cagney <cagney@redhat.com>
9340 * frame.c (legacy_frame_p): New function.
9341 (get_prev_frame): Use legacy_frame_p.
9342 * frame.h (legacy_frame_p): Declare.
9344 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9346 * MAINTAINERS (write after approval): Alphabetically
9349 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9351 * MAINTAINERS (write after approval): Add myself.
9353 2003-03-12 Andrew Cagney <cagney@redhat.com>
9355 * frame.c (get_prev_frame): Rename the frame parameter to
9357 (get_next_frame, legacy_get_prev_frame): Ditto.
9359 2003-03-12 Andrew Cagney <cagney@redhat.com>
9361 * frame.c (get_current_frame): Check target_has_registers before
9362 checking target_has_stack.
9363 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9364 instead of deprecated_selected_frame.
9365 * findvar.c (value_of_register): Pass "frame", not
9366 deprecated_selected_frame, to value_of_builtin_reg.
9368 2003-03-12 Andrew Cagney <cagney@redhat.com>
9370 * regcache.c (regcache_cooked_write_signed): New function.
9371 (regcache_cooked_write_unsigned): New function.
9372 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9373 (regcache_cooked_read_signed): Fix regnum in range assertion.
9374 * regcache.h (regcache_cooked_write_signed): Declare.
9375 (regcache_cooked_write_unsigned): Declare.
9377 2003-03-12 Andrew Cagney <cagney@redhat.com>
9379 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9380 * gdbarch.h, gdbarch.c: Re-generate.
9381 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9382 * x86-64-tdep.h: Update.
9383 * x86-64-tdep.c (x86_64_init_abi): Update.
9384 * v850-tdep.c (v850_gdbarch_init): Update.
9385 * sparc-tdep.c (sparc_gdbarch_init): Update.
9386 * sh-tdep.c (sh_gdbarch_init): Update.
9387 * s390-tdep.c (s390_gdbarch_init): Update.
9388 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9389 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9390 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9391 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9392 * mips-tdep.c (mips_gdbarch_init): Update.
9393 * mcore-tdep.c (mcore_gdbarch_init): Update.
9394 * m68k-tdep.c (m68k_gdbarch_init): Update.
9395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9396 * ia64-tdep.c (ia64_gdbarch_init): Update.
9397 * i386-tdep.c (i386_gdbarch_init): Update.
9398 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9399 * hppa-tdep.c (hppa_gdbarch_init): Update.
9400 * h8300-tdep.c (h8300_gdbarch_init): Update.
9401 * frv-tdep.c (frv_gdbarch_init): Update.
9402 * cris-tdep.c (cris_gdbarch_init): Update.
9403 * avr-tdep.c (avr_gdbarch_init): Update.
9404 * arm-tdep.c (arm_gdbarch_init): Update.
9405 * alpha-tdep.c (alpha_gdbarch_init): Update.
9406 * sh-tdep.c (sh_init_extra_frame_info): Update.
9407 (sh64_init_extra_frame_info): Update.
9408 * ns32knbsd-nat.c (frame_num_args): Update.
9409 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9410 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9411 (xstormy16_frame_chain_valid): Update.
9412 * vax-tdep.c (vax_saved_pc_after_call): Update.
9413 * v850-tdep.c (v850_frame_chain): Update.
9414 (v850_pop_frame): Update.
9415 (v850_init_extra_frame_info): Update.
9416 * sparc-tdep.c (setup_arbitrary_frame): Update.
9417 * ns32k-tdep.c (umax_frame_num_args): Update.
9418 * s390-tdep.c (s390_pop_frame_regular): Update.
9419 * mn10300-tdep.c (mn10300_frame_chain): Update.
9420 (mn10300_pop_frame_regular): Update.
9421 (mn10300_init_extra_frame_info): Update.
9422 * mips-tdep.c (mips_init_frame_pc_first): Update.
9423 (mips_frame_chain): Update.
9424 (mips_pop_frame): Update.
9425 * mcore-tdep.c (mcore_frame_chain): Update.
9426 (mcore_pop_frame): Update.
9427 (mcore_init_extra_frame_info): Update.
9428 * arch-utils.c (init_frame_pc_default): Update.
9429 * m68k-tdep.c (isi_frame_num_args): Update.
9430 (delta68_frame_num_args): Update.
9431 (news_frame_num_args): Update.
9432 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9433 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9434 (alpha_frame_chain): Update.
9435 (alpha_pop_frame): Update.
9436 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9437 (hppa_init_extra_frame_info): Update.
9438 (hppa_frame_chain): Update.
9439 (hppa_frame_chain_valid): Update.
9440 * cris-tdep.c (cris_init_extra_frame_info): Update.
9441 * avr-tdep.c (avr_init_extra_frame_info): Update.
9442 * arm-tdep.c (arm_frame_chain_valid): Update.
9443 (arm_init_extra_frame_info): Update.
9444 (arm_pop_frame): Update.
9445 * frame.c (frame_pc_unwind): Update.
9446 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9447 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9448 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9449 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9450 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9451 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9453 2003-03-12 Andrew Cagney <cagney@redhat.com>
9455 Eliminate the need for POP_FRAME.
9456 * frame.c (do_frame_unwind_register): New function.
9457 (frame_pop): When no POP_FRAME, pop the frame using register
9458 unwind and a scratch regcache.
9459 (frame_saved_regs_pop): Delete function.
9460 (trad_frame_unwinder): Update.
9461 * d10v-tdep.c (d10v_frame_pop): Delete function.
9462 (d10v_frame_unwind): Update.
9463 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9464 (sentinel_frame_unwinder): Update.
9465 * dummy-frame.c (dummy_frame_pop): Delete function.
9466 (dummy_frame_unwind): Update.
9467 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9468 (struct frame_unwind): Update.
9470 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9472 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9473 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9474 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9475 Do range checks on register number obtained from debugging info.
9476 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9477 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9478 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9480 (do_fp_register_row): Fix typo which caused double type to be
9481 used when attempting to unpack a float.
9483 2003-03-11 J. Brobecker <brobecker@gnat.com>
9485 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9487 2003-03-11 Andrew Cagney <cagney@redhat.com>
9489 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9490 frame. Problem found by Corinna Vinschen.
9492 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9494 * doublest.c (floatformat_from_length): Accept also
9495 the real size of 'long double' type.
9497 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9499 From Klee Dienes <kdienes@apple.com>:
9500 * breakpoint.c (bpstat_copy): Copy the command lines as well
9501 as the old value, to match what is freed in bpstat_clear.
9503 2003-03-10 David Carlton <carlton@math.stanford.edu>
9505 * minsyms.c (add_minsym_to_hash_table): Replace
9506 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9507 (compare_minimal_symbols, compact_minimal_symbols)
9508 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9509 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9510 of DEPRECATED_SYMBOL_MATCHES_NAME.
9511 (lookup_minimal_symbol_solib_trampoline): Ditto.
9513 2003-03-10 Andrew Cagney <cagney@redhat.com>
9515 * regcache.h (regcache_cooked_read_ftype): Define.
9516 (regcache_save, regcache_restore): Add a cooked_read parameter.
9517 * regcache.c (regcache_save, regcache_restore): Update.
9518 (do_cooked_read): New function.
9519 (regcache_cpy): Pass do_cooked_read to regcache_save and
9522 2003-03-10 Andrew Cagney <cagney@redhat.com>
9524 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9525 * gdbarch.h, gdbarch.c: Re-generate.
9526 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9527 * x86-64-tdep.h: Update.
9528 * x86-64-tdep.c (x86_64_init_abi): Update.
9529 * v850-tdep.c (v850_gdbarch_init): Update.
9530 * sparc-tdep.c (sparc_gdbarch_init): Update.
9531 * sh-tdep.c (sh_gdbarch_init): Update.
9532 * s390-tdep.c (s390_gdbarch_init): Update.
9533 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9534 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9535 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9536 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9537 * mips-tdep.c (mips_gdbarch_init): Update.
9538 * mcore-tdep.c (mcore_gdbarch_init): Update.
9539 * m68k-tdep.c (m68k_gdbarch_init): Update.
9540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9541 * ia64-tdep.c (ia64_gdbarch_init): Update.
9542 * i386-tdep.c (i386_gdbarch_init): Update.
9543 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9544 * hppa-tdep.c (hppa_gdbarch_init): Update.
9545 * h8300-tdep.c (h8300_gdbarch_init): Update.
9546 * frv-tdep.c (frv_gdbarch_init): Update.
9547 * cris-tdep.c (cris_gdbarch_init): Update.
9548 * avr-tdep.c (avr_gdbarch_init): Update.
9549 * arm-tdep.c (arm_gdbarch_init): Update.
9550 * alpha-tdep.c (alpha_gdbarch_init): Update.
9551 * sh-tdep.c (sh_init_extra_frame_info): Update.
9552 (sh64_init_extra_frame_info): Update.
9553 * ns32knbsd-nat.c (frame_num_args): Update.
9554 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9555 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9556 (xstormy16_frame_chain_valid): Update.
9557 * vax-tdep.c (vax_saved_pc_after_call): Update.
9558 * v850-tdep.c (v850_frame_chain): Update.
9559 (v850_pop_frame): Update.
9560 (v850_init_extra_frame_info): Update.
9561 * sparc-tdep.c (setup_arbitrary_frame): Update.
9562 * ns32k-tdep.c (umax_frame_num_args): Update.
9563 * s390-tdep.c (s390_pop_frame_regular): Update.
9564 * mn10300-tdep.c (mn10300_frame_chain): Update.
9565 (mn10300_pop_frame_regular): Update.
9566 (mn10300_init_extra_frame_info): Update.
9567 * mips-tdep.c (mips_init_frame_pc_first): Update.
9568 (mips_frame_chain): Update.
9569 (mips_pop_frame): Update.
9570 * mcore-tdep.c (mcore_frame_chain): Update.
9571 (mcore_pop_frame): Update.
9572 (mcore_init_extra_frame_info): Update.
9573 * arch-utils.c (init_frame_pc_default): Update.
9574 * m68k-tdep.c (isi_frame_num_args): Update.
9575 (delta68_frame_num_args): Update.
9576 (news_frame_num_args): Update.
9577 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9578 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9579 (alpha_frame_chain): Update.
9580 (alpha_pop_frame): Update.
9581 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9582 (hppa_init_extra_frame_info): Update.
9583 (hppa_frame_chain): Update.
9584 (hppa_frame_chain_valid): Update.
9585 * cris-tdep.c (cris_init_extra_frame_info): Update.
9586 * avr-tdep.c (avr_init_extra_frame_info): Update.
9587 * arm-tdep.c (arm_frame_chain_valid): Update.
9588 (arm_init_extra_frame_info): Update.
9589 (arm_pop_frame): Update.
9590 * frame.c (frame_pc_unwind): Update.
9591 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9592 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9593 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9594 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9595 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9596 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9598 2003-03-10 Andrew Cagney <cagney@redhat.com>
9600 * gdbarch.sh (gdbarch_unwind_pc): New method.
9601 * gdbarch.h, gdbarch.c: Regenerate.
9602 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9603 but use read_pc and FRAME_SAVED_PC as fall backs.
9604 (frame_saved_regs_pc_unwind): Delete function.
9605 (trad_frame_unwinder): Update.
9606 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9607 (struct frame_unwind): Update.
9608 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9609 (dummy_frame_unwind): Update.
9610 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9611 (sentinel_frame_unwinder): Update.
9612 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9613 (d10v_frame_unwind): Update.
9614 (d10v_unwind_pc): New function.
9615 (d10v_gdbarch_init): Set unwind_pc.
9617 2003-03-10 Andrew Cagney <cagney@redhat.com>
9619 * gdbarch.h: Re-generate.
9621 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9623 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9626 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9628 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9630 2003-03-08 Andrew Cagney <cagney@redhat.com>
9632 * cli-out.c: Update copyright.
9633 (cli_out_data): Define typedef. Use instead of ui_out_data.
9635 2003-03-08 Andrew Cagney <cagney@redhat.com>
9637 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9640 2003-03-07 Andrew Cagney <cagney@redhat.com>
9642 * gdbarch.sh: Don't generate two macro definitions when an
9643 undefined macro taking no arguments.
9644 * gdbarch.h: Regenerate.
9646 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9648 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9649 (x86_64_unwind_dummy_id): New functions.
9650 (x86_64_init_abi): Register these two new functions.
9652 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9654 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9655 (x86_64_skip_prologue): Move prologue detection to
9657 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9659 2003-03-05 Andrew Cagney <cagney@redhat.com>
9661 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9662 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9663 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9664 to use unwind_dummy_id when a dummy frame.
9665 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9667 * gdbarch.h, gdbarch.c: Regneerate.
9669 2003-03-05 Andrew Cagney <cagney@redhat.com>
9671 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9672 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9673 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9676 2003-03-05 Andrew Cagney <cagney@redhat.com>
9678 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9679 (struct d10v_unwind_cache): Delete field "frameless". Replace
9680 "next_addr" with "sp_offset". Add "r11_offset".
9681 (d10v_frame_unwind_cache): Update.
9682 (prologue_find_regs): Update. When "mv r11, sp", save the
9683 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9684 RN was saved in r11_offset.
9686 2003-03-05 Andrew Cagney <cagney@redhat.com>
9688 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9689 cached PC value in the next frame.
9691 2003-03-05 Andrew Cagney <cagney@redhat.com>
9693 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9694 "id_unwind_cache" with "id".
9695 (frame_id_unwind): Delete declaration.
9696 * frame.c (frame_id_unwind): Delete function.
9697 (get_prev_frame): Call the frame id unwind method directly. Store
9698 the returned next frame's ID value in NEXT_FRAME. Note that there
9699 is a problem with the wrong unwind ID being called with the wrong
9702 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9704 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9706 2003-03-05 James Ingham <jingham@apple.com>
9707 Daniel Jacobowitz <drow@mvista.com>
9709 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9710 (auto_cp_abi): New variable.
9711 (current_cp_abi, num_cp_abis): Make static.
9712 (CP_ABI_MAX): Define.
9713 (cp_abis): Turn into an array.
9714 (value_virtual_fn_field): Fix formatting.
9715 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9717 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9718 (list_cp_abis, _initialize_cp_abi): New functions.
9719 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9720 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9721 switch_to_cp_abi. Update prototype for register_cp_abi.
9722 * Makefile.in (cp-abi.o): Update dependencies.
9723 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9724 instead of switch_to_cp_abi.
9725 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9727 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9729 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9731 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9733 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9734 * dwarf2loc.c: Include "regcache.h".
9735 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9737 * Makefile.in (dwarf2loc.o): Update dependencies.
9739 2003-03-04 Theodore A. Roth <troth@openavr.org>
9741 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9742 number of io registers reported by remote target is not a multiple of
9745 2003-03-04 David Carlton <carlton@math.stanford.edu>
9747 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9748 (lookup_symbol_aux_psymtabs): Update call to
9749 lookup_partial_symbol.
9750 (lookup_transparent_type, find_main_psymtab)
9751 (make_symbol_overload_list): Ditto.
9753 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9755 * MAINTAINERS (Write after approval): Update my email address.
9757 2003-03-03 Andrew Cagney <cagney@redhat.com>
9759 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9760 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9761 predicate. Replace MAX_REGISTER_RAW_SIZE.
9762 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9763 MAX_REGISTER_VIRTUAL_SIZE.
9764 * regcache.c (legacy_max_register_raw_size): New function.
9765 (legacy_max_register_virtual_size): New function.
9766 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9767 (MAX_REGISTER_RAW_SIZE): Define.
9768 (legacy_max_register_raw_size): Declare.
9769 (legacy_max_register_virtual_size): Declare.
9770 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9771 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9772 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9773 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9774 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9775 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9776 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9777 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9778 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9779 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9780 * vax-tdep.c (vax_gdbarch_init): Update.
9781 * v850-tdep.c (v850_gdbarch_init): Update.
9782 * sparc-tdep.c (sparc_gdbarch_init): Update.
9783 * sh-tdep.c (sh_gdbarch_init): Update.
9784 * s390-tdep.c (s390_gdbarch_init): Update.
9785 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9786 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9787 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9788 * mips-tdep.c (mips_gdbarch_init): Update.
9789 * mcore-tdep.c (mcore_gdbarch_init): Update.
9790 * m68k-tdep.c (m68k_gdbarch_init): Update.
9791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9792 * ia64-tdep.c (ia64_gdbarch_init): Update.
9793 * i386-tdep.c (i386_gdbarch_init): Update.
9794 * hppa-tdep.c (hppa_gdbarch_init): Update.
9795 * h8300-tdep.c (h8300_gdbarch_init): Update.
9796 * frv-tdep.c (frv_gdbarch_init): Update.
9797 * cris-tdep.c (cris_gdbarch_init): Update.
9798 * avr-tdep.c (avr_gdbarch_init): Update.
9799 * arm-tdep.c (arm_gdbarch_init): Update.
9800 * alpha-tdep.c (alpha_gdbarch_init): Update.
9801 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9802 max_register_raw_size or max_register_virtual_size.
9804 2003-03-03 David Carlton <carlton@math.stanford.edu>
9806 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9807 SYMBOL_MATCHES_NAME, add comment.
9808 (SYMBOL_MATCHES_NATURAL_NAME): New.
9809 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9810 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9811 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9812 * symtab.c (lookup_partial_symbol): Use
9813 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9815 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9816 SYMBOL_MATCHES_NAME.
9819 2003-03-03 David Carlton <carlton@math.stanford.edu>
9821 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9822 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9823 by regexp matching against SYMBOL_NATURAL_NAME.
9825 2003-03-03 David Carlton <carlton@math.stanford.edu>
9827 * linespec.c (find_method): Extract code into collect_methods.
9828 (collect_methods): New.
9830 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9832 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9835 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9836 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9838 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9840 * arch-utils.c (generic_register_byte): Fix to use the loop index
9841 and not regnum when summing the size of all registers up to regnum.
9843 2003-03-01 Andrew Cagney <cagney@redhat.com>
9845 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9846 FRAME_INIT_SAVED_REGS.
9847 * gdbarch.h, gdbarch.c: Regenerate.
9848 * stack.c (frame_info): Update.
9849 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9850 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9851 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9852 * ns32k-tdep.c (ns32k_pop_frame): Update.
9853 * mips-tdep.c (mips_pop_frame): Update.
9854 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9855 * ia64-tdep.c (ia64_frame_chain): Update.
9856 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9857 (ia64_frameless_function_invocation): Update.
9858 (ia64_init_extra_frame_info): Update.
9859 (ia64_pop_frame_regular): Update.
9860 * frame.h (struct frame_info): Update comment.
9861 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9862 * frame.c (frame_saved_regs_register_unwind): Update.
9863 (frame_saved_regs_register_unwind): Update.
9864 (deprecated_generic_get_saved_register): Update.
9865 * cris-tdep.c: Update comment.
9866 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9869 * x86-64-tdep.c (x86_64_init_abi): Update.
9870 * vax-tdep.c (vax_gdbarch_init): Update.
9871 * v850-tdep.c (v850_gdbarch_init): Update.
9872 * sparc-tdep.c (sparc_gdbarch_init): Update.
9873 * sh-tdep.c (sh_gdbarch_init): Update.
9874 * s390-tdep.c (s390_gdbarch_init): Update.
9875 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9876 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9877 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9878 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9879 * mips-tdep.c (mips_gdbarch_init): Update.
9880 * mcore-tdep.c (mcore_gdbarch_init): Update.
9881 * m68k-tdep.c (m68k_gdbarch_init): Update.
9882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9883 * ia64-tdep.c (ia64_gdbarch_init): Update.
9884 * i386-tdep.c (i386_gdbarch_init): Update.
9885 * frv-tdep.c (frv_gdbarch_init): Update.
9886 * avr-tdep.c (avr_gdbarch_init): Update.
9887 * arm-tdep.c (arm_gdbarch_init): Update.
9888 * alpha-tdep.c (alpha_gdbarch_init): Update.
9890 2003-03-01 Andrew Cagney <cagney@redhat.com>
9892 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9893 option enum and switch. When no windows, set the interpreter to
9896 2003-03-01 Andrew Cagney <cagney@redhat.com>
9898 * main.c (captured_main): Replace magic option characters with an
9901 2003-03-01 Andrew Cagney <cagney@redhat.com>
9903 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9904 INIT_EXTRA_FRAME_INFO.
9905 * gdbarch.h, gdbarch.c: Regenerate.
9906 * arm-tdep.c: Update comments.
9907 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9908 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9909 * frame.h, avr-tdep.c: Ditto.
9910 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9911 (create_new_frame, legacy_get_prev_frame): Ditto.
9912 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9913 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9915 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9916 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9917 * v850-tdep.c (v850_gdbarch_init): Ditto.
9918 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9919 * sh-tdep.c (sh_gdbarch_init): Ditto.
9920 * s390-tdep.c (s390_gdbarch_init): Ditto.
9921 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9922 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9923 * mips-tdep.c (mips_gdbarch_init): Ditto.
9924 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9926 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9927 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9928 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9929 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9930 * frv-tdep.c (frv_gdbarch_init): Ditto.
9931 * cris-tdep.c (cris_gdbarch_init): Ditto.
9932 * avr-tdep.c (avr_gdbarch_init): Ditto.
9933 * arm-tdep.c (arm_gdbarch_init): Ditto.
9934 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9935 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9937 2003-03-01 Andrew Cagney <cagney@redhat.com>
9939 * gdbarch.sh (register_type): New function with predicate.
9940 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9941 * gdbarch.h, gdbarch.c: Re-generate.
9942 * arch-utils.c (generic_register_byte): Use generic_register_size.
9943 (generic_register_size): When available, use
9944 gdbarch_register_type.
9945 * regcache.c (init_regcache_descr): When available, initialize the
9946 register type array using gdbarch_register_type. If the
9947 architecture supplies gdbarch_register_type, do not use the legacy
9949 * d10v-tdep.c (d10v_register_type): Replace
9950 d10v_register_virtual_type.
9951 (d10v_gdbarch_init): Set register_type instead of
9952 register_virtual_type.
9954 2003-03-01 Andrew Cagney <cagney@redhat.com>
9956 * Makefile.in (ax-gdb.o): Update dependencies.
9957 * ax-gdb.c: Include "regcache.h".
9958 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9959 * findvar.c (value_of_register): Ditto.
9960 * infcmd.c (default_print_registers_info): Ditto.
9962 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9964 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9965 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9967 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9969 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9972 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9974 * Makefile.in (dwarf2loc.o): Update dependencies.
9975 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9976 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9977 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9978 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9979 (locexpr_tracepoint_var_ref): New function.
9980 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9982 2003-02-28 Andrew Cagney <cagney@redhat.com>
9984 * regcache.c (register_size): New function.
9985 * regcache.h (register_size): Declare
9986 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9987 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9989 2003-02-28 David Carlton <carlton@math.stanford.edu>
9991 * linespec.c (decode_compound): Extract code into find_method.
9994 2003-02-28 J. Brobecker <brobecker@gnat.com>
9996 * Makefile.in: Add rules to build and link in observer.o.
9998 2003-02-27 J. Brobecker <brobecker@gnat.com>
10000 * observer.c: Minor comments edits.
10002 2003-02-27 J. Brobecker <brobecker@gnat.com>
10004 * observer.h, observer.c: New file.
10006 2003-02-27 Andrew Cagney <cagney@redhat.com>
10008 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10010 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10012 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10013 (M6812_OP_STS_EXT): Likewise.
10014 (m6811_prologue): Use the above to recognize prologue.
10015 (m6812_prologue): Likewise.
10017 2003-02-27 David Carlton <carlton@math.stanford.edu>
10019 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10021 (compare_psymbols): Ditto.
10022 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10024 2003-02-27 Michael Snyder <msnyder@redhat.com>
10026 * f-lang.c (build_fortran_types): New function.
10027 (_initialize_f_language): Gdbarch-register built-in fortran types.
10028 * doublest.c (extract_floating): Fix warning text.
10030 2003-02-27 Andrew Cagney <cagney@redhat.com>
10032 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10033 predicate. Replaces PUSH_DUMMY_FRAME.
10034 * gdbarch.h, gdbarch.c: Regnerate.
10035 * valops.c (hand_function_call): Update. Call
10036 generic_push_dummy_frame directly.
10037 * vax-tdep.c (vax_gdbarch_init): Update.
10038 * sparc-tdep.c (sparc_gdbarch_init): Update.
10039 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10040 * m68k-tdep.c (m68k_gdbarch_init): Update.
10041 * hppa-tdep.c (hppa_gdbarch_init): Update.
10042 * alpha-tdep.c (alpha_gdbarch_init): Update.
10043 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10044 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10045 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10047 push_dummy_frame to generic_push_dummy_frame.
10048 * v850-tdep.c (v850_gdbarch_init): Ditto.
10049 * sh-tdep.c (sh_gdbarch_init): Ditto.
10050 * s390-tdep.c (s390_gdbarch_init): Ditto.
10051 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10052 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10053 * mips-tdep.c (mips_gdbarch_init): Ditto.
10054 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10056 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10057 * i386-tdep.c (i386_gdbarch_init): Ditto.
10058 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10059 * frv-tdep.c (frv_gdbarch_init): Ditto.
10060 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10061 * cris-tdep.c (cris_gdbarch_init): Ditto.
10062 * avr-tdep.c (avr_gdbarch_init): Ditto.
10063 * arm-tdep.c (arm_gdbarch_init): Ditto.
10065 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10067 * mips-tdep.c (show_mips_abi): New function.
10068 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10069 command ``show mips abi''.
10071 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10073 From Elena Zannoni <ezannoni@redhat.com>
10074 * dbxread.c (process_one_symbol): Only record line 0 if one or
10075 more sline entries have been seen for the function.
10077 2003-02-26 Michael Chastain <mec@shout.net>
10079 * configure: Regenerate with autoconf 000227.
10081 2003-02-26 Michael Chastain <mec@shout.net>
10083 Close PR build/660.
10084 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10085 for old libc5/glibc.
10086 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10088 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10090 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10091 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10093 2003-02-26 Michael Chastain <mec@shout.net>
10095 * configure.in: New variable HAVE_UINTPTR_T.
10096 * configure, config.in: Regenerated.
10098 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10101 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10103 2003-02-25 Andrew Cagney <cagney@redhat.com>
10105 * frame.c (get_prev_frame): Add comment on check for
10106 inside_entry_func. Only check for inside_entry_file when not a
10107 dummy and not a sentinel. Check that the new frame is not inner
10110 2003-02-25 Andrew Cagney <cagney@redhat.com>
10112 * frame.c (frame_debug): New variable.
10113 (_initialize_frame): Add "set/show debug frame" command.
10114 (get_prev_frame): When frame_debug, print reason why unwind
10117 2003-02-25 Michael Chastain <mec@shout.net>
10119 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10120 to avoid uintptr_t definition problems.
10122 2003-02-25 David Carlton <carlton@math.stanford.edu>
10124 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10125 (SYMBOL_LINKAGE_NAME): Ditto.
10126 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10127 SYMBOL_LINKAGE_NAME.
10128 (struct general_symbol_info): Expand comment.
10129 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10130 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10131 (SYMBOL_MATCHES_REGEXP): Ditto.
10132 * symtab.c (symbol_natural_name): New function.
10133 * objfiles.h: Replace all uses of SYMBOL_NAME by
10134 DEPRECATED_SYMBOL_NAME.
10135 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10136 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10137 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10138 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10139 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10140 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10141 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10142 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10143 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10144 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10145 * ada-exp.y: Ditto.
10146 * ada-exp.y: Update copyright.
10147 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10148 * cp-valprint.c: Ditto.
10150 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10152 * infptrace.c (detach): Do not flag error if ptrace detach fails
10153 and errno is set to ESRCH.
10155 2003-02-24 Andrew Cagney <cagney@redhat.com>
10157 * infptrace.c (udot_info): Change type of udot_off to long. Use
10158 paddr when printing udot_off's value.
10160 2003-02-24 David Carlton <carlton@math.stanford.edu>
10162 * symtab.c (make_symbol_overload_list): Only read in partial
10163 symtabs containing a matching partial symbol.
10165 2003-02-24 David Carlton <carlton@math.stanford.edu>
10167 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10168 do the comparison, not strcmp.
10169 * symfile.c (compare_psymbols): Ditto.
10170 * defs.h: Declare strcmp_iw_ordered.
10171 * utils.c (strcmp_iw_ordered): New function.
10173 2003-02-24 Jim Blandy <jimb@redhat.com>
10175 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10176 support, shared libs): Remove my name from here, to better reflect
10179 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10181 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10182 (target_ops): Add to_have_continuable_watchpoint.
10183 * target.c (update_current_target): Add INHERIT line for
10184 to_have_continuable_watchpoint.
10185 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10186 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10187 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10188 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10190 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10192 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10195 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10197 * solib.c (solib_open): Call target defined search function after
10198 failing with solib-search-path.
10199 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10200 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10202 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10204 * MAINTAINERS: Add myself to Write After section.
10206 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10208 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10210 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10212 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10213 (m68hc11_add_reggroups): New function.
10214 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10215 (m68hc11_gdbarch_init): Install the reggroups.
10216 (_initialize_m68hc11_tdep): Initialize them.
10218 2003-02-21 James E Wilson <wilson@tuliptree.org>
10220 * MAINTAINERS: Update my email address.
10222 2003-02-21 David Carlton <carlton@math.stanford.edu>
10224 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10226 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10228 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10229 * symtab.h: Add opaque declarations of struct axs_value and
10231 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10232 (struct location_funcs): New type.
10233 (struct symbol): Add "loc" to aux_value.
10234 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10235 * dwarf2read.c: Include "dwarf2expr.h".
10236 (dwarf2_symbol_mark_computed): New function.
10237 (read_func_scope): Use it.
10238 (var_decode_location): New function.
10239 (new_symbol): Use it.
10240 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10242 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10243 (dwarf2expr_h, dwarf2loc_h): New variables.
10244 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10245 (dwarf2expr.o, dwarf2loc.o): New rules.
10246 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10247 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10249 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10250 * m2-exp.y (yylex): Likewise.
10251 * printcmd.c (address_info, print_frame_args): Likewise.
10252 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10253 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10254 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10255 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10256 * symtab.c (lookup_block_symbol): Likewise.
10258 2003-02-20 Adam Fedor <fedor@gnu.org>
10260 * symtab.h: Remove objc_specific struct
10261 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10262 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10263 Have language_objc use cplus_specific struct.
10265 2003-02-20 Tom Tromey <tromey@redhat.com>
10267 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10268 TYPE_NAME, when printing a String value. PR java/1075.
10270 2003-02-20 Adam Fedor <fedor@gnu.org>
10272 * objc-lang.h (find_methods): Remove declaration.
10273 * objc-lang.c (find_methods): Make static.
10275 2003-02-20 Christopher Faylor <cgf@redhat.com>
10277 * win32-nat.c (get_image_name): Check return value from
10279 (child_xfer_memory): Ditto.
10281 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10283 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10284 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10285 '${exec_prefix}' (in addition to the expansion thereof) as
10287 * configure: Rebuilt.
10289 2003-02-20 David Carlton <carlton@math.stanford.edu>
10291 * symtab.c (search_symbols): Revert the search_symbols part of my
10292 2002-12-23 patch. Add comment.
10294 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10296 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10297 * dbxread.c (elfstab_build_psymtabs): Don't call
10298 install_minimal_symbols.
10299 (stabsect_build_psymtabs): Likewise.
10300 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10302 * somread.c (som_symfile_read): Call install_minimal_symbols
10303 and do_cleanups earlier.
10304 * nlmread.c (nlm_symfile_read): Likewise.
10305 * mdebugread.c (elfmdebug_build_psymtabs): Call
10306 install_minimal_symbols and make appropriate cleanups.
10308 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10310 * solib.c (reload_shared_libraries): New function.
10311 (_initialize_solib): Add callbacks for ``set solib-search-path''
10312 and ``set solib-absolute-prefix''.
10314 2003-02-20 David Carlton <carlton@math.stanford.edu>
10316 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10318 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10319 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10320 * ada-typeprint.c (ada_typedef_print): Ditto.
10321 * ax-gdb.c (gen_var_ref): Ditto.
10322 * breakpoint.c (print_one_breakpoint): Ditto.
10323 * buildsym.c (finish_block): Ditto.
10324 * c-valprint.c (c_val_print): Ditto.
10325 * expprint.c (print_subexp): Ditto.
10326 * findvar.c (locate_var_value): Ditto.
10327 * infcmd.c (jump_command): Ditto.
10328 * linespec.c (decode_line_2, decode_compound): Ditto.
10329 * maint.c (maintenance_translate_address): Ditto.
10330 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10331 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10333 * p-valprint.c (pascal_val_print): Ditto.
10334 * stabsread.c (define_symbol): Ditto.
10335 * stack.c (print_frame, frame_info, print_block_frame_locals)
10336 (print_frame_arg_vars, return_command): Ditto.
10337 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10338 * symmisc.c (print_symbol): Ditto.
10339 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10340 (compare_search_syms, print_symbol_info, print_msymbol_info)
10341 (rbreak_command): Ditto.
10342 * tracepoint.c (tracepoints_info): Ditto.
10343 * typeprint.c (typedef_print): Ditto.
10344 * valops.c (value_of_variable, hand_function_call): Ditto.
10345 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10346 * ada-typeprint.c: Update Copyright.
10347 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10348 * tracepoint.c, cli/cli-cmds.c: Ditto.
10350 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10352 * frame.c (generic_unwind_get_saved_register): Make non-static.
10353 * frame.h (generic_unwind_get_saved_register): Declare.
10354 * mips-tdep.c (read_next_frame_reg): Fetch register from
10355 current regcache when frame is NULL.
10356 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10358 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10359 instead of frame_register_unwind().
10361 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10363 * remote-sim.c (gdbsim_insert_breakpoint)
10364 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10367 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10369 * remote.c (_initialize_remote): Add commands "set/show remote
10370 hardware-watchpoint-limit" and "set/show remote
10371 hardware-breakpoint-limit".
10372 (remote_hw_watchpoint_limit): Initialize to -1.
10373 (remote_hw_breakpoint_limit): Ditto.
10374 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10376 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10378 * coff-pe-read.c: New file - support reading of minimal symbols from a
10379 portable executable using the export table.
10380 * coff-pe-read.h: New file.
10381 * coffread.c: Include coff-pe-read.h.
10382 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10383 debugging symbols found.
10384 * Makefile.in (SFILES): Add coff-pe-read.o.
10385 (coff_pe_read_h): Define.
10386 (COMMON_OBS): Add coff-pe-read.o.
10387 (coffread.o): Add coff_pe_read_h dependency.
10388 (coff-pe-read.o): New target.
10390 2003-02-19 David Carlton <carlton@math.stanford.edu>
10392 * Makefile.in (SFILES): Add block.c.
10394 (COMMON_OBS): Add block.o.
10396 (x86-64-tdep.o): Add $(block_h).
10397 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10398 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10399 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10400 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10401 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10402 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10403 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10404 * value.h: Add opaque declaration for struct block.
10405 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10406 * ada-lang.h: Ditto.
10407 * x86-64-tdep.c: #include "block.h"
10408 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10409 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10410 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10411 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10412 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10413 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10414 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10415 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10416 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10417 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10418 * symtab.c (block_function): Ditto.
10419 (contained_in): Ditto.
10420 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10421 block.h. Add opaque declaration for struct block.
10422 * symtab.h: Move block_function and contained_in declarations to
10423 block.h. Add opaque declarations for struct block, struct
10425 (struct block): Move to block.h.
10426 (struct blockvector): Ditto.
10427 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10428 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10429 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10430 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10431 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10433 * block.c: New file.
10434 * block.h: New file.
10436 2003-02-19 Theodore A. Roth <troth@openavr.org>
10438 * avr-tdep.c (avr_extract_return_value): Remove function.
10439 (avr_store_return_value): Remove function.
10440 (avr_extract_struct_value_address): Remove function.
10441 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10443 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10445 * rs6000-tdep.c: Include "gdb_assert.h".
10446 (registers_e500): Add "acc" and "spefscr".
10447 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10448 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10449 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10451 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10453 2003-02-18 Keith Seitz <keiths@redhat.com>
10455 * Makefile.in: Add gdbtk-interps.c.
10457 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10459 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10460 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10462 2003-02-18 Andrew Cagney <cagney@redhat.com>
10464 * symtab.h (struct objfile): Add opaque declaration.
10466 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10468 From Jim Ingham <jingham@apple.com>:
10469 * dbxread.c (process_one_symbol): Use last_function_start rather
10470 than function_start_offset to find the real beginning of the
10471 current function. The latter is just the text section offset on
10472 some systems, the former is always the real function start.
10474 2003-02-17 Andrew Cagney <cagney@redhat.com>
10476 * configure.in: Revert ${target} != ${host}.
10478 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10480 * configure.in (Makefile): Use the test ${target} != ${host},
10481 instead of the absence of the "nm.h" file, to determine of the
10482 configuration non-native.
10483 * configure: Regenerate.
10485 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10487 From Brian Ford <ford@vss.fsi.com>
10489 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10490 conditionalize tui_active test.
10491 (lookup_cmd_1): Ditto.
10493 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10495 * configure.in: Add check for _etext.
10496 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10498 * config.in, configure: regenerated.
10500 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10502 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10504 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10506 * main.c (tui_version): Delete variable.
10507 (captured_main): When --tui, set interpreter_p to "tui" instead of
10508 enabling tui_version.
10509 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10511 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10512 * cli/cli-cmds.c (disassemble_command): Ditto.
10513 * defs.h (tui_version): Delete declaration.
10514 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10515 (tui-interp.o): Add rules.
10516 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10518 2003-02-14 Christopher Faylor <cgf@redhat.com>
10520 * win32-nat.c (register_loaded_dll): Correctly set address range for
10523 2003-02-12 Jason Molenda (jmolenda@apple.com)
10525 * symmisc.c (print_objfile_statistics): Include information about
10526 the number of psymtabs and symtabs in each object file.
10528 2003-02-13 Keith R Seitz <keiths@redhat.com>
10530 * main.h (struct captured_main_args): Add interpreter_p.
10531 * main.c (captured_main): Initialize interpreter_p from context.
10532 * gdb.c (main): Set interpreter_p argument.
10533 * Makefile.in (gdb.o): Add dependency for interps.h.
10535 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10537 * event-top.c (cli_command_loop): Delete declaration.
10538 (_initialize_event_loop): Delete function setting event_loop_hook.
10539 * event-top.h (cli_command_loop): Declare. Update copyright.
10540 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10541 * interps.c (current_interp_command_loop): When event_loop_p, call
10544 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10546 * interps.h (interp_command_loop_ftype): Change return type to
10549 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10551 * x86-64-tdep.c (x86_64_extract_return_value)
10552 (x86_64_store_return_value): Use regcache instead of regbuf.
10553 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10554 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10556 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10558 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10559 * aclocal.m4: Regenerate.
10560 * configure: Regenerate.
10562 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10563 TCL_LD_SEARCH_FLAGS.
10565 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10567 * dwarf2cfi.c: Reindented.
10569 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10571 * interps.c (clear_interpreter_hooks): Convert function definition
10574 2003-02-07 David Carlton <carlton@math.stanford.edu>
10576 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10578 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10580 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10581 (struct type): ...to here.
10582 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10584 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10585 (replace_type): Set length on all type variants for a given type.
10587 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10589 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10591 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10593 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10595 * Makefile.in (symm-nat.o): Update dependencies.
10596 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10597 (lynx-nat.o, ia64-linux-nat.): Ditto.
10598 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10599 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10600 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10602 * Makefile.in (inflow_h): Define.
10603 (procfs.o, inflow.o, procfs.o): Update dependencies.
10604 * inftarg.c (child_stop): Delete extern declaration of
10605 inferior_process_group. Include "inflow.h".
10606 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10607 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10608 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10609 (our_process_group, inferior_process_group): Extern declarations.
10611 * procfs.c: Include "gdb_assert.h".
10613 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10614 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10615 * jv-typeprint.c (java_type_print_base): Ditto.
10616 * typeprint.c (typedef_print): Eliminate STREQ.
10617 * cli/cli-script.c (define_command, define_command): Ditto.
10618 * main.c (captured_main): Ditto.
10619 * values.c (lookup_internalvar): Ditto.
10620 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10621 within `if' conditional.
10622 * linespec.c (decode_line_2): Ditto.
10623 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10624 (bfd_openw_with_cleanup): Ditto.
10626 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10628 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10629 legacy_extract_return_value and store_return_value to
10630 legacy_return_value.
10632 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10634 * win32-nat.c (get_relocated_section_addrs): New function. Find
10635 section load addresses for symbol handling in relocated DLLs.
10636 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10638 2003-02-05 Fred Fish <fnf@intrinsity.com>
10640 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10642 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10644 (angel_RDI_info): Ditto.
10645 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10647 (threads_continue_all_with_signals): Ditto.
10649 2003-02-05 Jim Ingham <jingham@apple.com>
10650 Keith Seitz <keiths@redhat.com>
10651 Elena Zannoni <ezannoni@redhat.com>
10652 Andrew Cagney <ac131313@redhat.com>
10654 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10655 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10656 (SUBDIR_MI_OBS): Add "mi-interp.o".
10657 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10658 (SFILES): Add "interps.c".
10659 (COMMON_OBS): Add "interps.o".
10660 (interps_h, mi_main_h): Define.
10661 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10662 (mi-main.o, main.o, event-top.o): Update dependencies.
10663 * cli/cli-interp.c: New file.
10664 * interps.h, interps.c: New files.
10665 * top.c: (gdb_init): Don't install the default interpreter, handed
10667 * main.c: Include "interps.h".
10668 (interpreter_p): Note that it should malloc'ed.
10669 (captured_command_loop): Call current_interp_command_loop.
10670 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10671 xfree and xstrdup when updating interpreter_p. Install the
10672 default interpreter. Add hack to stop mi1's copyright notice
10674 * event-top.h (gdb_setup_readline): Declare.
10675 (gdb_disable_readline): Declare.
10676 * event-top.c: Include "interps.h".
10677 (display_gdb_prompt): Call current_interp_display_prompt_p.
10678 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10679 gdb_stdlog, and gdb_stdtarg.
10680 (_initialize_event_loop): Don't call gdb_setup_readline.
10681 * cli-out.c (cli_out_set_stream): New function.
10682 * cli-out.h (cli_out_set_stream): Declare.
10684 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10686 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10687 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10688 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10689 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10690 config/i386/i386v42mp.mt: Removed.
10692 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10694 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10697 2003-02-05 Michael Chastain <mec@shout.net>
10699 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10700 2.12.1 and earlier versions.
10702 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10704 Remove orphaned hosts, targets and files.
10705 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10706 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10707 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10708 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10709 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10710 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10711 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10712 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10713 * config/sparc/tm-sp64sim.h: Delete.
10714 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10716 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10717 mips*-dec-mach3* targets.
10719 2003-02-04 Michael Chastain <mec@shout.net>
10721 * NEWS: Fix typo: sepcifying -> specifying.
10723 2003-02-04 Michael Chastain <mec@shout.net>
10725 * dwarfread.c: Add documentation on the state of dwarf-1,
10726 looking towards obsoletion.
10728 2003-02-03 Michael Chastain <mec@shout.net>
10730 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10731 gdb/testsuite/gdb.c++/pr-1023.exp.
10733 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10735 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10736 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10738 * utils.c (init_page_info): Delete reference to MPW in comments.
10739 * main.c (captured_main): Delete #ifdef MPW.
10741 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10743 * NEWS: Note that the m32r-*-elf* is obsolete.
10744 * monitor.c (monitor_expect): Obsolete reference to m32r.
10745 * configure.tgt: Mark m32r-*-elf* as obsolete.
10746 * MAINTAINERS: Mark m32k as obsolete.
10747 * m32r-rom.c: Obsolete file.
10748 * config/m32r/m32r.mt: Obsolete file.
10749 * config/m32r/tm-m32r.h: Obsolete file.
10750 * m32r-stub.c: Obsolete file.
10751 * m32r-tdep.c: Obsolete file.
10753 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10755 * NEWS: Mention that the z8k-zilog-none is obsolete.
10756 * MAINTAINERS: Mark z8k as obsolete.
10757 * configure.tgt: Obsolete the z8k-*-coff* target.
10758 * config/z8k/z8k.mt: Obsolete file.
10759 * config/z8k/tm-z8k.h: Obsolete file.
10760 * z8k-tdep.c: Obsolete file.
10762 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10764 * NEWS: Mention that the mn10200-elf is obsolete.
10765 * configure.tgt: Obsolete mn10200-*-* target.
10766 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10767 mention that the mn10200 is obsolete.
10768 * breakpoint.h: Ditto.
10769 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10770 * config/mn10200/mn10200.mt: Obsolete file.
10771 * config/mn10200/tm-mn10200.h: Obsolete file.
10772 * mn10200-tdep.c: Obsolete file.
10774 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10776 * MAINTAINERS: Mark h8500 as obsolete.
10777 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10778 * findvar.c (value_from_register): Ditto.
10779 * h8500-tdep.c: Mark file as obsolete.
10780 * config/h8500/h8500.mt: Ditto.
10781 * config/h8500/tm-h8500.h: Ditto.
10782 * NEWS: Mention that h8500 is obsolete.
10784 2003-02-04 David Carlton <carlton@math.stanford.edu>
10786 * objfiles.c (allocate_objfile): Always set name. Add comment at
10788 * jv-lang.c (get_dynamics_objfile): Add comment.
10790 2003-02-04 David Carlton <carlton@math.stanford.edu>
10792 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10793 * printcmd.c (build_address_symbolic): Replace uses of
10794 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10795 SYMBOL_NAME, and asm_demangle.
10798 2003-02-04 David Carlton <carlton@math.stanford.edu>
10800 * linespec.c (decode_compound): Extract code into
10802 (lookup_prefix_sym): New function.
10804 2003-02-04 David Carlton <carlton@math.stanford.edu>
10806 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10807 FLOAT_COERCION_BADNESS.
10808 * gdbtypes.c (rank_one_type): Replace all uses of
10809 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10811 2003-02-04 Jim Blandy <jimb@redhat.com>
10813 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10814 section, let dwarf_macinfo_section point to it, not
10817 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10819 Pointed out by Anton Blanchard <anton@samba.org>.
10820 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10821 (ppc_linux_at_sigtramp_return_path): Use it.
10823 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10825 * defs.h (streq): Add prototype.
10826 * utils.c (streq): New function.
10828 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10829 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10830 * mdebugread.c (new_symbol): Likewise.
10831 * stabsread.c (define_symbol): Likewise.
10832 * coffread.c (process_coff_symbol): Likewise.
10833 * dwarfread.c (new_symbol): Likewise.
10835 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10836 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10838 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10839 SYMBOL_INIT_DEMANGLED_NAME.
10840 * objfiles.c: Include "hashtab.h".
10841 (allocate_objfile): Call htab_set_functions_ex for the
10842 demangled_names_hash.
10843 (free_objfile): Call htab_delete for the demangled_names_hash.
10844 * objfiles.h (struct htab): Add declaration.
10845 (struct objfile): Add demangled_names_hash.
10846 * symfile.c: Include "hashtab.h".
10847 (reread_symbols): Call htab_delete for the demangled_names_hash.
10848 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10849 SYMBOL_NAME in the bcache.
10850 * symtab.c: Include "hashtab.h". Update comments.
10851 (create_demangled_names_hash, symbol_set_names): New functions.
10852 (symbol_find_demangled_name): New function, broken out from
10853 symbol_init_demangled_names.
10854 (symbol_init_demangled_names): Use it.
10855 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10856 (SYMBOL_SET_NAMES): New macro.
10857 (symbol_set_names): Add prototype.
10859 2003-02-03 Jim Blandy <jimb@redhat.com>
10861 Use a single, consistent representation for an empty minimal
10862 symbol table in an objfile.
10863 * objfiles.c (terminate_minimal_symbol_table): New function.
10864 (allocate_objfile): Call it.
10865 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10866 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10868 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10869 objfile has minimal symbols, compare minimal_symbol_count to zero,
10870 instead of comparing msymbols with NULL.
10871 * objfiles.c (have_minimal_symbols): Same.
10872 * solib-sunos.c (solib_add_common_symbols): Call
10873 terminate_minimal_symbol_table.
10874 * symfile.c (reread_symbols): Same.
10876 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10878 * s390-tdep.c (s390_address_class_type_flags)
10879 (s390_address_class_type_flags_to_name)
10880 (s390_address_class_name_to_type_flags): New functions.
10881 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10882 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10884 2003-02-03 Michael Snyder <msnyder@redhat.com>
10886 * arm-tdep.c: Fix spell-o in comment.
10888 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10890 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10891 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10892 error messages to contain BFD filename.
10894 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10896 Fix PR gdb/742 gdb/743 gdb/877
10897 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10898 (do_mixed_source_and_assembly): Use
10899 make_cleanup_ui_out_tuple_begin_end and
10900 make_cleanup_ui_out_tuple_begin_end.
10901 (do_mixed_source_and_assembly): Ditto.
10902 * thread.c (do_captured_list_thread_ids): Ditto.
10903 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10904 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10905 ui_out_tuple_end): Delete prototypes.
10906 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10907 ui_out_list_end, ui_out_tuple_end): Delete.
10909 From Kevin Buettner <kevinb@redhat.com>:
10910 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10911 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10912 (do_cleanup_table_end): New functions.
10913 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10914 Use cleanups to invoke_ui_out_tuple_end().
10915 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10916 * cli/cli-setshow.c (cmd_show_list): Use
10917 make_cleanup_ui_out_tuple_begin_end.
10919 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10921 * frame.c (frame_unwind_register): New function.
10922 (frame_unwind_unsigned_register): Use.
10923 (frame_unwind_signed_register): Use.
10924 (frame_read_register): New function.
10925 * frame.h (frame_unwind_register): Declare.
10926 (frame_read_register): Declare.
10928 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10929 and frame_unwind_register instead of read_memory, write_register
10930 and deprecated_write_register_bytes.
10932 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10934 * frame.h: Note that namelen can be negative.
10935 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10938 * NEWS: Mention that the d10v's `regs' command is deprecated.
10939 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10940 (d10v_print_registers_info): New function.
10941 (show_regs): Call d10v_print_registers_info.
10942 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10944 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10946 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10947 lost in the previous patch.
10949 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10951 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10952 * stack.c (print_frame_info_base): Output complete FRAME tuple
10953 for synthesized frames.
10955 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10957 * mips-nat.c (zerobuf): Delete.
10958 (fetch_inferior_registers): Alloc local zerobuf.
10959 (fetch_core_registers): Alloc local zerobuf.
10960 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10961 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10962 * thread-db.c (thread_db_store_registers): Ditto.
10963 * sh-tdep.c (sh_do_register): Ditto.
10964 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10965 * remote-sim.c (gdbsim_store_register): Ditto.
10966 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10967 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10968 * monitor.c (monitor_supply_register): Ditto.
10969 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10970 * mips-nat.c (fetch_inferior_registers): Ditto.
10971 * m68klinux-nat.c (fetch_register): Ditto.
10972 * lynx-nat.c (fetch_inferior_registers): Ditto.
10973 (fetch_inferior_registers): Ditto.
10974 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10975 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10976 (hpux_thread_store_registers): Ditto.
10977 * hppah-nat.c (fetch_register): Ditto.
10978 * hppab-nat.c (fetch_register): Ditto.
10979 * hppa-tdep.c (pa_register_look_aside): Ditto.
10980 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10981 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10983 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10985 * gdbarch.sh: Explictly specify all method levels. When a
10986 variable with an empty level, provide a non-multi-arch default.
10987 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10988 * gdbarch.h: Re-generate.
10989 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10990 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10992 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10994 * defs.h (host_pointer_to_address): Delete declaration.
10995 (address_to_host_pointer): Delete declaration.
10996 * utils.c (host_pointer_to_address): Delete function.
10997 (address_to_host_pointer): Delete function.
10998 * procfs.c (procfs_address_to_host_pointer): New function.
10999 * procfs.c (proc_set_watchpoint): Use.
11000 (procfs_can_use_hw_breakpoint): Update comments.
11001 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11002 (som_solib_add): Use.
11003 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11004 * hppa-tdep.c (unwind_command): Use.
11006 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11008 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11011 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11012 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11013 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11014 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11015 (define_symbol): Update.
11016 * symfile.c (generic_load): Remove references to nindy.
11017 * symtab.c: Remove references to nindy.
11019 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11021 * infcmd.c (print_float_info): Delete code conditional on
11023 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11024 * config/m68k/nm-apollo68b.h: Ditto.
11025 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11026 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11027 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11029 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11031 * config/i386/tm-i386os9k.h: Removed.
11033 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11034 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11035 they're identical to i[3456]86-*-sysv* now.
11036 * config/i386/i386v32.mh: Removed.
11037 * config/i386/xm-i386v32.h: Removed.
11038 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11040 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11042 * config/i386/i386dgux.mh: Removed.
11043 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11045 * configure.in: Fix typo.
11046 * configure: Regenerated.
11048 2003-01-31 David Carlton <carlton@math.stanford.edu>
11050 * dwarf2read.c (dwarf2_locate_sections): Set
11051 dwarf_ranges_section.
11053 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11055 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11056 * utils.c: Update comments documenting legitimate uses of PTR.
11058 * utils.c: Re-indent.
11060 * config/djgpp/fnchange.lst: Delete nindy files.
11061 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11062 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11063 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11064 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11065 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11066 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11067 * Makefile.in (init.c): Remove nindy references.
11068 (saber_gdb): Delete rule.
11069 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11070 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11072 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11073 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11074 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11075 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11076 nindy-share/stop.h.
11077 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11078 * saber.suppress: Delete file.
11080 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11082 * dbxread.c (stabs_data): New static variable.
11083 (fill_symbuf): Support an in-memory buffer for stabs data.
11084 (stabs_seek): New function.
11085 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11086 (read_ofile_symtab): Use stabs_seek.
11087 (elfstab_build_psymtabs): Take an asection* instead of
11088 an offset and size. Relocate the stabs data if necessary.
11089 Save the section* for dbx_psymtab_to_symtab.
11090 * dwarf2read.c: Add section variables for each debug section.
11091 (dwarf2_locate_sections): Fill them in.
11092 (dwarf2_read_section): Take an asection* argument.
11093 Relocate the section contents if necessary.
11094 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11095 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11096 it to dwarf2_read_section.
11097 (dwarf2_build_frame_info): Update callers.
11098 * elfread.c (elf_symfile_read): Update call to
11099 elfstab_build_psymtabs.
11100 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11101 (DBX_STAB_SECTION): New macro.
11102 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11103 * symfile.c (symfile_dummy_outputs): New function.
11104 (symfile_relocate_debug_section): New function.
11105 * symfile.h (symfile_relocate_debug_section): Add prototype.
11107 2003-01-31 Richard Henderson <rth@redhat.com>
11109 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11110 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11111 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11112 * alpha-tdep.c (alpha_register_name): Add "unique".
11113 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11114 (ALPHA_UNIQUE_REGNUM): New.
11115 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11117 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11119 * README: Remove reference to Ericsson 1800 monitor.
11120 * Makefile.in (remote-es.o): Delete rule.
11121 (ALLDEPFILES): Delete remote-es.c.
11122 * remote-es.c: Delete file.
11123 * config/m68k/es1800.mt: Delete file.
11124 * config/djgpp/fnchange.lst: Update.
11125 * configure.tgt: Delete m68*-ericsson-* target.
11127 2003-01-31 Adam Fedor <fedor@gnu.org>
11129 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11130 Remove duplicate/shadowing variable of same name.
11132 2003-01-30 Jim Blandy <jimb@redhat.com>
11134 * symfile.c (find_separate_debug_file): Assert that the objfile's
11135 directory name we compute ends with a slash, and then assume that
11136 that's so everywhere we use it.
11138 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11140 * valops.c (value_assign): Flush frame cache after stores to memory
11143 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11145 * Makefile.in (mon960-rom.o): Delete rule.
11146 * mon960-rom.c: Delete file.
11148 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11150 * d10v-tdep.c: Include "frame-unwind.h".
11151 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11153 (next_addr, uses_frame): Delete.
11154 (struct d10v_unwind_cache): Define.
11155 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11156 Use info instead of next_addr and uses_frame globals.
11157 (d10v_frame_init_saved_regs): Delete function.
11158 (d10v_init_extra_frame_info): Delete function.
11159 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11160 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11161 init_frame_pc or frame_saved_pc.
11162 (d10v_pop_frame): Delete function.
11163 (do_d10v_pop_frame): Delete function.
11164 (d10v_frame_chain): Delete function.
11165 (d10v_frame_chain_valid): Delete function.
11166 (d10v_frame_pc_unwind): New function.
11167 (d10v_frame_id_unwind): New function.
11168 (saved_regs_unwinder): New function.
11169 (d10v_frame_register_unwind): New function.
11170 (d10v_frame_pop): New function.
11171 (d10v_frame_unwind): New variable.
11172 (d10v_frame_p): New function.
11173 (d10v_frame_saved_pc): Delete function.
11174 * Makefile.in (d10v-tdep.o): Update dependencies.
11176 2003-01-30 J. Brobecker <brobecker@gnat.com>
11178 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11179 causing some regressions due to a change in the default value
11182 2003-01-29 Richard Henderson <rth@redhat.com>
11183 Elena Zannoni <ezannoni@redhat.com>
11184 Daniel Jacobowitz <drow@mvista.com>
11187 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11189 (RANGES_SECTION): New.
11190 (dwarf_ranges_buffer): New variable.
11191 (struct comp_unit_head): Add member "die".
11192 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11193 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11194 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11195 (dwarf2_locate_sections): Likewise.
11196 (dwarf2_build_psymtabs): Read .debug_ranges.
11197 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11198 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11199 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11200 Look for DW_AT_ranges and return the bounding box.
11202 2003-01-29 Brian Ford <ford@vss.fsi.com>
11204 * win32-nat.c (cygwin_pid): Removed as unused.
11205 (child_attach): Try fall back to Cygwin pid.
11207 2003-01-29 Jim Blandy <jimb@redhat.com>
11209 * objfiles.h (struct objfile): Doc fix.
11211 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11213 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11214 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11215 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11216 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11217 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11218 (FRAME_SAVED_PC): Change to a function with predicate.
11219 * gdbarch.h, gdbarch.c: Re-generate.
11221 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11223 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11225 * complaints.c (complain): Delete function.
11226 * complaints.h (struct deprecated_complaint): Delete definition.
11227 (complain): Delete declaration.
11229 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11231 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11234 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11236 * sentinel-frame.h, sentinel-frame.c: New files.
11237 * Makefile.in (frame.o): Update dependencies.
11238 (SFILES): Add sentinel-frame.c.
11239 (sentinel_frame_h): Define.
11240 (COMMON_OBS): Add sentinel-frame.o.
11241 (sentinel-frame.o): Specify dependencies.
11242 * frame.c: Include "sentinel-frame.h".
11243 (frame_register_unwind): Rewrite assuming that there is always a a
11245 (frame_register, generic_unwind_get_saved_register): Ditto.
11246 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11247 (create_sentinel_frame, unwind_to_current_frame): New functions.
11248 (get_current_frame): Rewrite using create_sentinel_frame and
11249 unwind_to_current_frame. When possible, always create a frame.
11250 (create_new_frame): Set next to the sentinel frame.
11251 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11252 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11253 ID cache when necessary.
11254 (frame_saved_regs_id_unwind): Use frame_relative_level.
11255 (deprecated_generic_get_saved_register): Use frame_relative_level,
11256 get_frame_saved_regs, get_frame_pc, get_frame_base and
11258 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11261 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11263 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11265 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11267 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11268 (maintenance_set_profile_cmd): Use error () instead of warning ().
11270 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11272 * configure.in: Check that -pg works if using --enable-profiling.
11273 Check for monstartup and _mcleanup regardless of --enable-profiling.
11274 * maint.c: Check for monstartup and _mcleanup before using them.
11275 * config.in: Regenerated.
11276 * configure: Regenerated.
11278 2003-01-24 Nick Clifton <nickc@redhat.com>
11280 * Add sh2e support:
11282 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11284 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11285 (sh2e_show_regs): New.
11286 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11287 * config/sh/tm-sh.h: Added sh2e to comments.
11289 2003-01-23 Jim Blandy <jimb@redhat.com>
11291 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11292 symbols found)" message here; we haven't checked for a separate
11293 debug info file yet, so we don't know yet.
11294 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11295 we've looked everywhere. Also, there's no need to print a special
11296 message when we're loading the separate debug info file: the one
11297 symbol_file_add prints is fine.
11299 2003-01-23 Alexander Larsson <alexl@redhat.com>
11300 Jim Blandy <jimb@redhat.com>
11302 Add support for executables whose debug info has been separated
11303 out into a separate file, leaving only a link behind.
11304 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11305 and separate_debug_objfile_backlink.
11306 (put_objfile_before): New declaration.
11307 * symfile.c: #include "filenames.h".
11308 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11309 debug info in a separate file, read that, too. Save the addrs
11310 argument, so we can use it again to read the separated debug info;
11311 syms_from_objfile modifies the table we pass it.
11312 (reread_symbols): After re-reading an objfile, call
11313 reread_separate_symbols to refresh its separate debug info
11314 objfile, if it has one.
11315 (reread_separate_symbols, find_separate_debug_file,
11316 get_debug_link_info, separate_debug_file_exists): New functions.
11317 (debug_file_directory): New global var.
11318 (_initialize_symfile): Initialize debug_file_directory, and
11319 provide the new `set debug-file-directory' command to let the user
11321 * objfiles.c (free_objfile): If this objfile has its debug info in
11322 a separate objfile, free that one too. If this is itself a
11323 separate debug info objfile, clear our parent's backlink.
11324 (put_objfile_before): New function.
11325 * utils.c (gnu_debuglink_crc32): New function.
11326 * defs.h (gnu_debuglink_crc32): New declaration.
11327 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11328 * configure.in: Handle --with-separate-debug-dir config option.
11329 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11330 * acconfig.h (DEBUGDIR): New macro.
11331 * configure, aclocal.m4, config.in: Regenerated.
11333 2003-01-22 Jim Blandy <jimb@redhat.com>
11335 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11336 like the old symbol_file_add, but taking new arguments: you can
11337 now pass in either a `struct section_addr_info' list to say where
11338 each section is loaded, or a `struct section_offsets' table. Pass
11339 these new arguments through to syms_from_objfile as appropriate.
11340 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11341 with the appropriate quiescent values for the new arguments.
11343 * symfile.c: #include "gdb_assert.h".
11344 (syms_from_objfile): Add the ability to pass in a section offset
11345 table directly, as an alternative to the section_addr_info table.
11346 Document arguments better.
11347 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11348 * symfile.h (syms_from_objfile): Update declaration.
11349 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11351 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11353 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11355 Original patch by Tom Tromey <tromey@cygnus.com> and
11356 Jason Molenda <jmolenda@apple.com>.
11357 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11358 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11359 * NEWS: Mention profiling.
11360 * configure.in (--enable-gdbtk): Fix typo.
11361 (--enable-profiling): New. Set PROFILE_CFLAGS.
11362 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11364 (profiling_state): New variable.
11365 (mcleanup_wrapper): New function.
11366 (_initialize_maint): Remove NOTYET, fix call to
11367 add_setshow_boolean_cmd for "maint set profile".
11368 * configure: Regenerated.
11370 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11372 * Makefile.in (install-gdbtk): Install PNG images too.
11374 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11376 * exec.c (text_start): Delete global variable.
11377 (exec_file_attach): Make text_start local to the function.
11378 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11379 * valops.c (hand_function_call): Delete code that handles
11380 BEFORE_TEXT_END and AFTER_TEXT_END.
11381 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11382 of CALL_DUMMY_LOCATION.
11383 * gdbarch.c: Regenerate.
11384 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11385 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11386 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11387 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11388 (text_end): Delete extern declaration.
11390 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11392 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11393 * blockframe.c (backtrace_below_main): Move to "frame.c".
11394 (frame_chain_valid): Delete check for backtrace_below_main.
11395 (_initialize_blockframe): Delete initialization, move ``set
11396 backtrace-below-main'' command to "frame.c".
11397 (do_flush_frames_sfunc): Delete function.
11398 * frame.c: Include "command.h" and "gdbcmd.h".
11399 (frame_type_from_pc): New function.
11400 (create_new_frame): Use frame_type_from_pc.
11401 (legacy_get_prev_frame): New function.
11402 (get_prev_frame): Rewrite. When an old style frame, call
11403 legacy_get_prev_frame. Otherwize, unwind the PC first.
11404 (_initialize_frame): Add ``set backtrace-below-main'' command.
11405 * Makefile.in (frame.o): Update dependencies.
11407 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11409 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11410 DEPRECATED_REGISTERS_INFO.
11412 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11414 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11415 Maintainers'. Update `Various Maintainers'.
11417 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11419 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11420 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11421 Suppress actual parameters when `-'.
11422 * gdbarch.h, gdbarch.c: Regenerate.
11424 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11426 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11427 code handling dummy frames.
11429 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11431 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11432 (struct frame_unwind): Add field pop.
11433 * frame.h (frame_pop): Declare.
11434 * frame.c (frame_saved_regs_pop): New function.
11435 (trad_frame_unwinder): Add frame_saved_regs_pop.
11436 (frame_pop): New function.
11437 * dummy-frame.c (dummy_frame_pop): New function.
11438 (discard_innermost_dummy): New function.
11439 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11440 (dummy_frame_unwind): Add dummy_frame_pop.
11441 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11442 * valops.c (hand_function_call): Ditto.
11443 * stack.c (return_command): Ditto.
11445 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11447 * cris-tdep.c: Fix function declaration indentation.
11448 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11449 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11450 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11451 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11452 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11453 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11455 2003-01-18 Michael Chastain <mec@shout.net>
11457 * README (Unpacking and Installation -- quick overview):
11458 Warn against ".../gdb-5.3/gdb/configure".
11460 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11462 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11463 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11464 (struct frame_unwind): Declare opaque.
11465 (dummy_frame_p): Declare function.
11466 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11467 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11468 * dummy-frame.c: Include "frame-unwind.h".
11469 (dummy_frame_p): New function.
11470 (dummy_frame_unwind): New variable.
11471 * frame.c: Include "frame-unwind.h".
11472 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11473 to use the new unwind field.
11474 (set_unwind_by_pc): Delete function.
11475 (create_new_frame, get_prev_frame): Set unwind field using
11476 frame_unwind_find_by_pc.
11477 (trad_frame_unwind, trad_frame_unwinder): New variables.
11478 * frame.h (trad_frame_unwind): Declare variable.
11479 (frame_id_unwind_ftype): Delete declaration.
11480 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11481 (struct frame_unwind): Declare opaque.
11482 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11483 register_unwind with a single unwind pointer.
11484 * frame-unwind.h, frame-unwind.c: New files.
11485 * Makefile.in (SFILES): Add frame-unwind.c.
11486 (frame_unwind_h): Define.
11487 (COMMON_OBS): Add frame-unwind.o.
11488 (frame-unwind.o): Specify dependencies.
11489 (frame.o, dummy-frame.o): Update dependencies.
11491 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11493 * ada-valprint.c: Eliminate PTR.
11494 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11495 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11496 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11497 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11498 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11499 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11500 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11502 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11504 * main.c (captured_main): Don't use PTR.
11505 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11506 * gdbtypes.c (lookup_primitive_typename): Ditto.
11507 (lookup_struct_elt_type): Ditto.
11508 * f-valprint.c (info_common_command): Ditto.
11509 (list_all_visible_commons): Ditto.
11510 * jv-typeprint.c (java_type_print_base): Ditto.
11512 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11513 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11514 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11515 i386-interix-nat.c and i386-interix-tdep.c. Rename
11516 m68klinux-nat.c and m68klinux-tdep.c. Rename
11517 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11518 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11519 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11520 * main.c (captured_main): Use xfree, not free.
11522 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11524 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11525 ID back using a parameter.
11526 * frame.c (frame_id_unwind): Update call.
11527 (frame_saved_regs_id_unwind): Update.
11528 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11529 * dummy-frame.h (struct frame_id): Add opaque declaration.
11530 (dummy_frame_id_unwind): Update declaration.
11532 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11534 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11536 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11538 * MAINTAINERS (Stephen P. Smith): Updated email address.
11540 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11543 * breakpoint.c (until_break_command): Add new argument. Use it to
11544 decide whether to stop only at the current frame or not.
11545 * breakpoint.h (until_break_command): Update prototype.
11546 * infcmd.c (until_command): Add new argument to until_break_command
11548 (advance_command): New function.
11549 (_initialize_infcmd): Update help string for 'until' command.
11550 Add new 'advance' command.
11552 2003-01-14 David Carlton <carlton@math.stanford.edu>
11554 * linespec.c (decode_line_1): Normalize comments.
11555 (set_flags): Ditto.
11556 (locate_first_half): Ditto.
11557 (decode_compound): Ditto.
11558 (symtab_from_filename): Ditto.
11559 (decode_all_digits): Ditto.
11560 (decode_dollar): Ditto.
11561 (find_methods): Ditto.
11562 (find_toplevel_char): Ditto.
11564 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11566 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11567 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11568 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11569 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11570 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11571 * language.c, language.h, m32r-tdep.c: Update copyright.
11572 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11573 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11574 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11575 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11576 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11577 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11579 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11581 * stabsread.h (process_later, resolve_cfront_continuation):
11583 Update copyright years.
11584 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11585 Update copyright year.
11586 * dbxread.c(struct cont_elem): Obsolete.
11587 (process_later, process_now): Obsolete functions.
11588 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11589 Update copyright year.
11590 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11591 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11592 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11593 (parse_partial_symbols): Obsolete cfront support.
11595 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11597 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11598 read_cfront_baseclasses, read_cfront_member_functions,
11599 resolve_cfront_continuation,read_cfront_static_fields,
11600 copy_cfront_struct_fields): Obsolete functions.
11601 (define_symbol, read_one_struct_field): Obsolete cfront support.
11602 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11603 Update Copyright year.
11605 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11607 * stack.c (print_frame_info, print_stack_frame_base_stub,
11608 print_stack_frame_base, show_and_print_stack_frame_stub,
11609 show_and_print_stack_frame, print_only_stack_frame_stub,
11610 print_only_stack_frame): Delete functions.
11611 (print_stack_frame_stub): Call print_frame_info instead of
11612 print_frame_info_base.
11613 (print_frame_info_base): Rename to print_frame_info.
11614 (backtrace_command_1): Call print_frame_info, instead of
11615 print_frame_info_base.
11616 (current_frame_command): Call print_stack_frame, instead of
11617 print_only_stack_frame.
11618 (frame_command): Call print_stack_frame, instead of
11619 show_and_print_stack_frame.
11620 (up_command): Ditto.
11621 (down_command): Ditto.
11622 * frame.h (print_only_stack_frame): Delete prototype.
11623 * infrun.c (normal_stop): Call print_stack_frame, instead of
11624 show_and_print_stack_frame.
11625 * thread.c (info_threads_command): Call print_stack_frame, instead
11626 of print_only_stack_frame.
11628 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11630 * README (Graphical interface to GDB): Update URL. Point at
11633 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11636 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11638 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11641 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11643 * thread-db.c (attach_thread): Prototype.
11644 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11645 thread information (ti), and valid flags (th_valid, ti_valid).
11646 (attach_thread): Move target_pid_to_str call to after the thread
11647 is added to GDB's list. Initialize the cache.
11648 (thread_get_info_callback, thread_db_map_id2thr)
11649 (thread_db_get_info): New functions.
11650 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11651 (thread_db_store_registers, thread_db_thread_alive)
11652 (thread_db_get_thread_local_address): Use them.
11653 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11654 of calling error() for threads in unknown state.
11656 (clear_lwpid_callback): New function.
11657 (thread_db_resume): Use it to clear the cache.
11659 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11661 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11662 (resume_callback): Remove dead code.
11664 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11666 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11668 * gdbarch.h, gdbarch.c: Regenerate.
11669 * stack.c (frame_info): Only initialize the saved registers when
11670 FRAME_INIT_SAVED_REGS_P.
11671 * frame.c (frame_saved_regs_register_unwind): Assert
11672 FRAME_INIT_SAVED_REGS_P.
11673 (deprecated_generic_get_saved_register): Ditto.
11675 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11677 * source.c (openp): Squelch warning about "filename".
11679 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11681 * source.c (openp): If the file does not exist don't necessarily
11684 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11687 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11688 (integer_types_same_name_p): New function.
11689 (rank_one_type): Use it.
11690 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11692 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11694 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11696 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11697 * configure.in: Add --with-sysroot.
11698 * configure: Regenerated.
11699 * main.c (gdb_sysroot): New variable.
11700 (captured_main): Initialize gdb_sysroot.
11701 * defs.h (gdb_sysroot): New extern declaration.
11702 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11704 2003-01-12 Michael Chastain <mec@shout.net>
11706 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11708 2003-01-12 Michael Chastain <mec@shout.net>
11710 * top.c (print_gdb_version): Bump copyright year to 2003.
11712 2003-01-12 David Carlton <carlton@bactrian.org>
11714 * linespec.c (symtab_from_filename): Rename variable 's' to
11717 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11719 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11721 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11723 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11725 * d10v-tdep.c: Include "gdb_assert.h".
11726 (d10v_store_return_value): Rewrite to match current interface.
11727 (d10v_extract_struct_value_address): Ditto.
11728 (d10v_extract_return_value): Ditto.
11729 (d10v_gdbarch_init): Set store_restore_value,
11730 extract_struct_value_address and extract_return_value.
11732 2003-01-12 J. Brobecker <brobecker@gnat.com>
11734 * hpread.c (set_namestring): New procedure replacing the
11735 SET_NAMESTRING macro.
11736 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11737 by calls to set_namestring.
11739 2003-01-11 J. Brobecker <brobecker@gnat.com>
11741 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11742 a compilation warning.
11743 (hpread_process_one_debug_symbol): Likewise.
11745 2003-01-10 David Carlton <carlton@math.stanford.edu>
11747 * linespec.c (decode_line_1): Rename variable 's' to
11749 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11750 (decode_dollar): Ditto.
11751 (decode_variable): Ditto.
11752 (symbol_found): Ditto.
11754 2003-01-09 Michael Chastain <mec@shout.net>
11756 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11758 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11760 * win32-nat.c (set_process_privilege): New function.
11761 (child_attach): Call set_process_privilege() to enable the
11762 SE_DEBUG_NAME user privilege if available in process token.
11764 2003-01-10 J. Brobecker <brobecker@gnat.com>
11766 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11767 compilation error in the previous revision.
11769 2003-01-09 David Carlton <carlton@math.stanford.edu>
11771 * linespec.c: Update copyright.
11773 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11775 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11776 than inferior_ptid.
11777 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11779 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11781 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11783 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11784 (frame_saved_regs_zalloc): Update.
11785 (frame_saved_regs_register_unwind): Update.
11786 (create_new_frame): Update.
11787 (get_prev_frame): Update.
11788 (frame_extra_info_zalloc): Update.
11789 (deprecated_get_frame_saved_regs): Update.
11790 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11791 * cris-tdep.c: Update comment.
11793 * somsolib.h: Fix function indentation.
11794 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11795 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11796 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11797 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11798 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11800 * infrun.c (follow_fork): Use ISO C definition.
11801 * expprint.c (print_subexp): Use xfree instead of free.
11802 * charset.c: Include "gdb_string.h" instead of <string.h>.
11803 (register_iconv_charsets): Use ISO C definition.
11804 (host_charset, target_charset): Ditto.
11805 * Makefile.in (charset.o): Update dependencies.
11806 (mi-cmd-env.o): Update dependencies.
11808 2003-01-08 Andrew Cagney <cagney@redhat.com>
11810 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11813 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11815 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11816 build directories. Save edited gdb output in Mbuild.log. If a
11817 build fails, remove any final GDB executable.
11819 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11821 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11822 replacing hex constants with function names and stripping leading
11823 file name directory prefixes.
11825 2003-01-08 Andrew Cagney <cagney@redhat.com>
11827 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11830 2003-01-08 David Carlton <carlton@math.stanford.edu>
11832 * linespec.c (decode_line_1): Move code into decode_variable.
11833 (decode_variable): New function.
11835 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11837 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11839 2003-01-08 Andrew Cagney <cagney@redhat.com>
11841 * cris-tdep.c (cris_frame_init_saved_regs): Use
11842 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11844 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11845 (sh64_nofp_frame_init_saved_regs): Ditto.
11846 (sh_fp_frame_init_saved_regs): Ditto.
11847 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11848 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11849 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11850 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11852 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11854 * minsyms.c (lookup_minimal_symbol): Update comment.
11855 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11856 (lookup_minimal_symbol_solib_trampoline): Likewise.
11858 2003-01-08 Andrew Cagney <cagney@redhat.com>
11860 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11861 frame_relative_level.
11863 * alpha-tdep.c: Use get_frame_extra_info.
11864 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11865 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11866 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11867 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11869 * alpha-tdep.c: Use get_next_frame.
11870 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11871 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11872 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11873 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11874 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11875 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11876 * xstormy16-tdep.c: Ditto.
11878 2003-01-07 Andrew Cagney <cagney@redhat.com>
11880 * alpha-tdep.c: Use get_frame_base.
11881 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11882 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11883 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11884 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11885 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11886 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11887 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11888 * config/sparc/tm-sparc.h: Ditto.
11890 2003-01-07 Andrew Cagney <cagney@redhat.com>
11892 * frame.c (deprecated_get_frame_context): New function.
11893 (deprecated_set_frame_context): New function.
11894 * frame.h (deprecated_get_frame_context): Declare.
11895 (deprecated_set_frame_context): Declare.
11896 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11897 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11899 2003-01-07 Andrew Cagney <cagney@redhat.com>
11901 * frame.c (deprecated_set_frame_next_hack): New function.
11902 (deprecated_set_frame_prev_hack): New function.
11903 * frame.h (deprecated_set_frame_next_hack): Declare.
11904 (deprecated_set_frame_prev_hack): Declare.
11905 * mcore-tdep.c (analyze_dummy_frame): Use
11906 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11907 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11909 2003-01-07 David Carlton <carlton@math.stanford.edu>
11911 * linespec.c (decode_line_1): Move code into decode_dollar.
11912 (decode_dollar): New function.
11914 2003-01-07 Andrew Cagney <cagney@redhat.com>
11916 * arm-tdep.c (arm_init_extra_frame_info): Use
11917 deprecated_update_frame_base_hack.
11918 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11919 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11920 (fix_frame_pointer): Ditto.
11921 (mn10300_analyze_prologue): Ditto.
11923 2003-01-07 Andrew Cagney <cagney@redhat.com>
11925 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11926 extra_info using frame_extra_info_zalloc.
11927 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11928 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11929 (sh64_init_extra_frame_info): Ditto.
11930 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11931 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11932 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11933 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11934 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11935 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11936 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11937 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11938 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11939 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11940 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11941 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11943 * mn10300-tdep.c (analyze_dummy_frame): Use
11944 deprecated_set_frame_extra_info_hack.
11945 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11947 2003-01-07 J. Brobecker <brobecker@gnat.com>
11949 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11950 class is not scText. These do not define "real" procedures.
11951 (parse_partial_symbols): Likewise.
11953 2003-01-06 Michael Snyder <msnyder@redhat.com>
11955 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11957 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11959 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11960 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11961 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11962 deprecated_frame_xmalloc_with_cleanup.
11963 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11964 deprecated_frame_xmalloc.
11965 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11966 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11968 2003-01-06 Andrew Cagney <cagney@redhat.com>
11970 * x86-64-linux-tdep.c: Include "osabi.h".
11971 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11973 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11975 2003-01-06 Andrew Cagney <cagney@redhat.com>
11977 * MAINTAINERS (Target Instruction Set Architectures): Update
11978 arm-elf. Can be built with -Werror, has been multiarched.
11980 * value.h (unpack_long): Make buffer parameter constant.
11981 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11982 * scm-lang.h (scm_parse): Ditto.
11983 * defs.h (extract_typed_address, extract_address): Ditto.
11984 (extract_long_unsigned_integer): Ditto.
11985 * inferior.h (unsigned_pointer_to_address): Ditto.
11986 (signed_pointer_to_address): Ditto.
11987 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11988 * gdbarch.h, gdbarch.c: Regenerate.
11989 * findvar.c (extract_long_unsigned_integer): Update.
11990 (extract_address): Update.
11991 (extract_typed_address): Update.
11992 (unsigned_pointer_to_address): Update.
11993 * values.c (unpack_long): Update.
11994 (unpack_double): Update.
11995 (unpack_pointer): Update.
11996 (unpack_field_as_long): Update.
11997 * d10v-tdep.c (d10v_pointer_to_address): Update.
11998 * avr-tdep.c (avr_pointer_to_address): Update.
11999 * scm-lang.c (scm_unpack): Update.
12000 * findvar.c (signed_pointer_to_address): Update.
12002 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12004 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12005 since it is in i386-tdep.c.
12007 2003-01-06 J. Brobecker <brobecker@gnat.com>
12009 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12010 failure introduced in the previous change.
12012 2003-01-05 Michael Chastain <mec@shout.net>
12014 * README: Remove references to deleted remote-*.c files:
12015 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12016 remote-nrom.c, remote-os9k.c, remote-udi.c.
12018 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12020 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12021 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12022 i386_get_longjmp_target.
12024 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12026 * arm-tdep.c (prologue_cache): Change to a pointer.
12027 (_initialize_arm_tdep): Allocate prologue_cache.
12028 (check_prologue_cache): Update.
12029 (save_prologue_cache): Update.
12030 (arm_gdbarch_init): Update.
12032 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12034 * stabsread.c (update_method_name_from_physname): Call complaint()
12037 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12039 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12040 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12041 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12043 * blockframe.c: Include "gdbcmd.h" and "command.h".
12044 (backtrace_below_main): New variable.
12045 (file_frame_chain_valid, func_frame_chain_valid)
12046 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12047 (generic_func_frame_chain_valid): Remove functions.
12048 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12049 (_initialize_blockframe): New function.
12050 * Makefile.in (blockframe.o): Update dependencies.
12051 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12052 comment. Call frame_chain_valid ().
12053 * frame.h: Remove old prototypes. Add prototype for
12054 frame_chain_valid and update comments to match.
12055 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12056 Remove old comment.
12057 * gdbarch.h: Regenerated.
12058 * gdbarch.c: Regenerated.
12060 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12061 set_gdbarch_frame_chain_valid.
12062 * avr-tdep.c (avr_gdbarch_init): Likewise.
12063 * cris-tdep.c (cris_gdbarch_init): Likewise.
12064 * frv-tdep.c (frv_gdbarch_init): Likewise.
12065 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12066 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12067 (i386_nw_init_abi): Likewise.
12068 (i386_gdbarch_init): Likewise.
12069 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12071 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12072 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12073 * mips-tdep.c (mips_gdbarch_init): Likewise.
12074 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12075 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12076 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12077 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12078 * s390-tdep.c (s390_gdbarch_init): Likewise.
12079 * sh-tdep.c (sh_gdbarch_init): Likewise.
12080 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12081 * v850-tdep.c (v850_gdbarch_init): Likewise.
12082 * vax-tdep.c (vax_gdbarch_init): Likewise.
12083 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12085 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12086 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12087 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12088 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12089 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12090 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12091 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12092 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12094 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12096 * Makefile.in (acconfig_h): Remove incorrect macro.
12097 (config_h): Define.
12098 (osabi.o): Update dependencies.
12099 * configure.tgt: Set gdb_osabi based on target triplet.
12100 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12101 * configure: Regenerated.
12102 * config.in: Regenerated.
12103 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12104 (GDB_OSABI_DEFAULT): Define if not already defined.
12105 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12106 (set_osabi_string): New variables.
12107 (gdbarch_register_osabi): Add new OS ABI to
12108 gdb_osabi_available_names.
12109 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12110 (set_osabi, show_osabi): New functions.
12111 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12113 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12115 * arch-utils.c (gdbarch_info_init): Set osabi to
12116 GDB_OSABI_UNINITIALIZED.
12117 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12118 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12119 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12120 * gdbarch.c: Regenerated.
12121 * gdbarch.h: Regenerated.
12122 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12124 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12125 * osabi.h (enum gdb_osabi): Move to defs.h.
12126 (gdbarch_init_osabi): Update prototype.
12127 * defs.h (enum gdb_osabi): Moved here.
12128 * Makefile.in: Update dependencies.
12130 * alpha-tdep.h: Don't include "osabi.h".
12131 (struct gdbarch_tdep): Remove osabi member.
12132 * alpha-tdep.c: Include "osabi.h".
12133 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12134 iterate over arches. Update call to gdbarch_init_osabi.
12135 (alpha_dump_tdep): Don't dump osabi.
12136 * alpha-linux-tdep.c: Include "osabi.h".
12137 * alpha-osf1-tdep.c: Include "osabi.h".
12138 * alphafbsd-tdep.c: Include "osabi.h".
12139 * alphanbsd-tdep.c: Include "osabi.h".
12141 * arm-tdep.h: Don't include "osabi.h".
12142 (struct gdbarch_tdep): Remove osabi member.
12143 * arm-tdep.c: Include "osabi.h".
12144 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12145 iterate over arches. Update call to gdbarch_init_osabi.
12146 (arm_dump_tdep): Don't dump osabi.
12147 * arm-linux-tdep.c: Include "osabi.h".
12148 * armnbsd-tdep.c: Include "osabi.h".
12150 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12151 Update call to gdbarch_init_osabi.
12153 * i386-tdep.h: Don't include "osabi.h".
12154 (struct gdbarch_tdep): Remove osabi member.
12155 * i386-tdep.c: Include "osabi.h".
12156 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12157 iterate over arches. Update call to gdbarch_init_osabi.
12158 (i386_dump_tdep): Don't dump osabi.
12159 * i386-linux-tdep.c: Include "osabi.h".
12160 * i386-sol2-tdep.c: Include "osabi.h".
12161 * i386bsd-tdep.c: Include "osabi.h".
12162 * i386gnu-tdep.c: Include "osabi.h".
12163 * i386ly-tdep.c: Include "osabi.h".
12164 * i386nbsd-tdep.c: Include "osabi.h".
12165 * i386obsd-tdep.c: Include "osabi.h".
12167 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12168 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12169 check osabi when iterating over arches. Update call to
12170 gdbarch_init_osabi.
12171 (mips_dump_tdep): Don't dump osabi.
12173 * ns32k-tdep.h: Don't include "osabi.h".
12174 (struct gdbarch_tdep): Remove.
12175 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12176 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12177 allocate tdep. Update call to gdbarch_init_osabi.
12178 (ns32k_dump_tdep): Remove.
12179 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12180 * ns32knbsd-tdep.c: Include "osabi.h".
12182 * ppc-tdep.h: Don't include "osabi.h".
12183 (struct gdbarch_tdep): Remove osabi member.
12184 * rs6000-tdep.c: Include "osabi.h".
12185 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12186 osabi when iterating over arches. Update call to
12187 gdbarch_init_osabi.
12188 (rs6000_dump_tdep): Don't dump osabi.
12189 * ppc-linux-tdep.c: Include "osabi.h".
12190 * ppcnbsd-tdep.c: Include "osabi.h".
12192 * sh-tdep.h: Don't include "osabi.h".
12193 (struct gdbarch_tdep): Remove osabi member.
12194 * sh-tdep.c: Include "osabi.h".
12195 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12196 iterate over arches. Update call to gdbarch_init_osabi.
12197 (sh_dump_tdep): Don't dump osabi.
12198 * shnbsd-tdep.c: Include "osabi.h".
12200 * sparc-tdep.c: Include "osabi.h".
12201 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12202 iterate over arches. Update call to gdbarch_init_osabi.
12203 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12206 * vax-tdep.h: Don't include "osabi.h".
12207 (struct gdbarch_tdep): Remove.
12208 * vax-tdep.c: Include "osabi.h".
12209 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12210 iterate over arches. Don't allocate tdep. Update call
12211 to gdbarch_init_osabi.
12212 (vax_dump_tdep): Remove.
12213 (_initialize_vax_tdep): Update call to gdbarch_register.
12215 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12217 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12219 (breakpoint_re_set_one): Don't fetch the value for a disabled
12222 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12224 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12225 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12226 (COERCE_FLOAT_TO_DOUBLE): Remove.
12227 * gdbarch.c: Regenerate.
12228 * gdbarch.h: Regenerate.
12229 * Makefile.in: Remove value_h from gdbarch_h.
12230 * valops.c (coerce_float_to_double): New variable.
12231 (default_coerce_float_to_double): Remove.
12232 (standard_coerce_float_to_double): Remove.
12233 (value_arg_coerce): Use coerce_float_to_double.
12234 (_initialize_valops): Add "set coerce-float-to-double".
12235 * value.h (default_coerce_float_to_double): Remove prototype.
12236 (standard_coerce_float_to_double): Remove prototype.
12238 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12240 * mdebugread.c (parse_symbol): Likewise.
12241 * stabsread.c (define_symbol): Mark all functions as prototyped.
12243 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12244 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12245 set_gdbarch_coerce_float_to_double.
12246 * arm-tdep.c (arm_gdbarch_init): Likewise.
12247 * frv-tdep.c (frv_gdbarch_init): Likewise.
12248 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12249 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12250 * mips-tdep.c (mips_gdbarch_init): Likewise.
12251 (mips_coerce_float_to_double): Remove.
12252 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12253 (rs6000_coerce_float_to_double): Remove.
12254 * s390-tdep.c (s390_gdbarch_init): Likewise.
12255 * sh-tdep.c (sh_gdbarch_init): Likewise.
12256 (sh_coerce_float_to_double): Remove.
12257 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12258 (sparc_coerce_float_to_double): Remove.
12259 * v850-tdep.c (v850_gdbarch_init): Likewise.
12260 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12261 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12262 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12263 (hppa_coerce_float_to_double): Remove prototype.
12264 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12266 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12268 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12270 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12272 Suggested by Stewart Brown <sb24@avaya.com>:
12273 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12274 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12275 (c_type_print_varspec_suffix): Likewise.
12277 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12279 * configure.in: Don't set and AC_SUBST SUBDIRS.
12280 * configure: Regenerated.
12282 * configure.in: Remove code dealing with shared libraries.
12283 * Makefile.in: Remove HLDFLAGS and HLDENV.
12284 * configure: Regenerated.
12286 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12288 * frame.c (deprecated_frame_xmalloc): New function.
12289 (deprecated_set_frame_saved_regs_hack): New function.
12290 (deprecated_set_frame_extra_info_hack): New function.
12291 * frame.h (deprecated_frame_xmalloc): Declare.
12292 (deprecated_set_frame_saved_regs_hack): Declare.
12293 (deprecated_set_frame_extra_info_hack): Declare.
12295 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12297 * configure.in: Move code that provides the --enable-gdbtk option
12298 right after the code that handles the --enable-tui option, and
12299 polish it somewhat.
12300 * configure: Regenerated.
12302 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12303 AC_CHECK_FUNCS and remove the old check for pread64.
12304 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12305 * acconfig.h (_GNU_SOURCE): Add.
12306 (HAVE_PREAD64): Remove.
12307 * configure, aclocal.m4, config.in: Regenerated.
12309 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12311 * alpha-tdep.c: Use get_frame_saved_regs.
12312 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12313 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12314 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12315 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12316 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12318 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12320 * configure.in: Remove all use of the SUBDIRS variable; add
12321 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12322 code providing the --enable-multi-ice option, and move it right in
12323 front of the code that checks whether gdbserver is supported.
12325 * configure: Regenerated.
12326 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12329 2003-01-03 Andrew Cagney <cagney@redhat.com>
12331 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12332 * avr-tdep.c, cris-tdep.c: Ditto.
12333 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12334 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12336 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12338 * configure.in: Remove --enable-netrom option.
12339 * configure: Regenerated.
12341 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12343 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12344 declaration for `struct re_pattern_buffer' instead.
12345 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12347 2003-01-03 J. Brobecker <brobecker@gnat.com>
12349 * mdebugread.c (parse_symbol): Count until the stEnd matching
12350 the structure name.
12352 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12354 * configure.in: Remove --with-cpu option.
12355 subscripts. Remove evil changequotes here.
12356 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12357 * config.in, configure: Regenerated.
12359 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12360 * configure.in: Cleanup section that sources GDB and BFD configure
12361 subscripts. Remove evil changequotes here.
12362 * config.in, configure: Regenerated.
12364 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12366 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12367 frame accessor methods.
12368 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12369 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12370 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12371 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12372 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12373 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12374 * z8k-tdep.c: Ditto.
12376 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12378 * configure.in: Remove UI_OUT configuration code.
12379 * ada-lang.c: Update assuming UI_OUT is always true.
12380 * Makefile.in (UIOUT_CFLAGS): Remove.
12381 * configure: Regenerated.
12382 * TODO: Remove blurb about elimination of -DUI_OUT.
12384 * configure.in: Move code that provides the --enable-gdbcli,
12385 --enable-gdbmi options right before the code that handles the
12386 --enable-tui option. Polish a bit.
12387 * configure: Regenerated.
12389 * configure.in: Rewrite check for GNU regex and the
12390 --without-included regex option, and move it into the "Checks for
12391 library functions" section. This makes us use the system regex
12392 again by default on systems with version 2 of the GNU C library.
12393 This was apparently broken.
12394 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12395 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12396 * config.in, configure: Regenerated.
12398 * configure.in: Move code that provides the --enable-tui option
12399 before the "Checks for libraries" section. Polish the code
12400 somewhat and set need_curses to yes if we build the TUI. Rewrite
12401 code that looks for a library providing termcap functionality to
12402 match more closely what's done in the Readline library, and move
12403 it into to the "Checks for libraries" section.
12404 * configure: Regenerated.
12405 * Makefile.in (TERMCAP): Remove variable.
12406 * config/i386/go32.mh (TERMCAP): Remove variable.
12408 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12410 * MAINTAINERS: Mention gdb_mbuild.sh.
12411 * gdb_mbuild.sh: Rewrite.
12413 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12415 * configure.in: Fix typo in last change.
12416 * config.in, configure: Regenerated.
12418 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12420 * valarith.c (value_binop): Delete obsolete code and comments.
12421 * configure.host: Ditto.
12422 * buildsym.h (make_blockvector): Ditto.
12423 * buildsym.c (make_blockvector): Ditto.
12424 * defs.h (enum language): Ditto.
12425 (chill_demangle): Ditto.
12426 * elfread.c (elf_symtab_read): Ditto.
12427 * dwarfread.c (CHILL_PRODUCER): Ditto.
12428 (set_cu_language): Ditto.
12429 (handle_producer): Ditto.
12430 * expprint.c (print_subexp): Ditto.
12431 * gdbtypes.c (chill_varying_type): Ditto.
12432 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12433 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12434 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12435 (chill_varying_type): Ditto.
12436 * language.h (_LANG_chill): Ditto.
12437 * language.c (binop_result_type, integral_type): Ditto.
12438 (character_type, string_type, structured_type): Ditto.
12439 (lang_bool_type, binop_type_check): Ditto.
12440 * stabsread.h (os9k_stabs): Ditto.
12441 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12442 (define_symbol, read_type, read_struct_fields): Ditto.
12443 (read_array_type, read_enum_type, read_huge_number): Ditto.
12444 (read_range_type, start_stabs): Ditto.
12445 * symfile.c (init_filename_language_table): Ditto.
12446 (add_psymbol_with_dem_name_to_list): Ditto.
12447 * symtab.c (symbol_init_language_specific): Ditto.
12448 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12449 * symtab.h (struct general_symbol_info): Ditto.
12450 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12451 * typeprint.c (typedef_print): Ditto.
12452 * utils.c (fprintf_symbol_filtered): Ditto.
12453 * valops.c (value_cast, search_struct_field, value_slice): Delete
12455 (varying_to_slice): Delete function.
12456 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12457 (varying_to_slice): Delete declaration.
12458 * MAINTAINERS: Update.
12460 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12462 * configure.in: Reorganize "Checks for library functions section"
12463 a bit. Remove check for `btowc' and `isascii' functions.
12464 * configure: Regenerated.
12466 * acconfig.h (_MSE_INT_H): Remove.
12467 * configure.in: Create "Checks for header files" section, and move
12468 appropriate tests there. Don't check for objlist.h, wchar.h,
12469 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12470 misdetection fix. Also add "Checks for types", "Checks for
12471 compiler characteristics" and "Checks for library functions"
12473 * config.in, configure: Regenerated.
12475 * configure.in: Create "Checks for programs" section, and move
12476 appropriate tests there.
12478 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12480 * configure.in: Create "Checks for libraries" section, and move
12481 appropriate tests there. Cleanup check for wctype in libw. Use
12482 AC_SEARCH_LIBS to see whether we need libsocket.
12483 * configure: Regenerated.
12485 For older changes see ChangeLog-2002
12491 version-control: never