1 2003-09-25 David Carlton <carlton@kealia.com>
3 * c-exp.y: Remove 'register' declarations.
4 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
6 2003-09-25 David Carlton <carlton@kealia.com>
8 * c-exp.y: Include cp-support.h. Add qualified_type.
9 (yylex): Delete nested type hack; add comments.
10 * cp-namespace.c (cp_lookup_nested_type): New function.
11 * cp-support.h: Declare cp_lookup_nested_type.
12 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
13 instead of value_struct_elt_for_reference.
14 * valops.c: Include cp-support.h.
15 (value_aggregate_elt): New function.
16 (value_namespace_elt): Ditto.
17 (value_struct_elt_for_reference): Make static.
18 * value.h: Delete declaration of value_struct_elt_for_reference;
19 add declaration for value_aggregate_elt.
20 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
23 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
25 * stack.c: Include "reggroups.h".
26 (frame_info): Only display registers in all_reggroup.
27 * Makefile.in (stack.o): Update dependencies.
29 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
31 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
32 "add ip, sp #n" in the prologue.
33 (arm_scan_prologue): Ditto.
35 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
37 * MAINTAINERS (write after approval): Add myself.
39 2003-09-25 Andreas Schwab <schwab@suse.de>
41 * m68k-tdep.c: Include "dwarf2-frame.h".
42 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
43 * Makefile.in (m68k-tdep.o): Update dependencies.
45 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
47 * sh-tdep.c (struct frame_extra_info): Remove.
48 (struct sh_frame_cache): New structure.
49 (GET_SOURCE_REG): New macro extracting source register of an opcode.
50 (GET_TARGET_REG): Ditto but target register.
51 (GET_PUSHED_REG): Remove.
52 (IS_MOV_ARG_TO_REG): New macro.
53 (IS_MOV_ARG_TO_IND_R14): New macro.
54 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
55 (IS_MOVW_PCREL_TO_REG): New macro.
56 (IS_MOVL_PCREL_TO_REG): New macro.
57 (IS_SUB_REG_FROM_SP): New macro.
59 (IS_MOV_TO_R14): Remove.
60 (IS_RESTORE_FP): New macro.
63 (IS_MOV_FP_SP): New macro.
64 (IS_ADD_REG_TO_FP): New macro.
65 (IS_ADD_IMM_FP): New macro.
66 (sh_skip_prologue_hard_way): Remove.
67 (sh_saved_pc_after_call): Remove.
68 (sh_frame_chain): Remove.
69 (sh_find_callers_reg): Remove.
70 (sh_nofp_frame_init_saved_regs): Remove.
71 (sh_fp_frame_init_saved_regs): Remove.
72 (sh_init_extra_frame_info): Remove.
73 (sh_analyze_prologue): New function.
74 (sh_skip_prologue): Remove deprecated code. Rely on new function
75 sh_analyze_prologue when after_prologue fails.
76 (sh_frame_saved_pc): Remove.
77 (sh_alloc_frame_cache): New function.
78 (sh_frame_cache): Ditto.
79 (sh_frame_prev_register): Ditto.
80 (sh_frame_this_id): Ditto.
81 (sh_frame_unwind): New structure defining the heuristic frame
83 (sh_frame_sniffer): New function.
84 (sh_unwind_sp): Ditto.
85 (sh_unwind_pc): Ditto.
86 (sh_unwind_dummy_id): Ditto.
87 (sh_frame_base_address): Ditto.
88 (sh_frame_base): New structure defining new frame base code.
89 (sh_in_function_epilogue_p): New function.
90 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
91 code and to call all new code instead. Initialize dwarf2 and
92 heuristic frame sniffer.
94 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
96 * parser-defs.h (struct exp_descriptor): New definition, containing
97 language-specific info for printing, prefixifying, dumping, and
98 evaluating expressions.
99 (exp_descriptor_standard): Declare new variable.
100 (print_subexp): Make global and declare here (from expprint.c).
101 (dump_subexp): Ditto.
102 (dump_subexp_body_standard): Declare.
103 (operator_length_standard): Declare.
104 (op_name_standard): Declare.
105 (print_subexp): Declare.
106 (print_subexp_standard): Declare.
108 * language.h (struct language_defn): Add la_exp_desc field to hold
109 pointer to table for language-specific operators.
110 Remove evaluate_exp field, which is now in struct exp_descriptor.
112 * parse.c (operator_length): Move most code to new
113 operator_length_standard function. Use language-specific information.
114 (operator_length_standard): New function taking most code from
116 (exp_descriptor_standard): New constant.
118 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
119 and OP_EXTENDED_LAST.
121 * expprint.c (print_subexp): Use language-specific print_subexp.
122 Make global; remove static declaration.
123 Move most code to print_subexp_standard.
124 (print_subexp_standard): New function, containing code formerly in
126 (op_name): Add expression to argument signature.
127 Use langauge-specific op_name.
128 Move most code to op_name_standard.
129 (op_name_standard): New function, containing code formerly in op_name.
130 (dump_subexp): Use new version of op_name function.
131 Use language-specific dump_subexp_body, and move most existing code to
132 dump_subexp_body_standard.
133 (dump_raw_expression): Use new op_name interface.
134 (dump_subexp_body): Move most code to dump_subexp_body_standard.
135 (dump_subexp_body_standard): New function, containing code formerly
138 * language.c (unknown_language): Add default la_exp_desc field and
139 remove evaluate_exp field.
140 (auto_language): Ditto.
141 (local_language): Ditto.
142 * f-lang.c (f_language_defn): Ditto.
143 * c-lang.c (c_language_defn): Ditto.
144 (cplus_language_defn): Ditto.
145 (asm_language_defn): Ditto.
146 (minimal_language_defn): Ditto.
147 * p-lang.c (pascal_language_defn): Ditto.
148 * m2-lang.c (m2_language_defn): Ditto.
149 * objc-lang.c (objc_language_defn): Ditto.
151 * jv-lang.c (exp_descriptor_java): New variable, containing
152 Java-specific expression evaluator.
153 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
155 * scm-lang.c (exp_descriptor_scm): New variable, containing
156 Scheme-specific expression evaluator.
157 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
159 * objc-lang.c (print_object_command): Take evaluate_exp from the
162 * Makefile.in (eval.o): Add dependency on parser-defs.h.
164 * eval.c: Include parser-defs.h for the full declaration of
166 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
168 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
170 * parser-defs.h (operator_length): Declare.
172 * parse.c (length_of_subexp): Use operator_length to get operator
173 lengths and arities for operators.
174 Move most code to new operator_length function.
175 (operator_length): New function absorbing most code from
177 (prefixify_subexp): Remove large case and use operator_length instead.
178 (parse_exp_1): Use renamings:
179 dump_prefix_expression => dump_raw_expression and
180 dump_postfix_expression => dump_prefix_expression.
182 * expression.h (dump_prefix_expression): Rename to ...
183 (dump_raw_expression): New name.
184 (dump_postfix_expression): Rename to ...
185 (dump_prefix_expression): New name.
187 * expprint.c (dump_subexp): Make global. Add comment.
188 Move most existing code to dump_subexp_body.
189 (dump_subexp_body): New function.
190 (dump_prefix_expression): Rename to dump_raw_expression.
191 Remove attempt to print the expression via print_expression: it can't
192 work before the expression is prefixified.
193 (dump_raw_expression): Renamed from dump_prefix_expression.
194 (dump_postfix_expression): Rename to dump_prefix_expression, since
196 Remove 'note' parameter, since this routine must be used on
197 prefixified expression.
198 (dump_prefix_expression): Renamed from dump_postfix_expression.
200 2003-09-22 Jim Blandy <jimb@redhat.com>
202 * dwarf2read.c (read_array_type): When building the type for an
203 array of unspecified length, make sure to choose the upper bound
204 so that the array's total length comes out to be zero --- that's
205 how we represent such arrays.
207 2003-09-22 Michael Chastain <mec@shout.net>
209 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
211 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
213 * top.c (quit_force): Fix indirect call to quit_target so
214 a struct qt_args pointer is passed.
216 2003-09-22 Andrew Cagney <cagney@redhat.com>
218 * arch-utils.h (init_frame_pc_noop): Delete declaration.
219 * arch-utils.c (init_frame_pc_noop): Delete function.
220 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
222 * mips-tdep.c (mips_gdbarch_init): Ditto.
223 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
224 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
226 (DEPRECATED_INIT_FRAME_PC): Delete macro.
227 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
229 (DEPRECATED_INIT_FRAME_PC): Delete macro.
231 2003-09-22 Anthony Green <green@redhat.com>
233 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
236 2003-09-20 Andrew Cagney <cagney@redhat.com>
238 * breakpoint.c: Eliminate ARGSUSED.
239 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
240 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
241 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
242 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
243 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
244 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
245 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
246 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
247 * wince.c, remote-vx.c: Ditto.
249 * cli/cli-script.c: Remove "register" attributes.
250 * config/pa/tm-hppa.h: Ditto.
251 * cli/cli-decode.c: Ditto.
252 * cli/cli-cmds.c: Ditto.
254 2003-09-19 Andrew Cagney <cagney@redhat.com>
256 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
257 DEPRECATED_NPC_REGNUM.
258 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
260 2003-09-19 Christopher Faylor <cgf@redhat.com>
262 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
264 2003-09-19 Jim Blandy <jimb@redhat.com>
266 * macrotab.c (macro_include): Use the correct comparison to find
267 the appropriate place for this inclusion in the list.
269 2003-09-19 Andrew Cagney <cagney@redhat.com>
271 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
272 (DEPRECATED_HPUX_TEXT_END): Define.
273 (deprecated_hpux_text_end): Declare.
274 (struct target_ops): Declare opaque.
275 * hppah-nat.c (text_end): Make static.
276 (deprecated_hpux_text_end): New function.
277 * exec.c (text_end): Delete global variable.
278 (NEED_TEXT_START_END): Do not define.
279 (exec_file_attach): Replace code computing "text_end" code with
280 call to DEPRECATED_HPUX_TEXT_END.
282 2003-09-19 Andrew Cagney <cagney@redhat.com>
284 * utils.c (align_up, align_down): New functions.
285 * defs.h (align_up, align_down): Declare.
286 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
287 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
289 (round_up, round_down): Delete functions.
290 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
292 (ROUND_DOWN, ROUND_UP): Delete macros.
293 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
294 * h8300-tdep.c: Replace "round_up" and "round_down" with
295 "align_up" and "align_down".
296 (round_up, round_down): Delete macros.
297 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
299 (ROUND_UP, ROUND_DOWN): Delete macros.
301 2003-09-18 J. Brobecker <brobecker@gnat.com>
303 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
304 hard-coded constant. Use the proper machine name instead.
306 2003-09-17 Andrew Cagney <cagney@redhat.com>
308 * sparc-tdep.c (legacy_register_name): Delete function.
309 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
310 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
311 * infcmd.c (gdb_register_name): Delete variable.
312 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
313 REGISTER_NAME and "tm.h".
314 * gdbarch.h, gdbarch.c: Regenerate.
315 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
316 REGISTER_NAMES in comments.
317 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
318 * m68klinux-nat.c (regmap): Ditto.
320 2003-09-17 Jim Blandy <jimb@redhat.com>
322 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
324 2003-09-17 Andrew Cagney <cagney@redhat.com>
326 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
327 (ppcnbsd_init_abi): Set "use_struct_convention" to
328 "ppcnbsd_use_struct_convention".
330 2003-09-17 Mark Kettenis <kettenis@gnu.org>
332 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
333 * gdbarch.h, gdbarch.c: Regenerate.
334 (stabs_argument_has_addr): New architecture method.
335 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
336 * arch-utils.c: Include "buildsym.h".
337 (default_stabs_argument_has_addr): New function.
338 * stabsread.c (define_symbol): Use stabs_argument_has_addr
339 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
341 2003-09-17 Andrew Cagney <cagney@redhat.com>
343 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
344 * gdbarch.h, gdbarch.c: Regenerate.
345 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
346 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
347 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
348 * sparcnbsd-tdep.c: Update.
350 2003-09-17 Andrew Cagney <cagney@redhat.com>
352 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
353 * gdbarch.h, gdbarch.c: Regenerate.
354 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
355 * d10v-tdep.c, frame.c: Update.
356 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
357 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
358 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
359 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
360 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
361 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
362 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
363 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
364 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
365 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
366 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
367 * config/pa/nm-hppah.h: Update.
369 2003-09-16 Andrew Cagney <cagney@redhat.com>
371 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
372 "use_struct_convention" to "ppc_linux_use_struct_convention".
373 (ppc_linux_use_struct_convention): New function.
374 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
375 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
376 "rs6000_use_struct_convention".
377 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
379 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
382 2003-09-16 Andrew Cagney <cagney@redhat.com>
384 * buildsym.c: Remove more occurances of "register".
385 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
386 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
387 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
388 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
389 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
390 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
391 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
392 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
394 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
396 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
397 numbers to enumeration values.
398 * sh-tdep.c: Accomodate above change.
399 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
400 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
401 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
402 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
403 (IS_FPUSH): Rename from IS_FMOV.
404 (sh_extract_struct_value_address): Remove useless comment.
405 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
406 instead of own local values.
407 (sh_dump_tdep): Remove.
408 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
409 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
411 2003-09-15 Andrew Cagney <cagney@redhat.com>
413 * doublest.c (convert_floatformat_to_doublest): No longer need to
414 cast "exp_bias" to an int. Reverts 2002-12-04 change.
416 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
418 * values.c (unpack_double): Call floatformat_is_valid.
420 2003-09-15 Mark Kettenis <kettenis@gnu.org>
422 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
423 ps_strings into a long.
425 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
426 _initialize_am64fbsd_nat.
428 2003-09-15 Kevin Buettner <kevinb@redhat.com>
430 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
431 associated with DW_AT_ranges attribute is out of bounds.
433 2003-09-15 David Lecomber <dsl@sources.redhat.com>
435 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
437 2003-09-14 Michael Chastain <mec@shout.net>
439 * config/m68k/nm-apollo68v.h: Delete.
440 * config/m68k/xm-apollo68v.h: Delete.
442 2003-09-14 Andrew Cagney <cagney@redhat.com>
444 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
445 * dcache.c: Update copyrights and descriptions.
446 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
448 2003-09-14 Andrew Cagney <cagney@redhat.com>
450 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
451 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
453 2003-09-14 Andrew Cagney <cagney@redhat.com>
455 * alpha-nat.c: Remove some occurances of "register".
456 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
457 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
458 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
459 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
460 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
461 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
462 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
463 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
464 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
465 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
466 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
467 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
468 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
469 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
470 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
471 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
472 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
473 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
474 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
475 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
476 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
477 * values.c, vax-tdep.c, xcoffread.c: Ditto.
479 2003-09-13 Andrew Cagney <cagney@redhat.com>
481 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
482 * ppc-tdep.h (struct regcache): Declare opaque.
483 * objfiles.h (struct objfile_data): Declare opaque.
484 * cp-support.h (struct objfile): Declare opaque.
485 * linux-nat.h (target_waitstatus): Declare opaque.
487 2003-09-14 Mark Kettenis <kettenis@gnu.org>
489 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
490 (stabs_argument_has_addr): New architecture method.
491 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
492 * arch-utils.c: Include "buildsym.h".
493 (default_stabs_argument_has_addr): New function.
494 * stabsread.c (define_symbol): Use stabs_argument_has_addr
495 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
497 * cris-tdep.c (cris_gdbarch_init): Set
498 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
499 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
500 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
501 * mips-tdep.c (mips_gdbarch_init): Likewise.
502 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
503 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
505 2003-09-13 Andrew Cagney <cagney@redhat.com>
507 * values.c (using_struct_return): Delete "function" and "funcaddr"
509 * value.h (using_struct_return): Update declaration.
510 * infcmd.c (finish_command_continuation): Update.
511 (finish_command): Update.
512 * infcall.c (call_function_by_hand): Update.
513 * eval.c (evaluate_subexp_standard): Update.
515 2003-09-13 Christopher Faylor <cgf@redhat.com>
517 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
518 SSE registers since gdb will not operate correctly without this.
519 Restore include file ordering munged in previous change.
520 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
522 2003-09-13 Mark Kettenis <kettenis@gnu.org>
524 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
526 * gdbarch.c, gdbarch.h: Updated.
527 * infcall.c (call_function_by_hand): Update.
528 * stabsread.c (define_symbol): Updated.
530 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
532 2003-09-12 Christopher Faylor <cgf@redhat.com>
534 * win32-nat.c: Reorganize so that defines used by target headers are
535 actually defined by the system headers.
536 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
537 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
539 2003-09-12 Jim Blandy <jimb@redhat.com>
541 * dbxread.c (read_dbx_symtab): Don't report an internal error if
542 the file has no .data, .bss, or .rodata sections. Instead wait
543 until we see a variable alleged to live in one of those sections.
545 * dbxread.c (read_dbx_symtab): If we have no .data section and no
546 .bss section, presume that any variables we find live in the
549 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
550 offsets for global and static variables.
552 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
553 symbol types are, by definition, in the .data section, so it is
554 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
555 If there is no .data section, there should be no N_DATA or N_DATA
558 2003-09-12 Mark Kettenis <kettenis@gnu.org>
560 * amd64fbsd-tdep.c: Fix sigtramp recognition.
561 (amd64fbsd_sigcontext_addr): Rewrite.
562 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
564 (amd64fbsd_sc_reg_offset): Initialize with correct values.
565 (amd64fbsd_init_abi): Fix typo.
567 2003-09-12 Andrew Cagney <cagney@redhat.com>
569 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
570 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
572 2003-09-12 Andrew Cagney <cagney@redhat.com>
574 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
575 "entry_file_highpc". Update comments.
576 * defs.h (deprecated_inside_entry_file): Rename
578 * blockframe.c (deprecated_inside_entry_file): Rename
580 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
581 * vax-tdep.c (vax_frame_chain): Update.
582 * sh64-tdep.c (sh64_frame_chain): Update.
583 * sh-tdep.c (sh_frame_chain): Update.
584 * rs6000-tdep.c (rs6000_frame_chain): Update.
585 * ns32k-tdep.c (ns32k_frame_chain): Update.
586 * mips-tdep.c (mips_frame_chain): Update.
587 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
588 * m32r-tdep.c (m32r_frame_this_id): Update.
589 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
590 * frv-tdep.c (frv_frame_this_id): Update.
591 * d10v-tdep.c (d10v_frame_this_id): Update.
592 * cris-tdep.c (cris_frame_chain): Update.
593 * blockframe.c (legacy_frame_chain_valid): Update.
594 * avr-tdep.c (avr_frame_this_id): Update.
595 * arm-tdep.c (arm_prologue_this_id): Update.
596 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
597 * objfiles.c (objfile_relocate): Update.
598 * mipsread.c (mipscoff_symfile_read): Update.
599 (mipscoff_symfile_read): Update.
600 * mdebugread.c (parse_partial_symbols): Update.
601 * dwarfread.c (read_file_scope): Update.
602 * dwarf2read.c (read_file_scope): Update.
603 * dbxread.c (read_dbx_symtab): Update.
604 (read_dbx_symtab): Update.
605 * coffread.c (complete_symtab): Update.
607 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
609 * top.c (quit_target): New static helper function.
610 (quit_force): Moved code to quit_target(). Call quit_target()
611 via catch_errors() to catch errors during quit.
613 2003-09-11 David Carlton <carlton@kealia.com>
615 * buildsym.c (finish_block): Use allocate_block to allocate the
617 * mdebugread.c (new_block): Add FIXME.
619 2003-09-11 David Carlton <carlton@kealia.com>
621 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
622 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
623 (recursive_dump_type): Ditto.
624 * printcmd.c (print_formatted): Ditto.
625 * typeprint.c (print_type_scalar): Ditto.
626 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
627 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
628 * cp-support.h: Declare cp_check_possible_namespace_symbols,
629 maint_cplus_cmd_list.
630 * cp-support.c: Make maint_cplus_cmd_list extern.
631 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
633 (lookup_symbol_file): Look in possible namespace blocks when
635 (initialize_namespace_symtab): New.
636 (get_possible_namespace_block, free_namespace_block)
637 (check_possible_namespace_symbols)
638 (check_possible_namespace_symbols_loop)
639 (check_one_possible_namespace_symbol)
640 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
641 (_initialize_cp_namespace): Ditto.
642 * block.h: Declare allocate_block.
643 * block.c (allocate_block): New.
644 * jv-lang.c (get_java_class_symtab): Allocate blocks via
646 * symfile.h: Update declaration of add_psymbol_to_list.
647 * symfile.c (add_psymbol_to_list): Return the partial symbol in
649 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
650 scan_partial_symbols_call.
651 (scan_partial_symbols): Add NAMESPACE argument; update calls to
653 (add_partial_symbol): If necessary, scan mangled names for names
655 (add_partial_namespace): Add NAMESPACE argument; generate partial
656 symbols associated to namespaces.
657 (add_partial_enumeration): Add NAMESPACE argument.
658 (new_symbol): Allow namespace syms.
659 (read_namespace): Generate namespace syms.
660 * objfiles.h: Add opaque declaration of struct symtab.
661 (struct objfile): Add cp_namespace_symtab member.
662 * objfiles.c (allocate_objfile): Set
663 objfile->cp_namespace_symtab.
664 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
665 dictionary_h, command_h.
667 2003-09-11 Andrew Cagney <cagney@redhat.com>
669 * rs6000-tdep.c (rs6000_push_dummy_call): Use
670 regcache_raw_write_signed to set SP_REGNUM, move the operation to
671 near the function's end.
672 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
673 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
674 regcache_raw_write_signed to set SP_REGNUM.
676 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
678 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
679 orig_addrs is set up properly.
681 2003-09-11 Andrew Cagney <cagney@redhat.com>
683 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
684 * gdbarch.h, gdbarch.c: Re-generate.
685 * infcall.c (call_function_by_hand): Update.
686 * hppa-tdep.c (hppa_push_arguments): Update.
687 * ada-lang.c (place_on_stack): Update.
688 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
689 * sparc-tdep.c (sparc_gdbarch_init): Update.
690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
691 * hppa-tdep.c (hppa_gdbarch_init): Update.
692 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
695 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
697 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
698 register do need a frame.
700 2003-09-11 Andrew Cagney <cagney@redhat.com>
702 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
703 buildable since GDB 5.0.
704 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
705 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
706 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
707 * irix4-nat.c: Delete file.
708 * config/mips/irix4.mh: Delete file.
709 * config/mips/irix3.mh: Delete file.
710 * config/mips/irix3.mt: Delete file.
711 * config/mips/tm-irix3.h: Delete file.
712 * config/mips/nm-irix3.h: Delete file.
713 * config/mips/xm-irix3.h: Delete file.
714 * config/mips/nm-irix4.h: Delete file.
715 * config/mips/xm-irix4.h: Delete file.
716 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
718 2003-09-10 J. Brobecker <brobecker@gnat.com>
720 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
721 * Makefile.in (hppa-tdep.o): Update dependencies.
723 2003-09-10 James E Wilson <wilson@specifixinc.com>
725 * MAINTAINERS: Change my e-mail address. Move to paper trail
728 2003-09-10 Kevin Buettner <kevinb@redhat.com>
730 * MAINTAINERS (frv): New ISA entry.
732 2003-09-10 Kevin Buettner <kevinb@redhat.com>
734 * frv-tdep.c (dis-asm.h): Include.
735 * Makefile.in (frv-tdep.o): Update dependencies.
737 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
739 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
740 Fix typo for high range of floating registers.
742 2003-09-09 David Carlton <carlton@kealia.com>
744 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
745 highpc initialization here out of scan_partial_symbols.
746 (scan_partial_symbols): Restructure into a recursive version,
747 calling add_partial_namespace and add_partial_enumeration when
749 (add_partial_namespace): New.
750 (add_partial_enumeration, locate_pdi_sibling): Ditto.
752 2003-09-09 Andrew Cagney <cagney@redhat.com>
754 * rs6000-tdep.c (ppc_push_return_address): Delete function.
755 (rs6000_push_dummy_call): Set LR to BP_ADDR.
756 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
757 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
759 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
760 (rs6000_push_dummy_call): Set the "TOC" register.
762 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
763 methods "max_register_raw_size", "max_register_virtual_size" or
764 "register_virtual_size".
766 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
768 * MAINTAINERS: Update my e-mail address.
770 2003-09-09 Andrew Cagney <cagney@redhat.com>
772 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
773 (rs6000_push_dummy_call): Store the struct return address.
774 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
776 2003-09-09 Andrew Cagney <cagney@redhat.com>
778 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
779 "ppc_sysv_abi_push_arguments".
780 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
781 "ppc_sysv_abi_push_arguments".
782 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
783 instead of "push_arguments".
784 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
786 2003-09-09 Andrew Cagney <cagney@redhat.com>
788 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
789 instead of CALL_DUMMY_ADDRESS.
791 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
793 * p-lang.c: Eliminate "register".
802 * objc-lang.c: Ditto.
804 2003-09-09 Nick Clifton <nickc@redhat.com>
806 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
808 2003-09-04 Andrew Cagney <cagney@redhat.com>
810 * avr-tdep.c: Include "dis-asm.h".
811 * cris-tdep.c: Include "dis-asm.h".
812 (cris_delayed_get_disassembler): Use "struct disassemble_info"
813 instead of corresponding typedef.
814 * h8300-tdep.c: Include "dis-asm.h".
815 * ia64-tdep.c: Include "dis-asm.h".
816 * i386-tdep.c: Include "dis-asm.h".
817 (i386_print_insn): Use "struct disassemble_info" instead of
818 corresponding typedef.
819 * m68k-tdep.c: Include "dis-asm.h".
820 * mcore-tdep.c: Include "dis-asm.h".
821 * mips-tdep.c: Include "dis-asm.h".
822 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
823 instead of corresponding typedef.
824 * ns32k-tdep.c: Include "dis-asm.h".
825 * s390-tdep.c: Include "dis-asm.h".
826 * sparc-tdep.c: Include "dis-asm.h".
827 * vax-tdep.c: Include "dis-asm.h".
828 * v850-tdep.c: Include "dis-asm.h".
829 * mn10300-tdep.c: Include "dis-asm.h".
830 * rs6000-tdep.c: Include "dis-asm.h".
831 * xstormy16-tdep.c: Include "dis-asm.h".
832 (_initialize_xstormy16_tdep): Delete "extern" declaration of
833 print_insn_xstormy16.
834 * Makefile.in (v850-tdep.o): Update dependencies.
835 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
836 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
837 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
838 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
839 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
840 (gdbarch_h): Remove $(dis_asm_h).
841 * disasm.c: Include "dis-asm.h".
842 (dis_asm_read_memory): Use "struct disassemble_info" instead of
843 corresponding typedef.
844 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
845 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
846 * gdbarch.sh: Do not include "dis-asm.h".
847 (struct disassemble_info): Declare opaque.
848 (TARGET_PRINT_INSN): Update declaration.
849 * gdbarch.h, gdbarch.c: Re-generate.
851 2003-09-08 Andrew Cagney <cagney@redhat.com>
853 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
854 CALL_DUMMY_ADDRESS, change to a predicate.
855 * gdbarch.h, gdbarch.c: Re-generate.
856 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
857 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
858 * infcall.c (call_function_by_hand): Ditto.
859 * sparc-tdep.c (sparc_push_return_address): Ditto.
860 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
861 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
862 CALL_DUMMY_ADDRESS with entry_point_address.
863 * v850-tdep.c (v850_push_return_address): Ditto.
864 * s390-tdep.c (s390_push_return_address): Ditto.
865 * rs6000-tdep.c (ppc_push_return_address): Ditto.
866 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
867 * mcore-tdep.c (mcore_push_return_address): Ditto.
868 * cris-tdep.c (cris_push_return_address): Ditto.
869 * arm-tdep.c (arm_push_return_address): Ditto.
871 2003-09-08 Andrew Cagney <cagney@redhat.com>
873 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
874 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
875 and REG_UNMODIFIED to REG_SAME_VALUE.
876 (execute_cfa_program): Update.
877 (dwarf2_frame_cache): Update. Initialize table to
878 REG_UNSPECIFIED, complain if CFI fails to specify a register's
880 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
882 2003-09-08 Andrew Cagney <cagney@redhat.com>
884 * gnu-nat.c: Remove "inline" function attribute.
885 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
887 2003-09-08 Kevin Buettner <kevinb@redhat.com>
889 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
892 2003-09-08 Kevin Buettner <kevinb@redhat.com>
894 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
895 (frame_extra_info): Rename this struct to frv_unwind_cache.
896 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
897 Add fields ``prev_sp'' and ``base''.
898 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
899 (frv_saved_pc_after_call, frv_init_extra_frame_info)
900 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
902 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
903 Revise all callers. Fill in the unwind cache argument and make
904 other adjustments to account for new frame mechanisms.
905 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
906 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
907 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
908 (frv_frame_unwind, frv_frame_base): New structs.
909 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
910 additional arguments expected by this method and adjust function
912 (frv_gdbarch_init): Remove calls to the following functions:
913 set_gdbarch_deprecated_init_frame_pc(),
914 set_gdbarch_deprecated_saved_pc_after_call(),
915 set_gdbarch_deprecated_frame_chain(),
916 set_gdbarch_deprecated_frame_saved_pc(),
917 set_gdbarch_deprecated_frame_init_saved_regs(),
918 set_gdbarch_deprecated_push_arguments(),
919 set_gdbarch_deprecated_push_return_address(),
920 set_gdbarch_deprecated_pop_frame(),
921 set_gdbarch_deprecated_call_dummy_words(),
922 set_gdbarch_deprecated_sizeof_call_dummy_words(),
923 set_gdbarch_deprecated_init_extra_frame_info(),
924 set_gdbarch_deprecated_dummy_write_sp(), and
925 set_gdbarch_deprecated_pc_in_call_dummy().
926 Add calls to the following functions:
927 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
928 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
929 frame_base_set_default().
930 * Makefile.in (frv-tdep.o): Update dependencies.
932 2003-09-09 Mark Kettenis <kettenis@gnu.org>
934 * dwarf2-frame.c (read_encoded_value): Add support for
935 DW_EH_PE_aligned encoding.
937 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
939 * infrun.c (normal_stop): Don't print a message if the inferior
942 2003-09-08 Jim Blandy <jimb@redhat.com>
944 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
945 * dbxread.c: #include "gdb_assert.h".
946 (read_dbx_symtab): If the objfile has no .data section, use the
947 section index for the .bss section instead.
949 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
951 * frame.c (deprecated_safe_get_selected_frame): New function.
952 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
953 * findvar.c (read_var_value): Call it.
955 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
957 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
958 (sh64-tdep.o): Add dependencies.
959 * configure.tgt: Add FIXME to sh-*-linux*.
960 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
961 (sh_gdbarch_init): Always set correct sh_show_regs function
962 pointer. Call sh64_gdbarch_init() if machine type is sh5.
963 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
964 * sh64-tdep.c: New file, containing all sh64 related code from
966 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
967 * config/sh/linux.mt (TDEPFILES): Ditto.
968 * config/sh/nbsd.mt (TDEPFILES): Ditto.
969 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
970 * config/sh/wince.mt (TDEPFILES): Ditto.
972 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
974 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
975 (stop_wait_callback): Handle !lp->signalled also.
976 (lin_lwp_has_pending, flush_callback): New functions.
977 (lin_lwp_wait): Call flush_callback.
978 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
979 (linux_proc_pending_signals): New function.
980 * linux-nat.h (linux_proc_pending_signals): Add prototype.
982 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
984 From Nick Kelsey <nickk@ubicom.com>:
985 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
986 when the stop PC is at the beginning of a function also.
988 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
990 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
991 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
993 2003-09-06 Mark Kettenis <kettenis@gnu.org>
995 * sol-thread.c: Include "gdb_string.h".
997 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
999 * gcore.c: Reorder include files in alphabetical order. Include
1000 "gdb_assert.h". Various coding style fixes.
1001 (derive_stack_segment, derive_heap_segment): Replace check for
1002 non-null BOTTOM and TOP with gdb_assert.
1003 (derive_heap_segment): Replace check for successful creation of
1004 ZERO with gdb_assert.
1005 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1007 2003-09-04 Andrew Cagney <cagney@redhat.com>
1009 * thread-db.c (verbose_dlsym): New function.
1010 (thread_db_load): Use verbose_dlsym
1011 (thread_db_new_objfile): Print that libthread_db was loaded, and
1012 that thread debugging was enabled.
1014 2003-09-04 Andrew Cagney <cagney@redhat.com>
1016 * configure.tgt: Add "mips64*-*-*" target. Delete
1017 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1018 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1019 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1020 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1021 mips*-sony-*, and mips64*-*-elf* targets.
1022 * config/mips/embedl.mt: Delete file.
1023 * config/mips/embedl64.mt: Delete file.
1024 * config/mips/mips.mt: Delete file.
1025 * config/mips/mips64.mt: Delete file.
1026 * config/mips/tm-embed.h: Delete file.
1027 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1028 * config/mips/embed64.mt: Delete out-of-date comment.
1030 2003-09-04 Andrew Cagney <cagney@redhat.com>
1032 * hppa-tdep.c (hppa_gdbarch_init): Set
1033 "have_nonsteppable_watchpoint".
1034 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1035 * mips-tdep.c (mips_dump_tdep): Do not print
1036 HAVE_NONSTEPPABLE_WATCHPOINT.
1037 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1038 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1039 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1040 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1042 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1044 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1045 unused code. Add comment.
1047 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1049 * breakpoint.c (watchpoint_check): Check for pc being in an
1050 epilogue if watchpoint frame couldn't be found.
1052 2003-09-04 Andrew Cagney <cagney@redhat.com>
1054 * Makefile.in: Re-generate all dependencies.
1056 2003-09-03 Andrew Cagney <cagney@redhat.com>
1058 * arch-utils.h (legacy_print_insn): Delete declaration.
1059 * arch-utils.c (legacy_print_insn): Delete function.
1060 * disasm.c (deprecated_tm_print_insn_info): Delete.
1061 (_initialize_disasm): Delete function, contained code initializing
1062 deprecated_tm_print_insn_info.
1063 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1064 (deprecated_tm_print_insn_info): Delete.
1065 (TARGET_PRINT_INSN): Do not provide a default.
1066 * gdbarch.h, gdbarch.c: Re-generate.
1068 2003-09-03 Andrew Cagney <cagney@redhat.com>
1070 * disasm.c (fprintf_disasm): New function.
1071 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1072 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1073 reverts 2003-08-14 change.
1074 (_initialize_disasm): Call "init_disassemble_info", instead of
1075 INIT_DISASSEMBLE_INFO_NO_ARCH.
1077 2003-09-03 Michael Snyder <msnyder@redhat.com>
1079 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1081 2003-09-03 Andrew Cagney <cagney@redhat.com>
1083 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1084 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1085 * symfile.c (syms_from_objfile): Update.
1086 (reread_symbols): `Update
1087 * exec.c (exec_file_attach): Update.
1088 (exec_file_attach): Update.
1089 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1091 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1093 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1095 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1097 (arm_get_cache): Delete macro.
1098 (struct arm_prologue_cache): Update comments. Make saved_regs into
1099 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1101 (thumb_scan_prologue): Update for cache changes. Don't call
1102 DEPRECATED_PC_IN_CALL_DUMMY.
1103 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1104 argument and use it in desperation search for our prologue. Do not
1105 search past the specified PC.
1106 (arm_make_prologue_cache): Simplify.
1108 (arm_prologue_this_id, arm_prologue_prev_register)
1109 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1110 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1111 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1112 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1113 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1115 (arm_frame_chain_valid, arm_find_callers_reg)
1116 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1117 (arm_pop_frame): Delete obsolete methods.
1118 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1120 (arm_gdbarch_init): Update for new frame methods. Register prologue
1121 and sigtramp unwinders. Set the default frame base method.
1123 * Makefile.in (arm-tdep.o): Update dependencies.
1124 * varobj.c (find_frame_addr_in_frame_chain): Call
1125 get_frame_base_address.
1126 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1128 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1130 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1131 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1132 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1133 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1134 Take NEXT_FRAME and CACHE arguments. Call
1135 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1136 Set unwound_pc in CACHE instead of modifying the frame argument.
1137 Don't bother checking the frame type when looking for sigtramp
1139 (arm_make_prologue_cache, arm_frame_chain)
1140 (arm_init_extra_frame_info): New functions.
1142 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1144 * arm-tdep.c (arm_get_cache): Define.
1145 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1146 unwound_sp, unwound_pc, and saved_regs.
1147 (thumb_scan_prologue): Take a cache instead of the frame.
1148 (arm_scan_prologue): Likewise.
1149 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1150 instead of a temporary frame.
1151 (arm_init_extra_frame_info): Allocate and use a cache.
1152 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1154 2003-09-03 Andrew Cagney <cagney@redhat.com>
1156 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1157 * config/mips/wince.mt (TM_CLIBS): Ditto.
1158 * config/sh/wince.mt (TM_CLIBS): Ditto.
1159 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1160 * config/sparc/sp64.mt (CC): Delete.
1162 2003-09-03 Andrew Cagney <cagney@redhat.com>
1164 * defs.h: Do not include "arch-utils.h".
1165 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1166 GDB_MULTI_ARCH_PURE.
1167 * configure.in (GDB_MULTI_ARCH): Do not define.
1168 * configure, config.in: Regenerate.
1169 * configure.tgt: Do not set variable "gdb_multi_arch".
1170 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1171 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1172 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1173 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1174 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1175 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1176 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1177 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1178 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1179 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1180 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1181 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1182 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1183 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1184 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1185 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1186 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1187 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1189 2003-08-30 Michael Chastain <mec@shout.net>
1191 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1192 * config/m68k/nm-hp300hpux.h: Delete.
1193 * config/m68k/tm-hp300hpux.h: Delete.
1194 * config/m68k/xm-hp300hpux.h: Delete.
1195 * config/m68k/xm-hp300bsd.h: Delete.
1196 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1197 tm-hp300hpux.h, xm-hp300hpux.h.
1198 * somsolib.c: Remove comment about hp300 shared libraries.
1200 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1202 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1203 Only define PTRACE_GET_THREAD_AREA is not already defined.
1204 Various style fixes in code and comments and some additional
1205 spelling fixes in comments. Move after functions dealing with
1207 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1210 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1211 frame_unwind_register_unsigned instead of
1212 frame_unwind_unsigned_register.
1214 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1216 * configure.in: Search for gethostbyname in libnsl.
1217 * configure: Regenerated.
1219 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1221 * configure.in: Remove redundant AC_MSG_RESULT in check for
1222 uintptr_t in stdint.h.
1223 * configure: Regenerated.
1225 * amd64-nat.h (struct regcache): Add opaque declaration.
1227 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1228 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1229 Change "register array" to "register cache" in comments.
1230 (x86_64_linux_gregset64_reg_offset): New variable.
1231 (GETREGS_SUPPLIES): Remove macro.
1232 (supply_gregset): Call amd64_supply_native_gregset instead of
1233 x86_64_linux_supply_gregset.
1234 (fill_gregset): Rename `regno' to `regnum'. Call
1235 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1236 (store_regs): Rename `regno' to `regnum'.
1237 (store_fpregs): Rename `regno' to `regnum'.
1238 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1239 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1240 Reorganize function a bit.
1241 (store_inferior_registers): Rename `regno' to `regnum'. Use
1242 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1243 Reorganize function a bit.
1244 (_initialize_x86_64_linux_nat): New function.
1245 * config/i386/x86-64linux.mh.
1247 2003-08-29 Andrew Cagney <cagney@redhat.com>
1249 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1250 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1251 (target_remove_watchpoint): Delete macro.
1252 (target_insert_watchpoint): Delete macro.
1253 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1254 (remote_mips_stopped_by_watchpoint): Delete declaration.
1255 (remote_mips_remove_watchpoint): Delete declaration.
1256 (remote_mips_set_watchpoint): Delete declaration.
1257 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1258 * remote-mips.c (_initialize_remote_mips): Set
1259 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1260 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1261 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1262 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1263 (mips_stopped_by_watchpoint): Rename
1264 remote_mips_stopped_by_watchpoint.
1265 (mips_can_hardware_watchpoint): Rename
1266 remote_mips_can_use_hardware_watchpoint, update function
1269 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1271 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1272 USER_DS. We haven't given them a register number yet.
1274 * amd64-nat.h: New file.
1275 * amd64-nat.c: New file.
1276 * amd64fbsd-nat.c: Include "amd64-nat.h".
1277 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1278 (amd64fbsd32_r_reg_offset): New variable.
1279 (supply_gregset): Simply call amd64_supply_native_gregset.
1280 (fill_gregset): Rename `regno' to `regnum'. Simply call
1281 amd64_collect_native_gregset.
1282 (fill_fpregset): Rename `regno' to `regnum'.
1283 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1284 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1285 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1286 `fpregset_t'. Call amd64_supply_native_gregset instead of
1287 supply_gregset. Call x86_64_supply_fxsave instead of
1289 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1290 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1291 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1292 `fpregset_t'. Call amd64_collect_native_gregset instead of
1293 fill_gregset. Call x86_64_collect_fxsave instead of
1295 (_initialize_am64fbsd_nat): Initialize
1296 amd64_native_gregset32_reg_offset and
1297 amd64_native_gregset64_reg_offset.
1298 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1300 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1301 null pointer. Fix typo in comment.
1303 * regcache.c (supply_register): Reimplement to call
1304 regcache_raw_supply.
1305 (regcache_collect): Reimplement by calling regcache_raw_collect.
1307 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1309 * regcache.c (register_buffer): Consitify first argument.
1310 (regcache_raw_supply, regcache_raw_collect): New
1313 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1315 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1316 by Nathan J. Williams.
1318 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1320 * lin-lwp.c (wait_lwp): New function, copied from
1321 stop_wait_callback. Clean up.
1322 (stop_wait_callback): Use wait_lwp.
1324 2003-08-28 Andrew Cagney <cagney@redhat.com>
1326 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1327 flavour and disassembler options.
1328 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1329 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1330 deprecated_tm_print_insn_info.
1332 2003-08-27 Andrew Cagney <cagney@redhat.com>
1334 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1335 Use target_read_memory.
1336 (s390_get_frame_info): Update. Do not reference
1337 deprecated_tm_print_insn_info.
1338 (s390_check_function_end, s390_is_sigreturn): Ditto.
1340 2003-08-27 Andrew Cagney <cagney@redhat.com>
1342 * Makefile.in (cris-tdep.o): Update dependencies.
1343 * cris-tdep.c: Include "gdb_assert.h".
1344 (cris_gdbarch_init): Set print_insn.
1345 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1346 (cris_delayed_get_disassembler): Simplify, directly call the
1347 disassembler returned by cris_get_disassembler.
1348 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1349 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1350 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1351 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1352 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1353 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1354 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1355 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1356 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1357 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1358 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1359 (gdb_print_insn_sparc): Delete function.
1360 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1361 deprecated_tm_print_insn_info.
1362 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1363 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1364 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1365 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1366 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1367 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1368 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1369 (s390_gdbarch_init): Set print_insn.
1371 2003-08-27 Andrew Cagney <cagney@redhat.com>
1373 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1374 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1375 * infcall.c (call_function_by_hand): Convert the entry point
1376 address into a code address.
1378 2003-08-27 Andrew Cagney <cagney@redhat.com>
1380 * dsrec.c: Include "gdb_string.h".
1381 * Makefile.in (dsrec.o): Update dependencies.
1383 2003-08-27 Michael Chastain <mec@shout.net>
1385 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1387 2003-08-27 Andrew Cagney <cagney@redhat.com>
1389 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1390 (alpha_osf1_init_abi): Do not set call_dummy_address.
1392 2003-08-27 David Carlton <carlton@kealia.com>
1394 From Randolph Chung <tausq@debian.org>:
1395 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1396 compiles with -Wformat-nonliteral -Werror.
1398 2003-08-26 Jim Blandy <jimb@redhat.com>
1400 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1401 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1402 bfd_lookup_symbol, since we only want symbols in code sections.
1403 (look_for_base): Pass zero as the SECT_FLAGS argument to
1404 bfd_lookup_symbol, since we're not concerned about which section
1407 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1409 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1410 we are frameless or the return address register is already known.
1412 2003-08-26 Andrew Cagney <cagney@redhat.com>
1414 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1415 in size. Add comments.
1417 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1419 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1420 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1422 2003-08-26 Jason Merrill <jason@redhat.com>
1424 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1425 case out of #ifdef MIPS block.
1427 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1430 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1431 available before calling SECT_OFF_TEXT.
1432 * PROBLEMS: Remove description of java/1322.
1434 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1436 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1437 bof, and nat0-nat127 as pseudo-registers.
1438 (ia64_frame_cache): New struct used to cache frame info.
1439 (ia64_register_reggroup_p): New routine used to override default
1440 register grouping so registers without names are still saved and
1442 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1444 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1445 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1446 (ia64_alloc_frame_cache): New routine to create a new
1448 (examine_prologue): Change prototype to add next_frame pointer.
1449 Assume frameless until otherwise proven. Verify that the cfm for
1450 current frame matches the cfm that should occur for the prologues
1451 alloc insn and if equal, mark as not frameless. At end of routine,
1452 if not frameless, calculate registers for the previous frame and store
1453 in the cache, if a cache is provided.
1454 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1455 and pass 0 for next_frame.
1456 (ia64_store_return_value): Change to use convert_typed_floating()
1457 instead of calling ia64_convert_to_raw().
1458 (ia64_extract_return_value): Change to use convert_typed_floating()
1459 instead of calling ia64_convert_to_virtual().
1460 (ia64_frame_cache): New routine to support new frame model.
1461 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1462 (ia64_frame_sniffer): Ditto.
1463 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1464 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1465 (ia64_sigtramp_frame_prev_register): Ditto.
1466 (ia64_sigtramp_frame_sniffer): Ditto.
1467 (ia64_frame_base_address): Ditto.
1468 (ia64_extract_struct_value_address): Change to issue error message.
1469 (ia64_frame_align): New routine to align sp.
1470 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1471 (ia64_push_arguments): Removed. Logic moved to
1472 ia64_push_dummy_call().
1473 (ia64_push_return_address): Ditto.
1474 (ia64_unwind_dummy_id): New function.
1475 (ia64_unwind_pc): Ditto.
1476 (ia64_convert_register_p): Ditto.
1477 (ia64_register_to_value): Ditto.
1478 (ia64_value_to_register): Ditto.
1479 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1480 (ia64_register_byte, ia64_register_raw_size): Ditto.
1481 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1482 (ia64_saved_pc_after_call): Ditto.
1483 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1484 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1485 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1486 (ia64_register_convert_to_raw): Ditto.
1487 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1488 (ia64_init_extra_frame_info): Ditto.
1489 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1490 (ia64_gdbarch_init): Remove registering of deprecated functions that
1491 are no longer used. Add registration of new gdbarch functions.
1492 Remove registering deprecated_write_sp. Replace
1493 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1494 Delete set_gdbarch_deprecated_register_convertible(),
1495 set_gdbarch_deprecated_register_convert_to_virtual(), and
1496 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1497 set_gdbarch_deprecated_register_size(),
1498 set_gdbarch_deprecated_register_bytes(),
1499 set_gdbarch_pcregnum(),
1500 set_gdbarch_deprecated_register_byte(),
1501 set_gdbarch_deprecated_register_raw_size(),
1502 set_gdbarch_deprecated_max_register_raw_size(),
1503 set_gdbarch_deprecated_register_virtual_size(),
1504 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1505 Replace set_gdbarch_deprecated_extract_return_value() with
1506 set_gdbarch_extract_return_value(). Remove calls to:
1507 set_gdbarch_deprecated_saved_pc_after_call();
1508 set_gdbarch_deprecated_frame_chain(),
1509 set_gdbarch_deprecated_frame_saved_pc(),
1510 set_gdbarch_deprecated_frame_init_saved_regs(),
1511 set_gdbarch_deprecated_get_saved_register(),
1512 set_gdbarch_deprecated_call_dummy_words(),
1513 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1514 set_gdbarch_deprecated_init_extra_frame_info(),
1515 set_gdbarch_deprecated_frame_args_address(),
1516 set_gdbarch_deprecated_frame_locals_address(),
1517 and set_gdbarch_deprecated_dummy_write_sp().
1518 Add set_gdbarch_convert_register_p(),
1519 set_gdbarch_register_to_value(),
1520 set_gdbarch_value_to_register(),
1521 set_gdbarch_push_dummy_call(),
1522 set_gdbarch_frame_align(),
1523 set_gdbarch_unwind_dummy_id(),
1524 set_gdbarch_unwind_pc(),
1525 frame_unwind_append_sniffer(),
1526 frame_unwind_append_sniffer(),
1527 and frame_base_set_default().
1529 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1531 * configure.tgt: Document need for special "mipsisa64" handling.
1532 (mipsisa64*-*-linux64): Handle as target linux64.
1533 (mipsisa64*-*-*): Handle as target embed64.
1535 2003-08-18 Michael Chastain <mec@shout.net>
1537 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1540 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1542 * i387-tdep.h: Update copyright date.
1543 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1545 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1546 CFLAGS games to reflect reality.
1548 2003-08-24 Andrew Cagney <cagney@redhat.com>
1550 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1551 GDB_MULTI_ARCH is always non-zero.
1552 * osabi.c (_initialize_gdb_osabi): Ditto.
1553 (gdbarch_init_osabi): Ditto.
1554 * sparc-tdep.c: Ditto for #if code.
1556 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1558 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1560 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1562 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1563 x86_64_supply_fxsave.
1564 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1565 x86_64_supply_fxsave.
1566 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1567 x86_64_supply_fxsave.
1569 2003-08-23 Andreas Jaeger <aj@suse.de>
1571 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1574 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1576 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1577 i387_supply_register.
1578 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1579 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1581 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1583 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1585 * i386bsd-nat.c (supply_fpregset): Adjust call to
1587 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1588 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1590 (store_inferior_registers): Remove extraneous whitespace. Call
1591 i387_fill_fsave instead of fill_fpregset.
1592 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1593 (supply_fpregset): Likewise.
1594 * i386v4-nat.c (supply_fpregset): Adjust call to
1596 * i386-interix-nat.c (supply_fpregset): Adjust call to
1598 * i386-linux-nat.c (supply_fpregset): Adjust call to
1600 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1601 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1602 i387supply_fsave and i387_supply_fxsave.
1603 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1604 Incorporate code from `i387_supply_register.
1605 (i387_supply_register): Remove.
1606 (i387_supply_fxsave): Add `regnum' argument.
1608 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1610 (i387_supply_register): remove prototype.
1613 2003-08-22 Michael Chastain <mec@shout.net>
1615 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1616 Add lines for files in gdb/testsuite/gdb.cp/* that are
1617 still not 8.3 unique.
1619 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1621 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1622 TYPE_VPTR_FIELDNO is valid.
1624 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1626 * utils.c (set_width_command): Remove prototypes.
1627 (set_screen_size): New prototype.
1628 (init_page_info): Simplify by fetching the screen size from
1629 Readline. Call set_screen_size.
1630 (set_screen_size): New function.
1631 (set_width): Add missing whitespace in comment.
1632 (set_width_command): Call set_screen_size.
1633 (set_height_command): New function.
1634 (initialize_utils): Fix formatting. Make "set height" command
1635 call set_height_command. Remove redundant code that turns off
1636 pagination if output isn't a terminal. Remove redundant call to
1639 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1641 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1642 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1643 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1644 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1646 (sparc64_register_info): Give the reister with number
1647 SPARC64_STATE_REGNUM a name.
1648 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1650 (sparc64_push_dummy_call): Take BIAS into account when checking
1652 (sparc_software_single_step): Remove assertions that check whether
1653 NPC and NNPC were zero.
1654 (sparc_supply_rwindow): Make public. Merge functionality with
1655 sparc64_supply_rwindow.
1656 (sparc_fill_rwindow): Make public. Merge functionality with
1657 sparc64_fill_rwindow.
1658 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1659 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1660 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1661 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1662 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1664 * reggroups.c: Add whitespace after declarations of local
1665 variables in functions.
1667 2003-08-21 Michael Chastain <mec@shout.net>
1669 * gdbtypes.h: Change array bound type from an int to enum.
1671 2003-08-21 Andrew Cagney <cagney@redhat.com>
1673 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1674 * config/sparc/tm-sparc.h: Ditto.
1675 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1677 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1679 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1681 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1682 (register_objfile_data, set_objfile_data, objfile_data): New
1684 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1686 (allocate_objfile): Call objfile_alloc_data.
1687 (free_objfile): Call objfile_free_data.
1688 (struct objfile_data): New.
1689 (struct objfile_data_registration): New.
1690 (struct objfile_data_registry): New.
1691 (objfile_data_registry): New variable.
1692 (register_objfile_data): New function.
1693 (objfile_alloc_data, objfile_free_data): New functions.
1694 (set_objfile_data, objfile_data): New functions.
1695 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1696 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1697 (_initialize_dwarf2_frame): New function and prototype.
1699 2003-08-21 Andrew Cagney <cagney@redhat.com>
1701 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1702 a specific architecture.
1703 * arch-utils.h (set_architecture_from_arch_mach): Delete
1705 (target_architecture_hook): Delete declaration.
1706 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1707 (default_float_format): Assume GDB_MULTI_ARCH.
1708 (default_double_format): Assume GDB_MULTI_ARCH.
1709 (set_endian_from_file): Delete function.
1710 (arch_ok): Delete function.
1711 (set_arch): Delete function.
1712 (set_architecture_from_arch_mach): Delete function.
1713 (set_architecture_from_file): Delete function.
1714 (set_architecture): Assume GDB_MULTI_ARCH.
1715 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1717 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1719 Rewrite FreeBSD/sparc64 native configuration.
1720 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1721 * sparc64fbsd-nat.c: New file.
1722 * sparc64fbsd-tdep.c: New file.
1723 * sparc64-tdep.c sparc64-tdep.h: New files.
1724 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1725 sparc64fbsd-tdep.o): New dependencies.
1726 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1727 and sparc64fbsd-tdep.c.
1728 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1729 * config/sparc/fbsd.mh: Remove copyright notice.
1730 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1732 * config/sparc/fbsd.mt: Remove copyright notice.
1733 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1734 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1735 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1736 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1737 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1738 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1739 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1740 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1742 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1743 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1745 2003-08-21 Michael Chastain <mec@shout.net>
1747 * symtab.h: Add doco on the space critical structures and
1748 some measurements of space usage.
1750 2003-08-21 Michael Snyder <msnyder@redhat.com>
1752 * tracepoint.c (trace_dump_command): Trace break address
1753 is subject to DECR_PC_AFTER_BREAK.
1754 (set_traceframe_context): Make "trace_line" an int.
1755 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1757 2003-08-20 Michael Snyder <msnyder@redhat.com>
1759 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1760 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1761 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1763 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1764 functions, replace sh_push_dummy_call.
1765 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1767 2003-08-20 Michael Chastain <mec@shout.net>
1769 * gdbtypes.h (struct main_type): Rearrange to save space.
1771 2003-08-20 Michael Snyder <msnyder@redhat.com>
1773 * trad-frame.c: Comment typo fix.
1775 2003-08-20 Michael Snyder <msnyder@redhat.com>
1776 Kevin Buettner <kevinb@redhat.com>
1778 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1779 (frv_frame_init_saved_regs): Add declaration.
1780 (frame_extra_info): Add new field ``saved_regs''.
1781 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1782 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1783 Update frame related code.
1784 (frv_extract_struct_value_address): Adjust formatting.
1785 * Makefile.in (frv-tdep.o): Update dependencies.
1786 * config/frv/tm-frv.h (target_insert_watchpoint)
1787 (target_remove_watchpoint, target_insert_hw_breakpoint)
1788 (target_remove_hw_breakpoint): Delete these macros.
1789 (remote_insert_watchpoint, remote_remove_watchpoint)
1790 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1793 2003-08-20 Michael Chastain <mec@shout.net>
1795 * defs.h (ENUM_BITFIELD): New macro.
1796 * symtab.h (ENUM_BITFIELD): Use it.
1797 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1799 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1801 * MAINTAINERS (write after approval): Add myself.
1803 2003-08-18 Andrew Cagney <cagney@redhat.com>
1805 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1806 * gdbarch.h, gdbarch.c: Re-generate.
1807 * infcall.c (call_function_by_hand): Adjust the SP by
1808 frame_red_zone_size before allocating any stack space.
1809 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1810 * x86-64-tdep.c (x86_64_frame_align): New function.
1811 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1813 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1814 Remove code adjusting SP so that it skips over the Red Zone.
1816 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1818 * NEWS (New native configurations): Mention FreeBSD/amd64.
1820 2003-08-18 Andrew Cagney <cagney@redhat.com>
1822 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1823 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1825 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1827 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1829 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1831 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1833 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1835 * i386-linux-nat.c: Include "linux-nat.h".
1836 (child_post_startup_inferior): New function.
1838 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1840 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1841 at the start of a frameless function. This probably fixes PR
1844 2003-08-17 Michael Chastain <mec@shout.net>
1846 * symfile.c (find_sym_fns): Remove special case for apollo target.
1848 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1850 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1851 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1852 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1853 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1854 (linux_supports_tracevforkdone): New function.
1855 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1857 (child_follow_fork): Handle vfork.
1858 (linux_handle_extended_wait): Likewise. Also handle exec.
1859 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1860 * NEWS: Mention fork tracing.
1862 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1864 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1866 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1868 * Makefile.in (i386-linux-nat.o): Update dependencies.
1869 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1870 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1871 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1872 * i386-linux-nat.c: Include "linux-nat.h".
1873 (child_post_startup_inferior): New function.
1874 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1875 * infptrace.c (kill_inferior): Wrap in #ifdef.
1876 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1877 attaching to each LWP.
1878 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1879 (init_lin_lwp_ops): Fill in some more operations.
1880 * linux-nat.h (linux_enable_event_reporting)
1881 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1883 * linux-nat.c (linux_enable_event_reporting): New function.
1884 (child_post_attach, linux_child_post_startup_inferior)
1885 (child_post_startup_inferior, child_follow_fork)
1886 (linux_handle_extended_wait, kill_inferior): New functions.
1888 2003-08-16 Andrew Cagney <cagney@redhat.com>
1890 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1891 * gdbarch.h, gdbarch.c: Re-generate.
1893 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1895 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1897 2003-08-16 Andrew Cagney <cagney@redhat.com>
1899 * NEWS: Mention that "set prompt-escape-char" was deleted.
1900 * top.c (get_prompt_1): Delete function.
1901 (gdb_prompt_escape):
1902 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1903 prompt-escape-char" command.
1904 (MAX_PROMPT_SIZE): Delete macro.
1905 (get_prompt): Simplify, do not call get_prompt_1.
1907 2003-08-16 Andrew Cagney <cagney@redhat.com>
1909 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1910 -Werror. -Wformat-nonliteral problems.
1912 2003-08-15 J. Brobecker <brobecker@gnat.com>
1914 Further multiarching work mostly for hppa64-*-hpux11:
1915 * hppa-tdep.h: New file.
1916 * hppa-tdep.c: #include hppa-tdep.c.
1917 (hppa32_num_regs): Renamed from hppa_num_regs.
1918 (hppa64_num_regs): New constant.
1919 (hppa64_call_dummy_breakpoint_offset): New constant.
1920 (hppa32_call_dummy_length): New constant.
1921 (hppa64_call_dummy_length): New constant.
1922 (hppa32_stack_align): Make name 32bit explicit.
1923 (hppa32_register_virtual_type): Likewise.
1924 (hppa32_extract_return_value): Likewise.
1925 (hppa32_use_struct_convention): Likewise.
1926 (hppa32_store_return_value): Likewise.
1927 (hppa64_register_virtual_type): New function.
1928 (hppa64_extract_return_value): New function.
1929 (hppa64_use_struct_convention): New function.
1930 (hppa64_store_return_value): New function.
1931 (hppa_frame_locals_address): Remove declaration, function does
1933 (hppa_register_byte): Add support for PA64 ABI.
1934 (hppa_gdbarch_init): Add support for PA64 ABI.
1935 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1936 Make name 32bit explicit.
1937 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1938 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1939 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1940 (hppa64_hpux_frame_base_before_sigtramp): New function.
1941 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1942 * config/pa/tm-hppa64.h: Remove macros that are no longer
1943 necessary now that the gdbarch vector is properly setup.
1944 Transform some macros into function calls. Some minor cleanup.
1945 * config/pa/tm-hppah.h: Update function calls in macros
1946 following the function renaming in hppa-hpux-tdep.c.
1947 * Makefile.in (hppa_tdep_h): New variable.
1948 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1950 2003-08-14 Michael Snyder <msnyder@redhat.com>
1952 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1954 2003-08-13 J. Brobecker <brobecker@gnat.com>
1956 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1957 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1960 2003-08-13 Michael Snyder <msnyder@redhat.com>
1962 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1963 (frv_saved_pc_after_call): Use deprecated ftype.
1964 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1965 (frv_remote_translate_xfer_address): Remove.
1966 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1968 2003-08-13 J. Brobecker <brobecker@gnat.com>
1970 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1971 initialization after the common gdbarch initialization, not before.
1973 2003-08-13 J. Brobecker <brobecker@gnat.com>
1975 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1976 (ADDR_BITS_REMOVE): Remove, redundant.
1978 2003-08-13 J. Brobecker <brobecker@gnat.com>
1980 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1981 gdbarch method to clear the 2 low bits of text addresses.
1983 2003-08-12 Andrew Cagney <cagney@redhat.com>
1985 * Makefile.in (dsrec.o): Update dependencies.
1986 * dsrec.c: Include "gdb_assert.h".
1987 (make_srec): Use snprintf instead of sprintf, use a literal format
1990 2003-08-12 Andrew Cagney <cagney@redhat.com>
1992 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1993 FRAME_OBSTACK_ZALLOC.
1995 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1997 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2000 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2002 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2003 amd64fbsd_sc_reg_offset): Add extern declarations.
2004 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2007 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2009 * MAINTAINERS (write after approval): Update my mail address.
2011 2003-08-10 Andrew Cagney <cagney@redhat.com>
2013 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2015 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2017 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2018 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2019 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2020 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2021 i386bsd_sc_reg_offset): Add extern declarations.
2022 * i386obsd-nat.c: Include "i386-tdep.h"
2023 (_initialize_i386obsd_nat): Remove extern declarations.
2024 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2026 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2029 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2030 instead of frame_read_register.
2031 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2032 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2034 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2035 instead of frame_unwind_unsigned_register. Use
2036 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2037 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2038 instead of read_register. Use builtin_type_void_data_ptr instead
2039 of builtin_type_void_func_ptr when extracting the address of the
2041 (i386_extract_return_value, i386_store_return_value,
2042 i386_pseudo_register_read, i386_pseudo_register_write): Use
2043 register_size instead REGISTER_RAW_SIZE.
2045 2003-08-10 Andrew Cagney <cagney@redhat.com>
2047 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2048 sprintf. Make "name" constant.
2050 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2052 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2053 instead of frame_read_register.
2054 (i387_print_float_info): Use get_frame_register and
2055 get_frame_register_unsigned instead of frame_register_read.
2057 * i386fbsd-nat.c: Include "i386-tdep.h".
2058 (child_resume): Make `eflags' an ULONGEST. Use
2059 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2060 instead of register_read and register_write.
2062 * i386bsd-nat.c (fetch_inferior_registers,
2063 store_inferior_registers): Don't use && at the end of a line.
2064 (_initialize_i386bsd_nat): Fix typo.
2066 * frame.c (_initialize_frame): Add missing backslash.
2068 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2069 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2070 and supply_register instead of manipulating the register buffer
2073 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2074 * config/i386/nm-i386sol2.h
2075 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2077 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2078 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2079 instructions that GCC likes to mingle into the prologue. Fixes
2080 gdb/1253 and gdb/1255.
2082 2003-08-09 Andrew Cagney <cagney@redhat.com>
2085 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2086 * command.h (add_setshow_uinteger_cmd): Declare.
2087 * frame.c (set_backtrace_cmd): New function.
2088 (show_backtrace_cmd): New function.
2089 * frame.c (_initialize_frame): Replace "set/show
2090 backtrace-below-main" with "set/show backtrace past-main". Add
2091 command "set/show backtrace limit".
2092 (backtrace_past_main): Rename "backtrace_below_main".
2093 (backtrace_limit): New variable.
2094 (get_prev_frame): Update. Check the backtrace_limit.
2096 2003-08-09 Andrew Cagney <cagney@redhat.com>
2098 * defs.h (xstrprintf): Declare.
2099 * utils.c (xstrprintf): New function.
2100 * breakpoint.c (insert_breakpoints): Replace sprintf and
2101 non-literal format strings, with xstrprintf and cleanups.
2102 (delete_breakpoint,breakpoint_re_set): Ditto.
2103 (commands_command, insert_breakpoints): Ditto.
2104 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2105 (break_at_finish_command_1): Ditto.
2107 2003-08-09 Andrew Cagney <cagney@redhat.com>
2109 * MAINTAINERS (language support): List Adam Fedor as Objective C
2112 2003-08-08 J. Brobecker <brobecker@gnat.com>
2114 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2115 are now multiarched.
2117 2003-08-08 J. Brobecker <brobecker@gnat.com>
2119 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2120 longer necessary now that hppa64 is partially multiarch'ed.
2122 2003-08-08 Andrew Cagney <cagney@redhat.com>
2124 * interps.c (interp_set): Check for a NULL "old_interp".
2126 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2128 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2129 (install-only): Support DESTDIR.
2130 (uninstall): Likewise.
2131 (install-gdbtk): Likewise.
2133 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2135 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2136 contains something meaningful at all times.
2138 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2140 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2142 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2144 * MAINTAINERS (write after approval): Added self.
2146 2003-08-07 Andrew Cagney <cagney@redhat.com>
2148 * inferior.h (AT_SYMBOL): Define.
2149 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2150 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2151 * mips-tdep.c (mips_call_dummy_address): Delete function.
2152 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2153 set call_dummy_address.
2155 2003-08-07 Andrew Cagney <cagney@redhat.com>
2157 * language.c (op_error): Delete function.
2158 (binop_type_check): Delete function.
2159 * language.h (type_op_error, range_op_error): Delete macros.
2160 (op_error): Delete declaration.
2162 2003-08-07 Andrew Cagney <cagney@redhat.com>
2164 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2166 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2168 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2169 (x86_64_push_arguments): Skip the red zone.
2171 2003-08-05 Andrew Cagney <cagney@redhat.com>
2173 * reggroups.c (reggroup_next): Check for the final entry.
2175 2003-08-04 Andrew Cagney <cagney@redhat.com>
2177 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2178 * cli/cli-script.c (define_command): Call query directly, instead
2179 of passing it a buffer.
2180 * ocd.c (ocd_error): Pass error a constant format string.
2181 * remote-mips.c (mips_error): Use fputs_filtered.
2183 * solib-svr4.c (_initialize_svr4_solib): Update
2184 register_gdbarch_data call.
2185 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2187 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2188 (register_gdbarch_data): Delete "free" parameter. Update
2190 * gdbarch.h, gdbarch.c: Re-generate.
2191 * reggroups.c (_initialize_reggroup): Update.
2192 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2193 * frame-base.c (_initialize_frame_base): Update.
2194 * frame-unwind.c (_initialize_frame_unwind): Update.
2195 * user-regs.c (_initialize_user_regs): Update.
2196 * remote.c (_initialize_remote): Update.
2197 * regcache.c (_initialize_regcache): Update.
2199 * regcache.c (xfree_regcache_descr): Delete function.
2200 (_initialize_regcache): Update call to register_gdbarch_data.
2201 (init_regcache_descr, init_legacy_regcache_descr): Use
2202 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2204 * remote.c (free_remote_state): Delete function.
2205 (_initialize_remote): Update register_gdbarch_data.
2206 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2207 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2209 2003-08-04 Andrew Cagney <cagney@redhat.com>
2211 * reggroups.c (struct reggroup_el): Define.
2212 (struct reggroups): Delete field "nr_group". Replace array
2213 "group" with a "first" to "last" linked list.
2214 (reggroups_init): Update. Allocate using gdbarch's obstack.
2215 (reggroups_free): Delete function.
2216 (add_group): Update. Add "el" parameter.
2217 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2218 (default_groups): Update.
2219 (reggroup_next): Replace reggroups.
2220 (reggroups_dump): Update.
2221 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2222 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2223 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2225 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2227 * Makefile.in (tui-interp.o): Update dependencies.
2229 2003-08-04 David Carlton <carlton@kealia.com>
2231 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2232 to internal_error call.
2233 * source.c (forward_search_command): Add "%s" format argument.
2234 (reverse_search_command): Ditto.
2235 * top.c (quit_confirm): Ditto.
2236 * cli/cli-setshow.c (do_setshow_command): Ditto.
2237 * cp-valprint.c (cp_print_class_method): Replace
2238 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2239 (cp_print_class_member): Ditto.
2240 * event-top.c (command_line_handler): Ditto.
2241 * linux-proc.c (linux_info_proc_cmd): Ditto.
2242 * p-typeprint.c (pascal_type_print_base): Ditto.
2243 * p-valprint.c (pascal_object_print_class_method): Ditto.
2244 (pascal_object_print_class_member): Ditto.
2245 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2246 * remote.c (remote_cisco_section_offsets): Ditto.
2247 * top.c (command_line_input): Ditto.
2248 * utils.c (vwarning,error_stream,quit): Ditto.
2249 * valprint.c (print_floating,print_binary_chars)
2250 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2252 2003-08-04 Andrew Cagney <cagney@redhat.com>
2254 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2256 2003-08-02 Andrew Cagney <cagney@redhat.com>
2258 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2259 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2262 2003-08-02 Andrew Cagney <cagney@redhat.com>
2264 * Makefile.in: Update all dependencies and definitions.
2266 2003-08-02 Adam Fedor <fedor@gnu.org>
2268 * linespec.c (is_objc_method_format): New function
2269 (decode_line_1, locate_first_half): Use it.
2272 2003-08-01 Andrew Cagney <cagney@redhat.com>
2274 * NEWS: Mention that m32r is multi-arch.
2275 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2276 * configure.tgt: Recognize m32r-*-*.
2277 * config/m32r/tm-m32r.h: Delete file.
2278 * config/m32r/m32r.mt: New file.
2279 * m32r-rom.c (m32r_upload_command): Use hostent only when
2280 gethostname succeeds, in order to avoid a compilation
2282 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2285 2003-08-01 Michael Snyder <msnyder@redhat.com>
2287 * sh-tdep.c (sh_frame_align): New gdbarch method.
2288 (sh_gdbarch_init): Set up frame_align method.
2290 2003-07-31 Michael Snyder <msnyder@redhat.com>
2292 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2293 which is already covered by the new frames infrastructure.
2295 2003-07-31 Andrew Cagney <cagney@redhat.com>
2297 * user-regs.c (struct user_reg): Add "next" link.
2298 (struct user_regs): Replace "user" with "first" and "last" links.
2299 (append_user_reg): Add pre-allocated "reg" parameter.
2300 (builtin_user_regs): Provide initial value for "last".
2301 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2302 (user_regs_init): Allocate memory from the gdbarch obstack.
2303 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2304 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2306 (usernum_to_user_reg): New function.
2307 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2308 (value_of_user_reg): Use usernum_to_user_reg.
2309 (user_regs_free): Delete function.
2310 (_initialize_user_regs): Update register_gdbarch_data call.
2312 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2314 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2316 2003-07-30 Michael Snyder <msnyder@redhat.com>
2318 * value.h (value_being_returned): Add a struct_addr argument.
2319 * infcall.c (call_function_by_hand): Pass struct_addr to
2320 value_being_returned.
2321 * infcmd.c (print_return_value): Pass zero as struct_addr.
2322 * values.c (value_being_returned): If struct_addr is passed,
2323 use it instead of trying to recover it from the inferior.
2325 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2327 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2328 the prologue analyzer won't need to attempt to extract the pc
2329 value from the woefully incomplete dummy frame.
2330 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2331 possible. Disable code which modifies the frame.
2333 2003-07-28 Andrew Cagney <cagney@redhat.com>
2335 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2337 (annotate_breakpoints_table, annotate_record): Ditto.
2338 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2339 (annotate_field_name_end, annotate_field_value): Ditto.
2340 (annotate_field_end, annotate_frame_source_begin): Ditto.
2341 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2342 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2343 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2344 (annotate_frame_address_end, annotate_frame_address): Ditto.
2345 (annotate_frame_args, annotate_frame_end): Ditto.
2346 (annotate_frame_where, annotate_arg_begin): Ditto.
2347 (annotate_arg_name_end, annotate_arg_value): Ditto.
2348 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2349 (annotate_function_call, annotate_signal_name): Ditto.
2350 (annotate_signal_string, annotate_signal_name_end): Ditto.
2351 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2352 (annotate_value_begin, annotate_value_history_value): Ditto.
2353 (annotate_value_history_end, annotate_value_end): Ditto.
2354 (annotate_display_begin, annotate_display_number_end): Ditto.
2355 (annotate_display_format, annotate_display_expression): Ditto.
2356 (annotate_display_expression_end, annotate_display_value): Ditto.
2357 (annotate_display_end, annotate_array_section_begin): Ditto.
2358 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2359 (annotate_elt, annotate_array_section_end): Ditto.
2361 2003-07-28 Andrew Cagney <cagney@redhat.com>
2363 * regcache.c (struct regcache_descr): Update comments on
2365 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2366 sizeof_raw_register_valid_p.
2367 (init_regcache_descr): Set nr_raw_registers and
2368 sizeof_raw_register_valid_p before calling
2369 init_legacy_regcache_descr.
2371 2003-07-28 Andrew Cagney <cagney@redhat.com>
2373 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2376 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2378 * thread.c (info_threads_command): Use get_selected_frame ().
2379 Check that there is at least one non-sentinel frame.
2381 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2383 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2384 (m68hc11_pop_frame): Remove.
2385 (m68hc11_frame_saved_pc): Remove.
2386 (m68hc11_frame_chain): Remove.
2387 (m68hc11_frame_init_saved_regs): Remove.
2388 (m68hc11_init_extra_frame_info): Remove.
2389 (m68hc11_store_struct_return): Remove.
2390 (m68hc11_saved_pc_after_call): Remove.
2392 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2394 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2395 frame unwind information.
2396 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2397 and adapted for frame unwinding.
2398 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2399 (m68hc11_unwind_pc): New function.
2400 (m68hc11_frame_unwind_cache): New function to analyze frames.
2401 (m68hc11_frame_this_id): New function to create new frame struct.
2402 (m68hc11_frame_prev_register): New function to unwind a register from
2404 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2405 (m68hc11_frame_p): New function for the above.
2406 (m68hc11_frame_base_address): New function to return fp of frame.
2407 (m68hc11_frame_args_address): Update for frame.
2408 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2409 (m68hc11_unwind_sp): New function.
2410 (m68hc11_unwind_dummy_id): New function.
2411 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2414 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2416 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2417 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2418 when we are beyond the current pc.
2420 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2422 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2423 from m68hc11_push_arguments.
2424 (m68hc11_push_arguments): Remove.
2425 (m68hc11_push_return_address): Remove.
2426 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2427 handlers; remove deprecated_extra_stack_alignment_needed.
2429 2003-07-27 Andrew Cagney <cagney@redhat.com>
2431 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2432 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2433 REAL_PC and not the pointer.
2434 * hppa-hpux-tdep.c: Include frame.h
2436 2003-07-27 Andrew Cagney <cagney@redhat.com>
2438 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2439 GDB_MULTI_ACH_PARTIAL.
2441 2003-07-27 Andrew Cagney <cagney@redhat.com>
2443 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2444 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2445 operator at start and not end of line.
2446 (decode_prologue): Ditto.
2447 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2448 frame_unwind_register_unsigned instead of
2449 frame_unwind_unsigned_register.
2450 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2452 (m32r_push_dummy_call): Use register_size instead of
2454 (m32r_frame_sniffer): Replace m32r_frame_p.
2455 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2456 * m32r-rom.c (report_transfer_performance): Delete extern
2458 (m32r_load, m32r_upload_command): Use print_transfer_performance
2459 instead of report_transfer_performance.
2460 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2461 / add_show_from_set.
2463 2003-07-26 Andrew Cagney <cagney@redhat.com>
2465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2466 store_return_value and extract_struct_value_address.
2468 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2471 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2472 NULL, default to the section containing PC.
2474 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2476 * NEWS: Mention "regs" deprecated for m68hc11 too.
2478 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2479 (m68hc11_print_register): New function to print out one register.
2480 (m68hc11_print_registers_info): New function to print registers.
2481 (show_regs): Deprecate and use the above.
2482 (m68hc11_gdbarch_init): Install the print_registers_info.
2484 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2486 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2487 that we have a SIGTRAP before returning non-zero.
2489 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2490 Elena Zannoni <ezannoni@redhat.com>
2492 * linespec.c (decode_line_2): Avoid crash if
2493 find_function_start_sal() returns empty record.
2495 2003-07-23 Andreas Schwab <schwab@suse.de>
2497 * ia64-tdep.c (ia64_print_insn): New function.
2498 (ia64_gdbarch_init): Set print_insn to it.
2499 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2500 deprecated_tm_print_insn_info.
2502 2003-07-22 Michael Snyder <msnyder@redhat.com>
2504 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2505 handle 8-bit returns (long long).
2506 (h8300h_extract_return_value): Ditto.
2507 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2509 2003-07-22 Andrew Cagney <cagney@redhat.com>
2511 * gdbarch.c Include "gdb_obstack.h".
2512 (struct gdbarch): Add an "obstack".
2513 (alloc_gdbarch_data): Allocate the gdbarch data using
2514 GDBARCH_OBSTACK_CALLOC.
2515 (free_gdbarch_data): Delete function.
2516 (gdbarch_obstack_zalloc): New function.
2517 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2518 Assert that the architecture is not initialized.
2519 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2520 vector from the obstack.
2521 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2522 architecture obstack.
2523 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2524 (set_gdbarch_data): Assert that the data is not initialized.
2525 (struct gdbarch_data): Delete member "free".
2526 (register_gdbarch_data): Do not initialize "free".
2527 * gdbarch.h, gdbarch.c: Re-generate.
2529 2003-07-22 Andrew Cagney <cagney@redhat.com>
2531 * configure.in (build_warnings): Add -Wformat-nonliteral.
2532 * configure: Re-generate.
2534 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2536 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2538 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2540 * findvar.c (read_var_value): Remove case for thread local storage
2541 variables. It is now entirely handled by the dwarf2 location
2543 * printcmd.c (address_info): Ditto.
2544 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2546 (struct symbol): Remove objfile field, which was used by
2547 LOC_THREAD_LOCAL_STATIC only.
2548 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2549 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2550 usage of objfile pointer.
2551 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2552 thread local variables.
2553 Add include of objfiles.h.
2554 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2556 * Makefile.in (dwarf2loc.o): Update dependencies.
2558 2003-07-22 Andrew Cagney <cagney@redhat.com>
2560 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2562 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2563 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2564 (struct value): Add opaque declaration.
2565 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2567 2003-07-21 Andrew Cagney <cagney@redhat.com>
2569 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2570 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2572 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2574 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2575 regcache_cooked_read_unsigned instead of read_register.
2576 (m68hc11_saved_pc_after_call): Likewise.
2577 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2578 instead of write_register.
2579 (m68hc11_register_type): New function.
2580 (m68hc11_register_virtual_type): Remove.
2581 (m68hc11_store_return_value): Convert to use the regcache.
2582 (m68hc11_extract_struct_value_address): Likewise.
2583 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2584 m68hc11_register_type; undeprecate store_return_value and
2585 extract_struct_value_address.
2587 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2589 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2590 and translate to use regcache.
2591 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2593 2003-07-18 Andrew Cagney <cagney@redhat.com>
2595 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2596 * gdbarch.h, gdbarch.c: Re-generate.
2597 * i386-tdep.c (i386_gdbarch_init): Do not set
2598 DWARF2_BUILD_FRAME_INFO.
2599 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2601 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2602 DWARF2_BUILD_FRAME_INFO.
2604 2003-07-18 Andrew Cagney <cagney@redhat.com>
2606 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2607 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2609 2003-07-18 Andrew Cagney <cagney@redhat.com>
2611 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2612 frame_unwind_address_in_block, instead of frame_pc_unwind.
2613 (dwarf2_frame_cache): Ditto.
2615 2003-07-18 Andrew Cagney <cagney@redhat.com>
2617 * user-regs.h (struct gdbarch): Declare opaque.
2618 * ui-out.h (struct ui_file): Declare opaque.
2619 * dwarf2-frame.h (struct frame_info): Declare opaque.
2621 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2623 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2625 (procfs_meminfo): Change strerror to safe_strerror.
2626 (procfs_can_run): Remove K&R badness.
2628 2003-07-17 Michael Snyder <msnyder@redhat.com>
2630 * remote-sim.c: Comment typo fix.
2632 2003-07-17 Andrew Cagney <cagney@redhat.com>
2634 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2636 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2637 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2638 GDB_MULTI_ARCH_PARTIAL.
2640 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2642 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2643 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2644 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2646 2003-07-16 Theodore A. Roth <troth@openavr.org>
2648 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2650 (avr_frame_unwind_cache): Don't unwind FP for main.
2652 Save the computed prev_sp.
2653 (avr_saved_regs_unwinder): Remove function.
2654 (avr_frame_prev_register): Use PC unwind logic from
2655 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2657 2003-07-16 Andrew Cagney <cagney@redhat.com>
2659 * frame-base.h (frame_base_p_ftype): Delete definition.
2660 (frame_base_append_predicate): Delete declaration.
2661 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2662 (frame_unwind_append_predicate): Delete declaration.
2663 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2664 (append_predicate): Delete parameter "p".
2665 (frame_unwind_append_predicate): Delete function.
2666 (frame_unwind_append_sniffer): Update call to append_predicate.
2667 (frame_unwind_free): Delete function.
2668 (_initialize_frame_unwind): Pass NULL as "free" to
2669 register_gdbarch_data.
2670 (frame_unwind_init): Append the dummy_frame_sniffer.
2671 (frame_unwind_find_by_frame): Simplify.
2672 * frame-base.c (struct frame_base_table): Delete field "p".
2673 (append_predicate): Delete parameter "p".
2674 (frame_base_append_predicate): Delete function.
2675 (frame_base_append_sniffer): Update call to append_predicate.
2676 (frame_base_free): Delete function.
2677 (frame_base_find_by_frame): Simplify.
2678 (_initialize_frame_base): Pass NULL as "free" to
2679 register_gdbarch_data.
2680 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2681 (x86_64_sigtramp_frame_sniffer): Replace
2682 "x86_64_sigtramp_frame_p".
2683 (x86_64_init_abi): Set the frame unwind sniffers.
2684 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2685 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2686 (m68k_gdbarch_init): Set the frame unwind sniffers.
2687 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2688 "i386_sigtramp_frame_p".
2689 (i386_frame_sniffer): Replace "i386_frame_p".
2690 (i386_gdbarch_init): Set the frame unwind sniffers.
2691 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2692 (avr_gdbarch_init): Set the frame unwind sniffers.
2693 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2694 "alpha_sigtramp_frame_p"
2695 (alpha_heuristic_frame_sniffer): Replace
2696 "alpha_heuristic_frame_p".
2697 (alpha_gdbarch_init): Set the frame unwind sniffers.
2698 (alpha_dwarf2_init_abi): Ditto.
2699 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2700 "alpha_debug_frame_p".
2701 (alpha_mdebug_frame_base_sniffer): Replace
2702 "alpha_mdebug_frame_base_p".
2703 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2704 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2705 (d10v_gdbarch_init): Set the frame unwind sniffer.
2706 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2707 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2708 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2709 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2710 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2711 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2713 2003-07-16 Michael Snyder <msnyder@redhat.com>
2715 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2716 should go thru sh_dsp_register_sim_regno, else the dsp regs
2717 will not get the right values.
2719 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2721 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2722 deprecated_store_floating by call to store_typed_floating.
2723 (sh_sh4_register_convert_to_raw): Substitute call to
2724 deprecated_extract_floating by call to extract_typed_floating.
2726 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2728 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2730 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2732 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2733 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2734 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2736 (do_pseudo_register): Remove.
2737 (sh_push_dummy_code): New function.
2738 (sh64_store_struct_return): Rename from sh_store_struct_return.
2739 Only called for sh64 now.
2740 (sh_extract_struct_value_address): Regcache'ify.
2741 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2742 and accomodate new tasks.
2743 (sh64_push_return_address): Rename from sh_push_return_address.
2744 Only called for sh64 now.
2745 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2747 (sh3e_sh4_extract_return_value): Regcache'ify.
2748 (sh_default_store_return_value): Ditto.
2749 (sh3e_sh4_store_return_value): Ditto.
2750 (sh_default_register_byte): Remove.
2751 (sh_sh4_register_byte): Remove.
2752 (sh_default_register_raw_size): Remove.
2753 (sh_sh4_register_raw_size): Remove.
2754 (sh_register_virtual_size): Remove.
2755 (sh_sh3e_register_virtual_type): Remove.
2756 (sh_sh3e_register_type): New function.
2757 (sh_sh4_register_virtual_type): Remove.
2758 (sh_sh4_register_type): New function.
2759 (sh_default_register_virtual_type): Remove.
2760 (sh_default_register_type): New function.
2761 (do_fv_register_info): Add parameters to accomodate call from
2762 sh_print_registers_info.
2763 (do_dr_register_info): Ditto.
2764 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2765 Add parameters to accomodate call from sh_print_registers_info.
2766 (sh_do_fp_register): Ditto.
2767 (sh64_do_pseudo_register): Call do_dr_register_info,
2768 do_fv_register_info and sh_do_fp_register with default parameters.
2769 (sh_do_register): Add parameters to accomodate call from
2770 sh_print_registers_info.
2771 (sh_print_register): Ditto.
2772 (sh_print_registers_info): Rename from sh_do_registers_info.
2773 Add parameters to be used as gdbarch_print_registers_info
2774 implementation. Accomodate removed do_pseudo_register function
2776 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2777 function pointer. Call sh_print_register with default parameters.
2778 (sh64_do_registers_info): Call sh_print_registers_info instead of
2779 sh_do_registers_info.
2780 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2781 detection of deprecated vs. non-deprecated functionality.
2782 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2783 function pointer assignments by direct function calls.
2785 2003-07-15 Andrew Cagney <cagney@redhat.com>
2787 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2788 (frame_register_unwind, create_new_frame): Ditto.
2789 (legacy_get_prev_frame, get_frame_type): Ditto.
2790 (get_frame_base_address): Use frame_base_find_by_frame.
2791 (get_frame_locals_address): Use frame_base_find_by_frame.
2792 (get_frame_args_address): Use frame_base_find_by_frame.
2793 * frame-base.h (frame_base_sniffer_ftype): Declare.
2794 (frame_base_append_sniffer): Declare.
2795 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2796 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2797 (frame_base_append_sniffer): New function.
2798 (frame_base_append_predicate): Add a NULL sniffer.
2799 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2800 (struct frame_base_table): Add "sniffer".
2801 (frame_base_free): Free the "sniffer" table.
2802 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2803 (frame_unwind_append_sniffer): Declare.
2804 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2805 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2806 (struct frame_unwind_table): Add "sniffer", delete "middle".
2807 (append_predicate): Add "sniffer" parameter, append the sniffer.
2808 (frame_unwind_init): Update append_predicate call.
2809 (frame_unwind_append_sniffer): New function.
2810 (frame_unwind_append_predicate): Update append_predicate call.
2811 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2813 2003-07-15 Andrew Cagney <cagney@redhat.com>
2815 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2816 before code inhibiting repeated unwind attempts. Add to
2817 commentary on that test's problems.
2818 * blockframe.c (inside_main_func): Look for "main" in the minimal
2820 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2823 2003-07-15 Andrew Cagney <cagney@redhat.com>
2825 * complaints.c (struct explanation): Define.
2826 (struct complaints): Change type of "explanation" to "struct
2828 (symfile_explanations): Convert to a "struct explanation" table.
2829 (vcomplaint): Update.
2831 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2833 * x86-64-linux-nat.c (regmap): Removed.
2834 (supply_gregset, fill_gregset): Call
2835 x86_64_linux_(fill,supply)_gregset functions.
2836 * x86-64-linux-tdep.c (USER_*): New defines.
2837 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2838 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2840 (fetch_core_registers): Ditto.
2841 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2842 * x86-64-linux-tdep.h: New file.
2843 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2845 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2847 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2849 * x86-64-tdep.c (x86_64_store_return_value): Use
2850 regcache_cooked_write_part instead of regcache_cooked_write.
2852 * configure.host: Add x86_64-*-freebsd*.
2853 * configure.tgt: Add x86_64-*-freebsd*.
2854 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2855 * amd64fbsd-nat.c: New file.
2856 * amd64fbsd-tdep.c: New file.
2857 * config/i386/nm-fbsd64.h: New file.
2858 * config/i386/fbsd64.mh: New file.
2859 * config/i386/fbsd64.mt: New file.
2861 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2863 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2864 `sc_regs_offset' and `sc_fpregs_offset'.
2865 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2866 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2867 (alpha_sigtramp_register_address): Rewrite to use new members of
2868 `struct gdbarch_tdep'.
2869 (alpha_gdbarch_init): Initialize new members of struct
2871 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2872 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2873 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2874 (alphafbsd_pc_in_sigtramp): Implement.
2875 (alphafbsd_sigtramp_offset): New function.
2876 (alphafbsd_sigcontext_addr): New function.
2877 (alphafbsd_init_abi): Initialize signal trampoline related members
2878 of `struct gdbarch_tdep'.
2879 (_initialize_alphafbsd_tdep): Add prototype.
2881 2003-07-11 Theodore A. Roth <troth@openavr.org>
2883 * Makefile.in (install-only): Quote sed expression when generating
2886 2003-07-11 Richard Henderson <rth@redhat.com>
2888 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2889 * dwarf2-frame.c: Include complaints.h.
2890 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2891 variable initialization; return NULL on error.
2892 (decode_frame_entry): New.
2894 2003-07-11 Andrew Cagney <cagney@redhat.com>
2896 * frame.h (frame_address_in_block): Delete declaration.
2897 * blockframe.c (frame_address_in_block): Delete function.
2898 (get_frame_block): Use get_frame_address_in_block.
2899 (block_innermost_frame): Ditto.
2900 * stack.c (print_frame, backtrace_command_1): Ditto.
2902 * frame.h (get_frame_address_in_block): Declare.
2903 (frame_unwind_address_in_block): Declare.
2904 * frame.c (frame_unwind_address_in_block): New function.
2905 (get_frame_address_in_block): New function.
2907 2003-07-10 Andrew Cagney <cagney@redhat.com>
2909 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2910 pre-default. Note: re-generate has no effect.
2912 2003-07-10 Andrew Cagney <cagney@redhat.com>
2914 * gdbarch.sh: When a variable, but not a function, compare against
2915 0. Fix problem in previous patch.
2916 * gdbarch.c: Re-generate.
2918 2003-07-10 Andrew Cagney <cagney@redhat.com>
2920 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2921 functions against NULL, not 0.
2922 * gdbarch.c: Re-generate.
2924 2003-07-10 Fred Fish <fnf@ninemoons.com>
2926 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2927 null string instead of a null pointer.
2928 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2930 2003-07-09 Michael Snyder <msnyder@redhat.com>
2932 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2934 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2936 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2937 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2938 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2939 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2940 * x86-64-tdep.c: ... from here.
2942 2003-07-09 Andreas Schwab <schwab@suse.de>
2944 * m68k-tdep.h (enum struct_return): Define.
2945 (struct gdbarch_tdep): Add struct_return.
2946 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2947 bytes are padded to the right, not to the left. Pass struct value
2948 address in register %a1, not on stack.
2949 (m68k_use_struct_convention): New function.
2950 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2951 struct_return in tdep to pcc_struct_return.
2952 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2955 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2957 * somread.c (som_symfile_offsets): Fix compilation error.
2959 2003-07-09 Andrew Cagney <cagney@redhat.com>
2961 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2962 Add comments about the checks.
2964 2003-07-08 Andrew Cagney <cagney@redhat.com>
2966 * Makefile.in: Make dependency section headers consistent.
2967 (config_h): Move to $BUILD headers section.
2968 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2969 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2970 (ada-exp.tab.c): Move to YACC/LEX section.
2971 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2972 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2974 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2976 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2977 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2978 of strerror with safe_strerror, use ISO C function definitions,
2979 and replace instances of sprintf with snprintf.
2981 2003-07-07 Andrew Cagney <cagney@redhat.com>
2983 * frame.c (get_prev_frame): Enable check for identical frames.
2984 Update comments. Update error messages.
2986 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2988 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2990 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2992 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2993 sort_symtab_syms, no longer necessary.
2995 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2997 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2999 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3001 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3002 (mips_register_byte): Likewise.
3004 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3006 * Makefile.in (sparc_tdep_h): New.
3007 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3008 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3009 * sparc-linux-nat.c: Include "sparc-tdep.h".
3010 * sparc-nat.c: Likewise.
3011 * sparc-tdep.c: Likewise.
3012 * sparc64nbsd-nat.c: Likewise.
3013 * sparcnbsd-nat.c: Likewise.
3014 * sparcnbsd-tdep.c: Likewise.
3015 * sparc-tdep.h: New file.
3016 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3017 and sparc_npc_regnum.
3019 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3021 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3022 (mips_linux_cannot_store_register): List supported instead of
3023 unsupported registers.
3025 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3027 * disasm.c (dump_insns): Separate instructions from addresses.
3029 2003-07-07 Andreas Schwab <schwab@suse.de>
3031 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3033 * m68k-tdep.c (NUM_FREGS): Delete.
3034 (SIG_PC_FP_OFFSET): Delete.
3035 (TARGET_M68K): Delete.
3036 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3037 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3038 P_MOVEL_SP, P_MOVEML_SP): Define.
3039 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3041 (m68k_register_raw_size): Delete.
3042 (m68k_register_virtual_size): Delete.
3043 (m68k_register_type): Renamed from m68k_register_virtual_type and
3044 add gdbarch argument.
3045 (m68k_store_struct_return): Delete.
3046 (m68k_deprecated_extract_return_value): Delete.
3047 (m68k_deprecated_extract_struct_value_address): Delete.
3048 (m68k_frame_chain): Delete.
3049 (m68k_frame_saved_pc): Delete.
3050 (m68k_fix_call_dummy): Delete.
3051 (m68k_push_dummy_frame): Delete.
3052 (m68k_pop_frame): Delete.
3053 (m68k_extract_return_value): New function.
3054 (m68k_store_return_value): Rewrite using regcache.
3055 (m68k_extract_struct_value_address): Rewrite using regcache.
3056 (m68k_push_dummy_call): New function.
3057 (struct m68k_frame_cache): Define.
3058 (m68k_alloc_frame_cache): New function.
3059 (m68k_analyze_frame_setup): New function.
3060 (m68k_analyze_register_saves): New function.
3061 (m68k_analyze_prologue): New function.
3062 (m68k_skip_prologue): Rewrite using above functions.
3063 (m68k_unwind_pc): New function.
3064 (m68k_frame_cache): New function.
3065 (m68k_frame_this_id): New function.
3066 (m68k_frame_prev_register): New function.
3067 (m68k_frame_unwind): New variable.
3068 (m68k_frame_p): New function.
3069 (m68k_sigtramp_frame_cache): New function.
3070 (m68k_sigtramp_frame_this_id): New function.
3071 (m68k_sigtramp_frame_prev_register): New function.
3072 (m68k_sigtramp_frame_unwind): New variable.
3073 (m68k_sigtramp_frame_p): New function.
3074 (m68k_frame_base_address): New function.
3075 (m68k_frame_base): New function.
3076 (m68k_unwind_dummy_id): New function.
3077 (fill_gregset): Use regcache_collect.
3078 (fill_fpregset): Likewise.
3079 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3081 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3082 deprecated_init_frame_pc, deprecated_store_struct_return,
3083 deprecated_extract_return_value, deprecated_store_return_value,
3084 deprecated_frame_chain, deprecated_frame_saved_pc,
3085 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3086 deprecated_register_virtual_size,
3087 deprecated_max_register_raw_size,
3088 deprecated_max_register_virtual_size,
3089 deprecated_register_virtual_type, deprecated_register_size,
3090 deprecated_register_byte, deprecated_register_bytes,
3091 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3092 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3093 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3094 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3095 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3096 deprecated_push_dummy_frame, deprecated_pop_frame,
3097 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3098 only if SYSCALL_TRAP is defined. Set extract_return_value,
3099 store_return_value, extract_struct_value_address, register_type,
3100 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3102 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3103 M68K_MAX_REGISTER_SIZE): Define.
3104 (struct m68k_sigtramp_info): Define.
3105 (struct gdbarch_tdep): Add get_sigtramp_info.
3106 * m68klinux-nat.c (fetch_register): Use register_size instead of
3107 REGISTER_RAW_SIZE. Don't put assignment in if.
3108 (store_register): Likewise.
3109 (fetch_inferior_registers): Likewise.
3110 (store_inferior_registers): Likewise.
3111 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3112 (m68k_linux_frame_saved_pc): Delete.
3113 (m68k_linux_sigcontext_reg_offset,
3114 m68k_linux_ucontext_reg_offset): Define.
3115 (m68k_linux_get_sigtramp_info): New function.
3116 (m68k_linux_extract_return_value): Rewrite using regcache.
3117 (m68k_linux_store_return_value): Likewise.
3118 (m68k_linux_extract_struct_value_address): Likewise.
3119 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3120 Don't set deprecated_frame_saved_pc,
3121 deprecated_extract_return_value, deprecated_store_return_value,
3122 deprecated_extract_struct_value_address. Set
3123 extract_return_value, store_return_value,
3124 extract_struct_value_address.
3126 2003-07-07 Andrew Cagney <cagney@redhat.com>
3128 * expprint.c: Include "user-regs.h" instead of "frame.h".
3129 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3130 frame_map_regnum_to_name.
3131 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3132 (frame_map_name_to_regnum): Simplify, call
3133 user_reg_map_name_to_regnum.
3134 (frame_map_regnum_to_name): Simplify, call
3135 user_reg_map_regnum_to_name.
3136 (frame_register_unwind): Update.
3137 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3138 (_initialize_frame_reg): Call user_reg_add_builtin.
3139 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3140 (value_of_register): Use value_of_user_reg.
3141 * eval.c (evaluate_subexp_standard): Update.
3142 * parse.c (write_dollar_variable): Update.
3143 * d10v-tdep.c (d10v_print_registers_info): Update.
3144 * infcmd.c (registers_info): Update.
3145 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3146 (builtin_regs_h): Delete macro.
3147 (user_regs_h): Define.
3148 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3149 (builtin-regs.o): Delete target.
3150 (user-regs.o): Specify dependencies.
3151 (expprint.o): Update dependencies.
3152 (findvar.o): Update dependencies.
3153 (frame.o): Update dependencies.
3154 (std-regs.o): Update dependencies.
3156 2003-07-06 Christopher Faylor <cgf@redhat.com>
3158 * win32-nat.c (solib_symbols_add): Use one variable for all section
3159 address stuff. Pass variable rather than address of variable to
3160 safe_symbol_file_add.
3162 2003-07-06 Andreas Schwab <schwab@suse.de>
3164 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3166 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3168 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3170 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3172 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3174 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3176 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3177 * config/i386/nto.mh: New file.
3178 * config/i386/nm-nto.h: New file.
3179 * configure.host: Add i[3456]86-*-nto*.
3181 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3183 * remote-vx.c (vx_add_symbols): Fix compilation error.
3185 2003-07-03 Andrew Cagney <cagney@redhat.com>
3187 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3188 * gdbarch.h, gdbarch.c: Re-generate.
3189 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3190 (legacy_register_name): Declare.
3191 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3192 (REGISTER_NAME): Define.
3193 * sparc-tdep.c (legacy_register_name): New function.
3194 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3195 (REGISTER_NAME): Define.
3196 (hppa64_register_name): Declare.
3197 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3198 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3199 (hppa64_register_name): New function.
3200 (hppa_register_name): New function.
3201 * arch-utils.c (legacy_register_name): Delete.
3202 * arch-utils.h (legacy_register_name): Delete.
3204 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3206 * cli/cli-interp.c (cli_interpreter_resume): Update the
3207 cli_uiout's stream to gdb_stdout.
3209 2003-07-03 Andrew Cagney <cagney@redhat.com>
3211 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3213 * gdbarch.h, gdbarch.c: Re-generate.
3214 * regcache.c (init_regcache_descr): Use legacy code when either
3215 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3217 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3219 * NEWS: Move "set logging" entry into GDB 6.0 section.
3221 2003-07-02 Jim Blandy <jimb@redhat.com>
3223 * s390-tdep.c (struct frame_extra_info): new member:
3224 'stack_bought_valid'.
3225 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3226 initialize fextra_info->stack_bought.
3227 (s390_frameless_function_invocation): Don't trust the value of
3228 fextra_info_ptr->stack_bought unless
3229 fextra_info->stack_bought_valid is set.
3231 New S390 prologue analyzer.
3232 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3233 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3234 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3235 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3236 compute_x_addr, s390_on_stack, s390_store,
3237 s390_get_signal_frame_info): New functions.
3238 (S390_NUM_SPILL_SLOTS): New macro.
3239 (s390_get_frame_info): Rewritten.
3240 (is_arg_reg): Deleted.
3242 Break out the decoding of S/390 instructions into separate
3243 functions, to make it more legible, and easier to check
3245 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3246 is_rx, is_rxe): New functions.
3247 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3248 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3249 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3250 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3251 enums for opcode values. (Is this an improvement?)
3253 2003-07-02 Andrew Cagney <cagney@redhat.com>
3255 * i386-tdep.c: Revert change committed as part of trad-frame code
3258 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3260 * breakpoint.c (insert_catchpoint): Make static.
3262 2003-07-02 Andreas Schwab <schwab@suse.de>
3264 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3265 former ia64_push_arguments and ia64_push_return_address, and use
3266 regcache functions instead of read/write_register.
3267 (ia64_gdbarch_init): Set push_dummy_call instead of
3268 deprecated_push_arguments and deprecated_push_return_address.
3270 2003-07-01 Andreas Jaeger <aj@suse.de>
3272 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3274 Set %rax only to number of SSE registers used.
3276 2003-07-01 Andrew Cagney <cagney@redhat.com>
3278 * trad-frame.h: Update comments, a -1 .addr is reserved.
3279 (trad_frame_value_p, trad_frame_addr_p): Declare.
3280 (trad_frame_reg_p): Declare.
3281 (trad_frame_set_value): Rename trad_frame_register_value.
3282 (trad_frame_set_unknown): Declare.
3283 * trad-frame.c (trad_frame_realreg_p): New function.
3284 (trad_frame_addr_p, trad_frame_value_p): New function.
3285 (trad_frame_set_unknown): New function.
3286 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3287 (trad_frame_prev_register): Use trad_frame_realreg_p,
3288 trad_frame_addr_p and trad_frame_value_p.
3289 (trad_frame_set_value): Rename trad_frame_register_value.
3290 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3291 and trad_frame_set_value.
3293 2003-06-30 Jim Blandy <jimb@redhat.com>
3295 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3296 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3297 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3298 for 16 registers, and then 32 more bytes.
3299 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3301 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3302 Move up in the file, since it's now used by is_simple_arg.
3303 (is_simple_arg): Don't assume registers are four bytes long.
3304 Exclude all double arguments. Extended floats are not simple
3306 (is_power_of_two): New function.
3307 (pass_by_copy_ref): Call is_power_of_two, and check that the
3308 length fits in a register, rather than listing all the acceptable
3309 sizes. Extended floats are not passed by reference.
3310 (s390_push_arguments): Don't assume registers are four bytes long.
3311 Reserve an argument register to point to the buffer for structures
3312 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3313 S390_STACK_FRAME_OVERHEAD.
3315 2003-06-30 Andreas Schwab <schwab@suse.de>
3317 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3318 format error message.
3320 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3322 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3324 2003-06-30 David Carlton <carlton@kealia.com>
3326 Band-aid for PR c++/1245.
3327 * Makefile.in (cp-support.o): Depend on complaints_h.
3328 * cp-support.c: Include complaints.h. Add declaration for
3329 find_last_component.
3330 (cp_find_first_component): Separate code into
3331 cp_find_first_component_aux.
3332 (cp_find_first_component_aux): Call demangled_name_complaint.
3333 (demangled_name_complaint): New.
3335 2003-06-30 Andrew Cagney <cagney@redhat.com>
3337 * remote.c (remote_write_bytes): Explicitly compute and then use
3338 the payload size. Update comments to reflect. Fixes problem of
3339 GDB not sending small packets as found by Fred Fish.
3341 2003-06-30 Andrew Cagney <cagney@redhat.com>
3343 * remote.c (remote_async_wait): Fix -Wformat problem.
3345 2003-06-29 Andrew Cagney <cagney@redhat.com>
3347 * remote.c (remote_wait): Call error, and not warning, when the
3349 (remote_async_wait): Ditto.
3351 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3353 * sparc-tdep.c (sparc_y_regnum): Make external again.
3355 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3357 * cli/cli-logging.c (pop_output_files): Add void to function
3360 2003-06-29 Andrew Cagney <cagney@redhat.com>
3362 * frame.c (frame_register_unwind): Use unsigned char when dumping
3363 the buffer contents.
3365 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3367 * cli/cli-logging.c: New file.
3368 * cli-out.c (struct ui_out_data): Add original_stream.
3369 (cli_redirect): New function.
3370 (cli_ui_out_impl): Add cli_redirect.
3371 (cli_out_new): Initialize original_stream.
3372 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3373 (uo_redirect, ui_out_redirect): New.
3374 * ui-out.h (struct ui_out_impl): Add redirect member.
3375 (redirect_ftype): New.
3376 (ui_out_redirect): Add prototype.
3377 * Makefile.in: Add rules for cli-logging.c.
3378 * NEWS: Mention "set logging".
3380 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3382 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3384 2003-06-27 Andrew Cagney <cagney@redhat.com>
3386 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3387 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3388 * avr-tdep.c (avr_call_dummy_address): Delete function.
3389 (avr_gdbarch_init): Do not set call_dummy_address.
3391 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3393 * symfile.c (syms_from_objfile): Move variables to inner block.
3394 Move the checks for the non-mainline case a bit earlier to avoid
3395 doing some useless computations.
3397 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3399 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3401 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3403 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3406 2003-06-26 Michael Chastain <mec@shout.net>
3408 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3409 gdb/testsuite/gdb.c++/pr-1210.exp.
3411 2003-06-26 Andrew Cagney <cagney@redhat.com>
3413 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3414 altivec_expression.h and altivec_registers.h.
3416 2003-06-26 Andrew Cagney <cagney@redhat.com>
3418 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3419 info->mach when MIPS16. Patch suggested by Fred Fish.
3421 2003-06-26 Andrew Cagney <cagney@redhat.com>
3423 * utils.c (internal_vproblem): Print the problem to a reason
3424 buffer and then pass to query. Make the msg variable more local.
3426 2003-06-26 Andrew Cagney <cagney@redhat.com>
3428 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3429 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3430 * gdbarch.h, gdbarch.c: Re-generate.
3431 * frame-base.c (default_frame_args_address): Update. Use
3432 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3434 (default_frame_locals_address): Ditto for
3435 DEPRECATED_FRAME_LOCALS_ADDRESS.
3436 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3437 (vax_frame_num_args): Update.
3438 (vax_gdbarch_init): Update.
3439 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3440 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3441 * mcore-tdep.c (mcore_gdbarch_init): Update.
3442 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3443 * ia64-tdep.c (ia64_gdbarch_init): Update.
3444 * symtab.h (address_class): Update comments.
3445 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3446 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3447 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3448 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3449 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3450 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3451 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3452 * alpha-mdebug-tdep.c: Update.
3453 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3455 2003-06-26 Andreas Jaeger <aj@suse.de>
3457 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3458 of SSE registers so that varargs functions work. Rework handling
3459 of passing arguments on the stack.
3460 (x86_64_store_return_value): Return double and float values in SSE
3463 2003-06-24 Michael Chastain <mec@shout.net>
3465 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3466 the "constructor breakpoints ignored" bug.
3468 2003-06-25 David Carlton <carlton@kealia.com>
3470 * MAINTAINERS: Update e-mail address.
3472 2003-06-24 Jim Blandy <jimb@redhat.com>
3474 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3476 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3478 (ppc_linux_init_abi): Register it as the
3479 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3481 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3482 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3485 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3486 (ppc64_standard_linkage_target): Use it.
3488 2003-06-23 Andrew Cagney <cagney@redhat.com>
3490 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3491 for 0 "int0" and 4 "int32" sized registers.
3492 * gdbtypes.c (builtin_type_int0): Define.
3493 (build_gdbtypes): Initialize builtin_type_int0.
3494 * gdbtypes.h (builtin_type_int0): Declare.
3496 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3499 as characters are unsigned.
3501 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3504 * dwarfread.c (struct_type): Skip static fields without crashing.
3506 2003-06-22 Andrew Cagney <cagney@redhat.com>
3508 GDB 6.0 branch created.
3510 * PROBLEMS: Update. Empty.
3513 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3515 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3516 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3518 2003-06-22 Andrew Cagney <cagney@redhat.com>
3520 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3521 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3524 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3526 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3529 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3531 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3532 argument of val_print.
3533 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3534 to the address argument of baseclass_offset or target_read_memory.
3535 Do add it to the argument of cp_print_value_fields.
3537 2003-06-21 Andrew Cagney <cagney@redhat.com>
3539 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3540 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3541 instead of 0..NUM_REGS.
3542 (mips_register_reggroup_p): New function.
3543 (mips_pseudo_register_write): New function.
3544 (mips_pseudo_register_read): New function.
3545 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3546 based on the register's type.
3547 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3549 (mips_get_saved_register): Simplify. Assert that REGNO is a
3551 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3552 (mips_register_type): Replace mips_register_virtual_type. Map
3553 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3555 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3556 that the register is cooked / virtual.
3557 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3558 Only get the extra info when needed.
3559 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3560 (mips32_heuristic_proc_desc): Fetch the cooked register.
3561 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3562 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3563 (mips_print_register): Use gdbarch_register_type, instead of
3564 REGISTER_VIRTUAL_TYPE.
3565 (print_gp_register_row): Use gdbarch_register_type, instead of
3566 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3567 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3568 Print the pseudo / cooked registers.
3569 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3570 Print the pseudo / cooked registers.
3571 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3572 REG_NUM is pseudo / cooked.
3573 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3574 (mips_n32n64_xfer_return_value): Ditto.
3575 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3576 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3577 (mips_register_sim_regno): New function.
3578 (mips_gdbarch_init): Set deprecated_register_byte,
3579 register_group_p, pseudo_register_write, pseudo_register_read,
3580 register_sim_regno, and num_pseudo_regs. Set register_type,
3581 instead of register_virtual_type.
3582 * Makefile.in (mips-tdep.o): Update dependencies.
3583 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3584 REGISTER_VIRTUAL_TYPE.
3585 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3586 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3587 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3588 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3589 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3591 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3593 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3594 * cli/cli-cmds.c: Include "gdb_vfork.h".
3595 (shell_escape): Use vfork.
3597 2003-06-21 Andrew Cagney <cagney@redhat.com>
3599 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3600 32 bit floating-point register saves.
3602 * frame.h (deprecated_unwind_get_saved_register): Delete.
3603 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3604 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3605 and deprecated_get_next_frame_hack instead of
3606 deprecated_unwind_get_saved_register.
3608 * mips-tdep.c (mips_dump_tdep): Do not print
3609 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3611 * frame.c (get_frame_register): New function.
3612 (frame_unwind_register_signed): New function.
3613 (get_frame_register_signed): New function.
3614 (frame_unwind_register_unsigned): New function.
3615 (get_frame_register_unsigned): New function.
3616 * frame.h: Add comments on naming schema.
3617 (get_frame_register, frame_unwind_register_signed): Declare.
3618 (get_frame_register_signed, get_frame_register_signed): Declare.
3619 (frame_unwind_register_unsigned): Declare.
3620 (get_frame_register_unsigned): Declare.
3622 2003-06-20 Theodore A. Roth <troth@openavr.org>
3624 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3626 2003-06-20 Theodore A. Roth <troth@openavr.org>
3628 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3629 (avr_read_sp): Ditto.
3631 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3633 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3634 * config/arm/nm-linux.h: Likewise.
3635 * config/arm/tm-linux.h: Likewise.
3636 * config/ia64/nm-linux.h: Likewise.
3637 * config/ia64/tm-ia64.h: Likewise.
3638 * config/s390/tm-linux.h: Likewise.
3639 * config/s390/tm-s390.h: Likewise.
3640 * s390-nat.c: Likewise.
3641 * s390-tdep.c: Likewise.
3643 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3644 * config/ia64/linux.mt: Likewise.
3645 * config/m68k/linux.mh: Likewise.
3646 * config/mips/linux.mt: Likewise.
3647 * config/powerpc/linux.mh: Likewise.
3648 * config/sh/linux.mt: Likewise.
3650 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3652 * solib.c (solib_open): Change tests for whether to search
3653 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3656 2003-06-19 Theodore A. Roth <troth@openavr.org>
3658 * avr-tdep.c (avr_frame_address): Delete function.
3659 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3660 set_gdbarch_frame_args_address.
3662 2003-06-19 Andrew Cagney <cagney@redhat.com>
3664 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3665 (REGISTER_CONVERT_FROM_TYPE): Delete.
3666 (mips_register_convert_to_type): Delete declaration.
3667 (mips_register_convert_from_type): Delete declaration.
3668 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3671 2003-06-19 Michael Snyder <msnyder@redhat.com>
3673 * linux-nat.h: New file.
3674 * linux-nat.c: Include linux-nat.h.
3675 * lin-lwp.c: Include linux-nat.h.
3676 Move struct lwp_info def to linux-nat.h.
3677 * linux-proc.c: Include linux-nat.h.
3678 (linux_make_note_section): Iterate over lwps instead of threads.
3679 (linux_do_thread_registers): Use lwp instead of merged pid.
3680 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3681 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3682 Add dependency on linux_nat_h.
3684 2003-06-19 Theodore A. Roth <troth@openavr.org>
3686 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3688 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3690 * varobj.c (get_type, get_target_type): Use check_typedef.
3692 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3694 * breakpoint.c (insert_catchpoint): Call internal_error.
3696 2003-06-19 Theodore A. Roth <troth@openavr.org>
3698 * avr-tdep.c (avr_push_dummy_code): Delete function.
3699 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3701 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3703 * arch-utils.c (default_prepare_to_proceed): Remove.
3704 (generic_prepare_to_proceed): Remove.
3705 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3706 (generic_prepare_to_proceed): Remove prototype.
3707 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3708 * gdbarch.c: Regenerate.
3709 * gdbarch.h: Regenerate.
3710 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3711 * hppah-nat.c (hppa_switched_threads): Remove.
3712 * infrun.c (prepare_to_proceed): New static function, copied from
3713 generic_prepare_to_proceed. Remove select_it argument.
3714 (proceed): Call prepare_to_proceed.
3715 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3717 (ptrace_wait): Don't set the removed variables.
3718 (hppa_switched_threads): Remove.
3719 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3720 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3721 (lin_lwp_prepare_to_proceed): Remove prototype.
3722 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3723 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3725 2003-06-18 Theodore A. Roth <troth@openavr.org>
3727 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3729 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3730 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3731 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3732 (AVR_PROLOGUE_*): Enumerate prologue types.
3733 (struct frame_extra_info): Remove.
3734 (struct avr_unwind_cache): Define.
3735 (avr_write_sp): Delete function.
3736 (avr_read_fp): Ditto.
3737 (avr_init_extra_frame_info): Ditto.
3738 (avr_pop_frame): Ditto.
3739 (avr_frame_saved_pc): Ditto.
3740 (avr_saved_pc_after_call): Ditto.
3741 (avr_push_return_address): Ditto.
3742 (avr_frame_chain): Ditto.
3743 (avr_store_struct_return): Ditto.
3744 (avr_push_arguments): Ditto.
3745 (avr_scan_prologue): Update comments. Changed to set up the info for
3746 cache unwinding. Now returns end of prologue PC.
3747 (avr_skip_prologue): Better handling of functions lacking a prologue
3748 by using avr_scan_prologue.
3749 (avr_scan_arg_moves): New function.
3750 (avr_saved_regs_unwinder): Ditto.
3751 (avr_frame_unwind_cache): Ditto.
3752 (avr_unwind_pc): Ditto.
3753 (avr_frame_this_id): Ditto.
3754 (avr_frame_prev_register): Ditto.
3755 (avr_frame_p): Ditto.
3756 (avr_frame_base_address ): Ditto.
3757 (avr_unwind_dummy_id): Ditto.
3758 (avr_push_dummy_code): Ditto.
3759 (push_stack_item): Ditto.
3760 (pop_stack_item): Ditto.
3761 (avr_push_dummy_call): Ditto.
3762 (struct stack_item): Define.
3763 (avr_frame_unwind): Declare structure.
3764 (avr_frame_base): Ditto.
3765 (avr_gdbarch_init): Remove calls to
3766 set_gdbarch_deprecated_init_frame_pc,
3767 set_gdbarch_deprecated_target_read_fp,
3768 set_gdbarch_deprecated_dummy_write_sp,
3769 set_gdbarch_deprecated_fp_regnum,
3770 set_gdbarch_deprecated_push_arguments,
3771 set_gdbarch_deprecated_push_return_address,
3772 set_gdbarch_deprecated_pop_frame,
3773 set_gdbarch_deprecated_store_struct_return,
3774 set_gdbarch_deprecated_frame_init_saved_regs,
3775 set_gdbarch_deprecated_init_extra_frame_info,
3776 set_gdbarch_deprecated_frame_chain,
3777 set_gdbarch_deprecated_frame_saved_pc,
3778 set_gdbarch_deprecated_saved_pc_after_call.
3779 Add calls to set_gdbarch_push_dummy_call,
3780 set_gdbarch_push_dummy_code,
3781 frame_unwind_append_predicate,
3782 frame_base_set_default,
3783 set_gdbarch_unwind_dummy_id,
3784 set_gdbarch_unwind_pc.
3787 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3789 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3790 registers for H8/300S.
3791 (h8300_print_registers_info): Ditto.
3792 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3794 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3796 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3797 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3798 (lin_lwp_wait): Likewise. Update comments.
3799 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3800 (pull_pid_from_list, linux_record_stopped_pid): New.
3802 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3804 * ada-lang.c (scan_discrim_bound): Name first argument.
3805 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3806 declared by ALL_BLOCK_SYMBOLS.
3808 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3810 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3811 ("regcache.h"): Include it.
3812 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3814 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3816 * NEWS: Mention gdbserver detach change and "disconnect" command.
3817 * infcmd.c (disconnect_command): New function.
3818 (_initialize_infcmd): Add ``disconnect'' command.
3819 * remote.c (remote_async_detach): Delete.
3820 (remote_detach): Merge remote_async_detach.
3821 (remote_disconnect): New.
3822 (init_remote_ops): Set to_disconnect.
3823 (init_remote_cisco_ops): Likewise.
3824 (init_remote_async_ops): Likewise. Use remote_detach.
3825 * target.c (cleanup_target): Default to_disconnect.
3826 (update_current_target): Inherit to_disconnect.
3827 (target_disconnect, debug_to_disconnect): New functions.
3828 (setup_target_debug): Set to_disconnect.
3829 * target.h (struct target_ops): Add to_disconnect.
3830 (target_disconnect): Add prototype.
3832 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3834 * breakpoint.c (insert_catchpoint): New function.
3835 (insert_breakpoints): Use catch_exceptions to call
3836 insert_catchpoint. Disable catchpoints if they fail to insert.
3838 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3840 * symfile.c (reread_symbols): Clear sym_private.
3842 2003-06-17 Andrew Cagney <cagney@redhat.com>
3844 * trad-frame.h (struct frame_info): Add opaque declaration.
3845 * remote-fileio.h (struct cmd_list_element): Add opaque
3847 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3850 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3852 * remote.c (remote_prepare_to_store): Replace call to
3853 deprecated_read_register_bytes with multiple regcache_raw_read
3856 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3858 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3859 (nto_find_and_open_solib): Likewise.
3860 (nto_init_solib_absolute_prefix): Likewise.
3861 (_initialize_nto_tdep): Fix indentation.
3863 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3865 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3867 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3869 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3871 2003-06-17 Jim Blandy <jimb@redhat.com>
3873 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3875 2003-06-16 Theodore A. Roth <troth@openavr.org>
3877 * avr-tdep.c (avr_extract_return_value): New function.
3878 (avr_gdbarch_init): Set extract_return_value method.
3880 2003-06-16 Andrew Cagney <cagney@redhat.com>
3882 * frame.h (deprecated_get_next_frame_hack): Declare.
3883 * frame.c (legacy_saved_regs_prev_register): Only require
3884 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3885 there are always saved regs.
3886 (deprecated_generic_get_saved_register): Do not require
3887 DEPRECATED_FRAME_INIT_SAVED_REGS.
3888 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3889 use frame ID unwind instead.
3890 (deprecated_get_next_frame_hack): New function.
3892 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3894 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3895 (h8300_push_dummy_call): ...this function. Some minor optimization.
3896 (h8300_push_return_address): Remove.
3897 (h8300_gdbarch_init): Remove calls to
3898 set_gdbarch_deprecated_dummy_write_sp,
3899 set_gdbarch_deprecated_push_arguments and
3900 set_gdbarch_deprecated_push_return_address.
3901 Add call to set_gdbarch_push_dummy_call.
3903 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3905 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3906 (E_PSEUDO_EXR_REGNUM): Ditto.
3907 (h8300_is_argument_spill): Check for instructions moving argument
3908 registers into safe registers.
3909 (h8300_skip_prologue): Check for stm instruction to push registers
3910 used for register variables onto stack.
3911 (gdb_print_insn_h8300): Remove.
3912 (h8300_examine_prologue): Add a comment.
3913 (h8300_register_name): Take pseudo registers into account.
3914 (h8300s_register_name): Ditto.
3915 (h8300sx_register_name): Ditto.
3916 (h8300_print_register): Ditto.
3917 (h8300_print_registers_info): Define "nice" printing order.
3918 (h8300_saved_pc_after_call): Take pseudo registers into account.
3919 (h8300_register_type): Ditto. Return type used for remote connection
3920 when requesting real CCR or EXR register, return actual type when
3921 requesting pseudo CCR or EXR.
3922 (h8300_pseudo_register_read): New function.
3923 (h8300_pseudo_register_write): Ditto.
3924 (h8300_dbg_reg_to_regnum): Ditto.
3925 (h8300s_dbg_reg_to_regnum): Ditto.
3926 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3927 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3928 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3929 set_gdbarch_print_insn architecture dependent.
3930 Call set_gdbarch_pseudo_register_read and
3931 set_gdbarch_pseudo_register_write.
3932 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3934 2003-06-16 Andrew Cagney <cagney@redhat.com>
3936 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3937 * gdbarch.h, gdbarch.c: Re-generate.
3938 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3939 * s390-tdep.c (s390_gdbarch_init): Update.
3940 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3941 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3942 * mips-tdep.c (mips_gdbarch_init): Update.
3943 * mcore-tdep.c (mcore_gdbarch_init): Update.
3944 * cris-tdep.c (cris_gdbarch_init): Update.
3945 * infcall.c (call_function_by_hand): Update.
3946 * ia64-tdep.c (ia64_push_arguments): Update comment.
3947 * frame.c (legacy_get_prev_frame): Do not assume
3948 SAVE_DUMMY_FRAME_TOS_P.
3949 * dummy-frame.c (find_dummy_frame): Update comment.
3951 2003-06-16 Andrew Cagney <cagney@redhat.com>
3953 * regcache.c (do_cooked_read): Do not use register_valid_p.
3955 2003-06-15 Theodore A. Roth <troth@openavr.org>
3957 * avr-tdep.c (avr_register_type): Remove a blank line.
3958 (avr_scan_prologue): Correct some comments.
3960 2003-06-15 Theodore A. Roth <troth@openavr.org>
3962 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3964 Properly scan prologues generated by gcc with the -mcall-prologues
3966 Add code to scan -mcall-prologues for mega devices.
3968 2003-06-15 Theodore A. Roth <troth@openavr.org>
3970 * avr-tdep.c (avr_register_byte): Delete function.
3971 (avr_register_raw_size): Delete function.
3972 (avr_register_virtual_size): Delete function.
3973 (avr_register_virtual_type): Delete function.
3974 (avr_register_type): New function.
3975 (avr_address_to_pointer): Remove unused code.
3976 (avr_read_fp): Need to read FP as two separate bytes due to change to
3977 avr_register_type() usage.
3978 (avr_gdbarch_init): Don't set deprecated_register_size.
3979 Don't set deprecated_register_bytes.
3980 Don't set deprecated_register_byte.
3981 Don't set deprecated_register_raw_size.
3982 Don't set deprecated_max_register_raw_size.
3983 Don't set deprecated_register_virtual_size.
3984 Don't set deprecated_max_register_virtual_size.
3985 Don't set deprecated_register_virtual_type.
3986 Set register_type method.
3988 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3990 * Makefile.in (linux-nat.o): Add rule.
3991 * linux-nat.c: New file.
3992 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3993 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3994 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3995 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3996 * config/arm/linux.mh (NATDEPFILES): Likewise.
3997 * config/i386/linux.mh (NATDEPFILES): Likewise.
3998 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3999 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4000 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4001 * config/mips/linux.mh (NATDEPFILES): Likewise.
4002 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4003 * config/s390/s390.mh (NATDEPFILES): Likewise.
4004 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4006 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4008 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4009 replace out-of-date comment.
4011 2003-06-15 Andrew Cagney <cagney@redhat.com>
4013 * rdi-share/host.h (Fail): Change to a varargs function.
4014 * remote-rdi.c (Fail): Update.
4016 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4018 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4019 (i386_convert_register_p, i386_register_to_value,
4020 i386_register_from_value): Handle types longer than 8 bytes.
4022 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4024 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4025 Move floating-point code to new function in i387-tdep.c.
4026 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4027 New functions containing code moved here from i386-tdep.c.
4028 * i387-tdep.h: Add opaque declaration for `struct type'.
4029 (i387_register_to_value, i387_value_to_register): New prototypes.
4030 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4031 (x86_64_init_abi): Set convert_register_p, register_to_value and
4032 value_to_register here.
4034 2003-06-14 Andrew Cagney <cagney@redhat.com>
4036 * mips-tdep.c (mips_register_to_value): Make static.
4037 (mips_value_to_register): Make static.
4038 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4039 * ia64-tdep.c (ia64_register_raw_size): Make static.
4040 (ia64_register_virtual_size): Make static.
4041 (ia64_register_byte): Make static.
4042 * i387-tdep.c: Include "i387-tdep.h".
4043 (print_387_control_word): Delete function.
4044 (print_387_status_word): Delete function.
4045 (print_387_status_bits): Delete function.
4046 (print_387_control_bits): Delete function.
4047 * Makefile.in (i387-tdep.o): Update dependencies.
4048 * rdi-share/host.h (Fail): Declare.
4049 * remote-rdi.c (Fail): Update to match declaration.
4051 2003-06-14 Andrew Cagney <cagney@redhat.com>
4053 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4054 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4055 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4056 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4057 * README: Delete reference to remote-array.
4058 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4059 (remote-array.o): Delete target.
4060 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4061 * remote-array.c: Delete file.
4063 2003-06-14 Andrew Cagney <cagney@redhat.com>
4064 Mark Kettenis <kettenis@gnu.org>
4066 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4067 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4068 parameter with "frame".
4069 * gdbarch.h, gdbarch.c: Re-generate.
4070 * frame.h (put_frame_register): Declare.
4071 * frame.c (put_frame_register): New function.
4072 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4073 (legacy_register_to_value): Rewrite, use "frame" to get the
4075 (legacy_value_to_register): Rewrite, use "frame" to find the
4076 register's location before storing.
4077 * arch-utils.h (legacy_convert_register_p): Update.
4078 (legacy_register_to_value, legacy_value_to_register): Update.
4079 * findvar.c (value_from_register): Rewrite, eliminate use of
4080 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4081 "frame" to REGISTER_TO_VALUE.
4082 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4083 lval_reg_frame_relative + lval_register branch of the switch. Do
4084 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4085 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4086 I386_EDI_REGNUM): New defines.
4087 (i386_next_regnum, i386_convert_register_p,
4088 i386_register_to_value, i386_value_to_register): New functions.
4089 (i386_register_convertible, i386_register_convert_to_virtual,
4090 i386_convert_to_raw): Remove functions.
4091 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4092 value_to_register instead of register_convertible,
4093 register_convert_to_virtual and register_convert_to_raw.
4094 * mips-tdep.c (mips_convert_register_p): New function.
4095 (mips_value_to_register): Replace mips_register_convert_from_type.
4096 (mips_register_to_value): Replace mips_register_convert_to_type.
4097 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4099 * alpha-tdep.c (alpha_convert_register_p): Update.
4100 (alpha_value_to_register): Update, store the register.
4101 (alpha_register_to_value): Update, fetch the register.
4103 2003-06-14 Theodore A. Roth <troth@openavr.org>
4105 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4106 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4107 Don't set deprecated_call_dummy_words.
4108 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4109 Don't set remote_translate_xfer_address.
4110 (avr_io_reg_read_command): Remove commented out debug printf.
4113 2003-06-14 Theodore A. Roth <troth@openavr.org>
4115 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4116 causes gdb to seg fault.
4118 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4120 * sparc-nat.c (fetch_inferior_registers): Correct
4121 a reference to "registers".
4123 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4125 * Makefile.in (exc_request_U_h): Define
4126 (exc_request_S_h): Likewise.
4127 (msg_reply_S_h): Likewise.
4128 (msg_U_h): Likewise.
4129 (notify_S_h): Likewise.
4130 (process_reply_S_h): Likewise.
4131 (gnu-nat.o): Depend on gdb_obstack_h
4132 * gnu-nat.c: Include "gdb_obstack.h".
4134 2003-06-13 Andrew Cagney <cagney@redhat.com>
4136 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4137 * gdbarch.h, gdbarch.c: Re-generate.
4139 2003-06-13 Andrew Cagney <cagney@redhat.com>
4141 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4142 when deprecated REGISTER macros can be deleted.
4143 * gdbarch.h, gdbarch.c: Re-generate.
4145 2003-06-13 Jim Blandy <jimb@redhat.com>
4147 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4148 Linux entry point symbols for _dl_debug_state, too.
4150 2003-06-13 Andrew Cagney <cagney@redhat.com>
4152 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4153 available, do not use the FP register, and always save the TOS.
4154 * dummy-frame.c (dummy_frame_this_id): Do not assert
4155 SAVE_DUMMY_FRAME_TOS.
4156 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4157 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4158 (i386_push_dummy_call): Add 8 to the returned SP.
4159 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4160 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4161 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4162 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4163 (x86_64_push_dummy_call): Return "sp + 16".
4164 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4165 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4166 save_dummy_frame_tos.
4168 2003-06-13 Jim Blandy <jimb@redhat.com>
4170 * frv-tdep.c (frv_use_struct_convention): Delete static
4171 declaration for function deleted in my change of 2003-06-12.
4173 2003-06-13 Theodore A. Roth <troth@openavr.org>
4175 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4176 (avr_pointer_to_address): Shift code addrs left 1 bit.
4177 (avr_convert_from_func_ptr_addr): Delete function since operation is
4178 better handled by avr_address_to_pointer and avr_pointer_to_address.
4179 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4181 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4183 From Kelley Cook <kelleycook@wideopenwest.com>:
4184 * configure.host: Accept i[34567]86 variants.
4185 * configure.tgt: Likewise.
4186 * nlm/configure.in: Likewise.
4187 * nlm/configure: Regenerated.
4189 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4191 * arm-tdep.c (solib-svr4.h): Dont' include it.
4192 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4193 * arm-linux-tdep.c: ... here. Make static.
4194 (arm_linux_init_abi): Register it.
4195 (solib-svr4.h): Include it.
4196 * Makefile.in: Update dependencies.
4197 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4198 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4200 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4202 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4203 indicate registers used for return values.
4204 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4205 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4207 (h8300_init_extra_frame_info): Ditto.
4208 (h8300_frame_locals_address): Removed.
4209 (h8300_frame_args_address): Removed.
4210 (h8300_extract_return_value): Use new regcache structure. Only care
4212 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4213 (h8300_store_return_value): Use new regcache structure. Only care
4215 (h8300h_store_return_value): Same function for 32 bit CPUs.
4216 (h8300_store_struct_return): Removed.
4217 (h8300_extract_struct_value_address): Use new regcache structure.
4218 (h8300h_extract_struct_value_address): Removed.
4219 (h8300_push_dummy_code): New function.
4220 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4221 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4222 set_gdbarch_store_return_value architecture dependent.
4223 Call set_gdbarch_push_dummy_code and
4224 set_gdbarch_extract_struct_value_address.
4225 Remove calls to set_gdbarch_frame_args_address,
4226 set_gdbarch_frame_locals_address,
4227 set_gdbarch_deprecated_store_struct_return,
4228 set_gdbarch_deprecated_extract_return_value,
4229 set_gdbarch_deprecated_extract_struct_value_address,
4230 set_gdbarch_deprecated_call_dummy_words and
4231 set_gdbarch_deprecated_sizeof_call_dummy_words.
4233 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4235 * h8300-tdep.c (h8300_register_byte): Remove.
4236 (h8300h_register_byte): Remove.
4237 (h8300_register_virtual_type): Remove. Substitute by...
4238 (h8300_register_type): New function.
4239 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4240 (h8300h_extract_struct_value_address): Ditto.
4241 (h8300_gdbarch_init): Drop calls to
4242 set_gdbarch_deprecated_register_byte and
4243 set_gdbarch_deprecated_register_virtual_type.
4244 Add call to set_gdbarch_register_type.
4246 2003-06-13 Andrew Cagney <cagney@redhat.com>
4248 * gdbarch.sh: Update comments on registers.
4249 (deprecated_register_byte): Rename register_byte.
4250 (deprecated_register_raw_size): Rename register_raw_size.
4251 (deprecated_register_virtual_size): Rename register_virtual_size.
4252 (deprecated_register_virtual_type): Rename register_virtual_type.
4253 * gdbarch.h, gdbarch.c: Re-generate.
4254 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4255 * vax-tdep.c (vax_gdbarch_init): Update.
4256 * v850-tdep.c (v850_gdbarch_init): Update.
4257 * sparc-tdep.c (sparc_gdbarch_init): Update.
4258 * sh-tdep.c (sh_gdbarch_init): Update.
4259 * s390-tdep.c (s390_gdbarch_init): Update.
4260 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4261 * ns32k-tdep.c: Update.
4262 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4263 * mips-tdep.c (mips_gdbarch_init): Update.
4264 * mcore-tdep.c (mcore_gdbarch_init): Update.
4265 * m68k-tdep.c (m68k_gdbarch_init): Update.
4266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4267 * ia64-tdep.c (ia64_gdbarch_init): Update.
4268 * hppa-tdep.c (hppa_gdbarch_init): Update.
4269 * h8300-tdep.c (h8300_gdbarch_init): Update.
4270 * frv-tdep.c (frv_gdbarch_init): Update.
4271 * cris-tdep.c (cris_gdbarch_init): Update.
4272 * avr-tdep.c (avr_gdbarch_init): Update.
4273 * alpha-tdep.c (alpha_gdbarch_init): Update.
4274 * arm-tdep.c (arm_gdbarch_init): Update.
4276 2003-06-13 Andrew Cagney <cagney@redhat.com>
4278 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4279 mips_o32_use_struct_convention with always_use_struct_convention.
4281 2003-06-12 David Carlton <carlton@kealia.com>
4283 * cp-namespace.c (cp_set_block_scope): Comment out
4284 processing_has_namespace_info branch.
4286 2003-06-12 Jim Blandy <jimb@redhat.com>
4288 Recognize and skip 64-bit PowerPC Linux linkage functions.
4289 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4290 insn_pattern, insns_match_pattern, d_field, ds_field): New
4291 functions, macros, and types for working with PPC instructions.
4292 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4293 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4294 ppc64_skip_trampoline_code): New functions, variables, and macros
4295 for recognizing and skipping linkage functions.
4296 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4297 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4299 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4300 register offsets for both the 32- and 64-bit interfaces.
4302 Actually finish the job started by my change of 2003-05-29.
4303 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4304 other #definition of this.
4305 (ppc_linux_skip_trampoline_code): Remove declaration.
4306 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4308 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4311 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4312 'long' on ppc64-*-linux*.
4314 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4315 isn't #defined, assume the register doesn't exist: act as if
4316 tdep->ppc_mq_regnum were -1.
4318 * configure.host, configure.tgt: Add entries for
4319 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4321 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4324 * arch-utils.c (always_use_struct_convention): New function.
4325 * arch-utils.h (always_use_struct_convention): New prototype.
4326 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4327 (alpha_gdbarch_init): Register always_use_struct_convention,
4328 instead of alpha_use_struct_convention.
4329 * cris-tdep.c (cris_use_struct_convention): Delete.
4330 (cris_gdbarch_init): Register always_use_struct_convention,
4331 instead of cris_use_struct_convention.
4332 * frv-tdep.c (frv_use_struct_convention): Delete.
4333 (frv_gdbarch_init): Register always_use_struct_convention,
4334 instead of frv_use_struct_convention.
4335 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4336 (h8300_gdbarch_init): Register always_use_struct_convention,
4337 instead of h8300_use_struct_convention.
4338 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4339 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4340 instead of mips_o32_use_struct_convention.
4342 2003-06-12 Andrew Cagney <cagney@redhat.com>
4344 * wince.c: Include "mips-tdep.h".
4345 * mips-tdep.h (mips_next_pc): Declare.
4346 * mcore-tdep.c: Make more local functions static.
4347 * Makefile.in (wince.o): Update dependencies.
4349 2003-06-12 David Carlton <carlton@kealia.com>
4351 * symtab.c (lookup_symbol_aux_minsyms): Replace
4352 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4353 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4354 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4355 SYMBOL_NATURAL_NAME.
4357 2003-06-12 Andreas Schwab <schwab@suse.de>
4359 * Makefile.in (tuiDisassem.o): Update dependencies.
4361 2003-06-12 David Carlton <carlton@bactrian.org>
4363 * symtab.h: Delete declaration of make_symbol_overload_list.
4364 Add declaration of lookup_partial_symbol.
4365 * symtab.c (remove_params): Move to cp-support.c.
4366 (overload_list_add_symbol, make_symbol_overload_list)
4367 (sym_return_val_size, sym_return_val_index): Ditto.
4368 (lookup_partial_symbol): Make extern.
4369 * cp-support.h: Add declaration of make_symbol_overload_list.
4370 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4371 symtab.h, and block.h.
4372 (remove_params): Move here from symtab.c.
4373 (overload_list_add_symbol, make_symbol_overload_list)
4374 (sym_return_val_size, sym_return_val_index): Ditto.
4375 * valops.c: Include cp-support.h.
4376 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4377 frame_h, and block_h.
4378 (valops.o): Depend on cp_support_h.
4380 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4382 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4383 substitute by NUM_REGS throughout.
4384 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4385 (h8300s_register_name): New function for H8S registers.
4386 (h8300sx_register_name): Ditto for H8SX registers.
4387 (h8300_print_register): Revise register printing, avoid depending
4389 (h8300_register_byte): Only care for H8/300 registers.
4390 (h8300h_register_byte): New function for any other architecture.
4391 (h8300_register_raw_size): Remove.
4392 (h8300_register_virtual_type): Revise to return actually useful
4394 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4395 (h8300h_extract_struct_value_address): New function for any other
4397 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4398 set_gdbarch_register_name, set_gdbarch_register_byte,
4399 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4400 Remove calls to set_gdbarch_deprecated_register_size,
4401 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4402 set_gdbarch_deprecated_max_register_raw_size,
4403 set_gdbarch_register_virtual_size and
4404 set_gdbarch_deprecated_max_register_virtual_size entirely.
4405 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4406 set_gdbarch_long_double_bit.
4408 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4410 * doublest.c (convert_doublest_to_floatformat): When dealing
4411 with the implied integer bit, only alter mant_bits if we are
4412 processing a full 32 bits of mantissa.
4414 2003-06-11 David Carlton <carlton@bactrian.org>
4416 * dictionary.h: New.
4417 * dictionary.c: New.
4418 * block.h: Add opaque declaration for struct dictionary.
4419 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4421 (BLOCK_DICT): New macro.
4422 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4423 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4425 (ALL_BLOCK_SYMBOLS): Update definition.
4426 * Makefile.in (SFILES): Add dictionary.c.
4427 (dictionary_h): New.
4428 (COMMON_OBS): Add dictionary.o.
4429 (dictionary.o): New.
4430 (ada-lang.o): Depend on dictionary_h.
4431 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4432 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4433 (mi-cmd-stack.o): Ditto.
4434 (gdbtk-cmds.o): Update dependencies.
4435 (gdbtk-stack.o): Ditto.
4436 * ada-lang.c: Include dictionary.h.
4437 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4438 (fill_in_ada_prototype, debug_print_block): Ditto.
4439 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4440 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4442 * mdebugread.c: Include dictionary.h.
4443 (struct parse_stack): Delete 'maxsyms' member.
4444 (parse_symbol): Update calls to new_block. Delete calls to
4445 shrink_block. Use dictionary methods.
4446 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4447 Update calls to new_symtab. Don't maintain maxsyms data.
4448 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4449 (add_symbol): Just call dict_add_symbol.
4450 (new_symtab): Delete 'maxsyms' argument.
4451 (new_symtab): Update calls to new_block.
4452 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4453 (shrink_block): Delete function.
4454 (fixup_sigtramp): Update call to new_block. Add symbol via
4456 * jv-lang.c: Include dictionary.h.
4457 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4458 appropriately. Set class_symtab->free_func. Make sure the
4459 blockvector is big enough to hold two blocks.
4460 (add_class_symtab_symbol): Use dictionary methods.
4461 (free_class_block): New function.
4462 (type_from_class): Replace explicit iteration by
4464 * symtab.h (struct symtab): Replace 'free_ptr' method by
4466 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4468 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4470 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4471 Include dictionary.h.
4472 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4473 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4475 * objfiles.c: Include dictionary.h.
4476 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4477 * buildsym.c: Include dictionary.h.
4478 (finish_block): Use dictionary methods.
4479 (end_symtab): Set free_func to NULL, not free_ptr.
4480 * tracepoint.c: Include dictionary.h.
4481 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4482 (scope_info): Ditto.
4483 * stack.c: Include dictionary.h.
4484 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4485 (print_block_frame_labels, print_frame_arg_vars)
4486 (print_frame_args): Ditto.
4487 * symmisc.c (free_symtab_block): Use dictionary methods.
4488 (dump_symtab): Ditto.
4489 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4490 Include dictionary.h.
4491 * symfile.h: Delete declarations of sort_block_syms,
4493 * symfile.c (sort_block_syms): Delete.
4494 (sort_symtab_syms): Delete.
4495 * symtab.c: Include dictionary.h.
4496 (lookup_block_symbol): Use dictionary iterators.
4497 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4498 (search_symbols, make_symbol_completion_list): Ditto.
4499 (make_symbol_overload_list): Ditto.
4500 * valops.c (value_of_local): Use dict_empty.
4501 Include dictionary.h.
4503 2003-06-11 J. Brobecker <brobecker@gnat.com>
4505 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4507 2003-06-11 David Carlton <carlton@bactrian.org>
4509 * block.h (BLOCK_SHOULD_SORT): Delete.
4510 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4512 * ada-lang.c (ada_add_block_symbols): Ditto.
4513 * symfile.c (sort_block_syms): Delete.
4514 (sort_symtab_syms): Ditto.
4515 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4517 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4518 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4519 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4520 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4521 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4522 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4523 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4525 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4527 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4530 2003-06-11 Andrew Cagney <cagney@redhat.com>
4532 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4533 REGISTER_CONVERTIBLE.
4534 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4535 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4536 * gdbarch.h, gdbarch.c: Re-generate.
4537 * arch-utils.h (deprecated_register_convertible_not): Rename
4538 generic_register_convertible_not.
4539 * arch-utils.c (deprecated_register_convertible_not): Rename
4540 generic_register_convertible.
4541 (legacy_convert_register_p, legacy_register_to_value): Update.
4542 * sh-tdep.c (sh64_push_arguments): Update.
4543 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4544 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4545 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4546 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4547 * arch-utils.c (legacy_value_to_register): Update.
4548 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4549 (rs6000_register_convert_to_raw): Make parameter "from" const.
4550 * mips-tdep.c (mips_gdbarch_init): Update.
4551 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4552 * infcmd.c (default_print_registers_info): Update.
4553 * ia64-tdep.c (ia64_gdbarch_init): Update.
4554 (ia64_register_convert_to_raw): Make parameter "from" const.
4555 * i386-tdep.c (i386_gdbarch_init): Update.
4556 (i386_register_convert_to_raw): Update.
4558 2003-06-11 Andrew Cagney <cagney@redhat.com>
4560 * remote-fileio.c: Include "remote-fileio.h".
4561 * Makefile.in (remote-fileio.o): Update dependencies.
4562 (remote_fileio_h): Fix typo.
4564 2003-06-11 Andrew Cagney <cagney@redhat.com>
4566 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4567 (xstormy16_save_dummy_frame_tos): Make static.
4568 (_initialize_xstormy16_tdep): Add declaration.
4569 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4570 * v850-tdep.c: Make local functions static.
4571 (_initialize_v850_tdep): Add declaration.
4572 * sparc-tdep.c: Make local functions static.
4573 (_initialize_sparc_tdep): Add declaration.
4574 * sh-tdep.c: Make local functions static.
4575 (_initialize_sh_tdep): Add declaration.
4576 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4577 * s390-tdep.c: Make local functions static.
4578 (_initialize_s390_tdep): Add declaration.
4579 * dbxread.c (find_stab_function_addr): Make static.
4580 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4581 * ocd.c (_initialize_remote_ocd): Add declaration.
4582 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4583 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4584 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4585 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4586 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4587 * remote-array.c (_initialize_array): Add declaration.
4588 (_initialize_remote_monitors): Add declaration.
4589 * remote-mips.c: Make local functions static.
4590 (_initialize_remote_mips): Add declaration.
4591 * mcore-tdep.c: Make all local functions static.
4592 (_initialize_mcore_tdep): Add declaration.
4593 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4594 * abug-rom.c (_initialize_abug_rom): Add declaration.
4595 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4596 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4597 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4598 * remote-est.c (_initialize_est): Add declaration.
4599 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4600 (m68hc11_call_dummy_address): Make static.
4601 * ia64-tdep.c: Make local functions static.
4602 (_initialize_ia64_tdep): Add declaration.
4603 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4604 * monitor.c (monitor_wait_filter): Make static.
4605 (_initialize_remote_monitors): Add declaration.
4606 * remote-hms.c (_initialize_remote_hms): Add declaration.
4607 * remote-e7000.c (fetch_regs_from_dump): Make static.
4608 (expect_n): Make static.
4609 (_initialize_remote_e7000): Add declaration.
4610 * ser-e7kpc.c: Always include "defs.h".
4611 (_initialize_ser_e7000pc): Add declaration.
4612 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4613 * cris-tdep.c: Make all but one function static.
4614 (_initialize_cris_tdep): Add declaration.
4615 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4616 * solib.c (update_solib_list): Make static.
4617 (_initialize_solib): Add declaration.
4618 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4619 (_initialize_avr_tdep): Add declaration.
4620 * remote-rdi.c (voiddummy): Make static.
4621 (_initialize_remote_rdi): Add declaration.
4622 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4623 * remote-rdp.c (send_rdp): Make static.
4624 (_initialize_remote_rdp): Add declaration.
4625 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4627 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4629 * remote-fileio.c: Make ari happy.
4631 2003-06-10 J. Brobecker <brobecker@gnat.com>
4633 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4634 fetching the trailing bytes of the buffer we are about to write.
4636 2003-06-10 Andrew Cagney <cagney@redhat.com>
4638 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4639 * Makefile.in (remote-fileio.o): Update dependencies.
4640 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4641 include <setjmp.h>, or <sys/types.h> conditional on USG.
4642 (remote_fio_jmp_buf): Delete global variable.
4644 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4645 Martin M. Hunt <hunt@redhat.com>
4647 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4648 (SFILES): Add remote-fileio.c.
4649 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4650 dependencies for building remote.o.
4651 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4652 * remote-fileio.h: New header file defining remote File-I/O interface.
4653 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4654 static storage class.
4655 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4657 (_initialize_remote): Call initialize_remote_fileio().
4658 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4659 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4660 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4661 (captured_main): Initialize new ui_files.
4662 * ui-file.c: Add read and fgets input functions.
4663 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4664 (null_file_read): New function.
4665 (ui_file_read): New function.
4666 (set_ui_file_read): New function.
4667 (stdio_file_read): New function.
4668 * ui-file.h: New type ui_file_read_ftype.
4669 (set_ui_file_read): Declare.
4670 (ui_file_read): Declare.
4672 2003-06-09 Andrew Cagney <cagney@redhat.com>
4674 * frame.h (deprecated_unwind_get_saved_register): Rename
4675 generic_unwind_get_saved_register, update comments.
4676 * mips-tdep.c (mips_get_saved_register): Update.
4677 * frame.c (deprecated_unwind_get_saved_register): Update.
4679 2003-06-09 Andrew Cagney <cagney@redhat.com>
4681 * vax-tdep.c (vax_frame_locals_address): Delete function.
4682 (vax_gdbarch_init): Do not set frame_locals_address.
4683 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4684 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4685 * s390-tdep.c (s390_frame_args_address): Delete function.
4686 (s390_gdbarch_init): Do not set frame_args_address or
4687 frame_locals_address.
4688 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4689 (ns32k_gdbarch_init): Do not set frame_locals_address.
4690 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4691 (hppa_frame_locals_address): Delete function.
4692 (hppa_gdbarch_init): Do not set frame_args_address, or
4693 frame_locals_address.
4694 * arm-tdep.c (arm_frame_args_address): Delete.
4695 (arm_frame_locals_address): Delete.
4696 (arm_gdbarch_init): Do not set frame_args_address, or
4697 frame_locals_address.
4699 2003-06-09 Andrew Cagney <cagney@redhat.com>
4701 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4702 * gdbarch.h, gdbarch.c: Re-generate.
4703 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4704 * arch-utils.c (frame_num_args_unknown): Delete function.
4705 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4706 (frame_info): Use FRAME_NUM_ARGS_P.
4707 * arm-tdep.c (arm_frame_num_args): Delete function.
4708 (arm_gdbarch_init): Do not set frame_num_args.
4709 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4710 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4711 (hppa_gdbarch_init): Do not set frame_num_args.
4712 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4713 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4714 frame_num_args to default frame_num_args_unknown.
4715 * v850-tdep.c (v850_gdbarch_init): Ditto.
4716 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4717 * sh-tdep.c (sh_gdbarch_init): Ditto.
4718 * s390-tdep.c (s390_gdbarch_init): Ditto.
4719 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4720 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4721 * mips-tdep.c (mips_gdbarch_init): Ditto.
4722 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4723 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4725 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4726 * i386-tdep.c (i386_gdbarch_init): Ditto.
4727 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4728 * frv-tdep.c (frv_gdbarch_init): Ditto.
4729 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4730 * cris-tdep.c (cris_gdbarch_init): Ditto.
4731 * avr-tdep.c (avr_gdbarch_init): Ditto.
4732 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4734 2003-06-09 Andrew Cagney <cagney@redhat.com>
4736 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4737 (print_frame_args): Moved to "stack.c".
4738 * stack.c: Include "gdb_assert.h".
4739 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4740 (print_frame_args): Moved from "printcmd.c".
4741 * frame.h (print_frame_args): Delete declaration.
4742 * Makefile.in (stack.o): Update dependencies.
4744 2003-06-08 Andrew Cagney <cagney@redhat.com>
4746 * frame.c (get_prev_frame): Remove reference to
4747 frame_args_address_correct in comments.
4748 * frame-base.c (default_frame_args_address): Delete code
4749 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4750 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4751 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4752 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4753 (vax_frame_args_address_correct): Delete declaration.
4755 2003-06-08 Andrew Cagney <cagney@redhat.com>
4757 * gdbarch.sh (UNWIND_SP): Add.
4758 * gdbarch.h, gdbarch.c: Re-generate.
4759 * frame.c (frame_sp_unwind): New function.
4760 (get_frame_sp): New function.
4761 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4762 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4763 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4765 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4766 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4768 2003-06-08 Andrew Cagney <cagney@redhat.com>
4770 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4773 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4774 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4775 * config/m68k/tm-sun3.h: Update.
4776 * config/m68k/tm-m68klynx.h: Update.
4777 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4779 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4780 trad_frame". Update comments.
4781 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4782 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4783 (trad_frame_register_value, trad_frame_prev_register): Update.
4785 2003-06-08 Andrew Cagney <cagney@redhat.com>
4787 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4788 from GCC's acinclude.m4.
4789 * configure.in: Check for getopt's delcaration.
4790 * aclocal.m4, config.in, configure: Re-generate.
4791 * main.c (error_init): Delete declaration.
4792 * defs.h (error_init): Declare.
4793 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4794 (rs6000_convert_from_func_ptr_addr): Make static.
4795 (_initialize_rs6000_tdep): Add declaration.
4796 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4797 (show_commands, set_verbose, show_history): Delete declaration.
4798 * top.h (set_verbose): Add declaration.
4799 (show_history, set_history, show_commands): Add declaration.
4800 (do_restore_instream_cleanup): Add declaration.
4801 * objc-lang.c (specialcmp): Make static.
4802 (print_object_command): Make static.
4803 (find_objc_msgsend): Make static.
4804 (find_objc_msgcall_submethod_helper): Make static.
4805 (find_objc_msgcall_submethod): Make static.
4806 (_initialize_objc_language): Add declaration.
4807 (find_implementation_from_class): Make static.
4808 (find_implementation): Make static.
4809 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4810 * objc-lang.h (lookup_struct_typedef): Add declaration.
4811 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4812 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4813 (do_restore_user_call_depth): Make static.
4814 (do_restore_instream_cleanup): Delete declaration.
4815 (dont_repeat): Delete declaration.
4816 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4817 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4818 * reggroups.c (_initialize_reggroup): Add declaration.
4819 * cp-support.c (_initialize_cp_support): Add declaration.
4820 * cp-abi.c (_initialize_cp_abi): Add declaration.
4821 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4822 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4823 (_initialize_gnu_v3_abi): Add declaration.
4824 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4825 (_initialize_gnu_v2_abi): Add declaration.
4826 * frame-base.c (_initialize_frame_base): Add declaration.
4827 * doublest.c (floatformat_from_length): Make static.
4828 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4829 * frame.c (create_sentinel_frame): Make static.
4830 (_initialize_frame): Add declaration.
4831 * top.c (do_catch_errors): Make static.
4832 (gdb_rl_operate_and_get_next_completion): Make static.
4833 * typeprint.c: Include "typeprint.h".
4834 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4835 (sentinel_frame_this_id): Make static.
4836 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4837 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4838 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4839 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4840 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4841 * maint.c (maintenance_print_architecture): Make static.
4842 * signals/signals.c (_initialize_signals): Add declaration.
4843 * std-regs.c (_initialize_frame_reg): Add declaration.
4844 * jv-exp.y (push_variable): ISO C definition.
4845 (push_qualified_expression_name): Ditto.
4846 * memattr.c (_initialize_mem): Add declaration.
4847 * remote.c (remote_check_watch_resources): Make static.
4848 (remote_stopped_by_watchpoint): Make static.
4849 (remote_stopped_data_address): Make static.
4850 * d10v-tdep.c (nr_dmap_regs): Make static.
4851 (a0_regnum): Make static.
4852 (d10v_frame_unwind_cache): Make static.
4853 (d10v_frame_p): Make static.
4854 * osabi.c (show_osabi): Make static.
4855 (_initialize_gdb_osabi): Add extern declaration.
4856 * gdbtypes.c (make_qualified_type): Make static.
4857 (safe_parse_type): Make static.
4858 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4859 * macrotab.c (macro_bcache_free): Make static.
4860 * interps.c (interp_set_quiet): Make static.
4861 (interpreter_exec_cmd): Make static.
4862 * stack.h (select_frame_command): New file.
4863 * stack.c: Include "stack.h".
4864 (select_frame_command_wrapper): Delete function.
4865 (select_frame_command): Make global.
4866 * infcall.c: Include "infcall.h".
4867 * linespec.c: Include "linespec.h".
4868 * symfile.c (sections_overlap): Make static.
4869 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4870 * charset.c (_initialize_charset): Add missing prototype.
4871 * regcache.c (init_legacy_regcache_descr): Make static.
4872 (do_regcache_xfree): Make static.
4873 (regcache_xfer_part): Make static.
4874 (_initialize_regcache): Add missing prototype.
4875 * breakpoint.c (parse_breakpoint_sals): Make static.
4876 (breakpoint_sals_to_pc): Make static.
4877 * interps.h (clear_interpreter_hooks): ISO C declaration.
4878 * Makefile.in (stack_h): Define.
4879 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4880 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4882 2003-06-08 Andrew Cagney <cagney@redhat.com>
4884 * Makefile.in (d10v-tdep.o): Update dependencies.
4885 (SFILES): Add trad-frame.c.
4886 (trad_frame_h): Define.
4887 (COMMON_OBS): Add trad-frame.o.
4888 (trad-frame.o): Specify dependencies.
4889 * d10v-tdep.c: Include "trad-frame.h".
4890 (saved_regs_unwinder): Delete function.
4891 (d10v_frame_prev_register): Use trad_frame_prev_register.
4892 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4893 trad_frame", delete "regs" and "prev_sp".
4894 (prologue_find_regs): Use trad-frame.
4895 * trad-frame.h, trad-frame.c: New files.
4897 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4899 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4901 2003-06-07 Adam Fedor <fedor@gnu.org>
4903 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4904 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4905 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4906 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4907 resolve_msgsend_super, resolve_msgsend_super_stret):
4910 2003-06-07 Andrew Cagney <cagney@redhat.com>
4912 * symfile.h: Re-indent, clean up comments.
4914 2003-06-07 Andrew Cagney <cagney@redhat.com>
4916 * inferior.h (deprecated_write_sp): Replace
4917 generic_target_write_sp.
4918 * regcache.c (deprecated_write_sp): Replace
4919 generic_target_write_sp.
4920 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4921 * vax-tdep.c (vax_gdbarch_init): Update.
4922 * v850-tdep.c (v850_gdbarch_init): Update.
4923 * sparc-tdep.c (sparc_gdbarch_init): Update.
4924 * sh-tdep.c (sh_gdbarch_init): Update.
4925 * s390-tdep.c (s390_gdbarch_init): Update.
4926 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4927 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4928 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4929 * mcore-tdep.c (mcore_gdbarch_init): Update.
4930 * m68k-tdep.c (m68k_gdbarch_init): Update.
4931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4932 * ia64-tdep.c (ia64_gdbarch_init): Update.
4933 * h8300-tdep.c (h8300_gdbarch_init): Update.
4934 * frv-tdep.c (frv_gdbarch_init): Update.
4935 * cris-tdep.c (cris_gdbarch_init): Update.
4936 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4938 2003-06-07 Andrew Cagney <cagney@redhat.com>
4940 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4941 Assert that PC_REGNUM is valid.
4942 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4944 2003-06-07 Andrew Cagney <cagney@redhat.com>
4946 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4947 * gdbarch.h, gdbarch.c: Regenerate.
4948 * mn10300-tdep.c: Include "gdb_assert.h".
4949 (mn10300_read_fp): New function.
4950 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4951 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4952 * ia64-tdep.c: Include "gdb_assert.h".
4953 (ia64_read_fp): New function.
4954 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4955 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4956 * regcache.c (generic_target_read_sp): Delete function.
4957 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4958 * inferior.h (generic_target_read_sp): Delete declaration.
4959 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4960 generic_target_read_sp.
4961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4962 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4963 * sh-tdep.c (sh_gdbarch_init): Ditto.
4964 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4965 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4967 2003-06-07 Andrew Cagney <cagney@redhat.com>
4969 * gdbarch.sh: Comment each field of startup_gdbarch.
4970 * gdbarch.h, gdbarch.c: Re-generate.
4972 2003-06-07 Andrew Cagney <cagney@redhat.com>
4974 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4975 * gdbarch.h, gdbarch.c: Re-generate.
4976 * regcache.c: Update comments on read_pc et.al.
4977 (generic_target_read_pc): Delete function.
4978 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4979 * inferior.h (generic_target_read_pc): Delete declaration.
4980 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4981 generic_target_read_pc.
4982 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4983 * sh-tdep.c (sh_gdbarch_init): Ditto.
4984 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4985 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4987 2003-06-07 Andrew Cagney <cagney@redhat.com>
4989 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4990 "index" with "special_local_sect". Use strcmp instead of STREQ.
4991 Append period to coments.
4993 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4995 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4996 (elfstab_offset_sections): Likewise.
4997 * gdb-stabs.h (stab_section_info): Likewise.
4998 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4999 * objfiles.c (objfile_relocate): Likewise.
5000 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5001 * remote.c (get_offsets): Likewise.
5002 (remote_cisco_objfile_relocate): Likewise.
5003 * somread.c (som_symfile_offsets): Likewise.
5004 * symfile.c (alloc_section_addr_info): New function.
5005 (build_section_addr_info_from_section_tab): Use it.
5006 (free_section_addr_info): Adjust.
5007 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5008 (syms_from_objfile): Allocate local_addr dynamically.
5009 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5011 (add_symbol_file_command): Allocate sect_opts dynamically.
5012 (reread_symbols): Avoid use of SECT_OFF_MAX.
5013 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5014 (alloc_section_addr_info): Declare it.
5015 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5016 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5018 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5020 2003-06-06 Andrew Cagney <cagney@redhat.com>
5022 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5023 (d10v_frame_unwind_cache): Do not set "return_pc".
5025 2003-06-06 Michael Snyder <msnyder@redhat.com>
5027 * h8300-tdep.c: Make tidy (long lines).
5029 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5031 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5032 to regcache_collect().
5034 2003-06-05 J. Brobecker <brobecker@gnat.com>
5036 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5037 pc_in_sigtramp multiarch method.
5038 (hppa_hpux_som_init_abi): Use it.
5039 (hppa_hpux_elf_init_abi): Likewise.
5040 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5041 macro has been multiarched.
5042 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5043 macro here, as hppa64 isn't multiarched yet.
5045 2003-06-05 Andrew Cagney <cagney@redhat.com>
5047 * Makefile.in (value_h): Add $(frame_h).
5048 * value.h: Include "frame.h".
5049 (struct value): Replace "frame_addr" with "frame_id".
5050 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5051 * values.c (allocate_value): Use VALUE_FRAME_ID.
5052 (value_copy): Use VALUE_FRAME_ID.
5053 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5054 * valops.c (value_assign): Update. Use frame_find_by_id.
5056 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5058 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5061 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5063 * thread-db.c (check_event): For create/death event breakpoints,
5064 loop through all messages to ensure that we read the message
5065 corresponding to the breakpoint we are at.
5067 2003-06-04 Michael Snyder <msnyder@redhat.com>
5069 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5071 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5073 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5074 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5075 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5076 when handling .eh_frame sections.
5078 2003-06-04 J. Brobecker <brobecker@gnat.com>
5080 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5081 prepare_to_proceed procedure instead of the hppa-specific one.
5082 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5084 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5086 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5087 * config.in: Regenerated.
5088 * configure.in: Add test for syscall function and check for
5089 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5090 * configure: Regenerated.
5091 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5093 (kill_lwp): New function that uses tkill syscall or
5094 uses kill, depending on whether threading model is nptl or not.
5095 All callers of kill() changed to use kill_lwp().
5096 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5097 see if all threads have already exited in the nptl model.
5098 (stop_and_resume_callback): New callback function used by the
5099 lin_lwp_wait thread exit handling code.
5100 (stop_wait_callback): Check for threads already having exited and
5101 delete such threads fromt the lwp list when discovered.
5102 (stop_callback): Don't assert retcode of kill call.
5104 Roland McGrath <roland@redhat.com>
5105 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5108 2003-06-03 Richard Henderson <rth@redhat.com>
5110 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5111 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5112 (alpha_sigtramp_frame_prev_register): Likewise.
5113 (alpha_heuristic_frame_prev_register): Likewise.
5114 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5116 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5117 alpha-specific register id names.
5118 (alpha_mdebug_frame_unwind_cache): Likewise.
5119 (alpha_mdebug_frame_prev_register): Likewise.
5121 2003-06-03 Richard Henderson <rth@redhat.com>
5123 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5124 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5125 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5126 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5128 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5129 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5130 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5132 * alpha-linux-tdep.c: Remove unnecessary includes.
5133 * Makefile.in (alpha-linux-tdep.o): Update.
5135 2003-06-03 Richard Henderson <rth@redhat.com>
5137 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5138 (alphabsd_fill_fpreg): Likewise.
5140 2003-06-03 J. Brobecker <brobecker@gnat.com>
5142 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5143 references to struct frame_info fields by calls to the equivalent
5144 accessors. Necessary now that frame_info is opaque.
5146 2003-06-03 J. Brobecker <brobecker@gnat.com>
5148 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5149 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5150 structure, field no longer exists.
5152 2003-06-03 J. Brobecker <brobecker@gnat.com>
5154 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5155 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5157 2003-06-03 J. Brobecker <brobecker@gnat.com>
5159 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5160 references to struct frame_info fields by calls to the equivalent
5161 accessors. Necessary now that frame_info is opaque.
5163 2003-06-03 J. Brobecker <brobecker@gnat.com>
5165 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5166 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5167 structure, field no longer exists.
5169 2003-06-03 Theodore A. Roth <troth@openavr.org>
5171 * remote.c (init_remote_state): Compute sizeof_g_packet by
5172 accumulation of the size of all registers instead of blindly using
5173 DEPRECATED_REGISTER_BYTES.
5175 2003-06-03 Michael Snyder <msnyder@redhat.com>
5177 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5178 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5181 2003-06-03 J. Brobecker <brobecker@gnat.com>
5183 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5184 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5186 2003-06-03 Andrew Cagney <cagney@redhat.com>
5188 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5189 (sparc_convert_to_raw): Delete function.
5190 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5191 register_convert_to_virtual.
5193 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5195 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5196 layer if not dealing with a statically-linked threaded program.
5198 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5200 * solib.c (solib_open): Update comment to reflect actual search order.
5202 2003-06-03 Andrew Cagney <cagney@redhat.com>
5204 * frame.c (get_frame_memory_signed): New function.
5205 (get_frame_memory, get_frame_memory_unsigned): New function.
5206 (get_frame_arch): New function.
5207 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5208 (get_frame_memory, get_frame_unsigned_memory): Declare.
5209 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5210 get_frame_memory_unsigned and get_frame_arch.
5211 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5213 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5215 * MAINTAINERS (write after approval): Add myself.
5217 2003-06-03 Jim Blandy <jimb@redhat.com>
5219 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5220 elements of gregset_t are 64 bits each, but access registers
5221 are still 32 bits, so they're packed two per gregset_t
5222 element. Unpack/pack them properly.
5224 2003-06-02 David Carlton <carlton@bactrian.org>
5226 * linespec.c (find_methods): Break out code into
5227 add_matching_methods and add_constructors.
5228 (add_matching_methods): New.
5229 (add_constructors): Ditto.
5231 2003-06-02 Andrew Cagney <cagney@redhat.com>
5233 * sparc-tdep.c (sparc_print_registers): Delete call to
5234 REGISTER_CONVERTIBLE.
5235 (sparc_gdbarch_init): Do not set register_convertible.
5236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5237 * frv-tdep.c (frv_gdbarch_init): Ditto.
5238 * cris-tdep.c (cris_gdbarch_init): Ditto.
5240 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5242 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5243 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5244 (syms_from_objfile): Ditto.
5246 2003-06-03 Andreas Schwab <schwab@suse.de>
5248 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5249 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5251 2003-06-02 Richard Henderson <rth@redhat.com>
5253 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5254 a member of all_reggroup.
5256 2003-06-02 Richard Henderson <rth@redhat.com>
5258 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5259 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5260 (alpha_lds, alpha_sts): New.
5261 (alpha_convert_register_p): Change from _register_convertible.
5262 (alpha_register_to_value): Change from _convert_to_virtual;
5263 restructure and fail for type sizes other than 4 or 8.
5264 (alpha_value_to_register): Similarly.
5265 (alpha_extract_return_value): Use alpha_sts.
5266 (alpha_store_return_value): Use alpha_lds.
5267 (alpha_gdbarch_init): Update hooks.
5269 2003-06-02 Richard Henderson <rth@redhat.com>
5271 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5273 (alpha_sigtramp_register_address): Likewise.
5275 2003-06-02 Richard Henderson <rth@redhat.com>
5277 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5278 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5279 * alpha-tdep.h: Declare them.
5281 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5282 Remove zerobuf. Don't error on UNIQUE.
5283 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5284 (ALPHA_REGSET_UNIQUE): Provide default.
5285 (supply_gregset): Use alpha_supply_int_regs.
5286 (fill_gregset): Use alpha_fill_int_regs.
5287 (supply_fpregset): Use alpha_supply_fp_regs.
5288 (fill_fpregset): Use alpha_fill_fp_regs.
5289 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5290 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5291 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5292 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5293 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5294 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5296 2003-06-02 Richard Henderson <rth@redhat.com>
5298 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5300 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5301 (alpha_store_return_value): Likewise.
5303 2003-06-02 David Carlton <carlton@math.stanford.edu>
5305 * block.c (contained_in): Add 'const' to arguments.
5306 (block_function): Ditto.
5307 * block.h: Update declarations for block_function and
5310 2003-06-02 David Carlton <carlton@math.stanford.edu>
5312 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5313 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5314 * p-valprint.c (pascal_val_print): Ditto.
5315 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5317 2003-06-02 Richard Henderson <rth@redhat.com>
5319 * alpha-tdep.c (alpha_push_dummy_call): Use
5320 builtin_type_ieee_double_little instead of builtin_type_double.
5322 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5323 sign-extension of 32-bit values.
5324 (alpha_store_return_value): Similarly.
5326 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5327 (alpha_extract_return_value): Likewise.
5328 (alpha_store_return_value): Likewise.
5330 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5331 (alpha_store_return_value): Error on IEEE Quad floats.
5333 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5334 (alpha_extract_struct_value_address): Likewise.
5335 (alpha_store_return_value): Likewise.
5336 (alpha_store_struct_return): Remove.
5337 (alpha_gdbarch_init): Update hook registration to match.
5339 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5340 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5341 macros where appropriate.
5342 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5343 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5345 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5346 for SP, GP; void_func_ptr for PC; non-language-specific types
5348 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5350 2003-06-02 Richard Henderson <rth@redhat.com>
5352 * top.h (lim_at_start): Declare.
5353 * main.c (captured_main): Set it.
5354 * top.c (lim_at_start): Define.
5355 (command_loop): Use it instead of &environ.
5356 * event-top.c (command_handler): Likewise.
5358 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5360 * mipsnbsd-tdep.c: Update copyright years.
5361 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5363 2003-06-01 Richard Henderson <rth@redhat.com>
5365 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5366 (alpha-linux-tdep.o): Update dependencies.
5367 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5368 * alpha-mdebug-tdep.c: Remove unneeded includes.
5370 2003-06-01 Richard Henderson <rth@redhat.com>
5372 * alpha-tdep.c (alpha_register_reggroup_p): New.
5373 (alpha_gdbarch_init): Register it.
5375 2003-06-02 Andrew Cagney <cagney@redhat.com>
5377 * dwarfread.c: Eliminate "register"
5378 (decode_die_type): Eliminate assignment within "if".
5379 (struct_type, decode_array_element_type): Ditto.
5380 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5381 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5382 (decode_modified_type, completedieinfo): Ditto.
5383 * block.c: Eliminate "register".
5384 (blockvector_for_pc_sect): Eliminate assignment within "if".
5385 * cp-support.h (struct symbol): Opaque declaration.
5386 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5388 2003-06-01 Richard Henderson <rth@redhat.com>
5390 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5391 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5393 2003-06-01 Adam Fedor <fedor@gnu.org>
5395 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5396 * gdbarch.[ch]: Regenerate.
5397 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5398 (hppa_gdbarch_init): Set it in the gdbarch vector.
5399 * i386-tdep.c (i386_fetch_pointer_argument): New
5400 (i386_gdbarch_init): Set it into gdbarch.
5401 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5402 (rs6000_gdbarch_init): Set it in gdbarch.
5403 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5404 (sparc_gdbarch_init): Set it in gdbarch.
5406 2003-06-01 Andrew Cagney <cagney@redhat.com>
5408 * defs.h (extract_address): Delete declaration.
5409 * findvar.c (extract_address): Delete function.
5410 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5411 extract_address with the inline equivalent,
5412 extract_unsigned_integer.
5413 (xstormy16_extract_struct_value_address): Ditto.
5414 (xstormy16_pointer_to_address): Ditto.
5415 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5416 * v850-tdep.c (v850_push_arguments): Ditto.
5417 (v850_extract_return_value): Ditto.
5418 (v850_extract_struct_value_address): Ditto.
5419 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5420 (sparcnbsd_get_longjmp_target_64): Ditto.
5421 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5422 (get_longjmp_target): Ditto.
5423 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5424 (sh64_extract_struct_value_address): Ditto.
5425 (sh_push_arguments): Ditto.
5426 (sh64_push_arguments): Ditto.
5427 * remote-vxsparc.c (vx_read_register): Ditto.
5428 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5429 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5430 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5431 * mipsv4-nat.c (get_longjmp_target): Ditto.
5432 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5433 * mips-nat.c (get_longjmp_target): Ditto.
5434 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5435 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5436 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5437 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5438 * irix5-nat.c (get_longjmp_target): Ditto.
5439 * irix4-nat.c (get_longjmp_target): Ditto.
5440 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5441 (ia64_push_arguments): Ditto.
5442 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5443 * h8300-tdep.c (h8300_push_arguments): Ditto.
5444 (h8300_store_return_value): Ditto.
5445 (h8300_extract_struct_value_address): Ditto.
5446 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5447 (frv_push_arguments): Ditto.
5448 * avr-tdep.c (avr_pointer_to_address): Ditto.
5449 (avr_push_arguments): Ditto.
5450 * arm-tdep.c (arm_push_dummy_call): Ditto.
5451 (arm_get_longjmp_target): Ditto.
5452 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5453 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5454 (alpha_get_longjmp_target): Ditto.
5456 * solib-irix.c (extract_mips_address): Inline extract_address,
5457 replacing it with extract_signed_integer.
5458 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5459 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5460 (first_link_map_member, open_symbol_file_object): Ditto.
5461 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5462 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5463 (LM_NEXT, LM_NAME): Ditto.
5465 2003-06-01 Richard Henderson <rth@redhat.com>
5467 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5468 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5469 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5470 (alpha_cannot_store_register): Likewise.
5471 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5472 * alpha-nat.c (supply_gregset): Likewise.
5473 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5475 2003-06-01 Andrew Cagney <cagney@redhat.com>
5477 * infcall.c (call_function_by_hand): Update comment on
5478 DEPRECATED_DUMMY_WRITE_SP.
5480 * mips-tdep.c (mips_gdbarch_init): Do not set
5481 deprecated_dummy_write_sp.
5482 (mips_eabi_push_dummy_call): Set the SP register.
5483 (mips_o64_push_dummy_call): Set the SP register.
5484 (mips_o32_push_dummy_call): Set the SP register.
5485 (mips_n32n64_push_dummy_call): Set the SP register.
5487 2003-06-01 Richard Henderson <rth@redhat.com>
5489 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5490 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5491 (supply_gregset): Likewise.
5492 * alpha-tdep.c (alpha_store_return_value): Likewise.
5493 (alpha_get_longjmp_target): Likewise.
5494 (alpha_register_name): Constify array.
5495 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5496 deprecated_register_size, deprecated_register_bytes,
5497 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5498 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5499 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5501 2003-06-01 Richard Henderson <rth@redhat.com>
5503 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5504 from arg_reg_buffer to regcache to avoid double conversion.
5506 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5508 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5510 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5511 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5513 2003-06-01 Richard Henderson <rth@redhat.com>
5515 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5516 (decode_frame_entry): Set it. Skip FDE augmentation.
5518 2003-06-01 Richard Henderson <rth@redhat.com>
5520 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5521 not overlapping PC_REGNUM.
5523 2003-06-01 Richard Henderson <rth@redhat.com>
5525 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5526 alpha_push_arguments. Don't dump argument register data to
5527 the target stack. Fix float and 128-bit long double semantics.
5528 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5529 (alpha_fix_call_dummy): Remove.
5530 (alpha_call_dummy_words): Remove.
5531 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5533 2003-06-01 Richard Henderson <rth@redhat.com>
5535 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5537 2003-06-01 Andrew Cagney <cagney@redhat.com>
5539 * mips-tdep.c (is_mips16_addr): New function.
5540 (make_mips16_addr, unmake_mips16_addr): New functions.
5541 (pc_is_mips16, mips_fetch_instruction): Use.
5542 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5543 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5544 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5545 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5547 * config/mips/tm-mips.h: Update copyright.
5548 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5549 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5550 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5551 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5552 (TM_PRINT_INSN_MACH): Delete.
5553 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5555 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5556 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5557 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5558 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5559 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5560 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5561 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5562 mips*-*-riscos* and mips*-*-sysv* onto mips.
5563 * config/mips/mips64.mt: New file.
5564 * config/mips/mips.mt: New file.
5565 * config/mips/littlemips.mt: Delete file.
5566 * config/mips/decstation.mt: Delete file.
5567 * config/mips/vr4300el.mt: Delete file.
5568 * config/mips/vr5000el.mt: Delete file.
5569 * config/mips/vr5000.mt: Delete file.
5570 * config/mips/vr4100.mt: Delete file.
5571 * config/mips/vr4xxxel.mt: Delete file.
5572 * config/mips/vr4300.mt: Delete file.
5573 * config/mips/vr4xxx.mt: Delete file.
5574 * config/mips/bigmips.mt: Delete file.
5575 * config/mips/bigmips64.mt: Delete file.
5576 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5577 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5578 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5579 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5580 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5582 * config/mips/tm-irix3.h: Ditto.
5583 * config/mips/tm-mipsv4.h: Ditto.
5584 * config/mips/tm-embed.h: Ditto.
5585 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5587 * config/mips/tm-vr5000el.h: Delete file.
5588 * config/mips/tm-tx39l.h: Delete file.
5589 * config/mips/tm-vr4300el.h: Delete file.
5590 * config/mips/tm-vr4xxxel.h: Delete file.
5591 * config/mips/tm-vr4300.h: Delete file.
5592 * config/mips/tm-vr4100.h: Delete file.
5593 * config/mips/tm-vr4xxx.h: Delete file.
5594 * config/mips/tm-vr5000.h: Delete file.
5595 * config/mips/tm-embedl64.h: Delete file.
5596 * config/mips/tm-embedl.h: Delete file.
5597 * config/mips/tm-embed64.h: Delete file.
5598 * config/mips/tm-bigmips64.h: Delete file.
5599 * config/mips/tm-bigmips.h: Delete file.
5601 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5604 * shnbsd-nat.c: Include "sh-tdep.h".
5606 From Richard Henderson <rth@redhat.com>:
5607 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5609 2003-05-31 Andrew Cagney <cagney@redhat.com>
5611 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5612 forward declaration.
5613 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5614 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5615 (mips_find_saved_regs): Use set_reg_offset.
5616 (mips_frame_init_saved_regs): Delete function.
5617 (mips_pop_frame): Call mips_find_saved_regs instead of
5618 DEPRECATED_FRAME_INIT_SAVED_REGS.
5620 2003-05-31 Andrew Cagney <cagney@redhat.com>
5622 * mips-tdep.c (mips_gdbarch_init): Do not set
5623 deprecated_max_register_raw_size, register_virtual_size, and
5624 deprecated_max_register_virtual_size.
5626 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5628 * i386-tdep.c: Include "dwarf2-frame.h".
5629 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5630 * Makefile.in (i386-tdep.o): Update dependencies.
5632 * dwarf2-frame.c, dwarf2-frame.h: New files.
5633 * Makefile.in (SFILES): Add dwarf2-frame.c.
5634 (dwarf2_frame_h): Define.
5635 (COMMON_OBS): Add dwarf2-frame.o.
5636 (dwarf2-frame.o): Add dependencies.
5638 2003-05-31 Andreas Jaeger <aj@suse.de>
5640 * x86-64-linux-nat.c: Fix comment.
5642 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5644 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5647 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5648 have a sigcontext_addr handler.
5649 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5650 sigcontext_addr handler.
5652 2003-05-31 Andrew Cagney <cagney@redhat.com>
5654 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5655 (print_fp_register_row): Replace do_fp_register_row.
5656 (mips_print_fp_register): Add "file" and "frame" parameters.
5657 (mips_print_register): Add "file" and "frame" parameters.
5658 (mips_print_registers_info): Replace mips_do_registers_info.
5659 (mips_gdbarch_init): Set print_registers_info instead of
5660 deprecated_do_registers_info.
5661 (mips_read_fp_register_single): Add "frame" parameter.
5662 (mips_read_fp_register_double): Add "frame" parameter.
5664 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5666 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5667 Fixes a bug where GDB would print the wrong register names for
5668 targets without SSE.
5670 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5671 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5674 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5675 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5676 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5679 From Michal Ludvig <mludvig@suse.cz>:
5680 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5682 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5683 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5684 I386_ST0_REGNUM): Move here from...
5685 * i386-tdep.c: ... here.
5686 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5687 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5688 registers if possible.
5689 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5690 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5692 (i386bsd_sc_reg_offset): New variable.
5693 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5694 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5696 (i386fbsd_sc_reg_offset): New variable.
5697 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5699 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5701 (i386fbsd4_sc_reg_offset): New variable.
5702 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5703 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5705 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5706 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5707 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5709 (i386nbsd_sc_reg_offset): New variable.
5710 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5711 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5713 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5715 (i386obsd_sc_reg_offset): New variable.
5716 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5717 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5719 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5720 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5721 for frame pointer offset in `struct sigcontext'.
5723 2003-05-31 Andrew Cagney <cagney@redhat.com>
5725 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5726 architecture methods call_dummy_words, sizeof_call_dummy_words,
5727 push_return_address, store_struct_return, and fix_call_dummy. Set
5728 push_dummy_call instead of deprecated_push_arguments.
5729 (mips_store_struct_return): Delete function.
5730 (mips_fix_call_dummy): Delete function.
5731 (mips_push_return_address): Delete function.
5732 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5733 RA_REGNUM and T9_REGNUM.
5734 (mips_n32n64_push_dummy_call): Ditto for
5735 mips_n32n64_push_arguments.
5736 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5737 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5739 2003-05-31 Andrew Cagney <cagney@redhat.com>
5741 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5742 "dummy_addr" to "bp_addr".
5743 * infcall.c (call_function_by_hand): Pass "funaddr" to
5744 gdbarch_push_dummy_call.
5745 * gdbarch.h, gdbarch.c: Re-generate.
5746 * i386-tdep.c (i386_push_dummy_call): Update.
5747 * arm-tdep.c (arm_push_dummy_call): Update.
5748 * d10v-tdep.c (d10v_push_dummy_call): Update.
5750 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5752 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5753 variable declarations.
5754 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5755 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5756 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5757 x86_64_init_frame_pc, x86_64_init_frame_pc,
5758 x86_64_function_has_prologue): Remove prototypes.
5759 (X86_64_NUM_GREGS): New define.
5760 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5761 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5762 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5763 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5764 XMM1_REGNUM): Remove defines.
5765 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5766 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5767 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5768 X86_64_XMM1_REGNUM): New defines.
5769 (struct x86_64_register_info): Renamed from `struct
5770 register_info'. Remove `size' member.
5771 (x86_64_register_info_table): Remove variable.
5772 (x86_64_register_info): New variable.
5773 (X86_64_NUM_REGS): New define.
5774 (X86_64_NUM_GREGS): Remove define.
5775 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5776 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5778 (x86_54_dwarf2_reg_to_regnum): Remove function.
5779 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5780 (x86_64_dwarf_reg_to_regnum): New function.
5781 (x86_64_register_name): Rewrite.
5782 (x86_64_register_raw_size): Remove function.
5783 (x86_64_register_byte_table): Remove variable.
5784 (x86_64_register_byte): Remove function.
5785 (x86_64_register_virtual_type): Remove function.
5786 (x86_64_register_type): New function.
5787 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5788 x86_64_register_convert_to_raw): Remove functions.
5789 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5790 (x86_64_use_struct_convention): Make static. Adjust for renamed
5792 (x86_64_frame_init_saved_regs): Remove function.
5793 (x86_64_push_arguments): Make static. Change to accept a regcache
5795 (x86_64_store_return_value, x86_64_extract_return_value): Make
5796 static. Rewrite based on i386 counterparts.
5797 (x86_64_push_dummy_call): New function.
5798 (X86_64_NUM_SAVED_REGS): New define.
5799 (x86_64_register_number): Remove function.
5800 (x86_64_store_struct_return): Remove function.
5801 (x86_64_frameless_function_invocation,
5802 x86_64_function_has_prologue): Remove functions.
5803 (PROLOG_BUFSIZE): Remove define.
5804 (struct x86_64_frame_cache): New structure.
5805 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5806 x86_64_frame_cache, x86_64_frame_this_id,
5807 x86_64_frame_prev_register, x86_64_frame_p,
5808 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5809 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5811 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5813 (x86_64_skip_prologue): Rewrite in terms of
5814 x86_64_analyze_prologue.
5815 (x86_64_frame_base_address): New function.
5816 (x86_64_frame_base): New variable.
5817 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5818 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5819 set deprecated_fp_regnum, deprecated_register_size,
5820 deprecated_register_bytes, register_raw_size, register_byte,
5821 register_virtual_type, register_convertiable,
5822 register_convert_to_virtual, convert_to_raw,
5823 deprecated_get_saved_register, deprecated_target_read_fp,
5824 deprecated_push_arguments, deprecated_push_return_address,
5825 deprecated_pop_frame, deprecated_store_struct_return,
5826 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5827 frameless_function_invocation, deprecated_frame_saved_pc,
5828 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5829 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5830 deprecated_init_frame_pc and virtual_frame_pointer. Call
5831 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5832 and x86_64_frame_p. Call frame_base_set_default to register
5834 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5835 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5836 (_initialize_x86_64_tdep): Remove function.
5837 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5838 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5839 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5841 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5842 (x86_64_linux_sigcontext_addr): Rewrite.
5843 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5844 x86_64_linux_frame_saved_pc): Remove functions.
5845 (x86_64_linux_pc_in_sigtramp): Renamed from
5846 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5848 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5850 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5851 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5852 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5853 (x86_64_regmap): Rename to regmap.
5854 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5856 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5858 (x86_64_fxsave_offset): Remove function.
5859 (supply_fpregset): Simply call x86_64_supply_fxsave.
5860 (fill_fpregset): Simply call x86_64_fill_fxsave.
5861 (fetch_inferior_registers, store_inferior_registers): Avoid
5862 asignment in if-statement.
5863 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5864 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5865 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5866 (fetch_core_registers): Remove function.
5867 (linux_elf_core_fns): Remove.
5868 (offsetoff): Don't define.
5869 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5870 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5871 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5873 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5874 protection against multiple includes instead of NM_X86_64_h. Add
5875 various comments. Include "config/nm-linux.h". Don't include
5877 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5878 GET_THREAD_SIGNALS): Remove defines.
5879 (x86_64_register_u_addr, kernel_u_size,
5880 lin_thread_get_thread_signals): Remove prototypes.
5881 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5882 [HAVE_LINK_H]: Don't include "solib.h".
5883 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5884 * config/i386/tm-x86-64linux.h: Fix comments.
5885 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5886 x86-64-tdep.o): Update dependencies.
5888 2003-05-30 Andrew Cagney <cagney@redhat.com>
5890 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5891 Change parameter type to a "struct regcache *".
5893 * gdbarch.sh: Regardless of the multi-arch level, always define
5894 the macro when not already defined.
5895 * gdbarch.h, gdbarch.c: Re-generate.
5897 2003-05-30 Richard Henderson <rth@redhat.com>
5899 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5900 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5901 (alpha_mdebug_frame_this_id): Likewise.
5902 (alpha_mdebug_frame_prev_register): Likewise.
5903 (alpha_mdebug_frame_base_address): Likewise.
5904 (alpha_mdebug_frame_locals_address): Likewise.
5905 (alpha_mdebug_frame_args_address): Likewise.
5906 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5907 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5908 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5910 (alpha_heuristic_frame_this_id): Make static.
5911 (alpha_heuristic_frame_prev_register): Likewise.
5912 (alpha_heuristic_frame_base_address): Likewise.
5913 * alpha-tdep.h: Update.
5915 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5917 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5918 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5920 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5921 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5922 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5923 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5924 I386_ST0_REGNUM): New defines.
5925 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5926 codestream_get): Remove define.
5927 (codestream_next_addr, condestream_addr, condestream_buf,
5928 codestream_off, codestream_cnt): Remove variables.
5929 (codestream_fill, codestream_seek, codestream_read): Remove
5931 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5933 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5934 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5935 i386_frame_saved_pc, i386_saved_pc_after_call,
5936 i386_frame_num_args, i386_frame_init_saved_regs,
5937 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5938 i386_push_arguments): Remove functions.
5939 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5940 functionality. Use i386_analyze_prologue instead of
5941 i386_get_frame_setup.
5942 (I386_NUM_SAVED_REGS): New define.
5943 (struct i386_frame_cache): New structure.
5944 (i386_alloc_frame_cache, i386_analyze_struct_return,
5945 i386_skip_probe, i386_analyze_frame_setup,
5946 i386_analyze_register_saves, i386_analyze_prologue,
5947 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5948 i386_frame_prev_register, i386_sigtramp_frame_cache,
5949 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5950 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5951 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5953 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5955 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5956 I386_EAX_REGNUM and I386_EDX_REGNUM.
5957 (i386_extract_return_value, i386_store_return_value): Use
5958 I386_ST0_REGNUM where appropriate.
5959 (i386_extract_struct_value_address): Rewrite to use extract_address.
5960 (i386_svr4_pc_in_sigtramp): Add comment.
5961 (i386_svr4_sigcontext_addr): Rewrite.
5962 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5964 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5965 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5966 of new defines. Set push_dummy_call, don't set
5967 deprecated_push_arguments, deprecated_push_return_address,
5968 deprecated_pop_frame. Don't set parm_boundary. Don't set
5969 deprecated_frame_chain, deprecated_frame_saved_pc,
5970 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5971 save_dummy_frame_tos, unwind_pc. Call
5972 frame_unwind_append_predicate and frame_base_set_default. Don't
5973 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5974 Don't set frameless_function_invocation. Don't set
5975 deprecated_register_bytes, deprecated_register_size,
5976 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5977 * i386-linux-tdep.c: Fix formatting in some comments.
5978 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5979 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5980 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5981 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5982 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5983 redundant parentheses.
5984 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5985 (i386_linux_sigcontext_addr): Use it. Rewrite.
5986 (find_minsym_and_objfile): Change name of second argument.
5987 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5988 changed. Use frame_pc_unwind instead of
5989 DEPRECATED_SAVED_PC_AFTER_CALL.
5990 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5991 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5992 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5994 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5996 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5997 (_initialize_i386_cygwin_tdep): New prototype.
5998 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5999 deprecated_frame_chain_valid.
6000 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6001 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6002 Rely on the SVR4 defaults.
6003 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6004 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6006 2003-05-30 Andrew Cagney <cagney@redhat.com>
6008 * infcall.c (call_function_by_hand): Always call
6009 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6011 2003-05-30 Richard Henderson <rth@redhat.com>
6013 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6016 2003-05-29 Jim Blandy <jimb@redhat.com>
6018 Use gdbarch methods for solib stuff on PowerPC Linux.
6019 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6020 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6022 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6023 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6024 giving the same effect as the #definitions above.
6026 2003-05-29 Adam Fedor <fedor@gnu.org>
6028 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6029 (find_implementation_from_class): Replace it with the standard
6030 case i.e. do nothing.
6032 2003-05-29 Richard Henderson <rth@redhat.com>
6034 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6035 (alpha_linux_sigtramp_offset): Use it. Make static.
6036 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6037 update for new frame model.
6038 * alpha-mdebug-tdep.c: New file.
6039 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6040 (alpha_osf1_init_abi): Install it.
6041 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6042 (linked_proc_desc_table): Remove.
6043 (alpha_frame_past_sigtramp_frame): Remove.
6044 (alpha_dynamic_sigtramp_offset): Remove.
6045 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6046 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6047 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6048 (push_sigtramp_desc): Remove.
6049 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6050 (alpha_cannot_store_register): Likewise.
6051 (alpha_sigcontext_addr): Remove.
6052 (alpha_find_saved_regs): Remove.
6053 (alpha_frame_init_saved_regs): Remove.
6054 (alpha_init_frame_pc_first): Remove.
6055 (read_next_frame_reg): Remove.
6056 (alpha_frame_saved_pc): Remove.
6057 (alpha_saved_pc_after_call): Remove.
6058 (temp_proc_desc, temp_saved_regs): Remove.
6059 (alpha_about_to_return): Remove.
6060 (cached_proc_desc): Remove.
6061 (alpha_frame_chain): Remove.
6062 (alpha_print_extra_frame_info): Remove.
6063 (alpha_init_extra_frame_info): Remove.
6064 (alpha_frame_locals_address): Remove.
6065 (alpha_frame_args_address): Remove.
6066 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6067 (alpha_push_dummy_frame): Remove.
6068 (alpha_pop_frame): Remove.
6069 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6070 (alpha_read_insn): New.
6071 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6072 for different insn encodings.
6073 (alpha_in_lenient_prologue): Remove.
6074 (struct alpha_sigtramp_unwind_cache): New.
6075 (alpha_sigtramp_frame_unwind_cache): New.
6076 (alpha_sigtramp_register_address): New.
6077 (alpha_sigtramp_frame_this_id): New.
6078 (alpha_sigtramp_frame_prev_register): New.
6079 (alpha_sigtramp_frame_unwind): New.
6080 (alpha_sigtramp_frame_p): New.
6081 (struct alpha_heuristic_unwind_cache): New.
6082 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6083 don't count nop insns that occur between functions.
6084 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6085 heuristic_proc_desc, but without the mdebug wrapping.
6086 (alpha_heuristic_frame_this_id): New.
6087 (alpha_heuristic_frame_prev_register): New.
6088 (alpha_heuristic_frame_unwind): New.
6089 (alpha_heuristic_frame_p): New.
6090 (alpha_heuristic_frame_base_address): New.
6091 (alpha_heuristic_frame_base): New.
6092 (alpha_unwind_dummy_id): New.
6093 (alpha_unwind_pc): New.
6094 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6095 frame related deprecated initializations; install replacements.
6096 (alpha_dump_tdep): Remove.
6097 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6098 (alpha_read_insn, alpha_after_prologue,
6099 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6100 alpha_heuristic_frame_prev_register,
6101 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6102 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6103 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6104 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6106 2003-05-29 Andrew Cagney <cagney@redhat.com>
6108 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6109 dependant on the availability of ASSERT_FUNCTION.
6110 (ASSERT_FUNCTION): Do not define when there is no function name.
6112 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6114 From Jimi X <jimix@watson.ibm.com>:
6115 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6117 2003-05-28 Jim Blandy <jimb@redhat.com>
6119 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6120 argument to ptrace to int; the system headers should give it the
6121 right type, and pointers don't fit in ints on powerpc64-*-*.
6123 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6125 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6128 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6130 * stabsread.c (dbx_lookup_type): Make static.
6132 (add_undefined_type): Ditto.
6133 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6136 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6138 * hpread.c (hpread_has_name): Make static.
6139 (hpread_psymtab_to_symtab): Ditto.
6140 (file_exists): Ditto.
6141 (hpread_call_pxdb): Ditto.
6142 (hpread_pxdb_needed): Ditto.
6143 (hpread_quick_traverse): Ditto.
6144 (hpread_get_header): Ditto.
6145 (hpread_get_lntt): Ditto.
6146 (hpread_get_slt): Ditto.
6149 2003-05-25 Andreas Schwab <schwab@suse.de>
6151 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6152 stack_align and deprecated_extra_stack_alignment_needed.
6153 (m68k_stack_align): Delete.
6155 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6156 (m68k_register_virtual_size): Likewise.
6157 (altos_skip_prologue): Remove obsolete function.
6158 (isi_frame_num_args): Likewise.
6159 (news_frame_num_args): Likewise.
6160 (m68k_fix_call_dummy): Make static.
6161 (m68k_push_dummy_frame): Likewise.
6162 (m68k_pop_frame): Likewise.
6163 (m68k_skip_prologue): Likewise.
6164 (m68k_frame_init_saved_regs): Likewise.
6165 (m68k_saved_pc_after_call): Likewise.
6166 (m68k_get_longjmp_target): Make multi-arch.
6167 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6168 structure. Register m68k_get_longjmp_target if enabled.
6169 * m68k-tdep.h (struct gdbarch_tdep): Define.
6170 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6172 * Makefile.in (config.status): Also depend on configure.tgt
6174 (m68klinux-tdep.o): Update dependencies.
6175 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6176 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6177 (M68K_LINUX_JB_PC): Define.
6178 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6179 and take additional parameter.
6180 (m68k_linux_sigtramp_saved_pc): Update.
6181 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6182 m68k_linux_pc_in_sigtramp, in_plt_section,
6183 find_solib_trampoline_target.
6184 * config/m68k/tm-linux.h: Don't include any tm headers.
6185 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6186 (JB_ELEMENT_SIZE): Likewise.
6188 (GET_LONGJMP_TARGET): Likewise.
6189 (IN_SIGTRAMP): Likewise.
6190 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6192 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6194 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6195 (sparc32_push_arguments): Re-implement by calling
6196 sparc32_do_push_arguments.
6198 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6200 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6201 SPARC_O1_REGNUM): New defines.
6202 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6203 (sparc32_store_return_value): New function.
6204 (sparc_extract_struct_value_address): Rewrite to operate on a
6206 (sparc_gdbarch_init): Don't set
6207 deprecated_extract_struct_value_address. Set
6208 extract_struct_value_address instead. Don't set
6209 deprecated_extract_return_value and deprecated_store_return_value
6210 for 32-bit targets. Set extract_return_value and
6211 store_return_value instead.
6212 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6213 DEPRECTAED_EXTRACT_RETURN_VALUE,
6214 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6215 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6216 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6217 (sparc_store_return_value): Remove prototype.
6218 (sparc32_store_return_value): New prototype.
6219 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6222 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6224 * sparcnbsd-tdep.c: Include "gdb_string.h".
6226 2003-05-23 Andrew Cagney <cagney@redhat.com>
6228 * p-valprint.c (pascal_val_print): Replace extract_address with
6229 the inline equivalent extract_unsigned_integer.
6230 * jv-valprint.c (java_value_print): Ditto.
6231 * ada-valprint.c (ada_val_print_1): Ditto.
6232 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6234 2003-05-23 Theodore A. Roth <troth@openavr.org>
6236 * blockframe.c (frameless_look_for_prologue): Remove unused
6237 after_prologue variable.
6239 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6241 * blockframe.c (get_pc_function_start): Rewrite to avoid
6242 asignments in if-statements.
6244 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6246 Committed by Elena Zannoni <ezannoni@redhat.com>.
6247 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6248 files, don't relocate absolute symbols (and do use mst_abs).
6250 2003-05-23 Andrew Cagney <cagney@redhat.com>
6252 * objc-lang.c: Include "gdb_assert.h".
6253 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6254 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6255 (gdb_check, gdb_check_fatal): Delete functions.
6256 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6258 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6259 * Makefile.in (objc-lang.o): Update dependencies.
6261 2003-05-22 Ian Lance Taylor <ian@airs.com>
6263 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6264 with fprintf_filtered, not fprintf_unfiltered.
6266 2003-05-22 Andrew Cagney <cagney@redhat.com>
6268 * stack.c (frame_info): Inline extract_address, replacing it with
6269 extract_unsigned_integer.
6270 * findvar.c (unsigned_pointer_to_address): Ditto.
6271 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6272 * dwarf2expr.c (dwarf2_read_address): Ditto.
6273 * frame.c (frame_pc_unwind): Update comment.
6274 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6276 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6278 * infptrace.c (detach): Call print_sys_errmsg rather than
6279 perror_with_name to issue warning message when errno is non-zero
6280 after calling ptrace detach.
6282 2003-05-21 J. Brobecker <brobecker@gnat.com>
6284 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6285 macro definitions from here...
6286 * hppa-tdep.c: ...to there.
6288 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6290 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6291 register_ptrace_addr(). Fix all callers.
6293 2003-05-21 Andreas Schwab <schwab@suse.de>
6295 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6297 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6299 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6300 (_initialize_m68k_linux_tdep): New function.
6301 (m68k_linux_frame_saved_pc): Make static.
6302 (m68k_linux_extract_return_value): Likewise.
6303 (m68k_linux_store_return_value): Likewise.
6304 (m68k_linux_extract_struct_value_address): Likewise.
6305 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6307 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6308 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6309 (DEPRECATED_FRAME_SAVED_PC): Remove.
6311 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6313 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6314 regset numbering rather than our own.
6316 2003-05-19 David Carlton <carlton@bactrian.org>
6318 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6320 2003-05-19 David Carlton <carlton@bactrian.org>
6322 Partial fix for PR c++/827.
6323 * cp-support.h: Include symtab.h.
6324 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6325 * cp-namespace.c: Update contributors.
6326 (cp_lookup_symbol_nonlocal): New.
6327 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6328 (lookup_symbol_file): Ditto.
6329 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6330 * block.h: Declare block_scope, block_using, block_global_block.
6331 * block.c (block_scope): New.
6332 (block_using, block_global_block): Ditto.
6333 * Makefile.in (cp_support_h): Depend on symtab_h.
6334 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6336 2003-05-19 David Carlton <carlton@bactrian.org>
6338 * language.h (struct language_defn): Add 'la_value_of_this'
6339 and 'la_lookup_symbol_nonlocal' members.
6340 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6341 lookup_symbol_static, lookup_symbol_global,
6342 lookup_symbol_aux_block.
6343 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6344 if we should search fields of this and how to do static/global
6346 (lookup_symbol_aux_block): Make extern.
6347 (basic_lookup_symbol_nonlocal): New.
6348 (lookup_symbol_static, lookup_symbol_global): Ditto.
6349 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6350 'la_lookup_symbol_nonlocal' members.
6351 * c-lang.c (c_language_defn, cplus_language_defn)
6352 (asm_language_defn, minimal_language_defn): Ditto.
6353 * jv-lang.c (java_language_defn): Ditto.
6354 * language.c (unknown_language_defn, auto_language_defn)
6355 (local_language_defn): Ditto.
6356 * m2-lang.c (m2_language_defn): Ditto.
6357 * objc-lang.c (objc_language_defn): Ditto.
6358 * scm-lang.c (scm_language_defn): Ditto.
6359 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6360 * p-lang.c (pascal_language_defn): Ditto for both.
6361 * Makefile.in (f-lang.o): Depend on value_h.
6364 2003-05-19 David Carlton <carlton@bactrian.org>
6366 * block.h: Declare block_static_block.
6367 * block.c (block_static_block): New.
6368 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6369 lookup_symbol_aux_local, calling block_static_block instead.
6370 (lookup_symbol_aux_local): Delete 'static_block' argument.
6372 2003-05-19 David Carlton <carlton@bactrian.org>
6374 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6376 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6378 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6379 register numbers mapping.
6381 2003-05-18 Adam Fedor <fedor@gnu.org>
6383 * symtab.c (completion_list_objc_symbol): New function.
6384 (make_symbol_completion_list): Use it to add ObjC symbols
6385 when looking though the list.
6386 (language_search_unquoted_string): New function.
6387 (make_file_symbol_completion_list): Use it.
6389 2003-05-18 Andreas Schwab <schwab@suse.de>
6391 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6393 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6394 as m68k_linux_extract_return_value.
6395 (DEPRECATED_STORE_RETURN_VALUE): Define as
6396 m68k_linux_store_return_value.
6397 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6398 m68k_linux_extract_struct_value_address.
6399 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6400 get_next_frame, get_frame_base, get_frame_pc.
6401 (m68k_linux_frame_saved_pc): Use get_frame_base.
6402 (m68k_linux_extract_return_value): New function.
6403 (m68k_linux_store_return_value): New function.
6404 (m68k_linux_extract_struct_value_address): New function.
6405 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6407 * c-exp.y (typebase): Remove duplicate occurence of
6408 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6409 of lookup_signed_typename.
6411 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6413 * dwarf2loc.c (find_location_expression): Change type of second
6414 argument to `size_t *'.
6415 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6418 2003-05-18 David Carlton <carlton@bactrian.org>
6420 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6421 'linkage_name'. Add comment.
6422 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6424 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6425 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6426 (lookup_block_symbol): Ditto.
6428 2003-05-16 Andrew Cagney <cagney@redhat.com>
6430 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6431 * gdbarch.h, gdbarch.c: Re-generate.
6432 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6433 * TODO (REGISTER_BYTES): Delete reference.
6434 * alpha-tdep.c (alpha_gdbarch_init): Update.
6435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6436 * x86-64-tdep.c (x86_64_init_abi): Update.
6437 * vax-tdep.c (vax_gdbarch_init): Update.
6438 * v850-tdep.c (v850_gdbarch_init): Update.
6439 * sparc-tdep.c (sparc_gdbarch_init): Update.
6440 * sh-tdep.c (sh_gdbarch_init): Update.
6441 * s390-tdep.c (s390_gdbarch_init): Update.
6442 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6443 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6444 (ns32k_gdbarch_init_32382): Update.
6445 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6446 * mcore-tdep.c (mcore_gdbarch_init): Update.
6447 * m68k-tdep.c (m68k_gdbarch_init): Update.
6448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6449 * ia64-tdep.c (ia64_gdbarch_init): Update.
6450 * i386-tdep.c (i386_gdbarch_init): Update.
6451 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6452 * hppa-tdep.c (hppa_gdbarch_init): Update.
6453 * h8300-tdep.c (h8300_gdbarch_init): Update.
6454 * frv-tdep.c (frv_gdbarch_init): Update.
6455 * cris-tdep.c (cris_gdbarch_init): Update.
6456 * avr-tdep.c (avr_gdbarch_init): Update.
6457 * arm-tdep.c (arm_gdbarch_init): Update.
6458 * sparc-tdep.c (sparc_pop_frame): Update.
6459 * rs6000-tdep.c (rs6000_pop_frame): Update.
6460 * remote.c (init_remote_state): Update.
6461 (remote_prepare_to_store): Update.
6462 * remote-vx.c (vx_prepare_to_store): Update.
6463 * remote-sds.c (sds_fetch_registers): Update.
6464 (sds_prepare_to_store): Update.
6465 * remote-array.c: Update.
6466 * regcache.c (init_legacy_regcache_descr): Update.
6467 (init_regcache_descr): Update.
6468 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6469 (mips_o64_extract_return_value): Update.
6470 * irix5-nat.c (fetch_core_registers): Update.
6471 * irix4-nat.c (fetch_core_registers): Update.
6472 * i386-tdep.h: Update.
6473 * hppa-tdep.c (pa_do_registers_info): Update.
6474 (pa_do_strcat_registers_info): Update.
6475 * cris-tdep.c (cris_register_bytes_ok): Update.
6476 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6477 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6478 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6479 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6480 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6481 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6482 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6483 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6484 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6485 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6486 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6487 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6488 (REGISTER_BYTES_OK): Update.
6489 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6490 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6492 2003-05-16 Ian Lance Taylor <ian@airs.com>
6494 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6495 (vax_print_insn, print_insn_arg): Remove static functions.
6496 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6497 print_insn_vax from opcodes library.
6498 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6500 2003-05-15 Andrew Cagney <cagney@redhat.com>
6502 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6503 * target.h (memory_breakpoint_from_pc): Delete declaration.
6504 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6505 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6506 * monitor.c (monitor_insert_breakpoint): Use
6507 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6508 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6509 * gdbarch.h, gdbarch.c: Re-generate.
6510 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6511 (sparc_gdbarch_init): Set breakpoint_from_pc to
6512 sparc_breakpoint_from_pc.
6513 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6514 (BREAKPOINT_FROM_PC): Define.
6515 (sparc_breakpoint_from_pc): Declare.
6516 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6517 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6518 (BREAKPOINT_FROM_PC): Define.
6519 (BREAKPOINT): Delete macro.
6520 * target.h: Update comment.
6521 * s390-tdep.c (s390_gdbarch_init): Update comments.
6522 * remote.c: Update comments.
6523 * remote-mips.c: Update comments.
6524 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6525 * mem-break.c: Update comment.
6526 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6527 (ia64_memory_insert_breakpoint): Update.
6528 * config/sparc/tm-sparc.h: Update comment.
6529 * config/pa/tm-hppa64.h: Update comment.
6530 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6531 (rs6000_breakpoint_from_pc): Update.
6532 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6533 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6534 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6535 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6536 (mips_breakpoint_from_pc): Update.
6537 (mips_dump_tdep): Update.
6539 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6540 * minsyms.c (lookup_minimal_symbol): Inline
6541 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6543 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6544 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6545 * p-lang.c (pascal_printstr): Ditto.
6546 * objc-lang.c (objc_printstr): Ditto.
6547 * m2-lang.c (m2_printstr): Ditto.
6548 * jv-valprint.c (java_print_value_fields): Ditto.
6549 * f-lang.c (f_printstr): Ditto.
6550 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6551 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6552 for repeat_count_threshold.
6553 * Makefile.in (cp-valprint.o): Update dependencies.
6555 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6557 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6558 (examine_prologue): Support looking through leaf functions, knowing
6559 they start with mov r2,r12. Support skipping over indirect stores
6560 of the input registers. Upon hitting a non-nop branch instruction
6561 or predicated instruction, bail out by setting lim_pc to the current
6562 pc value in the loop. At the end, if the lim_pc value is still
6563 beyond our calculated value and we have trust_limit set,
6564 use the lim_pc value.
6566 2003-05-15 Andrew Cagney <cagney@redhat.com>
6568 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6569 generic_find_dummy_frame.
6570 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6571 (deprecated_generic_find_dummy_frame): Update.
6572 (deprecated_read_register_dummy): Update.
6573 * frame.c (deprecated_generic_get_saved_register): Update.
6575 2003-05-15 Theodore A. Roth <troth@openavr.org>
6577 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6578 (avr_gdbarch_init): Set breakpoint_from_pc method.
6580 2003-05-15 Andrew Cagney <cagney@redhat.com>
6582 * regcache.c (build_regcache): Set deprecated_register_valid
6584 (deprecated_grub_regcache_for_register_valid): Delete function.
6585 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6588 2003-05-15 David Carlton <carlton@bactrian.org>
6590 Committed by Elena Zannoni <ezannoni@redhat.com>
6591 * symtab.c (lookup_symbol_aux): Delete calls to
6592 lookup_symbol_aux_minsyms.
6593 (lookup_symbol_aux_minsyms): Comment out function and
6594 prototype. Delete lookup by mangled name.
6596 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6598 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6599 correctly indicate an empty stack and ``stack_allocated'' to the
6600 indicate the number of elements initially allocated.
6601 (dwarf_expr_grow_stack): Simplify method for computing new
6602 stack size. Don't loop infinitely if ``stack_len'' is zero.
6603 (execute_stack_op): Move ``ctx->in_reg'' initialization
6604 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6605 be used in conjuction with DW_OP_piece. Revise error message
6608 2003-05-14 Theodore A. Roth <troth@openavr.org>
6610 * MAINTAINERS: Update my email address.
6611 * avr-tdep.c: Ditto.
6613 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6615 * symtab.h (enum domain_enum): Rename from namespace_enum.
6616 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6617 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6618 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6619 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6620 TYPES_NAMESPACE, METHODS_NAMESPACE.
6621 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6622 (struct symbol, struct partial_symbol): Rename field
6623 'namespace_enum namespace' to 'domain_enum domain'.
6624 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6625 Delete old define kludge for namespace.
6627 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6628 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6629 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6630 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6631 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6632 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6633 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6634 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6635 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6636 occurrences of the above.
6638 2003-05-14 Ian Lance Taylor <ian@airs.com>
6640 * Makefile.in (install-only): Use $(SHELL) when running
6643 2003-05-13 Ian Lance Taylor <ian@airs.com>
6645 * MAINTAINERS (write after approval): Add myself.
6647 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6648 second and third arguments.
6649 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6650 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6652 2003-05-13 Andrew Cagney <cagney@redhat.com>
6654 * defs.h (store_address): Delete declaration.
6655 findvar.c (store_address): Delete function.
6656 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6657 store_unsigned_integer.
6658 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6659 * v850-tdep.c (v850_push_arguments): Ditto.
6660 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6661 * sh-tdep.c (sh64_get_saved_register): Ditto.
6662 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6663 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6664 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6665 (mips_get_saved_register): Ditto.
6666 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6667 (find_func_descr, ia64_push_arguments): Ditto.
6668 * i386-tdep.c (i386_push_arguments): Ditto.
6669 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6670 * frv-tdep.c (frv_push_arguments): Ditto.
6671 * frame.c (legacy_saved_regs_prev_register): Ditto.
6672 (deprecated_generic_get_saved_register): Ditto.
6673 * findvar.c (unsigned_address_to_pointer): Ditto.
6674 * dwarf2read.c (dwarf2_const_value): Ditto.
6675 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6676 * alpha-tdep.c (alpha_push_arguments): Ditto.
6678 2003-05-12 J. Brobecker <brobecker@gnat.com>
6680 * NEWS: Mention that the hppa-hpux port has been partially
6681 multiarched (32bit ABIT only, so far).
6683 2003-05-11 Andrew Cagney <cagney@redhat.com>
6685 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6686 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6687 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6688 sim/testsuite/sim/arm/misaligned2.ms, and
6689 sim/testsuite/sim/arm/misaligned3.ms.
6690 * disasm.h (struct ui_file): Add opaque struct declaration.
6691 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6692 * frame.h (struct ui_file): Ditto.
6694 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6696 * value.h: Pretty print.
6698 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6700 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6702 2003-05-08 Andrew Cagney <cagney@redhat.com>
6704 * regcache.h (max_register_size): Delete declaration.
6705 * regcache.c (max_register_size): Delete function.
6706 (struct regcache_descr): Delete field "max_register_size".
6707 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6708 registers fit in MAX_REGISTER_SIZE.
6709 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6710 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6711 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6712 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6713 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6714 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6715 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6716 * dve3900-rom.c, hppa-tdep.c: Ditto.
6718 2003-05-08 David Carlton <carlton@math.stanford.edu>
6720 * valops.c (push_word): Fix typo.
6722 2003-05-08 Andrew Cagney <cagney@redhat.com>
6724 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6725 * gdbarch.h: Re-generate.
6726 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6727 (legacy_max_register_raw_size): Delete declaration.
6728 * regcache.c (legacy_max_register_raw_size): Delete function.
6729 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6730 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6731 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6732 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6733 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6734 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6735 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6736 * findvar.c, dwarf2cfi.c: Ditto.
6738 2003-05-08 Andrew Cagney <cagney@redhat.com>
6740 * mips-tdep.c (read_signed_register): New function, moved to here
6742 (read_signed_register_pid): Ditto.
6743 * regcache.c (read_signed_register_pid): Delete function, moved to
6745 (read_signed_register): Ditto.
6746 * regcache.h (read_signed_register): Delete declaration.
6747 (read_signed_register_pid): Delete declaration.
6749 2003-05-08 Andrew Cagney <cagney@redhat.com>
6751 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6752 * gdbarch.h: Re-generate.
6753 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6754 (legacy_max_register_virtual_size): Delete declaration.
6755 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6756 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6757 * tracepoint.c (memrange_sortmerge): Ditto.
6758 * sparc-tdep.c (sparc_print_registers): Ditto.
6759 * regcache.c (legacy_max_register_virtual_size): Delete function.
6761 2002-05-08 J. Brobecker <brobecker@gnat.com>
6763 * fork-child.c (escape_bang_in_quoted_argument): New function.
6764 (fork_inferior): Escape '!' characters in quoted arguments
6767 2003-05-08 J. Brobecker <brobecker@gnat.com>
6769 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6770 the language of the CU is not currently supported by GDB.
6772 2003-05-08 J. Brobecker <brobecker@gnat.com>
6774 * defs.h (language): Add language_minimal enum value.
6775 * c-lang.c (minimal_language_defn): New language definition.
6776 (_initialize_c_language): Add the new minimal language to the list
6777 of languages known to GDB.
6779 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6781 * frame.c (get_frame_type): Don't attempt to lazily initialize
6782 frame's unwinder for legacy frames.
6784 2003-05-07 Andrew Cagney <cagney@redhat.com>
6786 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6787 and "regcache" parameters.
6788 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6790 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6792 * dwarf2read.c (dwarf_decode_lines): Only use output of
6793 check_cu_functions() when calling record_line(). Do not update
6794 the current address.
6796 2003-05-07 Andrew Cagney <cagney@redhat.com>
6798 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6801 2003-05-07 Jim Blandy <jimb@redhat.com>
6803 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6804 'maint info symtabs' and 'maint info psymtabs'.
6805 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6806 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6807 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6808 Declarations updated.
6809 * maint.c (maintenance_list_command): Delete.
6810 (_initialize_maint_cmds): Update calls to add_cmd.
6811 * gdbcmd.h (maintenancelistlist): Delete declaration.
6812 * cli/cli-cmds.c (maintenancelistlist): Delete.
6813 (init_cmd_lists): Don't initialize it.
6814 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6816 2003-05-07 Andrew Cagney <cagney@redhat.com>
6818 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6820 (d10v_print_registers_info): Update.
6821 (d10v_dmap_register, d10v_imap_register): Delete functions.
6822 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6823 and "imap_register".
6824 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6825 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6826 * arch-utils.c (generic_remote_translate_xfer_address): Add
6827 "regcache" and "gdbarch" parameters.
6828 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6829 parameter. Change class to multi-arch.
6830 * gdbarch.h, gdbarch.c: Re-generate.
6831 * remote.c (remote_xfer_memory): Use
6832 gdbarch_remote_translate_xfer_address.
6834 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6836 * infrun.c (prev_pc): Move declaration ahead of proceed().
6837 (proceed): Refresh prev_pc value before resuming.
6838 (stop_stepping): Remove code to refresh prev_pc.
6840 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6842 * nto-tdep.c: Removed stray comment.
6844 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6846 * i386-nto-tdep.c: Fix old K&R function definitions.
6847 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6848 Also change add_show_from_set() call to add_setshow_cmd().
6849 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6851 2003-05-05 Andrew Cagney <cagney@redhat.com>
6853 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6854 (fprint_dummy_frames): New function.
6855 (maintenance_print_dummy_frames): New function.
6856 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6857 * frame.c (fprint_frame_id): Make global.
6858 * frame.h (fprint_frame_id): Declare.
6859 * Makefile.in (dummy-frame.o): Update dependencies.
6861 2003-05-05 Andrew Cagney <cagney@redhat.com>
6863 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6864 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6865 SIZEOF_CALL_DUMMY_WORDS.
6866 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6867 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6868 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6869 CALL_DUMMY_BREAKPOINT_OFFSET.
6870 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6871 CALL_DUMMY_START_OFFSET.
6872 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6873 * gdbarch.h, gdbarch.c: Re-generate.
6874 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6875 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6876 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6877 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6878 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6879 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6880 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6881 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6882 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6883 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6884 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6885 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6886 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6887 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6888 * config/sparc/tm-sparc.h: Update.
6890 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6892 * configure.tgt: Add i[3456]86-*-nto*.
6893 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6894 * nto-tdep.c: New file. Neutrino target support routines.
6895 * nto-tdep.h: New file. Neutrino target header.
6896 * config/tm-qnxnto.h: New file.
6897 * config/i386/i386nto.mt: New file.
6898 * config/i386/tm-i386nto.h: New file.
6900 2003-05-04 Andrew Cagney <cagney@redhat.com>
6902 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6903 (load_infrun_state): Ditto.
6904 (struct thread_info): Drop "prev_func_name" field.
6905 * thread.c (load_infrun_state): Update.
6906 (save_infrun_state): Update.
6907 * infrun.c (prev_func_name): Delete variable.
6908 (init_wait_for_inferior): Do not clear prev_func_name.
6909 (stop_stepping, keep_going, context_switch): Do not swap
6911 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6912 instead of PC_IN_SIGTRAMP.
6914 2003-05-04 Andrew Cagney <cagney@redhat.com>
6916 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6917 REGISTER_BYTE with register_offset_hack.
6918 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6919 that REGISTER_BYTE is consistent with the regcache.
6920 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6921 * gdbarch.h, gdbarch.c: Regenerate.
6923 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6925 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6926 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6928 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6930 2003-05-03 J. Brobecker <brobecker@gnat.com>
6932 From Thierry Schneider <tpschneider1@yahoo.com>
6933 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6934 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6935 (mi-cmd-symbol.o): Add rule.
6937 2003-05-03 Andrew Cagney <cagney@redhat.com>
6939 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6940 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6941 * gdbarch.h, gdbarch.c: Re-generate.
6942 * d10v-tdep.c (d10v_push_dummy_code): New function.
6943 (d10v_gdbarch_init): Set push_dummy_code.
6944 * infcall.c (legacy_push_dummy_code): New function.
6945 (generic_push_dummy_code): New function.
6946 (push_dummy_code): New function.
6947 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6948 instead of dummy_addr, to push_dummy_call. Move call to
6949 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6951 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6953 2003-05-03 Andrew Cagney <cagney@redhat.com>
6955 * disasm.h (print_insn): Declare.
6956 * disasm.c (init_gdb_disassemble_info): New function.
6957 (gdb_disassembly): Call init_gdb_disassemble_info.
6958 (gdb_print_insn): New function.
6959 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6960 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6961 * mcore-tdep.c: Include "disasm.h"
6962 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6963 * d10v-tdep.c: Include "disasm.h".
6964 (display_trace): Call gdb_print_insn, instead of print_insn.
6965 (print_insn): Delete function.
6966 * printcmd.c: Include "disasm.h".
6967 (print_insn): Delete function.
6968 (print_formatted): Call gdb_print_insn, instead of print_insn.
6969 * Makefile.in (printcmd.o): Update dependencies.
6970 (mcore-tdep.o, d10v-tdep.o): Ditto.
6972 2003-05-02 Andrew Cagney <cagney@redhat.com>
6974 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6975 PC_REGNUM, re-indent.
6976 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6977 PC_REGNUM isn't set.
6979 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6980 * gdbarch.h, gdbarch.c: Re-generate.
6981 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6982 register_virtual_size, pc_regnum, or register_bytes.
6983 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6984 (d10v_register_type): Use D10V_PC_REGNUM.
6985 (d10v_print_registers_info, d10v_read_pc): Ditto.
6986 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6987 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6989 2003-05-02 David Carlton <carlton@bactrian.org>
6991 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6992 the name with mstrsave.
6994 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6996 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6997 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6998 (host_charset_name, target_charset_name): New vars for use by
7000 (host_charset_enum, target_charset_enum): New enums for set/show
7002 (set_charset_sfunc, set_host_charset_sfunc,
7003 set_target_charset_sfunc): New functions.
7004 (set_host_charset, set_target_charset): Make static.
7005 (list_charsets, set_host_charset_command,
7006 set_target_charset_command): Delete functions.
7007 (show_charset_command): Rewrite as....
7008 (show_charset): Hook this up with the set/show command mechanism.
7009 (_initialize_charset): Change names of charsets to match the
7010 set/show enums. Use host_charset_name and target_charset_name.
7011 Use set/show mechanism for charset, host-charset, target-charset
7012 commands. Do not make 'show host-charset' and 'show
7013 target-charset' be aliases of 'show charset'.
7015 * charset.h (set_host_charset, set_target_charset): Don't export,
7016 they are not used outside the file.
7018 2003-05-01 Andrew Cagney <cagney@redhat.com>
7020 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7021 (gdb_disassembly): Make "di" non static, always initialize and
7022 cleanup. Always use dis_asm_read_memory.
7023 (gdb_dis_asm_read_memory): Delete function.
7025 2003-05-01 Andrew Cagney <cagney@redhat.com>
7027 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7028 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7030 2003-04-30 Andrew Cagney <cagney@redhat.com>
7032 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7033 "tm_print_insn_info".
7034 (TARGET_PRINT_INSN_INFO): Delete macro.
7035 (dis_asm_read_memory): Delete function declaration.
7036 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7037 (tm_print_insn_info): Delete variable definition.
7038 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7039 * gdbarch.h, gdbarch.c: Re-generate.
7040 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7041 "deprecated_tm_print_insn_info".
7042 * mcore-tdep.c (mcore_dump_insn): Ditto.
7043 * mips-tdep.c (mips_gdbarch_init): Ditto.
7044 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7045 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7046 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7047 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7048 instead of TARGET_PRINT_INSN_INFO, add comment.
7049 * s390-tdep.c (s390_get_frame_info): Instead of
7050 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7051 (s390_check_function_end, s390_is_sigreturn): Ditto.
7052 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7053 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7054 * disasm.c: Include "gdbcore.h".
7055 (_initialize_disasm): New function, initialize
7056 "deprecated_tm_print_insn_info".
7057 (deprecated_tm_print_insn_info): New variable.
7058 (dis_asm_read_memory): Moved from "corefile.c", made static.
7059 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7060 * Makefile.in (disasm.o): Update dependencies.
7062 2003-04-30 Andrew Cagney <cagney@redhat.com>
7064 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7066 2003-04-29 Adam Fedor <fedor@gnu.org>
7068 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7069 * infcall.c (find_function_addr): Make non-static.
7070 * infcall.h (find_function_addr): Declare.
7071 * Makefile.in (eval.o): Update dependencies.
7073 2003-04-28 Adam Fedor <fedor@gnu.org>
7075 * symtab.c (symbol_find_demangled_name): Check for and demangle
7077 (symbol_init_demangled_name): Init for language_objc as well.
7079 2003-04-28 Andrew Cagney <cagney@redhat.com>
7081 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7082 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7083 * gdbarch.h, gdbarch.c: Re-generate.
7084 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7085 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7086 * inferior.h (deprecated_read_fp): Rename read_fp.
7087 (generic_target_read_fp): Delete declaration.
7088 * regcache.c (generic_target_read_fp): Delete function.
7089 (deprecated_read_fp): Replace read_fp, use
7090 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7091 * d10v-tdep.c (d10v_read_fp): Delete function.
7092 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7094 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7095 deprecated_target_read_fp to generic_target_read_fp.
7096 * sh-tdep.c (sh_gdbarch_init): Ditto.
7097 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7099 * frv-tdep.c (frv_gdbarch_init): Ditto.
7101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7102 deprecated_fp_regnum.
7103 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7104 * vax-tdep.c (vax_gdbarch_init): Ditto.
7105 * v850-tdep.c (v850_gdbarch_init): Ditto.
7106 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7107 * sh-tdep.c (sh_gdbarch_init): Ditto.
7108 * s390-tdep.c (s390_gdbarch_init): Ditto.
7109 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7110 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7111 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7112 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7114 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7115 * i386-tdep.c (i386_gdbarch_init): Ditto.
7116 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7117 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7118 * frv-tdep.c (frv_gdbarch_init): Ditto.
7119 * cris-tdep.c (cris_gdbarch_init): Ditto.
7120 * avr-tdep.c (avr_gdbarch_init): Ditto.
7121 * arm-tdep.c (arm_gdbarch_init): Ditto.
7122 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7124 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7125 * v850-tdep.c (v850_gdbarch_init): Ditto.
7126 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7127 * sh-tdep.c (sh_gdbarch_init): Ditto.
7128 * s390-tdep.c (s390_gdbarch_init): Ditto.
7129 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7130 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7131 * mips-tdep.c (mips_gdbarch_init): Ditto.
7132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7134 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7135 * frv-tdep.c (frv_gdbarch_init): Ditto.
7136 * avr-tdep.c (avr_gdbarch_init): Ditto.
7137 * arm-tdep.c (arm_gdbarch_init): Ditto.
7139 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7140 DEPRECATED_FP_REGNUM.
7141 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7142 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7143 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7144 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7145 (sparc32_register_virtual_type): Ditto.
7146 * sh-tdep.c (sh64_frame_chain): Ditto.
7147 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7148 (sh_nofp_frame_init_saved_regs): Ditto.
7149 (sh64_nofp_frame_init_saved_regs): Ditto.
7150 (sh_fp_frame_init_saved_regs): Ditto.
7151 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7152 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7153 * procfs.c (procfs_fetch_registers): Ditto.
7154 (procfs_store_registers): Ditto.
7155 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7156 (store_inferior_registers, fetch_core_registers): Ditto.
7157 (fetch_kcore_registers, clear_regs): Ditto.
7158 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7159 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7160 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7161 * nlm/i386.c (do_status): Ditto.
7162 * mipsv4-nat.c (supply_gregset): Ditto.
7163 * mips-tdep.c: Ditto for comments.
7164 * mips-nat.c (fetch_inferior_registers): Ditto.
7165 (store_inferior_registers, fetch_core_registers): Ditto.
7166 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7167 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7168 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7169 (i386_do_pop_frame, i386_register_type): Ditto.
7170 * hppa-tdep.c (hppa_frame_chain): Ditto.
7171 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7172 (hppa_pop_frame, hppa_read_fp): Ditto.
7173 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7174 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7175 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7176 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7177 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7178 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7179 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7180 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7181 * blockframe.c: Ditto for comments.
7182 * arch-utils.h: Ditto for comments.
7183 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7184 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7185 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7186 * alpha-tdep.h: Ditto for comments.
7187 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7188 (alpha_cannot_store_register): Ditto.
7189 (alpha_push_dummy_frame): Ditto.
7190 * alpha-nat.c (supply_gregset): Ditto.
7192 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7193 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7194 * config/sparc/tm-sparc.h: Update comment.
7196 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7197 deprecated_read_fp instead of TARGET_READ_FP.
7198 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7199 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7200 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7201 deprecated_read_fp instead of read_fp.
7202 * s390-tdep.c (s390_push_arguments): Ditto.
7203 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7204 * frame.h: Ditto in comments.
7205 * frame.c (legacy_get_prev_frame): Ditto.
7206 * dummy-frame.c (dummy_frame_this_id): Ditto.
7207 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7209 2003-04-28 Andrew Cagney <cagney@redhat.com>
7211 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7212 * gdbarch.h, gdbarch.c: Re-generate.
7213 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7214 * vax-tdep.c (_initialize_vax_tdep): Update.
7215 * v850-tdep.c (_initialize_v850_tdep): Update.
7216 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7217 * s390-tdep.c (_initialize_s390_tdep): Update.
7218 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7219 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7220 * mips-tdep.c (_initialize_mips_tdep): Update.
7221 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7222 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7223 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7224 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7225 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7226 * frv-tdep.c (_initialize_frv_tdep): Update.
7227 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7228 (_initialize_cris_tdep): Update.
7229 * arch-utils.c (legacy_print_insn): Update.
7230 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7232 2003-04-26 Adam Fedor <fedor@gnu.org>
7234 * linespec.c (decode_objc): New function to decode ObjC calls
7235 (decode_line_1): Check for ObjC calls (using decode_objc)
7236 * Makefile (linespec.o): Update dependencies.
7238 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7240 * breakpoint.h (struct breakpoint_ops): New.
7241 (struct breakpoint): Add ops member.
7243 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7244 (mention): Use new breakpoint ops member.
7245 (set_raw_breakpoint): Initialize ops field to NULL.
7246 (print_exception_catchpoint, print_one_exception_catchpoint)
7247 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7248 (gnu_v3_exception_catchpoint_ops): New.
7249 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7251 2003-04-25 Adam Fedor <fedor@gnu.org>
7253 * Makefile.in (COMMON_OBS): Add objc-lang.o
7255 2003-04-25 Andrew Cagney <cagney@redhat.com>
7257 * d10v-tdep.c (print_insn): Delete function.
7258 (display_trace): Use TARGET_PRINT_INSN.
7259 (_initialize_d10v_tdep): Do not set tm_print_insn.
7260 (d10v_gdbarch_init): Set print_insn.
7262 2003-04-25 Andrew Cagney <cagney@redhat.com>
7264 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7265 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7266 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7267 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7268 (nr_dmap_regs, a0_regnum): ... new functions.
7269 (d10v_print_registers_info): Use a0_regnum, use register_size.
7270 (d10v_register_byte): Delete function.
7271 (d10v_register_raw_size): Delete function.
7272 (d10v_register_type): Use a0_regnum.
7273 (d10v_print_registers_info): Use a0_regnum.
7274 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7275 (d10v_gdbarch_init): Do not set register_byte or
7276 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7277 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7279 (trace_command): Use XCALLOC.
7280 (print_insn): Delete reference to tm_print_insn.
7281 (saved_regs_unwinder): Use store_unsigned_integer instead of
7283 * frame.h (FRAME_OBSTACK_CALLOC): Define
7285 2003-04-25 David Carlton <carlton@bactrian.org>
7287 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7289 2003-04-24 Adam Fedor <fedor@gnu.org>
7291 * objc-lang.c: Include "valprint.h"
7292 * Makefile.in (objc-lang.o): Update dependencies.
7294 2003-04-24 Adam Fedor <fedor@gnu.org>
7296 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7297 architecture dependant compilation and mark as unimplemented
7298 (until they get put in the gdbarch vector).
7300 2003-04-23 David Carlton <carlton@bactrian.org>
7302 * cp-support.c (cp_find_first_component): Accept 'operator' in
7305 2003-04-23 Andrew Cagney <cagney@redhat.com>
7307 * infcall.c (call_function_by_hand): Eliminate redundant
7308 indentation. Move "saved_async" and "old_cleanups" to where they
7311 2003-04-23 Andrew Cagney <cagney@redhat.com>
7313 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7314 and "buffer". Move the "name" code to where it is needed.
7316 2003-04-23 Andrew Cagney <cagney@redhat.com>
7318 * infcall.c (call_function_by_hand): Move variables "start_sp",
7319 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7320 code to ON_STACK switch branch.
7322 2003-04-23 Andrew Cagney <cagney@redhat.com>
7324 * infcall.c (call_function_by_hand): Make declaration of "i",
7325 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7328 2003-04-23 Andrew Cagney <cagney@redhat.com>
7330 * infcall.c (call_function_by_hand): Delete variable
7331 "n_method_args". Localize "param_type"'s declaration to the loop
7332 that it is used. Reinstate code assigning to said variable -
7333 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7334 Rationalize code using "param_type".
7336 2003-04-22 Andrew Cagney <cagney@redhat.com>
7338 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7339 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7340 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7341 to DEPRECATED_PUSH_RETURN_ADDRESS.
7343 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7345 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7346 on the DWARF2 register number prior to fetching a register.
7348 2003-04-22 J. Brobecker <brobecker@gnat.com>
7350 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7351 Update all the tests using SOFT_FLOAT considering the fact that
7352 this macro was always set to 0.
7353 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7354 considering the fact that this macro was always set to 0.
7355 * hppa-tdep.h (hppa_store_return_value): Likewise.
7356 (hppa_extract_return_value): Likewise.
7358 2003-04-22 J. Brobecker <brobecker@gnat.com>
7360 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7361 the hppa-pro target only.
7363 2003-04-21 J. Brobecker <brobecker@gnat.com>
7365 Ongoing multi-arch conversion effort for HP/UX:
7366 * config/pa/tm-hppa.h: Move all macro that are no longer
7367 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7368 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7370 2003-04-21 J. Brobecker <brobecker@gnat.com>
7372 * config/pa/tm-hppa.h: Obsolete a section that was only used
7375 2003-04-21 J. Brobecker <brobecker@gnat.com>
7377 Ongoing multi-arch conversion for HP/UX.
7378 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7379 if already defined (allows hppa64 to stay non-multiarched for now).
7380 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7382 2003-04-21 Andrew Cagney <cagney@redhat.com>
7384 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7386 2003-04-21 Andrew Cagney <cagney@redhat.com>
7388 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7389 "i386_num_mmx_regs".
7391 2003-04-21 Andrew Cagney <cagney@redhat.com>
7393 * infcall.c: New file.
7394 * infcall.h: New file.
7395 * valarith.c: Include "infcall.h".
7396 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7397 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7398 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7399 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7400 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7401 (SFILES): Add "infcall.c"
7402 (COMMON_OBS): Add "infcall.o".
7403 (infcall.o): Specify dependencies.
7404 * value.h (call_function_by_hand): Delete declaration.
7405 * inferior.h (run_stack_dummy): Delete declaration.
7406 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7407 (run_stack_dummy): Move to "infcall.c", merged into
7408 call_function_by_hand.
7409 * valops.c (call_function_by_hand): Moved to "infcall.c".
7410 (find_function_addr, value_arg_coerce): Ditto.
7411 (unwindonsignal_p, coerce_float_to_double): Ditto.
7412 (_initialize_valops): Move "set/show coerce-float-to-double", and
7413 "set/show unwindonsignal" commands to "infcall.c".
7414 * v850-tdep.c, target.h: Update comments.
7415 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7416 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7417 (sh64_init_extra_frame_info): Update comments.
7418 * mn10300-tdep.c: Update comments.
7419 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7420 * config/sparc/tm-sparc.h: Update comments.
7421 * breakpoint.h: Update comments.
7422 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7423 * arm-tdep.c: Update comment.
7425 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7427 * i386-tdep.c (i386_num_register_names): New variable.
7428 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7429 (MM0_REGNUM): Remove redundant parentheses in define.
7430 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7431 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7432 i386_mxcsr_regnum_p): Remove redundant parentheses.
7433 (i386_register_name): Use i386_num_register_names.
7435 * i386-tdep.c (i386_extract_return_value,
7436 i386_store_return_value): Correct check for availability of
7437 floating-point registers.
7439 * i386-tdep.c (i386_frame_num_args): Remove function.
7440 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7442 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7443 mmx_regnum_to_fp_regnum. Adjust all callers.
7445 * i386-tdep.c (i386_get_longjmp_target): Use
7446 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7447 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7450 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7452 * core-regset.c: Update comments to reflect reality. Re-order
7454 (fetch_core_registers): Use switch instead of if. Remove
7455 redundant prototype.
7457 2003-04-18 Jim Blandy <jimb@redhat.com>
7459 * s390-tdep.c (s390_frame_align): New function.
7460 (s390_gdbarch_init): Register it with the gdbarch object.
7462 2003-04-17 Richard Henderson <rth@redhat.com>
7464 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7466 2003-04-17 Michael Snyder <msnyder@redhat.com>
7467 Karen Bennet <bennet@redhat.com>
7469 Committed by Elena Zannoni <ezannoni@redhat.com>
7470 * gdb_gcore.sh: New script to create a core dump of a process.
7472 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7474 * values.c (value_being_returned): Don't fetch the return
7475 value if the return type is void.
7477 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7479 * thread-db.c: Reindented.
7481 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7483 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7484 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7511 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7513 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7514 the size of ``long double'' to 16, instead of 8.
7516 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7518 * i386-linux-nat.c: Add some whitespace to make things more
7520 (fetch_register, store_register, fetch_inferior_registers,
7521 store_inferior_registers): Get rid of assignment in if-statement.
7522 (store_register): Fix typo in error message.
7524 2003-04-16 Andrew Cagney <cagney@redhat.com>
7526 * utils.c (xmmalloc): Always allocate something, matches
7527 libiberty/xmalloc's semantics.
7528 (xmrealloc, xmcalloc): Ditto.
7530 2003-04-16 Andrew Cagney <cagney@redhat.com>
7532 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7534 (get_frame_type): Initialize unwind and type when needed.
7535 (get_frame_id, frame_register_unwind): Ditto.
7537 2003-04-16 Andrew Cagney <cagney@redhat.com>
7539 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7541 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7542 * sparcl-stub.c: Obsolete file.
7543 * config/sparc/tm-sparclet.h: Obsolete file.
7544 * sparclet-stub.c: Obsolete file.
7545 * sparclet-rom.c: Obsolete file.
7546 * sparcl-tdep.c: Obsolete file.
7547 * config/sparc/tm-sparclite.h: Obsolete file.
7548 * config/sparc/sparclite.mt: Obsolete file.
7549 * config/sparc/sparclet.mt: Obsolete file.
7550 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7551 sparc86x-*-* obsolete.
7553 2003-04-15 David Carlton <carlton@math.stanford.edu>
7555 * Makefile.in (SFILES): Add cp-namespace.c.
7556 (COMMON_OBS): Add cp-namespace.o.
7557 (block.o): Depend on gdb_obstack_h and cp_support_h.
7558 (buildsym.o): Depend on cp_support_h.
7559 (cp-namespace.o): New.
7560 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7561 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7562 (dwarf2read.o): Depend on cp_support_h.
7563 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7564 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7565 processing_current_namespace.
7566 (read_namespace): Update processing_current_namespace; check for
7567 anonymous namespaces.
7568 (dwarf2_name): New function.
7569 (dwarf2_extension): Ditto.
7570 * cp-support.h: Update copyright, contributors.
7571 Add inclusion guards.
7572 Add opaque declaration for structs obstack, block, symbol.
7573 (struct using_direct): New struct.
7574 Add declarations for cp_find_first_component,
7575 cp_entire_prefix_len, processing_has_namespace_info,
7576 processing_current_namespace, cp_is_anonymous,
7577 cp_add_using_directive, cp_initialize_namespace,
7578 cp_finalize_namespace, cp_set_block_scope,
7579 cp_scan_for_anonymous_namespaces.
7580 * cp-namespace.c: New file.
7581 * cp-support.c: Update copyright.
7582 Include ctype.h, gdb_assert.h, gdbcmd.h.
7583 New variable maint_cplus_cmd_list.
7584 (cp_find_first_component): New function.
7585 (cp_entire_prefix_len, maint_cplus_command)
7586 (first_component_command, _initialize_cp_support): Ditto.
7587 * buildsym.c: Include cp-support.h.
7588 New variable using_list.
7589 (add_symbol_to_list): Check for anonymous namespaces.
7590 (finish_block): Set block's scope.
7591 (start_symtab): Initialize C++ namespace support.
7592 (end_symtab): Finalize C++ namespace support.
7593 * block.h: Add opaque declarations for structs
7594 block_namespace_info, using_direct, and obstack.
7595 Add declarations for block_set_scope and block_set_using.
7596 (struct block): Add 'language_specific' member.
7597 (BLOCK_NAMESPACE): New macro.
7598 * block.c: Include gdb_obstack.h and cp-support.h.
7599 (struct block_namespace_info): New struct.
7600 (block_set_scope): New function.
7601 (block_set_using, block_initialize_namespace): Ditto.
7603 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7605 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7606 (locate_base): Return early if there aren't any link map offsets.
7607 (svr4_solib_create_inferior_hook): Warn if shared library support
7610 2003-04-14 David Carlton <carlton@math.stanford.edu>
7612 * symtab.c (symbol_set_names): Add prefix when storing Java names
7613 in hash table. Fix for PR java/1039.
7615 2003-04-14 David Carlton <carlton@math.stanford.edu>
7617 * symtab.c (symbol_set_names): Rename 'name' arg to
7618 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7619 * symtab.h: Change 'name' argument in declaration of
7620 symbol_set_names to 'linkage_name'.
7621 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7623 2003-04-14 Andrew Cagney <cagney@redhat.com>
7625 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7626 return the fully sign-extended register value.
7627 (get_frame_pointer): Ditto.
7628 (mips_pop_frame): Initialize "proc_desc" after checking for a
7631 2003-04-14 Andrew Cagney <cagney@redhat.com>
7633 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7634 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7635 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7636 (mips_push_register): Delete function.
7637 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7640 2003-04-14 Jim Blandy <jimb@redhat.com>
7642 * symmisc.c: #include "gdb_regex.h".
7643 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7645 * maint.c (maintenance_list_command): New function.
7646 (_initialize_maint_cmds): Register the above as commands.
7647 * symtab.h (maintenance_list_symtabs,
7648 maintenance_list_psymtabs): New declarations.
7649 * cli/cli-cmds.c (maintenancelistlist): New variable.
7650 (init_cmd_lists): Initialize it.
7651 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7652 * gdbcmd.h (maintenancelistlist): New declaration.
7653 * Makefile.in (symmisc.o): Update dependencies.
7655 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7657 * s390-nat.c: Include asm/types.h for addr_t.
7659 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7661 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7662 actually incoming type.
7664 2003-04-13 Andrew Cagney <cagney@redhat.com>
7666 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7667 get_next_frame and get_frame_saved_regs.
7669 2003-04-13 Andrew Cagney <cagney@redhat.com>
7671 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7672 of gdbarch_num_regs.
7674 2003-04-13 Andrew Cagney <cagney@redhat.com>
7676 * frame.h: Mention what replaced what in "struct frame_info".
7677 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7678 deprecated_update_frame_base_hack and
7679 deprecated_update_frame_pc_hack.
7680 * hppa-tdep.c: Ditto.
7682 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7684 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7685 to read_reg and update its comment. Remove regnum member.
7686 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7687 Don't call read_reg when setting in_reg. Call read_reg to get
7688 the frame base if it's in a register. Return the register number
7689 on the stack instead of in the context. Remove extra arguments
7691 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7692 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7693 the register number on the expression stack.
7694 (needs_frame_read_reg): Remove extra arguments.
7696 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7698 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7700 (execute_stack_op): All callers updated.
7701 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7702 * dwarf2loc.c (find_location_expression): New function.
7703 (dwarf_expr_frame_base): Call it.
7704 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7705 (dwarf2_tracepoint_var_ref): New function, broken out from
7706 locexpr_tracepoint_var_ref.
7707 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7709 (loclist_read_variable, loclist_read_needs_frame): New functions.
7710 (loclist_describe_location, loclist_tracepoint_var_ref): New
7712 (dwarf2_loclist_funcs): New struct location_funcs.
7713 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7714 (struct dwarf2_locexpr_baton): Add comments.
7715 (dwarf2_loclist_funcs): New extern.
7716 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7717 base_address and base_known.
7718 (dwarf_loc_buffer): New variable.
7719 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7720 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7721 (dwarf2_has_info): Initialize dwarf_loc_offset.
7722 (dwarf2_build_psymtabs): Read in .debug_loc.
7723 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7725 (psymtab_to_symtab_1): Likewise. Move base address calculation
7727 (dwarf2_get_pc_bounds): ... here. Use the base address from
7729 (dwarf2_symbol_mark_computed): Handle location lists.
7731 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7733 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7734 if the linkage name demangled successfully.
7736 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7738 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7739 disassmbly_flavour): Removed.
7741 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7743 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7745 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7747 2003-04-12 Andrew Cagney <cagney@redhat.com>
7749 * frame.h (struct frame_info): Move definition from here ...
7750 * frame.c (struct frame_info): ... to here.
7752 2003-04-12 Andrew Cagney <cagney@redhat.com>
7754 * gdbthread.h (save_infrun_state): Delete parameter
7756 (struct thread_info): Delete field "prev_func_start".
7757 (load_infrun_state): Ditto.
7758 * thread.c (load_infrun_state, save_infrun_state): Update.
7759 * infrun.c (prev_func_start): Delete variable.
7760 (context_switch, init_wait_for_inferior): Update.
7761 (stop_stepping, keep_going): Update.
7763 2003-04-12 Andrew Cagney <cagney@redhat.com>
7765 * gdbarch.sh: Add missing opaque declarations.
7766 * gdbarch.h: Regnerate.
7767 * symtab.h: Add missing opaque declarations.
7768 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7769 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7770 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7771 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7772 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7773 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7774 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7775 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7776 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7777 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7778 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7779 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7780 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7782 2003-04-11 Andrew Cagney <cagney@redhat.com>
7784 * frame.c (get_frame_id): Return this frame's "id".
7785 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7787 (legacy_saved_regs_this_id): Replace function body with
7789 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7790 FRAME_OBSTACK_ZALLOC.
7791 (create_new_frame): Mark the frame ID as valid.
7793 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7795 * Makefile.in (libbfd_h): Added missing setting.
7796 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7797 according to the selected ABI.
7799 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7801 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7803 2003-04-11 Andrew Cagney <cagney@redhat.com>
7805 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7806 SAVED_PC_AFTER_CALL.
7807 * gdbarch.h, gdbarch.c: Regenerate.
7808 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7809 * x86-64-tdep.c (x86_64_init_abi): Update.
7810 * vax-tdep.c (vax_gdbarch_init): Update.
7811 * v850-tdep.c (v850_gdbarch_init): Update.
7812 * sparc-tdep.c (sparc_gdbarch_init): Update.
7813 * sh-tdep.c (sh_gdbarch_init): Update.
7814 * s390-tdep.c (s390_gdbarch_init): Update.
7815 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7816 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7817 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7818 * mips-tdep.c (mips_gdbarch_init): Update.
7819 * mcore-tdep.c (mcore_gdbarch_init): Update.
7820 * m68k-tdep.c (m68k_gdbarch_init): Update.
7821 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7822 * ia64-tdep.c (ia64_gdbarch_init): Update.
7823 (ia64_saved_pc_after_call): Update declaration.
7824 * i386ly-tdep.c (i386lynx_init_abi): Update.
7825 * i386-tdep.c (i386_gdbarch_init): Update.
7826 * hppa-tdep.c (hppa_gdbarch_init): Update.
7827 * h8300-tdep.c (h8300_gdbarch_init): Update.
7828 * frv-tdep.c (frv_gdbarch_init): Update.
7829 * cris-tdep.c (cris_gdbarch_init): Update.
7830 * avr-tdep.c (avr_gdbarch_init): Update.
7831 * arm-tdep.c (arm_gdbarch_init): Update.
7832 * alpha-tdep.c (alpha_gdbarch_init): Update.
7833 * ns32knbsd-nat.c (frame_num_args): Update.
7834 * ns32k-tdep.c (umax_frame_num_args): Update.
7835 * mips-tdep.c (mips_init_frame_pc_first): Update.
7836 * infrun.c (step_over_function): Update.
7837 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7838 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7839 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7840 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7841 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7842 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7843 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7844 * arch-utils.c (init_frame_pc_default): Update.
7845 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7846 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7849 2003-04-11 Andrew Cagney <cagney@redhat.com>
7851 * i387-tdep.c: Update copyright.
7852 (i387_to_double): Delete function.
7853 (double_to_i387): Delete function.
7855 2003-04-10 Andrew Cagney <cagney@redhat.com>
7857 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7858 frame's function's address. Simplify.
7859 (d10v_frame_unwind_cache): Check that the frame's function is
7862 2003-04-10 Jim Blandy <jimb@redhat.com>
7864 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7865 call to set_gdbarch_deprecated_push_arguments.
7867 2003-04-10 Andrew Cagney <cagney@redhat.com>
7869 * frame.c (fprint_frame_id): New function.
7870 (fprint_frame_type, fprint_frame): New function.
7871 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7872 (create_sentinel_frame, get_frame_id): Ditto.
7873 (frame_id_p, frame_id_eq): Ditto.
7874 (frame_id_inner, create_new_frame): Ditto.
7875 (legacy_get_prev_frame, get_prev_frame): Ditto.
7876 (deprecated_update_frame_pc_hack): Ditto.
7877 (frame_register_unwind): Ditto.
7878 (deprecated_update_frame_base_hack): Ditto.
7880 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7882 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7883 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7884 frame_chain function.
7885 * Makefile.in: Add dependencies due to above change.
7887 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7889 * blockframe.c (legacy_frame_chain_valid): Move call to
7890 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7893 2003-04-09 Andrew Cagney <cagney@redhat.com>
7895 * frame.h (struct frame_id): Replace "pc" and "base" with
7896 "stack_addr" and "code_addr". Update comments.
7897 (frame_id_build): Update parameter names and comment.
7898 (struct frame_info): Replace "id_p" and "id" with "this_id".
7899 * dummy-frame.c (dummy_frame_this_id): Update.
7900 * breakpoint.c (print_one_breakpoint): Update.
7901 * frame.c (get_frame_id): Update.
7902 (get_frame_base, frame_id_build): Update.
7903 (create_sentinel_frame, legacy_get_prev_frame): Update.
7904 (deprecated_update_frame_base_hack): Update.
7905 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7906 (frame_id_inner): Ditto.
7908 2003-04-09 Andrew Cagney <cagney@redhat.com>
7910 * defs.h (gdb_print_host_address): Make "addr" parameter a
7912 * utils.c (gdb_print_host_address): Update.
7914 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7916 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7917 register number for R0 is 0.
7919 2003-04-09 J. Brobecker <brobecker@gnat.com>
7921 * frame.h (struct gdbarch): Add opaque structure definition
7922 to avoid a compilation warning on LynxOS 4.0.
7924 2003-04-09 Andrew Cagney <cagney@redhat.com>
7926 * frame.h (struct frame_info): Delete field "pc". Replace
7927 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7929 * frame.c (frame_pc_unwind): Update.
7930 (create_sentinel_frame): Do not set "pc".
7931 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7932 (get_frame_pc): Call frame_pc_unwind.
7933 (deprecated_update_frame_pc_hack): Update.
7934 (create_new_frame): Use "pc" not "->pc".
7936 2003-04-09 Andrew Cagney <cagney@redhat.com>
7938 * frame.c (get_frame_id): Eliminate code updating "frame".
7939 (legacy_get_prev_frame): Ditto.
7940 (get_frame_base): Return id.base directly.
7941 (deprecated_update_frame_base_hack): Update "id.base".
7942 * frame.h (struct frame_info): Delete field "frame".
7944 2003-04-09 Andrew Cagney <cagney@redhat.com>
7946 * NEWS: Mention that the "Sequent family" is obsolete.
7947 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7948 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7949 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7950 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7951 * config/i386/tm-ptx4.h: Obsolete file.
7952 * config/i386/tm-ptx.h: Obsolete file.
7953 * symm-tdep.c: Obsolete file.
7954 * config/i386/symmetry.mt: Obsolete file.
7955 * config/i386/tm-symmetry.h: Obsolete file.
7956 * symm-nat.c: Obsolete file.
7957 * config/i386/nm-symmetry.h: Obsolete file.
7958 * config/i386/xm-symmetry.h: Obsolete file.
7959 * config/i386/symmetry.mh: Obsolete file.
7960 * config/i386/nm-ptx4.h: Obsolete file.
7961 * config/i386/ptx4.mh: Obsolete file.
7962 * config/i386/ptx.mt: Obsolete file.
7963 * config/i386/ptx.mh: Obsolete file.
7964 * config/i386/xm-ptx4.h: Obsolete file.
7965 * config/i386/xm-ptx.h: Obsolete file.
7967 2003-04-09 Andrew Cagney <cagney@redhat.com>
7969 Obsolete mips*-*-mach3*.
7970 * NEWS: Mention that mips*-*-mach3* is obsolete.
7971 * m3-nat.c: Obsolete file.
7972 * config/nm-m3.h: Obsolete file.
7973 * config/mips/tm-mipsm3.h: Obsolete file.
7974 * config/mips/mipsm3.mt: Obsolete file.
7975 * config/mips/mipsm3.mh: Obsolete file.
7976 * config/mips/xm-mipsm3.h: Obsolete file.
7977 * mipsm3-nat.c: Obsolete file.
7978 * configure.host: Obsolete mips-dec-mach3*.
7979 * configure.tgt: Obsolete mips*-*-mach3*.
7981 2003-04-09 Andrew Cagney <cagney@redhat.com>
7983 * doublest.h: Update copyright.
7984 (deprecated_store_floating, deprecated_extract_floating): Rename
7985 store_floating and extract_floating. Update comments.
7986 * doublest.c: Update copyright.
7987 (extract_floating_by_length): Replace extract_floating.
7988 (store_floating_by_length): Replace store_floating.
7989 (deprecated_extract_floating): New function.
7990 (deprecated_store_floating): New function.
7991 (extract_typed_floating): Call extract_floating_by_length.
7992 (store_typed_floating): Call store_floating_by_length.
7993 * x86-64-tdep.c (x86_64_store_return_value): Update.
7994 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7995 (sh64_extract_return_value): Update.
7996 (sh_sh4_register_convert_to_virtual): Update.
7997 (sh_sh64_register_convert_to_virtual): Update.
7998 (sh_sh4_register_convert_to_raw): Update.
7999 (sh_sh64_register_convert_to_raw): Update.
8000 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8001 (rs6000_register_convert_to_raw): Update.
8002 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8003 (ia64_register_convert_to_raw): Update.
8004 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8005 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8006 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8007 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8008 (alpha_register_convert_to_raw): Update.
8010 2003-04-08 Andrew Cagney <cagney@redhat.com>
8012 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8013 * gdbarch.h, gdbarch.c: Re-generate.
8014 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8015 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8016 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8017 conditionally, use frame_pc_unwind as an alternative. Add
8019 * arch-utils.c (init_frame_pc_default): Only call
8020 SAVED_PC_AFTER_CALL when available.
8022 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8024 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8025 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8026 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8027 (start_remote): Ditto.
8028 (handle_inferior_event): Ditto.
8029 (save_inferior_status): Ditto.
8030 (restore_inferior_status): Ditto.
8031 * infcmd.c (attach_command): Ditto.
8032 * fork-child.c (startup_inferior): Ditto.
8033 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8034 * alpha-tdep.c (heuristic_proc_start): Ditto.
8035 * mips-tdep.c (heuristic_proc_start): Ditto.
8036 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8037 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8038 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8039 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8040 * remote-vx.c (vx_create_inferior): Ditto.
8042 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8044 * infrun.c (stop_soon_quietly): Make it an enum, to better
8045 override the default behavior of handle_inferior_event.
8046 (clear_proceed_status): Update uses of stop_soon_quietly to
8047 reflect that it is now an enum.
8048 (start_remote): Ditto.
8049 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8050 is set to handle the new GNU/Linux kernel behavior for
8051 attach/sigstop. Update uses of stop_soon_quietly.
8052 * inferior.h (enum stop_kind): New enum.
8053 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8054 Reset normal handle_inferior_event behavior, afterwards.
8055 * fork-child.c (startup_inferior): Update.
8056 * alpha-tdep.c (heuristic_proc_start): Update.
8057 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8058 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8059 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8060 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8061 * remote-vx.c (vx_create_inferior): Update.
8062 * mips-tdep.c (heuristic_proc_start): Update.
8064 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8066 * disasm.c (dump_insns): Move variables inside loop, or they will
8067 be freed more than once, causing wild memory corruptions.
8068 (gdb_disassembly): Look for the substring "-thread",
8069 instead of "-threads" in the target name, to make sure to find
8070 the 'multi-thread' target. Also, make sure we do the right thing
8071 with the "core" target.
8073 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8075 * mips-tdep.c (mips_print_fp_register): New function, created from
8076 do_fp_register_row(). Registers are now (also) printed as hex.
8077 Only one register is printed per row.
8078 (mips_print_register, do_fp_register_row): Print floating point
8079 registers with mips_print_fp_register().
8081 2003-04-06 Andrew Cagney <cagney@redhat.com>
8083 * valprint.h (inspect_it): Add extern declaration.
8084 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8085 (selectors_info, classes_info): Ditto.
8086 (find_objc_msgcall): Fix indentation.
8087 (objc_printstr): Delete extern declarations.
8089 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8091 2003-04-06 Andrew Cagney <cagney@redhat.com>
8093 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8095 * frame.c (legacy_saved_regs_this_id): Update.
8096 (legacy_get_prev_frame): Update.
8097 * xstormy16-tdep.c: Update comment.
8098 * sparc-tdep.c (sparc_frame_chain): Update comment.
8099 * blockframe.c (legacy_frame_chain_valid): Update.
8101 2003-04-06 Andrew Cagney <cagney@redhat.com>
8103 * valprint.c (val_print_type_code_int): Delete #ifdef
8104 PRINT_TYPELESS_INTEGER code.
8106 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8107 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8108 multi-arch definition.
8109 * gdbarch.h: Re-generate.
8111 2003-04-05 Andrew Cagney <cagney@redhat.com>
8113 Eliminate FRAME_FIND_SAVED_REGS.
8114 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8115 Change FSR parameter to a pointer.
8116 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8117 Assume FSR parameter is a pointer.
8118 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8120 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8121 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8122 saved_regs a pointer.
8123 (hppa_frame_saved_pc): Ditto.
8124 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8125 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8127 (restore_pc_queue): Make fsr a pointer.
8128 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8129 (hppa_frame_chain): Make saved_regs a pointer, call
8130 hppa_frame_init_saved_regs.
8131 * sparc-tdep.c: Include "gdb_assert.h".
8132 (sparc_frame_find_saved_regs): Replace internal_error with
8134 * remote-vxsparc.c (vx_read_register): Delete reference to
8135 FRAME_FIND_SAVED_REGS.
8136 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8137 * gdbarch.h: Regenerate.
8138 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8139 (deprecated_get_frame_saved_regs): Delete declaration.
8140 (struct frame_saved_regs): Delete definition.
8141 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8142 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8143 (hppa_frame_find_saved_regs): Delete declaration.
8144 (FRAME_FIND_SAVED_REGS): Delete macro.
8145 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8146 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8147 FRAME_FIND_SAVED_REGS in comment.
8149 2003-04-05 Andrew Cagney <cagney@redhat.com>
8151 * frame.c (frame_func_unwind, get_frame_func): New functions.
8152 * frame.h (get_frame_func, frame_func_unwind): Declare.
8153 (struct frame_info): Add field "prev_func" for caching the
8154 previous frame's function address.
8155 * arm-tdep.c (arm_frameless_function_invocation): Combine
8156 get_pc_function_start and get_frame_pc into get_frame_func.
8157 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8158 (sh64_nofp_frame_init_saved_regs): Ditto.
8159 * s390-tdep.c (s390_function_start): Ditto.
8160 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8161 (rs6000_frameless_function_invocation): Ditto.
8162 (rs6000_frame_saved_pc): Ditto.
8163 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8164 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8165 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8166 (i386_frame_init_saved_regs): Ditto.
8167 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8168 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8169 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8170 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8171 * blockframe.c (frameless_look_for_prologue): Ditto.
8173 2003-04-05 Andrew Cagney <cagney@redhat.com>
8175 * frame.c (legacy_get_prev_frame): Link prev to next at the
8176 function start. Update comments.
8178 2003-04-05 Andrew Cagney <cagney@redhat.com>
8180 * frame.c (get_frame_id): Update comment.
8181 (legacy_get_prev_frame): Update comment.
8182 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8183 * gdbarch.h: Regenerate.
8184 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8185 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8187 2003-04-05 Andrew Cagney <cagney@redhat.com>
8189 * stack.c (print_frame_info): Use get_frame_pc.
8191 2003-04-04 Andrew Cagney <cagney@redhat.com>
8193 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8194 the frame's type from the unwinder.
8195 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8196 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8197 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8198 (get_frame_base_address): Use get_frame_type.
8199 (get_frame_locals_address, get_frame_args_address): Ditto.
8200 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8201 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8202 (struct frame_info): Add comment explaining why the frame contains
8204 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8205 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8206 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8208 * frame-unwind.h: Include "frame.h".
8209 (struct frame_unwind): Add "type" field.
8210 * Makefile.in (frame_unwind_h): Add $(frame_h).
8212 2003-04-04 Andrew Cagney <cagney@redhat.com>
8214 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8215 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8216 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8218 (d10v_unwind_dummy_id): Use frame_id_build.
8219 * frame.c (find_frame_sal): Use get_frame_pc.
8220 (create_new_frame): Use deprecated_update_frame_pc_hack and
8221 deprecated_update_frame_base_hack.
8222 (create_sentinel_frame): Add comment about ->pc going away.
8223 (get_prev_frame): Add comment about ->pc going away.
8224 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8225 frame_id_build, deprecated_update_frame_pc_hack and
8226 deprecated_update_frame_base_hack.
8227 (select_frame): Use get_frame_pc.
8228 (legacy_saved_regs_this_id): Use frame_id_build.
8230 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8232 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8233 signed integer case.
8234 (classify_argument): Handle enumerations and references.
8236 2003-04-04 Andrew Cagney <cagney@redhat.com>
8238 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8241 2003-04-01 Adam Fedor <fedor@gnu.org>
8243 * gdb/objc-lang.c (selectors_info): Replace calls to
8244 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8245 SYMBOL_NATURAL_NAME.
8246 (classes_info, find_methods): Likewise.
8248 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8250 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8251 ``mach'' to the value determined by bfd_default_set_arch_mach().
8253 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8255 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8256 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8257 (mi-cmd-file.o): Update dependencies.
8259 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8261 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8262 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8264 2003-04-01 Adam Fedor <fedor@gnu.org>
8266 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8267 * language.h (struct language_defn): Add la_demangle.
8268 (language_demangle): Declare.
8269 * language.c (language_demangle): New function.
8270 (unk_lang_demangle): Likewise.
8271 (unknown_language_defn, auto_language_defn, local_language_defn):
8272 Add ukn_lang_demangle.
8273 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8274 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8275 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8276 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8277 * jv-lang.c (java_demangle): New function
8278 (java_language_defn): Use it for la_demangle element.
8279 * objc-lang.c (objc_demangle): Add options argument
8280 (objc_language_defn): Use objc_demangle for la_demangle element.
8281 * maint.c (maintenance_demangle): Replace switch with
8282 call to language_demangle.
8283 * utils.c (fprintf_symbol_filtered): Likewise.
8285 2003-04-01 Andrew Cagney <cagney@redhat.com>
8287 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8288 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8289 PRINT_TYPELESS_INTEGER.
8290 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8291 PUSH_RETURN_ADDRESS.
8293 2003-04-01 Andrew Cagney <cagney@redhat.com>
8295 * Makefile.in (d10v-tdep.o): Update dependencies.
8296 * d10v-tdep.c: Include "frame-base.h".
8297 (d10v_frame_unwind): Make constant.
8298 (d10v_frame_base_address): New function.
8299 (d10v_frame_base): New variable.
8300 (d10v_gdbarch_init): Set frame_base default.
8301 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8303 (d10v_frame_unwind_cache): Set and use "prev_sp".
8304 (d10v_frame_this_id): Use the previous frame's inner most stack
8305 address and this frame's func address for the frame ID. Use
8306 frame_id_build. Don't analyze beyond the current instruction.
8308 2003-04-01 Andrew Cagney <cagney@redhat.com>
8310 * frame.h (get_frame_locals_address, get_frame_args_address):
8311 Refer to the base address, instead of the address of the first
8314 2003-04-01 Andrew Cagney <cagney@redhat.com>
8316 Add frame debug info addresses:
8317 * frame-base.c: New file.
8318 * frame-base.h: New file.
8319 * frame.h (struct frame_base): Add opaque declaration.
8320 (get_frame_base): Update comment.
8321 (get_frame_base_address): Declare.
8322 (get_frame_locals_address): Declare.
8323 (get_frame_args_address): Declare.
8324 (struct frame_info): Add "base" and "base_cache". Update
8325 comments on the unwinder.
8326 * frame.c: Include "frame-base.h".
8327 (get_frame_locals_address): New function.
8328 (get_frame_base_address): New function.
8329 (get_frame_args_address): New function.
8330 * findvar.c (read_var_value): Use get_frame_locals_address and
8331 get_frame_args_address.
8332 * stack.c (frame_info): Use get_frame_locals_address and
8333 get_frame_args_address.
8334 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8335 moved to "frame-base.c".
8336 * printcmd.c (print_frame_nameless_args): Ditto.
8337 * symtab.h (address_class): Update comments.
8338 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8339 get_frame_base_address.
8340 * dwarf2expr.c (execute_stack_op): Ditto.
8341 * Makefile.in (frame_base_h): Define.
8342 (frame.o): Update dependencies.
8343 (frame-base.o): Add dependencies.
8344 (SFILES): Add frame-base.c.
8345 (COMMON_OBS): Add frame-base.o.
8347 2003-04-01 Andrew Cagney <cagney@redhat.com>
8349 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8350 CALL_DUMMY_LENGTH): Ditto.
8351 * gdbarch.c: Re-generate.
8352 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8353 (CALL_DUMMY_LENGTH): Delete macro.
8354 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8355 * arm-tdep.c (arm_gdbarch_init): Ditto.
8356 * avr-tdep.c (avr_gdbarch_init): Ditto.
8357 * cris-tdep.c (cris_gdbarch_init): Ditto.
8358 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8359 * frv-tdep.c (frv_gdbarch_init): Ditto.
8360 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8361 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8362 * i386-tdep.c (i386_gdbarch_init): Ditto.
8363 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8364 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8365 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8366 * mips-tdep.c (mips_gdbarch_init): Ditto.
8367 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8368 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8369 * s390-tdep.c (s390_gdbarch_init): Ditto.
8370 * sh-tdep.c (sh_gdbarch_init): Ditto.
8371 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8372 * v850-tdep.c (v850_gdbarch_init): Ditto.
8373 * vax-tdep.c (vax_gdbarch_init): Ditto.
8374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8376 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8378 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8380 2003-04-01 Andrew Cagney <cagney@redhat.com>
8382 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8383 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8384 * gdbarch.h, gdbarch.c: Re-generate.
8385 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8386 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8387 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8388 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8389 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8390 * infcmd.c (run_stack_dummy): Simplify assuming
8391 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8392 * infrun.c (handle_inferior_event): Ditto.
8393 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8394 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8395 * arm-tdep.c (arm_gdbarch_init): Ditto.
8396 * avr-tdep.c (avr_gdbarch_init): Ditto.
8397 * cris-tdep.c (cris_gdbarch_init): Ditto.
8398 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8399 * frv-tdep.c (frv_gdbarch_init): Ditto.
8400 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8401 * i386-tdep.c (i386_gdbarch_init): Ditto.
8402 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8404 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8405 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8406 * mips-tdep.c (mips_gdbarch_init): Ditto.
8407 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8408 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8409 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8410 * s390-tdep.c (s390_gdbarch_init): Ditto.
8411 * sh-tdep.c (sh_gdbarch_init): Ditto.
8412 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8413 * v850-tdep.c (v850_gdbarch_init): Ditto.
8414 * vax-tdep.c (vax_gdbarch_init): Ditto.
8415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8417 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8419 * symfile.c (symfile_relocate_debug_section): Update call to
8420 bfd_simple_get_relocated_section_contents.
8422 2003-03-31 Andrew Cagney <cagney@redhat.com>
8424 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8425 * gdbarch.h, gdbarch.c: Regenerate.
8426 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8427 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8429 * frame.h (generic_fix_call_dummy): Delete declaration.
8430 * dummy-frame.h: Update comment.
8431 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8432 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8434 * sh-tdep.c (sh_gdbarch_init): Ditto.
8435 * s390-tdep.c (s390_gdbarch_init): Ditto.
8436 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8437 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8439 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8440 * i386-tdep.c (i386_gdbarch_init): Ditto.
8441 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8442 * frv-tdep.c (frv_gdbarch_init): Ditto.
8443 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8444 * cris-tdep.c (cris_gdbarch_init): Ditto.
8445 * avr-tdep.c (avr_gdbarch_init): Ditto.
8446 * arm-tdep.c (arm_gdbarch_init): Ditto.
8448 2003-03-31 J. Brobecker <brobecker@gnat.com>
8450 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8451 (INIT_FRAME_AP): Likewise.
8452 (EXTRA_FRAME_INFO): Likewise.
8454 2003-03-31 Andrew Cagney <cagney@redhat.com>
8456 * gdbarch.sh: Include "symfile.h".
8457 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8458 * gdbarch.h, gdbarch.c: Re-generate.
8459 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8461 call_dummy_address, the default is at entry_point_address.
8462 * v850-tdep.c (v850_gdbarch_init): Ditto.
8463 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8464 * sh-tdep.c (sh_gdbarch_init): Ditto.
8465 * s390-tdep.c (s390_gdbarch_init): Ditto.
8466 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8467 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8468 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8469 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8470 * i386-tdep.c (i386_gdbarch_init): Ditto.
8471 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8472 * frv-tdep.c (frv_gdbarch_init): Ditto.
8473 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8474 * cris-tdep.c (cris_gdbarch_init): Ditto.
8475 * arm-tdep.c (arm_gdbarch_init): Ditto.
8477 2003-03-31 Andrew Cagney <cagney@redhat.com>
8479 * gdbarch.sh (CALL_DUMMY_P): Delete.
8480 * gdbarch.h, gdbarch.c: Re-generate.
8481 * inferior.h (CALL_DUMMY_P): Delete macro.
8482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8483 * vax-tdep.c (vax_gdbarch_init): Update.
8484 * v850-tdep.c (v850_gdbarch_init): Update.
8485 * sparc-tdep.c (sparc_gdbarch_init): Update.
8486 * sh-tdep.c (sh_gdbarch_init): Update.
8487 * s390-tdep.c (s390_gdbarch_init): Update.
8488 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8489 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8490 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8491 * mips-tdep.c (mips_gdbarch_init): Update.
8492 * mcore-tdep.c (mcore_gdbarch_init): Update.
8493 * m68k-tdep.c (m68k_gdbarch_init): Update.
8494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8495 * ia64-tdep.c (ia64_gdbarch_init): Update.
8496 * i386-tdep.c (i386_gdbarch_init): Update.
8497 * h8300-tdep.c (h8300_gdbarch_init): Update.
8498 * frv-tdep.c (frv_gdbarch_init): Update.
8499 * d10v-tdep.c (d10v_gdbarch_init): Update.
8500 * cris-tdep.c (cris_gdbarch_init): Update.
8501 * breakpoint.c (deprecated_frame_in_dummy): Update.
8502 * avr-tdep.c (avr_gdbarch_init): Update.
8503 * alpha-tdep.c (alpha_gdbarch_init): Update.
8504 * arm-tdep.c (arm_gdbarch_init): Update.
8505 * dummy-frame.c (dummy_frame_this_id): Update comments.
8506 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8507 * frame.c (legacy_get_prev_frame): Ditto.
8508 * valops.c (call_function_by_hand): Delete function.
8509 (hand_function_call): Rename to call_function_by_hand
8511 2003-03-30 Andrew Cagney <cagney@redhat.com>
8513 2002-11-10 Klee Dienes <kdienes@apple.com>
8514 * value.h (struct value): Update comment.
8516 2003-03-30 Andrew Cagney <cagney@redhat.com>
8518 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8520 (d10v_gdbarch_init): Do not set fp_regnum.
8522 * frame.c (get_frame_base): Force ID initialization.
8523 (get_prev_frame): Move computation of the frame ID from here ...
8524 (get_frame_id): ... to here.
8525 (legacy_get_prev_frame): Mark the frame ID as valid.
8526 * frame.h (struct frame_info): Add field "id_p".
8528 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8530 * i386-tdep.c (i386_store_struct_return): Removed.
8531 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8533 2003-03-30 Andrew Cagney <cagney@redhat.com>
8535 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8536 * gdbarch.h, gdbarch.c: Regenerate.
8537 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8539 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8540 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8541 * i386-tdep.c (i386_gdbarch_init): Ditto.
8542 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8543 * cris-tdep.c (cris_gdbarch_init): Ditto.
8544 * vax-tdep.c (vax_gdbarch_init): Ditto.
8545 * s390-tdep.c (s390_gdbarch_init): Ditto.
8546 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8547 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8548 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8549 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8550 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8551 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8552 * sparc-tdep.c (sparc_gdbarch_init): Update.
8553 * sh-tdep.c (sh_gdbarch_init): Update.
8554 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8555 * mips-tdep.c (mips_gdbarch_init): Update.
8556 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8557 * ia64-tdep.c (ia64_gdbarch_init): Update.
8558 * frv-tdep.c (frv_gdbarch_init): Update.
8559 * avr-tdep.c (avr_gdbarch_init): Update.
8560 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8561 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8562 instead of when push_dummy_call is not available.
8564 2003-03-30 Andrew Cagney <cagney@redhat.com>
8566 * infttrace.c: Include "gdbthread.h".
8567 (parent_attach_all): Fix function signature.
8568 (call_ptrace): Update call.
8569 * Makefile.in (infttrace.o): Update dependencies.
8571 2003-03-30 Andrew Cagney <cagney@redhat.com>
8573 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8574 PUSH_RETURN_ADDRESS.
8575 * gdbarch.h, gdbarch.c: Regenerate.
8576 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8577 * x86-64-tdep.c (x86_64_init_abi): Update.
8578 * v850-tdep.c (v850_gdbarch_init): Update.
8579 * sparc-tdep.c (sparc_gdbarch_init): Update.
8580 * sh-tdep.c (sh_gdbarch_init): Update.
8581 * s390-tdep.c (s390_gdbarch_init): Update.
8582 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8583 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8584 * mips-tdep.c (mips_gdbarch_init): Update.
8585 * mcore-tdep.c (mcore_gdbarch_init): Update.
8586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8587 * ia64-tdep.c (ia64_gdbarch_init): Update.
8588 * i386-tdep.c (i386_gdbarch_init): Update.
8589 * h8300-tdep.c (h8300_gdbarch_init): Update.
8590 * frv-tdep.c (frv_gdbarch_init): Update.
8591 * cris-tdep.c (cris_gdbarch_init): Update.
8592 * avr-tdep.c (avr_gdbarch_init): Update.
8593 * arm-tdep.c (arm_gdbarch_init): Update.
8594 * valops.c (hand_function_call): Update.
8596 2003-03-29 Andrew Cagney <cagney@redhat.com>
8598 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8599 sizeof_call_dummy_words.
8600 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8602 * gdbarch.h: Regenerate.
8604 2003-03-29 Andrew Cagney <cagney@redhat.com>
8606 * infttrace.h: New file.
8607 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8608 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8609 (hpread_read_doc_function_type): Detect an initialized type1.
8610 (hpread_quick_traverse): Initialize mod_name_string.
8611 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8612 (som_solib_get_solib_by_pc): Declare.
8613 (so_lib_thread_start_addr): Declare.
8614 (no_shared_libraries): Declare.
8615 * somread.c (init_import_symbols): Make static. Add forward
8617 * config/pa/nm-hppah.h: Include "infttrace.h" for
8619 (hppa_insert_hw_watchpoint): Declare.
8620 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8621 * hppah-nat.c: Include "gdb_string.h".
8622 (parent_attach_all): Delete extern declaration, moved to
8624 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8626 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8627 * Makefile.in (infttrace_h): Define.
8628 (hpread.o): Update dependencies.
8629 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8630 * hppa-hpux-tdep.c: Include "gdb_string.h".
8631 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8632 * infrun.c (handle_inferior_event): Always initialize
8633 stepped_after_stopped_by_watchpoint. Add default and remove
8634 fallthrough in switch statement.
8635 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8637 (hppa_remove_hw_watchpoint): Ditto.
8639 2003-03-29 Andrew Cagney <cagney@redhat.com>
8641 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8644 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8646 * arm-tdep.c (arm_push_arguments): Delete.
8647 (struct stack_item): New type.
8648 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8649 (arm_store_struct_return): Delte.
8650 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8651 arm_push_arguments or arm_store_struct_return.
8653 2003-03-28 Andrew Cagney <cagney@redhat.com>
8655 * Makefile.in (d10v-tdep.o): Update dependencies.
8656 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8657 * d10v-tdep.c: Include "remote.h".
8658 (target_resume_hook): Delete extern declaration.
8659 (target_wait_loop_hook): Ditto.
8660 (tdisassemble_command): Eliminate assignment in "if" conditional.
8661 (d10v_ts2_register_sim_regno): Eliminate call to
8662 legacy_register_sim_regno.
8663 (d10v_ts3_register_sim_regno): Ditto.
8665 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8667 * thread.c: Reindented.
8669 * linux-proc.c: Ditto.
8671 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8673 * MAINTAINERS (write after approval): Add myself.
8675 2003-03-27 Theodore A. Roth <troth@openavr.org>
8677 * objc-exp.y: Add missing semi-colons.
8679 2003-03-27 Andrew Cagney <cagney@redhat.com>
8681 * regcache.c (write_sp): Delete function and references.
8682 * inferior.h (write_sp): Delete declaration.
8683 * valops.c (hand_function_call): Replace write_sp with
8685 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8686 (sparc_pop_frame): Ditto.
8688 2003-03-27 Andrew Cagney <cagney@redhat.com>
8690 * NEWS: Mention removal of support for hppa*-*-bsd* and
8691 hppa*-*-osf* natives, and hppa*-*-pro* target.
8692 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8693 * config/pa/xm-pa.h: Obsolete file.
8694 * config/pa/xm-hppab.h: Obsolete file.
8695 * config/pa/nm-hppab.h: Obsolete file.
8696 * config/pa/tm-hppab.h: Obsolete file.
8697 * config/pa/tm-hppao.h: Obsolete file.
8698 * config/pa/nm-hppao.h: Obsolete file.
8699 * config/pa/tm-pro.h: Obsolete file.
8700 * config/pa/hppaosf.mt: Obsolete file.
8701 * config/pa/hppaosf.mh: Obsolete file.
8702 * config/pa/hppapro.mt: Obsolete file.
8703 * config/pa/hppabsd.mt: Obsolete file.
8704 * config/pa/hppabsd.mh: Obsolete file.
8705 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8706 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8709 2003-03-27 Andrew Cagney <cagney@redhat.com>
8711 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8712 push_arguments. Don't set push_return_address or write_sp.
8713 (d10v_push_dummy_call): Replace d10v_push_arguments.
8714 (d10v_push_return_address, d10v_write_sp): Delete function,
8715 handled by push_dummy_call.
8717 2003-03-26 Andrew Cagney <cagney@redhat.com>
8719 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8720 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8721 regcache and dummy_addr parameters.
8722 * gdbarch.h, gdbarch.c: Re-generate.
8723 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8724 available; assume it will handle stack alignment and return
8725 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8726 legacy_push_arguments.
8727 (legacy_push_arguments): Rename default_push_arguments.
8728 * value.h (legacy_push_arguments): Rename default_push_arguments.
8729 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8730 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8731 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8732 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8733 * config/i386/tm-symmetry.h: Update.
8734 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8735 * x86-64-tdep.c (x86_64_init_abi): Update.
8736 * v850-tdep.c (v850_gdbarch_init): Update.
8737 * sparc-tdep.c (sparc_gdbarch_init): Update.
8738 * sh-tdep.c (sh_gdbarch_init): Update.
8739 * s390-tdep.c (s390_gdbarch_init): Update.
8740 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8741 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8742 * mips-tdep.c (mips_gdbarch_init): Update.
8743 * mcore-tdep.c (mcore_gdbarch_init): Update.
8744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8745 * ia64-tdep.c (ia64_gdbarch_init): Update.
8746 * i386-tdep.c (i386_gdbarch_init): Update.
8747 * hppa-tdep.c (hppa_gdbarch_init): Update.
8748 * h8300-tdep.c (h8300_gdbarch_init): Update.
8749 * frv-tdep.c (frv_gdbarch_init): Update.
8750 * d10v-tdep.c (d10v_gdbarch_init): Update.
8751 * cris-tdep.c (cris_gdbarch_init): Update.
8752 * avr-tdep.c (avr_gdbarch_init): Update.
8753 * arm-tdep.c (arm_gdbarch_init): Update.
8754 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8755 * alpha-tdep.c (alpha_gdbarch_init): Update.
8757 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8759 * signals/signals.c (do_target_signal_to_host): Correct realtime
8762 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8764 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8765 (struct sal_chain, map_catch_names): Remove.
8766 (catch_exception_command_1): Don't call
8767 handle_gnu_4_16_catch_command.
8769 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8771 From Mark Dettinger <dettinge@de.ibm.com>:
8772 * dwarf2cfi.c (read_2u): Increment pointer by two.
8774 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8776 * signals/signals.c: Fix typos in last change.
8778 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8780 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8781 not already defined. Use __SIGRTMIN if available.
8782 (target_signal_from_host): Remove SIGRTMIN block.
8783 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8784 the signal is within the realtime range.
8786 2003-03-25 Adam Fedor <fedor@gnu.org>
8788 * Makefile.in (infrun.o): Add $(language_h)
8789 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8790 for language specific trampolines.
8791 * language.h (struct language_defn): Add skip_trampoline.
8792 (skip_language_trampoline): Declare.
8793 * language.c (unk_lang_trampoline, skip_language_trampoline):
8795 (unknown_language_defn, auto_language_defn, local_language_defn):
8796 Add ukn_lang_trampoline.
8797 * ada-lang.c (ada_language_defn): Add NULL for language
8798 specific skip_trampoline.
8799 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8800 scm-lang.c: Likewise.
8801 * objc-lang.c (objc_skip_trampoline): New function.
8802 (objc_language_defn): Add objc_skip_trampoline.
8804 2003-03-25 Andrew Cagney <cagney@redhat.com>
8806 * frame.c (get_prev_frame): Delay validating a frame's ID -
8807 non-NULL, didn't go backwards - until an attempt to unwind it to
8810 2003-03-25 Andrew Cagney <cagney@redhat.com>
8812 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8813 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8814 * gdbarch.h, gdbarch.c: Re-generate.
8815 * config/sparc/tm-sparc.h
8816 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8817 * sparc-tdep.c (sparc_gdbarch_init): Set
8818 deprecated_extra_stack_alignment_needed.
8819 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8820 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8821 extra_stack_alignment_needed.
8822 * v850-tdep.c (v850_gdbarch_init): Ditto.
8823 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8824 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8825 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8826 * cris-tdep.c (cris_gdbarch_init): Ditto.
8827 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8828 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8830 2003-03-25 Andrew Cagney <cagney@redhat.com>
8832 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8833 STORE_STRUCT_RETURN.
8834 * gdbarch.h, gdbarch.c: Regenerate.
8835 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8836 (d10v_push_arguments): Set the struct return register.
8837 (d10v_gdbarch_init): Update.
8838 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8839 * x86-64-tdep.c (x86_64_init_abi): Update.
8840 * vax-tdep.c (vax_gdbarch_init): Update.
8841 * v850-tdep.c (v850_gdbarch_init): Update.
8842 * sparc-tdep.c (sparc_gdbarch_init): Update.
8843 * sh-tdep.c (sh_gdbarch_init): Update.
8844 * s390-tdep.c (s390_gdbarch_init): Update.
8845 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8846 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8847 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8848 * mips-tdep.c (mips_gdbarch_init): Update.
8849 * mcore-tdep.c (mcore_gdbarch_init): Update.
8850 * m68k-tdep.c (m68k_gdbarch_init): Update.
8851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8852 * ia64-tdep.c (ia64_gdbarch_init): Update.
8853 * i386-tdep.c (i386_gdbarch_init): Update.
8854 * hppa-tdep.c (hppa_gdbarch_init): Update.
8855 * h8300-tdep.c (h8300_gdbarch_init): Update.
8856 * frv-tdep.c (frv_gdbarch_init): Update.
8857 * cris-tdep.c (cris_gdbarch_init): Update.
8858 * avr-tdep.c (avr_gdbarch_init): Update.
8859 * arm-tdep.c (arm_gdbarch_init): Update.
8860 * alpha-tdep.c (alpha_gdbarch_init): Update.
8862 2003-03-25 Andrew Cagney <cagney@redhat.com>
8864 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8865 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8866 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8867 * gdbarch.h, gdbarch.c: Regenerate.
8868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8869 call_dummy_stack_adjust_p.
8870 * vax-tdep.c (vax_gdbarch_init): Ditto.
8871 * v850-tdep.c (v850_gdbarch_init): Ditto.
8872 * sh-tdep.c (sh_gdbarch_init): Ditto.
8873 * s390-tdep.c (s390_gdbarch_init): Ditto.
8874 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8875 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8876 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8877 * mips-tdep.c (mips_gdbarch_init): Ditto.
8878 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8879 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8881 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8882 * i386-tdep.c (i386_gdbarch_init): Ditto.
8883 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8884 * frv-tdep.c (frv_gdbarch_init): Ditto.
8885 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8886 * cris-tdep.c (cris_gdbarch_init): Ditto.
8887 * avr-tdep.c (avr_gdbarch_init): Ditto.
8888 * arm-tdep.c (arm_gdbarch_init): Ditto.
8889 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8890 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8891 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8892 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8893 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8894 call_dummy_stack_adjust_p.
8895 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8896 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8897 * sparc-tdep.c (sparc32_push_arguments): Update.
8898 * valops.c (hand_function_call): Update.
8900 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8903 set_gdbarch_char_signed.
8905 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8908 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8910 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8912 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8913 (_initialize_arm_tdep): Don't set tm_print_insn.
8915 2003-03-24 Adam Fedor <fedor@gnu.org>
8917 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8918 * objc-lang.h: Add multiple inclusion protection.
8919 (start_msglist, add_msglist, end_msglist): Additional declarations.
8921 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8923 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8924 value was renamed to ARM_FLOAT_SOFT_FPA.
8926 2003-03-23 Andrew Cagney <cagney@redhat.com>
8928 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8929 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8930 * gdbarch.h, gdbarch.c: Regenerate.
8931 * valops.c (hand_function_call): Update.
8932 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8933 * frame.c (legacy_saved_regs_this_id): Update.
8934 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8935 * dummy-frame.h: Update.
8936 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8937 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8938 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8939 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8940 * config/m68k/tm-sun3.h: Update.
8941 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8942 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8943 * x86-64-tdep.c (x86_64_init_abi): Update.
8944 * vax-tdep.c (vax_gdbarch_init): Update.
8945 * v850-tdep.c (v850_gdbarch_init): Update.
8946 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8947 * sh-tdep.c (sh_gdbarch_init): Update.
8948 * s390-tdep.c (s390_gdbarch_init): Update.
8949 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8950 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8951 (frame_get_saved_regs): Update.
8952 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8953 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8954 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8955 * mips-tdep.c (mips_gdbarch_init): Update.
8956 * mcore-tdep.c (mcore_gdbarch_init): Update.
8957 * m68k-tdep.c (m68k_gdbarch_init): Update.
8958 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8959 * ia64-tdep.c (ia64_gdbarch_init): Update.
8960 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8961 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8962 (i386_interix_back_one_frame): Update.
8963 * hppa-tdep.c (hppa_gdbarch_init): Update.
8964 (hppa_init_extra_frame_info): Update.
8965 * h8300-tdep.c (h8300_gdbarch_init): Update.
8966 * frv-tdep.c (frv_gdbarch_init): Update.
8967 * cris-tdep.c (cris_gdbarch_init): Update.
8968 * avr-tdep.c (avr_gdbarch_init): Update.
8969 * arm-tdep.c (arm_gdbarch_init): Update.
8970 * alpha-tdep.c (alpha_gdbarch_init): Update.
8972 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8974 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8975 (arm_get_fp_model): Declare.
8976 * arm-tdep.c (fp_model_strings): New string array.
8977 (arm_fp_model, current_fp_model): New variables.
8978 (arm_get_fp_model): New function.
8979 (arm_set_fp): New function.
8980 (set_fp_model_sfunc): New function.
8981 (show_fp_model): New function.
8982 (_initialize_arm_tdep): Add new command to set/show the FPU.
8983 (arm_extract_return_value): Use arm_get_fp_model.
8984 (arm_store_return_value): Likewise.
8985 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8986 to initialize the floating-point data types.
8987 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8990 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8992 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8993 the current setting of each value.
8994 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8995 new_set and new_show. Use add_setshow_cmd_full and
8996 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8997 commands and add new version as subcommands of "set/show arm".
8999 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9001 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9002 (set_arm_command, show_arm_command): New functions.
9003 (_initialize_arm_tdep): Add them.
9004 (num_disassembly_options): Renamed from num_flavor_options.
9005 (valid_disassembly_styles): Renamed from valid_flavors.
9006 (disassembly_style): Renamed from disassembly_flavor.
9007 (set_disassembly_style_sfunc): Renamed from
9008 set_disassembly_flavor_sfunc.
9009 (set_disassembly_style): Renamed from set_disassembly_flavor.
9010 (arm_othernames): Updated.
9011 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9012 command. Add "set/show arm disassembly" commands. Deprecate
9013 "othernames" command.
9015 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9017 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9018 (arm-tdep.o): Depend on elf_arm_h.
9020 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9022 * Makefile.in (coff_internal_h): Define.
9023 (arm-tdep.o): Update dependencies.
9025 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9027 * arm-tdep.c (prologue_cache): Delete.
9028 (check_prologue_cache, save_prologue_cache): Delete.
9029 (arm_scan_prologue): Don't check or update the prologue_cache.
9030 (arm_gdb_arch_init): Don't initialize it.
9031 (_initialize_arm_tdep): Likewise.
9033 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9035 * MAINTAINERS (tui): Maintainer of tui code.
9037 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9039 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9040 (i386-cygwin-tdep.o): Add dependencies.
9041 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9042 * i386-cygwin-tdep.c: New file.
9043 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9044 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9046 2003-03-20 Andrew Cagney <cagney@redhat.com>
9048 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9049 (handle_inferior_event): Remove code calling
9050 DYNAMIC_TRAMPOLINE_NEXTPC.
9052 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9053 already has a full path.
9055 * main.c (gdb_main): Return 1.
9056 (captured_main): Call error to report an invalid interpreter.
9058 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9059 * alpha-osf1-tdep.c: Include "gdb_string.h".
9061 2003-03-19 J. Brobecker <brobecker@gnat.com>
9063 Continuing work to convert the hppa targets to multiarch partial.
9065 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9066 method, now that hppa_push_dummy_frame has a conformant prototype.
9067 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9068 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9069 for the switch to multiarch partial.
9071 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9073 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9074 when iss is issNull.
9076 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9078 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9079 NUM_REGS bounds check.
9081 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9083 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9084 * mips-tdep.c (gdb_assert.h): Include.
9085 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9086 (mips_register_name): Handle integer registers explicitly. Add
9088 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9089 (mips_lsi33k_reg_names): Don't list integer registers; they're
9090 handled by mips_register_name() now.
9091 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9092 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9093 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9094 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9095 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9097 2003-03-18 Andrew Cagney <cagney@redhat.com>
9099 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9101 * gdbtypes.h (print_scalar_formatted): Update declaration.
9102 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9104 2003-03-18 J. Brobecker <brobecker@gnat.com>
9106 * infrun.c (observer.h): Add #include.
9107 (normal_stop): Add call to observer_notify_normal_stop.
9108 * Makefile.in (infrun.o): Add dependency on observer.h.
9110 2003-03-18 J. Brobecker <brobecker@gnat.com>
9112 Continuing work to convert the hppa targets to multiarch partial.
9113 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9114 parameter. Reformat comment.
9115 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9116 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9117 to match new profile.
9119 2003-03-18 J. Brobecker <brobecker@gnat.com>
9121 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9122 appear to be working in any case.
9124 2003-03-18 J. Brobecker <brobecker@gnat.com>
9126 * observer.c (observer_test_first_observer): New static variable.
9127 (observer_test_second_observer): Likewise.
9128 (observer_test_third_observer): Likewise.
9129 (observer_test_first_notification_function): New static function.
9130 (observer_test_second_notification_function): Likewise.
9131 (observer_test_third_notification_function): Likewise.
9133 2003-03-17 J. Brobecker <brobecker@gnat.com>
9135 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9136 * somsolib.c (gdb_assert.h): Likewise.
9137 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9138 (somsolib.o): Likewise.
9140 2003-03-17 Andrew Cagney <cagney@redhat.com>
9142 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9143 BFD. Simplify setting of di.endian.
9145 2003-03-17 Andrew Cagney <cagney@redhat.com>
9147 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9148 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9150 From Elena Zannoni <ezannoni@redhat.com>
9151 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9152 vector and floating-point parameters.
9153 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9155 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9157 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9159 * MAINTAINERS: Remove my name from several maintainership roles.
9161 2003-03-17 Andrew Cagney <cagney@redhat.com>
9163 Fix frame off-by-one bug.
9164 * frame-unwind.h (frame_this_id_ftype): Replace
9165 frame_unwind_id_ftype.
9166 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9167 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9168 with "prev_register".
9169 * frame-unwind.c (frame_unwind_find_by_pc): Return
9170 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9172 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9173 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9174 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9175 (dummy_frame_unwind): Update.
9176 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9177 sentinel_frame_register_unwind.
9178 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9179 (sentinel_frame_unwinder): Update.
9180 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9181 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9182 * frame.c (create_sentinel_frame): Update. Initialize
9183 "prologue_cache" instead of "unwind_cache".
9184 (frame_register_unwind): Call this frame's prev_register with the
9185 next frame and this frame's prologue cache.
9186 (get_prev_frame): Simplify. Always call prev frame's this_id with
9187 this frame and prev frame's prologue cache. Document that this
9188 call is shifted one to the left when compared to the
9189 frame_register_unwind call.
9190 (legacy_saved_regs_prev_register): Replace
9191 frame_saved_regs_register_unwind.
9192 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9193 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9194 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9195 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9196 (d10v_frame_unwind): Update.
9197 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9198 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9199 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9200 "saved_regs" with "this_saved_regs".
9202 2003-03-16 Andrew Cagney <cagney@redhat.com>
9204 * frame.c (frame_pop): Don't call target_store_registers. Fix
9205 problem reported by Mark Kettenis.
9207 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9209 * i386-tdep.c (i386_register_type): Renamed from
9210 i386_register_virtual_type. Adjust function signature.
9211 (i386_gdbarch_init): Set register_type instead of
9212 deprecated_max_register_raw_size,
9213 deprecated_max_register_virtual_size and register_virtual_type.
9215 2003-03-14 Andrew Cagney <cagney@redhat.com>
9217 * frame.c (get_prev_frame): When a legacy frame, always call
9218 legacy_get_prev_frame. Simplify unwind code using assumption that
9219 the unwinder is new.
9220 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9221 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9222 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9224 2003-03-14 Andrew Cagney <cagney@redhat.com>
9226 * frame.c (get_saved_register): Delete function.
9227 * frame.h (get_saved_register): Delete declaration.
9228 * xstormy16-tdep.c: Update comment.
9229 * regcache.h: Update comments.
9230 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9231 get_saved_register and extract_address, use
9232 frame_read_unsigned_register.
9233 (sparc_frame_saved_pc): Ditto.
9234 (sparc_get_saved_register): Instead of get_saved_register, use
9236 (sparc_pop_frame): Ditto.
9237 * findvar.c: Update comments.
9238 (value_of_register): Call frame_register instead of
9240 (value_from_register): Ditto.
9241 * config/sparc/tm-sparc.h: Update comment.
9242 * breakpoint.c: Update comment.
9244 2003-03-14 Andrew Cagney <cagney@redhat.com>
9246 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9248 * gdbarch.h, gdbarch.c: Re-generate.
9249 * frame.h: Update comments.
9250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9251 * x86-64-tdep.c (x86_64_init_abi): Update.
9252 * sparc-tdep.c (sparc_gdbarch_init): Update.
9253 * sh-tdep.c (sh_gdbarch_init): Update.
9254 * mips-tdep.c (mips_gdbarch_init): Update.
9255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9256 * cris-tdep.c (cris_gdbarch_init): Update.
9257 * ia64-tdep.c (ia64_gdbarch_init): Update.
9258 * frame.c (frame_register): Update.
9259 (get_saved_register): Update.
9260 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9262 2003-03-13 Andrew Cagney <cagney@redhat.com>
9264 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9265 * gdbarch.h, gdbarch.c: Regenerate.
9266 * valops.c (hand_function_call): Update comment.
9267 * stack.c (return_command): Update comment.
9268 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9269 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9271 * x86-64-tdep.c (x86_64_init_abi): Update.
9272 * vax-tdep.c (vax_gdbarch_init): Update.
9273 * v850-tdep.c (v850_gdbarch_init): Update.
9274 * sparc-tdep.c (sparc_gdbarch_init): Update.
9275 * sh-tdep.c (sh_gdbarch_init): Update.
9276 * s390-tdep.c (s390_gdbarch_init): Update.
9277 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9278 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9279 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9280 * mips-tdep.c (mips_gdbarch_init): Update.
9281 * mcore-tdep.c (mcore_gdbarch_init): Update.
9282 * m68k-tdep.c (m68k_gdbarch_init): Update.
9283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9284 * ia64-tdep.c (ia64_gdbarch_init): Update.
9285 * i386-tdep.c (i386_gdbarch_init): Update.
9286 * hppa-tdep.c (hppa_gdbarch_init): Update.
9287 * h8300-tdep.c (h8300_gdbarch_init): Update.
9288 * frv-tdep.c (frv_gdbarch_init): Update.
9289 * cris-tdep.c (cris_gdbarch_init): Update.
9290 * avr-tdep.c (avr_gdbarch_init): Update.
9291 * arm-tdep.c (arm_gdbarch_init): Update.
9292 * alpha-tdep.c (alpha_gdbarch_init): Update.
9294 2003-03-13 Andrew Cagney <cagney@redhat.com>
9296 * frame.c (legacy_frame_p): New function.
9297 (get_prev_frame): Use legacy_frame_p.
9298 * frame.h (legacy_frame_p): Declare.
9300 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9302 * MAINTAINERS (write after approval): Alphabetically
9305 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9307 * MAINTAINERS (write after approval): Add myself.
9309 2003-03-12 Andrew Cagney <cagney@redhat.com>
9311 * frame.c (get_prev_frame): Rename the frame parameter to
9313 (get_next_frame, legacy_get_prev_frame): Ditto.
9315 2003-03-12 Andrew Cagney <cagney@redhat.com>
9317 * frame.c (get_current_frame): Check target_has_registers before
9318 checking target_has_stack.
9319 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9320 instead of deprecated_selected_frame.
9321 * findvar.c (value_of_register): Pass "frame", not
9322 deprecated_selected_frame, to value_of_builtin_reg.
9324 2003-03-12 Andrew Cagney <cagney@redhat.com>
9326 * regcache.c (regcache_cooked_write_signed): New function.
9327 (regcache_cooked_write_unsigned): New function.
9328 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9329 (regcache_cooked_read_signed): Fix regnum in range assertion.
9330 * regcache.h (regcache_cooked_write_signed): Declare.
9331 (regcache_cooked_write_unsigned): Declare.
9333 2003-03-12 Andrew Cagney <cagney@redhat.com>
9335 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9336 * gdbarch.h, gdbarch.c: Re-generate.
9337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9338 * x86-64-tdep.h: Update.
9339 * x86-64-tdep.c (x86_64_init_abi): Update.
9340 * v850-tdep.c (v850_gdbarch_init): Update.
9341 * sparc-tdep.c (sparc_gdbarch_init): Update.
9342 * sh-tdep.c (sh_gdbarch_init): Update.
9343 * s390-tdep.c (s390_gdbarch_init): Update.
9344 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9345 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9346 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9347 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9348 * mips-tdep.c (mips_gdbarch_init): Update.
9349 * mcore-tdep.c (mcore_gdbarch_init): Update.
9350 * m68k-tdep.c (m68k_gdbarch_init): Update.
9351 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9352 * ia64-tdep.c (ia64_gdbarch_init): Update.
9353 * i386-tdep.c (i386_gdbarch_init): Update.
9354 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9355 * hppa-tdep.c (hppa_gdbarch_init): Update.
9356 * h8300-tdep.c (h8300_gdbarch_init): Update.
9357 * frv-tdep.c (frv_gdbarch_init): Update.
9358 * cris-tdep.c (cris_gdbarch_init): Update.
9359 * avr-tdep.c (avr_gdbarch_init): Update.
9360 * arm-tdep.c (arm_gdbarch_init): Update.
9361 * alpha-tdep.c (alpha_gdbarch_init): Update.
9362 * sh-tdep.c (sh_init_extra_frame_info): Update.
9363 (sh64_init_extra_frame_info): Update.
9364 * ns32knbsd-nat.c (frame_num_args): Update.
9365 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9366 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9367 (xstormy16_frame_chain_valid): Update.
9368 * vax-tdep.c (vax_saved_pc_after_call): Update.
9369 * v850-tdep.c (v850_frame_chain): Update.
9370 (v850_pop_frame): Update.
9371 (v850_init_extra_frame_info): Update.
9372 * sparc-tdep.c (setup_arbitrary_frame): Update.
9373 * ns32k-tdep.c (umax_frame_num_args): Update.
9374 * s390-tdep.c (s390_pop_frame_regular): Update.
9375 * mn10300-tdep.c (mn10300_frame_chain): Update.
9376 (mn10300_pop_frame_regular): Update.
9377 (mn10300_init_extra_frame_info): Update.
9378 * mips-tdep.c (mips_init_frame_pc_first): Update.
9379 (mips_frame_chain): Update.
9380 (mips_pop_frame): Update.
9381 * mcore-tdep.c (mcore_frame_chain): Update.
9382 (mcore_pop_frame): Update.
9383 (mcore_init_extra_frame_info): Update.
9384 * arch-utils.c (init_frame_pc_default): Update.
9385 * m68k-tdep.c (isi_frame_num_args): Update.
9386 (delta68_frame_num_args): Update.
9387 (news_frame_num_args): Update.
9388 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9389 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9390 (alpha_frame_chain): Update.
9391 (alpha_pop_frame): Update.
9392 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9393 (hppa_init_extra_frame_info): Update.
9394 (hppa_frame_chain): Update.
9395 (hppa_frame_chain_valid): Update.
9396 * cris-tdep.c (cris_init_extra_frame_info): Update.
9397 * avr-tdep.c (avr_init_extra_frame_info): Update.
9398 * arm-tdep.c (arm_frame_chain_valid): Update.
9399 (arm_init_extra_frame_info): Update.
9400 (arm_pop_frame): Update.
9401 * frame.c (frame_pc_unwind): Update.
9402 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9403 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9404 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9405 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9406 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9407 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9409 2003-03-12 Andrew Cagney <cagney@redhat.com>
9411 Eliminate the need for POP_FRAME.
9412 * frame.c (do_frame_unwind_register): New function.
9413 (frame_pop): When no POP_FRAME, pop the frame using register
9414 unwind and a scratch regcache.
9415 (frame_saved_regs_pop): Delete function.
9416 (trad_frame_unwinder): Update.
9417 * d10v-tdep.c (d10v_frame_pop): Delete function.
9418 (d10v_frame_unwind): Update.
9419 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9420 (sentinel_frame_unwinder): Update.
9421 * dummy-frame.c (dummy_frame_pop): Delete function.
9422 (dummy_frame_unwind): Update.
9423 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9424 (struct frame_unwind): Update.
9426 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9428 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9429 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9430 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9431 Do range checks on register number obtained from debugging info.
9432 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9433 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9434 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9436 (do_fp_register_row): Fix typo which caused double type to be
9437 used when attempting to unpack a float.
9439 2003-03-11 J. Brobecker <brobecker@gnat.com>
9441 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9443 2003-03-11 Andrew Cagney <cagney@redhat.com>
9445 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9446 frame. Problem found by Corinna Vinschen.
9448 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9450 * doublest.c (floatformat_from_length): Accept also
9451 the real size of 'long double' type.
9453 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9455 From Klee Dienes <kdienes@apple.com>:
9456 * breakpoint.c (bpstat_copy): Copy the command lines as well
9457 as the old value, to match what is freed in bpstat_clear.
9459 2003-03-10 David Carlton <carlton@math.stanford.edu>
9461 * minsyms.c (add_minsym_to_hash_table): Replace
9462 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9463 (compare_minimal_symbols, compact_minimal_symbols)
9464 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9465 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9466 of DEPRECATED_SYMBOL_MATCHES_NAME.
9467 (lookup_minimal_symbol_solib_trampoline): Ditto.
9469 2003-03-10 Andrew Cagney <cagney@redhat.com>
9471 * regcache.h (regcache_cooked_read_ftype): Define.
9472 (regcache_save, regcache_restore): Add a cooked_read parameter.
9473 * regcache.c (regcache_save, regcache_restore): Update.
9474 (do_cooked_read): New function.
9475 (regcache_cpy): Pass do_cooked_read to regcache_save and
9478 2003-03-10 Andrew Cagney <cagney@redhat.com>
9480 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9481 * gdbarch.h, gdbarch.c: Re-generate.
9482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9483 * x86-64-tdep.h: Update.
9484 * x86-64-tdep.c (x86_64_init_abi): Update.
9485 * v850-tdep.c (v850_gdbarch_init): Update.
9486 * sparc-tdep.c (sparc_gdbarch_init): Update.
9487 * sh-tdep.c (sh_gdbarch_init): Update.
9488 * s390-tdep.c (s390_gdbarch_init): Update.
9489 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9490 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9491 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9492 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9493 * mips-tdep.c (mips_gdbarch_init): Update.
9494 * mcore-tdep.c (mcore_gdbarch_init): Update.
9495 * m68k-tdep.c (m68k_gdbarch_init): Update.
9496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9497 * ia64-tdep.c (ia64_gdbarch_init): Update.
9498 * i386-tdep.c (i386_gdbarch_init): Update.
9499 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9500 * hppa-tdep.c (hppa_gdbarch_init): Update.
9501 * h8300-tdep.c (h8300_gdbarch_init): Update.
9502 * frv-tdep.c (frv_gdbarch_init): Update.
9503 * cris-tdep.c (cris_gdbarch_init): Update.
9504 * avr-tdep.c (avr_gdbarch_init): Update.
9505 * arm-tdep.c (arm_gdbarch_init): Update.
9506 * alpha-tdep.c (alpha_gdbarch_init): Update.
9507 * sh-tdep.c (sh_init_extra_frame_info): Update.
9508 (sh64_init_extra_frame_info): Update.
9509 * ns32knbsd-nat.c (frame_num_args): Update.
9510 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9511 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9512 (xstormy16_frame_chain_valid): Update.
9513 * vax-tdep.c (vax_saved_pc_after_call): Update.
9514 * v850-tdep.c (v850_frame_chain): Update.
9515 (v850_pop_frame): Update.
9516 (v850_init_extra_frame_info): Update.
9517 * sparc-tdep.c (setup_arbitrary_frame): Update.
9518 * ns32k-tdep.c (umax_frame_num_args): Update.
9519 * s390-tdep.c (s390_pop_frame_regular): Update.
9520 * mn10300-tdep.c (mn10300_frame_chain): Update.
9521 (mn10300_pop_frame_regular): Update.
9522 (mn10300_init_extra_frame_info): Update.
9523 * mips-tdep.c (mips_init_frame_pc_first): Update.
9524 (mips_frame_chain): Update.
9525 (mips_pop_frame): Update.
9526 * mcore-tdep.c (mcore_frame_chain): Update.
9527 (mcore_pop_frame): Update.
9528 (mcore_init_extra_frame_info): Update.
9529 * arch-utils.c (init_frame_pc_default): Update.
9530 * m68k-tdep.c (isi_frame_num_args): Update.
9531 (delta68_frame_num_args): Update.
9532 (news_frame_num_args): Update.
9533 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9534 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9535 (alpha_frame_chain): Update.
9536 (alpha_pop_frame): Update.
9537 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9538 (hppa_init_extra_frame_info): Update.
9539 (hppa_frame_chain): Update.
9540 (hppa_frame_chain_valid): Update.
9541 * cris-tdep.c (cris_init_extra_frame_info): Update.
9542 * avr-tdep.c (avr_init_extra_frame_info): Update.
9543 * arm-tdep.c (arm_frame_chain_valid): Update.
9544 (arm_init_extra_frame_info): Update.
9545 (arm_pop_frame): Update.
9546 * frame.c (frame_pc_unwind): Update.
9547 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9548 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9549 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9550 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9551 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9552 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9554 2003-03-10 Andrew Cagney <cagney@redhat.com>
9556 * gdbarch.sh (gdbarch_unwind_pc): New method.
9557 * gdbarch.h, gdbarch.c: Regenerate.
9558 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9559 but use read_pc and FRAME_SAVED_PC as fall backs.
9560 (frame_saved_regs_pc_unwind): Delete function.
9561 (trad_frame_unwinder): Update.
9562 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9563 (struct frame_unwind): Update.
9564 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9565 (dummy_frame_unwind): Update.
9566 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9567 (sentinel_frame_unwinder): Update.
9568 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9569 (d10v_frame_unwind): Update.
9570 (d10v_unwind_pc): New function.
9571 (d10v_gdbarch_init): Set unwind_pc.
9573 2003-03-10 Andrew Cagney <cagney@redhat.com>
9575 * gdbarch.h: Re-generate.
9577 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9579 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9582 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9584 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9586 2003-03-08 Andrew Cagney <cagney@redhat.com>
9588 * cli-out.c: Update copyright.
9589 (cli_out_data): Define typedef. Use instead of ui_out_data.
9591 2003-03-08 Andrew Cagney <cagney@redhat.com>
9593 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9596 2003-03-07 Andrew Cagney <cagney@redhat.com>
9598 * gdbarch.sh: Don't generate two macro definitions when an
9599 undefined macro taking no arguments.
9600 * gdbarch.h: Regenerate.
9602 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9604 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9605 (x86_64_unwind_dummy_id): New functions.
9606 (x86_64_init_abi): Register these two new functions.
9608 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9610 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9611 (x86_64_skip_prologue): Move prologue detection to
9613 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9615 2003-03-05 Andrew Cagney <cagney@redhat.com>
9617 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9618 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9619 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9620 to use unwind_dummy_id when a dummy frame.
9621 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9623 * gdbarch.h, gdbarch.c: Regneerate.
9625 2003-03-05 Andrew Cagney <cagney@redhat.com>
9627 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9628 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9629 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9632 2003-03-05 Andrew Cagney <cagney@redhat.com>
9634 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9635 (struct d10v_unwind_cache): Delete field "frameless". Replace
9636 "next_addr" with "sp_offset". Add "r11_offset".
9637 (d10v_frame_unwind_cache): Update.
9638 (prologue_find_regs): Update. When "mv r11, sp", save the
9639 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9640 RN was saved in r11_offset.
9642 2003-03-05 Andrew Cagney <cagney@redhat.com>
9644 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9645 cached PC value in the next frame.
9647 2003-03-05 Andrew Cagney <cagney@redhat.com>
9649 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9650 "id_unwind_cache" with "id".
9651 (frame_id_unwind): Delete declaration.
9652 * frame.c (frame_id_unwind): Delete function.
9653 (get_prev_frame): Call the frame id unwind method directly. Store
9654 the returned next frame's ID value in NEXT_FRAME. Note that there
9655 is a problem with the wrong unwind ID being called with the wrong
9658 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9660 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9662 2003-03-05 James Ingham <jingham@apple.com>
9663 Daniel Jacobowitz <drow@mvista.com>
9665 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9666 (auto_cp_abi): New variable.
9667 (current_cp_abi, num_cp_abis): Make static.
9668 (CP_ABI_MAX): Define.
9669 (cp_abis): Turn into an array.
9670 (value_virtual_fn_field): Fix formatting.
9671 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9673 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9674 (list_cp_abis, _initialize_cp_abi): New functions.
9675 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9676 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9677 switch_to_cp_abi. Update prototype for register_cp_abi.
9678 * Makefile.in (cp-abi.o): Update dependencies.
9679 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9680 instead of switch_to_cp_abi.
9681 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9683 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9685 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9687 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9689 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9690 * dwarf2loc.c: Include "regcache.h".
9691 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9693 * Makefile.in (dwarf2loc.o): Update dependencies.
9695 2003-03-04 Theodore A. Roth <troth@openavr.org>
9697 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9698 number of io registers reported by remote target is not a multiple of
9701 2003-03-04 David Carlton <carlton@math.stanford.edu>
9703 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9704 (lookup_symbol_aux_psymtabs): Update call to
9705 lookup_partial_symbol.
9706 (lookup_transparent_type, find_main_psymtab)
9707 (make_symbol_overload_list): Ditto.
9709 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9711 * MAINTAINERS (Write after approval): Update my email address.
9713 2003-03-03 Andrew Cagney <cagney@redhat.com>
9715 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9716 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9717 predicate. Replace MAX_REGISTER_RAW_SIZE.
9718 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9719 MAX_REGISTER_VIRTUAL_SIZE.
9720 * regcache.c (legacy_max_register_raw_size): New function.
9721 (legacy_max_register_virtual_size): New function.
9722 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9723 (MAX_REGISTER_RAW_SIZE): Define.
9724 (legacy_max_register_raw_size): Declare.
9725 (legacy_max_register_virtual_size): Declare.
9726 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9727 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9728 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9729 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9730 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9731 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9732 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9733 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9734 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9736 * vax-tdep.c (vax_gdbarch_init): Update.
9737 * v850-tdep.c (v850_gdbarch_init): Update.
9738 * sparc-tdep.c (sparc_gdbarch_init): Update.
9739 * sh-tdep.c (sh_gdbarch_init): Update.
9740 * s390-tdep.c (s390_gdbarch_init): Update.
9741 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9742 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9743 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9744 * mips-tdep.c (mips_gdbarch_init): Update.
9745 * mcore-tdep.c (mcore_gdbarch_init): Update.
9746 * m68k-tdep.c (m68k_gdbarch_init): Update.
9747 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9748 * ia64-tdep.c (ia64_gdbarch_init): Update.
9749 * i386-tdep.c (i386_gdbarch_init): Update.
9750 * hppa-tdep.c (hppa_gdbarch_init): Update.
9751 * h8300-tdep.c (h8300_gdbarch_init): Update.
9752 * frv-tdep.c (frv_gdbarch_init): Update.
9753 * cris-tdep.c (cris_gdbarch_init): Update.
9754 * avr-tdep.c (avr_gdbarch_init): Update.
9755 * arm-tdep.c (arm_gdbarch_init): Update.
9756 * alpha-tdep.c (alpha_gdbarch_init): Update.
9757 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9758 max_register_raw_size or max_register_virtual_size.
9760 2003-03-03 David Carlton <carlton@math.stanford.edu>
9762 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9763 SYMBOL_MATCHES_NAME, add comment.
9764 (SYMBOL_MATCHES_NATURAL_NAME): New.
9765 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9766 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9767 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9768 * symtab.c (lookup_partial_symbol): Use
9769 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9771 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9772 SYMBOL_MATCHES_NAME.
9775 2003-03-03 David Carlton <carlton@math.stanford.edu>
9777 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9778 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9779 by regexp matching against SYMBOL_NATURAL_NAME.
9781 2003-03-03 David Carlton <carlton@math.stanford.edu>
9783 * linespec.c (find_method): Extract code into collect_methods.
9784 (collect_methods): New.
9786 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9788 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9791 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9792 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9794 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9796 * arch-utils.c (generic_register_byte): Fix to use the loop index
9797 and not regnum when summing the size of all registers up to regnum.
9799 2003-03-01 Andrew Cagney <cagney@redhat.com>
9801 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9802 FRAME_INIT_SAVED_REGS.
9803 * gdbarch.h, gdbarch.c: Regenerate.
9804 * stack.c (frame_info): Update.
9805 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9806 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9807 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9808 * ns32k-tdep.c (ns32k_pop_frame): Update.
9809 * mips-tdep.c (mips_pop_frame): Update.
9810 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9811 * ia64-tdep.c (ia64_frame_chain): Update.
9812 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9813 (ia64_frameless_function_invocation): Update.
9814 (ia64_init_extra_frame_info): Update.
9815 (ia64_pop_frame_regular): Update.
9816 * frame.h (struct frame_info): Update comment.
9817 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9818 * frame.c (frame_saved_regs_register_unwind): Update.
9819 (frame_saved_regs_register_unwind): Update.
9820 (deprecated_generic_get_saved_register): Update.
9821 * cris-tdep.c: Update comment.
9822 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9824 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9825 * x86-64-tdep.c (x86_64_init_abi): Update.
9826 * vax-tdep.c (vax_gdbarch_init): Update.
9827 * v850-tdep.c (v850_gdbarch_init): Update.
9828 * sparc-tdep.c (sparc_gdbarch_init): Update.
9829 * sh-tdep.c (sh_gdbarch_init): Update.
9830 * s390-tdep.c (s390_gdbarch_init): Update.
9831 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9832 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9833 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9834 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9835 * mips-tdep.c (mips_gdbarch_init): Update.
9836 * mcore-tdep.c (mcore_gdbarch_init): Update.
9837 * m68k-tdep.c (m68k_gdbarch_init): Update.
9838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9839 * ia64-tdep.c (ia64_gdbarch_init): Update.
9840 * i386-tdep.c (i386_gdbarch_init): Update.
9841 * frv-tdep.c (frv_gdbarch_init): Update.
9842 * avr-tdep.c (avr_gdbarch_init): Update.
9843 * arm-tdep.c (arm_gdbarch_init): Update.
9844 * alpha-tdep.c (alpha_gdbarch_init): Update.
9846 2003-03-01 Andrew Cagney <cagney@redhat.com>
9848 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9849 option enum and switch. When no windows, set the interpreter to
9852 2003-03-01 Andrew Cagney <cagney@redhat.com>
9854 * main.c (captured_main): Replace magic option characters with an
9857 2003-03-01 Andrew Cagney <cagney@redhat.com>
9859 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9860 INIT_EXTRA_FRAME_INFO.
9861 * gdbarch.h, gdbarch.c: Regenerate.
9862 * arm-tdep.c: Update comments.
9863 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9864 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9865 * frame.h, avr-tdep.c: Ditto.
9866 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9867 (create_new_frame, legacy_get_prev_frame): Ditto.
9868 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9869 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9871 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9872 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9873 * v850-tdep.c (v850_gdbarch_init): Ditto.
9874 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9875 * sh-tdep.c (sh_gdbarch_init): Ditto.
9876 * s390-tdep.c (s390_gdbarch_init): Ditto.
9877 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9878 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9879 * mips-tdep.c (mips_gdbarch_init): Ditto.
9880 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9881 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9882 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9883 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9884 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9885 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9886 * frv-tdep.c (frv_gdbarch_init): Ditto.
9887 * cris-tdep.c (cris_gdbarch_init): Ditto.
9888 * avr-tdep.c (avr_gdbarch_init): Ditto.
9889 * arm-tdep.c (arm_gdbarch_init): Ditto.
9890 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9891 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9893 2003-03-01 Andrew Cagney <cagney@redhat.com>
9895 * gdbarch.sh (register_type): New function with predicate.
9896 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9897 * gdbarch.h, gdbarch.c: Re-generate.
9898 * arch-utils.c (generic_register_byte): Use generic_register_size.
9899 (generic_register_size): When available, use
9900 gdbarch_register_type.
9901 * regcache.c (init_regcache_descr): When available, initialize the
9902 register type array using gdbarch_register_type. If the
9903 architecture supplies gdbarch_register_type, do not use the legacy
9905 * d10v-tdep.c (d10v_register_type): Replace
9906 d10v_register_virtual_type.
9907 (d10v_gdbarch_init): Set register_type instead of
9908 register_virtual_type.
9910 2003-03-01 Andrew Cagney <cagney@redhat.com>
9912 * Makefile.in (ax-gdb.o): Update dependencies.
9913 * ax-gdb.c: Include "regcache.h".
9914 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9915 * findvar.c (value_of_register): Ditto.
9916 * infcmd.c (default_print_registers_info): Ditto.
9918 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9920 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9921 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9923 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9925 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9928 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9930 * Makefile.in (dwarf2loc.o): Update dependencies.
9931 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9932 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9933 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9934 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9935 (locexpr_tracepoint_var_ref): New function.
9936 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9938 2003-02-28 Andrew Cagney <cagney@redhat.com>
9940 * regcache.c (register_size): New function.
9941 * regcache.h (register_size): Declare
9942 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9943 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9945 2003-02-28 David Carlton <carlton@math.stanford.edu>
9947 * linespec.c (decode_compound): Extract code into find_method.
9950 2003-02-28 J. Brobecker <brobecker@gnat.com>
9952 * Makefile.in: Add rules to build and link in observer.o.
9954 2003-02-27 J. Brobecker <brobecker@gnat.com>
9956 * observer.c: Minor comments edits.
9958 2003-02-27 J. Brobecker <brobecker@gnat.com>
9960 * observer.h, observer.c: New file.
9962 2003-02-27 Andrew Cagney <cagney@redhat.com>
9964 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9966 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9968 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9969 (M6812_OP_STS_EXT): Likewise.
9970 (m6811_prologue): Use the above to recognize prologue.
9971 (m6812_prologue): Likewise.
9973 2003-02-27 David Carlton <carlton@math.stanford.edu>
9975 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9977 (compare_psymbols): Ditto.
9978 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9980 2003-02-27 Michael Snyder <msnyder@redhat.com>
9982 * f-lang.c (build_fortran_types): New function.
9983 (_initialize_f_language): Gdbarch-register built-in fortran types.
9984 * doublest.c (extract_floating): Fix warning text.
9986 2003-02-27 Andrew Cagney <cagney@redhat.com>
9988 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9989 predicate. Replaces PUSH_DUMMY_FRAME.
9990 * gdbarch.h, gdbarch.c: Regnerate.
9991 * valops.c (hand_function_call): Update. Call
9992 generic_push_dummy_frame directly.
9993 * vax-tdep.c (vax_gdbarch_init): Update.
9994 * sparc-tdep.c (sparc_gdbarch_init): Update.
9995 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9996 * m68k-tdep.c (m68k_gdbarch_init): Update.
9997 * hppa-tdep.c (hppa_gdbarch_init): Update.
9998 * alpha-tdep.c (alpha_gdbarch_init): Update.
9999 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10000 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10001 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10003 push_dummy_frame to generic_push_dummy_frame.
10004 * v850-tdep.c (v850_gdbarch_init): Ditto.
10005 * sh-tdep.c (sh_gdbarch_init): Ditto.
10006 * s390-tdep.c (s390_gdbarch_init): Ditto.
10007 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10008 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10009 * mips-tdep.c (mips_gdbarch_init): Ditto.
10010 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10012 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10013 * i386-tdep.c (i386_gdbarch_init): Ditto.
10014 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10015 * frv-tdep.c (frv_gdbarch_init): Ditto.
10016 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10017 * cris-tdep.c (cris_gdbarch_init): Ditto.
10018 * avr-tdep.c (avr_gdbarch_init): Ditto.
10019 * arm-tdep.c (arm_gdbarch_init): Ditto.
10021 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10023 * mips-tdep.c (show_mips_abi): New function.
10024 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10025 command ``show mips abi''.
10027 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10029 From Elena Zannoni <ezannoni@redhat.com>
10030 * dbxread.c (process_one_symbol): Only record line 0 if one or
10031 more sline entries have been seen for the function.
10033 2003-02-26 Michael Chastain <mec@shout.net>
10035 * configure: Regenerate with autoconf 000227.
10037 2003-02-26 Michael Chastain <mec@shout.net>
10039 Close PR build/660.
10040 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10041 for old libc5/glibc.
10042 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10044 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10046 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10047 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10049 2003-02-26 Michael Chastain <mec@shout.net>
10051 * configure.in: New variable HAVE_UINTPTR_T.
10052 * configure, config.in: Regenerated.
10054 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10057 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10059 2003-02-25 Andrew Cagney <cagney@redhat.com>
10061 * frame.c (get_prev_frame): Add comment on check for
10062 inside_entry_func. Only check for inside_entry_file when not a
10063 dummy and not a sentinel. Check that the new frame is not inner
10066 2003-02-25 Andrew Cagney <cagney@redhat.com>
10068 * frame.c (frame_debug): New variable.
10069 (_initialize_frame): Add "set/show debug frame" command.
10070 (get_prev_frame): When frame_debug, print reason why unwind
10073 2003-02-25 Michael Chastain <mec@shout.net>
10075 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10076 to avoid uintptr_t definition problems.
10078 2003-02-25 David Carlton <carlton@math.stanford.edu>
10080 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10081 (SYMBOL_LINKAGE_NAME): Ditto.
10082 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10083 SYMBOL_LINKAGE_NAME.
10084 (struct general_symbol_info): Expand comment.
10085 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10086 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10087 (SYMBOL_MATCHES_REGEXP): Ditto.
10088 * symtab.c (symbol_natural_name): New function.
10089 * objfiles.h: Replace all uses of SYMBOL_NAME by
10090 DEPRECATED_SYMBOL_NAME.
10091 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10092 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10093 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10094 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10095 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10096 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10097 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10098 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10099 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10100 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10101 * ada-exp.y: Ditto.
10102 * ada-exp.y: Update copyright.
10103 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10104 * cp-valprint.c: Ditto.
10106 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10108 * infptrace.c (detach): Do not flag error if ptrace detach fails
10109 and errno is set to ESRCH.
10111 2003-02-24 Andrew Cagney <cagney@redhat.com>
10113 * infptrace.c (udot_info): Change type of udot_off to long. Use
10114 paddr when printing udot_off's value.
10116 2003-02-24 David Carlton <carlton@math.stanford.edu>
10118 * symtab.c (make_symbol_overload_list): Only read in partial
10119 symtabs containing a matching partial symbol.
10121 2003-02-24 David Carlton <carlton@math.stanford.edu>
10123 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10124 do the comparison, not strcmp.
10125 * symfile.c (compare_psymbols): Ditto.
10126 * defs.h: Declare strcmp_iw_ordered.
10127 * utils.c (strcmp_iw_ordered): New function.
10129 2003-02-24 Jim Blandy <jimb@redhat.com>
10131 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10132 support, shared libs): Remove my name from here, to better reflect
10135 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10137 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10138 (target_ops): Add to_have_continuable_watchpoint.
10139 * target.c (update_current_target): Add INHERIT line for
10140 to_have_continuable_watchpoint.
10141 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10142 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10143 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10144 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10146 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10148 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10151 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10153 * solib.c (solib_open): Call target defined search function after
10154 failing with solib-search-path.
10155 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10156 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10158 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10160 * MAINTAINERS: Add myself to Write After section.
10162 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10164 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10166 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10168 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10169 (m68hc11_add_reggroups): New function.
10170 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10171 (m68hc11_gdbarch_init): Install the reggroups.
10172 (_initialize_m68hc11_tdep): Initialize them.
10174 2003-02-21 James E Wilson <wilson@tuliptree.org>
10176 * MAINTAINERS: Update my email address.
10178 2003-02-21 David Carlton <carlton@math.stanford.edu>
10180 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10182 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10184 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10185 * symtab.h: Add opaque declarations of struct axs_value and
10187 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10188 (struct location_funcs): New type.
10189 (struct symbol): Add "loc" to aux_value.
10190 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10191 * dwarf2read.c: Include "dwarf2expr.h".
10192 (dwarf2_symbol_mark_computed): New function.
10193 (read_func_scope): Use it.
10194 (var_decode_location): New function.
10195 (new_symbol): Use it.
10196 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10198 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10199 (dwarf2expr_h, dwarf2loc_h): New variables.
10200 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10201 (dwarf2expr.o, dwarf2loc.o): New rules.
10202 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10203 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10205 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10206 * m2-exp.y (yylex): Likewise.
10207 * printcmd.c (address_info, print_frame_args): Likewise.
10208 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10209 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10210 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10211 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10212 * symtab.c (lookup_block_symbol): Likewise.
10214 2003-02-20 Adam Fedor <fedor@gnu.org>
10216 * symtab.h: Remove objc_specific struct
10217 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10218 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10219 Have language_objc use cplus_specific struct.
10221 2003-02-20 Tom Tromey <tromey@redhat.com>
10223 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10224 TYPE_NAME, when printing a String value. PR java/1075.
10226 2003-02-20 Adam Fedor <fedor@gnu.org>
10228 * objc-lang.h (find_methods): Remove declaration.
10229 * objc-lang.c (find_methods): Make static.
10231 2003-02-20 Christopher Faylor <cgf@redhat.com>
10233 * win32-nat.c (get_image_name): Check return value from
10235 (child_xfer_memory): Ditto.
10237 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10239 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10240 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10241 '${exec_prefix}' (in addition to the expansion thereof) as
10243 * configure: Rebuilt.
10245 2003-02-20 David Carlton <carlton@math.stanford.edu>
10247 * symtab.c (search_symbols): Revert the search_symbols part of my
10248 2002-12-23 patch. Add comment.
10250 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10252 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10253 * dbxread.c (elfstab_build_psymtabs): Don't call
10254 install_minimal_symbols.
10255 (stabsect_build_psymtabs): Likewise.
10256 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10258 * somread.c (som_symfile_read): Call install_minimal_symbols
10259 and do_cleanups earlier.
10260 * nlmread.c (nlm_symfile_read): Likewise.
10261 * mdebugread.c (elfmdebug_build_psymtabs): Call
10262 install_minimal_symbols and make appropriate cleanups.
10264 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10266 * solib.c (reload_shared_libraries): New function.
10267 (_initialize_solib): Add callbacks for ``set solib-search-path''
10268 and ``set solib-absolute-prefix''.
10270 2003-02-20 David Carlton <carlton@math.stanford.edu>
10272 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10274 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10275 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10276 * ada-typeprint.c (ada_typedef_print): Ditto.
10277 * ax-gdb.c (gen_var_ref): Ditto.
10278 * breakpoint.c (print_one_breakpoint): Ditto.
10279 * buildsym.c (finish_block): Ditto.
10280 * c-valprint.c (c_val_print): Ditto.
10281 * expprint.c (print_subexp): Ditto.
10282 * findvar.c (locate_var_value): Ditto.
10283 * infcmd.c (jump_command): Ditto.
10284 * linespec.c (decode_line_2, decode_compound): Ditto.
10285 * maint.c (maintenance_translate_address): Ditto.
10286 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10287 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10289 * p-valprint.c (pascal_val_print): Ditto.
10290 * stabsread.c (define_symbol): Ditto.
10291 * stack.c (print_frame, frame_info, print_block_frame_locals)
10292 (print_frame_arg_vars, return_command): Ditto.
10293 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10294 * symmisc.c (print_symbol): Ditto.
10295 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10296 (compare_search_syms, print_symbol_info, print_msymbol_info)
10297 (rbreak_command): Ditto.
10298 * tracepoint.c (tracepoints_info): Ditto.
10299 * typeprint.c (typedef_print): Ditto.
10300 * valops.c (value_of_variable, hand_function_call): Ditto.
10301 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10302 * ada-typeprint.c: Update Copyright.
10303 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10304 * tracepoint.c, cli/cli-cmds.c: Ditto.
10306 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10308 * frame.c (generic_unwind_get_saved_register): Make non-static.
10309 * frame.h (generic_unwind_get_saved_register): Declare.
10310 * mips-tdep.c (read_next_frame_reg): Fetch register from
10311 current regcache when frame is NULL.
10312 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10314 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10315 instead of frame_register_unwind().
10317 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10319 * remote-sim.c (gdbsim_insert_breakpoint)
10320 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10323 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10325 * remote.c (_initialize_remote): Add commands "set/show remote
10326 hardware-watchpoint-limit" and "set/show remote
10327 hardware-breakpoint-limit".
10328 (remote_hw_watchpoint_limit): Initialize to -1.
10329 (remote_hw_breakpoint_limit): Ditto.
10330 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10332 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10334 * coff-pe-read.c: New file - support reading of minimal symbols from a
10335 portable executable using the export table.
10336 * coff-pe-read.h: New file.
10337 * coffread.c: Include coff-pe-read.h.
10338 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10339 debugging symbols found.
10340 * Makefile.in (SFILES): Add coff-pe-read.o.
10341 (coff_pe_read_h): Define.
10342 (COMMON_OBS): Add coff-pe-read.o.
10343 (coffread.o): Add coff_pe_read_h dependency.
10344 (coff-pe-read.o): New target.
10346 2003-02-19 David Carlton <carlton@math.stanford.edu>
10348 * Makefile.in (SFILES): Add block.c.
10350 (COMMON_OBS): Add block.o.
10352 (x86-64-tdep.o): Add $(block_h).
10353 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10354 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10355 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10356 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10357 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10358 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10359 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10360 * value.h: Add opaque declaration for struct block.
10361 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10362 * ada-lang.h: Ditto.
10363 * x86-64-tdep.c: #include "block.h"
10364 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10365 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10366 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10367 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10368 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10369 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10370 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10371 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10372 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10373 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10374 * symtab.c (block_function): Ditto.
10375 (contained_in): Ditto.
10376 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10377 block.h. Add opaque declaration for struct block.
10378 * symtab.h: Move block_function and contained_in declarations to
10379 block.h. Add opaque declarations for struct block, struct
10381 (struct block): Move to block.h.
10382 (struct blockvector): Ditto.
10383 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10384 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10385 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10386 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10387 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10389 * block.c: New file.
10390 * block.h: New file.
10392 2003-02-19 Theodore A. Roth <troth@openavr.org>
10394 * avr-tdep.c (avr_extract_return_value): Remove function.
10395 (avr_store_return_value): Remove function.
10396 (avr_extract_struct_value_address): Remove function.
10397 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10399 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10401 * rs6000-tdep.c: Include "gdb_assert.h".
10402 (registers_e500): Add "acc" and "spefscr".
10403 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10404 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10405 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10407 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10409 2003-02-18 Keith Seitz <keiths@redhat.com>
10411 * Makefile.in: Add gdbtk-interps.c.
10413 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10415 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10416 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10418 2003-02-18 Andrew Cagney <cagney@redhat.com>
10420 * symtab.h (struct objfile): Add opaque declaration.
10422 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10424 From Jim Ingham <jingham@apple.com>:
10425 * dbxread.c (process_one_symbol): Use last_function_start rather
10426 than function_start_offset to find the real beginning of the
10427 current function. The latter is just the text section offset on
10428 some systems, the former is always the real function start.
10430 2003-02-17 Andrew Cagney <cagney@redhat.com>
10432 * configure.in: Revert ${target} != ${host}.
10434 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10436 * configure.in (Makefile): Use the test ${target} != ${host},
10437 instead of the absence of the "nm.h" file, to determine of the
10438 configuration non-native.
10439 * configure: Regenerate.
10441 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10443 From Brian Ford <ford@vss.fsi.com>
10445 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10446 conditionalize tui_active test.
10447 (lookup_cmd_1): Ditto.
10449 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10451 * configure.in: Add check for _etext.
10452 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10454 * config.in, configure: regenerated.
10456 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10458 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10460 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10462 * main.c (tui_version): Delete variable.
10463 (captured_main): When --tui, set interpreter_p to "tui" instead of
10464 enabling tui_version.
10465 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10467 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10468 * cli/cli-cmds.c (disassemble_command): Ditto.
10469 * defs.h (tui_version): Delete declaration.
10470 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10471 (tui-interp.o): Add rules.
10472 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10474 2003-02-14 Christopher Faylor <cgf@redhat.com>
10476 * win32-nat.c (register_loaded_dll): Correctly set address range for
10479 2003-02-12 Jason Molenda (jmolenda@apple.com)
10481 * symmisc.c (print_objfile_statistics): Include information about
10482 the number of psymtabs and symtabs in each object file.
10484 2003-02-13 Keith R Seitz <keiths@redhat.com>
10486 * main.h (struct captured_main_args): Add interpreter_p.
10487 * main.c (captured_main): Initialize interpreter_p from context.
10488 * gdb.c (main): Set interpreter_p argument.
10489 * Makefile.in (gdb.o): Add dependency for interps.h.
10491 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10493 * event-top.c (cli_command_loop): Delete declaration.
10494 (_initialize_event_loop): Delete function setting event_loop_hook.
10495 * event-top.h (cli_command_loop): Declare. Update copyright.
10496 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10497 * interps.c (current_interp_command_loop): When event_loop_p, call
10500 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10502 * interps.h (interp_command_loop_ftype): Change return type to
10505 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10507 * x86-64-tdep.c (x86_64_extract_return_value)
10508 (x86_64_store_return_value): Use regcache instead of regbuf.
10509 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10510 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10512 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10514 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10515 * aclocal.m4: Regenerate.
10516 * configure: Regenerate.
10518 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10519 TCL_LD_SEARCH_FLAGS.
10521 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10523 * dwarf2cfi.c: Reindented.
10525 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10527 * interps.c (clear_interpreter_hooks): Convert function definition
10530 2003-02-07 David Carlton <carlton@math.stanford.edu>
10532 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10534 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10536 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10537 (struct type): ...to here.
10538 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10540 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10541 (replace_type): Set length on all type variants for a given type.
10543 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10545 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10547 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10549 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10551 * Makefile.in (symm-nat.o): Update dependencies.
10552 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10553 (lynx-nat.o, ia64-linux-nat.): Ditto.
10554 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10555 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10556 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10558 * Makefile.in (inflow_h): Define.
10559 (procfs.o, inflow.o, procfs.o): Update dependencies.
10560 * inftarg.c (child_stop): Delete extern declaration of
10561 inferior_process_group. Include "inflow.h".
10562 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10563 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10564 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10565 (our_process_group, inferior_process_group): Extern declarations.
10567 * procfs.c: Include "gdb_assert.h".
10569 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10570 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10571 * jv-typeprint.c (java_type_print_base): Ditto.
10572 * typeprint.c (typedef_print): Eliminate STREQ.
10573 * cli/cli-script.c (define_command, define_command): Ditto.
10574 * main.c (captured_main): Ditto.
10575 * values.c (lookup_internalvar): Ditto.
10576 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10577 within `if' conditional.
10578 * linespec.c (decode_line_2): Ditto.
10579 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10580 (bfd_openw_with_cleanup): Ditto.
10582 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10584 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10585 legacy_extract_return_value and store_return_value to
10586 legacy_return_value.
10588 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10590 * win32-nat.c (get_relocated_section_addrs): New function. Find
10591 section load addresses for symbol handling in relocated DLLs.
10592 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10594 2003-02-05 Fred Fish <fnf@intrinsity.com>
10596 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10598 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10600 (angel_RDI_info): Ditto.
10601 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10603 (threads_continue_all_with_signals): Ditto.
10605 2003-02-05 Jim Ingham <jingham@apple.com>
10606 Keith Seitz <keiths@redhat.com>
10607 Elena Zannoni <ezannoni@redhat.com>
10608 Andrew Cagney <ac131313@redhat.com>
10610 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10611 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10612 (SUBDIR_MI_OBS): Add "mi-interp.o".
10613 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10614 (SFILES): Add "interps.c".
10615 (COMMON_OBS): Add "interps.o".
10616 (interps_h, mi_main_h): Define.
10617 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10618 (mi-main.o, main.o, event-top.o): Update dependencies.
10619 * cli/cli-interp.c: New file.
10620 * interps.h, interps.c: New files.
10621 * top.c: (gdb_init): Don't install the default interpreter, handed
10623 * main.c: Include "interps.h".
10624 (interpreter_p): Note that it should malloc'ed.
10625 (captured_command_loop): Call current_interp_command_loop.
10626 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10627 xfree and xstrdup when updating interpreter_p. Install the
10628 default interpreter. Add hack to stop mi1's copyright notice
10630 * event-top.h (gdb_setup_readline): Declare.
10631 (gdb_disable_readline): Declare.
10632 * event-top.c: Include "interps.h".
10633 (display_gdb_prompt): Call current_interp_display_prompt_p.
10634 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10635 gdb_stdlog, and gdb_stdtarg.
10636 (_initialize_event_loop): Don't call gdb_setup_readline.
10637 * cli-out.c (cli_out_set_stream): New function.
10638 * cli-out.h (cli_out_set_stream): Declare.
10640 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10642 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10643 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10644 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10645 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10646 config/i386/i386v42mp.mt: Removed.
10648 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10650 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10653 2003-02-05 Michael Chastain <mec@shout.net>
10655 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10656 2.12.1 and earlier versions.
10658 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10660 Remove orphaned hosts, targets and files.
10661 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10662 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10663 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10664 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10665 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10666 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10667 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10668 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10669 * config/sparc/tm-sp64sim.h: Delete.
10670 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10672 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10673 mips*-dec-mach3* targets.
10675 2003-02-04 Michael Chastain <mec@shout.net>
10677 * NEWS: Fix typo: sepcifying -> specifying.
10679 2003-02-04 Michael Chastain <mec@shout.net>
10681 * dwarfread.c: Add documentation on the state of dwarf-1,
10682 looking towards obsoletion.
10684 2003-02-03 Michael Chastain <mec@shout.net>
10686 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10687 gdb/testsuite/gdb.c++/pr-1023.exp.
10689 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10691 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10692 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10694 * utils.c (init_page_info): Delete reference to MPW in comments.
10695 * main.c (captured_main): Delete #ifdef MPW.
10697 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10699 * NEWS: Note that the m32r-*-elf* is obsolete.
10700 * monitor.c (monitor_expect): Obsolete reference to m32r.
10701 * configure.tgt: Mark m32r-*-elf* as obsolete.
10702 * MAINTAINERS: Mark m32k as obsolete.
10703 * m32r-rom.c: Obsolete file.
10704 * config/m32r/m32r.mt: Obsolete file.
10705 * config/m32r/tm-m32r.h: Obsolete file.
10706 * m32r-stub.c: Obsolete file.
10707 * m32r-tdep.c: Obsolete file.
10709 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10711 * NEWS: Mention that the z8k-zilog-none is obsolete.
10712 * MAINTAINERS: Mark z8k as obsolete.
10713 * configure.tgt: Obsolete the z8k-*-coff* target.
10714 * config/z8k/z8k.mt: Obsolete file.
10715 * config/z8k/tm-z8k.h: Obsolete file.
10716 * z8k-tdep.c: Obsolete file.
10718 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10720 * NEWS: Mention that the mn10200-elf is obsolete.
10721 * configure.tgt: Obsolete mn10200-*-* target.
10722 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10723 mention that the mn10200 is obsolete.
10724 * breakpoint.h: Ditto.
10725 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10726 * config/mn10200/mn10200.mt: Obsolete file.
10727 * config/mn10200/tm-mn10200.h: Obsolete file.
10728 * mn10200-tdep.c: Obsolete file.
10730 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10732 * MAINTAINERS: Mark h8500 as obsolete.
10733 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10734 * findvar.c (value_from_register): Ditto.
10735 * h8500-tdep.c: Mark file as obsolete.
10736 * config/h8500/h8500.mt: Ditto.
10737 * config/h8500/tm-h8500.h: Ditto.
10738 * NEWS: Mention that h8500 is obsolete.
10740 2003-02-04 David Carlton <carlton@math.stanford.edu>
10742 * objfiles.c (allocate_objfile): Always set name. Add comment at
10744 * jv-lang.c (get_dynamics_objfile): Add comment.
10746 2003-02-04 David Carlton <carlton@math.stanford.edu>
10748 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10749 * printcmd.c (build_address_symbolic): Replace uses of
10750 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10751 SYMBOL_NAME, and asm_demangle.
10754 2003-02-04 David Carlton <carlton@math.stanford.edu>
10756 * linespec.c (decode_compound): Extract code into
10758 (lookup_prefix_sym): New function.
10760 2003-02-04 David Carlton <carlton@math.stanford.edu>
10762 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10763 FLOAT_COERCION_BADNESS.
10764 * gdbtypes.c (rank_one_type): Replace all uses of
10765 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10767 2003-02-04 Jim Blandy <jimb@redhat.com>
10769 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10770 section, let dwarf_macinfo_section point to it, not
10773 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10775 Pointed out by Anton Blanchard <anton@samba.org>.
10776 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10777 (ppc_linux_at_sigtramp_return_path): Use it.
10779 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10781 * defs.h (streq): Add prototype.
10782 * utils.c (streq): New function.
10784 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10785 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10786 * mdebugread.c (new_symbol): Likewise.
10787 * stabsread.c (define_symbol): Likewise.
10788 * coffread.c (process_coff_symbol): Likewise.
10789 * dwarfread.c (new_symbol): Likewise.
10791 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10792 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10794 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10795 SYMBOL_INIT_DEMANGLED_NAME.
10796 * objfiles.c: Include "hashtab.h".
10797 (allocate_objfile): Call htab_set_functions_ex for the
10798 demangled_names_hash.
10799 (free_objfile): Call htab_delete for the demangled_names_hash.
10800 * objfiles.h (struct htab): Add declaration.
10801 (struct objfile): Add demangled_names_hash.
10802 * symfile.c: Include "hashtab.h".
10803 (reread_symbols): Call htab_delete for the demangled_names_hash.
10804 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10805 SYMBOL_NAME in the bcache.
10806 * symtab.c: Include "hashtab.h". Update comments.
10807 (create_demangled_names_hash, symbol_set_names): New functions.
10808 (symbol_find_demangled_name): New function, broken out from
10809 symbol_init_demangled_names.
10810 (symbol_init_demangled_names): Use it.
10811 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10812 (SYMBOL_SET_NAMES): New macro.
10813 (symbol_set_names): Add prototype.
10815 2003-02-03 Jim Blandy <jimb@redhat.com>
10817 Use a single, consistent representation for an empty minimal
10818 symbol table in an objfile.
10819 * objfiles.c (terminate_minimal_symbol_table): New function.
10820 (allocate_objfile): Call it.
10821 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10822 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10824 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10825 objfile has minimal symbols, compare minimal_symbol_count to zero,
10826 instead of comparing msymbols with NULL.
10827 * objfiles.c (have_minimal_symbols): Same.
10828 * solib-sunos.c (solib_add_common_symbols): Call
10829 terminate_minimal_symbol_table.
10830 * symfile.c (reread_symbols): Same.
10832 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10834 * s390-tdep.c (s390_address_class_type_flags)
10835 (s390_address_class_type_flags_to_name)
10836 (s390_address_class_name_to_type_flags): New functions.
10837 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10838 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10840 2003-02-03 Michael Snyder <msnyder@redhat.com>
10842 * arm-tdep.c: Fix spell-o in comment.
10844 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10846 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10847 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10848 error messages to contain BFD filename.
10850 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10852 Fix PR gdb/742 gdb/743 gdb/877
10853 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10854 (do_mixed_source_and_assembly): Use
10855 make_cleanup_ui_out_tuple_begin_end and
10856 make_cleanup_ui_out_tuple_begin_end.
10857 (do_mixed_source_and_assembly): Ditto.
10858 * thread.c (do_captured_list_thread_ids): Ditto.
10859 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10860 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10861 ui_out_tuple_end): Delete prototypes.
10862 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10863 ui_out_list_end, ui_out_tuple_end): Delete.
10865 From Kevin Buettner <kevinb@redhat.com>:
10866 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10867 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10868 (do_cleanup_table_end): New functions.
10869 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10870 Use cleanups to invoke_ui_out_tuple_end().
10871 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10872 * cli/cli-setshow.c (cmd_show_list): Use
10873 make_cleanup_ui_out_tuple_begin_end.
10875 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10877 * frame.c (frame_unwind_register): New function.
10878 (frame_unwind_unsigned_register): Use.
10879 (frame_unwind_signed_register): Use.
10880 (frame_read_register): New function.
10881 * frame.h (frame_unwind_register): Declare.
10882 (frame_read_register): Declare.
10884 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10885 and frame_unwind_register instead of read_memory, write_register
10886 and deprecated_write_register_bytes.
10888 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10890 * frame.h: Note that namelen can be negative.
10891 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10894 * NEWS: Mention that the d10v's `regs' command is deprecated.
10895 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10896 (d10v_print_registers_info): New function.
10897 (show_regs): Call d10v_print_registers_info.
10898 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10900 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10902 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10903 lost in the previous patch.
10905 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10907 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10908 * stack.c (print_frame_info_base): Output complete FRAME tuple
10909 for synthesized frames.
10911 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10913 * mips-nat.c (zerobuf): Delete.
10914 (fetch_inferior_registers): Alloc local zerobuf.
10915 (fetch_core_registers): Alloc local zerobuf.
10916 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10917 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10918 * thread-db.c (thread_db_store_registers): Ditto.
10919 * sh-tdep.c (sh_do_register): Ditto.
10920 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10921 * remote-sim.c (gdbsim_store_register): Ditto.
10922 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10923 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10924 * monitor.c (monitor_supply_register): Ditto.
10925 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10926 * mips-nat.c (fetch_inferior_registers): Ditto.
10927 * m68klinux-nat.c (fetch_register): Ditto.
10928 * lynx-nat.c (fetch_inferior_registers): Ditto.
10929 (fetch_inferior_registers): Ditto.
10930 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10931 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10932 (hpux_thread_store_registers): Ditto.
10933 * hppah-nat.c (fetch_register): Ditto.
10934 * hppab-nat.c (fetch_register): Ditto.
10935 * hppa-tdep.c (pa_register_look_aside): Ditto.
10936 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10937 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10939 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10941 * gdbarch.sh: Explictly specify all method levels. When a
10942 variable with an empty level, provide a non-multi-arch default.
10943 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10944 * gdbarch.h: Re-generate.
10945 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10946 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10948 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10950 * defs.h (host_pointer_to_address): Delete declaration.
10951 (address_to_host_pointer): Delete declaration.
10952 * utils.c (host_pointer_to_address): Delete function.
10953 (address_to_host_pointer): Delete function.
10954 * procfs.c (procfs_address_to_host_pointer): New function.
10955 * procfs.c (proc_set_watchpoint): Use.
10956 (procfs_can_use_hw_breakpoint): Update comments.
10957 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10958 (som_solib_add): Use.
10959 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10960 * hppa-tdep.c (unwind_command): Use.
10962 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10964 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10967 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10968 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10969 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10970 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10971 (define_symbol): Update.
10972 * symfile.c (generic_load): Remove references to nindy.
10973 * symtab.c: Remove references to nindy.
10975 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10977 * infcmd.c (print_float_info): Delete code conditional on
10979 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10980 * config/m68k/nm-apollo68b.h: Ditto.
10981 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10982 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10983 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10985 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10987 * config/i386/tm-i386os9k.h: Removed.
10989 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10990 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10991 they're identical to i[3456]86-*-sysv* now.
10992 * config/i386/i386v32.mh: Removed.
10993 * config/i386/xm-i386v32.h: Removed.
10994 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10996 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10998 * config/i386/i386dgux.mh: Removed.
10999 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11001 * configure.in: Fix typo.
11002 * configure: Regenerated.
11004 2003-01-31 David Carlton <carlton@math.stanford.edu>
11006 * dwarf2read.c (dwarf2_locate_sections): Set
11007 dwarf_ranges_section.
11009 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11011 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11012 * utils.c: Update comments documenting legitimate uses of PTR.
11014 * utils.c: Re-indent.
11016 * config/djgpp/fnchange.lst: Delete nindy files.
11017 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11018 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11019 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11020 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11021 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11022 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11023 * Makefile.in (init.c): Remove nindy references.
11024 (saber_gdb): Delete rule.
11025 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11026 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11028 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11029 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11030 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11031 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11032 nindy-share/stop.h.
11033 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11034 * saber.suppress: Delete file.
11036 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11038 * dbxread.c (stabs_data): New static variable.
11039 (fill_symbuf): Support an in-memory buffer for stabs data.
11040 (stabs_seek): New function.
11041 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11042 (read_ofile_symtab): Use stabs_seek.
11043 (elfstab_build_psymtabs): Take an asection* instead of
11044 an offset and size. Relocate the stabs data if necessary.
11045 Save the section* for dbx_psymtab_to_symtab.
11046 * dwarf2read.c: Add section variables for each debug section.
11047 (dwarf2_locate_sections): Fill them in.
11048 (dwarf2_read_section): Take an asection* argument.
11049 Relocate the section contents if necessary.
11050 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11051 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11052 it to dwarf2_read_section.
11053 (dwarf2_build_frame_info): Update callers.
11054 * elfread.c (elf_symfile_read): Update call to
11055 elfstab_build_psymtabs.
11056 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11057 (DBX_STAB_SECTION): New macro.
11058 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11059 * symfile.c (symfile_dummy_outputs): New function.
11060 (symfile_relocate_debug_section): New function.
11061 * symfile.h (symfile_relocate_debug_section): Add prototype.
11063 2003-01-31 Richard Henderson <rth@redhat.com>
11065 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11066 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11067 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11068 * alpha-tdep.c (alpha_register_name): Add "unique".
11069 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11070 (ALPHA_UNIQUE_REGNUM): New.
11071 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11073 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11075 * README: Remove reference to Ericsson 1800 monitor.
11076 * Makefile.in (remote-es.o): Delete rule.
11077 (ALLDEPFILES): Delete remote-es.c.
11078 * remote-es.c: Delete file.
11079 * config/m68k/es1800.mt: Delete file.
11080 * config/djgpp/fnchange.lst: Update.
11081 * configure.tgt: Delete m68*-ericsson-* target.
11083 2003-01-31 Adam Fedor <fedor@gnu.org>
11085 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11086 Remove duplicate/shadowing variable of same name.
11088 2003-01-30 Jim Blandy <jimb@redhat.com>
11090 * symfile.c (find_separate_debug_file): Assert that the objfile's
11091 directory name we compute ends with a slash, and then assume that
11092 that's so everywhere we use it.
11094 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11096 * valops.c (value_assign): Flush frame cache after stores to memory
11099 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11101 * Makefile.in (mon960-rom.o): Delete rule.
11102 * mon960-rom.c: Delete file.
11104 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11106 * d10v-tdep.c: Include "frame-unwind.h".
11107 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11109 (next_addr, uses_frame): Delete.
11110 (struct d10v_unwind_cache): Define.
11111 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11112 Use info instead of next_addr and uses_frame globals.
11113 (d10v_frame_init_saved_regs): Delete function.
11114 (d10v_init_extra_frame_info): Delete function.
11115 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11116 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11117 init_frame_pc or frame_saved_pc.
11118 (d10v_pop_frame): Delete function.
11119 (do_d10v_pop_frame): Delete function.
11120 (d10v_frame_chain): Delete function.
11121 (d10v_frame_chain_valid): Delete function.
11122 (d10v_frame_pc_unwind): New function.
11123 (d10v_frame_id_unwind): New function.
11124 (saved_regs_unwinder): New function.
11125 (d10v_frame_register_unwind): New function.
11126 (d10v_frame_pop): New function.
11127 (d10v_frame_unwind): New variable.
11128 (d10v_frame_p): New function.
11129 (d10v_frame_saved_pc): Delete function.
11130 * Makefile.in (d10v-tdep.o): Update dependencies.
11132 2003-01-30 J. Brobecker <brobecker@gnat.com>
11134 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11135 causing some regressions due to a change in the default value
11138 2003-01-29 Richard Henderson <rth@redhat.com>
11139 Elena Zannoni <ezannoni@redhat.com>
11140 Daniel Jacobowitz <drow@mvista.com>
11143 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11145 (RANGES_SECTION): New.
11146 (dwarf_ranges_buffer): New variable.
11147 (struct comp_unit_head): Add member "die".
11148 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11149 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11150 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11151 (dwarf2_locate_sections): Likewise.
11152 (dwarf2_build_psymtabs): Read .debug_ranges.
11153 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11154 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11155 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11156 Look for DW_AT_ranges and return the bounding box.
11158 2003-01-29 Brian Ford <ford@vss.fsi.com>
11160 * win32-nat.c (cygwin_pid): Removed as unused.
11161 (child_attach): Try fall back to Cygwin pid.
11163 2003-01-29 Jim Blandy <jimb@redhat.com>
11165 * objfiles.h (struct objfile): Doc fix.
11167 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11169 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11170 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11171 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11172 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11173 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11174 (FRAME_SAVED_PC): Change to a function with predicate.
11175 * gdbarch.h, gdbarch.c: Re-generate.
11177 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11179 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11181 * complaints.c (complain): Delete function.
11182 * complaints.h (struct deprecated_complaint): Delete definition.
11183 (complain): Delete declaration.
11185 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11187 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11190 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11192 * sentinel-frame.h, sentinel-frame.c: New files.
11193 * Makefile.in (frame.o): Update dependencies.
11194 (SFILES): Add sentinel-frame.c.
11195 (sentinel_frame_h): Define.
11196 (COMMON_OBS): Add sentinel-frame.o.
11197 (sentinel-frame.o): Specify dependencies.
11198 * frame.c: Include "sentinel-frame.h".
11199 (frame_register_unwind): Rewrite assuming that there is always a a
11201 (frame_register, generic_unwind_get_saved_register): Ditto.
11202 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11203 (create_sentinel_frame, unwind_to_current_frame): New functions.
11204 (get_current_frame): Rewrite using create_sentinel_frame and
11205 unwind_to_current_frame. When possible, always create a frame.
11206 (create_new_frame): Set next to the sentinel frame.
11207 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11208 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11209 ID cache when necessary.
11210 (frame_saved_regs_id_unwind): Use frame_relative_level.
11211 (deprecated_generic_get_saved_register): Use frame_relative_level,
11212 get_frame_saved_regs, get_frame_pc, get_frame_base and
11214 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11217 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11219 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11221 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11223 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11224 (maintenance_set_profile_cmd): Use error () instead of warning ().
11226 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11228 * configure.in: Check that -pg works if using --enable-profiling.
11229 Check for monstartup and _mcleanup regardless of --enable-profiling.
11230 * maint.c: Check for monstartup and _mcleanup before using them.
11231 * config.in: Regenerated.
11232 * configure: Regenerated.
11234 2003-01-24 Nick Clifton <nickc@redhat.com>
11236 * Add sh2e support:
11238 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11240 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11241 (sh2e_show_regs): New.
11242 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11243 * config/sh/tm-sh.h: Added sh2e to comments.
11245 2003-01-23 Jim Blandy <jimb@redhat.com>
11247 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11248 symbols found)" message here; we haven't checked for a separate
11249 debug info file yet, so we don't know yet.
11250 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11251 we've looked everywhere. Also, there's no need to print a special
11252 message when we're loading the separate debug info file: the one
11253 symbol_file_add prints is fine.
11255 2003-01-23 Alexander Larsson <alexl@redhat.com>
11256 Jim Blandy <jimb@redhat.com>
11258 Add support for executables whose debug info has been separated
11259 out into a separate file, leaving only a link behind.
11260 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11261 and separate_debug_objfile_backlink.
11262 (put_objfile_before): New declaration.
11263 * symfile.c: #include "filenames.h".
11264 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11265 debug info in a separate file, read that, too. Save the addrs
11266 argument, so we can use it again to read the separated debug info;
11267 syms_from_objfile modifies the table we pass it.
11268 (reread_symbols): After re-reading an objfile, call
11269 reread_separate_symbols to refresh its separate debug info
11270 objfile, if it has one.
11271 (reread_separate_symbols, find_separate_debug_file,
11272 get_debug_link_info, separate_debug_file_exists): New functions.
11273 (debug_file_directory): New global var.
11274 (_initialize_symfile): Initialize debug_file_directory, and
11275 provide the new `set debug-file-directory' command to let the user
11277 * objfiles.c (free_objfile): If this objfile has its debug info in
11278 a separate objfile, free that one too. If this is itself a
11279 separate debug info objfile, clear our parent's backlink.
11280 (put_objfile_before): New function.
11281 * utils.c (gnu_debuglink_crc32): New function.
11282 * defs.h (gnu_debuglink_crc32): New declaration.
11283 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11284 * configure.in: Handle --with-separate-debug-dir config option.
11285 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11286 * acconfig.h (DEBUGDIR): New macro.
11287 * configure, aclocal.m4, config.in: Regenerated.
11289 2003-01-22 Jim Blandy <jimb@redhat.com>
11291 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11292 like the old symbol_file_add, but taking new arguments: you can
11293 now pass in either a `struct section_addr_info' list to say where
11294 each section is loaded, or a `struct section_offsets' table. Pass
11295 these new arguments through to syms_from_objfile as appropriate.
11296 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11297 with the appropriate quiescent values for the new arguments.
11299 * symfile.c: #include "gdb_assert.h".
11300 (syms_from_objfile): Add the ability to pass in a section offset
11301 table directly, as an alternative to the section_addr_info table.
11302 Document arguments better.
11303 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11304 * symfile.h (syms_from_objfile): Update declaration.
11305 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11307 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11309 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11311 Original patch by Tom Tromey <tromey@cygnus.com> and
11312 Jason Molenda <jmolenda@apple.com>.
11313 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11314 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11315 * NEWS: Mention profiling.
11316 * configure.in (--enable-gdbtk): Fix typo.
11317 (--enable-profiling): New. Set PROFILE_CFLAGS.
11318 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11320 (profiling_state): New variable.
11321 (mcleanup_wrapper): New function.
11322 (_initialize_maint): Remove NOTYET, fix call to
11323 add_setshow_boolean_cmd for "maint set profile".
11324 * configure: Regenerated.
11326 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11328 * Makefile.in (install-gdbtk): Install PNG images too.
11330 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11332 * exec.c (text_start): Delete global variable.
11333 (exec_file_attach): Make text_start local to the function.
11334 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11335 * valops.c (hand_function_call): Delete code that handles
11336 BEFORE_TEXT_END and AFTER_TEXT_END.
11337 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11338 of CALL_DUMMY_LOCATION.
11339 * gdbarch.c: Regenerate.
11340 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11341 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11342 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11343 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11344 (text_end): Delete extern declaration.
11346 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11348 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11349 * blockframe.c (backtrace_below_main): Move to "frame.c".
11350 (frame_chain_valid): Delete check for backtrace_below_main.
11351 (_initialize_blockframe): Delete initialization, move ``set
11352 backtrace-below-main'' command to "frame.c".
11353 (do_flush_frames_sfunc): Delete function.
11354 * frame.c: Include "command.h" and "gdbcmd.h".
11355 (frame_type_from_pc): New function.
11356 (create_new_frame): Use frame_type_from_pc.
11357 (legacy_get_prev_frame): New function.
11358 (get_prev_frame): Rewrite. When an old style frame, call
11359 legacy_get_prev_frame. Otherwize, unwind the PC first.
11360 (_initialize_frame): Add ``set backtrace-below-main'' command.
11361 * Makefile.in (frame.o): Update dependencies.
11363 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11365 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11366 DEPRECATED_REGISTERS_INFO.
11368 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11370 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11371 Maintainers'. Update `Various Maintainers'.
11373 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11375 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11376 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11377 Suppress actual parameters when `-'.
11378 * gdbarch.h, gdbarch.c: Regenerate.
11380 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11382 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11383 code handling dummy frames.
11385 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11387 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11388 (struct frame_unwind): Add field pop.
11389 * frame.h (frame_pop): Declare.
11390 * frame.c (frame_saved_regs_pop): New function.
11391 (trad_frame_unwinder): Add frame_saved_regs_pop.
11392 (frame_pop): New function.
11393 * dummy-frame.c (dummy_frame_pop): New function.
11394 (discard_innermost_dummy): New function.
11395 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11396 (dummy_frame_unwind): Add dummy_frame_pop.
11397 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11398 * valops.c (hand_function_call): Ditto.
11399 * stack.c (return_command): Ditto.
11401 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11403 * cris-tdep.c: Fix function declaration indentation.
11404 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11405 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11406 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11407 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11408 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11409 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11411 2003-01-18 Michael Chastain <mec@shout.net>
11413 * README (Unpacking and Installation -- quick overview):
11414 Warn against ".../gdb-5.3/gdb/configure".
11416 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11418 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11419 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11420 (struct frame_unwind): Declare opaque.
11421 (dummy_frame_p): Declare function.
11422 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11423 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11424 * dummy-frame.c: Include "frame-unwind.h".
11425 (dummy_frame_p): New function.
11426 (dummy_frame_unwind): New variable.
11427 * frame.c: Include "frame-unwind.h".
11428 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11429 to use the new unwind field.
11430 (set_unwind_by_pc): Delete function.
11431 (create_new_frame, get_prev_frame): Set unwind field using
11432 frame_unwind_find_by_pc.
11433 (trad_frame_unwind, trad_frame_unwinder): New variables.
11434 * frame.h (trad_frame_unwind): Declare variable.
11435 (frame_id_unwind_ftype): Delete declaration.
11436 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11437 (struct frame_unwind): Declare opaque.
11438 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11439 register_unwind with a single unwind pointer.
11440 * frame-unwind.h, frame-unwind.c: New files.
11441 * Makefile.in (SFILES): Add frame-unwind.c.
11442 (frame_unwind_h): Define.
11443 (COMMON_OBS): Add frame-unwind.o.
11444 (frame-unwind.o): Specify dependencies.
11445 (frame.o, dummy-frame.o): Update dependencies.
11447 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11449 * ada-valprint.c: Eliminate PTR.
11450 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11451 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11452 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11453 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11454 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11455 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11456 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11458 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11460 * main.c (captured_main): Don't use PTR.
11461 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11462 * gdbtypes.c (lookup_primitive_typename): Ditto.
11463 (lookup_struct_elt_type): Ditto.
11464 * f-valprint.c (info_common_command): Ditto.
11465 (list_all_visible_commons): Ditto.
11466 * jv-typeprint.c (java_type_print_base): Ditto.
11468 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11469 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11470 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11471 i386-interix-nat.c and i386-interix-tdep.c. Rename
11472 m68klinux-nat.c and m68klinux-tdep.c. Rename
11473 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11474 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11475 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11476 * main.c (captured_main): Use xfree, not free.
11478 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11480 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11481 ID back using a parameter.
11482 * frame.c (frame_id_unwind): Update call.
11483 (frame_saved_regs_id_unwind): Update.
11484 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11485 * dummy-frame.h (struct frame_id): Add opaque declaration.
11486 (dummy_frame_id_unwind): Update declaration.
11488 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11490 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11492 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11494 * MAINTAINERS (Stephen P. Smith): Updated email address.
11496 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11499 * breakpoint.c (until_break_command): Add new argument. Use it to
11500 decide whether to stop only at the current frame or not.
11501 * breakpoint.h (until_break_command): Update prototype.
11502 * infcmd.c (until_command): Add new argument to until_break_command
11504 (advance_command): New function.
11505 (_initialize_infcmd): Update help string for 'until' command.
11506 Add new 'advance' command.
11508 2003-01-14 David Carlton <carlton@math.stanford.edu>
11510 * linespec.c (decode_line_1): Normalize comments.
11511 (set_flags): Ditto.
11512 (locate_first_half): Ditto.
11513 (decode_compound): Ditto.
11514 (symtab_from_filename): Ditto.
11515 (decode_all_digits): Ditto.
11516 (decode_dollar): Ditto.
11517 (find_methods): Ditto.
11518 (find_toplevel_char): Ditto.
11520 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11522 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11523 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11524 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11525 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11526 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11527 * language.c, language.h, m32r-tdep.c: Update copyright.
11528 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11529 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11530 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11531 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11532 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11533 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11535 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11537 * stabsread.h (process_later, resolve_cfront_continuation):
11539 Update copyright years.
11540 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11541 Update copyright year.
11542 * dbxread.c(struct cont_elem): Obsolete.
11543 (process_later, process_now): Obsolete functions.
11544 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11545 Update copyright year.
11546 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11547 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11548 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11549 (parse_partial_symbols): Obsolete cfront support.
11551 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11553 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11554 read_cfront_baseclasses, read_cfront_member_functions,
11555 resolve_cfront_continuation,read_cfront_static_fields,
11556 copy_cfront_struct_fields): Obsolete functions.
11557 (define_symbol, read_one_struct_field): Obsolete cfront support.
11558 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11559 Update Copyright year.
11561 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11563 * stack.c (print_frame_info, print_stack_frame_base_stub,
11564 print_stack_frame_base, show_and_print_stack_frame_stub,
11565 show_and_print_stack_frame, print_only_stack_frame_stub,
11566 print_only_stack_frame): Delete functions.
11567 (print_stack_frame_stub): Call print_frame_info instead of
11568 print_frame_info_base.
11569 (print_frame_info_base): Rename to print_frame_info.
11570 (backtrace_command_1): Call print_frame_info, instead of
11571 print_frame_info_base.
11572 (current_frame_command): Call print_stack_frame, instead of
11573 print_only_stack_frame.
11574 (frame_command): Call print_stack_frame, instead of
11575 show_and_print_stack_frame.
11576 (up_command): Ditto.
11577 (down_command): Ditto.
11578 * frame.h (print_only_stack_frame): Delete prototype.
11579 * infrun.c (normal_stop): Call print_stack_frame, instead of
11580 show_and_print_stack_frame.
11581 * thread.c (info_threads_command): Call print_stack_frame, instead
11582 of print_only_stack_frame.
11584 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11586 * README (Graphical interface to GDB): Update URL. Point at
11589 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11592 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11594 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11597 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11599 * thread-db.c (attach_thread): Prototype.
11600 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11601 thread information (ti), and valid flags (th_valid, ti_valid).
11602 (attach_thread): Move target_pid_to_str call to after the thread
11603 is added to GDB's list. Initialize the cache.
11604 (thread_get_info_callback, thread_db_map_id2thr)
11605 (thread_db_get_info): New functions.
11606 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11607 (thread_db_store_registers, thread_db_thread_alive)
11608 (thread_db_get_thread_local_address): Use them.
11609 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11610 of calling error() for threads in unknown state.
11612 (clear_lwpid_callback): New function.
11613 (thread_db_resume): Use it to clear the cache.
11615 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11617 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11618 (resume_callback): Remove dead code.
11620 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11622 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11624 * gdbarch.h, gdbarch.c: Regenerate.
11625 * stack.c (frame_info): Only initialize the saved registers when
11626 FRAME_INIT_SAVED_REGS_P.
11627 * frame.c (frame_saved_regs_register_unwind): Assert
11628 FRAME_INIT_SAVED_REGS_P.
11629 (deprecated_generic_get_saved_register): Ditto.
11631 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11633 * source.c (openp): Squelch warning about "filename".
11635 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11637 * source.c (openp): If the file does not exist don't necessarily
11640 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11643 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11644 (integer_types_same_name_p): New function.
11645 (rank_one_type): Use it.
11646 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11648 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11650 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11652 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11653 * configure.in: Add --with-sysroot.
11654 * configure: Regenerated.
11655 * main.c (gdb_sysroot): New variable.
11656 (captured_main): Initialize gdb_sysroot.
11657 * defs.h (gdb_sysroot): New extern declaration.
11658 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11660 2003-01-12 Michael Chastain <mec@shout.net>
11662 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11664 2003-01-12 Michael Chastain <mec@shout.net>
11666 * top.c (print_gdb_version): Bump copyright year to 2003.
11668 2003-01-12 David Carlton <carlton@bactrian.org>
11670 * linespec.c (symtab_from_filename): Rename variable 's' to
11673 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11675 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11677 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11679 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11681 * d10v-tdep.c: Include "gdb_assert.h".
11682 (d10v_store_return_value): Rewrite to match current interface.
11683 (d10v_extract_struct_value_address): Ditto.
11684 (d10v_extract_return_value): Ditto.
11685 (d10v_gdbarch_init): Set store_restore_value,
11686 extract_struct_value_address and extract_return_value.
11688 2003-01-12 J. Brobecker <brobecker@gnat.com>
11690 * hpread.c (set_namestring): New procedure replacing the
11691 SET_NAMESTRING macro.
11692 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11693 by calls to set_namestring.
11695 2003-01-11 J. Brobecker <brobecker@gnat.com>
11697 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11698 a compilation warning.
11699 (hpread_process_one_debug_symbol): Likewise.
11701 2003-01-10 David Carlton <carlton@math.stanford.edu>
11703 * linespec.c (decode_line_1): Rename variable 's' to
11705 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11706 (decode_dollar): Ditto.
11707 (decode_variable): Ditto.
11708 (symbol_found): Ditto.
11710 2003-01-09 Michael Chastain <mec@shout.net>
11712 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11714 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11716 * win32-nat.c (set_process_privilege): New function.
11717 (child_attach): Call set_process_privilege() to enable the
11718 SE_DEBUG_NAME user privilege if available in process token.
11720 2003-01-10 J. Brobecker <brobecker@gnat.com>
11722 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11723 compilation error in the previous revision.
11725 2003-01-09 David Carlton <carlton@math.stanford.edu>
11727 * linespec.c: Update copyright.
11729 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11731 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11732 than inferior_ptid.
11733 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11735 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11737 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11739 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11740 (frame_saved_regs_zalloc): Update.
11741 (frame_saved_regs_register_unwind): Update.
11742 (create_new_frame): Update.
11743 (get_prev_frame): Update.
11744 (frame_extra_info_zalloc): Update.
11745 (deprecated_get_frame_saved_regs): Update.
11746 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11747 * cris-tdep.c: Update comment.
11749 * somsolib.h: Fix function indentation.
11750 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11751 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11752 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11753 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11754 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11756 * infrun.c (follow_fork): Use ISO C definition.
11757 * expprint.c (print_subexp): Use xfree instead of free.
11758 * charset.c: Include "gdb_string.h" instead of <string.h>.
11759 (register_iconv_charsets): Use ISO C definition.
11760 (host_charset, target_charset): Ditto.
11761 * Makefile.in (charset.o): Update dependencies.
11762 (mi-cmd-env.o): Update dependencies.
11764 2003-01-08 Andrew Cagney <cagney@redhat.com>
11766 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11769 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11771 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11772 build directories. Save edited gdb output in Mbuild.log. If a
11773 build fails, remove any final GDB executable.
11775 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11777 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11778 replacing hex constants with function names and stripping leading
11779 file name directory prefixes.
11781 2003-01-08 Andrew Cagney <cagney@redhat.com>
11783 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11786 2003-01-08 David Carlton <carlton@math.stanford.edu>
11788 * linespec.c (decode_line_1): Move code into decode_variable.
11789 (decode_variable): New function.
11791 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11793 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11795 2003-01-08 Andrew Cagney <cagney@redhat.com>
11797 * cris-tdep.c (cris_frame_init_saved_regs): Use
11798 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11800 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11801 (sh64_nofp_frame_init_saved_regs): Ditto.
11802 (sh_fp_frame_init_saved_regs): Ditto.
11803 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11804 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11805 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11806 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11808 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11810 * minsyms.c (lookup_minimal_symbol): Update comment.
11811 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11812 (lookup_minimal_symbol_solib_trampoline): Likewise.
11814 2003-01-08 Andrew Cagney <cagney@redhat.com>
11816 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11817 frame_relative_level.
11819 * alpha-tdep.c: Use get_frame_extra_info.
11820 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11821 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11822 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11823 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11825 * alpha-tdep.c: Use get_next_frame.
11826 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11827 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11828 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11829 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11830 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11831 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11832 * xstormy16-tdep.c: Ditto.
11834 2003-01-07 Andrew Cagney <cagney@redhat.com>
11836 * alpha-tdep.c: Use get_frame_base.
11837 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11838 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11839 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11840 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11841 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11842 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11843 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11844 * config/sparc/tm-sparc.h: Ditto.
11846 2003-01-07 Andrew Cagney <cagney@redhat.com>
11848 * frame.c (deprecated_get_frame_context): New function.
11849 (deprecated_set_frame_context): New function.
11850 * frame.h (deprecated_get_frame_context): Declare.
11851 (deprecated_set_frame_context): Declare.
11852 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11853 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11855 2003-01-07 Andrew Cagney <cagney@redhat.com>
11857 * frame.c (deprecated_set_frame_next_hack): New function.
11858 (deprecated_set_frame_prev_hack): New function.
11859 * frame.h (deprecated_set_frame_next_hack): Declare.
11860 (deprecated_set_frame_prev_hack): Declare.
11861 * mcore-tdep.c (analyze_dummy_frame): Use
11862 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11863 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11865 2003-01-07 David Carlton <carlton@math.stanford.edu>
11867 * linespec.c (decode_line_1): Move code into decode_dollar.
11868 (decode_dollar): New function.
11870 2003-01-07 Andrew Cagney <cagney@redhat.com>
11872 * arm-tdep.c (arm_init_extra_frame_info): Use
11873 deprecated_update_frame_base_hack.
11874 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11875 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11876 (fix_frame_pointer): Ditto.
11877 (mn10300_analyze_prologue): Ditto.
11879 2003-01-07 Andrew Cagney <cagney@redhat.com>
11881 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11882 extra_info using frame_extra_info_zalloc.
11883 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11884 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11885 (sh64_init_extra_frame_info): Ditto.
11886 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11887 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11888 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11889 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11890 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11891 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11892 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11893 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11894 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11895 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11896 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11897 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11899 * mn10300-tdep.c (analyze_dummy_frame): Use
11900 deprecated_set_frame_extra_info_hack.
11901 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11903 2003-01-07 J. Brobecker <brobecker@gnat.com>
11905 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11906 class is not scText. These do not define "real" procedures.
11907 (parse_partial_symbols): Likewise.
11909 2003-01-06 Michael Snyder <msnyder@redhat.com>
11911 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11913 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11915 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11916 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11917 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11918 deprecated_frame_xmalloc_with_cleanup.
11919 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11920 deprecated_frame_xmalloc.
11921 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11922 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11924 2003-01-06 Andrew Cagney <cagney@redhat.com>
11926 * x86-64-linux-tdep.c: Include "osabi.h".
11927 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11929 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11931 2003-01-06 Andrew Cagney <cagney@redhat.com>
11933 * MAINTAINERS (Target Instruction Set Architectures): Update
11934 arm-elf. Can be built with -Werror, has been multiarched.
11936 * value.h (unpack_long): Make buffer parameter constant.
11937 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11938 * scm-lang.h (scm_parse): Ditto.
11939 * defs.h (extract_typed_address, extract_address): Ditto.
11940 (extract_long_unsigned_integer): Ditto.
11941 * inferior.h (unsigned_pointer_to_address): Ditto.
11942 (signed_pointer_to_address): Ditto.
11943 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11944 * gdbarch.h, gdbarch.c: Regenerate.
11945 * findvar.c (extract_long_unsigned_integer): Update.
11946 (extract_address): Update.
11947 (extract_typed_address): Update.
11948 (unsigned_pointer_to_address): Update.
11949 * values.c (unpack_long): Update.
11950 (unpack_double): Update.
11951 (unpack_pointer): Update.
11952 (unpack_field_as_long): Update.
11953 * d10v-tdep.c (d10v_pointer_to_address): Update.
11954 * avr-tdep.c (avr_pointer_to_address): Update.
11955 * scm-lang.c (scm_unpack): Update.
11956 * findvar.c (signed_pointer_to_address): Update.
11958 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11960 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11961 since it is in i386-tdep.c.
11963 2003-01-06 J. Brobecker <brobecker@gnat.com>
11965 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11966 failure introduced in the previous change.
11968 2003-01-05 Michael Chastain <mec@shout.net>
11970 * README: Remove references to deleted remote-*.c files:
11971 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11972 remote-nrom.c, remote-os9k.c, remote-udi.c.
11974 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11976 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11977 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11978 i386_get_longjmp_target.
11980 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11982 * arm-tdep.c (prologue_cache): Change to a pointer.
11983 (_initialize_arm_tdep): Allocate prologue_cache.
11984 (check_prologue_cache): Update.
11985 (save_prologue_cache): Update.
11986 (arm_gdbarch_init): Update.
11988 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11990 * stabsread.c (update_method_name_from_physname): Call complaint()
11993 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11995 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11996 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11997 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11999 * blockframe.c: Include "gdbcmd.h" and "command.h".
12000 (backtrace_below_main): New variable.
12001 (file_frame_chain_valid, func_frame_chain_valid)
12002 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12003 (generic_func_frame_chain_valid): Remove functions.
12004 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12005 (_initialize_blockframe): New function.
12006 * Makefile.in (blockframe.o): Update dependencies.
12007 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12008 comment. Call frame_chain_valid ().
12009 * frame.h: Remove old prototypes. Add prototype for
12010 frame_chain_valid and update comments to match.
12011 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12012 Remove old comment.
12013 * gdbarch.h: Regenerated.
12014 * gdbarch.c: Regenerated.
12016 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12017 set_gdbarch_frame_chain_valid.
12018 * avr-tdep.c (avr_gdbarch_init): Likewise.
12019 * cris-tdep.c (cris_gdbarch_init): Likewise.
12020 * frv-tdep.c (frv_gdbarch_init): Likewise.
12021 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12022 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12023 (i386_nw_init_abi): Likewise.
12024 (i386_gdbarch_init): Likewise.
12025 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12027 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12028 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12029 * mips-tdep.c (mips_gdbarch_init): Likewise.
12030 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12031 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12032 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12033 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12034 * s390-tdep.c (s390_gdbarch_init): Likewise.
12035 * sh-tdep.c (sh_gdbarch_init): Likewise.
12036 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12037 * v850-tdep.c (v850_gdbarch_init): Likewise.
12038 * vax-tdep.c (vax_gdbarch_init): Likewise.
12039 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12041 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12042 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12043 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12044 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12045 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12046 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12047 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12048 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12050 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12052 * Makefile.in (acconfig_h): Remove incorrect macro.
12053 (config_h): Define.
12054 (osabi.o): Update dependencies.
12055 * configure.tgt: Set gdb_osabi based on target triplet.
12056 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12057 * configure: Regenerated.
12058 * config.in: Regenerated.
12059 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12060 (GDB_OSABI_DEFAULT): Define if not already defined.
12061 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12062 (set_osabi_string): New variables.
12063 (gdbarch_register_osabi): Add new OS ABI to
12064 gdb_osabi_available_names.
12065 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12066 (set_osabi, show_osabi): New functions.
12067 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12069 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12071 * arch-utils.c (gdbarch_info_init): Set osabi to
12072 GDB_OSABI_UNINITIALIZED.
12073 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12074 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12075 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12076 * gdbarch.c: Regenerated.
12077 * gdbarch.h: Regenerated.
12078 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12080 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12081 * osabi.h (enum gdb_osabi): Move to defs.h.
12082 (gdbarch_init_osabi): Update prototype.
12083 * defs.h (enum gdb_osabi): Moved here.
12084 * Makefile.in: Update dependencies.
12086 * alpha-tdep.h: Don't include "osabi.h".
12087 (struct gdbarch_tdep): Remove osabi member.
12088 * alpha-tdep.c: Include "osabi.h".
12089 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12090 iterate over arches. Update call to gdbarch_init_osabi.
12091 (alpha_dump_tdep): Don't dump osabi.
12092 * alpha-linux-tdep.c: Include "osabi.h".
12093 * alpha-osf1-tdep.c: Include "osabi.h".
12094 * alphafbsd-tdep.c: Include "osabi.h".
12095 * alphanbsd-tdep.c: Include "osabi.h".
12097 * arm-tdep.h: Don't include "osabi.h".
12098 (struct gdbarch_tdep): Remove osabi member.
12099 * arm-tdep.c: Include "osabi.h".
12100 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12101 iterate over arches. Update call to gdbarch_init_osabi.
12102 (arm_dump_tdep): Don't dump osabi.
12103 * arm-linux-tdep.c: Include "osabi.h".
12104 * armnbsd-tdep.c: Include "osabi.h".
12106 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12107 Update call to gdbarch_init_osabi.
12109 * i386-tdep.h: Don't include "osabi.h".
12110 (struct gdbarch_tdep): Remove osabi member.
12111 * i386-tdep.c: Include "osabi.h".
12112 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12113 iterate over arches. Update call to gdbarch_init_osabi.
12114 (i386_dump_tdep): Don't dump osabi.
12115 * i386-linux-tdep.c: Include "osabi.h".
12116 * i386-sol2-tdep.c: Include "osabi.h".
12117 * i386bsd-tdep.c: Include "osabi.h".
12118 * i386gnu-tdep.c: Include "osabi.h".
12119 * i386ly-tdep.c: Include "osabi.h".
12120 * i386nbsd-tdep.c: Include "osabi.h".
12121 * i386obsd-tdep.c: Include "osabi.h".
12123 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12124 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12125 check osabi when iterating over arches. Update call to
12126 gdbarch_init_osabi.
12127 (mips_dump_tdep): Don't dump osabi.
12129 * ns32k-tdep.h: Don't include "osabi.h".
12130 (struct gdbarch_tdep): Remove.
12131 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12132 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12133 allocate tdep. Update call to gdbarch_init_osabi.
12134 (ns32k_dump_tdep): Remove.
12135 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12136 * ns32knbsd-tdep.c: Include "osabi.h".
12138 * ppc-tdep.h: Don't include "osabi.h".
12139 (struct gdbarch_tdep): Remove osabi member.
12140 * rs6000-tdep.c: Include "osabi.h".
12141 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12142 osabi when iterating over arches. Update call to
12143 gdbarch_init_osabi.
12144 (rs6000_dump_tdep): Don't dump osabi.
12145 * ppc-linux-tdep.c: Include "osabi.h".
12146 * ppcnbsd-tdep.c: Include "osabi.h".
12148 * sh-tdep.h: Don't include "osabi.h".
12149 (struct gdbarch_tdep): Remove osabi member.
12150 * sh-tdep.c: Include "osabi.h".
12151 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12152 iterate over arches. Update call to gdbarch_init_osabi.
12153 (sh_dump_tdep): Don't dump osabi.
12154 * shnbsd-tdep.c: Include "osabi.h".
12156 * sparc-tdep.c: Include "osabi.h".
12157 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12158 iterate over arches. Update call to gdbarch_init_osabi.
12159 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12162 * vax-tdep.h: Don't include "osabi.h".
12163 (struct gdbarch_tdep): Remove.
12164 * vax-tdep.c: Include "osabi.h".
12165 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12166 iterate over arches. Don't allocate tdep. Update call
12167 to gdbarch_init_osabi.
12168 (vax_dump_tdep): Remove.
12169 (_initialize_vax_tdep): Update call to gdbarch_register.
12171 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12173 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12175 (breakpoint_re_set_one): Don't fetch the value for a disabled
12178 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12180 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12181 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12182 (COERCE_FLOAT_TO_DOUBLE): Remove.
12183 * gdbarch.c: Regenerate.
12184 * gdbarch.h: Regenerate.
12185 * Makefile.in: Remove value_h from gdbarch_h.
12186 * valops.c (coerce_float_to_double): New variable.
12187 (default_coerce_float_to_double): Remove.
12188 (standard_coerce_float_to_double): Remove.
12189 (value_arg_coerce): Use coerce_float_to_double.
12190 (_initialize_valops): Add "set coerce-float-to-double".
12191 * value.h (default_coerce_float_to_double): Remove prototype.
12192 (standard_coerce_float_to_double): Remove prototype.
12194 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12196 * mdebugread.c (parse_symbol): Likewise.
12197 * stabsread.c (define_symbol): Mark all functions as prototyped.
12199 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12200 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12201 set_gdbarch_coerce_float_to_double.
12202 * arm-tdep.c (arm_gdbarch_init): Likewise.
12203 * frv-tdep.c (frv_gdbarch_init): Likewise.
12204 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12205 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12206 * mips-tdep.c (mips_gdbarch_init): Likewise.
12207 (mips_coerce_float_to_double): Remove.
12208 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12209 (rs6000_coerce_float_to_double): Remove.
12210 * s390-tdep.c (s390_gdbarch_init): Likewise.
12211 * sh-tdep.c (sh_gdbarch_init): Likewise.
12212 (sh_coerce_float_to_double): Remove.
12213 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12214 (sparc_coerce_float_to_double): Remove.
12215 * v850-tdep.c (v850_gdbarch_init): Likewise.
12216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12217 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12218 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12219 (hppa_coerce_float_to_double): Remove prototype.
12220 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12222 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12224 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12226 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12228 Suggested by Stewart Brown <sb24@avaya.com>:
12229 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12230 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12231 (c_type_print_varspec_suffix): Likewise.
12233 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12235 * configure.in: Don't set and AC_SUBST SUBDIRS.
12236 * configure: Regenerated.
12238 * configure.in: Remove code dealing with shared libraries.
12239 * Makefile.in: Remove HLDFLAGS and HLDENV.
12240 * configure: Regenerated.
12242 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12244 * frame.c (deprecated_frame_xmalloc): New function.
12245 (deprecated_set_frame_saved_regs_hack): New function.
12246 (deprecated_set_frame_extra_info_hack): New function.
12247 * frame.h (deprecated_frame_xmalloc): Declare.
12248 (deprecated_set_frame_saved_regs_hack): Declare.
12249 (deprecated_set_frame_extra_info_hack): Declare.
12251 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12253 * configure.in: Move code that provides the --enable-gdbtk option
12254 right after the code that handles the --enable-tui option, and
12255 polish it somewhat.
12256 * configure: Regenerated.
12258 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12259 AC_CHECK_FUNCS and remove the old check for pread64.
12260 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12261 * acconfig.h (_GNU_SOURCE): Add.
12262 (HAVE_PREAD64): Remove.
12263 * configure, aclocal.m4, config.in: Regenerated.
12265 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12267 * alpha-tdep.c: Use get_frame_saved_regs.
12268 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12269 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12270 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12271 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12272 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12274 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12276 * configure.in: Remove all use of the SUBDIRS variable; add
12277 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12278 code providing the --enable-multi-ice option, and move it right in
12279 front of the code that checks whether gdbserver is supported.
12281 * configure: Regenerated.
12282 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12285 2003-01-03 Andrew Cagney <cagney@redhat.com>
12287 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12288 * avr-tdep.c, cris-tdep.c: Ditto.
12289 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12290 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12292 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12294 * configure.in: Remove --enable-netrom option.
12295 * configure: Regenerated.
12297 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12299 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12300 declaration for `struct re_pattern_buffer' instead.
12301 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12303 2003-01-03 J. Brobecker <brobecker@gnat.com>
12305 * mdebugread.c (parse_symbol): Count until the stEnd matching
12306 the structure name.
12308 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12310 * configure.in: Remove --with-cpu option.
12311 subscripts. Remove evil changequotes here.
12312 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12313 * config.in, configure: Regenerated.
12315 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12316 * configure.in: Cleanup section that sources GDB and BFD configure
12317 subscripts. Remove evil changequotes here.
12318 * config.in, configure: Regenerated.
12320 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12322 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12323 frame accessor methods.
12324 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12325 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12326 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12327 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12328 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12329 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12330 * z8k-tdep.c: Ditto.
12332 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12334 * configure.in: Remove UI_OUT configuration code.
12335 * ada-lang.c: Update assuming UI_OUT is always true.
12336 * Makefile.in (UIOUT_CFLAGS): Remove.
12337 * configure: Regenerated.
12338 * TODO: Remove blurb about elimination of -DUI_OUT.
12340 * configure.in: Move code that provides the --enable-gdbcli,
12341 --enable-gdbmi options right before the code that handles the
12342 --enable-tui option. Polish a bit.
12343 * configure: Regenerated.
12345 * configure.in: Rewrite check for GNU regex and the
12346 --without-included regex option, and move it into the "Checks for
12347 library functions" section. This makes us use the system regex
12348 again by default on systems with version 2 of the GNU C library.
12349 This was apparently broken.
12350 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12351 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12352 * config.in, configure: Regenerated.
12354 * configure.in: Move code that provides the --enable-tui option
12355 before the "Checks for libraries" section. Polish the code
12356 somewhat and set need_curses to yes if we build the TUI. Rewrite
12357 code that looks for a library providing termcap functionality to
12358 match more closely what's done in the Readline library, and move
12359 it into to the "Checks for libraries" section.
12360 * configure: Regenerated.
12361 * Makefile.in (TERMCAP): Remove variable.
12362 * config/i386/go32.mh (TERMCAP): Remove variable.
12364 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12366 * MAINTAINERS: Mention gdb_mbuild.sh.
12367 * gdb_mbuild.sh: Rewrite.
12369 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12371 * configure.in: Fix typo in last change.
12372 * config.in, configure: Regenerated.
12374 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12376 * valarith.c (value_binop): Delete obsolete code and comments.
12377 * configure.host: Ditto.
12378 * buildsym.h (make_blockvector): Ditto.
12379 * buildsym.c (make_blockvector): Ditto.
12380 * defs.h (enum language): Ditto.
12381 (chill_demangle): Ditto.
12382 * elfread.c (elf_symtab_read): Ditto.
12383 * dwarfread.c (CHILL_PRODUCER): Ditto.
12384 (set_cu_language): Ditto.
12385 (handle_producer): Ditto.
12386 * expprint.c (print_subexp): Ditto.
12387 * gdbtypes.c (chill_varying_type): Ditto.
12388 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12389 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12390 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12391 (chill_varying_type): Ditto.
12392 * language.h (_LANG_chill): Ditto.
12393 * language.c (binop_result_type, integral_type): Ditto.
12394 (character_type, string_type, structured_type): Ditto.
12395 (lang_bool_type, binop_type_check): Ditto.
12396 * stabsread.h (os9k_stabs): Ditto.
12397 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12398 (define_symbol, read_type, read_struct_fields): Ditto.
12399 (read_array_type, read_enum_type, read_huge_number): Ditto.
12400 (read_range_type, start_stabs): Ditto.
12401 * symfile.c (init_filename_language_table): Ditto.
12402 (add_psymbol_with_dem_name_to_list): Ditto.
12403 * symtab.c (symbol_init_language_specific): Ditto.
12404 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12405 * symtab.h (struct general_symbol_info): Ditto.
12406 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12407 * typeprint.c (typedef_print): Ditto.
12408 * utils.c (fprintf_symbol_filtered): Ditto.
12409 * valops.c (value_cast, search_struct_field, value_slice): Delete
12411 (varying_to_slice): Delete function.
12412 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12413 (varying_to_slice): Delete declaration.
12414 * MAINTAINERS: Update.
12416 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12418 * configure.in: Reorganize "Checks for library functions section"
12419 a bit. Remove check for `btowc' and `isascii' functions.
12420 * configure: Regenerated.
12422 * acconfig.h (_MSE_INT_H): Remove.
12423 * configure.in: Create "Checks for header files" section, and move
12424 appropriate tests there. Don't check for objlist.h, wchar.h,
12425 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12426 misdetection fix. Also add "Checks for types", "Checks for
12427 compiler characteristics" and "Checks for library functions"
12429 * config.in, configure: Regenerated.
12431 * configure.in: Create "Checks for programs" section, and move
12432 appropriate tests there.
12434 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12436 * configure.in: Create "Checks for libraries" section, and move
12437 appropriate tests there. Cleanup check for wctype in libw. Use
12438 AC_SEARCH_LIBS to see whether we need libsocket.
12439 * configure: Regenerated.
12441 For older changes see ChangeLog-2002
12447 version-control: never