1 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
3 * sh-tdep.c (struct frame_extra_info): Remove.
4 (struct sh_frame_cache): New structure.
5 (GET_SOURCE_REG): New macro extracting source register of an opcode.
6 (GET_TARGET_REG): Ditto but target register.
7 (GET_PUSHED_REG): Remove.
8 (IS_MOV_ARG_TO_REG): New macro.
9 (IS_MOV_ARG_TO_IND_R14): New macro.
10 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
11 (IS_MOVW_PCREL_TO_REG): New macro.
12 (IS_MOVL_PCREL_TO_REG): New macro.
13 (IS_SUB_REG_FROM_SP): New macro.
15 (IS_MOV_TO_R14): Remove.
16 (IS_RESTORE_FP): New macro.
19 (IS_MOV_FP_SP): New macro.
20 (IS_ADD_REG_TO_FP): New macro.
21 (IS_ADD_IMM_FP): New macro.
22 (sh_skip_prologue_hard_way): Remove.
23 (sh_saved_pc_after_call): Remove.
24 (sh_frame_chain): Remove.
25 (sh_find_callers_reg): Remove.
26 (sh_nofp_frame_init_saved_regs): Remove.
27 (sh_fp_frame_init_saved_regs): Remove.
28 (sh_init_extra_frame_info): Remove.
29 (sh_analyze_prologue): New function.
30 (sh_skip_prologue): Remove deprecated code. Rely on new function
31 sh_analyze_prologue when after_prologue fails.
32 (sh_frame_saved_pc): Remove.
33 (sh_alloc_frame_cache): New function.
34 (sh_frame_cache): Ditto.
35 (sh_frame_prev_register): Ditto.
36 (sh_frame_this_id): Ditto.
37 (sh_frame_unwind): New structure defining the heuristic frame
39 (sh_frame_sniffer): New function.
40 (sh_unwind_sp): Ditto.
41 (sh_unwind_pc): Ditto.
42 (sh_unwind_dummy_id): Ditto.
43 (sh_frame_base_address): Ditto.
44 (sh_frame_base): New structure defining new frame base code.
45 (sh_in_function_epilogue_p): New function.
46 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
47 code and to call all new code instead. Initialize dwarf2 and
48 heuristic frame sniffer.
50 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
52 * parser-defs.h (struct exp_descriptor): New definition, containing
53 language-specific info for printing, prefixifying, dumping, and
54 evaluating expressions.
55 (exp_descriptor_standard): Declare new variable.
56 (print_subexp): Make global and declare here (from expprint.c).
58 (dump_subexp_body_standard): Declare.
59 (operator_length_standard): Declare.
60 (op_name_standard): Declare.
61 (print_subexp): Declare.
62 (print_subexp_standard): Declare.
64 * language.h (struct language_defn): Add la_exp_desc field to hold
65 pointer to table for language-specific operators.
66 Remove evaluate_exp field, which is now in struct exp_descriptor.
68 * parse.c (operator_length): Move most code to new
69 operator_length_standard function. Use language-specific information.
70 (operator_length_standard): New function taking most code from
72 (exp_descriptor_standard): New constant.
74 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
77 * expprint.c (print_subexp): Use language-specific print_subexp.
78 Make global; remove static declaration.
79 Move most code to print_subexp_standard.
80 (print_subexp_standard): New function, containing code formerly in
82 (op_name): Add expression to argument signature.
83 Use langauge-specific op_name.
84 Move most code to op_name_standard.
85 (op_name_standard): New function, containing code formerly in op_name.
86 (dump_subexp): Use new version of op_name function.
87 Use language-specific dump_subexp_body, and move most existing code to
88 dump_subexp_body_standard.
89 (dump_raw_expression): Use new op_name interface.
90 (dump_subexp_body): Move most code to dump_subexp_body_standard.
91 (dump_subexp_body_standard): New function, containing code formerly
94 * language.c (unknown_language): Add default la_exp_desc field and
95 remove evaluate_exp field.
96 (auto_language): Ditto.
97 (local_language): Ditto.
98 * f-lang.c (f_language_defn): Ditto.
99 * c-lang.c (c_language_defn): Ditto.
100 (cplus_language_defn): Ditto.
101 (asm_language_defn): Ditto.
102 (minimal_language_defn): Ditto.
103 * p-lang.c (pascal_language_defn): Ditto.
104 * m2-lang.c (m2_language_defn): Ditto.
105 * objc-lang.c (objc_language_defn): Ditto.
107 * jv-lang.c (exp_descriptor_java): New variable, containing
108 Java-specific expression evaluator.
109 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
111 * scm-lang.c (exp_descriptor_scm): New variable, containing
112 Scheme-specific expression evaluator.
113 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
115 * objc-lang.c (print_object_command): Take evaluate_exp from the
118 * Makefile.in (eval.o): Add dependency on parser-defs.h.
120 * eval.c: Include parser-defs.h for the full declaration of
122 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
124 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
126 * parser-defs.h (operator_length): Declare.
128 * parse.c (length_of_subexp): Use operator_length to get operator
129 lengths and arities for operators.
130 Move most code to new operator_length function.
131 (operator_length): New function absorbing most code from
133 (prefixify_subexp): Remove large case and use operator_length instead.
134 (parse_exp_1): Use renamings:
135 dump_prefix_expression => dump_raw_expression and
136 dump_postfix_expression => dump_prefix_expression.
138 * expression.h (dump_prefix_expression): Rename to ...
139 (dump_raw_expression): New name.
140 (dump_postfix_expression): Rename to ...
141 (dump_prefix_expression): New name.
143 * expprint.c (dump_subexp): Make global. Add comment.
144 Move most existing code to dump_subexp_body.
145 (dump_subexp_body): New function.
146 (dump_prefix_expression): Rename to dump_raw_expression.
147 Remove attempt to print the expression via print_expression: it can't
148 work before the expression is prefixified.
149 (dump_raw_expression): Renamed from dump_prefix_expression.
150 (dump_postfix_expression): Rename to dump_prefix_expression, since
152 Remove 'note' parameter, since this routine must be used on
153 prefixified expression.
154 (dump_prefix_expression): Renamed from dump_postfix_expression.
156 2003-09-22 Jim Blandy <jimb@redhat.com>
158 * dwarf2read.c (read_array_type): When building the type for an
159 array of unspecified length, make sure to choose the upper bound
160 so that the array's total length comes out to be zero --- that's
161 how we represent such arrays.
163 2003-09-22 Michael Chastain <mec@shout.net>
165 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
167 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
169 * top.c (quit_force): Fix indirect call to quit_target so
170 a struct qt_args pointer is passed.
172 2003-09-22 Andrew Cagney <cagney@redhat.com>
174 * arch-utils.h (init_frame_pc_noop): Delete declaration.
175 * arch-utils.c (init_frame_pc_noop): Delete function.
176 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
178 * mips-tdep.c (mips_gdbarch_init): Ditto.
179 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
180 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
182 (DEPRECATED_INIT_FRAME_PC): Delete macro.
183 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
185 (DEPRECATED_INIT_FRAME_PC): Delete macro.
187 2003-09-22 Anthony Green <green@redhat.com>
189 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
192 2003-09-20 Andrew Cagney <cagney@redhat.com>
194 * breakpoint.c: Eliminate ARGSUSED.
195 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
196 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
197 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
198 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
199 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
200 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
201 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
202 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
203 * wince.c, remote-vx.c: Ditto.
205 * cli/cli-script.c: Remove "register" attributes.
206 * config/pa/tm-hppa.h: Ditto.
207 * cli/cli-decode.c: Ditto.
208 * cli/cli-cmds.c: Ditto.
210 2003-09-19 Andrew Cagney <cagney@redhat.com>
212 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
213 DEPRECATED_NPC_REGNUM.
214 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
216 2003-09-19 Christopher Faylor <cgf@redhat.com>
218 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
220 2003-09-19 Jim Blandy <jimb@redhat.com>
222 * macrotab.c (macro_include): Use the correct comparison to find
223 the appropriate place for this inclusion in the list.
225 2003-09-19 Andrew Cagney <cagney@redhat.com>
227 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
228 (DEPRECATED_HPUX_TEXT_END): Define.
229 (deprecated_hpux_text_end): Declare.
230 (struct target_ops): Declare opaque.
231 * hppah-nat.c (text_end): Make static.
232 (deprecated_hpux_text_end): New function.
233 * exec.c (text_end): Delete global variable.
234 (NEED_TEXT_START_END): Do not define.
235 (exec_file_attach): Replace code computing "text_end" code with
236 call to DEPRECATED_HPUX_TEXT_END.
238 2003-09-19 Andrew Cagney <cagney@redhat.com>
240 * utils.c (align_up, align_down): New functions.
241 * defs.h (align_up, align_down): Declare.
242 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
243 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
245 (round_up, round_down): Delete functions.
246 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
248 (ROUND_DOWN, ROUND_UP): Delete macros.
249 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
250 * h8300-tdep.c: Replace "round_up" and "round_down" with
251 "align_up" and "align_down".
252 (round_up, round_down): Delete macros.
253 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
255 (ROUND_UP, ROUND_DOWN): Delete macros.
257 2003-09-18 J. Brobecker <brobecker@gnat.com>
259 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
260 hard-coded constant. Use the proper machine name instead.
262 2003-09-17 Andrew Cagney <cagney@redhat.com>
264 * sparc-tdep.c (legacy_register_name): Delete function.
265 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
266 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
267 * infcmd.c (gdb_register_name): Delete variable.
268 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
269 REGISTER_NAME and "tm.h".
270 * gdbarch.h, gdbarch.c: Regenerate.
271 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
272 REGISTER_NAMES in comments.
273 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
274 * m68klinux-nat.c (regmap): Ditto.
276 2003-09-17 Jim Blandy <jimb@redhat.com>
278 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
280 2003-09-17 Andrew Cagney <cagney@redhat.com>
282 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
283 (ppcnbsd_init_abi): Set "use_struct_convention" to
284 "ppcnbsd_use_struct_convention".
286 2003-09-17 Mark Kettenis <kettenis@gnu.org>
288 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
289 * gdbarch.h, gdbarch.c: Regenerate.
290 (stabs_argument_has_addr): New architecture method.
291 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
292 * arch-utils.c: Include "buildsym.h".
293 (default_stabs_argument_has_addr): New function.
294 * stabsread.c (define_symbol): Use stabs_argument_has_addr
295 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
297 2003-09-17 Andrew Cagney <cagney@redhat.com>
299 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
300 * gdbarch.h, gdbarch.c: Regenerate.
301 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
302 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
303 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
304 * sparcnbsd-tdep.c: Update.
306 2003-09-17 Andrew Cagney <cagney@redhat.com>
308 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
309 * gdbarch.h, gdbarch.c: Regenerate.
310 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
311 * d10v-tdep.c, frame.c: Update.
312 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
313 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
314 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
315 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
316 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
317 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
318 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
319 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
320 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
321 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
322 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
323 * config/pa/nm-hppah.h: Update.
325 2003-09-16 Andrew Cagney <cagney@redhat.com>
327 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
328 "use_struct_convention" to "ppc_linux_use_struct_convention".
329 (ppc_linux_use_struct_convention): New function.
330 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
331 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
332 "rs6000_use_struct_convention".
333 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
335 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
338 2003-09-16 Andrew Cagney <cagney@redhat.com>
340 * buildsym.c: Remove more occurances of "register".
341 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
342 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
343 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
344 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
345 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
346 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
347 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
348 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
350 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
352 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
353 numbers to enumeration values.
354 * sh-tdep.c: Accomodate above change.
355 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
356 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
357 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
358 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
359 (IS_FPUSH): Rename from IS_FMOV.
360 (sh_extract_struct_value_address): Remove useless comment.
361 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
362 instead of own local values.
363 (sh_dump_tdep): Remove.
364 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
365 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
367 2003-09-15 Andrew Cagney <cagney@redhat.com>
369 * doublest.c (convert_floatformat_to_doublest): No longer need to
370 cast "exp_bias" to an int. Reverts 2002-12-04 change.
372 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
374 * values.c (unpack_double): Call floatformat_is_valid.
376 2003-09-15 Mark Kettenis <kettenis@gnu.org>
378 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
379 ps_strings into a long.
381 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
382 _initialize_am64fbsd_nat.
384 2003-09-15 Kevin Buettner <kevinb@redhat.com>
386 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
387 associated with DW_AT_ranges attribute is out of bounds.
389 2003-09-15 David Lecomber <dsl@sources.redhat.com>
391 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
393 2003-09-14 Michael Chastain <mec@shout.net>
395 * config/m68k/nm-apollo68v.h: Delete.
396 * config/m68k/xm-apollo68v.h: Delete.
398 2003-09-14 Andrew Cagney <cagney@redhat.com>
400 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
401 * dcache.c: Update copyrights and descriptions.
402 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
404 2003-09-14 Andrew Cagney <cagney@redhat.com>
406 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
407 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
409 2003-09-14 Andrew Cagney <cagney@redhat.com>
411 * alpha-nat.c: Remove some occurances of "register".
412 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
413 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
414 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
415 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
416 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
417 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
418 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
419 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
420 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
421 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
422 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
423 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
424 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
425 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
426 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
427 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
428 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
429 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
430 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
431 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
432 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
433 * values.c, vax-tdep.c, xcoffread.c: Ditto.
435 2003-09-13 Andrew Cagney <cagney@redhat.com>
437 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
438 * ppc-tdep.h (struct regcache): Declare opaque.
439 * objfiles.h (struct objfile_data): Declare opaque.
440 * cp-support.h (struct objfile): Declare opaque.
441 * linux-nat.h (target_waitstatus): Declare opaque.
443 2003-09-14 Mark Kettenis <kettenis@gnu.org>
445 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
446 (stabs_argument_has_addr): New architecture method.
447 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
448 * arch-utils.c: Include "buildsym.h".
449 (default_stabs_argument_has_addr): New function.
450 * stabsread.c (define_symbol): Use stabs_argument_has_addr
451 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
453 * cris-tdep.c (cris_gdbarch_init): Set
454 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
455 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
456 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
457 * mips-tdep.c (mips_gdbarch_init): Likewise.
458 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
459 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
461 2003-09-13 Andrew Cagney <cagney@redhat.com>
463 * values.c (using_struct_return): Delete "function" and "funcaddr"
465 * value.h (using_struct_return): Update declaration.
466 * infcmd.c (finish_command_continuation): Update.
467 (finish_command): Update.
468 * infcall.c (call_function_by_hand): Update.
469 * eval.c (evaluate_subexp_standard): Update.
471 2003-09-13 Christopher Faylor <cgf@redhat.com>
473 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
474 SSE registers since gdb will not operate correctly without this.
475 Restore include file ordering munged in previous change.
476 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
478 2003-09-13 Mark Kettenis <kettenis@gnu.org>
480 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
482 * gdbarch.c, gdbarch.h: Updated.
483 * infcall.c (call_function_by_hand): Update.
484 * stabsread.c (define_symbol): Updated.
486 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
488 2003-09-12 Christopher Faylor <cgf@redhat.com>
490 * win32-nat.c: Reorganize so that defines used by target headers are
491 actually defined by the system headers.
492 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
493 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
495 2003-09-12 Jim Blandy <jimb@redhat.com>
497 * dbxread.c (read_dbx_symtab): Don't report an internal error if
498 the file has no .data, .bss, or .rodata sections. Instead wait
499 until we see a variable alleged to live in one of those sections.
501 * dbxread.c (read_dbx_symtab): If we have no .data section and no
502 .bss section, presume that any variables we find live in the
505 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
506 offsets for global and static variables.
508 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
509 symbol types are, by definition, in the .data section, so it is
510 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
511 If there is no .data section, there should be no N_DATA or N_DATA
514 2003-09-12 Mark Kettenis <kettenis@gnu.org>
516 * amd64fbsd-tdep.c: Fix sigtramp recognition.
517 (amd64fbsd_sigcontext_addr): Rewrite.
518 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
520 (amd64fbsd_sc_reg_offset): Initialize with correct values.
521 (amd64fbsd_init_abi): Fix typo.
523 2003-09-12 Andrew Cagney <cagney@redhat.com>
525 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
526 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
528 2003-09-12 Andrew Cagney <cagney@redhat.com>
530 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
531 "entry_file_highpc". Update comments.
532 * defs.h (deprecated_inside_entry_file): Rename
534 * blockframe.c (deprecated_inside_entry_file): Rename
536 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
537 * vax-tdep.c (vax_frame_chain): Update.
538 * sh64-tdep.c (sh64_frame_chain): Update.
539 * sh-tdep.c (sh_frame_chain): Update.
540 * rs6000-tdep.c (rs6000_frame_chain): Update.
541 * ns32k-tdep.c (ns32k_frame_chain): Update.
542 * mips-tdep.c (mips_frame_chain): Update.
543 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
544 * m32r-tdep.c (m32r_frame_this_id): Update.
545 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
546 * frv-tdep.c (frv_frame_this_id): Update.
547 * d10v-tdep.c (d10v_frame_this_id): Update.
548 * cris-tdep.c (cris_frame_chain): Update.
549 * blockframe.c (legacy_frame_chain_valid): Update.
550 * avr-tdep.c (avr_frame_this_id): Update.
551 * arm-tdep.c (arm_prologue_this_id): Update.
552 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
553 * objfiles.c (objfile_relocate): Update.
554 * mipsread.c (mipscoff_symfile_read): Update.
555 (mipscoff_symfile_read): Update.
556 * mdebugread.c (parse_partial_symbols): Update.
557 * dwarfread.c (read_file_scope): Update.
558 * dwarf2read.c (read_file_scope): Update.
559 * dbxread.c (read_dbx_symtab): Update.
560 (read_dbx_symtab): Update.
561 * coffread.c (complete_symtab): Update.
563 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
565 * top.c (quit_target): New static helper function.
566 (quit_force): Moved code to quit_target(). Call quit_target()
567 via catch_errors() to catch errors during quit.
569 2003-09-11 David Carlton <carlton@kealia.com>
571 * buildsym.c (finish_block): Use allocate_block to allocate the
573 * mdebugread.c (new_block): Add FIXME.
575 2003-09-11 David Carlton <carlton@kealia.com>
577 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
578 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
579 (recursive_dump_type): Ditto.
580 * printcmd.c (print_formatted): Ditto.
581 * typeprint.c (print_type_scalar): Ditto.
582 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
583 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
584 * cp-support.h: Declare cp_check_possible_namespace_symbols,
585 maint_cplus_cmd_list.
586 * cp-support.c: Make maint_cplus_cmd_list extern.
587 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
589 (lookup_symbol_file): Look in possible namespace blocks when
591 (initialize_namespace_symtab): New.
592 (get_possible_namespace_block, free_namespace_block)
593 (check_possible_namespace_symbols)
594 (check_possible_namespace_symbols_loop)
595 (check_one_possible_namespace_symbol)
596 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
597 (_initialize_cp_namespace): Ditto.
598 * block.h: Declare allocate_block.
599 * block.c (allocate_block): New.
600 * jv-lang.c (get_java_class_symtab): Allocate blocks via
602 * symfile.h: Update declaration of add_psymbol_to_list.
603 * symfile.c (add_psymbol_to_list): Return the partial symbol in
605 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
606 scan_partial_symbols_call.
607 (scan_partial_symbols): Add NAMESPACE argument; update calls to
609 (add_partial_symbol): If necessary, scan mangled names for names
611 (add_partial_namespace): Add NAMESPACE argument; generate partial
612 symbols associated to namespaces.
613 (add_partial_enumeration): Add NAMESPACE argument.
614 (new_symbol): Allow namespace syms.
615 (read_namespace): Generate namespace syms.
616 * objfiles.h: Add opaque declaration of struct symtab.
617 (struct objfile): Add cp_namespace_symtab member.
618 * objfiles.c (allocate_objfile): Set
619 objfile->cp_namespace_symtab.
620 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
621 dictionary_h, command_h.
623 2003-09-11 Andrew Cagney <cagney@redhat.com>
625 * rs6000-tdep.c (rs6000_push_dummy_call): Use
626 regcache_raw_write_signed to set SP_REGNUM, move the operation to
627 near the function's end.
628 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
629 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
630 regcache_raw_write_signed to set SP_REGNUM.
632 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
634 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
635 orig_addrs is set up properly.
637 2003-09-11 Andrew Cagney <cagney@redhat.com>
639 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
640 * gdbarch.h, gdbarch.c: Re-generate.
641 * infcall.c (call_function_by_hand): Update.
642 * hppa-tdep.c (hppa_push_arguments): Update.
643 * ada-lang.c (place_on_stack): Update.
644 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
645 * sparc-tdep.c (sparc_gdbarch_init): Update.
646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
647 * hppa-tdep.c (hppa_gdbarch_init): Update.
648 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
651 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
653 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
654 register do need a frame.
656 2003-09-11 Andrew Cagney <cagney@redhat.com>
658 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
659 buildable since GDB 5.0.
660 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
661 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
662 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
663 * irix4-nat.c: Delete file.
664 * config/mips/irix4.mh: Delete file.
665 * config/mips/irix3.mh: Delete file.
666 * config/mips/irix3.mt: Delete file.
667 * config/mips/tm-irix3.h: Delete file.
668 * config/mips/nm-irix3.h: Delete file.
669 * config/mips/xm-irix3.h: Delete file.
670 * config/mips/nm-irix4.h: Delete file.
671 * config/mips/xm-irix4.h: Delete file.
672 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
674 2003-09-10 J. Brobecker <brobecker@gnat.com>
676 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
677 * Makefile.in (hppa-tdep.o): Update dependencies.
679 2003-09-10 James E Wilson <wilson@specifixinc.com>
681 * MAINTAINERS: Change my e-mail address. Move to paper trail
684 2003-09-10 Kevin Buettner <kevinb@redhat.com>
686 * MAINTAINERS (frv): New ISA entry.
688 2003-09-10 Kevin Buettner <kevinb@redhat.com>
690 * frv-tdep.c (dis-asm.h): Include.
691 * Makefile.in (frv-tdep.o): Update dependencies.
693 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
695 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
696 Fix typo for high range of floating registers.
698 2003-09-09 David Carlton <carlton@kealia.com>
700 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
701 highpc initialization here out of scan_partial_symbols.
702 (scan_partial_symbols): Restructure into a recursive version,
703 calling add_partial_namespace and add_partial_enumeration when
705 (add_partial_namespace): New.
706 (add_partial_enumeration, locate_pdi_sibling): Ditto.
708 2003-09-09 Andrew Cagney <cagney@redhat.com>
710 * rs6000-tdep.c (ppc_push_return_address): Delete function.
711 (rs6000_push_dummy_call): Set LR to BP_ADDR.
712 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
713 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
715 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
716 (rs6000_push_dummy_call): Set the "TOC" register.
718 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
719 methods "max_register_raw_size", "max_register_virtual_size" or
720 "register_virtual_size".
722 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
724 * MAINTAINERS: Update my e-mail address.
726 2003-09-09 Andrew Cagney <cagney@redhat.com>
728 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
729 (rs6000_push_dummy_call): Store the struct return address.
730 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
732 2003-09-09 Andrew Cagney <cagney@redhat.com>
734 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
735 "ppc_sysv_abi_push_arguments".
736 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
737 "ppc_sysv_abi_push_arguments".
738 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
739 instead of "push_arguments".
740 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
742 2003-09-09 Andrew Cagney <cagney@redhat.com>
744 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
745 instead of CALL_DUMMY_ADDRESS.
747 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
749 * p-lang.c: Eliminate "register".
758 * objc-lang.c: Ditto.
760 2003-09-09 Nick Clifton <nickc@redhat.com>
762 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
764 2003-09-04 Andrew Cagney <cagney@redhat.com>
766 * avr-tdep.c: Include "dis-asm.h".
767 * cris-tdep.c: Include "dis-asm.h".
768 (cris_delayed_get_disassembler): Use "struct disassemble_info"
769 instead of corresponding typedef.
770 * h8300-tdep.c: Include "dis-asm.h".
771 * ia64-tdep.c: Include "dis-asm.h".
772 * i386-tdep.c: Include "dis-asm.h".
773 (i386_print_insn): Use "struct disassemble_info" instead of
774 corresponding typedef.
775 * m68k-tdep.c: Include "dis-asm.h".
776 * mcore-tdep.c: Include "dis-asm.h".
777 * mips-tdep.c: Include "dis-asm.h".
778 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
779 instead of corresponding typedef.
780 * ns32k-tdep.c: Include "dis-asm.h".
781 * s390-tdep.c: Include "dis-asm.h".
782 * sparc-tdep.c: Include "dis-asm.h".
783 * vax-tdep.c: Include "dis-asm.h".
784 * v850-tdep.c: Include "dis-asm.h".
785 * mn10300-tdep.c: Include "dis-asm.h".
786 * rs6000-tdep.c: Include "dis-asm.h".
787 * xstormy16-tdep.c: Include "dis-asm.h".
788 (_initialize_xstormy16_tdep): Delete "extern" declaration of
789 print_insn_xstormy16.
790 * Makefile.in (v850-tdep.o): Update dependencies.
791 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
792 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
793 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
794 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
795 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
796 (gdbarch_h): Remove $(dis_asm_h).
797 * disasm.c: Include "dis-asm.h".
798 (dis_asm_read_memory): Use "struct disassemble_info" instead of
799 corresponding typedef.
800 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
801 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
802 * gdbarch.sh: Do not include "dis-asm.h".
803 (struct disassemble_info): Declare opaque.
804 (TARGET_PRINT_INSN): Update declaration.
805 * gdbarch.h, gdbarch.c: Re-generate.
807 2003-09-08 Andrew Cagney <cagney@redhat.com>
809 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
810 CALL_DUMMY_ADDRESS, change to a predicate.
811 * gdbarch.h, gdbarch.c: Re-generate.
812 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
813 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
814 * infcall.c (call_function_by_hand): Ditto.
815 * sparc-tdep.c (sparc_push_return_address): Ditto.
816 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
817 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
818 CALL_DUMMY_ADDRESS with entry_point_address.
819 * v850-tdep.c (v850_push_return_address): Ditto.
820 * s390-tdep.c (s390_push_return_address): Ditto.
821 * rs6000-tdep.c (ppc_push_return_address): Ditto.
822 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
823 * mcore-tdep.c (mcore_push_return_address): Ditto.
824 * cris-tdep.c (cris_push_return_address): Ditto.
825 * arm-tdep.c (arm_push_return_address): Ditto.
827 2003-09-08 Andrew Cagney <cagney@redhat.com>
829 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
830 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
831 and REG_UNMODIFIED to REG_SAME_VALUE.
832 (execute_cfa_program): Update.
833 (dwarf2_frame_cache): Update. Initialize table to
834 REG_UNSPECIFIED, complain if CFI fails to specify a register's
836 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
838 2003-09-08 Andrew Cagney <cagney@redhat.com>
840 * gnu-nat.c: Remove "inline" function attribute.
841 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
843 2003-09-08 Kevin Buettner <kevinb@redhat.com>
845 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
848 2003-09-08 Kevin Buettner <kevinb@redhat.com>
850 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
851 (frame_extra_info): Rename this struct to frv_unwind_cache.
852 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
853 Add fields ``prev_sp'' and ``base''.
854 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
855 (frv_saved_pc_after_call, frv_init_extra_frame_info)
856 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
858 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
859 Revise all callers. Fill in the unwind cache argument and make
860 other adjustments to account for new frame mechanisms.
861 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
862 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
863 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
864 (frv_frame_unwind, frv_frame_base): New structs.
865 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
866 additional arguments expected by this method and adjust function
868 (frv_gdbarch_init): Remove calls to the following functions:
869 set_gdbarch_deprecated_init_frame_pc(),
870 set_gdbarch_deprecated_saved_pc_after_call(),
871 set_gdbarch_deprecated_frame_chain(),
872 set_gdbarch_deprecated_frame_saved_pc(),
873 set_gdbarch_deprecated_frame_init_saved_regs(),
874 set_gdbarch_deprecated_push_arguments(),
875 set_gdbarch_deprecated_push_return_address(),
876 set_gdbarch_deprecated_pop_frame(),
877 set_gdbarch_deprecated_call_dummy_words(),
878 set_gdbarch_deprecated_sizeof_call_dummy_words(),
879 set_gdbarch_deprecated_init_extra_frame_info(),
880 set_gdbarch_deprecated_dummy_write_sp(), and
881 set_gdbarch_deprecated_pc_in_call_dummy().
882 Add calls to the following functions:
883 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
884 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
885 frame_base_set_default().
886 * Makefile.in (frv-tdep.o): Update dependencies.
888 2003-09-09 Mark Kettenis <kettenis@gnu.org>
890 * dwarf2-frame.c (read_encoded_value): Add support for
891 DW_EH_PE_aligned encoding.
893 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
895 * infrun.c (normal_stop): Don't print a message if the inferior
898 2003-09-08 Jim Blandy <jimb@redhat.com>
900 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
901 * dbxread.c: #include "gdb_assert.h".
902 (read_dbx_symtab): If the objfile has no .data section, use the
903 section index for the .bss section instead.
905 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
907 * frame.c (deprecated_safe_get_selected_frame): New function.
908 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
909 * findvar.c (read_var_value): Call it.
911 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
913 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
914 (sh64-tdep.o): Add dependencies.
915 * configure.tgt: Add FIXME to sh-*-linux*.
916 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
917 (sh_gdbarch_init): Always set correct sh_show_regs function
918 pointer. Call sh64_gdbarch_init() if machine type is sh5.
919 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
920 * sh64-tdep.c: New file, containing all sh64 related code from
922 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
923 * config/sh/linux.mt (TDEPFILES): Ditto.
924 * config/sh/nbsd.mt (TDEPFILES): Ditto.
925 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
926 * config/sh/wince.mt (TDEPFILES): Ditto.
928 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
930 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
931 (stop_wait_callback): Handle !lp->signalled also.
932 (lin_lwp_has_pending, flush_callback): New functions.
933 (lin_lwp_wait): Call flush_callback.
934 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
935 (linux_proc_pending_signals): New function.
936 * linux-nat.h (linux_proc_pending_signals): Add prototype.
938 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
940 From Nick Kelsey <nickk@ubicom.com>:
941 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
942 when the stop PC is at the beginning of a function also.
944 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
946 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
947 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
949 2003-09-06 Mark Kettenis <kettenis@gnu.org>
951 * sol-thread.c: Include "gdb_string.h".
953 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
955 * gcore.c: Reorder include files in alphabetical order. Include
956 "gdb_assert.h". Various coding style fixes.
957 (derive_stack_segment, derive_heap_segment): Replace check for
958 non-null BOTTOM and TOP with gdb_assert.
959 (derive_heap_segment): Replace check for successful creation of
960 ZERO with gdb_assert.
961 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
963 2003-09-04 Andrew Cagney <cagney@redhat.com>
965 * thread-db.c (verbose_dlsym): New function.
966 (thread_db_load): Use verbose_dlsym
967 (thread_db_new_objfile): Print that libthread_db was loaded, and
968 that thread debugging was enabled.
970 2003-09-04 Andrew Cagney <cagney@redhat.com>
972 * configure.tgt: Add "mips64*-*-*" target. Delete
973 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
974 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
975 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
976 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
977 mips*-sony-*, and mips64*-*-elf* targets.
978 * config/mips/embedl.mt: Delete file.
979 * config/mips/embedl64.mt: Delete file.
980 * config/mips/mips.mt: Delete file.
981 * config/mips/mips64.mt: Delete file.
982 * config/mips/tm-embed.h: Delete file.
983 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
984 * config/mips/embed64.mt: Delete out-of-date comment.
986 2003-09-04 Andrew Cagney <cagney@redhat.com>
988 * hppa-tdep.c (hppa_gdbarch_init): Set
989 "have_nonsteppable_watchpoint".
990 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
991 * mips-tdep.c (mips_dump_tdep): Do not print
992 HAVE_NONSTEPPABLE_WATCHPOINT.
993 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
994 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
995 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
996 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
998 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1000 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1001 unused code. Add comment.
1003 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1005 * breakpoint.c (watchpoint_check): Check for pc being in an
1006 epilogue if watchpoint frame couldn't be found.
1008 2003-09-04 Andrew Cagney <cagney@redhat.com>
1010 * Makefile.in: Re-generate all dependencies.
1012 2003-09-03 Andrew Cagney <cagney@redhat.com>
1014 * arch-utils.h (legacy_print_insn): Delete declaration.
1015 * arch-utils.c (legacy_print_insn): Delete function.
1016 * disasm.c (deprecated_tm_print_insn_info): Delete.
1017 (_initialize_disasm): Delete function, contained code initializing
1018 deprecated_tm_print_insn_info.
1019 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1020 (deprecated_tm_print_insn_info): Delete.
1021 (TARGET_PRINT_INSN): Do not provide a default.
1022 * gdbarch.h, gdbarch.c: Re-generate.
1024 2003-09-03 Andrew Cagney <cagney@redhat.com>
1026 * disasm.c (fprintf_disasm): New function.
1027 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1028 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1029 reverts 2003-08-14 change.
1030 (_initialize_disasm): Call "init_disassemble_info", instead of
1031 INIT_DISASSEMBLE_INFO_NO_ARCH.
1033 2003-09-03 Michael Snyder <msnyder@redhat.com>
1035 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1037 2003-09-03 Andrew Cagney <cagney@redhat.com>
1039 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1040 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1041 * symfile.c (syms_from_objfile): Update.
1042 (reread_symbols): `Update
1043 * exec.c (exec_file_attach): Update.
1044 (exec_file_attach): Update.
1045 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1047 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1049 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1051 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1053 (arm_get_cache): Delete macro.
1054 (struct arm_prologue_cache): Update comments. Make saved_regs into
1055 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1057 (thumb_scan_prologue): Update for cache changes. Don't call
1058 DEPRECATED_PC_IN_CALL_DUMMY.
1059 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1060 argument and use it in desperation search for our prologue. Do not
1061 search past the specified PC.
1062 (arm_make_prologue_cache): Simplify.
1064 (arm_prologue_this_id, arm_prologue_prev_register)
1065 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1066 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1067 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1068 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1069 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1071 (arm_frame_chain_valid, arm_find_callers_reg)
1072 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1073 (arm_pop_frame): Delete obsolete methods.
1074 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1076 (arm_gdbarch_init): Update for new frame methods. Register prologue
1077 and sigtramp unwinders. Set the default frame base method.
1079 * Makefile.in (arm-tdep.o): Update dependencies.
1080 * varobj.c (find_frame_addr_in_frame_chain): Call
1081 get_frame_base_address.
1082 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1084 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1086 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1087 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1088 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1089 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1090 Take NEXT_FRAME and CACHE arguments. Call
1091 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1092 Set unwound_pc in CACHE instead of modifying the frame argument.
1093 Don't bother checking the frame type when looking for sigtramp
1095 (arm_make_prologue_cache, arm_frame_chain)
1096 (arm_init_extra_frame_info): New functions.
1098 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1100 * arm-tdep.c (arm_get_cache): Define.
1101 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1102 unwound_sp, unwound_pc, and saved_regs.
1103 (thumb_scan_prologue): Take a cache instead of the frame.
1104 (arm_scan_prologue): Likewise.
1105 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1106 instead of a temporary frame.
1107 (arm_init_extra_frame_info): Allocate and use a cache.
1108 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1110 2003-09-03 Andrew Cagney <cagney@redhat.com>
1112 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1113 * config/mips/wince.mt (TM_CLIBS): Ditto.
1114 * config/sh/wince.mt (TM_CLIBS): Ditto.
1115 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1116 * config/sparc/sp64.mt (CC): Delete.
1118 2003-09-03 Andrew Cagney <cagney@redhat.com>
1120 * defs.h: Do not include "arch-utils.h".
1121 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1122 GDB_MULTI_ARCH_PURE.
1123 * configure.in (GDB_MULTI_ARCH): Do not define.
1124 * configure, config.in: Regenerate.
1125 * configure.tgt: Do not set variable "gdb_multi_arch".
1126 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1127 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1128 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1129 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1130 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1131 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1132 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1133 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1134 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1135 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1136 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1137 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1138 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1139 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1140 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1141 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1142 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1143 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1145 2003-08-30 Michael Chastain <mec@shout.net>
1147 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1148 * config/m68k/nm-hp300hpux.h: Delete.
1149 * config/m68k/tm-hp300hpux.h: Delete.
1150 * config/m68k/xm-hp300hpux.h: Delete.
1151 * config/m68k/xm-hp300bsd.h: Delete.
1152 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1153 tm-hp300hpux.h, xm-hp300hpux.h.
1154 * somsolib.c: Remove comment about hp300 shared libraries.
1156 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1158 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1159 Only define PTRACE_GET_THREAD_AREA is not already defined.
1160 Various style fixes in code and comments and some additional
1161 spelling fixes in comments. Move after functions dealing with
1163 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1166 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1167 frame_unwind_register_unsigned instead of
1168 frame_unwind_unsigned_register.
1170 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1172 * configure.in: Search for gethostbyname in libnsl.
1173 * configure: Regenerated.
1175 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1177 * configure.in: Remove redundant AC_MSG_RESULT in check for
1178 uintptr_t in stdint.h.
1179 * configure: Regenerated.
1181 * amd64-nat.h (struct regcache): Add opaque declaration.
1183 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1184 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1185 Change "register array" to "register cache" in comments.
1186 (x86_64_linux_gregset64_reg_offset): New variable.
1187 (GETREGS_SUPPLIES): Remove macro.
1188 (supply_gregset): Call amd64_supply_native_gregset instead of
1189 x86_64_linux_supply_gregset.
1190 (fill_gregset): Rename `regno' to `regnum'. Call
1191 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1192 (store_regs): Rename `regno' to `regnum'.
1193 (store_fpregs): Rename `regno' to `regnum'.
1194 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1195 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1196 Reorganize function a bit.
1197 (store_inferior_registers): Rename `regno' to `regnum'. Use
1198 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1199 Reorganize function a bit.
1200 (_initialize_x86_64_linux_nat): New function.
1201 * config/i386/x86-64linux.mh.
1203 2003-08-29 Andrew Cagney <cagney@redhat.com>
1205 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1206 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1207 (target_remove_watchpoint): Delete macro.
1208 (target_insert_watchpoint): Delete macro.
1209 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1210 (remote_mips_stopped_by_watchpoint): Delete declaration.
1211 (remote_mips_remove_watchpoint): Delete declaration.
1212 (remote_mips_set_watchpoint): Delete declaration.
1213 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1214 * remote-mips.c (_initialize_remote_mips): Set
1215 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1216 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1217 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1218 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1219 (mips_stopped_by_watchpoint): Rename
1220 remote_mips_stopped_by_watchpoint.
1221 (mips_can_hardware_watchpoint): Rename
1222 remote_mips_can_use_hardware_watchpoint, update function
1225 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1227 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1228 USER_DS. We haven't given them a register number yet.
1230 * amd64-nat.h: New file.
1231 * amd64-nat.c: New file.
1232 * amd64fbsd-nat.c: Include "amd64-nat.h".
1233 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1234 (amd64fbsd32_r_reg_offset): New variable.
1235 (supply_gregset): Simply call amd64_supply_native_gregset.
1236 (fill_gregset): Rename `regno' to `regnum'. Simply call
1237 amd64_collect_native_gregset.
1238 (fill_fpregset): Rename `regno' to `regnum'.
1239 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1240 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1241 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1242 `fpregset_t'. Call amd64_supply_native_gregset instead of
1243 supply_gregset. Call x86_64_supply_fxsave instead of
1245 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1246 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1247 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1248 `fpregset_t'. Call amd64_collect_native_gregset instead of
1249 fill_gregset. Call x86_64_collect_fxsave instead of
1251 (_initialize_am64fbsd_nat): Initialize
1252 amd64_native_gregset32_reg_offset and
1253 amd64_native_gregset64_reg_offset.
1254 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1256 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1257 null pointer. Fix typo in comment.
1259 * regcache.c (supply_register): Reimplement to call
1260 regcache_raw_supply.
1261 (regcache_collect): Reimplement by calling regcache_raw_collect.
1263 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1265 * regcache.c (register_buffer): Consitify first argument.
1266 (regcache_raw_supply, regcache_raw_collect): New
1269 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1271 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1272 by Nathan J. Williams.
1274 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1276 * lin-lwp.c (wait_lwp): New function, copied from
1277 stop_wait_callback. Clean up.
1278 (stop_wait_callback): Use wait_lwp.
1280 2003-08-28 Andrew Cagney <cagney@redhat.com>
1282 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1283 flavour and disassembler options.
1284 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1285 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1286 deprecated_tm_print_insn_info.
1288 2003-08-27 Andrew Cagney <cagney@redhat.com>
1290 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1291 Use target_read_memory.
1292 (s390_get_frame_info): Update. Do not reference
1293 deprecated_tm_print_insn_info.
1294 (s390_check_function_end, s390_is_sigreturn): Ditto.
1296 2003-08-27 Andrew Cagney <cagney@redhat.com>
1298 * Makefile.in (cris-tdep.o): Update dependencies.
1299 * cris-tdep.c: Include "gdb_assert.h".
1300 (cris_gdbarch_init): Set print_insn.
1301 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1302 (cris_delayed_get_disassembler): Simplify, directly call the
1303 disassembler returned by cris_get_disassembler.
1304 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1305 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1306 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1307 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1308 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1309 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1310 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1311 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1312 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1313 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1314 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1315 (gdb_print_insn_sparc): Delete function.
1316 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1317 deprecated_tm_print_insn_info.
1318 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1319 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1320 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1322 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1323 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1324 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1325 (s390_gdbarch_init): Set print_insn.
1327 2003-08-27 Andrew Cagney <cagney@redhat.com>
1329 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1330 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1331 * infcall.c (call_function_by_hand): Convert the entry point
1332 address into a code address.
1334 2003-08-27 Andrew Cagney <cagney@redhat.com>
1336 * dsrec.c: Include "gdb_string.h".
1337 * Makefile.in (dsrec.o): Update dependencies.
1339 2003-08-27 Michael Chastain <mec@shout.net>
1341 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1343 2003-08-27 Andrew Cagney <cagney@redhat.com>
1345 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1346 (alpha_osf1_init_abi): Do not set call_dummy_address.
1348 2003-08-27 David Carlton <carlton@kealia.com>
1350 From Randolph Chung <tausq@debian.org>:
1351 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1352 compiles with -Wformat-nonliteral -Werror.
1354 2003-08-26 Jim Blandy <jimb@redhat.com>
1356 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1357 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1358 bfd_lookup_symbol, since we only want symbols in code sections.
1359 (look_for_base): Pass zero as the SECT_FLAGS argument to
1360 bfd_lookup_symbol, since we're not concerned about which section
1363 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1365 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1366 we are frameless or the return address register is already known.
1368 2003-08-26 Andrew Cagney <cagney@redhat.com>
1370 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1371 in size. Add comments.
1373 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1375 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1376 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1378 2003-08-26 Jason Merrill <jason@redhat.com>
1380 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1381 case out of #ifdef MIPS block.
1383 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1386 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1387 available before calling SECT_OFF_TEXT.
1388 * PROBLEMS: Remove description of java/1322.
1390 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1392 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1393 bof, and nat0-nat127 as pseudo-registers.
1394 (ia64_frame_cache): New struct used to cache frame info.
1395 (ia64_register_reggroup_p): New routine used to override default
1396 register grouping so registers without names are still saved and
1398 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1400 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1401 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1402 (ia64_alloc_frame_cache): New routine to create a new
1404 (examine_prologue): Change prototype to add next_frame pointer.
1405 Assume frameless until otherwise proven. Verify that the cfm for
1406 current frame matches the cfm that should occur for the prologues
1407 alloc insn and if equal, mark as not frameless. At end of routine,
1408 if not frameless, calculate registers for the previous frame and store
1409 in the cache, if a cache is provided.
1410 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1411 and pass 0 for next_frame.
1412 (ia64_store_return_value): Change to use convert_typed_floating()
1413 instead of calling ia64_convert_to_raw().
1414 (ia64_extract_return_value): Change to use convert_typed_floating()
1415 instead of calling ia64_convert_to_virtual().
1416 (ia64_frame_cache): New routine to support new frame model.
1417 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1418 (ia64_frame_sniffer): Ditto.
1419 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1420 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1421 (ia64_sigtramp_frame_prev_register): Ditto.
1422 (ia64_sigtramp_frame_sniffer): Ditto.
1423 (ia64_frame_base_address): Ditto.
1424 (ia64_extract_struct_value_address): Change to issue error message.
1425 (ia64_frame_align): New routine to align sp.
1426 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1427 (ia64_push_arguments): Removed. Logic moved to
1428 ia64_push_dummy_call().
1429 (ia64_push_return_address): Ditto.
1430 (ia64_unwind_dummy_id): New function.
1431 (ia64_unwind_pc): Ditto.
1432 (ia64_convert_register_p): Ditto.
1433 (ia64_register_to_value): Ditto.
1434 (ia64_value_to_register): Ditto.
1435 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1436 (ia64_register_byte, ia64_register_raw_size): Ditto.
1437 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1438 (ia64_saved_pc_after_call): Ditto.
1439 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1440 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1441 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1442 (ia64_register_convert_to_raw): Ditto.
1443 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1444 (ia64_init_extra_frame_info): Ditto.
1445 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1446 (ia64_gdbarch_init): Remove registering of deprecated functions that
1447 are no longer used. Add registration of new gdbarch functions.
1448 Remove registering deprecated_write_sp. Replace
1449 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1450 Delete set_gdbarch_deprecated_register_convertible(),
1451 set_gdbarch_deprecated_register_convert_to_virtual(), and
1452 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1453 set_gdbarch_deprecated_register_size(),
1454 set_gdbarch_deprecated_register_bytes(),
1455 set_gdbarch_pcregnum(),
1456 set_gdbarch_deprecated_register_byte(),
1457 set_gdbarch_deprecated_register_raw_size(),
1458 set_gdbarch_deprecated_max_register_raw_size(),
1459 set_gdbarch_deprecated_register_virtual_size(),
1460 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1461 Replace set_gdbarch_deprecated_extract_return_value() with
1462 set_gdbarch_extract_return_value(). Remove calls to:
1463 set_gdbarch_deprecated_saved_pc_after_call();
1464 set_gdbarch_deprecated_frame_chain(),
1465 set_gdbarch_deprecated_frame_saved_pc(),
1466 set_gdbarch_deprecated_frame_init_saved_regs(),
1467 set_gdbarch_deprecated_get_saved_register(),
1468 set_gdbarch_deprecated_call_dummy_words(),
1469 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1470 set_gdbarch_deprecated_init_extra_frame_info(),
1471 set_gdbarch_deprecated_frame_args_address(),
1472 set_gdbarch_deprecated_frame_locals_address(),
1473 and set_gdbarch_deprecated_dummy_write_sp().
1474 Add set_gdbarch_convert_register_p(),
1475 set_gdbarch_register_to_value(),
1476 set_gdbarch_value_to_register(),
1477 set_gdbarch_push_dummy_call(),
1478 set_gdbarch_frame_align(),
1479 set_gdbarch_unwind_dummy_id(),
1480 set_gdbarch_unwind_pc(),
1481 frame_unwind_append_sniffer(),
1482 frame_unwind_append_sniffer(),
1483 and frame_base_set_default().
1485 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1487 * configure.tgt: Document need for special "mipsisa64" handling.
1488 (mipsisa64*-*-linux64): Handle as target linux64.
1489 (mipsisa64*-*-*): Handle as target embed64.
1491 2003-08-18 Michael Chastain <mec@shout.net>
1493 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1496 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1498 * i387-tdep.h: Update copyright date.
1499 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1501 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1502 CFLAGS games to reflect reality.
1504 2003-08-24 Andrew Cagney <cagney@redhat.com>
1506 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1507 GDB_MULTI_ARCH is always non-zero.
1508 * osabi.c (_initialize_gdb_osabi): Ditto.
1509 (gdbarch_init_osabi): Ditto.
1510 * sparc-tdep.c: Ditto for #if code.
1512 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1514 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1516 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1518 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1519 x86_64_supply_fxsave.
1520 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1521 x86_64_supply_fxsave.
1522 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1523 x86_64_supply_fxsave.
1525 2003-08-23 Andreas Jaeger <aj@suse.de>
1527 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1530 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1532 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1533 i387_supply_register.
1534 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1535 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1537 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1539 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1541 * i386bsd-nat.c (supply_fpregset): Adjust call to
1543 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1544 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1546 (store_inferior_registers): Remove extraneous whitespace. Call
1547 i387_fill_fsave instead of fill_fpregset.
1548 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1549 (supply_fpregset): Likewise.
1550 * i386v4-nat.c (supply_fpregset): Adjust call to
1552 * i386-interix-nat.c (supply_fpregset): Adjust call to
1554 * i386-linux-nat.c (supply_fpregset): Adjust call to
1556 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1557 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1558 i387supply_fsave and i387_supply_fxsave.
1559 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1560 Incorporate code from `i387_supply_register.
1561 (i387_supply_register): Remove.
1562 (i387_supply_fxsave): Add `regnum' argument.
1564 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1566 (i387_supply_register): remove prototype.
1569 2003-08-22 Michael Chastain <mec@shout.net>
1571 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1572 Add lines for files in gdb/testsuite/gdb.cp/* that are
1573 still not 8.3 unique.
1575 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1577 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1578 TYPE_VPTR_FIELDNO is valid.
1580 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1582 * utils.c (set_width_command): Remove prototypes.
1583 (set_screen_size): New prototype.
1584 (init_page_info): Simplify by fetching the screen size from
1585 Readline. Call set_screen_size.
1586 (set_screen_size): New function.
1587 (set_width): Add missing whitespace in comment.
1588 (set_width_command): Call set_screen_size.
1589 (set_height_command): New function.
1590 (initialize_utils): Fix formatting. Make "set height" command
1591 call set_height_command. Remove redundant code that turns off
1592 pagination if output isn't a terminal. Remove redundant call to
1595 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1597 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1598 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1599 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1600 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1602 (sparc64_register_info): Give the reister with number
1603 SPARC64_STATE_REGNUM a name.
1604 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1606 (sparc64_push_dummy_call): Take BIAS into account when checking
1608 (sparc_software_single_step): Remove assertions that check whether
1609 NPC and NNPC were zero.
1610 (sparc_supply_rwindow): Make public. Merge functionality with
1611 sparc64_supply_rwindow.
1612 (sparc_fill_rwindow): Make public. Merge functionality with
1613 sparc64_fill_rwindow.
1614 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1615 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1616 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1617 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1618 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1620 * reggroups.c: Add whitespace after declarations of local
1621 variables in functions.
1623 2003-08-21 Michael Chastain <mec@shout.net>
1625 * gdbtypes.h: Change array bound type from an int to enum.
1627 2003-08-21 Andrew Cagney <cagney@redhat.com>
1629 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1630 * config/sparc/tm-sparc.h: Ditto.
1631 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1633 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1635 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1637 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1638 (register_objfile_data, set_objfile_data, objfile_data): New
1640 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1642 (allocate_objfile): Call objfile_alloc_data.
1643 (free_objfile): Call objfile_free_data.
1644 (struct objfile_data): New.
1645 (struct objfile_data_registration): New.
1646 (struct objfile_data_registry): New.
1647 (objfile_data_registry): New variable.
1648 (register_objfile_data): New function.
1649 (objfile_alloc_data, objfile_free_data): New functions.
1650 (set_objfile_data, objfile_data): New functions.
1651 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1652 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1653 (_initialize_dwarf2_frame): New function and prototype.
1655 2003-08-21 Andrew Cagney <cagney@redhat.com>
1657 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1658 a specific architecture.
1659 * arch-utils.h (set_architecture_from_arch_mach): Delete
1661 (target_architecture_hook): Delete declaration.
1662 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1663 (default_float_format): Assume GDB_MULTI_ARCH.
1664 (default_double_format): Assume GDB_MULTI_ARCH.
1665 (set_endian_from_file): Delete function.
1666 (arch_ok): Delete function.
1667 (set_arch): Delete function.
1668 (set_architecture_from_arch_mach): Delete function.
1669 (set_architecture_from_file): Delete function.
1670 (set_architecture): Assume GDB_MULTI_ARCH.
1671 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1673 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1675 Rewrite FreeBSD/sparc64 native configuration.
1676 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1677 * sparc64fbsd-nat.c: New file.
1678 * sparc64fbsd-tdep.c: New file.
1679 * sparc64-tdep.c sparc64-tdep.h: New files.
1680 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1681 sparc64fbsd-tdep.o): New dependencies.
1682 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1683 and sparc64fbsd-tdep.c.
1684 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1685 * config/sparc/fbsd.mh: Remove copyright notice.
1686 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1688 * config/sparc/fbsd.mt: Remove copyright notice.
1689 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1690 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1691 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1692 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1693 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1694 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1695 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1696 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1698 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1699 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1701 2003-08-21 Michael Chastain <mec@shout.net>
1703 * symtab.h: Add doco on the space critical structures and
1704 some measurements of space usage.
1706 2003-08-21 Michael Snyder <msnyder@redhat.com>
1708 * tracepoint.c (trace_dump_command): Trace break address
1709 is subject to DECR_PC_AFTER_BREAK.
1710 (set_traceframe_context): Make "trace_line" an int.
1711 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1713 2003-08-20 Michael Snyder <msnyder@redhat.com>
1715 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1716 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1717 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1719 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1720 functions, replace sh_push_dummy_call.
1721 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1723 2003-08-20 Michael Chastain <mec@shout.net>
1725 * gdbtypes.h (struct main_type): Rearrange to save space.
1727 2003-08-20 Michael Snyder <msnyder@redhat.com>
1729 * trad-frame.c: Comment typo fix.
1731 2003-08-20 Michael Snyder <msnyder@redhat.com>
1732 Kevin Buettner <kevinb@redhat.com>
1734 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1735 (frv_frame_init_saved_regs): Add declaration.
1736 (frame_extra_info): Add new field ``saved_regs''.
1737 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1738 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1739 Update frame related code.
1740 (frv_extract_struct_value_address): Adjust formatting.
1741 * Makefile.in (frv-tdep.o): Update dependencies.
1742 * config/frv/tm-frv.h (target_insert_watchpoint)
1743 (target_remove_watchpoint, target_insert_hw_breakpoint)
1744 (target_remove_hw_breakpoint): Delete these macros.
1745 (remote_insert_watchpoint, remote_remove_watchpoint)
1746 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1749 2003-08-20 Michael Chastain <mec@shout.net>
1751 * defs.h (ENUM_BITFIELD): New macro.
1752 * symtab.h (ENUM_BITFIELD): Use it.
1753 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1755 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1757 * MAINTAINERS (write after approval): Add myself.
1759 2003-08-18 Andrew Cagney <cagney@redhat.com>
1761 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1762 * gdbarch.h, gdbarch.c: Re-generate.
1763 * infcall.c (call_function_by_hand): Adjust the SP by
1764 frame_red_zone_size before allocating any stack space.
1765 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1766 * x86-64-tdep.c (x86_64_frame_align): New function.
1767 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1769 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1770 Remove code adjusting SP so that it skips over the Red Zone.
1772 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1774 * NEWS (New native configurations): Mention FreeBSD/amd64.
1776 2003-08-18 Andrew Cagney <cagney@redhat.com>
1778 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1779 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1781 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1783 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1785 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1787 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1789 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1791 * i386-linux-nat.c: Include "linux-nat.h".
1792 (child_post_startup_inferior): New function.
1794 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1796 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1797 at the start of a frameless function. This probably fixes PR
1800 2003-08-17 Michael Chastain <mec@shout.net>
1802 * symfile.c (find_sym_fns): Remove special case for apollo target.
1804 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1806 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1807 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1808 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1809 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1810 (linux_supports_tracevforkdone): New function.
1811 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1813 (child_follow_fork): Handle vfork.
1814 (linux_handle_extended_wait): Likewise. Also handle exec.
1815 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1816 * NEWS: Mention fork tracing.
1818 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1820 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1822 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1824 * Makefile.in (i386-linux-nat.o): Update dependencies.
1825 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1826 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1827 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1828 * i386-linux-nat.c: Include "linux-nat.h".
1829 (child_post_startup_inferior): New function.
1830 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1831 * infptrace.c (kill_inferior): Wrap in #ifdef.
1832 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1833 attaching to each LWP.
1834 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1835 (init_lin_lwp_ops): Fill in some more operations.
1836 * linux-nat.h (linux_enable_event_reporting)
1837 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1839 * linux-nat.c (linux_enable_event_reporting): New function.
1840 (child_post_attach, linux_child_post_startup_inferior)
1841 (child_post_startup_inferior, child_follow_fork)
1842 (linux_handle_extended_wait, kill_inferior): New functions.
1844 2003-08-16 Andrew Cagney <cagney@redhat.com>
1846 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1847 * gdbarch.h, gdbarch.c: Re-generate.
1849 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1851 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1853 2003-08-16 Andrew Cagney <cagney@redhat.com>
1855 * NEWS: Mention that "set prompt-escape-char" was deleted.
1856 * top.c (get_prompt_1): Delete function.
1857 (gdb_prompt_escape):
1858 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1859 prompt-escape-char" command.
1860 (MAX_PROMPT_SIZE): Delete macro.
1861 (get_prompt): Simplify, do not call get_prompt_1.
1863 2003-08-16 Andrew Cagney <cagney@redhat.com>
1865 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1866 -Werror. -Wformat-nonliteral problems.
1868 2003-08-15 J. Brobecker <brobecker@gnat.com>
1870 Further multiarching work mostly for hppa64-*-hpux11:
1871 * hppa-tdep.h: New file.
1872 * hppa-tdep.c: #include hppa-tdep.c.
1873 (hppa32_num_regs): Renamed from hppa_num_regs.
1874 (hppa64_num_regs): New constant.
1875 (hppa64_call_dummy_breakpoint_offset): New constant.
1876 (hppa32_call_dummy_length): New constant.
1877 (hppa64_call_dummy_length): New constant.
1878 (hppa32_stack_align): Make name 32bit explicit.
1879 (hppa32_register_virtual_type): Likewise.
1880 (hppa32_extract_return_value): Likewise.
1881 (hppa32_use_struct_convention): Likewise.
1882 (hppa32_store_return_value): Likewise.
1883 (hppa64_register_virtual_type): New function.
1884 (hppa64_extract_return_value): New function.
1885 (hppa64_use_struct_convention): New function.
1886 (hppa64_store_return_value): New function.
1887 (hppa_frame_locals_address): Remove declaration, function does
1889 (hppa_register_byte): Add support for PA64 ABI.
1890 (hppa_gdbarch_init): Add support for PA64 ABI.
1891 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1892 Make name 32bit explicit.
1893 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1894 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1895 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1896 (hppa64_hpux_frame_base_before_sigtramp): New function.
1897 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1898 * config/pa/tm-hppa64.h: Remove macros that are no longer
1899 necessary now that the gdbarch vector is properly setup.
1900 Transform some macros into function calls. Some minor cleanup.
1901 * config/pa/tm-hppah.h: Update function calls in macros
1902 following the function renaming in hppa-hpux-tdep.c.
1903 * Makefile.in (hppa_tdep_h): New variable.
1904 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1906 2003-08-14 Michael Snyder <msnyder@redhat.com>
1908 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1910 2003-08-13 J. Brobecker <brobecker@gnat.com>
1912 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1913 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1916 2003-08-13 Michael Snyder <msnyder@redhat.com>
1918 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1919 (frv_saved_pc_after_call): Use deprecated ftype.
1920 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1921 (frv_remote_translate_xfer_address): Remove.
1922 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1924 2003-08-13 J. Brobecker <brobecker@gnat.com>
1926 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1927 initialization after the common gdbarch initialization, not before.
1929 2003-08-13 J. Brobecker <brobecker@gnat.com>
1931 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1932 (ADDR_BITS_REMOVE): Remove, redundant.
1934 2003-08-13 J. Brobecker <brobecker@gnat.com>
1936 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1937 gdbarch method to clear the 2 low bits of text addresses.
1939 2003-08-12 Andrew Cagney <cagney@redhat.com>
1941 * Makefile.in (dsrec.o): Update dependencies.
1942 * dsrec.c: Include "gdb_assert.h".
1943 (make_srec): Use snprintf instead of sprintf, use a literal format
1946 2003-08-12 Andrew Cagney <cagney@redhat.com>
1948 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1949 FRAME_OBSTACK_ZALLOC.
1951 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1953 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1956 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1958 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1959 amd64fbsd_sc_reg_offset): Add extern declarations.
1960 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1963 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1965 * MAINTAINERS (write after approval): Update my mail address.
1967 2003-08-10 Andrew Cagney <cagney@redhat.com>
1969 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1971 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1973 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1974 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1975 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1976 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1977 i386bsd_sc_reg_offset): Add extern declarations.
1978 * i386obsd-nat.c: Include "i386-tdep.h"
1979 (_initialize_i386obsd_nat): Remove extern declarations.
1980 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1982 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1985 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1986 instead of frame_read_register.
1987 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1988 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1990 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1991 instead of frame_unwind_unsigned_register. Use
1992 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1993 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1994 instead of read_register. Use builtin_type_void_data_ptr instead
1995 of builtin_type_void_func_ptr when extracting the address of the
1997 (i386_extract_return_value, i386_store_return_value,
1998 i386_pseudo_register_read, i386_pseudo_register_write): Use
1999 register_size instead REGISTER_RAW_SIZE.
2001 2003-08-10 Andrew Cagney <cagney@redhat.com>
2003 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2004 sprintf. Make "name" constant.
2006 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2008 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2009 instead of frame_read_register.
2010 (i387_print_float_info): Use get_frame_register and
2011 get_frame_register_unsigned instead of frame_register_read.
2013 * i386fbsd-nat.c: Include "i386-tdep.h".
2014 (child_resume): Make `eflags' an ULONGEST. Use
2015 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2016 instead of register_read and register_write.
2018 * i386bsd-nat.c (fetch_inferior_registers,
2019 store_inferior_registers): Don't use && at the end of a line.
2020 (_initialize_i386bsd_nat): Fix typo.
2022 * frame.c (_initialize_frame): Add missing backslash.
2024 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2025 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2026 and supply_register instead of manipulating the register buffer
2029 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2030 * config/i386/nm-i386sol2.h
2031 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2033 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2034 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2035 instructions that GCC likes to mingle into the prologue. Fixes
2036 gdb/1253 and gdb/1255.
2038 2003-08-09 Andrew Cagney <cagney@redhat.com>
2041 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2042 * command.h (add_setshow_uinteger_cmd): Declare.
2043 * frame.c (set_backtrace_cmd): New function.
2044 (show_backtrace_cmd): New function.
2045 * frame.c (_initialize_frame): Replace "set/show
2046 backtrace-below-main" with "set/show backtrace past-main". Add
2047 command "set/show backtrace limit".
2048 (backtrace_past_main): Rename "backtrace_below_main".
2049 (backtrace_limit): New variable.
2050 (get_prev_frame): Update. Check the backtrace_limit.
2052 2003-08-09 Andrew Cagney <cagney@redhat.com>
2054 * defs.h (xstrprintf): Declare.
2055 * utils.c (xstrprintf): New function.
2056 * breakpoint.c (insert_breakpoints): Replace sprintf and
2057 non-literal format strings, with xstrprintf and cleanups.
2058 (delete_breakpoint,breakpoint_re_set): Ditto.
2059 (commands_command, insert_breakpoints): Ditto.
2060 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2061 (break_at_finish_command_1): Ditto.
2063 2003-08-09 Andrew Cagney <cagney@redhat.com>
2065 * MAINTAINERS (language support): List Adam Fedor as Objective C
2068 2003-08-08 J. Brobecker <brobecker@gnat.com>
2070 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2071 are now multiarched.
2073 2003-08-08 J. Brobecker <brobecker@gnat.com>
2075 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2076 longer necessary now that hppa64 is partially multiarch'ed.
2078 2003-08-08 Andrew Cagney <cagney@redhat.com>
2080 * interps.c (interp_set): Check for a NULL "old_interp".
2082 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2084 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2085 (install-only): Support DESTDIR.
2086 (uninstall): Likewise.
2087 (install-gdbtk): Likewise.
2089 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2091 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2092 contains something meaningful at all times.
2094 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2096 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2098 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2100 * MAINTAINERS (write after approval): Added self.
2102 2003-08-07 Andrew Cagney <cagney@redhat.com>
2104 * inferior.h (AT_SYMBOL): Define.
2105 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2106 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2107 * mips-tdep.c (mips_call_dummy_address): Delete function.
2108 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2109 set call_dummy_address.
2111 2003-08-07 Andrew Cagney <cagney@redhat.com>
2113 * language.c (op_error): Delete function.
2114 (binop_type_check): Delete function.
2115 * language.h (type_op_error, range_op_error): Delete macros.
2116 (op_error): Delete declaration.
2118 2003-08-07 Andrew Cagney <cagney@redhat.com>
2120 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2122 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2124 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2125 (x86_64_push_arguments): Skip the red zone.
2127 2003-08-05 Andrew Cagney <cagney@redhat.com>
2129 * reggroups.c (reggroup_next): Check for the final entry.
2131 2003-08-04 Andrew Cagney <cagney@redhat.com>
2133 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2134 * cli/cli-script.c (define_command): Call query directly, instead
2135 of passing it a buffer.
2136 * ocd.c (ocd_error): Pass error a constant format string.
2137 * remote-mips.c (mips_error): Use fputs_filtered.
2139 * solib-svr4.c (_initialize_svr4_solib): Update
2140 register_gdbarch_data call.
2141 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2143 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2144 (register_gdbarch_data): Delete "free" parameter. Update
2146 * gdbarch.h, gdbarch.c: Re-generate.
2147 * reggroups.c (_initialize_reggroup): Update.
2148 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2149 * frame-base.c (_initialize_frame_base): Update.
2150 * frame-unwind.c (_initialize_frame_unwind): Update.
2151 * user-regs.c (_initialize_user_regs): Update.
2152 * remote.c (_initialize_remote): Update.
2153 * regcache.c (_initialize_regcache): Update.
2155 * regcache.c (xfree_regcache_descr): Delete function.
2156 (_initialize_regcache): Update call to register_gdbarch_data.
2157 (init_regcache_descr, init_legacy_regcache_descr): Use
2158 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2160 * remote.c (free_remote_state): Delete function.
2161 (_initialize_remote): Update register_gdbarch_data.
2162 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2163 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2165 2003-08-04 Andrew Cagney <cagney@redhat.com>
2167 * reggroups.c (struct reggroup_el): Define.
2168 (struct reggroups): Delete field "nr_group". Replace array
2169 "group" with a "first" to "last" linked list.
2170 (reggroups_init): Update. Allocate using gdbarch's obstack.
2171 (reggroups_free): Delete function.
2172 (add_group): Update. Add "el" parameter.
2173 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2174 (default_groups): Update.
2175 (reggroup_next): Replace reggroups.
2176 (reggroups_dump): Update.
2177 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2178 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2179 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2181 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2183 * Makefile.in (tui-interp.o): Update dependencies.
2185 2003-08-04 David Carlton <carlton@kealia.com>
2187 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2188 to internal_error call.
2189 * source.c (forward_search_command): Add "%s" format argument.
2190 (reverse_search_command): Ditto.
2191 * top.c (quit_confirm): Ditto.
2192 * cli/cli-setshow.c (do_setshow_command): Ditto.
2193 * cp-valprint.c (cp_print_class_method): Replace
2194 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2195 (cp_print_class_member): Ditto.
2196 * event-top.c (command_line_handler): Ditto.
2197 * linux-proc.c (linux_info_proc_cmd): Ditto.
2198 * p-typeprint.c (pascal_type_print_base): Ditto.
2199 * p-valprint.c (pascal_object_print_class_method): Ditto.
2200 (pascal_object_print_class_member): Ditto.
2201 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2202 * remote.c (remote_cisco_section_offsets): Ditto.
2203 * top.c (command_line_input): Ditto.
2204 * utils.c (vwarning,error_stream,quit): Ditto.
2205 * valprint.c (print_floating,print_binary_chars)
2206 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2208 2003-08-04 Andrew Cagney <cagney@redhat.com>
2210 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2212 2003-08-02 Andrew Cagney <cagney@redhat.com>
2214 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2215 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2218 2003-08-02 Andrew Cagney <cagney@redhat.com>
2220 * Makefile.in: Update all dependencies and definitions.
2222 2003-08-02 Adam Fedor <fedor@gnu.org>
2224 * linespec.c (is_objc_method_format): New function
2225 (decode_line_1, locate_first_half): Use it.
2228 2003-08-01 Andrew Cagney <cagney@redhat.com>
2230 * NEWS: Mention that m32r is multi-arch.
2231 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2232 * configure.tgt: Recognize m32r-*-*.
2233 * config/m32r/tm-m32r.h: Delete file.
2234 * config/m32r/m32r.mt: New file.
2235 * m32r-rom.c (m32r_upload_command): Use hostent only when
2236 gethostname succeeds, in order to avoid a compilation
2238 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2241 2003-08-01 Michael Snyder <msnyder@redhat.com>
2243 * sh-tdep.c (sh_frame_align): New gdbarch method.
2244 (sh_gdbarch_init): Set up frame_align method.
2246 2003-07-31 Michael Snyder <msnyder@redhat.com>
2248 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2249 which is already covered by the new frames infrastructure.
2251 2003-07-31 Andrew Cagney <cagney@redhat.com>
2253 * user-regs.c (struct user_reg): Add "next" link.
2254 (struct user_regs): Replace "user" with "first" and "last" links.
2255 (append_user_reg): Add pre-allocated "reg" parameter.
2256 (builtin_user_regs): Provide initial value for "last".
2257 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2258 (user_regs_init): Allocate memory from the gdbarch obstack.
2259 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2260 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2262 (usernum_to_user_reg): New function.
2263 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2264 (value_of_user_reg): Use usernum_to_user_reg.
2265 (user_regs_free): Delete function.
2266 (_initialize_user_regs): Update register_gdbarch_data call.
2268 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2270 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2272 2003-07-30 Michael Snyder <msnyder@redhat.com>
2274 * value.h (value_being_returned): Add a struct_addr argument.
2275 * infcall.c (call_function_by_hand): Pass struct_addr to
2276 value_being_returned.
2277 * infcmd.c (print_return_value): Pass zero as struct_addr.
2278 * values.c (value_being_returned): If struct_addr is passed,
2279 use it instead of trying to recover it from the inferior.
2281 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2283 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2284 the prologue analyzer won't need to attempt to extract the pc
2285 value from the woefully incomplete dummy frame.
2286 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2287 possible. Disable code which modifies the frame.
2289 2003-07-28 Andrew Cagney <cagney@redhat.com>
2291 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2293 (annotate_breakpoints_table, annotate_record): Ditto.
2294 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2295 (annotate_field_name_end, annotate_field_value): Ditto.
2296 (annotate_field_end, annotate_frame_source_begin): Ditto.
2297 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2298 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2299 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2300 (annotate_frame_address_end, annotate_frame_address): Ditto.
2301 (annotate_frame_args, annotate_frame_end): Ditto.
2302 (annotate_frame_where, annotate_arg_begin): Ditto.
2303 (annotate_arg_name_end, annotate_arg_value): Ditto.
2304 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2305 (annotate_function_call, annotate_signal_name): Ditto.
2306 (annotate_signal_string, annotate_signal_name_end): Ditto.
2307 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2308 (annotate_value_begin, annotate_value_history_value): Ditto.
2309 (annotate_value_history_end, annotate_value_end): Ditto.
2310 (annotate_display_begin, annotate_display_number_end): Ditto.
2311 (annotate_display_format, annotate_display_expression): Ditto.
2312 (annotate_display_expression_end, annotate_display_value): Ditto.
2313 (annotate_display_end, annotate_array_section_begin): Ditto.
2314 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2315 (annotate_elt, annotate_array_section_end): Ditto.
2317 2003-07-28 Andrew Cagney <cagney@redhat.com>
2319 * regcache.c (struct regcache_descr): Update comments on
2321 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2322 sizeof_raw_register_valid_p.
2323 (init_regcache_descr): Set nr_raw_registers and
2324 sizeof_raw_register_valid_p before calling
2325 init_legacy_regcache_descr.
2327 2003-07-28 Andrew Cagney <cagney@redhat.com>
2329 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2332 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2334 * thread.c (info_threads_command): Use get_selected_frame ().
2335 Check that there is at least one non-sentinel frame.
2337 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2339 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2340 (m68hc11_pop_frame): Remove.
2341 (m68hc11_frame_saved_pc): Remove.
2342 (m68hc11_frame_chain): Remove.
2343 (m68hc11_frame_init_saved_regs): Remove.
2344 (m68hc11_init_extra_frame_info): Remove.
2345 (m68hc11_store_struct_return): Remove.
2346 (m68hc11_saved_pc_after_call): Remove.
2348 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2350 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2351 frame unwind information.
2352 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2353 and adapted for frame unwinding.
2354 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2355 (m68hc11_unwind_pc): New function.
2356 (m68hc11_frame_unwind_cache): New function to analyze frames.
2357 (m68hc11_frame_this_id): New function to create new frame struct.
2358 (m68hc11_frame_prev_register): New function to unwind a register from
2360 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2361 (m68hc11_frame_p): New function for the above.
2362 (m68hc11_frame_base_address): New function to return fp of frame.
2363 (m68hc11_frame_args_address): Update for frame.
2364 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2365 (m68hc11_unwind_sp): New function.
2366 (m68hc11_unwind_dummy_id): New function.
2367 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2370 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2372 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2373 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2374 when we are beyond the current pc.
2376 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2378 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2379 from m68hc11_push_arguments.
2380 (m68hc11_push_arguments): Remove.
2381 (m68hc11_push_return_address): Remove.
2382 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2383 handlers; remove deprecated_extra_stack_alignment_needed.
2385 2003-07-27 Andrew Cagney <cagney@redhat.com>
2387 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2388 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2389 REAL_PC and not the pointer.
2390 * hppa-hpux-tdep.c: Include frame.h
2392 2003-07-27 Andrew Cagney <cagney@redhat.com>
2394 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2395 GDB_MULTI_ACH_PARTIAL.
2397 2003-07-27 Andrew Cagney <cagney@redhat.com>
2399 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2400 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2401 operator at start and not end of line.
2402 (decode_prologue): Ditto.
2403 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2404 frame_unwind_register_unsigned instead of
2405 frame_unwind_unsigned_register.
2406 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2408 (m32r_push_dummy_call): Use register_size instead of
2410 (m32r_frame_sniffer): Replace m32r_frame_p.
2411 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2412 * m32r-rom.c (report_transfer_performance): Delete extern
2414 (m32r_load, m32r_upload_command): Use print_transfer_performance
2415 instead of report_transfer_performance.
2416 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2417 / add_show_from_set.
2419 2003-07-26 Andrew Cagney <cagney@redhat.com>
2421 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2422 store_return_value and extract_struct_value_address.
2424 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2427 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2428 NULL, default to the section containing PC.
2430 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2432 * NEWS: Mention "regs" deprecated for m68hc11 too.
2434 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2435 (m68hc11_print_register): New function to print out one register.
2436 (m68hc11_print_registers_info): New function to print registers.
2437 (show_regs): Deprecate and use the above.
2438 (m68hc11_gdbarch_init): Install the print_registers_info.
2440 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2442 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2443 that we have a SIGTRAP before returning non-zero.
2445 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2446 Elena Zannoni <ezannoni@redhat.com>
2448 * linespec.c (decode_line_2): Avoid crash if
2449 find_function_start_sal() returns empty record.
2451 2003-07-23 Andreas Schwab <schwab@suse.de>
2453 * ia64-tdep.c (ia64_print_insn): New function.
2454 (ia64_gdbarch_init): Set print_insn to it.
2455 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2456 deprecated_tm_print_insn_info.
2458 2003-07-22 Michael Snyder <msnyder@redhat.com>
2460 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2461 handle 8-bit returns (long long).
2462 (h8300h_extract_return_value): Ditto.
2463 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2465 2003-07-22 Andrew Cagney <cagney@redhat.com>
2467 * gdbarch.c Include "gdb_obstack.h".
2468 (struct gdbarch): Add an "obstack".
2469 (alloc_gdbarch_data): Allocate the gdbarch data using
2470 GDBARCH_OBSTACK_CALLOC.
2471 (free_gdbarch_data): Delete function.
2472 (gdbarch_obstack_zalloc): New function.
2473 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2474 Assert that the architecture is not initialized.
2475 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2476 vector from the obstack.
2477 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2478 architecture obstack.
2479 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2480 (set_gdbarch_data): Assert that the data is not initialized.
2481 (struct gdbarch_data): Delete member "free".
2482 (register_gdbarch_data): Do not initialize "free".
2483 * gdbarch.h, gdbarch.c: Re-generate.
2485 2003-07-22 Andrew Cagney <cagney@redhat.com>
2487 * configure.in (build_warnings): Add -Wformat-nonliteral.
2488 * configure: Re-generate.
2490 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2492 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2494 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2496 * findvar.c (read_var_value): Remove case for thread local storage
2497 variables. It is now entirely handled by the dwarf2 location
2499 * printcmd.c (address_info): Ditto.
2500 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2502 (struct symbol): Remove objfile field, which was used by
2503 LOC_THREAD_LOCAL_STATIC only.
2504 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2505 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2506 usage of objfile pointer.
2507 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2508 thread local variables.
2509 Add include of objfiles.h.
2510 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2512 * Makefile.in (dwarf2loc.o): Update dependencies.
2514 2003-07-22 Andrew Cagney <cagney@redhat.com>
2516 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2518 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2519 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2520 (struct value): Add opaque declaration.
2521 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2523 2003-07-21 Andrew Cagney <cagney@redhat.com>
2525 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2526 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2528 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2530 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2531 regcache_cooked_read_unsigned instead of read_register.
2532 (m68hc11_saved_pc_after_call): Likewise.
2533 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2534 instead of write_register.
2535 (m68hc11_register_type): New function.
2536 (m68hc11_register_virtual_type): Remove.
2537 (m68hc11_store_return_value): Convert to use the regcache.
2538 (m68hc11_extract_struct_value_address): Likewise.
2539 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2540 m68hc11_register_type; undeprecate store_return_value and
2541 extract_struct_value_address.
2543 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2545 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2546 and translate to use regcache.
2547 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2549 2003-07-18 Andrew Cagney <cagney@redhat.com>
2551 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2552 * gdbarch.h, gdbarch.c: Re-generate.
2553 * i386-tdep.c (i386_gdbarch_init): Do not set
2554 DWARF2_BUILD_FRAME_INFO.
2555 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2557 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2558 DWARF2_BUILD_FRAME_INFO.
2560 2003-07-18 Andrew Cagney <cagney@redhat.com>
2562 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2563 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2565 2003-07-18 Andrew Cagney <cagney@redhat.com>
2567 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2568 frame_unwind_address_in_block, instead of frame_pc_unwind.
2569 (dwarf2_frame_cache): Ditto.
2571 2003-07-18 Andrew Cagney <cagney@redhat.com>
2573 * user-regs.h (struct gdbarch): Declare opaque.
2574 * ui-out.h (struct ui_file): Declare opaque.
2575 * dwarf2-frame.h (struct frame_info): Declare opaque.
2577 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2579 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2581 (procfs_meminfo): Change strerror to safe_strerror.
2582 (procfs_can_run): Remove K&R badness.
2584 2003-07-17 Michael Snyder <msnyder@redhat.com>
2586 * remote-sim.c: Comment typo fix.
2588 2003-07-17 Andrew Cagney <cagney@redhat.com>
2590 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2592 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2593 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2594 GDB_MULTI_ARCH_PARTIAL.
2596 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2598 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2599 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2600 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2602 2003-07-16 Theodore A. Roth <troth@openavr.org>
2604 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2606 (avr_frame_unwind_cache): Don't unwind FP for main.
2608 Save the computed prev_sp.
2609 (avr_saved_regs_unwinder): Remove function.
2610 (avr_frame_prev_register): Use PC unwind logic from
2611 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2613 2003-07-16 Andrew Cagney <cagney@redhat.com>
2615 * frame-base.h (frame_base_p_ftype): Delete definition.
2616 (frame_base_append_predicate): Delete declaration.
2617 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2618 (frame_unwind_append_predicate): Delete declaration.
2619 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2620 (append_predicate): Delete parameter "p".
2621 (frame_unwind_append_predicate): Delete function.
2622 (frame_unwind_append_sniffer): Update call to append_predicate.
2623 (frame_unwind_free): Delete function.
2624 (_initialize_frame_unwind): Pass NULL as "free" to
2625 register_gdbarch_data.
2626 (frame_unwind_init): Append the dummy_frame_sniffer.
2627 (frame_unwind_find_by_frame): Simplify.
2628 * frame-base.c (struct frame_base_table): Delete field "p".
2629 (append_predicate): Delete parameter "p".
2630 (frame_base_append_predicate): Delete function.
2631 (frame_base_append_sniffer): Update call to append_predicate.
2632 (frame_base_free): Delete function.
2633 (frame_base_find_by_frame): Simplify.
2634 (_initialize_frame_base): Pass NULL as "free" to
2635 register_gdbarch_data.
2636 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2637 (x86_64_sigtramp_frame_sniffer): Replace
2638 "x86_64_sigtramp_frame_p".
2639 (x86_64_init_abi): Set the frame unwind sniffers.
2640 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2641 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2642 (m68k_gdbarch_init): Set the frame unwind sniffers.
2643 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2644 "i386_sigtramp_frame_p".
2645 (i386_frame_sniffer): Replace "i386_frame_p".
2646 (i386_gdbarch_init): Set the frame unwind sniffers.
2647 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2648 (avr_gdbarch_init): Set the frame unwind sniffers.
2649 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2650 "alpha_sigtramp_frame_p"
2651 (alpha_heuristic_frame_sniffer): Replace
2652 "alpha_heuristic_frame_p".
2653 (alpha_gdbarch_init): Set the frame unwind sniffers.
2654 (alpha_dwarf2_init_abi): Ditto.
2655 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2656 "alpha_debug_frame_p".
2657 (alpha_mdebug_frame_base_sniffer): Replace
2658 "alpha_mdebug_frame_base_p".
2659 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2660 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2661 (d10v_gdbarch_init): Set the frame unwind sniffer.
2662 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2663 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2664 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2665 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2666 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2667 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2669 2003-07-16 Michael Snyder <msnyder@redhat.com>
2671 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2672 should go thru sh_dsp_register_sim_regno, else the dsp regs
2673 will not get the right values.
2675 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2677 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2678 deprecated_store_floating by call to store_typed_floating.
2679 (sh_sh4_register_convert_to_raw): Substitute call to
2680 deprecated_extract_floating by call to extract_typed_floating.
2682 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2684 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2686 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2688 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2689 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2690 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2692 (do_pseudo_register): Remove.
2693 (sh_push_dummy_code): New function.
2694 (sh64_store_struct_return): Rename from sh_store_struct_return.
2695 Only called for sh64 now.
2696 (sh_extract_struct_value_address): Regcache'ify.
2697 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2698 and accomodate new tasks.
2699 (sh64_push_return_address): Rename from sh_push_return_address.
2700 Only called for sh64 now.
2701 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2703 (sh3e_sh4_extract_return_value): Regcache'ify.
2704 (sh_default_store_return_value): Ditto.
2705 (sh3e_sh4_store_return_value): Ditto.
2706 (sh_default_register_byte): Remove.
2707 (sh_sh4_register_byte): Remove.
2708 (sh_default_register_raw_size): Remove.
2709 (sh_sh4_register_raw_size): Remove.
2710 (sh_register_virtual_size): Remove.
2711 (sh_sh3e_register_virtual_type): Remove.
2712 (sh_sh3e_register_type): New function.
2713 (sh_sh4_register_virtual_type): Remove.
2714 (sh_sh4_register_type): New function.
2715 (sh_default_register_virtual_type): Remove.
2716 (sh_default_register_type): New function.
2717 (do_fv_register_info): Add parameters to accomodate call from
2718 sh_print_registers_info.
2719 (do_dr_register_info): Ditto.
2720 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2721 Add parameters to accomodate call from sh_print_registers_info.
2722 (sh_do_fp_register): Ditto.
2723 (sh64_do_pseudo_register): Call do_dr_register_info,
2724 do_fv_register_info and sh_do_fp_register with default parameters.
2725 (sh_do_register): Add parameters to accomodate call from
2726 sh_print_registers_info.
2727 (sh_print_register): Ditto.
2728 (sh_print_registers_info): Rename from sh_do_registers_info.
2729 Add parameters to be used as gdbarch_print_registers_info
2730 implementation. Accomodate removed do_pseudo_register function
2732 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2733 function pointer. Call sh_print_register with default parameters.
2734 (sh64_do_registers_info): Call sh_print_registers_info instead of
2735 sh_do_registers_info.
2736 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2737 detection of deprecated vs. non-deprecated functionality.
2738 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2739 function pointer assignments by direct function calls.
2741 2003-07-15 Andrew Cagney <cagney@redhat.com>
2743 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2744 (frame_register_unwind, create_new_frame): Ditto.
2745 (legacy_get_prev_frame, get_frame_type): Ditto.
2746 (get_frame_base_address): Use frame_base_find_by_frame.
2747 (get_frame_locals_address): Use frame_base_find_by_frame.
2748 (get_frame_args_address): Use frame_base_find_by_frame.
2749 * frame-base.h (frame_base_sniffer_ftype): Declare.
2750 (frame_base_append_sniffer): Declare.
2751 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2752 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2753 (frame_base_append_sniffer): New function.
2754 (frame_base_append_predicate): Add a NULL sniffer.
2755 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2756 (struct frame_base_table): Add "sniffer".
2757 (frame_base_free): Free the "sniffer" table.
2758 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2759 (frame_unwind_append_sniffer): Declare.
2760 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2761 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2762 (struct frame_unwind_table): Add "sniffer", delete "middle".
2763 (append_predicate): Add "sniffer" parameter, append the sniffer.
2764 (frame_unwind_init): Update append_predicate call.
2765 (frame_unwind_append_sniffer): New function.
2766 (frame_unwind_append_predicate): Update append_predicate call.
2767 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2769 2003-07-15 Andrew Cagney <cagney@redhat.com>
2771 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2772 before code inhibiting repeated unwind attempts. Add to
2773 commentary on that test's problems.
2774 * blockframe.c (inside_main_func): Look for "main" in the minimal
2776 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2779 2003-07-15 Andrew Cagney <cagney@redhat.com>
2781 * complaints.c (struct explanation): Define.
2782 (struct complaints): Change type of "explanation" to "struct
2784 (symfile_explanations): Convert to a "struct explanation" table.
2785 (vcomplaint): Update.
2787 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2789 * x86-64-linux-nat.c (regmap): Removed.
2790 (supply_gregset, fill_gregset): Call
2791 x86_64_linux_(fill,supply)_gregset functions.
2792 * x86-64-linux-tdep.c (USER_*): New defines.
2793 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2794 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2796 (fetch_core_registers): Ditto.
2797 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2798 * x86-64-linux-tdep.h: New file.
2799 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2801 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2803 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2805 * x86-64-tdep.c (x86_64_store_return_value): Use
2806 regcache_cooked_write_part instead of regcache_cooked_write.
2808 * configure.host: Add x86_64-*-freebsd*.
2809 * configure.tgt: Add x86_64-*-freebsd*.
2810 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2811 * amd64fbsd-nat.c: New file.
2812 * amd64fbsd-tdep.c: New file.
2813 * config/i386/nm-fbsd64.h: New file.
2814 * config/i386/fbsd64.mh: New file.
2815 * config/i386/fbsd64.mt: New file.
2817 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2819 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2820 `sc_regs_offset' and `sc_fpregs_offset'.
2821 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2822 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2823 (alpha_sigtramp_register_address): Rewrite to use new members of
2824 `struct gdbarch_tdep'.
2825 (alpha_gdbarch_init): Initialize new members of struct
2827 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2828 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2829 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2830 (alphafbsd_pc_in_sigtramp): Implement.
2831 (alphafbsd_sigtramp_offset): New function.
2832 (alphafbsd_sigcontext_addr): New function.
2833 (alphafbsd_init_abi): Initialize signal trampoline related members
2834 of `struct gdbarch_tdep'.
2835 (_initialize_alphafbsd_tdep): Add prototype.
2837 2003-07-11 Theodore A. Roth <troth@openavr.org>
2839 * Makefile.in (install-only): Quote sed expression when generating
2842 2003-07-11 Richard Henderson <rth@redhat.com>
2844 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2845 * dwarf2-frame.c: Include complaints.h.
2846 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2847 variable initialization; return NULL on error.
2848 (decode_frame_entry): New.
2850 2003-07-11 Andrew Cagney <cagney@redhat.com>
2852 * frame.h (frame_address_in_block): Delete declaration.
2853 * blockframe.c (frame_address_in_block): Delete function.
2854 (get_frame_block): Use get_frame_address_in_block.
2855 (block_innermost_frame): Ditto.
2856 * stack.c (print_frame, backtrace_command_1): Ditto.
2858 * frame.h (get_frame_address_in_block): Declare.
2859 (frame_unwind_address_in_block): Declare.
2860 * frame.c (frame_unwind_address_in_block): New function.
2861 (get_frame_address_in_block): New function.
2863 2003-07-10 Andrew Cagney <cagney@redhat.com>
2865 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2866 pre-default. Note: re-generate has no effect.
2868 2003-07-10 Andrew Cagney <cagney@redhat.com>
2870 * gdbarch.sh: When a variable, but not a function, compare against
2871 0. Fix problem in previous patch.
2872 * gdbarch.c: Re-generate.
2874 2003-07-10 Andrew Cagney <cagney@redhat.com>
2876 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2877 functions against NULL, not 0.
2878 * gdbarch.c: Re-generate.
2880 2003-07-10 Fred Fish <fnf@ninemoons.com>
2882 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2883 null string instead of a null pointer.
2884 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2886 2003-07-09 Michael Snyder <msnyder@redhat.com>
2888 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2890 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2892 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2893 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2894 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2895 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2896 * x86-64-tdep.c: ... from here.
2898 2003-07-09 Andreas Schwab <schwab@suse.de>
2900 * m68k-tdep.h (enum struct_return): Define.
2901 (struct gdbarch_tdep): Add struct_return.
2902 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2903 bytes are padded to the right, not to the left. Pass struct value
2904 address in register %a1, not on stack.
2905 (m68k_use_struct_convention): New function.
2906 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2907 struct_return in tdep to pcc_struct_return.
2908 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2911 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2913 * somread.c (som_symfile_offsets): Fix compilation error.
2915 2003-07-09 Andrew Cagney <cagney@redhat.com>
2917 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2918 Add comments about the checks.
2920 2003-07-08 Andrew Cagney <cagney@redhat.com>
2922 * Makefile.in: Make dependency section headers consistent.
2923 (config_h): Move to $BUILD headers section.
2924 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2925 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2926 (ada-exp.tab.c): Move to YACC/LEX section.
2927 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2928 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2930 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2932 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2933 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2934 of strerror with safe_strerror, use ISO C function definitions,
2935 and replace instances of sprintf with snprintf.
2937 2003-07-07 Andrew Cagney <cagney@redhat.com>
2939 * frame.c (get_prev_frame): Enable check for identical frames.
2940 Update comments. Update error messages.
2942 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2944 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2946 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2948 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2949 sort_symtab_syms, no longer necessary.
2951 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2953 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2955 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2957 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2958 (mips_register_byte): Likewise.
2960 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2962 * Makefile.in (sparc_tdep_h): New.
2963 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2964 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2965 * sparc-linux-nat.c: Include "sparc-tdep.h".
2966 * sparc-nat.c: Likewise.
2967 * sparc-tdep.c: Likewise.
2968 * sparc64nbsd-nat.c: Likewise.
2969 * sparcnbsd-nat.c: Likewise.
2970 * sparcnbsd-tdep.c: Likewise.
2971 * sparc-tdep.h: New file.
2972 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2973 and sparc_npc_regnum.
2975 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2977 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2978 (mips_linux_cannot_store_register): List supported instead of
2979 unsupported registers.
2981 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2983 * disasm.c (dump_insns): Separate instructions from addresses.
2985 2003-07-07 Andreas Schwab <schwab@suse.de>
2987 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2989 * m68k-tdep.c (NUM_FREGS): Delete.
2990 (SIG_PC_FP_OFFSET): Delete.
2991 (TARGET_M68K): Delete.
2992 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2993 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2994 P_MOVEL_SP, P_MOVEML_SP): Define.
2995 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2997 (m68k_register_raw_size): Delete.
2998 (m68k_register_virtual_size): Delete.
2999 (m68k_register_type): Renamed from m68k_register_virtual_type and
3000 add gdbarch argument.
3001 (m68k_store_struct_return): Delete.
3002 (m68k_deprecated_extract_return_value): Delete.
3003 (m68k_deprecated_extract_struct_value_address): Delete.
3004 (m68k_frame_chain): Delete.
3005 (m68k_frame_saved_pc): Delete.
3006 (m68k_fix_call_dummy): Delete.
3007 (m68k_push_dummy_frame): Delete.
3008 (m68k_pop_frame): Delete.
3009 (m68k_extract_return_value): New function.
3010 (m68k_store_return_value): Rewrite using regcache.
3011 (m68k_extract_struct_value_address): Rewrite using regcache.
3012 (m68k_push_dummy_call): New function.
3013 (struct m68k_frame_cache): Define.
3014 (m68k_alloc_frame_cache): New function.
3015 (m68k_analyze_frame_setup): New function.
3016 (m68k_analyze_register_saves): New function.
3017 (m68k_analyze_prologue): New function.
3018 (m68k_skip_prologue): Rewrite using above functions.
3019 (m68k_unwind_pc): New function.
3020 (m68k_frame_cache): New function.
3021 (m68k_frame_this_id): New function.
3022 (m68k_frame_prev_register): New function.
3023 (m68k_frame_unwind): New variable.
3024 (m68k_frame_p): New function.
3025 (m68k_sigtramp_frame_cache): New function.
3026 (m68k_sigtramp_frame_this_id): New function.
3027 (m68k_sigtramp_frame_prev_register): New function.
3028 (m68k_sigtramp_frame_unwind): New variable.
3029 (m68k_sigtramp_frame_p): New function.
3030 (m68k_frame_base_address): New function.
3031 (m68k_frame_base): New function.
3032 (m68k_unwind_dummy_id): New function.
3033 (fill_gregset): Use regcache_collect.
3034 (fill_fpregset): Likewise.
3035 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3037 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3038 deprecated_init_frame_pc, deprecated_store_struct_return,
3039 deprecated_extract_return_value, deprecated_store_return_value,
3040 deprecated_frame_chain, deprecated_frame_saved_pc,
3041 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3042 deprecated_register_virtual_size,
3043 deprecated_max_register_raw_size,
3044 deprecated_max_register_virtual_size,
3045 deprecated_register_virtual_type, deprecated_register_size,
3046 deprecated_register_byte, deprecated_register_bytes,
3047 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3048 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3049 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3050 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3051 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3052 deprecated_push_dummy_frame, deprecated_pop_frame,
3053 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3054 only if SYSCALL_TRAP is defined. Set extract_return_value,
3055 store_return_value, extract_struct_value_address, register_type,
3056 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3058 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3059 M68K_MAX_REGISTER_SIZE): Define.
3060 (struct m68k_sigtramp_info): Define.
3061 (struct gdbarch_tdep): Add get_sigtramp_info.
3062 * m68klinux-nat.c (fetch_register): Use register_size instead of
3063 REGISTER_RAW_SIZE. Don't put assignment in if.
3064 (store_register): Likewise.
3065 (fetch_inferior_registers): Likewise.
3066 (store_inferior_registers): Likewise.
3067 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3068 (m68k_linux_frame_saved_pc): Delete.
3069 (m68k_linux_sigcontext_reg_offset,
3070 m68k_linux_ucontext_reg_offset): Define.
3071 (m68k_linux_get_sigtramp_info): New function.
3072 (m68k_linux_extract_return_value): Rewrite using regcache.
3073 (m68k_linux_store_return_value): Likewise.
3074 (m68k_linux_extract_struct_value_address): Likewise.
3075 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3076 Don't set deprecated_frame_saved_pc,
3077 deprecated_extract_return_value, deprecated_store_return_value,
3078 deprecated_extract_struct_value_address. Set
3079 extract_return_value, store_return_value,
3080 extract_struct_value_address.
3082 2003-07-07 Andrew Cagney <cagney@redhat.com>
3084 * expprint.c: Include "user-regs.h" instead of "frame.h".
3085 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3086 frame_map_regnum_to_name.
3087 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3088 (frame_map_name_to_regnum): Simplify, call
3089 user_reg_map_name_to_regnum.
3090 (frame_map_regnum_to_name): Simplify, call
3091 user_reg_map_regnum_to_name.
3092 (frame_register_unwind): Update.
3093 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3094 (_initialize_frame_reg): Call user_reg_add_builtin.
3095 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3096 (value_of_register): Use value_of_user_reg.
3097 * eval.c (evaluate_subexp_standard): Update.
3098 * parse.c (write_dollar_variable): Update.
3099 * d10v-tdep.c (d10v_print_registers_info): Update.
3100 * infcmd.c (registers_info): Update.
3101 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3102 (builtin_regs_h): Delete macro.
3103 (user_regs_h): Define.
3104 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3105 (builtin-regs.o): Delete target.
3106 (user-regs.o): Specify dependencies.
3107 (expprint.o): Update dependencies.
3108 (findvar.o): Update dependencies.
3109 (frame.o): Update dependencies.
3110 (std-regs.o): Update dependencies.
3112 2003-07-06 Christopher Faylor <cgf@redhat.com>
3114 * win32-nat.c (solib_symbols_add): Use one variable for all section
3115 address stuff. Pass variable rather than address of variable to
3116 safe_symbol_file_add.
3118 2003-07-06 Andreas Schwab <schwab@suse.de>
3120 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3122 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3124 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3126 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3128 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3130 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3132 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3133 * config/i386/nto.mh: New file.
3134 * config/i386/nm-nto.h: New file.
3135 * configure.host: Add i[3456]86-*-nto*.
3137 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3139 * remote-vx.c (vx_add_symbols): Fix compilation error.
3141 2003-07-03 Andrew Cagney <cagney@redhat.com>
3143 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3144 * gdbarch.h, gdbarch.c: Re-generate.
3145 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3146 (legacy_register_name): Declare.
3147 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3148 (REGISTER_NAME): Define.
3149 * sparc-tdep.c (legacy_register_name): New function.
3150 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3151 (REGISTER_NAME): Define.
3152 (hppa64_register_name): Declare.
3153 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3154 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3155 (hppa64_register_name): New function.
3156 (hppa_register_name): New function.
3157 * arch-utils.c (legacy_register_name): Delete.
3158 * arch-utils.h (legacy_register_name): Delete.
3160 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3162 * cli/cli-interp.c (cli_interpreter_resume): Update the
3163 cli_uiout's stream to gdb_stdout.
3165 2003-07-03 Andrew Cagney <cagney@redhat.com>
3167 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3169 * gdbarch.h, gdbarch.c: Re-generate.
3170 * regcache.c (init_regcache_descr): Use legacy code when either
3171 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3173 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3175 * NEWS: Move "set logging" entry into GDB 6.0 section.
3177 2003-07-02 Jim Blandy <jimb@redhat.com>
3179 * s390-tdep.c (struct frame_extra_info): new member:
3180 'stack_bought_valid'.
3181 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3182 initialize fextra_info->stack_bought.
3183 (s390_frameless_function_invocation): Don't trust the value of
3184 fextra_info_ptr->stack_bought unless
3185 fextra_info->stack_bought_valid is set.
3187 New S390 prologue analyzer.
3188 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3189 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3190 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3191 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3192 compute_x_addr, s390_on_stack, s390_store,
3193 s390_get_signal_frame_info): New functions.
3194 (S390_NUM_SPILL_SLOTS): New macro.
3195 (s390_get_frame_info): Rewritten.
3196 (is_arg_reg): Deleted.
3198 Break out the decoding of S/390 instructions into separate
3199 functions, to make it more legible, and easier to check
3201 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3202 is_rx, is_rxe): New functions.
3203 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3204 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3205 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3206 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3207 enums for opcode values. (Is this an improvement?)
3209 2003-07-02 Andrew Cagney <cagney@redhat.com>
3211 * i386-tdep.c: Revert change committed as part of trad-frame code
3214 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3216 * breakpoint.c (insert_catchpoint): Make static.
3218 2003-07-02 Andreas Schwab <schwab@suse.de>
3220 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3221 former ia64_push_arguments and ia64_push_return_address, and use
3222 regcache functions instead of read/write_register.
3223 (ia64_gdbarch_init): Set push_dummy_call instead of
3224 deprecated_push_arguments and deprecated_push_return_address.
3226 2003-07-01 Andreas Jaeger <aj@suse.de>
3228 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3230 Set %rax only to number of SSE registers used.
3232 2003-07-01 Andrew Cagney <cagney@redhat.com>
3234 * trad-frame.h: Update comments, a -1 .addr is reserved.
3235 (trad_frame_value_p, trad_frame_addr_p): Declare.
3236 (trad_frame_reg_p): Declare.
3237 (trad_frame_set_value): Rename trad_frame_register_value.
3238 (trad_frame_set_unknown): Declare.
3239 * trad-frame.c (trad_frame_realreg_p): New function.
3240 (trad_frame_addr_p, trad_frame_value_p): New function.
3241 (trad_frame_set_unknown): New function.
3242 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3243 (trad_frame_prev_register): Use trad_frame_realreg_p,
3244 trad_frame_addr_p and trad_frame_value_p.
3245 (trad_frame_set_value): Rename trad_frame_register_value.
3246 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3247 and trad_frame_set_value.
3249 2003-06-30 Jim Blandy <jimb@redhat.com>
3251 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3252 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3253 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3254 for 16 registers, and then 32 more bytes.
3255 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3257 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3258 Move up in the file, since it's now used by is_simple_arg.
3259 (is_simple_arg): Don't assume registers are four bytes long.
3260 Exclude all double arguments. Extended floats are not simple
3262 (is_power_of_two): New function.
3263 (pass_by_copy_ref): Call is_power_of_two, and check that the
3264 length fits in a register, rather than listing all the acceptable
3265 sizes. Extended floats are not passed by reference.
3266 (s390_push_arguments): Don't assume registers are four bytes long.
3267 Reserve an argument register to point to the buffer for structures
3268 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3269 S390_STACK_FRAME_OVERHEAD.
3271 2003-06-30 Andreas Schwab <schwab@suse.de>
3273 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3274 format error message.
3276 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3278 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3280 2003-06-30 David Carlton <carlton@kealia.com>
3282 Band-aid for PR c++/1245.
3283 * Makefile.in (cp-support.o): Depend on complaints_h.
3284 * cp-support.c: Include complaints.h. Add declaration for
3285 find_last_component.
3286 (cp_find_first_component): Separate code into
3287 cp_find_first_component_aux.
3288 (cp_find_first_component_aux): Call demangled_name_complaint.
3289 (demangled_name_complaint): New.
3291 2003-06-30 Andrew Cagney <cagney@redhat.com>
3293 * remote.c (remote_write_bytes): Explicitly compute and then use
3294 the payload size. Update comments to reflect. Fixes problem of
3295 GDB not sending small packets as found by Fred Fish.
3297 2003-06-30 Andrew Cagney <cagney@redhat.com>
3299 * remote.c (remote_async_wait): Fix -Wformat problem.
3301 2003-06-29 Andrew Cagney <cagney@redhat.com>
3303 * remote.c (remote_wait): Call error, and not warning, when the
3305 (remote_async_wait): Ditto.
3307 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3309 * sparc-tdep.c (sparc_y_regnum): Make external again.
3311 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3313 * cli/cli-logging.c (pop_output_files): Add void to function
3316 2003-06-29 Andrew Cagney <cagney@redhat.com>
3318 * frame.c (frame_register_unwind): Use unsigned char when dumping
3319 the buffer contents.
3321 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3323 * cli/cli-logging.c: New file.
3324 * cli-out.c (struct ui_out_data): Add original_stream.
3325 (cli_redirect): New function.
3326 (cli_ui_out_impl): Add cli_redirect.
3327 (cli_out_new): Initialize original_stream.
3328 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3329 (uo_redirect, ui_out_redirect): New.
3330 * ui-out.h (struct ui_out_impl): Add redirect member.
3331 (redirect_ftype): New.
3332 (ui_out_redirect): Add prototype.
3333 * Makefile.in: Add rules for cli-logging.c.
3334 * NEWS: Mention "set logging".
3336 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3338 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3340 2003-06-27 Andrew Cagney <cagney@redhat.com>
3342 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3343 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3344 * avr-tdep.c (avr_call_dummy_address): Delete function.
3345 (avr_gdbarch_init): Do not set call_dummy_address.
3347 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3349 * symfile.c (syms_from_objfile): Move variables to inner block.
3350 Move the checks for the non-mainline case a bit earlier to avoid
3351 doing some useless computations.
3353 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3355 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3357 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3359 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3362 2003-06-26 Michael Chastain <mec@shout.net>
3364 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3365 gdb/testsuite/gdb.c++/pr-1210.exp.
3367 2003-06-26 Andrew Cagney <cagney@redhat.com>
3369 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3370 altivec_expression.h and altivec_registers.h.
3372 2003-06-26 Andrew Cagney <cagney@redhat.com>
3374 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3375 info->mach when MIPS16. Patch suggested by Fred Fish.
3377 2003-06-26 Andrew Cagney <cagney@redhat.com>
3379 * utils.c (internal_vproblem): Print the problem to a reason
3380 buffer and then pass to query. Make the msg variable more local.
3382 2003-06-26 Andrew Cagney <cagney@redhat.com>
3384 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3385 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3386 * gdbarch.h, gdbarch.c: Re-generate.
3387 * frame-base.c (default_frame_args_address): Update. Use
3388 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3390 (default_frame_locals_address): Ditto for
3391 DEPRECATED_FRAME_LOCALS_ADDRESS.
3392 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3393 (vax_frame_num_args): Update.
3394 (vax_gdbarch_init): Update.
3395 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3396 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3397 * mcore-tdep.c (mcore_gdbarch_init): Update.
3398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3399 * ia64-tdep.c (ia64_gdbarch_init): Update.
3400 * symtab.h (address_class): Update comments.
3401 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3402 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3403 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3404 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3405 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3406 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3407 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3408 * alpha-mdebug-tdep.c: Update.
3409 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3411 2003-06-26 Andreas Jaeger <aj@suse.de>
3413 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3414 of SSE registers so that varargs functions work. Rework handling
3415 of passing arguments on the stack.
3416 (x86_64_store_return_value): Return double and float values in SSE
3419 2003-06-24 Michael Chastain <mec@shout.net>
3421 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3422 the "constructor breakpoints ignored" bug.
3424 2003-06-25 David Carlton <carlton@kealia.com>
3426 * MAINTAINERS: Update e-mail address.
3428 2003-06-24 Jim Blandy <jimb@redhat.com>
3430 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3432 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3434 (ppc_linux_init_abi): Register it as the
3435 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3437 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3438 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3441 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3442 (ppc64_standard_linkage_target): Use it.
3444 2003-06-23 Andrew Cagney <cagney@redhat.com>
3446 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3447 for 0 "int0" and 4 "int32" sized registers.
3448 * gdbtypes.c (builtin_type_int0): Define.
3449 (build_gdbtypes): Initialize builtin_type_int0.
3450 * gdbtypes.h (builtin_type_int0): Declare.
3452 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3454 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3455 as characters are unsigned.
3457 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3460 * dwarfread.c (struct_type): Skip static fields without crashing.
3462 2003-06-22 Andrew Cagney <cagney@redhat.com>
3464 GDB 6.0 branch created.
3466 * PROBLEMS: Update. Empty.
3469 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3471 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3472 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3474 2003-06-22 Andrew Cagney <cagney@redhat.com>
3476 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3477 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3480 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3482 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3485 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3487 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3488 argument of val_print.
3489 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3490 to the address argument of baseclass_offset or target_read_memory.
3491 Do add it to the argument of cp_print_value_fields.
3493 2003-06-21 Andrew Cagney <cagney@redhat.com>
3495 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3496 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3497 instead of 0..NUM_REGS.
3498 (mips_register_reggroup_p): New function.
3499 (mips_pseudo_register_write): New function.
3500 (mips_pseudo_register_read): New function.
3501 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3502 based on the register's type.
3503 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3505 (mips_get_saved_register): Simplify. Assert that REGNO is a
3507 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3508 (mips_register_type): Replace mips_register_virtual_type. Map
3509 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3511 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3512 that the register is cooked / virtual.
3513 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3514 Only get the extra info when needed.
3515 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3516 (mips32_heuristic_proc_desc): Fetch the cooked register.
3517 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3518 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3519 (mips_print_register): Use gdbarch_register_type, instead of
3520 REGISTER_VIRTUAL_TYPE.
3521 (print_gp_register_row): Use gdbarch_register_type, instead of
3522 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3523 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3524 Print the pseudo / cooked registers.
3525 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3526 Print the pseudo / cooked registers.
3527 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3528 REG_NUM is pseudo / cooked.
3529 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3530 (mips_n32n64_xfer_return_value): Ditto.
3531 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3532 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3533 (mips_register_sim_regno): New function.
3534 (mips_gdbarch_init): Set deprecated_register_byte,
3535 register_group_p, pseudo_register_write, pseudo_register_read,
3536 register_sim_regno, and num_pseudo_regs. Set register_type,
3537 instead of register_virtual_type.
3538 * Makefile.in (mips-tdep.o): Update dependencies.
3539 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3540 REGISTER_VIRTUAL_TYPE.
3541 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3542 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3543 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3544 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3545 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3547 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3549 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3550 * cli/cli-cmds.c: Include "gdb_vfork.h".
3551 (shell_escape): Use vfork.
3553 2003-06-21 Andrew Cagney <cagney@redhat.com>
3555 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3556 32 bit floating-point register saves.
3558 * frame.h (deprecated_unwind_get_saved_register): Delete.
3559 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3560 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3561 and deprecated_get_next_frame_hack instead of
3562 deprecated_unwind_get_saved_register.
3564 * mips-tdep.c (mips_dump_tdep): Do not print
3565 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3567 * frame.c (get_frame_register): New function.
3568 (frame_unwind_register_signed): New function.
3569 (get_frame_register_signed): New function.
3570 (frame_unwind_register_unsigned): New function.
3571 (get_frame_register_unsigned): New function.
3572 * frame.h: Add comments on naming schema.
3573 (get_frame_register, frame_unwind_register_signed): Declare.
3574 (get_frame_register_signed, get_frame_register_signed): Declare.
3575 (frame_unwind_register_unsigned): Declare.
3576 (get_frame_register_unsigned): Declare.
3578 2003-06-20 Theodore A. Roth <troth@openavr.org>
3580 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3582 2003-06-20 Theodore A. Roth <troth@openavr.org>
3584 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3585 (avr_read_sp): Ditto.
3587 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3589 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3590 * config/arm/nm-linux.h: Likewise.
3591 * config/arm/tm-linux.h: Likewise.
3592 * config/ia64/nm-linux.h: Likewise.
3593 * config/ia64/tm-ia64.h: Likewise.
3594 * config/s390/tm-linux.h: Likewise.
3595 * config/s390/tm-s390.h: Likewise.
3596 * s390-nat.c: Likewise.
3597 * s390-tdep.c: Likewise.
3599 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3600 * config/ia64/linux.mt: Likewise.
3601 * config/m68k/linux.mh: Likewise.
3602 * config/mips/linux.mt: Likewise.
3603 * config/powerpc/linux.mh: Likewise.
3604 * config/sh/linux.mt: Likewise.
3606 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3608 * solib.c (solib_open): Change tests for whether to search
3609 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3612 2003-06-19 Theodore A. Roth <troth@openavr.org>
3614 * avr-tdep.c (avr_frame_address): Delete function.
3615 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3616 set_gdbarch_frame_args_address.
3618 2003-06-19 Andrew Cagney <cagney@redhat.com>
3620 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3621 (REGISTER_CONVERT_FROM_TYPE): Delete.
3622 (mips_register_convert_to_type): Delete declaration.
3623 (mips_register_convert_from_type): Delete declaration.
3624 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3627 2003-06-19 Michael Snyder <msnyder@redhat.com>
3629 * linux-nat.h: New file.
3630 * linux-nat.c: Include linux-nat.h.
3631 * lin-lwp.c: Include linux-nat.h.
3632 Move struct lwp_info def to linux-nat.h.
3633 * linux-proc.c: Include linux-nat.h.
3634 (linux_make_note_section): Iterate over lwps instead of threads.
3635 (linux_do_thread_registers): Use lwp instead of merged pid.
3636 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3637 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3638 Add dependency on linux_nat_h.
3640 2003-06-19 Theodore A. Roth <troth@openavr.org>
3642 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3644 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3646 * varobj.c (get_type, get_target_type): Use check_typedef.
3648 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3650 * breakpoint.c (insert_catchpoint): Call internal_error.
3652 2003-06-19 Theodore A. Roth <troth@openavr.org>
3654 * avr-tdep.c (avr_push_dummy_code): Delete function.
3655 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3657 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3659 * arch-utils.c (default_prepare_to_proceed): Remove.
3660 (generic_prepare_to_proceed): Remove.
3661 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3662 (generic_prepare_to_proceed): Remove prototype.
3663 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3664 * gdbarch.c: Regenerate.
3665 * gdbarch.h: Regenerate.
3666 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3667 * hppah-nat.c (hppa_switched_threads): Remove.
3668 * infrun.c (prepare_to_proceed): New static function, copied from
3669 generic_prepare_to_proceed. Remove select_it argument.
3670 (proceed): Call prepare_to_proceed.
3671 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3673 (ptrace_wait): Don't set the removed variables.
3674 (hppa_switched_threads): Remove.
3675 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3676 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3677 (lin_lwp_prepare_to_proceed): Remove prototype.
3678 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3679 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3681 2003-06-18 Theodore A. Roth <troth@openavr.org>
3683 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3685 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3686 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3687 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3688 (AVR_PROLOGUE_*): Enumerate prologue types.
3689 (struct frame_extra_info): Remove.
3690 (struct avr_unwind_cache): Define.
3691 (avr_write_sp): Delete function.
3692 (avr_read_fp): Ditto.
3693 (avr_init_extra_frame_info): Ditto.
3694 (avr_pop_frame): Ditto.
3695 (avr_frame_saved_pc): Ditto.
3696 (avr_saved_pc_after_call): Ditto.
3697 (avr_push_return_address): Ditto.
3698 (avr_frame_chain): Ditto.
3699 (avr_store_struct_return): Ditto.
3700 (avr_push_arguments): Ditto.
3701 (avr_scan_prologue): Update comments. Changed to set up the info for
3702 cache unwinding. Now returns end of prologue PC.
3703 (avr_skip_prologue): Better handling of functions lacking a prologue
3704 by using avr_scan_prologue.
3705 (avr_scan_arg_moves): New function.
3706 (avr_saved_regs_unwinder): Ditto.
3707 (avr_frame_unwind_cache): Ditto.
3708 (avr_unwind_pc): Ditto.
3709 (avr_frame_this_id): Ditto.
3710 (avr_frame_prev_register): Ditto.
3711 (avr_frame_p): Ditto.
3712 (avr_frame_base_address ): Ditto.
3713 (avr_unwind_dummy_id): Ditto.
3714 (avr_push_dummy_code): Ditto.
3715 (push_stack_item): Ditto.
3716 (pop_stack_item): Ditto.
3717 (avr_push_dummy_call): Ditto.
3718 (struct stack_item): Define.
3719 (avr_frame_unwind): Declare structure.
3720 (avr_frame_base): Ditto.
3721 (avr_gdbarch_init): Remove calls to
3722 set_gdbarch_deprecated_init_frame_pc,
3723 set_gdbarch_deprecated_target_read_fp,
3724 set_gdbarch_deprecated_dummy_write_sp,
3725 set_gdbarch_deprecated_fp_regnum,
3726 set_gdbarch_deprecated_push_arguments,
3727 set_gdbarch_deprecated_push_return_address,
3728 set_gdbarch_deprecated_pop_frame,
3729 set_gdbarch_deprecated_store_struct_return,
3730 set_gdbarch_deprecated_frame_init_saved_regs,
3731 set_gdbarch_deprecated_init_extra_frame_info,
3732 set_gdbarch_deprecated_frame_chain,
3733 set_gdbarch_deprecated_frame_saved_pc,
3734 set_gdbarch_deprecated_saved_pc_after_call.
3735 Add calls to set_gdbarch_push_dummy_call,
3736 set_gdbarch_push_dummy_code,
3737 frame_unwind_append_predicate,
3738 frame_base_set_default,
3739 set_gdbarch_unwind_dummy_id,
3740 set_gdbarch_unwind_pc.
3743 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3745 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3746 registers for H8/300S.
3747 (h8300_print_registers_info): Ditto.
3748 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3750 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3752 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3753 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3754 (lin_lwp_wait): Likewise. Update comments.
3755 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3756 (pull_pid_from_list, linux_record_stopped_pid): New.
3758 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3760 * ada-lang.c (scan_discrim_bound): Name first argument.
3761 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3762 declared by ALL_BLOCK_SYMBOLS.
3764 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3766 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3767 ("regcache.h"): Include it.
3768 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3770 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3772 * NEWS: Mention gdbserver detach change and "disconnect" command.
3773 * infcmd.c (disconnect_command): New function.
3774 (_initialize_infcmd): Add ``disconnect'' command.
3775 * remote.c (remote_async_detach): Delete.
3776 (remote_detach): Merge remote_async_detach.
3777 (remote_disconnect): New.
3778 (init_remote_ops): Set to_disconnect.
3779 (init_remote_cisco_ops): Likewise.
3780 (init_remote_async_ops): Likewise. Use remote_detach.
3781 * target.c (cleanup_target): Default to_disconnect.
3782 (update_current_target): Inherit to_disconnect.
3783 (target_disconnect, debug_to_disconnect): New functions.
3784 (setup_target_debug): Set to_disconnect.
3785 * target.h (struct target_ops): Add to_disconnect.
3786 (target_disconnect): Add prototype.
3788 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3790 * breakpoint.c (insert_catchpoint): New function.
3791 (insert_breakpoints): Use catch_exceptions to call
3792 insert_catchpoint. Disable catchpoints if they fail to insert.
3794 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3796 * symfile.c (reread_symbols): Clear sym_private.
3798 2003-06-17 Andrew Cagney <cagney@redhat.com>
3800 * trad-frame.h (struct frame_info): Add opaque declaration.
3801 * remote-fileio.h (struct cmd_list_element): Add opaque
3803 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3806 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3808 * remote.c (remote_prepare_to_store): Replace call to
3809 deprecated_read_register_bytes with multiple regcache_raw_read
3812 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3814 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3815 (nto_find_and_open_solib): Likewise.
3816 (nto_init_solib_absolute_prefix): Likewise.
3817 (_initialize_nto_tdep): Fix indentation.
3819 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3821 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3823 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3825 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3827 2003-06-17 Jim Blandy <jimb@redhat.com>
3829 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3831 2003-06-16 Theodore A. Roth <troth@openavr.org>
3833 * avr-tdep.c (avr_extract_return_value): New function.
3834 (avr_gdbarch_init): Set extract_return_value method.
3836 2003-06-16 Andrew Cagney <cagney@redhat.com>
3838 * frame.h (deprecated_get_next_frame_hack): Declare.
3839 * frame.c (legacy_saved_regs_prev_register): Only require
3840 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3841 there are always saved regs.
3842 (deprecated_generic_get_saved_register): Do not require
3843 DEPRECATED_FRAME_INIT_SAVED_REGS.
3844 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3845 use frame ID unwind instead.
3846 (deprecated_get_next_frame_hack): New function.
3848 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3850 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3851 (h8300_push_dummy_call): ...this function. Some minor optimization.
3852 (h8300_push_return_address): Remove.
3853 (h8300_gdbarch_init): Remove calls to
3854 set_gdbarch_deprecated_dummy_write_sp,
3855 set_gdbarch_deprecated_push_arguments and
3856 set_gdbarch_deprecated_push_return_address.
3857 Add call to set_gdbarch_push_dummy_call.
3859 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3861 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3862 (E_PSEUDO_EXR_REGNUM): Ditto.
3863 (h8300_is_argument_spill): Check for instructions moving argument
3864 registers into safe registers.
3865 (h8300_skip_prologue): Check for stm instruction to push registers
3866 used for register variables onto stack.
3867 (gdb_print_insn_h8300): Remove.
3868 (h8300_examine_prologue): Add a comment.
3869 (h8300_register_name): Take pseudo registers into account.
3870 (h8300s_register_name): Ditto.
3871 (h8300sx_register_name): Ditto.
3872 (h8300_print_register): Ditto.
3873 (h8300_print_registers_info): Define "nice" printing order.
3874 (h8300_saved_pc_after_call): Take pseudo registers into account.
3875 (h8300_register_type): Ditto. Return type used for remote connection
3876 when requesting real CCR or EXR register, return actual type when
3877 requesting pseudo CCR or EXR.
3878 (h8300_pseudo_register_read): New function.
3879 (h8300_pseudo_register_write): Ditto.
3880 (h8300_dbg_reg_to_regnum): Ditto.
3881 (h8300s_dbg_reg_to_regnum): Ditto.
3882 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3883 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3884 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3885 set_gdbarch_print_insn architecture dependent.
3886 Call set_gdbarch_pseudo_register_read and
3887 set_gdbarch_pseudo_register_write.
3888 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3890 2003-06-16 Andrew Cagney <cagney@redhat.com>
3892 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3893 * gdbarch.h, gdbarch.c: Re-generate.
3894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3895 * s390-tdep.c (s390_gdbarch_init): Update.
3896 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3897 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3898 * mips-tdep.c (mips_gdbarch_init): Update.
3899 * mcore-tdep.c (mcore_gdbarch_init): Update.
3900 * cris-tdep.c (cris_gdbarch_init): Update.
3901 * infcall.c (call_function_by_hand): Update.
3902 * ia64-tdep.c (ia64_push_arguments): Update comment.
3903 * frame.c (legacy_get_prev_frame): Do not assume
3904 SAVE_DUMMY_FRAME_TOS_P.
3905 * dummy-frame.c (find_dummy_frame): Update comment.
3907 2003-06-16 Andrew Cagney <cagney@redhat.com>
3909 * regcache.c (do_cooked_read): Do not use register_valid_p.
3911 2003-06-15 Theodore A. Roth <troth@openavr.org>
3913 * avr-tdep.c (avr_register_type): Remove a blank line.
3914 (avr_scan_prologue): Correct some comments.
3916 2003-06-15 Theodore A. Roth <troth@openavr.org>
3918 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3920 Properly scan prologues generated by gcc with the -mcall-prologues
3922 Add code to scan -mcall-prologues for mega devices.
3924 2003-06-15 Theodore A. Roth <troth@openavr.org>
3926 * avr-tdep.c (avr_register_byte): Delete function.
3927 (avr_register_raw_size): Delete function.
3928 (avr_register_virtual_size): Delete function.
3929 (avr_register_virtual_type): Delete function.
3930 (avr_register_type): New function.
3931 (avr_address_to_pointer): Remove unused code.
3932 (avr_read_fp): Need to read FP as two separate bytes due to change to
3933 avr_register_type() usage.
3934 (avr_gdbarch_init): Don't set deprecated_register_size.
3935 Don't set deprecated_register_bytes.
3936 Don't set deprecated_register_byte.
3937 Don't set deprecated_register_raw_size.
3938 Don't set deprecated_max_register_raw_size.
3939 Don't set deprecated_register_virtual_size.
3940 Don't set deprecated_max_register_virtual_size.
3941 Don't set deprecated_register_virtual_type.
3942 Set register_type method.
3944 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3946 * Makefile.in (linux-nat.o): Add rule.
3947 * linux-nat.c: New file.
3948 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3949 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3950 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3951 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3952 * config/arm/linux.mh (NATDEPFILES): Likewise.
3953 * config/i386/linux.mh (NATDEPFILES): Likewise.
3954 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3955 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3956 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3957 * config/mips/linux.mh (NATDEPFILES): Likewise.
3958 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3959 * config/s390/s390.mh (NATDEPFILES): Likewise.
3960 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3962 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3964 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3965 replace out-of-date comment.
3967 2003-06-15 Andrew Cagney <cagney@redhat.com>
3969 * rdi-share/host.h (Fail): Change to a varargs function.
3970 * remote-rdi.c (Fail): Update.
3972 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3974 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3975 (i386_convert_register_p, i386_register_to_value,
3976 i386_register_from_value): Handle types longer than 8 bytes.
3978 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3980 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3981 Move floating-point code to new function in i387-tdep.c.
3982 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3983 New functions containing code moved here from i386-tdep.c.
3984 * i387-tdep.h: Add opaque declaration for `struct type'.
3985 (i387_register_to_value, i387_value_to_register): New prototypes.
3986 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3987 (x86_64_init_abi): Set convert_register_p, register_to_value and
3988 value_to_register here.
3990 2003-06-14 Andrew Cagney <cagney@redhat.com>
3992 * mips-tdep.c (mips_register_to_value): Make static.
3993 (mips_value_to_register): Make static.
3994 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3995 * ia64-tdep.c (ia64_register_raw_size): Make static.
3996 (ia64_register_virtual_size): Make static.
3997 (ia64_register_byte): Make static.
3998 * i387-tdep.c: Include "i387-tdep.h".
3999 (print_387_control_word): Delete function.
4000 (print_387_status_word): Delete function.
4001 (print_387_status_bits): Delete function.
4002 (print_387_control_bits): Delete function.
4003 * Makefile.in (i387-tdep.o): Update dependencies.
4004 * rdi-share/host.h (Fail): Declare.
4005 * remote-rdi.c (Fail): Update to match declaration.
4007 2003-06-14 Andrew Cagney <cagney@redhat.com>
4009 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4010 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4011 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4012 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4013 * README: Delete reference to remote-array.
4014 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4015 (remote-array.o): Delete target.
4016 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4017 * remote-array.c: Delete file.
4019 2003-06-14 Andrew Cagney <cagney@redhat.com>
4020 Mark Kettenis <kettenis@gnu.org>
4022 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4023 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4024 parameter with "frame".
4025 * gdbarch.h, gdbarch.c: Re-generate.
4026 * frame.h (put_frame_register): Declare.
4027 * frame.c (put_frame_register): New function.
4028 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4029 (legacy_register_to_value): Rewrite, use "frame" to get the
4031 (legacy_value_to_register): Rewrite, use "frame" to find the
4032 register's location before storing.
4033 * arch-utils.h (legacy_convert_register_p): Update.
4034 (legacy_register_to_value, legacy_value_to_register): Update.
4035 * findvar.c (value_from_register): Rewrite, eliminate use of
4036 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4037 "frame" to REGISTER_TO_VALUE.
4038 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4039 lval_reg_frame_relative + lval_register branch of the switch. Do
4040 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4041 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4042 I386_EDI_REGNUM): New defines.
4043 (i386_next_regnum, i386_convert_register_p,
4044 i386_register_to_value, i386_value_to_register): New functions.
4045 (i386_register_convertible, i386_register_convert_to_virtual,
4046 i386_convert_to_raw): Remove functions.
4047 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4048 value_to_register instead of register_convertible,
4049 register_convert_to_virtual and register_convert_to_raw.
4050 * mips-tdep.c (mips_convert_register_p): New function.
4051 (mips_value_to_register): Replace mips_register_convert_from_type.
4052 (mips_register_to_value): Replace mips_register_convert_to_type.
4053 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4055 * alpha-tdep.c (alpha_convert_register_p): Update.
4056 (alpha_value_to_register): Update, store the register.
4057 (alpha_register_to_value): Update, fetch the register.
4059 2003-06-14 Theodore A. Roth <troth@openavr.org>
4061 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4062 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4063 Don't set deprecated_call_dummy_words.
4064 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4065 Don't set remote_translate_xfer_address.
4066 (avr_io_reg_read_command): Remove commented out debug printf.
4069 2003-06-14 Theodore A. Roth <troth@openavr.org>
4071 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4072 causes gdb to seg fault.
4074 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4076 * sparc-nat.c (fetch_inferior_registers): Correct
4077 a reference to "registers".
4079 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4081 * Makefile.in (exc_request_U_h): Define
4082 (exc_request_S_h): Likewise.
4083 (msg_reply_S_h): Likewise.
4084 (msg_U_h): Likewise.
4085 (notify_S_h): Likewise.
4086 (process_reply_S_h): Likewise.
4087 (gnu-nat.o): Depend on gdb_obstack_h
4088 * gnu-nat.c: Include "gdb_obstack.h".
4090 2003-06-13 Andrew Cagney <cagney@redhat.com>
4092 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4093 * gdbarch.h, gdbarch.c: Re-generate.
4095 2003-06-13 Andrew Cagney <cagney@redhat.com>
4097 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4098 when deprecated REGISTER macros can be deleted.
4099 * gdbarch.h, gdbarch.c: Re-generate.
4101 2003-06-13 Jim Blandy <jimb@redhat.com>
4103 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4104 Linux entry point symbols for _dl_debug_state, too.
4106 2003-06-13 Andrew Cagney <cagney@redhat.com>
4108 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4109 available, do not use the FP register, and always save the TOS.
4110 * dummy-frame.c (dummy_frame_this_id): Do not assert
4111 SAVE_DUMMY_FRAME_TOS.
4112 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4113 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4114 (i386_push_dummy_call): Add 8 to the returned SP.
4115 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4116 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4117 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4118 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4119 (x86_64_push_dummy_call): Return "sp + 16".
4120 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4121 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4122 save_dummy_frame_tos.
4124 2003-06-13 Jim Blandy <jimb@redhat.com>
4126 * frv-tdep.c (frv_use_struct_convention): Delete static
4127 declaration for function deleted in my change of 2003-06-12.
4129 2003-06-13 Theodore A. Roth <troth@openavr.org>
4131 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4132 (avr_pointer_to_address): Shift code addrs left 1 bit.
4133 (avr_convert_from_func_ptr_addr): Delete function since operation is
4134 better handled by avr_address_to_pointer and avr_pointer_to_address.
4135 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4137 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4139 From Kelley Cook <kelleycook@wideopenwest.com>:
4140 * configure.host: Accept i[34567]86 variants.
4141 * configure.tgt: Likewise.
4142 * nlm/configure.in: Likewise.
4143 * nlm/configure: Regenerated.
4145 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4147 * arm-tdep.c (solib-svr4.h): Dont' include it.
4148 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4149 * arm-linux-tdep.c: ... here. Make static.
4150 (arm_linux_init_abi): Register it.
4151 (solib-svr4.h): Include it.
4152 * Makefile.in: Update dependencies.
4153 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4154 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4156 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4158 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4159 indicate registers used for return values.
4160 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4161 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4163 (h8300_init_extra_frame_info): Ditto.
4164 (h8300_frame_locals_address): Removed.
4165 (h8300_frame_args_address): Removed.
4166 (h8300_extract_return_value): Use new regcache structure. Only care
4168 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4169 (h8300_store_return_value): Use new regcache structure. Only care
4171 (h8300h_store_return_value): Same function for 32 bit CPUs.
4172 (h8300_store_struct_return): Removed.
4173 (h8300_extract_struct_value_address): Use new regcache structure.
4174 (h8300h_extract_struct_value_address): Removed.
4175 (h8300_push_dummy_code): New function.
4176 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4177 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4178 set_gdbarch_store_return_value architecture dependent.
4179 Call set_gdbarch_push_dummy_code and
4180 set_gdbarch_extract_struct_value_address.
4181 Remove calls to set_gdbarch_frame_args_address,
4182 set_gdbarch_frame_locals_address,
4183 set_gdbarch_deprecated_store_struct_return,
4184 set_gdbarch_deprecated_extract_return_value,
4185 set_gdbarch_deprecated_extract_struct_value_address,
4186 set_gdbarch_deprecated_call_dummy_words and
4187 set_gdbarch_deprecated_sizeof_call_dummy_words.
4189 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4191 * h8300-tdep.c (h8300_register_byte): Remove.
4192 (h8300h_register_byte): Remove.
4193 (h8300_register_virtual_type): Remove. Substitute by...
4194 (h8300_register_type): New function.
4195 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4196 (h8300h_extract_struct_value_address): Ditto.
4197 (h8300_gdbarch_init): Drop calls to
4198 set_gdbarch_deprecated_register_byte and
4199 set_gdbarch_deprecated_register_virtual_type.
4200 Add call to set_gdbarch_register_type.
4202 2003-06-13 Andrew Cagney <cagney@redhat.com>
4204 * gdbarch.sh: Update comments on registers.
4205 (deprecated_register_byte): Rename register_byte.
4206 (deprecated_register_raw_size): Rename register_raw_size.
4207 (deprecated_register_virtual_size): Rename register_virtual_size.
4208 (deprecated_register_virtual_type): Rename register_virtual_type.
4209 * gdbarch.h, gdbarch.c: Re-generate.
4210 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4211 * vax-tdep.c (vax_gdbarch_init): Update.
4212 * v850-tdep.c (v850_gdbarch_init): Update.
4213 * sparc-tdep.c (sparc_gdbarch_init): Update.
4214 * sh-tdep.c (sh_gdbarch_init): Update.
4215 * s390-tdep.c (s390_gdbarch_init): Update.
4216 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4217 * ns32k-tdep.c: Update.
4218 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4219 * mips-tdep.c (mips_gdbarch_init): Update.
4220 * mcore-tdep.c (mcore_gdbarch_init): Update.
4221 * m68k-tdep.c (m68k_gdbarch_init): Update.
4222 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4223 * ia64-tdep.c (ia64_gdbarch_init): Update.
4224 * hppa-tdep.c (hppa_gdbarch_init): Update.
4225 * h8300-tdep.c (h8300_gdbarch_init): Update.
4226 * frv-tdep.c (frv_gdbarch_init): Update.
4227 * cris-tdep.c (cris_gdbarch_init): Update.
4228 * avr-tdep.c (avr_gdbarch_init): Update.
4229 * alpha-tdep.c (alpha_gdbarch_init): Update.
4230 * arm-tdep.c (arm_gdbarch_init): Update.
4232 2003-06-13 Andrew Cagney <cagney@redhat.com>
4234 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4235 mips_o32_use_struct_convention with always_use_struct_convention.
4237 2003-06-12 David Carlton <carlton@kealia.com>
4239 * cp-namespace.c (cp_set_block_scope): Comment out
4240 processing_has_namespace_info branch.
4242 2003-06-12 Jim Blandy <jimb@redhat.com>
4244 Recognize and skip 64-bit PowerPC Linux linkage functions.
4245 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4246 insn_pattern, insns_match_pattern, d_field, ds_field): New
4247 functions, macros, and types for working with PPC instructions.
4248 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4249 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4250 ppc64_skip_trampoline_code): New functions, variables, and macros
4251 for recognizing and skipping linkage functions.
4252 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4253 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4255 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4256 register offsets for both the 32- and 64-bit interfaces.
4258 Actually finish the job started by my change of 2003-05-29.
4259 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4260 other #definition of this.
4261 (ppc_linux_skip_trampoline_code): Remove declaration.
4262 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4264 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4267 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4268 'long' on ppc64-*-linux*.
4270 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4271 isn't #defined, assume the register doesn't exist: act as if
4272 tdep->ppc_mq_regnum were -1.
4274 * configure.host, configure.tgt: Add entries for
4275 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4277 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4280 * arch-utils.c (always_use_struct_convention): New function.
4281 * arch-utils.h (always_use_struct_convention): New prototype.
4282 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4283 (alpha_gdbarch_init): Register always_use_struct_convention,
4284 instead of alpha_use_struct_convention.
4285 * cris-tdep.c (cris_use_struct_convention): Delete.
4286 (cris_gdbarch_init): Register always_use_struct_convention,
4287 instead of cris_use_struct_convention.
4288 * frv-tdep.c (frv_use_struct_convention): Delete.
4289 (frv_gdbarch_init): Register always_use_struct_convention,
4290 instead of frv_use_struct_convention.
4291 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4292 (h8300_gdbarch_init): Register always_use_struct_convention,
4293 instead of h8300_use_struct_convention.
4294 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4295 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4296 instead of mips_o32_use_struct_convention.
4298 2003-06-12 Andrew Cagney <cagney@redhat.com>
4300 * wince.c: Include "mips-tdep.h".
4301 * mips-tdep.h (mips_next_pc): Declare.
4302 * mcore-tdep.c: Make more local functions static.
4303 * Makefile.in (wince.o): Update dependencies.
4305 2003-06-12 David Carlton <carlton@kealia.com>
4307 * symtab.c (lookup_symbol_aux_minsyms): Replace
4308 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4309 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4310 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4311 SYMBOL_NATURAL_NAME.
4313 2003-06-12 Andreas Schwab <schwab@suse.de>
4315 * Makefile.in (tuiDisassem.o): Update dependencies.
4317 2003-06-12 David Carlton <carlton@bactrian.org>
4319 * symtab.h: Delete declaration of make_symbol_overload_list.
4320 Add declaration of lookup_partial_symbol.
4321 * symtab.c (remove_params): Move to cp-support.c.
4322 (overload_list_add_symbol, make_symbol_overload_list)
4323 (sym_return_val_size, sym_return_val_index): Ditto.
4324 (lookup_partial_symbol): Make extern.
4325 * cp-support.h: Add declaration of make_symbol_overload_list.
4326 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4327 symtab.h, and block.h.
4328 (remove_params): Move here from symtab.c.
4329 (overload_list_add_symbol, make_symbol_overload_list)
4330 (sym_return_val_size, sym_return_val_index): Ditto.
4331 * valops.c: Include cp-support.h.
4332 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4333 frame_h, and block_h.
4334 (valops.o): Depend on cp_support_h.
4336 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4338 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4339 substitute by NUM_REGS throughout.
4340 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4341 (h8300s_register_name): New function for H8S registers.
4342 (h8300sx_register_name): Ditto for H8SX registers.
4343 (h8300_print_register): Revise register printing, avoid depending
4345 (h8300_register_byte): Only care for H8/300 registers.
4346 (h8300h_register_byte): New function for any other architecture.
4347 (h8300_register_raw_size): Remove.
4348 (h8300_register_virtual_type): Revise to return actually useful
4350 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4351 (h8300h_extract_struct_value_address): New function for any other
4353 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4354 set_gdbarch_register_name, set_gdbarch_register_byte,
4355 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4356 Remove calls to set_gdbarch_deprecated_register_size,
4357 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4358 set_gdbarch_deprecated_max_register_raw_size,
4359 set_gdbarch_register_virtual_size and
4360 set_gdbarch_deprecated_max_register_virtual_size entirely.
4361 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4362 set_gdbarch_long_double_bit.
4364 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4366 * doublest.c (convert_doublest_to_floatformat): When dealing
4367 with the implied integer bit, only alter mant_bits if we are
4368 processing a full 32 bits of mantissa.
4370 2003-06-11 David Carlton <carlton@bactrian.org>
4372 * dictionary.h: New.
4373 * dictionary.c: New.
4374 * block.h: Add opaque declaration for struct dictionary.
4375 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4377 (BLOCK_DICT): New macro.
4378 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4379 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4381 (ALL_BLOCK_SYMBOLS): Update definition.
4382 * Makefile.in (SFILES): Add dictionary.c.
4383 (dictionary_h): New.
4384 (COMMON_OBS): Add dictionary.o.
4385 (dictionary.o): New.
4386 (ada-lang.o): Depend on dictionary_h.
4387 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4388 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4389 (mi-cmd-stack.o): Ditto.
4390 (gdbtk-cmds.o): Update dependencies.
4391 (gdbtk-stack.o): Ditto.
4392 * ada-lang.c: Include dictionary.h.
4393 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4394 (fill_in_ada_prototype, debug_print_block): Ditto.
4395 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4396 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4398 * mdebugread.c: Include dictionary.h.
4399 (struct parse_stack): Delete 'maxsyms' member.
4400 (parse_symbol): Update calls to new_block. Delete calls to
4401 shrink_block. Use dictionary methods.
4402 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4403 Update calls to new_symtab. Don't maintain maxsyms data.
4404 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4405 (add_symbol): Just call dict_add_symbol.
4406 (new_symtab): Delete 'maxsyms' argument.
4407 (new_symtab): Update calls to new_block.
4408 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4409 (shrink_block): Delete function.
4410 (fixup_sigtramp): Update call to new_block. Add symbol via
4412 * jv-lang.c: Include dictionary.h.
4413 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4414 appropriately. Set class_symtab->free_func. Make sure the
4415 blockvector is big enough to hold two blocks.
4416 (add_class_symtab_symbol): Use dictionary methods.
4417 (free_class_block): New function.
4418 (type_from_class): Replace explicit iteration by
4420 * symtab.h (struct symtab): Replace 'free_ptr' method by
4422 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4424 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4426 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4427 Include dictionary.h.
4428 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4429 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4431 * objfiles.c: Include dictionary.h.
4432 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4433 * buildsym.c: Include dictionary.h.
4434 (finish_block): Use dictionary methods.
4435 (end_symtab): Set free_func to NULL, not free_ptr.
4436 * tracepoint.c: Include dictionary.h.
4437 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4438 (scope_info): Ditto.
4439 * stack.c: Include dictionary.h.
4440 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4441 (print_block_frame_labels, print_frame_arg_vars)
4442 (print_frame_args): Ditto.
4443 * symmisc.c (free_symtab_block): Use dictionary methods.
4444 (dump_symtab): Ditto.
4445 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4446 Include dictionary.h.
4447 * symfile.h: Delete declarations of sort_block_syms,
4449 * symfile.c (sort_block_syms): Delete.
4450 (sort_symtab_syms): Delete.
4451 * symtab.c: Include dictionary.h.
4452 (lookup_block_symbol): Use dictionary iterators.
4453 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4454 (search_symbols, make_symbol_completion_list): Ditto.
4455 (make_symbol_overload_list): Ditto.
4456 * valops.c (value_of_local): Use dict_empty.
4457 Include dictionary.h.
4459 2003-06-11 J. Brobecker <brobecker@gnat.com>
4461 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4463 2003-06-11 David Carlton <carlton@bactrian.org>
4465 * block.h (BLOCK_SHOULD_SORT): Delete.
4466 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4468 * ada-lang.c (ada_add_block_symbols): Ditto.
4469 * symfile.c (sort_block_syms): Delete.
4470 (sort_symtab_syms): Ditto.
4471 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4473 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4474 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4475 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4476 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4477 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4478 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4479 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4481 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4483 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4486 2003-06-11 Andrew Cagney <cagney@redhat.com>
4488 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4489 REGISTER_CONVERTIBLE.
4490 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4491 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4492 * gdbarch.h, gdbarch.c: Re-generate.
4493 * arch-utils.h (deprecated_register_convertible_not): Rename
4494 generic_register_convertible_not.
4495 * arch-utils.c (deprecated_register_convertible_not): Rename
4496 generic_register_convertible.
4497 (legacy_convert_register_p, legacy_register_to_value): Update.
4498 * sh-tdep.c (sh64_push_arguments): Update.
4499 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4500 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4501 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4502 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4503 * arch-utils.c (legacy_value_to_register): Update.
4504 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4505 (rs6000_register_convert_to_raw): Make parameter "from" const.
4506 * mips-tdep.c (mips_gdbarch_init): Update.
4507 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4508 * infcmd.c (default_print_registers_info): Update.
4509 * ia64-tdep.c (ia64_gdbarch_init): Update.
4510 (ia64_register_convert_to_raw): Make parameter "from" const.
4511 * i386-tdep.c (i386_gdbarch_init): Update.
4512 (i386_register_convert_to_raw): Update.
4514 2003-06-11 Andrew Cagney <cagney@redhat.com>
4516 * remote-fileio.c: Include "remote-fileio.h".
4517 * Makefile.in (remote-fileio.o): Update dependencies.
4518 (remote_fileio_h): Fix typo.
4520 2003-06-11 Andrew Cagney <cagney@redhat.com>
4522 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4523 (xstormy16_save_dummy_frame_tos): Make static.
4524 (_initialize_xstormy16_tdep): Add declaration.
4525 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4526 * v850-tdep.c: Make local functions static.
4527 (_initialize_v850_tdep): Add declaration.
4528 * sparc-tdep.c: Make local functions static.
4529 (_initialize_sparc_tdep): Add declaration.
4530 * sh-tdep.c: Make local functions static.
4531 (_initialize_sh_tdep): Add declaration.
4532 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4533 * s390-tdep.c: Make local functions static.
4534 (_initialize_s390_tdep): Add declaration.
4535 * dbxread.c (find_stab_function_addr): Make static.
4536 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4537 * ocd.c (_initialize_remote_ocd): Add declaration.
4538 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4539 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4540 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4541 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4542 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4543 * remote-array.c (_initialize_array): Add declaration.
4544 (_initialize_remote_monitors): Add declaration.
4545 * remote-mips.c: Make local functions static.
4546 (_initialize_remote_mips): Add declaration.
4547 * mcore-tdep.c: Make all local functions static.
4548 (_initialize_mcore_tdep): Add declaration.
4549 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4550 * abug-rom.c (_initialize_abug_rom): Add declaration.
4551 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4552 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4553 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4554 * remote-est.c (_initialize_est): Add declaration.
4555 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4556 (m68hc11_call_dummy_address): Make static.
4557 * ia64-tdep.c: Make local functions static.
4558 (_initialize_ia64_tdep): Add declaration.
4559 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4560 * monitor.c (monitor_wait_filter): Make static.
4561 (_initialize_remote_monitors): Add declaration.
4562 * remote-hms.c (_initialize_remote_hms): Add declaration.
4563 * remote-e7000.c (fetch_regs_from_dump): Make static.
4564 (expect_n): Make static.
4565 (_initialize_remote_e7000): Add declaration.
4566 * ser-e7kpc.c: Always include "defs.h".
4567 (_initialize_ser_e7000pc): Add declaration.
4568 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4569 * cris-tdep.c: Make all but one function static.
4570 (_initialize_cris_tdep): Add declaration.
4571 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4572 * solib.c (update_solib_list): Make static.
4573 (_initialize_solib): Add declaration.
4574 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4575 (_initialize_avr_tdep): Add declaration.
4576 * remote-rdi.c (voiddummy): Make static.
4577 (_initialize_remote_rdi): Add declaration.
4578 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4579 * remote-rdp.c (send_rdp): Make static.
4580 (_initialize_remote_rdp): Add declaration.
4581 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4583 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4585 * remote-fileio.c: Make ari happy.
4587 2003-06-10 J. Brobecker <brobecker@gnat.com>
4589 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4590 fetching the trailing bytes of the buffer we are about to write.
4592 2003-06-10 Andrew Cagney <cagney@redhat.com>
4594 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4595 * Makefile.in (remote-fileio.o): Update dependencies.
4596 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4597 include <setjmp.h>, or <sys/types.h> conditional on USG.
4598 (remote_fio_jmp_buf): Delete global variable.
4600 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4601 Martin M. Hunt <hunt@redhat.com>
4603 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4604 (SFILES): Add remote-fileio.c.
4605 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4606 dependencies for building remote.o.
4607 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4608 * remote-fileio.h: New header file defining remote File-I/O interface.
4609 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4610 static storage class.
4611 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4613 (_initialize_remote): Call initialize_remote_fileio().
4614 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4615 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4616 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4617 (captured_main): Initialize new ui_files.
4618 * ui-file.c: Add read and fgets input functions.
4619 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4620 (null_file_read): New function.
4621 (ui_file_read): New function.
4622 (set_ui_file_read): New function.
4623 (stdio_file_read): New function.
4624 * ui-file.h: New type ui_file_read_ftype.
4625 (set_ui_file_read): Declare.
4626 (ui_file_read): Declare.
4628 2003-06-09 Andrew Cagney <cagney@redhat.com>
4630 * frame.h (deprecated_unwind_get_saved_register): Rename
4631 generic_unwind_get_saved_register, update comments.
4632 * mips-tdep.c (mips_get_saved_register): Update.
4633 * frame.c (deprecated_unwind_get_saved_register): Update.
4635 2003-06-09 Andrew Cagney <cagney@redhat.com>
4637 * vax-tdep.c (vax_frame_locals_address): Delete function.
4638 (vax_gdbarch_init): Do not set frame_locals_address.
4639 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4640 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4641 * s390-tdep.c (s390_frame_args_address): Delete function.
4642 (s390_gdbarch_init): Do not set frame_args_address or
4643 frame_locals_address.
4644 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4645 (ns32k_gdbarch_init): Do not set frame_locals_address.
4646 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4647 (hppa_frame_locals_address): Delete function.
4648 (hppa_gdbarch_init): Do not set frame_args_address, or
4649 frame_locals_address.
4650 * arm-tdep.c (arm_frame_args_address): Delete.
4651 (arm_frame_locals_address): Delete.
4652 (arm_gdbarch_init): Do not set frame_args_address, or
4653 frame_locals_address.
4655 2003-06-09 Andrew Cagney <cagney@redhat.com>
4657 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4658 * gdbarch.h, gdbarch.c: Re-generate.
4659 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4660 * arch-utils.c (frame_num_args_unknown): Delete function.
4661 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4662 (frame_info): Use FRAME_NUM_ARGS_P.
4663 * arm-tdep.c (arm_frame_num_args): Delete function.
4664 (arm_gdbarch_init): Do not set frame_num_args.
4665 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4666 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4667 (hppa_gdbarch_init): Do not set frame_num_args.
4668 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4670 frame_num_args to default frame_num_args_unknown.
4671 * v850-tdep.c (v850_gdbarch_init): Ditto.
4672 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4673 * sh-tdep.c (sh_gdbarch_init): Ditto.
4674 * s390-tdep.c (s390_gdbarch_init): Ditto.
4675 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4676 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4677 * mips-tdep.c (mips_gdbarch_init): Ditto.
4678 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4679 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4681 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4682 * i386-tdep.c (i386_gdbarch_init): Ditto.
4683 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4684 * frv-tdep.c (frv_gdbarch_init): Ditto.
4685 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4686 * cris-tdep.c (cris_gdbarch_init): Ditto.
4687 * avr-tdep.c (avr_gdbarch_init): Ditto.
4688 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4690 2003-06-09 Andrew Cagney <cagney@redhat.com>
4692 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4693 (print_frame_args): Moved to "stack.c".
4694 * stack.c: Include "gdb_assert.h".
4695 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4696 (print_frame_args): Moved from "printcmd.c".
4697 * frame.h (print_frame_args): Delete declaration.
4698 * Makefile.in (stack.o): Update dependencies.
4700 2003-06-08 Andrew Cagney <cagney@redhat.com>
4702 * frame.c (get_prev_frame): Remove reference to
4703 frame_args_address_correct in comments.
4704 * frame-base.c (default_frame_args_address): Delete code
4705 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4706 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4707 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4708 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4709 (vax_frame_args_address_correct): Delete declaration.
4711 2003-06-08 Andrew Cagney <cagney@redhat.com>
4713 * gdbarch.sh (UNWIND_SP): Add.
4714 * gdbarch.h, gdbarch.c: Re-generate.
4715 * frame.c (frame_sp_unwind): New function.
4716 (get_frame_sp): New function.
4717 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4718 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4719 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4721 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4722 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4724 2003-06-08 Andrew Cagney <cagney@redhat.com>
4726 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4729 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4730 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4731 * config/m68k/tm-sun3.h: Update.
4732 * config/m68k/tm-m68klynx.h: Update.
4733 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4735 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4736 trad_frame". Update comments.
4737 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4738 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4739 (trad_frame_register_value, trad_frame_prev_register): Update.
4741 2003-06-08 Andrew Cagney <cagney@redhat.com>
4743 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4744 from GCC's acinclude.m4.
4745 * configure.in: Check for getopt's delcaration.
4746 * aclocal.m4, config.in, configure: Re-generate.
4747 * main.c (error_init): Delete declaration.
4748 * defs.h (error_init): Declare.
4749 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4750 (rs6000_convert_from_func_ptr_addr): Make static.
4751 (_initialize_rs6000_tdep): Add declaration.
4752 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4753 (show_commands, set_verbose, show_history): Delete declaration.
4754 * top.h (set_verbose): Add declaration.
4755 (show_history, set_history, show_commands): Add declaration.
4756 (do_restore_instream_cleanup): Add declaration.
4757 * objc-lang.c (specialcmp): Make static.
4758 (print_object_command): Make static.
4759 (find_objc_msgsend): Make static.
4760 (find_objc_msgcall_submethod_helper): Make static.
4761 (find_objc_msgcall_submethod): Make static.
4762 (_initialize_objc_language): Add declaration.
4763 (find_implementation_from_class): Make static.
4764 (find_implementation): Make static.
4765 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4766 * objc-lang.h (lookup_struct_typedef): Add declaration.
4767 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4768 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4769 (do_restore_user_call_depth): Make static.
4770 (do_restore_instream_cleanup): Delete declaration.
4771 (dont_repeat): Delete declaration.
4772 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4773 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4774 * reggroups.c (_initialize_reggroup): Add declaration.
4775 * cp-support.c (_initialize_cp_support): Add declaration.
4776 * cp-abi.c (_initialize_cp_abi): Add declaration.
4777 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4778 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4779 (_initialize_gnu_v3_abi): Add declaration.
4780 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4781 (_initialize_gnu_v2_abi): Add declaration.
4782 * frame-base.c (_initialize_frame_base): Add declaration.
4783 * doublest.c (floatformat_from_length): Make static.
4784 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4785 * frame.c (create_sentinel_frame): Make static.
4786 (_initialize_frame): Add declaration.
4787 * top.c (do_catch_errors): Make static.
4788 (gdb_rl_operate_and_get_next_completion): Make static.
4789 * typeprint.c: Include "typeprint.h".
4790 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4791 (sentinel_frame_this_id): Make static.
4792 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4793 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4794 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4795 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4796 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4797 * maint.c (maintenance_print_architecture): Make static.
4798 * signals/signals.c (_initialize_signals): Add declaration.
4799 * std-regs.c (_initialize_frame_reg): Add declaration.
4800 * jv-exp.y (push_variable): ISO C definition.
4801 (push_qualified_expression_name): Ditto.
4802 * memattr.c (_initialize_mem): Add declaration.
4803 * remote.c (remote_check_watch_resources): Make static.
4804 (remote_stopped_by_watchpoint): Make static.
4805 (remote_stopped_data_address): Make static.
4806 * d10v-tdep.c (nr_dmap_regs): Make static.
4807 (a0_regnum): Make static.
4808 (d10v_frame_unwind_cache): Make static.
4809 (d10v_frame_p): Make static.
4810 * osabi.c (show_osabi): Make static.
4811 (_initialize_gdb_osabi): Add extern declaration.
4812 * gdbtypes.c (make_qualified_type): Make static.
4813 (safe_parse_type): Make static.
4814 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4815 * macrotab.c (macro_bcache_free): Make static.
4816 * interps.c (interp_set_quiet): Make static.
4817 (interpreter_exec_cmd): Make static.
4818 * stack.h (select_frame_command): New file.
4819 * stack.c: Include "stack.h".
4820 (select_frame_command_wrapper): Delete function.
4821 (select_frame_command): Make global.
4822 * infcall.c: Include "infcall.h".
4823 * linespec.c: Include "linespec.h".
4824 * symfile.c (sections_overlap): Make static.
4825 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4826 * charset.c (_initialize_charset): Add missing prototype.
4827 * regcache.c (init_legacy_regcache_descr): Make static.
4828 (do_regcache_xfree): Make static.
4829 (regcache_xfer_part): Make static.
4830 (_initialize_regcache): Add missing prototype.
4831 * breakpoint.c (parse_breakpoint_sals): Make static.
4832 (breakpoint_sals_to_pc): Make static.
4833 * interps.h (clear_interpreter_hooks): ISO C declaration.
4834 * Makefile.in (stack_h): Define.
4835 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4836 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4838 2003-06-08 Andrew Cagney <cagney@redhat.com>
4840 * Makefile.in (d10v-tdep.o): Update dependencies.
4841 (SFILES): Add trad-frame.c.
4842 (trad_frame_h): Define.
4843 (COMMON_OBS): Add trad-frame.o.
4844 (trad-frame.o): Specify dependencies.
4845 * d10v-tdep.c: Include "trad-frame.h".
4846 (saved_regs_unwinder): Delete function.
4847 (d10v_frame_prev_register): Use trad_frame_prev_register.
4848 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4849 trad_frame", delete "regs" and "prev_sp".
4850 (prologue_find_regs): Use trad-frame.
4851 * trad-frame.h, trad-frame.c: New files.
4853 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4855 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4857 2003-06-07 Adam Fedor <fedor@gnu.org>
4859 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4860 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4861 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4862 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4863 resolve_msgsend_super, resolve_msgsend_super_stret):
4866 2003-06-07 Andrew Cagney <cagney@redhat.com>
4868 * symfile.h: Re-indent, clean up comments.
4870 2003-06-07 Andrew Cagney <cagney@redhat.com>
4872 * inferior.h (deprecated_write_sp): Replace
4873 generic_target_write_sp.
4874 * regcache.c (deprecated_write_sp): Replace
4875 generic_target_write_sp.
4876 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4877 * vax-tdep.c (vax_gdbarch_init): Update.
4878 * v850-tdep.c (v850_gdbarch_init): Update.
4879 * sparc-tdep.c (sparc_gdbarch_init): Update.
4880 * sh-tdep.c (sh_gdbarch_init): Update.
4881 * s390-tdep.c (s390_gdbarch_init): Update.
4882 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4883 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4884 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4885 * mcore-tdep.c (mcore_gdbarch_init): Update.
4886 * m68k-tdep.c (m68k_gdbarch_init): Update.
4887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4888 * ia64-tdep.c (ia64_gdbarch_init): Update.
4889 * h8300-tdep.c (h8300_gdbarch_init): Update.
4890 * frv-tdep.c (frv_gdbarch_init): Update.
4891 * cris-tdep.c (cris_gdbarch_init): Update.
4892 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4894 2003-06-07 Andrew Cagney <cagney@redhat.com>
4896 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4897 Assert that PC_REGNUM is valid.
4898 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4900 2003-06-07 Andrew Cagney <cagney@redhat.com>
4902 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4903 * gdbarch.h, gdbarch.c: Regenerate.
4904 * mn10300-tdep.c: Include "gdb_assert.h".
4905 (mn10300_read_fp): New function.
4906 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4907 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4908 * ia64-tdep.c: Include "gdb_assert.h".
4909 (ia64_read_fp): New function.
4910 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4911 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4912 * regcache.c (generic_target_read_sp): Delete function.
4913 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4914 * inferior.h (generic_target_read_sp): Delete declaration.
4915 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4916 generic_target_read_sp.
4917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4918 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4919 * sh-tdep.c (sh_gdbarch_init): Ditto.
4920 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4921 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4923 2003-06-07 Andrew Cagney <cagney@redhat.com>
4925 * gdbarch.sh: Comment each field of startup_gdbarch.
4926 * gdbarch.h, gdbarch.c: Re-generate.
4928 2003-06-07 Andrew Cagney <cagney@redhat.com>
4930 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4931 * gdbarch.h, gdbarch.c: Re-generate.
4932 * regcache.c: Update comments on read_pc et.al.
4933 (generic_target_read_pc): Delete function.
4934 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4935 * inferior.h (generic_target_read_pc): Delete declaration.
4936 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4937 generic_target_read_pc.
4938 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4939 * sh-tdep.c (sh_gdbarch_init): Ditto.
4940 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4941 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4943 2003-06-07 Andrew Cagney <cagney@redhat.com>
4945 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4946 "index" with "special_local_sect". Use strcmp instead of STREQ.
4947 Append period to coments.
4949 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4951 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4952 (elfstab_offset_sections): Likewise.
4953 * gdb-stabs.h (stab_section_info): Likewise.
4954 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4955 * objfiles.c (objfile_relocate): Likewise.
4956 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4957 * remote.c (get_offsets): Likewise.
4958 (remote_cisco_objfile_relocate): Likewise.
4959 * somread.c (som_symfile_offsets): Likewise.
4960 * symfile.c (alloc_section_addr_info): New function.
4961 (build_section_addr_info_from_section_tab): Use it.
4962 (free_section_addr_info): Adjust.
4963 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4964 (syms_from_objfile): Allocate local_addr dynamically.
4965 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4967 (add_symbol_file_command): Allocate sect_opts dynamically.
4968 (reread_symbols): Avoid use of SECT_OFF_MAX.
4969 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4970 (alloc_section_addr_info): Declare it.
4971 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4972 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4974 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4976 2003-06-06 Andrew Cagney <cagney@redhat.com>
4978 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4979 (d10v_frame_unwind_cache): Do not set "return_pc".
4981 2003-06-06 Michael Snyder <msnyder@redhat.com>
4983 * h8300-tdep.c: Make tidy (long lines).
4985 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4987 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4988 to regcache_collect().
4990 2003-06-05 J. Brobecker <brobecker@gnat.com>
4992 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4993 pc_in_sigtramp multiarch method.
4994 (hppa_hpux_som_init_abi): Use it.
4995 (hppa_hpux_elf_init_abi): Likewise.
4996 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4997 macro has been multiarched.
4998 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4999 macro here, as hppa64 isn't multiarched yet.
5001 2003-06-05 Andrew Cagney <cagney@redhat.com>
5003 * Makefile.in (value_h): Add $(frame_h).
5004 * value.h: Include "frame.h".
5005 (struct value): Replace "frame_addr" with "frame_id".
5006 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5007 * values.c (allocate_value): Use VALUE_FRAME_ID.
5008 (value_copy): Use VALUE_FRAME_ID.
5009 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5010 * valops.c (value_assign): Update. Use frame_find_by_id.
5012 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5014 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5017 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5019 * thread-db.c (check_event): For create/death event breakpoints,
5020 loop through all messages to ensure that we read the message
5021 corresponding to the breakpoint we are at.
5023 2003-06-04 Michael Snyder <msnyder@redhat.com>
5025 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5027 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5029 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5030 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5031 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5032 when handling .eh_frame sections.
5034 2003-06-04 J. Brobecker <brobecker@gnat.com>
5036 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5037 prepare_to_proceed procedure instead of the hppa-specific one.
5038 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5040 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5042 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5043 * config.in: Regenerated.
5044 * configure.in: Add test for syscall function and check for
5045 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5046 * configure: Regenerated.
5047 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5049 (kill_lwp): New function that uses tkill syscall or
5050 uses kill, depending on whether threading model is nptl or not.
5051 All callers of kill() changed to use kill_lwp().
5052 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5053 see if all threads have already exited in the nptl model.
5054 (stop_and_resume_callback): New callback function used by the
5055 lin_lwp_wait thread exit handling code.
5056 (stop_wait_callback): Check for threads already having exited and
5057 delete such threads fromt the lwp list when discovered.
5058 (stop_callback): Don't assert retcode of kill call.
5060 Roland McGrath <roland@redhat.com>
5061 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5064 2003-06-03 Richard Henderson <rth@redhat.com>
5066 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5067 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5068 (alpha_sigtramp_frame_prev_register): Likewise.
5069 (alpha_heuristic_frame_prev_register): Likewise.
5070 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5072 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5073 alpha-specific register id names.
5074 (alpha_mdebug_frame_unwind_cache): Likewise.
5075 (alpha_mdebug_frame_prev_register): Likewise.
5077 2003-06-03 Richard Henderson <rth@redhat.com>
5079 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5080 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5081 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5082 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5084 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5085 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5086 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5088 * alpha-linux-tdep.c: Remove unnecessary includes.
5089 * Makefile.in (alpha-linux-tdep.o): Update.
5091 2003-06-03 Richard Henderson <rth@redhat.com>
5093 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5094 (alphabsd_fill_fpreg): Likewise.
5096 2003-06-03 J. Brobecker <brobecker@gnat.com>
5098 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5099 references to struct frame_info fields by calls to the equivalent
5100 accessors. Necessary now that frame_info is opaque.
5102 2003-06-03 J. Brobecker <brobecker@gnat.com>
5104 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5105 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5106 structure, field no longer exists.
5108 2003-06-03 J. Brobecker <brobecker@gnat.com>
5110 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5111 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5113 2003-06-03 J. Brobecker <brobecker@gnat.com>
5115 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5116 references to struct frame_info fields by calls to the equivalent
5117 accessors. Necessary now that frame_info is opaque.
5119 2003-06-03 J. Brobecker <brobecker@gnat.com>
5121 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5122 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5123 structure, field no longer exists.
5125 2003-06-03 Theodore A. Roth <troth@openavr.org>
5127 * remote.c (init_remote_state): Compute sizeof_g_packet by
5128 accumulation of the size of all registers instead of blindly using
5129 DEPRECATED_REGISTER_BYTES.
5131 2003-06-03 Michael Snyder <msnyder@redhat.com>
5133 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5134 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5137 2003-06-03 J. Brobecker <brobecker@gnat.com>
5139 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5140 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5142 2003-06-03 Andrew Cagney <cagney@redhat.com>
5144 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5145 (sparc_convert_to_raw): Delete function.
5146 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5147 register_convert_to_virtual.
5149 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5151 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5152 layer if not dealing with a statically-linked threaded program.
5154 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5156 * solib.c (solib_open): Update comment to reflect actual search order.
5158 2003-06-03 Andrew Cagney <cagney@redhat.com>
5160 * frame.c (get_frame_memory_signed): New function.
5161 (get_frame_memory, get_frame_memory_unsigned): New function.
5162 (get_frame_arch): New function.
5163 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5164 (get_frame_memory, get_frame_unsigned_memory): Declare.
5165 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5166 get_frame_memory_unsigned and get_frame_arch.
5167 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5169 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5171 * MAINTAINERS (write after approval): Add myself.
5173 2003-06-03 Jim Blandy <jimb@redhat.com>
5175 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5176 elements of gregset_t are 64 bits each, but access registers
5177 are still 32 bits, so they're packed two per gregset_t
5178 element. Unpack/pack them properly.
5180 2003-06-02 David Carlton <carlton@bactrian.org>
5182 * linespec.c (find_methods): Break out code into
5183 add_matching_methods and add_constructors.
5184 (add_matching_methods): New.
5185 (add_constructors): Ditto.
5187 2003-06-02 Andrew Cagney <cagney@redhat.com>
5189 * sparc-tdep.c (sparc_print_registers): Delete call to
5190 REGISTER_CONVERTIBLE.
5191 (sparc_gdbarch_init): Do not set register_convertible.
5192 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5193 * frv-tdep.c (frv_gdbarch_init): Ditto.
5194 * cris-tdep.c (cris_gdbarch_init): Ditto.
5196 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5198 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5199 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5200 (syms_from_objfile): Ditto.
5202 2003-06-03 Andreas Schwab <schwab@suse.de>
5204 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5205 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5207 2003-06-02 Richard Henderson <rth@redhat.com>
5209 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5210 a member of all_reggroup.
5212 2003-06-02 Richard Henderson <rth@redhat.com>
5214 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5215 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5216 (alpha_lds, alpha_sts): New.
5217 (alpha_convert_register_p): Change from _register_convertible.
5218 (alpha_register_to_value): Change from _convert_to_virtual;
5219 restructure and fail for type sizes other than 4 or 8.
5220 (alpha_value_to_register): Similarly.
5221 (alpha_extract_return_value): Use alpha_sts.
5222 (alpha_store_return_value): Use alpha_lds.
5223 (alpha_gdbarch_init): Update hooks.
5225 2003-06-02 Richard Henderson <rth@redhat.com>
5227 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5229 (alpha_sigtramp_register_address): Likewise.
5231 2003-06-02 Richard Henderson <rth@redhat.com>
5233 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5234 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5235 * alpha-tdep.h: Declare them.
5237 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5238 Remove zerobuf. Don't error on UNIQUE.
5239 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5240 (ALPHA_REGSET_UNIQUE): Provide default.
5241 (supply_gregset): Use alpha_supply_int_regs.
5242 (fill_gregset): Use alpha_fill_int_regs.
5243 (supply_fpregset): Use alpha_supply_fp_regs.
5244 (fill_fpregset): Use alpha_fill_fp_regs.
5245 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5246 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5247 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5248 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5249 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5250 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5252 2003-06-02 Richard Henderson <rth@redhat.com>
5254 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5256 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5257 (alpha_store_return_value): Likewise.
5259 2003-06-02 David Carlton <carlton@math.stanford.edu>
5261 * block.c (contained_in): Add 'const' to arguments.
5262 (block_function): Ditto.
5263 * block.h: Update declarations for block_function and
5266 2003-06-02 David Carlton <carlton@math.stanford.edu>
5268 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5269 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5270 * p-valprint.c (pascal_val_print): Ditto.
5271 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5273 2003-06-02 Richard Henderson <rth@redhat.com>
5275 * alpha-tdep.c (alpha_push_dummy_call): Use
5276 builtin_type_ieee_double_little instead of builtin_type_double.
5278 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5279 sign-extension of 32-bit values.
5280 (alpha_store_return_value): Similarly.
5282 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5283 (alpha_extract_return_value): Likewise.
5284 (alpha_store_return_value): Likewise.
5286 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5287 (alpha_store_return_value): Error on IEEE Quad floats.
5289 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5290 (alpha_extract_struct_value_address): Likewise.
5291 (alpha_store_return_value): Likewise.
5292 (alpha_store_struct_return): Remove.
5293 (alpha_gdbarch_init): Update hook registration to match.
5295 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5296 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5297 macros where appropriate.
5298 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5299 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5301 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5302 for SP, GP; void_func_ptr for PC; non-language-specific types
5304 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5306 2003-06-02 Richard Henderson <rth@redhat.com>
5308 * top.h (lim_at_start): Declare.
5309 * main.c (captured_main): Set it.
5310 * top.c (lim_at_start): Define.
5311 (command_loop): Use it instead of &environ.
5312 * event-top.c (command_handler): Likewise.
5314 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5316 * mipsnbsd-tdep.c: Update copyright years.
5317 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5319 2003-06-01 Richard Henderson <rth@redhat.com>
5321 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5322 (alpha-linux-tdep.o): Update dependencies.
5323 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5324 * alpha-mdebug-tdep.c: Remove unneeded includes.
5326 2003-06-01 Richard Henderson <rth@redhat.com>
5328 * alpha-tdep.c (alpha_register_reggroup_p): New.
5329 (alpha_gdbarch_init): Register it.
5331 2003-06-02 Andrew Cagney <cagney@redhat.com>
5333 * dwarfread.c: Eliminate "register"
5334 (decode_die_type): Eliminate assignment within "if".
5335 (struct_type, decode_array_element_type): Ditto.
5336 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5337 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5338 (decode_modified_type, completedieinfo): Ditto.
5339 * block.c: Eliminate "register".
5340 (blockvector_for_pc_sect): Eliminate assignment within "if".
5341 * cp-support.h (struct symbol): Opaque declaration.
5342 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5344 2003-06-01 Richard Henderson <rth@redhat.com>
5346 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5347 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5349 2003-06-01 Adam Fedor <fedor@gnu.org>
5351 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5352 * gdbarch.[ch]: Regenerate.
5353 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5354 (hppa_gdbarch_init): Set it in the gdbarch vector.
5355 * i386-tdep.c (i386_fetch_pointer_argument): New
5356 (i386_gdbarch_init): Set it into gdbarch.
5357 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5358 (rs6000_gdbarch_init): Set it in gdbarch.
5359 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5360 (sparc_gdbarch_init): Set it in gdbarch.
5362 2003-06-01 Andrew Cagney <cagney@redhat.com>
5364 * defs.h (extract_address): Delete declaration.
5365 * findvar.c (extract_address): Delete function.
5366 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5367 extract_address with the inline equivalent,
5368 extract_unsigned_integer.
5369 (xstormy16_extract_struct_value_address): Ditto.
5370 (xstormy16_pointer_to_address): Ditto.
5371 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5372 * v850-tdep.c (v850_push_arguments): Ditto.
5373 (v850_extract_return_value): Ditto.
5374 (v850_extract_struct_value_address): Ditto.
5375 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5376 (sparcnbsd_get_longjmp_target_64): Ditto.
5377 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5378 (get_longjmp_target): Ditto.
5379 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5380 (sh64_extract_struct_value_address): Ditto.
5381 (sh_push_arguments): Ditto.
5382 (sh64_push_arguments): Ditto.
5383 * remote-vxsparc.c (vx_read_register): Ditto.
5384 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5385 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5386 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5387 * mipsv4-nat.c (get_longjmp_target): Ditto.
5388 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5389 * mips-nat.c (get_longjmp_target): Ditto.
5390 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5391 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5392 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5393 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5394 * irix5-nat.c (get_longjmp_target): Ditto.
5395 * irix4-nat.c (get_longjmp_target): Ditto.
5396 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5397 (ia64_push_arguments): Ditto.
5398 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5399 * h8300-tdep.c (h8300_push_arguments): Ditto.
5400 (h8300_store_return_value): Ditto.
5401 (h8300_extract_struct_value_address): Ditto.
5402 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5403 (frv_push_arguments): Ditto.
5404 * avr-tdep.c (avr_pointer_to_address): Ditto.
5405 (avr_push_arguments): Ditto.
5406 * arm-tdep.c (arm_push_dummy_call): Ditto.
5407 (arm_get_longjmp_target): Ditto.
5408 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5409 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5410 (alpha_get_longjmp_target): Ditto.
5412 * solib-irix.c (extract_mips_address): Inline extract_address,
5413 replacing it with extract_signed_integer.
5414 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5415 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5416 (first_link_map_member, open_symbol_file_object): Ditto.
5417 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5418 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5419 (LM_NEXT, LM_NAME): Ditto.
5421 2003-06-01 Richard Henderson <rth@redhat.com>
5423 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5424 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5425 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5426 (alpha_cannot_store_register): Likewise.
5427 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5428 * alpha-nat.c (supply_gregset): Likewise.
5429 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5431 2003-06-01 Andrew Cagney <cagney@redhat.com>
5433 * infcall.c (call_function_by_hand): Update comment on
5434 DEPRECATED_DUMMY_WRITE_SP.
5436 * mips-tdep.c (mips_gdbarch_init): Do not set
5437 deprecated_dummy_write_sp.
5438 (mips_eabi_push_dummy_call): Set the SP register.
5439 (mips_o64_push_dummy_call): Set the SP register.
5440 (mips_o32_push_dummy_call): Set the SP register.
5441 (mips_n32n64_push_dummy_call): Set the SP register.
5443 2003-06-01 Richard Henderson <rth@redhat.com>
5445 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5446 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5447 (supply_gregset): Likewise.
5448 * alpha-tdep.c (alpha_store_return_value): Likewise.
5449 (alpha_get_longjmp_target): Likewise.
5450 (alpha_register_name): Constify array.
5451 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5452 deprecated_register_size, deprecated_register_bytes,
5453 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5454 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5455 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5457 2003-06-01 Richard Henderson <rth@redhat.com>
5459 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5460 from arg_reg_buffer to regcache to avoid double conversion.
5462 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5464 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5466 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5467 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5469 2003-06-01 Richard Henderson <rth@redhat.com>
5471 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5472 (decode_frame_entry): Set it. Skip FDE augmentation.
5474 2003-06-01 Richard Henderson <rth@redhat.com>
5476 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5477 not overlapping PC_REGNUM.
5479 2003-06-01 Richard Henderson <rth@redhat.com>
5481 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5482 alpha_push_arguments. Don't dump argument register data to
5483 the target stack. Fix float and 128-bit long double semantics.
5484 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5485 (alpha_fix_call_dummy): Remove.
5486 (alpha_call_dummy_words): Remove.
5487 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5489 2003-06-01 Richard Henderson <rth@redhat.com>
5491 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5493 2003-06-01 Andrew Cagney <cagney@redhat.com>
5495 * mips-tdep.c (is_mips16_addr): New function.
5496 (make_mips16_addr, unmake_mips16_addr): New functions.
5497 (pc_is_mips16, mips_fetch_instruction): Use.
5498 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5499 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5500 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5501 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5503 * config/mips/tm-mips.h: Update copyright.
5504 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5505 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5506 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5507 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5508 (TM_PRINT_INSN_MACH): Delete.
5509 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5511 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5512 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5513 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5514 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5515 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5516 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5517 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5518 mips*-*-riscos* and mips*-*-sysv* onto mips.
5519 * config/mips/mips64.mt: New file.
5520 * config/mips/mips.mt: New file.
5521 * config/mips/littlemips.mt: Delete file.
5522 * config/mips/decstation.mt: Delete file.
5523 * config/mips/vr4300el.mt: Delete file.
5524 * config/mips/vr5000el.mt: Delete file.
5525 * config/mips/vr5000.mt: Delete file.
5526 * config/mips/vr4100.mt: Delete file.
5527 * config/mips/vr4xxxel.mt: Delete file.
5528 * config/mips/vr4300.mt: Delete file.
5529 * config/mips/vr4xxx.mt: Delete file.
5530 * config/mips/bigmips.mt: Delete file.
5531 * config/mips/bigmips64.mt: Delete file.
5532 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5533 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5534 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5535 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5536 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5538 * config/mips/tm-irix3.h: Ditto.
5539 * config/mips/tm-mipsv4.h: Ditto.
5540 * config/mips/tm-embed.h: Ditto.
5541 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5543 * config/mips/tm-vr5000el.h: Delete file.
5544 * config/mips/tm-tx39l.h: Delete file.
5545 * config/mips/tm-vr4300el.h: Delete file.
5546 * config/mips/tm-vr4xxxel.h: Delete file.
5547 * config/mips/tm-vr4300.h: Delete file.
5548 * config/mips/tm-vr4100.h: Delete file.
5549 * config/mips/tm-vr4xxx.h: Delete file.
5550 * config/mips/tm-vr5000.h: Delete file.
5551 * config/mips/tm-embedl64.h: Delete file.
5552 * config/mips/tm-embedl.h: Delete file.
5553 * config/mips/tm-embed64.h: Delete file.
5554 * config/mips/tm-bigmips64.h: Delete file.
5555 * config/mips/tm-bigmips.h: Delete file.
5557 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5560 * shnbsd-nat.c: Include "sh-tdep.h".
5562 From Richard Henderson <rth@redhat.com>:
5563 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5565 2003-05-31 Andrew Cagney <cagney@redhat.com>
5567 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5568 forward declaration.
5569 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5570 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5571 (mips_find_saved_regs): Use set_reg_offset.
5572 (mips_frame_init_saved_regs): Delete function.
5573 (mips_pop_frame): Call mips_find_saved_regs instead of
5574 DEPRECATED_FRAME_INIT_SAVED_REGS.
5576 2003-05-31 Andrew Cagney <cagney@redhat.com>
5578 * mips-tdep.c (mips_gdbarch_init): Do not set
5579 deprecated_max_register_raw_size, register_virtual_size, and
5580 deprecated_max_register_virtual_size.
5582 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5584 * i386-tdep.c: Include "dwarf2-frame.h".
5585 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5586 * Makefile.in (i386-tdep.o): Update dependencies.
5588 * dwarf2-frame.c, dwarf2-frame.h: New files.
5589 * Makefile.in (SFILES): Add dwarf2-frame.c.
5590 (dwarf2_frame_h): Define.
5591 (COMMON_OBS): Add dwarf2-frame.o.
5592 (dwarf2-frame.o): Add dependencies.
5594 2003-05-31 Andreas Jaeger <aj@suse.de>
5596 * x86-64-linux-nat.c: Fix comment.
5598 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5600 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5603 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5604 have a sigcontext_addr handler.
5605 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5606 sigcontext_addr handler.
5608 2003-05-31 Andrew Cagney <cagney@redhat.com>
5610 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5611 (print_fp_register_row): Replace do_fp_register_row.
5612 (mips_print_fp_register): Add "file" and "frame" parameters.
5613 (mips_print_register): Add "file" and "frame" parameters.
5614 (mips_print_registers_info): Replace mips_do_registers_info.
5615 (mips_gdbarch_init): Set print_registers_info instead of
5616 deprecated_do_registers_info.
5617 (mips_read_fp_register_single): Add "frame" parameter.
5618 (mips_read_fp_register_double): Add "frame" parameter.
5620 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5622 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5623 Fixes a bug where GDB would print the wrong register names for
5624 targets without SSE.
5626 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5627 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5630 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5631 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5632 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5635 From Michal Ludvig <mludvig@suse.cz>:
5636 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5638 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5639 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5640 I386_ST0_REGNUM): Move here from...
5641 * i386-tdep.c: ... here.
5642 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5643 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5644 registers if possible.
5645 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5646 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5648 (i386bsd_sc_reg_offset): New variable.
5649 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5650 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5652 (i386fbsd_sc_reg_offset): New variable.
5653 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5655 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5657 (i386fbsd4_sc_reg_offset): New variable.
5658 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5659 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5661 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5662 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5663 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5665 (i386nbsd_sc_reg_offset): New variable.
5666 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5667 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5669 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5671 (i386obsd_sc_reg_offset): New variable.
5672 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5673 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5675 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5676 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5677 for frame pointer offset in `struct sigcontext'.
5679 2003-05-31 Andrew Cagney <cagney@redhat.com>
5681 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5682 architecture methods call_dummy_words, sizeof_call_dummy_words,
5683 push_return_address, store_struct_return, and fix_call_dummy. Set
5684 push_dummy_call instead of deprecated_push_arguments.
5685 (mips_store_struct_return): Delete function.
5686 (mips_fix_call_dummy): Delete function.
5687 (mips_push_return_address): Delete function.
5688 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5689 RA_REGNUM and T9_REGNUM.
5690 (mips_n32n64_push_dummy_call): Ditto for
5691 mips_n32n64_push_arguments.
5692 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5693 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5695 2003-05-31 Andrew Cagney <cagney@redhat.com>
5697 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5698 "dummy_addr" to "bp_addr".
5699 * infcall.c (call_function_by_hand): Pass "funaddr" to
5700 gdbarch_push_dummy_call.
5701 * gdbarch.h, gdbarch.c: Re-generate.
5702 * i386-tdep.c (i386_push_dummy_call): Update.
5703 * arm-tdep.c (arm_push_dummy_call): Update.
5704 * d10v-tdep.c (d10v_push_dummy_call): Update.
5706 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5708 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5709 variable declarations.
5710 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5711 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5712 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5713 x86_64_init_frame_pc, x86_64_init_frame_pc,
5714 x86_64_function_has_prologue): Remove prototypes.
5715 (X86_64_NUM_GREGS): New define.
5716 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5717 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5718 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5719 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5720 XMM1_REGNUM): Remove defines.
5721 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5722 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5723 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5724 X86_64_XMM1_REGNUM): New defines.
5725 (struct x86_64_register_info): Renamed from `struct
5726 register_info'. Remove `size' member.
5727 (x86_64_register_info_table): Remove variable.
5728 (x86_64_register_info): New variable.
5729 (X86_64_NUM_REGS): New define.
5730 (X86_64_NUM_GREGS): Remove define.
5731 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5732 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5734 (x86_54_dwarf2_reg_to_regnum): Remove function.
5735 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5736 (x86_64_dwarf_reg_to_regnum): New function.
5737 (x86_64_register_name): Rewrite.
5738 (x86_64_register_raw_size): Remove function.
5739 (x86_64_register_byte_table): Remove variable.
5740 (x86_64_register_byte): Remove function.
5741 (x86_64_register_virtual_type): Remove function.
5742 (x86_64_register_type): New function.
5743 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5744 x86_64_register_convert_to_raw): Remove functions.
5745 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5746 (x86_64_use_struct_convention): Make static. Adjust for renamed
5748 (x86_64_frame_init_saved_regs): Remove function.
5749 (x86_64_push_arguments): Make static. Change to accept a regcache
5751 (x86_64_store_return_value, x86_64_extract_return_value): Make
5752 static. Rewrite based on i386 counterparts.
5753 (x86_64_push_dummy_call): New function.
5754 (X86_64_NUM_SAVED_REGS): New define.
5755 (x86_64_register_number): Remove function.
5756 (x86_64_store_struct_return): Remove function.
5757 (x86_64_frameless_function_invocation,
5758 x86_64_function_has_prologue): Remove functions.
5759 (PROLOG_BUFSIZE): Remove define.
5760 (struct x86_64_frame_cache): New structure.
5761 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5762 x86_64_frame_cache, x86_64_frame_this_id,
5763 x86_64_frame_prev_register, x86_64_frame_p,
5764 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5765 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5767 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5769 (x86_64_skip_prologue): Rewrite in terms of
5770 x86_64_analyze_prologue.
5771 (x86_64_frame_base_address): New function.
5772 (x86_64_frame_base): New variable.
5773 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5774 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5775 set deprecated_fp_regnum, deprecated_register_size,
5776 deprecated_register_bytes, register_raw_size, register_byte,
5777 register_virtual_type, register_convertiable,
5778 register_convert_to_virtual, convert_to_raw,
5779 deprecated_get_saved_register, deprecated_target_read_fp,
5780 deprecated_push_arguments, deprecated_push_return_address,
5781 deprecated_pop_frame, deprecated_store_struct_return,
5782 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5783 frameless_function_invocation, deprecated_frame_saved_pc,
5784 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5785 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5786 deprecated_init_frame_pc and virtual_frame_pointer. Call
5787 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5788 and x86_64_frame_p. Call frame_base_set_default to register
5790 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5791 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5792 (_initialize_x86_64_tdep): Remove function.
5793 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5794 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5795 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5797 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5798 (x86_64_linux_sigcontext_addr): Rewrite.
5799 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5800 x86_64_linux_frame_saved_pc): Remove functions.
5801 (x86_64_linux_pc_in_sigtramp): Renamed from
5802 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5804 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5806 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5807 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5808 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5809 (x86_64_regmap): Rename to regmap.
5810 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5812 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5814 (x86_64_fxsave_offset): Remove function.
5815 (supply_fpregset): Simply call x86_64_supply_fxsave.
5816 (fill_fpregset): Simply call x86_64_fill_fxsave.
5817 (fetch_inferior_registers, store_inferior_registers): Avoid
5818 asignment in if-statement.
5819 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5820 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5821 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5822 (fetch_core_registers): Remove function.
5823 (linux_elf_core_fns): Remove.
5824 (offsetoff): Don't define.
5825 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5826 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5827 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5829 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5830 protection against multiple includes instead of NM_X86_64_h. Add
5831 various comments. Include "config/nm-linux.h". Don't include
5833 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5834 GET_THREAD_SIGNALS): Remove defines.
5835 (x86_64_register_u_addr, kernel_u_size,
5836 lin_thread_get_thread_signals): Remove prototypes.
5837 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5838 [HAVE_LINK_H]: Don't include "solib.h".
5839 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5840 * config/i386/tm-x86-64linux.h: Fix comments.
5841 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5842 x86-64-tdep.o): Update dependencies.
5844 2003-05-30 Andrew Cagney <cagney@redhat.com>
5846 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5847 Change parameter type to a "struct regcache *".
5849 * gdbarch.sh: Regardless of the multi-arch level, always define
5850 the macro when not already defined.
5851 * gdbarch.h, gdbarch.c: Re-generate.
5853 2003-05-30 Richard Henderson <rth@redhat.com>
5855 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5856 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5857 (alpha_mdebug_frame_this_id): Likewise.
5858 (alpha_mdebug_frame_prev_register): Likewise.
5859 (alpha_mdebug_frame_base_address): Likewise.
5860 (alpha_mdebug_frame_locals_address): Likewise.
5861 (alpha_mdebug_frame_args_address): Likewise.
5862 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5863 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5864 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5866 (alpha_heuristic_frame_this_id): Make static.
5867 (alpha_heuristic_frame_prev_register): Likewise.
5868 (alpha_heuristic_frame_base_address): Likewise.
5869 * alpha-tdep.h: Update.
5871 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5873 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5874 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5876 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5877 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5878 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5879 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5880 I386_ST0_REGNUM): New defines.
5881 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5882 codestream_get): Remove define.
5883 (codestream_next_addr, condestream_addr, condestream_buf,
5884 codestream_off, codestream_cnt): Remove variables.
5885 (codestream_fill, codestream_seek, codestream_read): Remove
5887 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5889 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5890 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5891 i386_frame_saved_pc, i386_saved_pc_after_call,
5892 i386_frame_num_args, i386_frame_init_saved_regs,
5893 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5894 i386_push_arguments): Remove functions.
5895 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5896 functionality. Use i386_analyze_prologue instead of
5897 i386_get_frame_setup.
5898 (I386_NUM_SAVED_REGS): New define.
5899 (struct i386_frame_cache): New structure.
5900 (i386_alloc_frame_cache, i386_analyze_struct_return,
5901 i386_skip_probe, i386_analyze_frame_setup,
5902 i386_analyze_register_saves, i386_analyze_prologue,
5903 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5904 i386_frame_prev_register, i386_sigtramp_frame_cache,
5905 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5906 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5907 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5909 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5911 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5912 I386_EAX_REGNUM and I386_EDX_REGNUM.
5913 (i386_extract_return_value, i386_store_return_value): Use
5914 I386_ST0_REGNUM where appropriate.
5915 (i386_extract_struct_value_address): Rewrite to use extract_address.
5916 (i386_svr4_pc_in_sigtramp): Add comment.
5917 (i386_svr4_sigcontext_addr): Rewrite.
5918 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5920 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5921 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5922 of new defines. Set push_dummy_call, don't set
5923 deprecated_push_arguments, deprecated_push_return_address,
5924 deprecated_pop_frame. Don't set parm_boundary. Don't set
5925 deprecated_frame_chain, deprecated_frame_saved_pc,
5926 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5927 save_dummy_frame_tos, unwind_pc. Call
5928 frame_unwind_append_predicate and frame_base_set_default. Don't
5929 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5930 Don't set frameless_function_invocation. Don't set
5931 deprecated_register_bytes, deprecated_register_size,
5932 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5933 * i386-linux-tdep.c: Fix formatting in some comments.
5934 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5935 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5936 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5937 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5938 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5939 redundant parentheses.
5940 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5941 (i386_linux_sigcontext_addr): Use it. Rewrite.
5942 (find_minsym_and_objfile): Change name of second argument.
5943 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5944 changed. Use frame_pc_unwind instead of
5945 DEPRECATED_SAVED_PC_AFTER_CALL.
5946 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5947 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5948 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5950 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5952 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5953 (_initialize_i386_cygwin_tdep): New prototype.
5954 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5955 deprecated_frame_chain_valid.
5956 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5957 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5958 Rely on the SVR4 defaults.
5959 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5960 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5962 2003-05-30 Andrew Cagney <cagney@redhat.com>
5964 * infcall.c (call_function_by_hand): Always call
5965 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5967 2003-05-30 Richard Henderson <rth@redhat.com>
5969 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5972 2003-05-29 Jim Blandy <jimb@redhat.com>
5974 Use gdbarch methods for solib stuff on PowerPC Linux.
5975 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5976 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5978 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5979 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5980 giving the same effect as the #definitions above.
5982 2003-05-29 Adam Fedor <fedor@gnu.org>
5984 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5985 (find_implementation_from_class): Replace it with the standard
5986 case i.e. do nothing.
5988 2003-05-29 Richard Henderson <rth@redhat.com>
5990 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5991 (alpha_linux_sigtramp_offset): Use it. Make static.
5992 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5993 update for new frame model.
5994 * alpha-mdebug-tdep.c: New file.
5995 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5996 (alpha_osf1_init_abi): Install it.
5997 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5998 (linked_proc_desc_table): Remove.
5999 (alpha_frame_past_sigtramp_frame): Remove.
6000 (alpha_dynamic_sigtramp_offset): Remove.
6001 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6002 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6003 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6004 (push_sigtramp_desc): Remove.
6005 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6006 (alpha_cannot_store_register): Likewise.
6007 (alpha_sigcontext_addr): Remove.
6008 (alpha_find_saved_regs): Remove.
6009 (alpha_frame_init_saved_regs): Remove.
6010 (alpha_init_frame_pc_first): Remove.
6011 (read_next_frame_reg): Remove.
6012 (alpha_frame_saved_pc): Remove.
6013 (alpha_saved_pc_after_call): Remove.
6014 (temp_proc_desc, temp_saved_regs): Remove.
6015 (alpha_about_to_return): Remove.
6016 (cached_proc_desc): Remove.
6017 (alpha_frame_chain): Remove.
6018 (alpha_print_extra_frame_info): Remove.
6019 (alpha_init_extra_frame_info): Remove.
6020 (alpha_frame_locals_address): Remove.
6021 (alpha_frame_args_address): Remove.
6022 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6023 (alpha_push_dummy_frame): Remove.
6024 (alpha_pop_frame): Remove.
6025 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6026 (alpha_read_insn): New.
6027 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6028 for different insn encodings.
6029 (alpha_in_lenient_prologue): Remove.
6030 (struct alpha_sigtramp_unwind_cache): New.
6031 (alpha_sigtramp_frame_unwind_cache): New.
6032 (alpha_sigtramp_register_address): New.
6033 (alpha_sigtramp_frame_this_id): New.
6034 (alpha_sigtramp_frame_prev_register): New.
6035 (alpha_sigtramp_frame_unwind): New.
6036 (alpha_sigtramp_frame_p): New.
6037 (struct alpha_heuristic_unwind_cache): New.
6038 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6039 don't count nop insns that occur between functions.
6040 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6041 heuristic_proc_desc, but without the mdebug wrapping.
6042 (alpha_heuristic_frame_this_id): New.
6043 (alpha_heuristic_frame_prev_register): New.
6044 (alpha_heuristic_frame_unwind): New.
6045 (alpha_heuristic_frame_p): New.
6046 (alpha_heuristic_frame_base_address): New.
6047 (alpha_heuristic_frame_base): New.
6048 (alpha_unwind_dummy_id): New.
6049 (alpha_unwind_pc): New.
6050 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6051 frame related deprecated initializations; install replacements.
6052 (alpha_dump_tdep): Remove.
6053 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6054 (alpha_read_insn, alpha_after_prologue,
6055 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6056 alpha_heuristic_frame_prev_register,
6057 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6058 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6059 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6060 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6062 2003-05-29 Andrew Cagney <cagney@redhat.com>
6064 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6065 dependant on the availability of ASSERT_FUNCTION.
6066 (ASSERT_FUNCTION): Do not define when there is no function name.
6068 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6070 From Jimi X <jimix@watson.ibm.com>:
6071 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6073 2003-05-28 Jim Blandy <jimb@redhat.com>
6075 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6076 argument to ptrace to int; the system headers should give it the
6077 right type, and pointers don't fit in ints on powerpc64-*-*.
6079 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6081 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6084 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6086 * stabsread.c (dbx_lookup_type): Make static.
6088 (add_undefined_type): Ditto.
6089 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6092 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6094 * hpread.c (hpread_has_name): Make static.
6095 (hpread_psymtab_to_symtab): Ditto.
6096 (file_exists): Ditto.
6097 (hpread_call_pxdb): Ditto.
6098 (hpread_pxdb_needed): Ditto.
6099 (hpread_quick_traverse): Ditto.
6100 (hpread_get_header): Ditto.
6101 (hpread_get_lntt): Ditto.
6102 (hpread_get_slt): Ditto.
6105 2003-05-25 Andreas Schwab <schwab@suse.de>
6107 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6108 stack_align and deprecated_extra_stack_alignment_needed.
6109 (m68k_stack_align): Delete.
6111 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6112 (m68k_register_virtual_size): Likewise.
6113 (altos_skip_prologue): Remove obsolete function.
6114 (isi_frame_num_args): Likewise.
6115 (news_frame_num_args): Likewise.
6116 (m68k_fix_call_dummy): Make static.
6117 (m68k_push_dummy_frame): Likewise.
6118 (m68k_pop_frame): Likewise.
6119 (m68k_skip_prologue): Likewise.
6120 (m68k_frame_init_saved_regs): Likewise.
6121 (m68k_saved_pc_after_call): Likewise.
6122 (m68k_get_longjmp_target): Make multi-arch.
6123 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6124 structure. Register m68k_get_longjmp_target if enabled.
6125 * m68k-tdep.h (struct gdbarch_tdep): Define.
6126 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6128 * Makefile.in (config.status): Also depend on configure.tgt
6130 (m68klinux-tdep.o): Update dependencies.
6131 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6132 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6133 (M68K_LINUX_JB_PC): Define.
6134 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6135 and take additional parameter.
6136 (m68k_linux_sigtramp_saved_pc): Update.
6137 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6138 m68k_linux_pc_in_sigtramp, in_plt_section,
6139 find_solib_trampoline_target.
6140 * config/m68k/tm-linux.h: Don't include any tm headers.
6141 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6142 (JB_ELEMENT_SIZE): Likewise.
6144 (GET_LONGJMP_TARGET): Likewise.
6145 (IN_SIGTRAMP): Likewise.
6146 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6148 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6150 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6151 (sparc32_push_arguments): Re-implement by calling
6152 sparc32_do_push_arguments.
6154 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6156 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6157 SPARC_O1_REGNUM): New defines.
6158 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6159 (sparc32_store_return_value): New function.
6160 (sparc_extract_struct_value_address): Rewrite to operate on a
6162 (sparc_gdbarch_init): Don't set
6163 deprecated_extract_struct_value_address. Set
6164 extract_struct_value_address instead. Don't set
6165 deprecated_extract_return_value and deprecated_store_return_value
6166 for 32-bit targets. Set extract_return_value and
6167 store_return_value instead.
6168 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6169 DEPRECTAED_EXTRACT_RETURN_VALUE,
6170 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6171 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6172 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6173 (sparc_store_return_value): Remove prototype.
6174 (sparc32_store_return_value): New prototype.
6175 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6178 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6180 * sparcnbsd-tdep.c: Include "gdb_string.h".
6182 2003-05-23 Andrew Cagney <cagney@redhat.com>
6184 * p-valprint.c (pascal_val_print): Replace extract_address with
6185 the inline equivalent extract_unsigned_integer.
6186 * jv-valprint.c (java_value_print): Ditto.
6187 * ada-valprint.c (ada_val_print_1): Ditto.
6188 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6190 2003-05-23 Theodore A. Roth <troth@openavr.org>
6192 * blockframe.c (frameless_look_for_prologue): Remove unused
6193 after_prologue variable.
6195 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6197 * blockframe.c (get_pc_function_start): Rewrite to avoid
6198 asignments in if-statements.
6200 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6202 Committed by Elena Zannoni <ezannoni@redhat.com>.
6203 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6204 files, don't relocate absolute symbols (and do use mst_abs).
6206 2003-05-23 Andrew Cagney <cagney@redhat.com>
6208 * objc-lang.c: Include "gdb_assert.h".
6209 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6210 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6211 (gdb_check, gdb_check_fatal): Delete functions.
6212 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6214 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6215 * Makefile.in (objc-lang.o): Update dependencies.
6217 2003-05-22 Ian Lance Taylor <ian@airs.com>
6219 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6220 with fprintf_filtered, not fprintf_unfiltered.
6222 2003-05-22 Andrew Cagney <cagney@redhat.com>
6224 * stack.c (frame_info): Inline extract_address, replacing it with
6225 extract_unsigned_integer.
6226 * findvar.c (unsigned_pointer_to_address): Ditto.
6227 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6228 * dwarf2expr.c (dwarf2_read_address): Ditto.
6229 * frame.c (frame_pc_unwind): Update comment.
6230 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6232 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6234 * infptrace.c (detach): Call print_sys_errmsg rather than
6235 perror_with_name to issue warning message when errno is non-zero
6236 after calling ptrace detach.
6238 2003-05-21 J. Brobecker <brobecker@gnat.com>
6240 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6241 macro definitions from here...
6242 * hppa-tdep.c: ...to there.
6244 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6246 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6247 register_ptrace_addr(). Fix all callers.
6249 2003-05-21 Andreas Schwab <schwab@suse.de>
6251 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6253 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6255 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6256 (_initialize_m68k_linux_tdep): New function.
6257 (m68k_linux_frame_saved_pc): Make static.
6258 (m68k_linux_extract_return_value): Likewise.
6259 (m68k_linux_store_return_value): Likewise.
6260 (m68k_linux_extract_struct_value_address): Likewise.
6261 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6263 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6264 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6265 (DEPRECATED_FRAME_SAVED_PC): Remove.
6267 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6269 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6270 regset numbering rather than our own.
6272 2003-05-19 David Carlton <carlton@bactrian.org>
6274 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6276 2003-05-19 David Carlton <carlton@bactrian.org>
6278 Partial fix for PR c++/827.
6279 * cp-support.h: Include symtab.h.
6280 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6281 * cp-namespace.c: Update contributors.
6282 (cp_lookup_symbol_nonlocal): New.
6283 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6284 (lookup_symbol_file): Ditto.
6285 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6286 * block.h: Declare block_scope, block_using, block_global_block.
6287 * block.c (block_scope): New.
6288 (block_using, block_global_block): Ditto.
6289 * Makefile.in (cp_support_h): Depend on symtab_h.
6290 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6292 2003-05-19 David Carlton <carlton@bactrian.org>
6294 * language.h (struct language_defn): Add 'la_value_of_this'
6295 and 'la_lookup_symbol_nonlocal' members.
6296 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6297 lookup_symbol_static, lookup_symbol_global,
6298 lookup_symbol_aux_block.
6299 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6300 if we should search fields of this and how to do static/global
6302 (lookup_symbol_aux_block): Make extern.
6303 (basic_lookup_symbol_nonlocal): New.
6304 (lookup_symbol_static, lookup_symbol_global): Ditto.
6305 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6306 'la_lookup_symbol_nonlocal' members.
6307 * c-lang.c (c_language_defn, cplus_language_defn)
6308 (asm_language_defn, minimal_language_defn): Ditto.
6309 * jv-lang.c (java_language_defn): Ditto.
6310 * language.c (unknown_language_defn, auto_language_defn)
6311 (local_language_defn): Ditto.
6312 * m2-lang.c (m2_language_defn): Ditto.
6313 * objc-lang.c (objc_language_defn): Ditto.
6314 * scm-lang.c (scm_language_defn): Ditto.
6315 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6316 * p-lang.c (pascal_language_defn): Ditto for both.
6317 * Makefile.in (f-lang.o): Depend on value_h.
6320 2003-05-19 David Carlton <carlton@bactrian.org>
6322 * block.h: Declare block_static_block.
6323 * block.c (block_static_block): New.
6324 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6325 lookup_symbol_aux_local, calling block_static_block instead.
6326 (lookup_symbol_aux_local): Delete 'static_block' argument.
6328 2003-05-19 David Carlton <carlton@bactrian.org>
6330 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6332 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6334 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6335 register numbers mapping.
6337 2003-05-18 Adam Fedor <fedor@gnu.org>
6339 * symtab.c (completion_list_objc_symbol): New function.
6340 (make_symbol_completion_list): Use it to add ObjC symbols
6341 when looking though the list.
6342 (language_search_unquoted_string): New function.
6343 (make_file_symbol_completion_list): Use it.
6345 2003-05-18 Andreas Schwab <schwab@suse.de>
6347 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6349 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6350 as m68k_linux_extract_return_value.
6351 (DEPRECATED_STORE_RETURN_VALUE): Define as
6352 m68k_linux_store_return_value.
6353 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6354 m68k_linux_extract_struct_value_address.
6355 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6356 get_next_frame, get_frame_base, get_frame_pc.
6357 (m68k_linux_frame_saved_pc): Use get_frame_base.
6358 (m68k_linux_extract_return_value): New function.
6359 (m68k_linux_store_return_value): New function.
6360 (m68k_linux_extract_struct_value_address): New function.
6361 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6363 * c-exp.y (typebase): Remove duplicate occurence of
6364 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6365 of lookup_signed_typename.
6367 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6369 * dwarf2loc.c (find_location_expression): Change type of second
6370 argument to `size_t *'.
6371 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6374 2003-05-18 David Carlton <carlton@bactrian.org>
6376 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6377 'linkage_name'. Add comment.
6378 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6380 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6381 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6382 (lookup_block_symbol): Ditto.
6384 2003-05-16 Andrew Cagney <cagney@redhat.com>
6386 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6387 * gdbarch.h, gdbarch.c: Re-generate.
6388 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6389 * TODO (REGISTER_BYTES): Delete reference.
6390 * alpha-tdep.c (alpha_gdbarch_init): Update.
6391 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6392 * x86-64-tdep.c (x86_64_init_abi): Update.
6393 * vax-tdep.c (vax_gdbarch_init): Update.
6394 * v850-tdep.c (v850_gdbarch_init): Update.
6395 * sparc-tdep.c (sparc_gdbarch_init): Update.
6396 * sh-tdep.c (sh_gdbarch_init): Update.
6397 * s390-tdep.c (s390_gdbarch_init): Update.
6398 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6399 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6400 (ns32k_gdbarch_init_32382): Update.
6401 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6402 * mcore-tdep.c (mcore_gdbarch_init): Update.
6403 * m68k-tdep.c (m68k_gdbarch_init): Update.
6404 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6405 * ia64-tdep.c (ia64_gdbarch_init): Update.
6406 * i386-tdep.c (i386_gdbarch_init): Update.
6407 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6408 * hppa-tdep.c (hppa_gdbarch_init): Update.
6409 * h8300-tdep.c (h8300_gdbarch_init): Update.
6410 * frv-tdep.c (frv_gdbarch_init): Update.
6411 * cris-tdep.c (cris_gdbarch_init): Update.
6412 * avr-tdep.c (avr_gdbarch_init): Update.
6413 * arm-tdep.c (arm_gdbarch_init): Update.
6414 * sparc-tdep.c (sparc_pop_frame): Update.
6415 * rs6000-tdep.c (rs6000_pop_frame): Update.
6416 * remote.c (init_remote_state): Update.
6417 (remote_prepare_to_store): Update.
6418 * remote-vx.c (vx_prepare_to_store): Update.
6419 * remote-sds.c (sds_fetch_registers): Update.
6420 (sds_prepare_to_store): Update.
6421 * remote-array.c: Update.
6422 * regcache.c (init_legacy_regcache_descr): Update.
6423 (init_regcache_descr): Update.
6424 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6425 (mips_o64_extract_return_value): Update.
6426 * irix5-nat.c (fetch_core_registers): Update.
6427 * irix4-nat.c (fetch_core_registers): Update.
6428 * i386-tdep.h: Update.
6429 * hppa-tdep.c (pa_do_registers_info): Update.
6430 (pa_do_strcat_registers_info): Update.
6431 * cris-tdep.c (cris_register_bytes_ok): Update.
6432 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6433 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6434 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6435 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6436 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6437 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6438 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6439 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6440 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6441 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6442 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6443 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6444 (REGISTER_BYTES_OK): Update.
6445 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6446 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6448 2003-05-16 Ian Lance Taylor <ian@airs.com>
6450 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6451 (vax_print_insn, print_insn_arg): Remove static functions.
6452 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6453 print_insn_vax from opcodes library.
6454 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6456 2003-05-15 Andrew Cagney <cagney@redhat.com>
6458 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6459 * target.h (memory_breakpoint_from_pc): Delete declaration.
6460 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6461 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6462 * monitor.c (monitor_insert_breakpoint): Use
6463 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6464 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6465 * gdbarch.h, gdbarch.c: Re-generate.
6466 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6467 (sparc_gdbarch_init): Set breakpoint_from_pc to
6468 sparc_breakpoint_from_pc.
6469 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6470 (BREAKPOINT_FROM_PC): Define.
6471 (sparc_breakpoint_from_pc): Declare.
6472 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6473 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6474 (BREAKPOINT_FROM_PC): Define.
6475 (BREAKPOINT): Delete macro.
6476 * target.h: Update comment.
6477 * s390-tdep.c (s390_gdbarch_init): Update comments.
6478 * remote.c: Update comments.
6479 * remote-mips.c: Update comments.
6480 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6481 * mem-break.c: Update comment.
6482 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6483 (ia64_memory_insert_breakpoint): Update.
6484 * config/sparc/tm-sparc.h: Update comment.
6485 * config/pa/tm-hppa64.h: Update comment.
6486 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6487 (rs6000_breakpoint_from_pc): Update.
6488 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6489 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6490 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6491 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6492 (mips_breakpoint_from_pc): Update.
6493 (mips_dump_tdep): Update.
6495 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6496 * minsyms.c (lookup_minimal_symbol): Inline
6497 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6499 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6500 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6501 * p-lang.c (pascal_printstr): Ditto.
6502 * objc-lang.c (objc_printstr): Ditto.
6503 * m2-lang.c (m2_printstr): Ditto.
6504 * jv-valprint.c (java_print_value_fields): Ditto.
6505 * f-lang.c (f_printstr): Ditto.
6506 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6507 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6508 for repeat_count_threshold.
6509 * Makefile.in (cp-valprint.o): Update dependencies.
6511 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6513 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6514 (examine_prologue): Support looking through leaf functions, knowing
6515 they start with mov r2,r12. Support skipping over indirect stores
6516 of the input registers. Upon hitting a non-nop branch instruction
6517 or predicated instruction, bail out by setting lim_pc to the current
6518 pc value in the loop. At the end, if the lim_pc value is still
6519 beyond our calculated value and we have trust_limit set,
6520 use the lim_pc value.
6522 2003-05-15 Andrew Cagney <cagney@redhat.com>
6524 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6525 generic_find_dummy_frame.
6526 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6527 (deprecated_generic_find_dummy_frame): Update.
6528 (deprecated_read_register_dummy): Update.
6529 * frame.c (deprecated_generic_get_saved_register): Update.
6531 2003-05-15 Theodore A. Roth <troth@openavr.org>
6533 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6534 (avr_gdbarch_init): Set breakpoint_from_pc method.
6536 2003-05-15 Andrew Cagney <cagney@redhat.com>
6538 * regcache.c (build_regcache): Set deprecated_register_valid
6540 (deprecated_grub_regcache_for_register_valid): Delete function.
6541 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6544 2003-05-15 David Carlton <carlton@bactrian.org>
6546 Committed by Elena Zannoni <ezannoni@redhat.com>
6547 * symtab.c (lookup_symbol_aux): Delete calls to
6548 lookup_symbol_aux_minsyms.
6549 (lookup_symbol_aux_minsyms): Comment out function and
6550 prototype. Delete lookup by mangled name.
6552 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6554 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6555 correctly indicate an empty stack and ``stack_allocated'' to the
6556 indicate the number of elements initially allocated.
6557 (dwarf_expr_grow_stack): Simplify method for computing new
6558 stack size. Don't loop infinitely if ``stack_len'' is zero.
6559 (execute_stack_op): Move ``ctx->in_reg'' initialization
6560 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6561 be used in conjuction with DW_OP_piece. Revise error message
6564 2003-05-14 Theodore A. Roth <troth@openavr.org>
6566 * MAINTAINERS: Update my email address.
6567 * avr-tdep.c: Ditto.
6569 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6571 * symtab.h (enum domain_enum): Rename from namespace_enum.
6572 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6573 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6574 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6575 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6576 TYPES_NAMESPACE, METHODS_NAMESPACE.
6577 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6578 (struct symbol, struct partial_symbol): Rename field
6579 'namespace_enum namespace' to 'domain_enum domain'.
6580 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6581 Delete old define kludge for namespace.
6583 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6584 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6585 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6586 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6587 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6588 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6589 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6590 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6591 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6592 occurrences of the above.
6594 2003-05-14 Ian Lance Taylor <ian@airs.com>
6596 * Makefile.in (install-only): Use $(SHELL) when running
6599 2003-05-13 Ian Lance Taylor <ian@airs.com>
6601 * MAINTAINERS (write after approval): Add myself.
6603 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6604 second and third arguments.
6605 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6606 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6608 2003-05-13 Andrew Cagney <cagney@redhat.com>
6610 * defs.h (store_address): Delete declaration.
6611 findvar.c (store_address): Delete function.
6612 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6613 store_unsigned_integer.
6614 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6615 * v850-tdep.c (v850_push_arguments): Ditto.
6616 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6617 * sh-tdep.c (sh64_get_saved_register): Ditto.
6618 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6619 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6620 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6621 (mips_get_saved_register): Ditto.
6622 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6623 (find_func_descr, ia64_push_arguments): Ditto.
6624 * i386-tdep.c (i386_push_arguments): Ditto.
6625 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6626 * frv-tdep.c (frv_push_arguments): Ditto.
6627 * frame.c (legacy_saved_regs_prev_register): Ditto.
6628 (deprecated_generic_get_saved_register): Ditto.
6629 * findvar.c (unsigned_address_to_pointer): Ditto.
6630 * dwarf2read.c (dwarf2_const_value): Ditto.
6631 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6632 * alpha-tdep.c (alpha_push_arguments): Ditto.
6634 2003-05-12 J. Brobecker <brobecker@gnat.com>
6636 * NEWS: Mention that the hppa-hpux port has been partially
6637 multiarched (32bit ABIT only, so far).
6639 2003-05-11 Andrew Cagney <cagney@redhat.com>
6641 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6642 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6643 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6644 sim/testsuite/sim/arm/misaligned2.ms, and
6645 sim/testsuite/sim/arm/misaligned3.ms.
6646 * disasm.h (struct ui_file): Add opaque struct declaration.
6647 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6648 * frame.h (struct ui_file): Ditto.
6650 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6652 * value.h: Pretty print.
6654 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6656 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6658 2003-05-08 Andrew Cagney <cagney@redhat.com>
6660 * regcache.h (max_register_size): Delete declaration.
6661 * regcache.c (max_register_size): Delete function.
6662 (struct regcache_descr): Delete field "max_register_size".
6663 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6664 registers fit in MAX_REGISTER_SIZE.
6665 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6666 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6667 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6668 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6669 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6670 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6671 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6672 * dve3900-rom.c, hppa-tdep.c: Ditto.
6674 2003-05-08 David Carlton <carlton@math.stanford.edu>
6676 * valops.c (push_word): Fix typo.
6678 2003-05-08 Andrew Cagney <cagney@redhat.com>
6680 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6681 * gdbarch.h: Re-generate.
6682 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6683 (legacy_max_register_raw_size): Delete declaration.
6684 * regcache.c (legacy_max_register_raw_size): Delete function.
6685 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6686 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6687 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6688 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6689 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6690 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6691 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6692 * findvar.c, dwarf2cfi.c: Ditto.
6694 2003-05-08 Andrew Cagney <cagney@redhat.com>
6696 * mips-tdep.c (read_signed_register): New function, moved to here
6698 (read_signed_register_pid): Ditto.
6699 * regcache.c (read_signed_register_pid): Delete function, moved to
6701 (read_signed_register): Ditto.
6702 * regcache.h (read_signed_register): Delete declaration.
6703 (read_signed_register_pid): Delete declaration.
6705 2003-05-08 Andrew Cagney <cagney@redhat.com>
6707 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6708 * gdbarch.h: Re-generate.
6709 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6710 (legacy_max_register_virtual_size): Delete declaration.
6711 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6712 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6713 * tracepoint.c (memrange_sortmerge): Ditto.
6714 * sparc-tdep.c (sparc_print_registers): Ditto.
6715 * regcache.c (legacy_max_register_virtual_size): Delete function.
6717 2002-05-08 J. Brobecker <brobecker@gnat.com>
6719 * fork-child.c (escape_bang_in_quoted_argument): New function.
6720 (fork_inferior): Escape '!' characters in quoted arguments
6723 2003-05-08 J. Brobecker <brobecker@gnat.com>
6725 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6726 the language of the CU is not currently supported by GDB.
6728 2003-05-08 J. Brobecker <brobecker@gnat.com>
6730 * defs.h (language): Add language_minimal enum value.
6731 * c-lang.c (minimal_language_defn): New language definition.
6732 (_initialize_c_language): Add the new minimal language to the list
6733 of languages known to GDB.
6735 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6737 * frame.c (get_frame_type): Don't attempt to lazily initialize
6738 frame's unwinder for legacy frames.
6740 2003-05-07 Andrew Cagney <cagney@redhat.com>
6742 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6743 and "regcache" parameters.
6744 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6746 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6748 * dwarf2read.c (dwarf_decode_lines): Only use output of
6749 check_cu_functions() when calling record_line(). Do not update
6750 the current address.
6752 2003-05-07 Andrew Cagney <cagney@redhat.com>
6754 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6757 2003-05-07 Jim Blandy <jimb@redhat.com>
6759 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6760 'maint info symtabs' and 'maint info psymtabs'.
6761 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6762 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6763 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6764 Declarations updated.
6765 * maint.c (maintenance_list_command): Delete.
6766 (_initialize_maint_cmds): Update calls to add_cmd.
6767 * gdbcmd.h (maintenancelistlist): Delete declaration.
6768 * cli/cli-cmds.c (maintenancelistlist): Delete.
6769 (init_cmd_lists): Don't initialize it.
6770 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6772 2003-05-07 Andrew Cagney <cagney@redhat.com>
6774 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6776 (d10v_print_registers_info): Update.
6777 (d10v_dmap_register, d10v_imap_register): Delete functions.
6778 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6779 and "imap_register".
6780 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6781 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6782 * arch-utils.c (generic_remote_translate_xfer_address): Add
6783 "regcache" and "gdbarch" parameters.
6784 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6785 parameter. Change class to multi-arch.
6786 * gdbarch.h, gdbarch.c: Re-generate.
6787 * remote.c (remote_xfer_memory): Use
6788 gdbarch_remote_translate_xfer_address.
6790 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6792 * infrun.c (prev_pc): Move declaration ahead of proceed().
6793 (proceed): Refresh prev_pc value before resuming.
6794 (stop_stepping): Remove code to refresh prev_pc.
6796 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6798 * nto-tdep.c: Removed stray comment.
6800 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6802 * i386-nto-tdep.c: Fix old K&R function definitions.
6803 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6804 Also change add_show_from_set() call to add_setshow_cmd().
6805 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6807 2003-05-05 Andrew Cagney <cagney@redhat.com>
6809 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6810 (fprint_dummy_frames): New function.
6811 (maintenance_print_dummy_frames): New function.
6812 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6813 * frame.c (fprint_frame_id): Make global.
6814 * frame.h (fprint_frame_id): Declare.
6815 * Makefile.in (dummy-frame.o): Update dependencies.
6817 2003-05-05 Andrew Cagney <cagney@redhat.com>
6819 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6820 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6821 SIZEOF_CALL_DUMMY_WORDS.
6822 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6823 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6824 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6825 CALL_DUMMY_BREAKPOINT_OFFSET.
6826 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6827 CALL_DUMMY_START_OFFSET.
6828 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6829 * gdbarch.h, gdbarch.c: Re-generate.
6830 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6831 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6832 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6833 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6834 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6835 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6836 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6837 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6838 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6839 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6840 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6841 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6842 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6843 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6844 * config/sparc/tm-sparc.h: Update.
6846 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6848 * configure.tgt: Add i[3456]86-*-nto*.
6849 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6850 * nto-tdep.c: New file. Neutrino target support routines.
6851 * nto-tdep.h: New file. Neutrino target header.
6852 * config/tm-qnxnto.h: New file.
6853 * config/i386/i386nto.mt: New file.
6854 * config/i386/tm-i386nto.h: New file.
6856 2003-05-04 Andrew Cagney <cagney@redhat.com>
6858 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6859 (load_infrun_state): Ditto.
6860 (struct thread_info): Drop "prev_func_name" field.
6861 * thread.c (load_infrun_state): Update.
6862 (save_infrun_state): Update.
6863 * infrun.c (prev_func_name): Delete variable.
6864 (init_wait_for_inferior): Do not clear prev_func_name.
6865 (stop_stepping, keep_going, context_switch): Do not swap
6867 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6868 instead of PC_IN_SIGTRAMP.
6870 2003-05-04 Andrew Cagney <cagney@redhat.com>
6872 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6873 REGISTER_BYTE with register_offset_hack.
6874 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6875 that REGISTER_BYTE is consistent with the regcache.
6876 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6877 * gdbarch.h, gdbarch.c: Regenerate.
6879 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6881 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6882 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6884 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6886 2003-05-03 J. Brobecker <brobecker@gnat.com>
6888 From Thierry Schneider <tpschneider1@yahoo.com>
6889 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6890 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6891 (mi-cmd-symbol.o): Add rule.
6893 2003-05-03 Andrew Cagney <cagney@redhat.com>
6895 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6896 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6897 * gdbarch.h, gdbarch.c: Re-generate.
6898 * d10v-tdep.c (d10v_push_dummy_code): New function.
6899 (d10v_gdbarch_init): Set push_dummy_code.
6900 * infcall.c (legacy_push_dummy_code): New function.
6901 (generic_push_dummy_code): New function.
6902 (push_dummy_code): New function.
6903 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6904 instead of dummy_addr, to push_dummy_call. Move call to
6905 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6907 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6909 2003-05-03 Andrew Cagney <cagney@redhat.com>
6911 * disasm.h (print_insn): Declare.
6912 * disasm.c (init_gdb_disassemble_info): New function.
6913 (gdb_disassembly): Call init_gdb_disassemble_info.
6914 (gdb_print_insn): New function.
6915 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6916 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6917 * mcore-tdep.c: Include "disasm.h"
6918 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6919 * d10v-tdep.c: Include "disasm.h".
6920 (display_trace): Call gdb_print_insn, instead of print_insn.
6921 (print_insn): Delete function.
6922 * printcmd.c: Include "disasm.h".
6923 (print_insn): Delete function.
6924 (print_formatted): Call gdb_print_insn, instead of print_insn.
6925 * Makefile.in (printcmd.o): Update dependencies.
6926 (mcore-tdep.o, d10v-tdep.o): Ditto.
6928 2003-05-02 Andrew Cagney <cagney@redhat.com>
6930 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6931 PC_REGNUM, re-indent.
6932 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6933 PC_REGNUM isn't set.
6935 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6936 * gdbarch.h, gdbarch.c: Re-generate.
6937 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6938 register_virtual_size, pc_regnum, or register_bytes.
6939 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6940 (d10v_register_type): Use D10V_PC_REGNUM.
6941 (d10v_print_registers_info, d10v_read_pc): Ditto.
6942 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6943 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6945 2003-05-02 David Carlton <carlton@bactrian.org>
6947 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6948 the name with mstrsave.
6950 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6952 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6953 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6954 (host_charset_name, target_charset_name): New vars for use by
6956 (host_charset_enum, target_charset_enum): New enums for set/show
6958 (set_charset_sfunc, set_host_charset_sfunc,
6959 set_target_charset_sfunc): New functions.
6960 (set_host_charset, set_target_charset): Make static.
6961 (list_charsets, set_host_charset_command,
6962 set_target_charset_command): Delete functions.
6963 (show_charset_command): Rewrite as....
6964 (show_charset): Hook this up with the set/show command mechanism.
6965 (_initialize_charset): Change names of charsets to match the
6966 set/show enums. Use host_charset_name and target_charset_name.
6967 Use set/show mechanism for charset, host-charset, target-charset
6968 commands. Do not make 'show host-charset' and 'show
6969 target-charset' be aliases of 'show charset'.
6971 * charset.h (set_host_charset, set_target_charset): Don't export,
6972 they are not used outside the file.
6974 2003-05-01 Andrew Cagney <cagney@redhat.com>
6976 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6977 (gdb_disassembly): Make "di" non static, always initialize and
6978 cleanup. Always use dis_asm_read_memory.
6979 (gdb_dis_asm_read_memory): Delete function.
6981 2003-05-01 Andrew Cagney <cagney@redhat.com>
6983 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6984 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6986 2003-04-30 Andrew Cagney <cagney@redhat.com>
6988 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6989 "tm_print_insn_info".
6990 (TARGET_PRINT_INSN_INFO): Delete macro.
6991 (dis_asm_read_memory): Delete function declaration.
6992 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6993 (tm_print_insn_info): Delete variable definition.
6994 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6995 * gdbarch.h, gdbarch.c: Re-generate.
6996 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6997 "deprecated_tm_print_insn_info".
6998 * mcore-tdep.c (mcore_dump_insn): Ditto.
6999 * mips-tdep.c (mips_gdbarch_init): Ditto.
7000 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7001 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7002 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7003 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7004 instead of TARGET_PRINT_INSN_INFO, add comment.
7005 * s390-tdep.c (s390_get_frame_info): Instead of
7006 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7007 (s390_check_function_end, s390_is_sigreturn): Ditto.
7008 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7009 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7010 * disasm.c: Include "gdbcore.h".
7011 (_initialize_disasm): New function, initialize
7012 "deprecated_tm_print_insn_info".
7013 (deprecated_tm_print_insn_info): New variable.
7014 (dis_asm_read_memory): Moved from "corefile.c", made static.
7015 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7016 * Makefile.in (disasm.o): Update dependencies.
7018 2003-04-30 Andrew Cagney <cagney@redhat.com>
7020 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7022 2003-04-29 Adam Fedor <fedor@gnu.org>
7024 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7025 * infcall.c (find_function_addr): Make non-static.
7026 * infcall.h (find_function_addr): Declare.
7027 * Makefile.in (eval.o): Update dependencies.
7029 2003-04-28 Adam Fedor <fedor@gnu.org>
7031 * symtab.c (symbol_find_demangled_name): Check for and demangle
7033 (symbol_init_demangled_name): Init for language_objc as well.
7035 2003-04-28 Andrew Cagney <cagney@redhat.com>
7037 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7038 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7039 * gdbarch.h, gdbarch.c: Re-generate.
7040 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7041 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7042 * inferior.h (deprecated_read_fp): Rename read_fp.
7043 (generic_target_read_fp): Delete declaration.
7044 * regcache.c (generic_target_read_fp): Delete function.
7045 (deprecated_read_fp): Replace read_fp, use
7046 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7047 * d10v-tdep.c (d10v_read_fp): Delete function.
7048 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7050 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7051 deprecated_target_read_fp to generic_target_read_fp.
7052 * sh-tdep.c (sh_gdbarch_init): Ditto.
7053 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7055 * frv-tdep.c (frv_gdbarch_init): Ditto.
7057 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7058 deprecated_fp_regnum.
7059 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7060 * vax-tdep.c (vax_gdbarch_init): Ditto.
7061 * v850-tdep.c (v850_gdbarch_init): Ditto.
7062 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7063 * sh-tdep.c (sh_gdbarch_init): Ditto.
7064 * s390-tdep.c (s390_gdbarch_init): Ditto.
7065 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7066 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7067 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7068 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7069 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7070 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7071 * i386-tdep.c (i386_gdbarch_init): Ditto.
7072 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7073 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7074 * frv-tdep.c (frv_gdbarch_init): Ditto.
7075 * cris-tdep.c (cris_gdbarch_init): Ditto.
7076 * avr-tdep.c (avr_gdbarch_init): Ditto.
7077 * arm-tdep.c (arm_gdbarch_init): Ditto.
7078 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7080 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7081 * v850-tdep.c (v850_gdbarch_init): Ditto.
7082 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7083 * sh-tdep.c (sh_gdbarch_init): Ditto.
7084 * s390-tdep.c (s390_gdbarch_init): Ditto.
7085 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7086 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7087 * mips-tdep.c (mips_gdbarch_init): Ditto.
7088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7089 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7090 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7091 * frv-tdep.c (frv_gdbarch_init): Ditto.
7092 * avr-tdep.c (avr_gdbarch_init): Ditto.
7093 * arm-tdep.c (arm_gdbarch_init): Ditto.
7095 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7096 DEPRECATED_FP_REGNUM.
7097 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7098 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7099 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7100 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7101 (sparc32_register_virtual_type): Ditto.
7102 * sh-tdep.c (sh64_frame_chain): Ditto.
7103 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7104 (sh_nofp_frame_init_saved_regs): Ditto.
7105 (sh64_nofp_frame_init_saved_regs): Ditto.
7106 (sh_fp_frame_init_saved_regs): Ditto.
7107 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7108 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7109 * procfs.c (procfs_fetch_registers): Ditto.
7110 (procfs_store_registers): Ditto.
7111 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7112 (store_inferior_registers, fetch_core_registers): Ditto.
7113 (fetch_kcore_registers, clear_regs): Ditto.
7114 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7115 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7116 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7117 * nlm/i386.c (do_status): Ditto.
7118 * mipsv4-nat.c (supply_gregset): Ditto.
7119 * mips-tdep.c: Ditto for comments.
7120 * mips-nat.c (fetch_inferior_registers): Ditto.
7121 (store_inferior_registers, fetch_core_registers): Ditto.
7122 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7123 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7124 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7125 (i386_do_pop_frame, i386_register_type): Ditto.
7126 * hppa-tdep.c (hppa_frame_chain): Ditto.
7127 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7128 (hppa_pop_frame, hppa_read_fp): Ditto.
7129 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7130 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7131 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7132 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7133 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7134 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7135 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7136 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7137 * blockframe.c: Ditto for comments.
7138 * arch-utils.h: Ditto for comments.
7139 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7140 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7141 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7142 * alpha-tdep.h: Ditto for comments.
7143 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7144 (alpha_cannot_store_register): Ditto.
7145 (alpha_push_dummy_frame): Ditto.
7146 * alpha-nat.c (supply_gregset): Ditto.
7148 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7149 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7150 * config/sparc/tm-sparc.h: Update comment.
7152 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7153 deprecated_read_fp instead of TARGET_READ_FP.
7154 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7155 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7156 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7157 deprecated_read_fp instead of read_fp.
7158 * s390-tdep.c (s390_push_arguments): Ditto.
7159 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7160 * frame.h: Ditto in comments.
7161 * frame.c (legacy_get_prev_frame): Ditto.
7162 * dummy-frame.c (dummy_frame_this_id): Ditto.
7163 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7165 2003-04-28 Andrew Cagney <cagney@redhat.com>
7167 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7168 * gdbarch.h, gdbarch.c: Re-generate.
7169 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7170 * vax-tdep.c (_initialize_vax_tdep): Update.
7171 * v850-tdep.c (_initialize_v850_tdep): Update.
7172 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7173 * s390-tdep.c (_initialize_s390_tdep): Update.
7174 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7175 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7176 * mips-tdep.c (_initialize_mips_tdep): Update.
7177 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7178 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7179 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7180 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7181 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7182 * frv-tdep.c (_initialize_frv_tdep): Update.
7183 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7184 (_initialize_cris_tdep): Update.
7185 * arch-utils.c (legacy_print_insn): Update.
7186 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7188 2003-04-26 Adam Fedor <fedor@gnu.org>
7190 * linespec.c (decode_objc): New function to decode ObjC calls
7191 (decode_line_1): Check for ObjC calls (using decode_objc)
7192 * Makefile (linespec.o): Update dependencies.
7194 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7196 * breakpoint.h (struct breakpoint_ops): New.
7197 (struct breakpoint): Add ops member.
7199 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7200 (mention): Use new breakpoint ops member.
7201 (set_raw_breakpoint): Initialize ops field to NULL.
7202 (print_exception_catchpoint, print_one_exception_catchpoint)
7203 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7204 (gnu_v3_exception_catchpoint_ops): New.
7205 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7207 2003-04-25 Adam Fedor <fedor@gnu.org>
7209 * Makefile.in (COMMON_OBS): Add objc-lang.o
7211 2003-04-25 Andrew Cagney <cagney@redhat.com>
7213 * d10v-tdep.c (print_insn): Delete function.
7214 (display_trace): Use TARGET_PRINT_INSN.
7215 (_initialize_d10v_tdep): Do not set tm_print_insn.
7216 (d10v_gdbarch_init): Set print_insn.
7218 2003-04-25 Andrew Cagney <cagney@redhat.com>
7220 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7221 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7222 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7223 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7224 (nr_dmap_regs, a0_regnum): ... new functions.
7225 (d10v_print_registers_info): Use a0_regnum, use register_size.
7226 (d10v_register_byte): Delete function.
7227 (d10v_register_raw_size): Delete function.
7228 (d10v_register_type): Use a0_regnum.
7229 (d10v_print_registers_info): Use a0_regnum.
7230 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7231 (d10v_gdbarch_init): Do not set register_byte or
7232 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7233 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7235 (trace_command): Use XCALLOC.
7236 (print_insn): Delete reference to tm_print_insn.
7237 (saved_regs_unwinder): Use store_unsigned_integer instead of
7239 * frame.h (FRAME_OBSTACK_CALLOC): Define
7241 2003-04-25 David Carlton <carlton@bactrian.org>
7243 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7245 2003-04-24 Adam Fedor <fedor@gnu.org>
7247 * objc-lang.c: Include "valprint.h"
7248 * Makefile.in (objc-lang.o): Update dependencies.
7250 2003-04-24 Adam Fedor <fedor@gnu.org>
7252 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7253 architecture dependant compilation and mark as unimplemented
7254 (until they get put in the gdbarch vector).
7256 2003-04-23 David Carlton <carlton@bactrian.org>
7258 * cp-support.c (cp_find_first_component): Accept 'operator' in
7261 2003-04-23 Andrew Cagney <cagney@redhat.com>
7263 * infcall.c (call_function_by_hand): Eliminate redundant
7264 indentation. Move "saved_async" and "old_cleanups" to where they
7267 2003-04-23 Andrew Cagney <cagney@redhat.com>
7269 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7270 and "buffer". Move the "name" code to where it is needed.
7272 2003-04-23 Andrew Cagney <cagney@redhat.com>
7274 * infcall.c (call_function_by_hand): Move variables "start_sp",
7275 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7276 code to ON_STACK switch branch.
7278 2003-04-23 Andrew Cagney <cagney@redhat.com>
7280 * infcall.c (call_function_by_hand): Make declaration of "i",
7281 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7284 2003-04-23 Andrew Cagney <cagney@redhat.com>
7286 * infcall.c (call_function_by_hand): Delete variable
7287 "n_method_args". Localize "param_type"'s declaration to the loop
7288 that it is used. Reinstate code assigning to said variable -
7289 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7290 Rationalize code using "param_type".
7292 2003-04-22 Andrew Cagney <cagney@redhat.com>
7294 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7295 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7296 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7297 to DEPRECATED_PUSH_RETURN_ADDRESS.
7299 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7301 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7302 on the DWARF2 register number prior to fetching a register.
7304 2003-04-22 J. Brobecker <brobecker@gnat.com>
7306 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7307 Update all the tests using SOFT_FLOAT considering the fact that
7308 this macro was always set to 0.
7309 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7310 considering the fact that this macro was always set to 0.
7311 * hppa-tdep.h (hppa_store_return_value): Likewise.
7312 (hppa_extract_return_value): Likewise.
7314 2003-04-22 J. Brobecker <brobecker@gnat.com>
7316 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7317 the hppa-pro target only.
7319 2003-04-21 J. Brobecker <brobecker@gnat.com>
7321 Ongoing multi-arch conversion effort for HP/UX:
7322 * config/pa/tm-hppa.h: Move all macro that are no longer
7323 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7324 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7326 2003-04-21 J. Brobecker <brobecker@gnat.com>
7328 * config/pa/tm-hppa.h: Obsolete a section that was only used
7331 2003-04-21 J. Brobecker <brobecker@gnat.com>
7333 Ongoing multi-arch conversion for HP/UX.
7334 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7335 if already defined (allows hppa64 to stay non-multiarched for now).
7336 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7338 2003-04-21 Andrew Cagney <cagney@redhat.com>
7340 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7342 2003-04-21 Andrew Cagney <cagney@redhat.com>
7344 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7345 "i386_num_mmx_regs".
7347 2003-04-21 Andrew Cagney <cagney@redhat.com>
7349 * infcall.c: New file.
7350 * infcall.h: New file.
7351 * valarith.c: Include "infcall.h".
7352 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7353 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7354 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7355 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7356 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7357 (SFILES): Add "infcall.c"
7358 (COMMON_OBS): Add "infcall.o".
7359 (infcall.o): Specify dependencies.
7360 * value.h (call_function_by_hand): Delete declaration.
7361 * inferior.h (run_stack_dummy): Delete declaration.
7362 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7363 (run_stack_dummy): Move to "infcall.c", merged into
7364 call_function_by_hand.
7365 * valops.c (call_function_by_hand): Moved to "infcall.c".
7366 (find_function_addr, value_arg_coerce): Ditto.
7367 (unwindonsignal_p, coerce_float_to_double): Ditto.
7368 (_initialize_valops): Move "set/show coerce-float-to-double", and
7369 "set/show unwindonsignal" commands to "infcall.c".
7370 * v850-tdep.c, target.h: Update comments.
7371 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7372 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7373 (sh64_init_extra_frame_info): Update comments.
7374 * mn10300-tdep.c: Update comments.
7375 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7376 * config/sparc/tm-sparc.h: Update comments.
7377 * breakpoint.h: Update comments.
7378 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7379 * arm-tdep.c: Update comment.
7381 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7383 * i386-tdep.c (i386_num_register_names): New variable.
7384 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7385 (MM0_REGNUM): Remove redundant parentheses in define.
7386 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7387 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7388 i386_mxcsr_regnum_p): Remove redundant parentheses.
7389 (i386_register_name): Use i386_num_register_names.
7391 * i386-tdep.c (i386_extract_return_value,
7392 i386_store_return_value): Correct check for availability of
7393 floating-point registers.
7395 * i386-tdep.c (i386_frame_num_args): Remove function.
7396 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7398 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7399 mmx_regnum_to_fp_regnum. Adjust all callers.
7401 * i386-tdep.c (i386_get_longjmp_target): Use
7402 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7403 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7406 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7408 * core-regset.c: Update comments to reflect reality. Re-order
7410 (fetch_core_registers): Use switch instead of if. Remove
7411 redundant prototype.
7413 2003-04-18 Jim Blandy <jimb@redhat.com>
7415 * s390-tdep.c (s390_frame_align): New function.
7416 (s390_gdbarch_init): Register it with the gdbarch object.
7418 2003-04-17 Richard Henderson <rth@redhat.com>
7420 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7422 2003-04-17 Michael Snyder <msnyder@redhat.com>
7423 Karen Bennet <bennet@redhat.com>
7425 Committed by Elena Zannoni <ezannoni@redhat.com>
7426 * gdb_gcore.sh: New script to create a core dump of a process.
7428 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7430 * values.c (value_being_returned): Don't fetch the return
7431 value if the return type is void.
7433 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7435 * thread-db.c: Reindented.
7437 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7439 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7440 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7467 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7469 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7470 the size of ``long double'' to 16, instead of 8.
7472 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7474 * i386-linux-nat.c: Add some whitespace to make things more
7476 (fetch_register, store_register, fetch_inferior_registers,
7477 store_inferior_registers): Get rid of assignment in if-statement.
7478 (store_register): Fix typo in error message.
7480 2003-04-16 Andrew Cagney <cagney@redhat.com>
7482 * utils.c (xmmalloc): Always allocate something, matches
7483 libiberty/xmalloc's semantics.
7484 (xmrealloc, xmcalloc): Ditto.
7486 2003-04-16 Andrew Cagney <cagney@redhat.com>
7488 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7490 (get_frame_type): Initialize unwind and type when needed.
7491 (get_frame_id, frame_register_unwind): Ditto.
7493 2003-04-16 Andrew Cagney <cagney@redhat.com>
7495 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7497 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7498 * sparcl-stub.c: Obsolete file.
7499 * config/sparc/tm-sparclet.h: Obsolete file.
7500 * sparclet-stub.c: Obsolete file.
7501 * sparclet-rom.c: Obsolete file.
7502 * sparcl-tdep.c: Obsolete file.
7503 * config/sparc/tm-sparclite.h: Obsolete file.
7504 * config/sparc/sparclite.mt: Obsolete file.
7505 * config/sparc/sparclet.mt: Obsolete file.
7506 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7507 sparc86x-*-* obsolete.
7509 2003-04-15 David Carlton <carlton@math.stanford.edu>
7511 * Makefile.in (SFILES): Add cp-namespace.c.
7512 (COMMON_OBS): Add cp-namespace.o.
7513 (block.o): Depend on gdb_obstack_h and cp_support_h.
7514 (buildsym.o): Depend on cp_support_h.
7515 (cp-namespace.o): New.
7516 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7517 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7518 (dwarf2read.o): Depend on cp_support_h.
7519 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7520 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7521 processing_current_namespace.
7522 (read_namespace): Update processing_current_namespace; check for
7523 anonymous namespaces.
7524 (dwarf2_name): New function.
7525 (dwarf2_extension): Ditto.
7526 * cp-support.h: Update copyright, contributors.
7527 Add inclusion guards.
7528 Add opaque declaration for structs obstack, block, symbol.
7529 (struct using_direct): New struct.
7530 Add declarations for cp_find_first_component,
7531 cp_entire_prefix_len, processing_has_namespace_info,
7532 processing_current_namespace, cp_is_anonymous,
7533 cp_add_using_directive, cp_initialize_namespace,
7534 cp_finalize_namespace, cp_set_block_scope,
7535 cp_scan_for_anonymous_namespaces.
7536 * cp-namespace.c: New file.
7537 * cp-support.c: Update copyright.
7538 Include ctype.h, gdb_assert.h, gdbcmd.h.
7539 New variable maint_cplus_cmd_list.
7540 (cp_find_first_component): New function.
7541 (cp_entire_prefix_len, maint_cplus_command)
7542 (first_component_command, _initialize_cp_support): Ditto.
7543 * buildsym.c: Include cp-support.h.
7544 New variable using_list.
7545 (add_symbol_to_list): Check for anonymous namespaces.
7546 (finish_block): Set block's scope.
7547 (start_symtab): Initialize C++ namespace support.
7548 (end_symtab): Finalize C++ namespace support.
7549 * block.h: Add opaque declarations for structs
7550 block_namespace_info, using_direct, and obstack.
7551 Add declarations for block_set_scope and block_set_using.
7552 (struct block): Add 'language_specific' member.
7553 (BLOCK_NAMESPACE): New macro.
7554 * block.c: Include gdb_obstack.h and cp-support.h.
7555 (struct block_namespace_info): New struct.
7556 (block_set_scope): New function.
7557 (block_set_using, block_initialize_namespace): Ditto.
7559 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7561 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7562 (locate_base): Return early if there aren't any link map offsets.
7563 (svr4_solib_create_inferior_hook): Warn if shared library support
7566 2003-04-14 David Carlton <carlton@math.stanford.edu>
7568 * symtab.c (symbol_set_names): Add prefix when storing Java names
7569 in hash table. Fix for PR java/1039.
7571 2003-04-14 David Carlton <carlton@math.stanford.edu>
7573 * symtab.c (symbol_set_names): Rename 'name' arg to
7574 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7575 * symtab.h: Change 'name' argument in declaration of
7576 symbol_set_names to 'linkage_name'.
7577 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7579 2003-04-14 Andrew Cagney <cagney@redhat.com>
7581 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7582 return the fully sign-extended register value.
7583 (get_frame_pointer): Ditto.
7584 (mips_pop_frame): Initialize "proc_desc" after checking for a
7587 2003-04-14 Andrew Cagney <cagney@redhat.com>
7589 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7590 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7591 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7592 (mips_push_register): Delete function.
7593 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7596 2003-04-14 Jim Blandy <jimb@redhat.com>
7598 * symmisc.c: #include "gdb_regex.h".
7599 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7601 * maint.c (maintenance_list_command): New function.
7602 (_initialize_maint_cmds): Register the above as commands.
7603 * symtab.h (maintenance_list_symtabs,
7604 maintenance_list_psymtabs): New declarations.
7605 * cli/cli-cmds.c (maintenancelistlist): New variable.
7606 (init_cmd_lists): Initialize it.
7607 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7608 * gdbcmd.h (maintenancelistlist): New declaration.
7609 * Makefile.in (symmisc.o): Update dependencies.
7611 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7613 * s390-nat.c: Include asm/types.h for addr_t.
7615 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7617 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7618 actually incoming type.
7620 2003-04-13 Andrew Cagney <cagney@redhat.com>
7622 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7623 get_next_frame and get_frame_saved_regs.
7625 2003-04-13 Andrew Cagney <cagney@redhat.com>
7627 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7628 of gdbarch_num_regs.
7630 2003-04-13 Andrew Cagney <cagney@redhat.com>
7632 * frame.h: Mention what replaced what in "struct frame_info".
7633 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7634 deprecated_update_frame_base_hack and
7635 deprecated_update_frame_pc_hack.
7636 * hppa-tdep.c: Ditto.
7638 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7640 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7641 to read_reg and update its comment. Remove regnum member.
7642 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7643 Don't call read_reg when setting in_reg. Call read_reg to get
7644 the frame base if it's in a register. Return the register number
7645 on the stack instead of in the context. Remove extra arguments
7647 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7648 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7649 the register number on the expression stack.
7650 (needs_frame_read_reg): Remove extra arguments.
7652 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7654 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7656 (execute_stack_op): All callers updated.
7657 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7658 * dwarf2loc.c (find_location_expression): New function.
7659 (dwarf_expr_frame_base): Call it.
7660 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7661 (dwarf2_tracepoint_var_ref): New function, broken out from
7662 locexpr_tracepoint_var_ref.
7663 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7665 (loclist_read_variable, loclist_read_needs_frame): New functions.
7666 (loclist_describe_location, loclist_tracepoint_var_ref): New
7668 (dwarf2_loclist_funcs): New struct location_funcs.
7669 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7670 (struct dwarf2_locexpr_baton): Add comments.
7671 (dwarf2_loclist_funcs): New extern.
7672 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7673 base_address and base_known.
7674 (dwarf_loc_buffer): New variable.
7675 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7676 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7677 (dwarf2_has_info): Initialize dwarf_loc_offset.
7678 (dwarf2_build_psymtabs): Read in .debug_loc.
7679 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7681 (psymtab_to_symtab_1): Likewise. Move base address calculation
7683 (dwarf2_get_pc_bounds): ... here. Use the base address from
7685 (dwarf2_symbol_mark_computed): Handle location lists.
7687 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7689 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7690 if the linkage name demangled successfully.
7692 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7694 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7695 disassmbly_flavour): Removed.
7697 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7699 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7701 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7703 2003-04-12 Andrew Cagney <cagney@redhat.com>
7705 * frame.h (struct frame_info): Move definition from here ...
7706 * frame.c (struct frame_info): ... to here.
7708 2003-04-12 Andrew Cagney <cagney@redhat.com>
7710 * gdbthread.h (save_infrun_state): Delete parameter
7712 (struct thread_info): Delete field "prev_func_start".
7713 (load_infrun_state): Ditto.
7714 * thread.c (load_infrun_state, save_infrun_state): Update.
7715 * infrun.c (prev_func_start): Delete variable.
7716 (context_switch, init_wait_for_inferior): Update.
7717 (stop_stepping, keep_going): Update.
7719 2003-04-12 Andrew Cagney <cagney@redhat.com>
7721 * gdbarch.sh: Add missing opaque declarations.
7722 * gdbarch.h: Regnerate.
7723 * symtab.h: Add missing opaque declarations.
7724 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7725 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7726 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7727 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7728 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7729 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7730 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7731 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7732 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7733 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7734 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7735 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7736 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7738 2003-04-11 Andrew Cagney <cagney@redhat.com>
7740 * frame.c (get_frame_id): Return this frame's "id".
7741 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7743 (legacy_saved_regs_this_id): Replace function body with
7745 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7746 FRAME_OBSTACK_ZALLOC.
7747 (create_new_frame): Mark the frame ID as valid.
7749 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7751 * Makefile.in (libbfd_h): Added missing setting.
7752 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7753 according to the selected ABI.
7755 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7757 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7759 2003-04-11 Andrew Cagney <cagney@redhat.com>
7761 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7762 SAVED_PC_AFTER_CALL.
7763 * gdbarch.h, gdbarch.c: Regenerate.
7764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7765 * x86-64-tdep.c (x86_64_init_abi): Update.
7766 * vax-tdep.c (vax_gdbarch_init): Update.
7767 * v850-tdep.c (v850_gdbarch_init): Update.
7768 * sparc-tdep.c (sparc_gdbarch_init): Update.
7769 * sh-tdep.c (sh_gdbarch_init): Update.
7770 * s390-tdep.c (s390_gdbarch_init): Update.
7771 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7772 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7773 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7774 * mips-tdep.c (mips_gdbarch_init): Update.
7775 * mcore-tdep.c (mcore_gdbarch_init): Update.
7776 * m68k-tdep.c (m68k_gdbarch_init): Update.
7777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7778 * ia64-tdep.c (ia64_gdbarch_init): Update.
7779 (ia64_saved_pc_after_call): Update declaration.
7780 * i386ly-tdep.c (i386lynx_init_abi): Update.
7781 * i386-tdep.c (i386_gdbarch_init): Update.
7782 * hppa-tdep.c (hppa_gdbarch_init): Update.
7783 * h8300-tdep.c (h8300_gdbarch_init): Update.
7784 * frv-tdep.c (frv_gdbarch_init): Update.
7785 * cris-tdep.c (cris_gdbarch_init): Update.
7786 * avr-tdep.c (avr_gdbarch_init): Update.
7787 * arm-tdep.c (arm_gdbarch_init): Update.
7788 * alpha-tdep.c (alpha_gdbarch_init): Update.
7789 * ns32knbsd-nat.c (frame_num_args): Update.
7790 * ns32k-tdep.c (umax_frame_num_args): Update.
7791 * mips-tdep.c (mips_init_frame_pc_first): Update.
7792 * infrun.c (step_over_function): Update.
7793 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7794 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7795 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7796 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7797 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7798 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7799 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7800 * arch-utils.c (init_frame_pc_default): Update.
7801 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7802 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7805 2003-04-11 Andrew Cagney <cagney@redhat.com>
7807 * i387-tdep.c: Update copyright.
7808 (i387_to_double): Delete function.
7809 (double_to_i387): Delete function.
7811 2003-04-10 Andrew Cagney <cagney@redhat.com>
7813 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7814 frame's function's address. Simplify.
7815 (d10v_frame_unwind_cache): Check that the frame's function is
7818 2003-04-10 Jim Blandy <jimb@redhat.com>
7820 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7821 call to set_gdbarch_deprecated_push_arguments.
7823 2003-04-10 Andrew Cagney <cagney@redhat.com>
7825 * frame.c (fprint_frame_id): New function.
7826 (fprint_frame_type, fprint_frame): New function.
7827 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7828 (create_sentinel_frame, get_frame_id): Ditto.
7829 (frame_id_p, frame_id_eq): Ditto.
7830 (frame_id_inner, create_new_frame): Ditto.
7831 (legacy_get_prev_frame, get_prev_frame): Ditto.
7832 (deprecated_update_frame_pc_hack): Ditto.
7833 (frame_register_unwind): Ditto.
7834 (deprecated_update_frame_base_hack): Ditto.
7836 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7838 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7839 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7840 frame_chain function.
7841 * Makefile.in: Add dependencies due to above change.
7843 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7845 * blockframe.c (legacy_frame_chain_valid): Move call to
7846 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7849 2003-04-09 Andrew Cagney <cagney@redhat.com>
7851 * frame.h (struct frame_id): Replace "pc" and "base" with
7852 "stack_addr" and "code_addr". Update comments.
7853 (frame_id_build): Update parameter names and comment.
7854 (struct frame_info): Replace "id_p" and "id" with "this_id".
7855 * dummy-frame.c (dummy_frame_this_id): Update.
7856 * breakpoint.c (print_one_breakpoint): Update.
7857 * frame.c (get_frame_id): Update.
7858 (get_frame_base, frame_id_build): Update.
7859 (create_sentinel_frame, legacy_get_prev_frame): Update.
7860 (deprecated_update_frame_base_hack): Update.
7861 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7862 (frame_id_inner): Ditto.
7864 2003-04-09 Andrew Cagney <cagney@redhat.com>
7866 * defs.h (gdb_print_host_address): Make "addr" parameter a
7868 * utils.c (gdb_print_host_address): Update.
7870 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7872 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7873 register number for R0 is 0.
7875 2003-04-09 J. Brobecker <brobecker@gnat.com>
7877 * frame.h (struct gdbarch): Add opaque structure definition
7878 to avoid a compilation warning on LynxOS 4.0.
7880 2003-04-09 Andrew Cagney <cagney@redhat.com>
7882 * frame.h (struct frame_info): Delete field "pc". Replace
7883 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7885 * frame.c (frame_pc_unwind): Update.
7886 (create_sentinel_frame): Do not set "pc".
7887 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7888 (get_frame_pc): Call frame_pc_unwind.
7889 (deprecated_update_frame_pc_hack): Update.
7890 (create_new_frame): Use "pc" not "->pc".
7892 2003-04-09 Andrew Cagney <cagney@redhat.com>
7894 * frame.c (get_frame_id): Eliminate code updating "frame".
7895 (legacy_get_prev_frame): Ditto.
7896 (get_frame_base): Return id.base directly.
7897 (deprecated_update_frame_base_hack): Update "id.base".
7898 * frame.h (struct frame_info): Delete field "frame".
7900 2003-04-09 Andrew Cagney <cagney@redhat.com>
7902 * NEWS: Mention that the "Sequent family" is obsolete.
7903 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7904 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7905 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7906 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7907 * config/i386/tm-ptx4.h: Obsolete file.
7908 * config/i386/tm-ptx.h: Obsolete file.
7909 * symm-tdep.c: Obsolete file.
7910 * config/i386/symmetry.mt: Obsolete file.
7911 * config/i386/tm-symmetry.h: Obsolete file.
7912 * symm-nat.c: Obsolete file.
7913 * config/i386/nm-symmetry.h: Obsolete file.
7914 * config/i386/xm-symmetry.h: Obsolete file.
7915 * config/i386/symmetry.mh: Obsolete file.
7916 * config/i386/nm-ptx4.h: Obsolete file.
7917 * config/i386/ptx4.mh: Obsolete file.
7918 * config/i386/ptx.mt: Obsolete file.
7919 * config/i386/ptx.mh: Obsolete file.
7920 * config/i386/xm-ptx4.h: Obsolete file.
7921 * config/i386/xm-ptx.h: Obsolete file.
7923 2003-04-09 Andrew Cagney <cagney@redhat.com>
7925 Obsolete mips*-*-mach3*.
7926 * NEWS: Mention that mips*-*-mach3* is obsolete.
7927 * m3-nat.c: Obsolete file.
7928 * config/nm-m3.h: Obsolete file.
7929 * config/mips/tm-mipsm3.h: Obsolete file.
7930 * config/mips/mipsm3.mt: Obsolete file.
7931 * config/mips/mipsm3.mh: Obsolete file.
7932 * config/mips/xm-mipsm3.h: Obsolete file.
7933 * mipsm3-nat.c: Obsolete file.
7934 * configure.host: Obsolete mips-dec-mach3*.
7935 * configure.tgt: Obsolete mips*-*-mach3*.
7937 2003-04-09 Andrew Cagney <cagney@redhat.com>
7939 * doublest.h: Update copyright.
7940 (deprecated_store_floating, deprecated_extract_floating): Rename
7941 store_floating and extract_floating. Update comments.
7942 * doublest.c: Update copyright.
7943 (extract_floating_by_length): Replace extract_floating.
7944 (store_floating_by_length): Replace store_floating.
7945 (deprecated_extract_floating): New function.
7946 (deprecated_store_floating): New function.
7947 (extract_typed_floating): Call extract_floating_by_length.
7948 (store_typed_floating): Call store_floating_by_length.
7949 * x86-64-tdep.c (x86_64_store_return_value): Update.
7950 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7951 (sh64_extract_return_value): Update.
7952 (sh_sh4_register_convert_to_virtual): Update.
7953 (sh_sh64_register_convert_to_virtual): Update.
7954 (sh_sh4_register_convert_to_raw): Update.
7955 (sh_sh64_register_convert_to_raw): Update.
7956 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7957 (rs6000_register_convert_to_raw): Update.
7958 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7959 (ia64_register_convert_to_raw): Update.
7960 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7961 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7962 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7963 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7964 (alpha_register_convert_to_raw): Update.
7966 2003-04-08 Andrew Cagney <cagney@redhat.com>
7968 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7969 * gdbarch.h, gdbarch.c: Re-generate.
7970 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7971 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7972 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7973 conditionally, use frame_pc_unwind as an alternative. Add
7975 * arch-utils.c (init_frame_pc_default): Only call
7976 SAVED_PC_AFTER_CALL when available.
7978 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7980 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7981 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7982 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7983 (start_remote): Ditto.
7984 (handle_inferior_event): Ditto.
7985 (save_inferior_status): Ditto.
7986 (restore_inferior_status): Ditto.
7987 * infcmd.c (attach_command): Ditto.
7988 * fork-child.c (startup_inferior): Ditto.
7989 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7990 * alpha-tdep.c (heuristic_proc_start): Ditto.
7991 * mips-tdep.c (heuristic_proc_start): Ditto.
7992 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7993 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7994 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7995 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7996 * remote-vx.c (vx_create_inferior): Ditto.
7998 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8000 * infrun.c (stop_soon_quietly): Make it an enum, to better
8001 override the default behavior of handle_inferior_event.
8002 (clear_proceed_status): Update uses of stop_soon_quietly to
8003 reflect that it is now an enum.
8004 (start_remote): Ditto.
8005 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8006 is set to handle the new GNU/Linux kernel behavior for
8007 attach/sigstop. Update uses of stop_soon_quietly.
8008 * inferior.h (enum stop_kind): New enum.
8009 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8010 Reset normal handle_inferior_event behavior, afterwards.
8011 * fork-child.c (startup_inferior): Update.
8012 * alpha-tdep.c (heuristic_proc_start): Update.
8013 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8014 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8015 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8016 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8017 * remote-vx.c (vx_create_inferior): Update.
8018 * mips-tdep.c (heuristic_proc_start): Update.
8020 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8022 * disasm.c (dump_insns): Move variables inside loop, or they will
8023 be freed more than once, causing wild memory corruptions.
8024 (gdb_disassembly): Look for the substring "-thread",
8025 instead of "-threads" in the target name, to make sure to find
8026 the 'multi-thread' target. Also, make sure we do the right thing
8027 with the "core" target.
8029 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8031 * mips-tdep.c (mips_print_fp_register): New function, created from
8032 do_fp_register_row(). Registers are now (also) printed as hex.
8033 Only one register is printed per row.
8034 (mips_print_register, do_fp_register_row): Print floating point
8035 registers with mips_print_fp_register().
8037 2003-04-06 Andrew Cagney <cagney@redhat.com>
8039 * valprint.h (inspect_it): Add extern declaration.
8040 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8041 (selectors_info, classes_info): Ditto.
8042 (find_objc_msgcall): Fix indentation.
8043 (objc_printstr): Delete extern declarations.
8045 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8047 2003-04-06 Andrew Cagney <cagney@redhat.com>
8049 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8051 * frame.c (legacy_saved_regs_this_id): Update.
8052 (legacy_get_prev_frame): Update.
8053 * xstormy16-tdep.c: Update comment.
8054 * sparc-tdep.c (sparc_frame_chain): Update comment.
8055 * blockframe.c (legacy_frame_chain_valid): Update.
8057 2003-04-06 Andrew Cagney <cagney@redhat.com>
8059 * valprint.c (val_print_type_code_int): Delete #ifdef
8060 PRINT_TYPELESS_INTEGER code.
8062 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8063 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8064 multi-arch definition.
8065 * gdbarch.h: Re-generate.
8067 2003-04-05 Andrew Cagney <cagney@redhat.com>
8069 Eliminate FRAME_FIND_SAVED_REGS.
8070 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8071 Change FSR parameter to a pointer.
8072 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8073 Assume FSR parameter is a pointer.
8074 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8076 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8077 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8078 saved_regs a pointer.
8079 (hppa_frame_saved_pc): Ditto.
8080 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8081 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8083 (restore_pc_queue): Make fsr a pointer.
8084 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8085 (hppa_frame_chain): Make saved_regs a pointer, call
8086 hppa_frame_init_saved_regs.
8087 * sparc-tdep.c: Include "gdb_assert.h".
8088 (sparc_frame_find_saved_regs): Replace internal_error with
8090 * remote-vxsparc.c (vx_read_register): Delete reference to
8091 FRAME_FIND_SAVED_REGS.
8092 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8093 * gdbarch.h: Regenerate.
8094 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8095 (deprecated_get_frame_saved_regs): Delete declaration.
8096 (struct frame_saved_regs): Delete definition.
8097 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8098 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8099 (hppa_frame_find_saved_regs): Delete declaration.
8100 (FRAME_FIND_SAVED_REGS): Delete macro.
8101 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8102 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8103 FRAME_FIND_SAVED_REGS in comment.
8105 2003-04-05 Andrew Cagney <cagney@redhat.com>
8107 * frame.c (frame_func_unwind, get_frame_func): New functions.
8108 * frame.h (get_frame_func, frame_func_unwind): Declare.
8109 (struct frame_info): Add field "prev_func" for caching the
8110 previous frame's function address.
8111 * arm-tdep.c (arm_frameless_function_invocation): Combine
8112 get_pc_function_start and get_frame_pc into get_frame_func.
8113 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8114 (sh64_nofp_frame_init_saved_regs): Ditto.
8115 * s390-tdep.c (s390_function_start): Ditto.
8116 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8117 (rs6000_frameless_function_invocation): Ditto.
8118 (rs6000_frame_saved_pc): Ditto.
8119 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8120 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8121 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8122 (i386_frame_init_saved_regs): Ditto.
8123 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8124 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8125 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8126 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8127 * blockframe.c (frameless_look_for_prologue): Ditto.
8129 2003-04-05 Andrew Cagney <cagney@redhat.com>
8131 * frame.c (legacy_get_prev_frame): Link prev to next at the
8132 function start. Update comments.
8134 2003-04-05 Andrew Cagney <cagney@redhat.com>
8136 * frame.c (get_frame_id): Update comment.
8137 (legacy_get_prev_frame): Update comment.
8138 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8139 * gdbarch.h: Regenerate.
8140 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8141 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8143 2003-04-05 Andrew Cagney <cagney@redhat.com>
8145 * stack.c (print_frame_info): Use get_frame_pc.
8147 2003-04-04 Andrew Cagney <cagney@redhat.com>
8149 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8150 the frame's type from the unwinder.
8151 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8152 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8153 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8154 (get_frame_base_address): Use get_frame_type.
8155 (get_frame_locals_address, get_frame_args_address): Ditto.
8156 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8157 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8158 (struct frame_info): Add comment explaining why the frame contains
8160 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8161 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8162 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8164 * frame-unwind.h: Include "frame.h".
8165 (struct frame_unwind): Add "type" field.
8166 * Makefile.in (frame_unwind_h): Add $(frame_h).
8168 2003-04-04 Andrew Cagney <cagney@redhat.com>
8170 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8171 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8172 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8174 (d10v_unwind_dummy_id): Use frame_id_build.
8175 * frame.c (find_frame_sal): Use get_frame_pc.
8176 (create_new_frame): Use deprecated_update_frame_pc_hack and
8177 deprecated_update_frame_base_hack.
8178 (create_sentinel_frame): Add comment about ->pc going away.
8179 (get_prev_frame): Add comment about ->pc going away.
8180 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8181 frame_id_build, deprecated_update_frame_pc_hack and
8182 deprecated_update_frame_base_hack.
8183 (select_frame): Use get_frame_pc.
8184 (legacy_saved_regs_this_id): Use frame_id_build.
8186 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8188 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8189 signed integer case.
8190 (classify_argument): Handle enumerations and references.
8192 2003-04-04 Andrew Cagney <cagney@redhat.com>
8194 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8197 2003-04-01 Adam Fedor <fedor@gnu.org>
8199 * gdb/objc-lang.c (selectors_info): Replace calls to
8200 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8201 SYMBOL_NATURAL_NAME.
8202 (classes_info, find_methods): Likewise.
8204 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8206 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8207 ``mach'' to the value determined by bfd_default_set_arch_mach().
8209 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8211 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8212 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8213 (mi-cmd-file.o): Update dependencies.
8215 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8217 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8218 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8220 2003-04-01 Adam Fedor <fedor@gnu.org>
8222 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8223 * language.h (struct language_defn): Add la_demangle.
8224 (language_demangle): Declare.
8225 * language.c (language_demangle): New function.
8226 (unk_lang_demangle): Likewise.
8227 (unknown_language_defn, auto_language_defn, local_language_defn):
8228 Add ukn_lang_demangle.
8229 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8230 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8231 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8232 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8233 * jv-lang.c (java_demangle): New function
8234 (java_language_defn): Use it for la_demangle element.
8235 * objc-lang.c (objc_demangle): Add options argument
8236 (objc_language_defn): Use objc_demangle for la_demangle element.
8237 * maint.c (maintenance_demangle): Replace switch with
8238 call to language_demangle.
8239 * utils.c (fprintf_symbol_filtered): Likewise.
8241 2003-04-01 Andrew Cagney <cagney@redhat.com>
8243 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8244 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8245 PRINT_TYPELESS_INTEGER.
8246 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8247 PUSH_RETURN_ADDRESS.
8249 2003-04-01 Andrew Cagney <cagney@redhat.com>
8251 * Makefile.in (d10v-tdep.o): Update dependencies.
8252 * d10v-tdep.c: Include "frame-base.h".
8253 (d10v_frame_unwind): Make constant.
8254 (d10v_frame_base_address): New function.
8255 (d10v_frame_base): New variable.
8256 (d10v_gdbarch_init): Set frame_base default.
8257 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8259 (d10v_frame_unwind_cache): Set and use "prev_sp".
8260 (d10v_frame_this_id): Use the previous frame's inner most stack
8261 address and this frame's func address for the frame ID. Use
8262 frame_id_build. Don't analyze beyond the current instruction.
8264 2003-04-01 Andrew Cagney <cagney@redhat.com>
8266 * frame.h (get_frame_locals_address, get_frame_args_address):
8267 Refer to the base address, instead of the address of the first
8270 2003-04-01 Andrew Cagney <cagney@redhat.com>
8272 Add frame debug info addresses:
8273 * frame-base.c: New file.
8274 * frame-base.h: New file.
8275 * frame.h (struct frame_base): Add opaque declaration.
8276 (get_frame_base): Update comment.
8277 (get_frame_base_address): Declare.
8278 (get_frame_locals_address): Declare.
8279 (get_frame_args_address): Declare.
8280 (struct frame_info): Add "base" and "base_cache". Update
8281 comments on the unwinder.
8282 * frame.c: Include "frame-base.h".
8283 (get_frame_locals_address): New function.
8284 (get_frame_base_address): New function.
8285 (get_frame_args_address): New function.
8286 * findvar.c (read_var_value): Use get_frame_locals_address and
8287 get_frame_args_address.
8288 * stack.c (frame_info): Use get_frame_locals_address and
8289 get_frame_args_address.
8290 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8291 moved to "frame-base.c".
8292 * printcmd.c (print_frame_nameless_args): Ditto.
8293 * symtab.h (address_class): Update comments.
8294 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8295 get_frame_base_address.
8296 * dwarf2expr.c (execute_stack_op): Ditto.
8297 * Makefile.in (frame_base_h): Define.
8298 (frame.o): Update dependencies.
8299 (frame-base.o): Add dependencies.
8300 (SFILES): Add frame-base.c.
8301 (COMMON_OBS): Add frame-base.o.
8303 2003-04-01 Andrew Cagney <cagney@redhat.com>
8305 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8306 CALL_DUMMY_LENGTH): Ditto.
8307 * gdbarch.c: Re-generate.
8308 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8309 (CALL_DUMMY_LENGTH): Delete macro.
8310 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8311 * arm-tdep.c (arm_gdbarch_init): Ditto.
8312 * avr-tdep.c (avr_gdbarch_init): Ditto.
8313 * cris-tdep.c (cris_gdbarch_init): Ditto.
8314 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8315 * frv-tdep.c (frv_gdbarch_init): Ditto.
8316 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8317 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8318 * i386-tdep.c (i386_gdbarch_init): Ditto.
8319 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8321 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8322 * mips-tdep.c (mips_gdbarch_init): Ditto.
8323 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8324 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8325 * s390-tdep.c (s390_gdbarch_init): Ditto.
8326 * sh-tdep.c (sh_gdbarch_init): Ditto.
8327 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8328 * v850-tdep.c (v850_gdbarch_init): Ditto.
8329 * vax-tdep.c (vax_gdbarch_init): Ditto.
8330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8332 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8334 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8336 2003-04-01 Andrew Cagney <cagney@redhat.com>
8338 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8339 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8340 * gdbarch.h, gdbarch.c: Re-generate.
8341 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8342 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8343 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8344 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8345 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8346 * infcmd.c (run_stack_dummy): Simplify assuming
8347 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8348 * infrun.c (handle_inferior_event): Ditto.
8349 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8350 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8351 * arm-tdep.c (arm_gdbarch_init): Ditto.
8352 * avr-tdep.c (avr_gdbarch_init): Ditto.
8353 * cris-tdep.c (cris_gdbarch_init): Ditto.
8354 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8355 * frv-tdep.c (frv_gdbarch_init): Ditto.
8356 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8357 * i386-tdep.c (i386_gdbarch_init): Ditto.
8358 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8360 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8361 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8362 * mips-tdep.c (mips_gdbarch_init): Ditto.
8363 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8364 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8365 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8366 * s390-tdep.c (s390_gdbarch_init): Ditto.
8367 * sh-tdep.c (sh_gdbarch_init): Ditto.
8368 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8369 * v850-tdep.c (v850_gdbarch_init): Ditto.
8370 * vax-tdep.c (vax_gdbarch_init): Ditto.
8371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8373 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8375 * symfile.c (symfile_relocate_debug_section): Update call to
8376 bfd_simple_get_relocated_section_contents.
8378 2003-03-31 Andrew Cagney <cagney@redhat.com>
8380 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8381 * gdbarch.h, gdbarch.c: Regenerate.
8382 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8383 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8385 * frame.h (generic_fix_call_dummy): Delete declaration.
8386 * dummy-frame.h: Update comment.
8387 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8388 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8390 * sh-tdep.c (sh_gdbarch_init): Ditto.
8391 * s390-tdep.c (s390_gdbarch_init): Ditto.
8392 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8393 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8394 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8395 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8396 * i386-tdep.c (i386_gdbarch_init): Ditto.
8397 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8398 * frv-tdep.c (frv_gdbarch_init): Ditto.
8399 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8400 * cris-tdep.c (cris_gdbarch_init): Ditto.
8401 * avr-tdep.c (avr_gdbarch_init): Ditto.
8402 * arm-tdep.c (arm_gdbarch_init): Ditto.
8404 2003-03-31 J. Brobecker <brobecker@gnat.com>
8406 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8407 (INIT_FRAME_AP): Likewise.
8408 (EXTRA_FRAME_INFO): Likewise.
8410 2003-03-31 Andrew Cagney <cagney@redhat.com>
8412 * gdbarch.sh: Include "symfile.h".
8413 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8414 * gdbarch.h, gdbarch.c: Re-generate.
8415 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8417 call_dummy_address, the default is at entry_point_address.
8418 * v850-tdep.c (v850_gdbarch_init): Ditto.
8419 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8420 * sh-tdep.c (sh_gdbarch_init): Ditto.
8421 * s390-tdep.c (s390_gdbarch_init): Ditto.
8422 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8423 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8424 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8425 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8426 * i386-tdep.c (i386_gdbarch_init): Ditto.
8427 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8428 * frv-tdep.c (frv_gdbarch_init): Ditto.
8429 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8430 * cris-tdep.c (cris_gdbarch_init): Ditto.
8431 * arm-tdep.c (arm_gdbarch_init): Ditto.
8433 2003-03-31 Andrew Cagney <cagney@redhat.com>
8435 * gdbarch.sh (CALL_DUMMY_P): Delete.
8436 * gdbarch.h, gdbarch.c: Re-generate.
8437 * inferior.h (CALL_DUMMY_P): Delete macro.
8438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8439 * vax-tdep.c (vax_gdbarch_init): Update.
8440 * v850-tdep.c (v850_gdbarch_init): Update.
8441 * sparc-tdep.c (sparc_gdbarch_init): Update.
8442 * sh-tdep.c (sh_gdbarch_init): Update.
8443 * s390-tdep.c (s390_gdbarch_init): Update.
8444 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8445 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8446 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8447 * mips-tdep.c (mips_gdbarch_init): Update.
8448 * mcore-tdep.c (mcore_gdbarch_init): Update.
8449 * m68k-tdep.c (m68k_gdbarch_init): Update.
8450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8451 * ia64-tdep.c (ia64_gdbarch_init): Update.
8452 * i386-tdep.c (i386_gdbarch_init): Update.
8453 * h8300-tdep.c (h8300_gdbarch_init): Update.
8454 * frv-tdep.c (frv_gdbarch_init): Update.
8455 * d10v-tdep.c (d10v_gdbarch_init): Update.
8456 * cris-tdep.c (cris_gdbarch_init): Update.
8457 * breakpoint.c (deprecated_frame_in_dummy): Update.
8458 * avr-tdep.c (avr_gdbarch_init): Update.
8459 * alpha-tdep.c (alpha_gdbarch_init): Update.
8460 * arm-tdep.c (arm_gdbarch_init): Update.
8461 * dummy-frame.c (dummy_frame_this_id): Update comments.
8462 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8463 * frame.c (legacy_get_prev_frame): Ditto.
8464 * valops.c (call_function_by_hand): Delete function.
8465 (hand_function_call): Rename to call_function_by_hand
8467 2003-03-30 Andrew Cagney <cagney@redhat.com>
8469 2002-11-10 Klee Dienes <kdienes@apple.com>
8470 * value.h (struct value): Update comment.
8472 2003-03-30 Andrew Cagney <cagney@redhat.com>
8474 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8476 (d10v_gdbarch_init): Do not set fp_regnum.
8478 * frame.c (get_frame_base): Force ID initialization.
8479 (get_prev_frame): Move computation of the frame ID from here ...
8480 (get_frame_id): ... to here.
8481 (legacy_get_prev_frame): Mark the frame ID as valid.
8482 * frame.h (struct frame_info): Add field "id_p".
8484 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8486 * i386-tdep.c (i386_store_struct_return): Removed.
8487 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8489 2003-03-30 Andrew Cagney <cagney@redhat.com>
8491 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8492 * gdbarch.h, gdbarch.c: Regenerate.
8493 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8494 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8495 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8496 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8497 * i386-tdep.c (i386_gdbarch_init): Ditto.
8498 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8499 * cris-tdep.c (cris_gdbarch_init): Ditto.
8500 * vax-tdep.c (vax_gdbarch_init): Ditto.
8501 * s390-tdep.c (s390_gdbarch_init): Ditto.
8502 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8503 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8504 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8505 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8506 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8507 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8508 * sparc-tdep.c (sparc_gdbarch_init): Update.
8509 * sh-tdep.c (sh_gdbarch_init): Update.
8510 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8511 * mips-tdep.c (mips_gdbarch_init): Update.
8512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8513 * ia64-tdep.c (ia64_gdbarch_init): Update.
8514 * frv-tdep.c (frv_gdbarch_init): Update.
8515 * avr-tdep.c (avr_gdbarch_init): Update.
8516 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8517 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8518 instead of when push_dummy_call is not available.
8520 2003-03-30 Andrew Cagney <cagney@redhat.com>
8522 * infttrace.c: Include "gdbthread.h".
8523 (parent_attach_all): Fix function signature.
8524 (call_ptrace): Update call.
8525 * Makefile.in (infttrace.o): Update dependencies.
8527 2003-03-30 Andrew Cagney <cagney@redhat.com>
8529 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8530 PUSH_RETURN_ADDRESS.
8531 * gdbarch.h, gdbarch.c: Regenerate.
8532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8533 * x86-64-tdep.c (x86_64_init_abi): Update.
8534 * v850-tdep.c (v850_gdbarch_init): Update.
8535 * sparc-tdep.c (sparc_gdbarch_init): Update.
8536 * sh-tdep.c (sh_gdbarch_init): Update.
8537 * s390-tdep.c (s390_gdbarch_init): Update.
8538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8539 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8540 * mips-tdep.c (mips_gdbarch_init): Update.
8541 * mcore-tdep.c (mcore_gdbarch_init): Update.
8542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8543 * ia64-tdep.c (ia64_gdbarch_init): Update.
8544 * i386-tdep.c (i386_gdbarch_init): Update.
8545 * h8300-tdep.c (h8300_gdbarch_init): Update.
8546 * frv-tdep.c (frv_gdbarch_init): Update.
8547 * cris-tdep.c (cris_gdbarch_init): Update.
8548 * avr-tdep.c (avr_gdbarch_init): Update.
8549 * arm-tdep.c (arm_gdbarch_init): Update.
8550 * valops.c (hand_function_call): Update.
8552 2003-03-29 Andrew Cagney <cagney@redhat.com>
8554 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8555 sizeof_call_dummy_words.
8556 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8558 * gdbarch.h: Regenerate.
8560 2003-03-29 Andrew Cagney <cagney@redhat.com>
8562 * infttrace.h: New file.
8563 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8564 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8565 (hpread_read_doc_function_type): Detect an initialized type1.
8566 (hpread_quick_traverse): Initialize mod_name_string.
8567 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8568 (som_solib_get_solib_by_pc): Declare.
8569 (so_lib_thread_start_addr): Declare.
8570 (no_shared_libraries): Declare.
8571 * somread.c (init_import_symbols): Make static. Add forward
8573 * config/pa/nm-hppah.h: Include "infttrace.h" for
8575 (hppa_insert_hw_watchpoint): Declare.
8576 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8577 * hppah-nat.c: Include "gdb_string.h".
8578 (parent_attach_all): Delete extern declaration, moved to
8580 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8582 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8583 * Makefile.in (infttrace_h): Define.
8584 (hpread.o): Update dependencies.
8585 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8586 * hppa-hpux-tdep.c: Include "gdb_string.h".
8587 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8588 * infrun.c (handle_inferior_event): Always initialize
8589 stepped_after_stopped_by_watchpoint. Add default and remove
8590 fallthrough in switch statement.
8591 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8593 (hppa_remove_hw_watchpoint): Ditto.
8595 2003-03-29 Andrew Cagney <cagney@redhat.com>
8597 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8600 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8602 * arm-tdep.c (arm_push_arguments): Delete.
8603 (struct stack_item): New type.
8604 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8605 (arm_store_struct_return): Delte.
8606 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8607 arm_push_arguments or arm_store_struct_return.
8609 2003-03-28 Andrew Cagney <cagney@redhat.com>
8611 * Makefile.in (d10v-tdep.o): Update dependencies.
8612 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8613 * d10v-tdep.c: Include "remote.h".
8614 (target_resume_hook): Delete extern declaration.
8615 (target_wait_loop_hook): Ditto.
8616 (tdisassemble_command): Eliminate assignment in "if" conditional.
8617 (d10v_ts2_register_sim_regno): Eliminate call to
8618 legacy_register_sim_regno.
8619 (d10v_ts3_register_sim_regno): Ditto.
8621 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8623 * thread.c: Reindented.
8625 * linux-proc.c: Ditto.
8627 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8629 * MAINTAINERS (write after approval): Add myself.
8631 2003-03-27 Theodore A. Roth <troth@openavr.org>
8633 * objc-exp.y: Add missing semi-colons.
8635 2003-03-27 Andrew Cagney <cagney@redhat.com>
8637 * regcache.c (write_sp): Delete function and references.
8638 * inferior.h (write_sp): Delete declaration.
8639 * valops.c (hand_function_call): Replace write_sp with
8641 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8642 (sparc_pop_frame): Ditto.
8644 2003-03-27 Andrew Cagney <cagney@redhat.com>
8646 * NEWS: Mention removal of support for hppa*-*-bsd* and
8647 hppa*-*-osf* natives, and hppa*-*-pro* target.
8648 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8649 * config/pa/xm-pa.h: Obsolete file.
8650 * config/pa/xm-hppab.h: Obsolete file.
8651 * config/pa/nm-hppab.h: Obsolete file.
8652 * config/pa/tm-hppab.h: Obsolete file.
8653 * config/pa/tm-hppao.h: Obsolete file.
8654 * config/pa/nm-hppao.h: Obsolete file.
8655 * config/pa/tm-pro.h: Obsolete file.
8656 * config/pa/hppaosf.mt: Obsolete file.
8657 * config/pa/hppaosf.mh: Obsolete file.
8658 * config/pa/hppapro.mt: Obsolete file.
8659 * config/pa/hppabsd.mt: Obsolete file.
8660 * config/pa/hppabsd.mh: Obsolete file.
8661 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8662 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8665 2003-03-27 Andrew Cagney <cagney@redhat.com>
8667 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8668 push_arguments. Don't set push_return_address or write_sp.
8669 (d10v_push_dummy_call): Replace d10v_push_arguments.
8670 (d10v_push_return_address, d10v_write_sp): Delete function,
8671 handled by push_dummy_call.
8673 2003-03-26 Andrew Cagney <cagney@redhat.com>
8675 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8676 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8677 regcache and dummy_addr parameters.
8678 * gdbarch.h, gdbarch.c: Re-generate.
8679 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8680 available; assume it will handle stack alignment and return
8681 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8682 legacy_push_arguments.
8683 (legacy_push_arguments): Rename default_push_arguments.
8684 * value.h (legacy_push_arguments): Rename default_push_arguments.
8685 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8686 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8687 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8688 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8689 * config/i386/tm-symmetry.h: Update.
8690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8691 * x86-64-tdep.c (x86_64_init_abi): Update.
8692 * v850-tdep.c (v850_gdbarch_init): Update.
8693 * sparc-tdep.c (sparc_gdbarch_init): Update.
8694 * sh-tdep.c (sh_gdbarch_init): Update.
8695 * s390-tdep.c (s390_gdbarch_init): Update.
8696 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8697 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8698 * mips-tdep.c (mips_gdbarch_init): Update.
8699 * mcore-tdep.c (mcore_gdbarch_init): Update.
8700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8701 * ia64-tdep.c (ia64_gdbarch_init): Update.
8702 * i386-tdep.c (i386_gdbarch_init): Update.
8703 * hppa-tdep.c (hppa_gdbarch_init): Update.
8704 * h8300-tdep.c (h8300_gdbarch_init): Update.
8705 * frv-tdep.c (frv_gdbarch_init): Update.
8706 * d10v-tdep.c (d10v_gdbarch_init): Update.
8707 * cris-tdep.c (cris_gdbarch_init): Update.
8708 * avr-tdep.c (avr_gdbarch_init): Update.
8709 * arm-tdep.c (arm_gdbarch_init): Update.
8710 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8711 * alpha-tdep.c (alpha_gdbarch_init): Update.
8713 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8715 * signals/signals.c (do_target_signal_to_host): Correct realtime
8718 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8720 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8721 (struct sal_chain, map_catch_names): Remove.
8722 (catch_exception_command_1): Don't call
8723 handle_gnu_4_16_catch_command.
8725 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8727 From Mark Dettinger <dettinge@de.ibm.com>:
8728 * dwarf2cfi.c (read_2u): Increment pointer by two.
8730 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8732 * signals/signals.c: Fix typos in last change.
8734 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8736 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8737 not already defined. Use __SIGRTMIN if available.
8738 (target_signal_from_host): Remove SIGRTMIN block.
8739 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8740 the signal is within the realtime range.
8742 2003-03-25 Adam Fedor <fedor@gnu.org>
8744 * Makefile.in (infrun.o): Add $(language_h)
8745 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8746 for language specific trampolines.
8747 * language.h (struct language_defn): Add skip_trampoline.
8748 (skip_language_trampoline): Declare.
8749 * language.c (unk_lang_trampoline, skip_language_trampoline):
8751 (unknown_language_defn, auto_language_defn, local_language_defn):
8752 Add ukn_lang_trampoline.
8753 * ada-lang.c (ada_language_defn): Add NULL for language
8754 specific skip_trampoline.
8755 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8756 scm-lang.c: Likewise.
8757 * objc-lang.c (objc_skip_trampoline): New function.
8758 (objc_language_defn): Add objc_skip_trampoline.
8760 2003-03-25 Andrew Cagney <cagney@redhat.com>
8762 * frame.c (get_prev_frame): Delay validating a frame's ID -
8763 non-NULL, didn't go backwards - until an attempt to unwind it to
8766 2003-03-25 Andrew Cagney <cagney@redhat.com>
8768 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8769 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8770 * gdbarch.h, gdbarch.c: Re-generate.
8771 * config/sparc/tm-sparc.h
8772 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8773 * sparc-tdep.c (sparc_gdbarch_init): Set
8774 deprecated_extra_stack_alignment_needed.
8775 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8776 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8777 extra_stack_alignment_needed.
8778 * v850-tdep.c (v850_gdbarch_init): Ditto.
8779 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8780 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8781 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8782 * cris-tdep.c (cris_gdbarch_init): Ditto.
8783 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8786 2003-03-25 Andrew Cagney <cagney@redhat.com>
8788 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8789 STORE_STRUCT_RETURN.
8790 * gdbarch.h, gdbarch.c: Regenerate.
8791 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8792 (d10v_push_arguments): Set the struct return register.
8793 (d10v_gdbarch_init): Update.
8794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8795 * x86-64-tdep.c (x86_64_init_abi): Update.
8796 * vax-tdep.c (vax_gdbarch_init): Update.
8797 * v850-tdep.c (v850_gdbarch_init): Update.
8798 * sparc-tdep.c (sparc_gdbarch_init): Update.
8799 * sh-tdep.c (sh_gdbarch_init): Update.
8800 * s390-tdep.c (s390_gdbarch_init): Update.
8801 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8802 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8803 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8804 * mips-tdep.c (mips_gdbarch_init): Update.
8805 * mcore-tdep.c (mcore_gdbarch_init): Update.
8806 * m68k-tdep.c (m68k_gdbarch_init): Update.
8807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8808 * ia64-tdep.c (ia64_gdbarch_init): Update.
8809 * i386-tdep.c (i386_gdbarch_init): Update.
8810 * hppa-tdep.c (hppa_gdbarch_init): Update.
8811 * h8300-tdep.c (h8300_gdbarch_init): Update.
8812 * frv-tdep.c (frv_gdbarch_init): Update.
8813 * cris-tdep.c (cris_gdbarch_init): Update.
8814 * avr-tdep.c (avr_gdbarch_init): Update.
8815 * arm-tdep.c (arm_gdbarch_init): Update.
8816 * alpha-tdep.c (alpha_gdbarch_init): Update.
8818 2003-03-25 Andrew Cagney <cagney@redhat.com>
8820 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8821 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8822 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8823 * gdbarch.h, gdbarch.c: Regenerate.
8824 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8825 call_dummy_stack_adjust_p.
8826 * vax-tdep.c (vax_gdbarch_init): Ditto.
8827 * v850-tdep.c (v850_gdbarch_init): Ditto.
8828 * sh-tdep.c (sh_gdbarch_init): Ditto.
8829 * s390-tdep.c (s390_gdbarch_init): Ditto.
8830 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8831 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8832 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8833 * mips-tdep.c (mips_gdbarch_init): Ditto.
8834 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8835 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8837 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8838 * i386-tdep.c (i386_gdbarch_init): Ditto.
8839 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8840 * frv-tdep.c (frv_gdbarch_init): Ditto.
8841 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8842 * cris-tdep.c (cris_gdbarch_init): Ditto.
8843 * avr-tdep.c (avr_gdbarch_init): Ditto.
8844 * arm-tdep.c (arm_gdbarch_init): Ditto.
8845 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8846 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8847 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8848 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8849 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8850 call_dummy_stack_adjust_p.
8851 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8852 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8853 * sparc-tdep.c (sparc32_push_arguments): Update.
8854 * valops.c (hand_function_call): Update.
8856 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8858 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8859 set_gdbarch_char_signed.
8861 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8864 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8866 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8868 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8869 (_initialize_arm_tdep): Don't set tm_print_insn.
8871 2003-03-24 Adam Fedor <fedor@gnu.org>
8873 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8874 * objc-lang.h: Add multiple inclusion protection.
8875 (start_msglist, add_msglist, end_msglist): Additional declarations.
8877 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8879 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8880 value was renamed to ARM_FLOAT_SOFT_FPA.
8882 2003-03-23 Andrew Cagney <cagney@redhat.com>
8884 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8885 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8886 * gdbarch.h, gdbarch.c: Regenerate.
8887 * valops.c (hand_function_call): Update.
8888 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8889 * frame.c (legacy_saved_regs_this_id): Update.
8890 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8891 * dummy-frame.h: Update.
8892 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8893 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8894 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8895 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8896 * config/m68k/tm-sun3.h: Update.
8897 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8899 * x86-64-tdep.c (x86_64_init_abi): Update.
8900 * vax-tdep.c (vax_gdbarch_init): Update.
8901 * v850-tdep.c (v850_gdbarch_init): Update.
8902 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8903 * sh-tdep.c (sh_gdbarch_init): Update.
8904 * s390-tdep.c (s390_gdbarch_init): Update.
8905 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8906 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8907 (frame_get_saved_regs): Update.
8908 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8909 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8910 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8911 * mips-tdep.c (mips_gdbarch_init): Update.
8912 * mcore-tdep.c (mcore_gdbarch_init): Update.
8913 * m68k-tdep.c (m68k_gdbarch_init): Update.
8914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8915 * ia64-tdep.c (ia64_gdbarch_init): Update.
8916 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8917 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8918 (i386_interix_back_one_frame): Update.
8919 * hppa-tdep.c (hppa_gdbarch_init): Update.
8920 (hppa_init_extra_frame_info): Update.
8921 * h8300-tdep.c (h8300_gdbarch_init): Update.
8922 * frv-tdep.c (frv_gdbarch_init): Update.
8923 * cris-tdep.c (cris_gdbarch_init): Update.
8924 * avr-tdep.c (avr_gdbarch_init): Update.
8925 * arm-tdep.c (arm_gdbarch_init): Update.
8926 * alpha-tdep.c (alpha_gdbarch_init): Update.
8928 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8930 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8931 (arm_get_fp_model): Declare.
8932 * arm-tdep.c (fp_model_strings): New string array.
8933 (arm_fp_model, current_fp_model): New variables.
8934 (arm_get_fp_model): New function.
8935 (arm_set_fp): New function.
8936 (set_fp_model_sfunc): New function.
8937 (show_fp_model): New function.
8938 (_initialize_arm_tdep): Add new command to set/show the FPU.
8939 (arm_extract_return_value): Use arm_get_fp_model.
8940 (arm_store_return_value): Likewise.
8941 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8942 to initialize the floating-point data types.
8943 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8946 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8948 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8949 the current setting of each value.
8950 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8951 new_set and new_show. Use add_setshow_cmd_full and
8952 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8953 commands and add new version as subcommands of "set/show arm".
8955 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8957 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8958 (set_arm_command, show_arm_command): New functions.
8959 (_initialize_arm_tdep): Add them.
8960 (num_disassembly_options): Renamed from num_flavor_options.
8961 (valid_disassembly_styles): Renamed from valid_flavors.
8962 (disassembly_style): Renamed from disassembly_flavor.
8963 (set_disassembly_style_sfunc): Renamed from
8964 set_disassembly_flavor_sfunc.
8965 (set_disassembly_style): Renamed from set_disassembly_flavor.
8966 (arm_othernames): Updated.
8967 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8968 command. Add "set/show arm disassembly" commands. Deprecate
8969 "othernames" command.
8971 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8973 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8974 (arm-tdep.o): Depend on elf_arm_h.
8976 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8978 * Makefile.in (coff_internal_h): Define.
8979 (arm-tdep.o): Update dependencies.
8981 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8983 * arm-tdep.c (prologue_cache): Delete.
8984 (check_prologue_cache, save_prologue_cache): Delete.
8985 (arm_scan_prologue): Don't check or update the prologue_cache.
8986 (arm_gdb_arch_init): Don't initialize it.
8987 (_initialize_arm_tdep): Likewise.
8989 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8991 * MAINTAINERS (tui): Maintainer of tui code.
8993 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8995 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8996 (i386-cygwin-tdep.o): Add dependencies.
8997 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8998 * i386-cygwin-tdep.c: New file.
8999 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9000 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9002 2003-03-20 Andrew Cagney <cagney@redhat.com>
9004 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9005 (handle_inferior_event): Remove code calling
9006 DYNAMIC_TRAMPOLINE_NEXTPC.
9008 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9009 already has a full path.
9011 * main.c (gdb_main): Return 1.
9012 (captured_main): Call error to report an invalid interpreter.
9014 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9015 * alpha-osf1-tdep.c: Include "gdb_string.h".
9017 2003-03-19 J. Brobecker <brobecker@gnat.com>
9019 Continuing work to convert the hppa targets to multiarch partial.
9021 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9022 method, now that hppa_push_dummy_frame has a conformant prototype.
9023 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9024 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9025 for the switch to multiarch partial.
9027 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9029 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9030 when iss is issNull.
9032 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9034 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9035 NUM_REGS bounds check.
9037 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9039 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9040 * mips-tdep.c (gdb_assert.h): Include.
9041 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9042 (mips_register_name): Handle integer registers explicitly. Add
9044 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9045 (mips_lsi33k_reg_names): Don't list integer registers; they're
9046 handled by mips_register_name() now.
9047 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9048 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9049 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9050 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9051 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9053 2003-03-18 Andrew Cagney <cagney@redhat.com>
9055 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9057 * gdbtypes.h (print_scalar_formatted): Update declaration.
9058 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9060 2003-03-18 J. Brobecker <brobecker@gnat.com>
9062 * infrun.c (observer.h): Add #include.
9063 (normal_stop): Add call to observer_notify_normal_stop.
9064 * Makefile.in (infrun.o): Add dependency on observer.h.
9066 2003-03-18 J. Brobecker <brobecker@gnat.com>
9068 Continuing work to convert the hppa targets to multiarch partial.
9069 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9070 parameter. Reformat comment.
9071 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9072 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9073 to match new profile.
9075 2003-03-18 J. Brobecker <brobecker@gnat.com>
9077 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9078 appear to be working in any case.
9080 2003-03-18 J. Brobecker <brobecker@gnat.com>
9082 * observer.c (observer_test_first_observer): New static variable.
9083 (observer_test_second_observer): Likewise.
9084 (observer_test_third_observer): Likewise.
9085 (observer_test_first_notification_function): New static function.
9086 (observer_test_second_notification_function): Likewise.
9087 (observer_test_third_notification_function): Likewise.
9089 2003-03-17 J. Brobecker <brobecker@gnat.com>
9091 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9092 * somsolib.c (gdb_assert.h): Likewise.
9093 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9094 (somsolib.o): Likewise.
9096 2003-03-17 Andrew Cagney <cagney@redhat.com>
9098 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9099 BFD. Simplify setting of di.endian.
9101 2003-03-17 Andrew Cagney <cagney@redhat.com>
9103 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9104 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9106 From Elena Zannoni <ezannoni@redhat.com>
9107 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9108 vector and floating-point parameters.
9109 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9111 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9113 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9115 * MAINTAINERS: Remove my name from several maintainership roles.
9117 2003-03-17 Andrew Cagney <cagney@redhat.com>
9119 Fix frame off-by-one bug.
9120 * frame-unwind.h (frame_this_id_ftype): Replace
9121 frame_unwind_id_ftype.
9122 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9123 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9124 with "prev_register".
9125 * frame-unwind.c (frame_unwind_find_by_pc): Return
9126 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9128 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9129 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9130 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9131 (dummy_frame_unwind): Update.
9132 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9133 sentinel_frame_register_unwind.
9134 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9135 (sentinel_frame_unwinder): Update.
9136 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9137 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9138 * frame.c (create_sentinel_frame): Update. Initialize
9139 "prologue_cache" instead of "unwind_cache".
9140 (frame_register_unwind): Call this frame's prev_register with the
9141 next frame and this frame's prologue cache.
9142 (get_prev_frame): Simplify. Always call prev frame's this_id with
9143 this frame and prev frame's prologue cache. Document that this
9144 call is shifted one to the left when compared to the
9145 frame_register_unwind call.
9146 (legacy_saved_regs_prev_register): Replace
9147 frame_saved_regs_register_unwind.
9148 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9149 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9150 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9151 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9152 (d10v_frame_unwind): Update.
9153 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9154 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9155 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9156 "saved_regs" with "this_saved_regs".
9158 2003-03-16 Andrew Cagney <cagney@redhat.com>
9160 * frame.c (frame_pop): Don't call target_store_registers. Fix
9161 problem reported by Mark Kettenis.
9163 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9165 * i386-tdep.c (i386_register_type): Renamed from
9166 i386_register_virtual_type. Adjust function signature.
9167 (i386_gdbarch_init): Set register_type instead of
9168 deprecated_max_register_raw_size,
9169 deprecated_max_register_virtual_size and register_virtual_type.
9171 2003-03-14 Andrew Cagney <cagney@redhat.com>
9173 * frame.c (get_prev_frame): When a legacy frame, always call
9174 legacy_get_prev_frame. Simplify unwind code using assumption that
9175 the unwinder is new.
9176 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9177 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9178 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9180 2003-03-14 Andrew Cagney <cagney@redhat.com>
9182 * frame.c (get_saved_register): Delete function.
9183 * frame.h (get_saved_register): Delete declaration.
9184 * xstormy16-tdep.c: Update comment.
9185 * regcache.h: Update comments.
9186 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9187 get_saved_register and extract_address, use
9188 frame_read_unsigned_register.
9189 (sparc_frame_saved_pc): Ditto.
9190 (sparc_get_saved_register): Instead of get_saved_register, use
9192 (sparc_pop_frame): Ditto.
9193 * findvar.c: Update comments.
9194 (value_of_register): Call frame_register instead of
9196 (value_from_register): Ditto.
9197 * config/sparc/tm-sparc.h: Update comment.
9198 * breakpoint.c: Update comment.
9200 2003-03-14 Andrew Cagney <cagney@redhat.com>
9202 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9204 * gdbarch.h, gdbarch.c: Re-generate.
9205 * frame.h: Update comments.
9206 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9207 * x86-64-tdep.c (x86_64_init_abi): Update.
9208 * sparc-tdep.c (sparc_gdbarch_init): Update.
9209 * sh-tdep.c (sh_gdbarch_init): Update.
9210 * mips-tdep.c (mips_gdbarch_init): Update.
9211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9212 * cris-tdep.c (cris_gdbarch_init): Update.
9213 * ia64-tdep.c (ia64_gdbarch_init): Update.
9214 * frame.c (frame_register): Update.
9215 (get_saved_register): Update.
9216 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9218 2003-03-13 Andrew Cagney <cagney@redhat.com>
9220 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9221 * gdbarch.h, gdbarch.c: Regenerate.
9222 * valops.c (hand_function_call): Update comment.
9223 * stack.c (return_command): Update comment.
9224 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9225 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9227 * x86-64-tdep.c (x86_64_init_abi): Update.
9228 * vax-tdep.c (vax_gdbarch_init): Update.
9229 * v850-tdep.c (v850_gdbarch_init): Update.
9230 * sparc-tdep.c (sparc_gdbarch_init): Update.
9231 * sh-tdep.c (sh_gdbarch_init): Update.
9232 * s390-tdep.c (s390_gdbarch_init): Update.
9233 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9234 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9235 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9236 * mips-tdep.c (mips_gdbarch_init): Update.
9237 * mcore-tdep.c (mcore_gdbarch_init): Update.
9238 * m68k-tdep.c (m68k_gdbarch_init): Update.
9239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9240 * ia64-tdep.c (ia64_gdbarch_init): Update.
9241 * i386-tdep.c (i386_gdbarch_init): Update.
9242 * hppa-tdep.c (hppa_gdbarch_init): Update.
9243 * h8300-tdep.c (h8300_gdbarch_init): Update.
9244 * frv-tdep.c (frv_gdbarch_init): Update.
9245 * cris-tdep.c (cris_gdbarch_init): Update.
9246 * avr-tdep.c (avr_gdbarch_init): Update.
9247 * arm-tdep.c (arm_gdbarch_init): Update.
9248 * alpha-tdep.c (alpha_gdbarch_init): Update.
9250 2003-03-13 Andrew Cagney <cagney@redhat.com>
9252 * frame.c (legacy_frame_p): New function.
9253 (get_prev_frame): Use legacy_frame_p.
9254 * frame.h (legacy_frame_p): Declare.
9256 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9258 * MAINTAINERS (write after approval): Alphabetically
9261 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9263 * MAINTAINERS (write after approval): Add myself.
9265 2003-03-12 Andrew Cagney <cagney@redhat.com>
9267 * frame.c (get_prev_frame): Rename the frame parameter to
9269 (get_next_frame, legacy_get_prev_frame): Ditto.
9271 2003-03-12 Andrew Cagney <cagney@redhat.com>
9273 * frame.c (get_current_frame): Check target_has_registers before
9274 checking target_has_stack.
9275 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9276 instead of deprecated_selected_frame.
9277 * findvar.c (value_of_register): Pass "frame", not
9278 deprecated_selected_frame, to value_of_builtin_reg.
9280 2003-03-12 Andrew Cagney <cagney@redhat.com>
9282 * regcache.c (regcache_cooked_write_signed): New function.
9283 (regcache_cooked_write_unsigned): New function.
9284 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9285 (regcache_cooked_read_signed): Fix regnum in range assertion.
9286 * regcache.h (regcache_cooked_write_signed): Declare.
9287 (regcache_cooked_write_unsigned): Declare.
9289 2003-03-12 Andrew Cagney <cagney@redhat.com>
9291 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9292 * gdbarch.h, gdbarch.c: Re-generate.
9293 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9294 * x86-64-tdep.h: Update.
9295 * x86-64-tdep.c (x86_64_init_abi): Update.
9296 * v850-tdep.c (v850_gdbarch_init): Update.
9297 * sparc-tdep.c (sparc_gdbarch_init): Update.
9298 * sh-tdep.c (sh_gdbarch_init): Update.
9299 * s390-tdep.c (s390_gdbarch_init): Update.
9300 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9301 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9302 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9303 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9304 * mips-tdep.c (mips_gdbarch_init): Update.
9305 * mcore-tdep.c (mcore_gdbarch_init): Update.
9306 * m68k-tdep.c (m68k_gdbarch_init): Update.
9307 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9308 * ia64-tdep.c (ia64_gdbarch_init): Update.
9309 * i386-tdep.c (i386_gdbarch_init): Update.
9310 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9311 * hppa-tdep.c (hppa_gdbarch_init): Update.
9312 * h8300-tdep.c (h8300_gdbarch_init): Update.
9313 * frv-tdep.c (frv_gdbarch_init): Update.
9314 * cris-tdep.c (cris_gdbarch_init): Update.
9315 * avr-tdep.c (avr_gdbarch_init): Update.
9316 * arm-tdep.c (arm_gdbarch_init): Update.
9317 * alpha-tdep.c (alpha_gdbarch_init): Update.
9318 * sh-tdep.c (sh_init_extra_frame_info): Update.
9319 (sh64_init_extra_frame_info): Update.
9320 * ns32knbsd-nat.c (frame_num_args): Update.
9321 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9322 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9323 (xstormy16_frame_chain_valid): Update.
9324 * vax-tdep.c (vax_saved_pc_after_call): Update.
9325 * v850-tdep.c (v850_frame_chain): Update.
9326 (v850_pop_frame): Update.
9327 (v850_init_extra_frame_info): Update.
9328 * sparc-tdep.c (setup_arbitrary_frame): Update.
9329 * ns32k-tdep.c (umax_frame_num_args): Update.
9330 * s390-tdep.c (s390_pop_frame_regular): Update.
9331 * mn10300-tdep.c (mn10300_frame_chain): Update.
9332 (mn10300_pop_frame_regular): Update.
9333 (mn10300_init_extra_frame_info): Update.
9334 * mips-tdep.c (mips_init_frame_pc_first): Update.
9335 (mips_frame_chain): Update.
9336 (mips_pop_frame): Update.
9337 * mcore-tdep.c (mcore_frame_chain): Update.
9338 (mcore_pop_frame): Update.
9339 (mcore_init_extra_frame_info): Update.
9340 * arch-utils.c (init_frame_pc_default): Update.
9341 * m68k-tdep.c (isi_frame_num_args): Update.
9342 (delta68_frame_num_args): Update.
9343 (news_frame_num_args): Update.
9344 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9345 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9346 (alpha_frame_chain): Update.
9347 (alpha_pop_frame): Update.
9348 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9349 (hppa_init_extra_frame_info): Update.
9350 (hppa_frame_chain): Update.
9351 (hppa_frame_chain_valid): Update.
9352 * cris-tdep.c (cris_init_extra_frame_info): Update.
9353 * avr-tdep.c (avr_init_extra_frame_info): Update.
9354 * arm-tdep.c (arm_frame_chain_valid): Update.
9355 (arm_init_extra_frame_info): Update.
9356 (arm_pop_frame): Update.
9357 * frame.c (frame_pc_unwind): Update.
9358 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9359 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9360 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9361 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9362 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9363 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9365 2003-03-12 Andrew Cagney <cagney@redhat.com>
9367 Eliminate the need for POP_FRAME.
9368 * frame.c (do_frame_unwind_register): New function.
9369 (frame_pop): When no POP_FRAME, pop the frame using register
9370 unwind and a scratch regcache.
9371 (frame_saved_regs_pop): Delete function.
9372 (trad_frame_unwinder): Update.
9373 * d10v-tdep.c (d10v_frame_pop): Delete function.
9374 (d10v_frame_unwind): Update.
9375 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9376 (sentinel_frame_unwinder): Update.
9377 * dummy-frame.c (dummy_frame_pop): Delete function.
9378 (dummy_frame_unwind): Update.
9379 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9380 (struct frame_unwind): Update.
9382 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9384 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9385 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9386 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9387 Do range checks on register number obtained from debugging info.
9388 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9389 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9390 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9392 (do_fp_register_row): Fix typo which caused double type to be
9393 used when attempting to unpack a float.
9395 2003-03-11 J. Brobecker <brobecker@gnat.com>
9397 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9399 2003-03-11 Andrew Cagney <cagney@redhat.com>
9401 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9402 frame. Problem found by Corinna Vinschen.
9404 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9406 * doublest.c (floatformat_from_length): Accept also
9407 the real size of 'long double' type.
9409 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9411 From Klee Dienes <kdienes@apple.com>:
9412 * breakpoint.c (bpstat_copy): Copy the command lines as well
9413 as the old value, to match what is freed in bpstat_clear.
9415 2003-03-10 David Carlton <carlton@math.stanford.edu>
9417 * minsyms.c (add_minsym_to_hash_table): Replace
9418 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9419 (compare_minimal_symbols, compact_minimal_symbols)
9420 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9421 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9422 of DEPRECATED_SYMBOL_MATCHES_NAME.
9423 (lookup_minimal_symbol_solib_trampoline): Ditto.
9425 2003-03-10 Andrew Cagney <cagney@redhat.com>
9427 * regcache.h (regcache_cooked_read_ftype): Define.
9428 (regcache_save, regcache_restore): Add a cooked_read parameter.
9429 * regcache.c (regcache_save, regcache_restore): Update.
9430 (do_cooked_read): New function.
9431 (regcache_cpy): Pass do_cooked_read to regcache_save and
9434 2003-03-10 Andrew Cagney <cagney@redhat.com>
9436 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9437 * gdbarch.h, gdbarch.c: Re-generate.
9438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9439 * x86-64-tdep.h: Update.
9440 * x86-64-tdep.c (x86_64_init_abi): Update.
9441 * v850-tdep.c (v850_gdbarch_init): Update.
9442 * sparc-tdep.c (sparc_gdbarch_init): Update.
9443 * sh-tdep.c (sh_gdbarch_init): Update.
9444 * s390-tdep.c (s390_gdbarch_init): Update.
9445 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9446 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9447 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9448 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9449 * mips-tdep.c (mips_gdbarch_init): Update.
9450 * mcore-tdep.c (mcore_gdbarch_init): Update.
9451 * m68k-tdep.c (m68k_gdbarch_init): Update.
9452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9453 * ia64-tdep.c (ia64_gdbarch_init): Update.
9454 * i386-tdep.c (i386_gdbarch_init): Update.
9455 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9456 * hppa-tdep.c (hppa_gdbarch_init): Update.
9457 * h8300-tdep.c (h8300_gdbarch_init): Update.
9458 * frv-tdep.c (frv_gdbarch_init): Update.
9459 * cris-tdep.c (cris_gdbarch_init): Update.
9460 * avr-tdep.c (avr_gdbarch_init): Update.
9461 * arm-tdep.c (arm_gdbarch_init): Update.
9462 * alpha-tdep.c (alpha_gdbarch_init): Update.
9463 * sh-tdep.c (sh_init_extra_frame_info): Update.
9464 (sh64_init_extra_frame_info): Update.
9465 * ns32knbsd-nat.c (frame_num_args): Update.
9466 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9467 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9468 (xstormy16_frame_chain_valid): Update.
9469 * vax-tdep.c (vax_saved_pc_after_call): Update.
9470 * v850-tdep.c (v850_frame_chain): Update.
9471 (v850_pop_frame): Update.
9472 (v850_init_extra_frame_info): Update.
9473 * sparc-tdep.c (setup_arbitrary_frame): Update.
9474 * ns32k-tdep.c (umax_frame_num_args): Update.
9475 * s390-tdep.c (s390_pop_frame_regular): Update.
9476 * mn10300-tdep.c (mn10300_frame_chain): Update.
9477 (mn10300_pop_frame_regular): Update.
9478 (mn10300_init_extra_frame_info): Update.
9479 * mips-tdep.c (mips_init_frame_pc_first): Update.
9480 (mips_frame_chain): Update.
9481 (mips_pop_frame): Update.
9482 * mcore-tdep.c (mcore_frame_chain): Update.
9483 (mcore_pop_frame): Update.
9484 (mcore_init_extra_frame_info): Update.
9485 * arch-utils.c (init_frame_pc_default): Update.
9486 * m68k-tdep.c (isi_frame_num_args): Update.
9487 (delta68_frame_num_args): Update.
9488 (news_frame_num_args): Update.
9489 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9490 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9491 (alpha_frame_chain): Update.
9492 (alpha_pop_frame): Update.
9493 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9494 (hppa_init_extra_frame_info): Update.
9495 (hppa_frame_chain): Update.
9496 (hppa_frame_chain_valid): Update.
9497 * cris-tdep.c (cris_init_extra_frame_info): Update.
9498 * avr-tdep.c (avr_init_extra_frame_info): Update.
9499 * arm-tdep.c (arm_frame_chain_valid): Update.
9500 (arm_init_extra_frame_info): Update.
9501 (arm_pop_frame): Update.
9502 * frame.c (frame_pc_unwind): Update.
9503 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9504 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9505 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9506 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9507 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9508 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9510 2003-03-10 Andrew Cagney <cagney@redhat.com>
9512 * gdbarch.sh (gdbarch_unwind_pc): New method.
9513 * gdbarch.h, gdbarch.c: Regenerate.
9514 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9515 but use read_pc and FRAME_SAVED_PC as fall backs.
9516 (frame_saved_regs_pc_unwind): Delete function.
9517 (trad_frame_unwinder): Update.
9518 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9519 (struct frame_unwind): Update.
9520 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9521 (dummy_frame_unwind): Update.
9522 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9523 (sentinel_frame_unwinder): Update.
9524 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9525 (d10v_frame_unwind): Update.
9526 (d10v_unwind_pc): New function.
9527 (d10v_gdbarch_init): Set unwind_pc.
9529 2003-03-10 Andrew Cagney <cagney@redhat.com>
9531 * gdbarch.h: Re-generate.
9533 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9535 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9538 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9540 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9542 2003-03-08 Andrew Cagney <cagney@redhat.com>
9544 * cli-out.c: Update copyright.
9545 (cli_out_data): Define typedef. Use instead of ui_out_data.
9547 2003-03-08 Andrew Cagney <cagney@redhat.com>
9549 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9552 2003-03-07 Andrew Cagney <cagney@redhat.com>
9554 * gdbarch.sh: Don't generate two macro definitions when an
9555 undefined macro taking no arguments.
9556 * gdbarch.h: Regenerate.
9558 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9560 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9561 (x86_64_unwind_dummy_id): New functions.
9562 (x86_64_init_abi): Register these two new functions.
9564 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9566 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9567 (x86_64_skip_prologue): Move prologue detection to
9569 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9571 2003-03-05 Andrew Cagney <cagney@redhat.com>
9573 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9574 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9575 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9576 to use unwind_dummy_id when a dummy frame.
9577 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9579 * gdbarch.h, gdbarch.c: Regneerate.
9581 2003-03-05 Andrew Cagney <cagney@redhat.com>
9583 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9584 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9585 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9588 2003-03-05 Andrew Cagney <cagney@redhat.com>
9590 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9591 (struct d10v_unwind_cache): Delete field "frameless". Replace
9592 "next_addr" with "sp_offset". Add "r11_offset".
9593 (d10v_frame_unwind_cache): Update.
9594 (prologue_find_regs): Update. When "mv r11, sp", save the
9595 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9596 RN was saved in r11_offset.
9598 2003-03-05 Andrew Cagney <cagney@redhat.com>
9600 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9601 cached PC value in the next frame.
9603 2003-03-05 Andrew Cagney <cagney@redhat.com>
9605 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9606 "id_unwind_cache" with "id".
9607 (frame_id_unwind): Delete declaration.
9608 * frame.c (frame_id_unwind): Delete function.
9609 (get_prev_frame): Call the frame id unwind method directly. Store
9610 the returned next frame's ID value in NEXT_FRAME. Note that there
9611 is a problem with the wrong unwind ID being called with the wrong
9614 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9616 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9618 2003-03-05 James Ingham <jingham@apple.com>
9619 Daniel Jacobowitz <drow@mvista.com>
9621 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9622 (auto_cp_abi): New variable.
9623 (current_cp_abi, num_cp_abis): Make static.
9624 (CP_ABI_MAX): Define.
9625 (cp_abis): Turn into an array.
9626 (value_virtual_fn_field): Fix formatting.
9627 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9629 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9630 (list_cp_abis, _initialize_cp_abi): New functions.
9631 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9632 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9633 switch_to_cp_abi. Update prototype for register_cp_abi.
9634 * Makefile.in (cp-abi.o): Update dependencies.
9635 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9636 instead of switch_to_cp_abi.
9637 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9639 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9641 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9643 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9645 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9646 * dwarf2loc.c: Include "regcache.h".
9647 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9649 * Makefile.in (dwarf2loc.o): Update dependencies.
9651 2003-03-04 Theodore A. Roth <troth@openavr.org>
9653 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9654 number of io registers reported by remote target is not a multiple of
9657 2003-03-04 David Carlton <carlton@math.stanford.edu>
9659 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9660 (lookup_symbol_aux_psymtabs): Update call to
9661 lookup_partial_symbol.
9662 (lookup_transparent_type, find_main_psymtab)
9663 (make_symbol_overload_list): Ditto.
9665 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9667 * MAINTAINERS (Write after approval): Update my email address.
9669 2003-03-03 Andrew Cagney <cagney@redhat.com>
9671 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9672 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9673 predicate. Replace MAX_REGISTER_RAW_SIZE.
9674 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9675 MAX_REGISTER_VIRTUAL_SIZE.
9676 * regcache.c (legacy_max_register_raw_size): New function.
9677 (legacy_max_register_virtual_size): New function.
9678 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9679 (MAX_REGISTER_RAW_SIZE): Define.
9680 (legacy_max_register_raw_size): Declare.
9681 (legacy_max_register_virtual_size): Declare.
9682 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9683 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9684 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9685 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9686 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9687 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9688 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9689 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9690 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9691 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9692 * vax-tdep.c (vax_gdbarch_init): Update.
9693 * v850-tdep.c (v850_gdbarch_init): Update.
9694 * sparc-tdep.c (sparc_gdbarch_init): Update.
9695 * sh-tdep.c (sh_gdbarch_init): Update.
9696 * s390-tdep.c (s390_gdbarch_init): Update.
9697 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9698 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9699 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9700 * mips-tdep.c (mips_gdbarch_init): Update.
9701 * mcore-tdep.c (mcore_gdbarch_init): Update.
9702 * m68k-tdep.c (m68k_gdbarch_init): Update.
9703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9704 * ia64-tdep.c (ia64_gdbarch_init): Update.
9705 * i386-tdep.c (i386_gdbarch_init): Update.
9706 * hppa-tdep.c (hppa_gdbarch_init): Update.
9707 * h8300-tdep.c (h8300_gdbarch_init): Update.
9708 * frv-tdep.c (frv_gdbarch_init): Update.
9709 * cris-tdep.c (cris_gdbarch_init): Update.
9710 * avr-tdep.c (avr_gdbarch_init): Update.
9711 * arm-tdep.c (arm_gdbarch_init): Update.
9712 * alpha-tdep.c (alpha_gdbarch_init): Update.
9713 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9714 max_register_raw_size or max_register_virtual_size.
9716 2003-03-03 David Carlton <carlton@math.stanford.edu>
9718 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9719 SYMBOL_MATCHES_NAME, add comment.
9720 (SYMBOL_MATCHES_NATURAL_NAME): New.
9721 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9722 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9723 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9724 * symtab.c (lookup_partial_symbol): Use
9725 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9727 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9728 SYMBOL_MATCHES_NAME.
9731 2003-03-03 David Carlton <carlton@math.stanford.edu>
9733 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9734 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9735 by regexp matching against SYMBOL_NATURAL_NAME.
9737 2003-03-03 David Carlton <carlton@math.stanford.edu>
9739 * linespec.c (find_method): Extract code into collect_methods.
9740 (collect_methods): New.
9742 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9744 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9747 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9748 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9750 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9752 * arch-utils.c (generic_register_byte): Fix to use the loop index
9753 and not regnum when summing the size of all registers up to regnum.
9755 2003-03-01 Andrew Cagney <cagney@redhat.com>
9757 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9758 FRAME_INIT_SAVED_REGS.
9759 * gdbarch.h, gdbarch.c: Regenerate.
9760 * stack.c (frame_info): Update.
9761 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9762 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9763 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9764 * ns32k-tdep.c (ns32k_pop_frame): Update.
9765 * mips-tdep.c (mips_pop_frame): Update.
9766 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9767 * ia64-tdep.c (ia64_frame_chain): Update.
9768 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9769 (ia64_frameless_function_invocation): Update.
9770 (ia64_init_extra_frame_info): Update.
9771 (ia64_pop_frame_regular): Update.
9772 * frame.h (struct frame_info): Update comment.
9773 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9774 * frame.c (frame_saved_regs_register_unwind): Update.
9775 (frame_saved_regs_register_unwind): Update.
9776 (deprecated_generic_get_saved_register): Update.
9777 * cris-tdep.c: Update comment.
9778 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9780 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9781 * x86-64-tdep.c (x86_64_init_abi): Update.
9782 * vax-tdep.c (vax_gdbarch_init): Update.
9783 * v850-tdep.c (v850_gdbarch_init): Update.
9784 * sparc-tdep.c (sparc_gdbarch_init): Update.
9785 * sh-tdep.c (sh_gdbarch_init): Update.
9786 * s390-tdep.c (s390_gdbarch_init): Update.
9787 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9788 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9789 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9790 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9791 * mips-tdep.c (mips_gdbarch_init): Update.
9792 * mcore-tdep.c (mcore_gdbarch_init): Update.
9793 * m68k-tdep.c (m68k_gdbarch_init): Update.
9794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9795 * ia64-tdep.c (ia64_gdbarch_init): Update.
9796 * i386-tdep.c (i386_gdbarch_init): Update.
9797 * frv-tdep.c (frv_gdbarch_init): Update.
9798 * avr-tdep.c (avr_gdbarch_init): Update.
9799 * arm-tdep.c (arm_gdbarch_init): Update.
9800 * alpha-tdep.c (alpha_gdbarch_init): Update.
9802 2003-03-01 Andrew Cagney <cagney@redhat.com>
9804 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9805 option enum and switch. When no windows, set the interpreter to
9808 2003-03-01 Andrew Cagney <cagney@redhat.com>
9810 * main.c (captured_main): Replace magic option characters with an
9813 2003-03-01 Andrew Cagney <cagney@redhat.com>
9815 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9816 INIT_EXTRA_FRAME_INFO.
9817 * gdbarch.h, gdbarch.c: Regenerate.
9818 * arm-tdep.c: Update comments.
9819 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9820 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9821 * frame.h, avr-tdep.c: Ditto.
9822 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9823 (create_new_frame, legacy_get_prev_frame): Ditto.
9824 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9825 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9826 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9827 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9828 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9829 * v850-tdep.c (v850_gdbarch_init): Ditto.
9830 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9831 * sh-tdep.c (sh_gdbarch_init): Ditto.
9832 * s390-tdep.c (s390_gdbarch_init): Ditto.
9833 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9834 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9835 * mips-tdep.c (mips_gdbarch_init): Ditto.
9836 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9838 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9839 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9840 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9841 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9842 * frv-tdep.c (frv_gdbarch_init): Ditto.
9843 * cris-tdep.c (cris_gdbarch_init): Ditto.
9844 * avr-tdep.c (avr_gdbarch_init): Ditto.
9845 * arm-tdep.c (arm_gdbarch_init): Ditto.
9846 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9847 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9849 2003-03-01 Andrew Cagney <cagney@redhat.com>
9851 * gdbarch.sh (register_type): New function with predicate.
9852 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9853 * gdbarch.h, gdbarch.c: Re-generate.
9854 * arch-utils.c (generic_register_byte): Use generic_register_size.
9855 (generic_register_size): When available, use
9856 gdbarch_register_type.
9857 * regcache.c (init_regcache_descr): When available, initialize the
9858 register type array using gdbarch_register_type. If the
9859 architecture supplies gdbarch_register_type, do not use the legacy
9861 * d10v-tdep.c (d10v_register_type): Replace
9862 d10v_register_virtual_type.
9863 (d10v_gdbarch_init): Set register_type instead of
9864 register_virtual_type.
9866 2003-03-01 Andrew Cagney <cagney@redhat.com>
9868 * Makefile.in (ax-gdb.o): Update dependencies.
9869 * ax-gdb.c: Include "regcache.h".
9870 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9871 * findvar.c (value_of_register): Ditto.
9872 * infcmd.c (default_print_registers_info): Ditto.
9874 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9876 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9877 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9879 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9881 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9884 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9886 * Makefile.in (dwarf2loc.o): Update dependencies.
9887 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9888 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9889 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9890 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9891 (locexpr_tracepoint_var_ref): New function.
9892 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9894 2003-02-28 Andrew Cagney <cagney@redhat.com>
9896 * regcache.c (register_size): New function.
9897 * regcache.h (register_size): Declare
9898 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9899 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9901 2003-02-28 David Carlton <carlton@math.stanford.edu>
9903 * linespec.c (decode_compound): Extract code into find_method.
9906 2003-02-28 J. Brobecker <brobecker@gnat.com>
9908 * Makefile.in: Add rules to build and link in observer.o.
9910 2003-02-27 J. Brobecker <brobecker@gnat.com>
9912 * observer.c: Minor comments edits.
9914 2003-02-27 J. Brobecker <brobecker@gnat.com>
9916 * observer.h, observer.c: New file.
9918 2003-02-27 Andrew Cagney <cagney@redhat.com>
9920 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9922 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9924 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9925 (M6812_OP_STS_EXT): Likewise.
9926 (m6811_prologue): Use the above to recognize prologue.
9927 (m6812_prologue): Likewise.
9929 2003-02-27 David Carlton <carlton@math.stanford.edu>
9931 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9933 (compare_psymbols): Ditto.
9934 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9936 2003-02-27 Michael Snyder <msnyder@redhat.com>
9938 * f-lang.c (build_fortran_types): New function.
9939 (_initialize_f_language): Gdbarch-register built-in fortran types.
9940 * doublest.c (extract_floating): Fix warning text.
9942 2003-02-27 Andrew Cagney <cagney@redhat.com>
9944 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9945 predicate. Replaces PUSH_DUMMY_FRAME.
9946 * gdbarch.h, gdbarch.c: Regnerate.
9947 * valops.c (hand_function_call): Update. Call
9948 generic_push_dummy_frame directly.
9949 * vax-tdep.c (vax_gdbarch_init): Update.
9950 * sparc-tdep.c (sparc_gdbarch_init): Update.
9951 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9952 * m68k-tdep.c (m68k_gdbarch_init): Update.
9953 * hppa-tdep.c (hppa_gdbarch_init): Update.
9954 * alpha-tdep.c (alpha_gdbarch_init): Update.
9955 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9956 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9957 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9958 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9959 push_dummy_frame to generic_push_dummy_frame.
9960 * v850-tdep.c (v850_gdbarch_init): Ditto.
9961 * sh-tdep.c (sh_gdbarch_init): Ditto.
9962 * s390-tdep.c (s390_gdbarch_init): Ditto.
9963 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9964 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9965 * mips-tdep.c (mips_gdbarch_init): Ditto.
9966 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9967 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9968 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9969 * i386-tdep.c (i386_gdbarch_init): Ditto.
9970 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9971 * frv-tdep.c (frv_gdbarch_init): Ditto.
9972 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9973 * cris-tdep.c (cris_gdbarch_init): Ditto.
9974 * avr-tdep.c (avr_gdbarch_init): Ditto.
9975 * arm-tdep.c (arm_gdbarch_init): Ditto.
9977 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9979 * mips-tdep.c (show_mips_abi): New function.
9980 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9981 command ``show mips abi''.
9983 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9985 From Elena Zannoni <ezannoni@redhat.com>
9986 * dbxread.c (process_one_symbol): Only record line 0 if one or
9987 more sline entries have been seen for the function.
9989 2003-02-26 Michael Chastain <mec@shout.net>
9991 * configure: Regenerate with autoconf 000227.
9993 2003-02-26 Michael Chastain <mec@shout.net>
9996 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9997 for old libc5/glibc.
9998 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10000 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10002 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10003 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10005 2003-02-26 Michael Chastain <mec@shout.net>
10007 * configure.in: New variable HAVE_UINTPTR_T.
10008 * configure, config.in: Regenerated.
10010 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10013 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10015 2003-02-25 Andrew Cagney <cagney@redhat.com>
10017 * frame.c (get_prev_frame): Add comment on check for
10018 inside_entry_func. Only check for inside_entry_file when not a
10019 dummy and not a sentinel. Check that the new frame is not inner
10022 2003-02-25 Andrew Cagney <cagney@redhat.com>
10024 * frame.c (frame_debug): New variable.
10025 (_initialize_frame): Add "set/show debug frame" command.
10026 (get_prev_frame): When frame_debug, print reason why unwind
10029 2003-02-25 Michael Chastain <mec@shout.net>
10031 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10032 to avoid uintptr_t definition problems.
10034 2003-02-25 David Carlton <carlton@math.stanford.edu>
10036 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10037 (SYMBOL_LINKAGE_NAME): Ditto.
10038 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10039 SYMBOL_LINKAGE_NAME.
10040 (struct general_symbol_info): Expand comment.
10041 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10042 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10043 (SYMBOL_MATCHES_REGEXP): Ditto.
10044 * symtab.c (symbol_natural_name): New function.
10045 * objfiles.h: Replace all uses of SYMBOL_NAME by
10046 DEPRECATED_SYMBOL_NAME.
10047 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10048 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10049 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10050 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10051 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10052 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10053 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10054 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10055 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10056 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10057 * ada-exp.y: Ditto.
10058 * ada-exp.y: Update copyright.
10059 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10060 * cp-valprint.c: Ditto.
10062 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10064 * infptrace.c (detach): Do not flag error if ptrace detach fails
10065 and errno is set to ESRCH.
10067 2003-02-24 Andrew Cagney <cagney@redhat.com>
10069 * infptrace.c (udot_info): Change type of udot_off to long. Use
10070 paddr when printing udot_off's value.
10072 2003-02-24 David Carlton <carlton@math.stanford.edu>
10074 * symtab.c (make_symbol_overload_list): Only read in partial
10075 symtabs containing a matching partial symbol.
10077 2003-02-24 David Carlton <carlton@math.stanford.edu>
10079 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10080 do the comparison, not strcmp.
10081 * symfile.c (compare_psymbols): Ditto.
10082 * defs.h: Declare strcmp_iw_ordered.
10083 * utils.c (strcmp_iw_ordered): New function.
10085 2003-02-24 Jim Blandy <jimb@redhat.com>
10087 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10088 support, shared libs): Remove my name from here, to better reflect
10091 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10093 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10094 (target_ops): Add to_have_continuable_watchpoint.
10095 * target.c (update_current_target): Add INHERIT line for
10096 to_have_continuable_watchpoint.
10097 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10098 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10099 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10100 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10102 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10104 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10107 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10109 * solib.c (solib_open): Call target defined search function after
10110 failing with solib-search-path.
10111 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10112 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10114 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10116 * MAINTAINERS: Add myself to Write After section.
10118 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10120 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10122 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10124 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10125 (m68hc11_add_reggroups): New function.
10126 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10127 (m68hc11_gdbarch_init): Install the reggroups.
10128 (_initialize_m68hc11_tdep): Initialize them.
10130 2003-02-21 James E Wilson <wilson@tuliptree.org>
10132 * MAINTAINERS: Update my email address.
10134 2003-02-21 David Carlton <carlton@math.stanford.edu>
10136 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10138 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10140 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10141 * symtab.h: Add opaque declarations of struct axs_value and
10143 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10144 (struct location_funcs): New type.
10145 (struct symbol): Add "loc" to aux_value.
10146 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10147 * dwarf2read.c: Include "dwarf2expr.h".
10148 (dwarf2_symbol_mark_computed): New function.
10149 (read_func_scope): Use it.
10150 (var_decode_location): New function.
10151 (new_symbol): Use it.
10152 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10154 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10155 (dwarf2expr_h, dwarf2loc_h): New variables.
10156 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10157 (dwarf2expr.o, dwarf2loc.o): New rules.
10158 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10159 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10161 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10162 * m2-exp.y (yylex): Likewise.
10163 * printcmd.c (address_info, print_frame_args): Likewise.
10164 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10165 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10166 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10167 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10168 * symtab.c (lookup_block_symbol): Likewise.
10170 2003-02-20 Adam Fedor <fedor@gnu.org>
10172 * symtab.h: Remove objc_specific struct
10173 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10174 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10175 Have language_objc use cplus_specific struct.
10177 2003-02-20 Tom Tromey <tromey@redhat.com>
10179 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10180 TYPE_NAME, when printing a String value. PR java/1075.
10182 2003-02-20 Adam Fedor <fedor@gnu.org>
10184 * objc-lang.h (find_methods): Remove declaration.
10185 * objc-lang.c (find_methods): Make static.
10187 2003-02-20 Christopher Faylor <cgf@redhat.com>
10189 * win32-nat.c (get_image_name): Check return value from
10191 (child_xfer_memory): Ditto.
10193 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10195 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10196 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10197 '${exec_prefix}' (in addition to the expansion thereof) as
10199 * configure: Rebuilt.
10201 2003-02-20 David Carlton <carlton@math.stanford.edu>
10203 * symtab.c (search_symbols): Revert the search_symbols part of my
10204 2002-12-23 patch. Add comment.
10206 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10208 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10209 * dbxread.c (elfstab_build_psymtabs): Don't call
10210 install_minimal_symbols.
10211 (stabsect_build_psymtabs): Likewise.
10212 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10214 * somread.c (som_symfile_read): Call install_minimal_symbols
10215 and do_cleanups earlier.
10216 * nlmread.c (nlm_symfile_read): Likewise.
10217 * mdebugread.c (elfmdebug_build_psymtabs): Call
10218 install_minimal_symbols and make appropriate cleanups.
10220 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10222 * solib.c (reload_shared_libraries): New function.
10223 (_initialize_solib): Add callbacks for ``set solib-search-path''
10224 and ``set solib-absolute-prefix''.
10226 2003-02-20 David Carlton <carlton@math.stanford.edu>
10228 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10230 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10231 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10232 * ada-typeprint.c (ada_typedef_print): Ditto.
10233 * ax-gdb.c (gen_var_ref): Ditto.
10234 * breakpoint.c (print_one_breakpoint): Ditto.
10235 * buildsym.c (finish_block): Ditto.
10236 * c-valprint.c (c_val_print): Ditto.
10237 * expprint.c (print_subexp): Ditto.
10238 * findvar.c (locate_var_value): Ditto.
10239 * infcmd.c (jump_command): Ditto.
10240 * linespec.c (decode_line_2, decode_compound): Ditto.
10241 * maint.c (maintenance_translate_address): Ditto.
10242 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10243 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10245 * p-valprint.c (pascal_val_print): Ditto.
10246 * stabsread.c (define_symbol): Ditto.
10247 * stack.c (print_frame, frame_info, print_block_frame_locals)
10248 (print_frame_arg_vars, return_command): Ditto.
10249 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10250 * symmisc.c (print_symbol): Ditto.
10251 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10252 (compare_search_syms, print_symbol_info, print_msymbol_info)
10253 (rbreak_command): Ditto.
10254 * tracepoint.c (tracepoints_info): Ditto.
10255 * typeprint.c (typedef_print): Ditto.
10256 * valops.c (value_of_variable, hand_function_call): Ditto.
10257 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10258 * ada-typeprint.c: Update Copyright.
10259 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10260 * tracepoint.c, cli/cli-cmds.c: Ditto.
10262 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10264 * frame.c (generic_unwind_get_saved_register): Make non-static.
10265 * frame.h (generic_unwind_get_saved_register): Declare.
10266 * mips-tdep.c (read_next_frame_reg): Fetch register from
10267 current regcache when frame is NULL.
10268 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10270 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10271 instead of frame_register_unwind().
10273 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10275 * remote-sim.c (gdbsim_insert_breakpoint)
10276 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10279 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10281 * remote.c (_initialize_remote): Add commands "set/show remote
10282 hardware-watchpoint-limit" and "set/show remote
10283 hardware-breakpoint-limit".
10284 (remote_hw_watchpoint_limit): Initialize to -1.
10285 (remote_hw_breakpoint_limit): Ditto.
10286 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10288 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10290 * coff-pe-read.c: New file - support reading of minimal symbols from a
10291 portable executable using the export table.
10292 * coff-pe-read.h: New file.
10293 * coffread.c: Include coff-pe-read.h.
10294 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10295 debugging symbols found.
10296 * Makefile.in (SFILES): Add coff-pe-read.o.
10297 (coff_pe_read_h): Define.
10298 (COMMON_OBS): Add coff-pe-read.o.
10299 (coffread.o): Add coff_pe_read_h dependency.
10300 (coff-pe-read.o): New target.
10302 2003-02-19 David Carlton <carlton@math.stanford.edu>
10304 * Makefile.in (SFILES): Add block.c.
10306 (COMMON_OBS): Add block.o.
10308 (x86-64-tdep.o): Add $(block_h).
10309 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10310 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10311 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10312 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10313 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10314 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10315 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10316 * value.h: Add opaque declaration for struct block.
10317 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10318 * ada-lang.h: Ditto.
10319 * x86-64-tdep.c: #include "block.h"
10320 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10321 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10322 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10323 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10324 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10325 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10326 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10327 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10328 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10329 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10330 * symtab.c (block_function): Ditto.
10331 (contained_in): Ditto.
10332 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10333 block.h. Add opaque declaration for struct block.
10334 * symtab.h: Move block_function and contained_in declarations to
10335 block.h. Add opaque declarations for struct block, struct
10337 (struct block): Move to block.h.
10338 (struct blockvector): Ditto.
10339 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10340 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10341 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10342 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10343 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10345 * block.c: New file.
10346 * block.h: New file.
10348 2003-02-19 Theodore A. Roth <troth@openavr.org>
10350 * avr-tdep.c (avr_extract_return_value): Remove function.
10351 (avr_store_return_value): Remove function.
10352 (avr_extract_struct_value_address): Remove function.
10353 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10355 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10357 * rs6000-tdep.c: Include "gdb_assert.h".
10358 (registers_e500): Add "acc" and "spefscr".
10359 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10360 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10361 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10363 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10365 2003-02-18 Keith Seitz <keiths@redhat.com>
10367 * Makefile.in: Add gdbtk-interps.c.
10369 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10371 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10372 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10374 2003-02-18 Andrew Cagney <cagney@redhat.com>
10376 * symtab.h (struct objfile): Add opaque declaration.
10378 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10380 From Jim Ingham <jingham@apple.com>:
10381 * dbxread.c (process_one_symbol): Use last_function_start rather
10382 than function_start_offset to find the real beginning of the
10383 current function. The latter is just the text section offset on
10384 some systems, the former is always the real function start.
10386 2003-02-17 Andrew Cagney <cagney@redhat.com>
10388 * configure.in: Revert ${target} != ${host}.
10390 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10392 * configure.in (Makefile): Use the test ${target} != ${host},
10393 instead of the absence of the "nm.h" file, to determine of the
10394 configuration non-native.
10395 * configure: Regenerate.
10397 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10399 From Brian Ford <ford@vss.fsi.com>
10401 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10402 conditionalize tui_active test.
10403 (lookup_cmd_1): Ditto.
10405 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10407 * configure.in: Add check for _etext.
10408 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10410 * config.in, configure: regenerated.
10412 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10414 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10416 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10418 * main.c (tui_version): Delete variable.
10419 (captured_main): When --tui, set interpreter_p to "tui" instead of
10420 enabling tui_version.
10421 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10423 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10424 * cli/cli-cmds.c (disassemble_command): Ditto.
10425 * defs.h (tui_version): Delete declaration.
10426 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10427 (tui-interp.o): Add rules.
10428 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10430 2003-02-14 Christopher Faylor <cgf@redhat.com>
10432 * win32-nat.c (register_loaded_dll): Correctly set address range for
10435 2003-02-12 Jason Molenda (jmolenda@apple.com)
10437 * symmisc.c (print_objfile_statistics): Include information about
10438 the number of psymtabs and symtabs in each object file.
10440 2003-02-13 Keith R Seitz <keiths@redhat.com>
10442 * main.h (struct captured_main_args): Add interpreter_p.
10443 * main.c (captured_main): Initialize interpreter_p from context.
10444 * gdb.c (main): Set interpreter_p argument.
10445 * Makefile.in (gdb.o): Add dependency for interps.h.
10447 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10449 * event-top.c (cli_command_loop): Delete declaration.
10450 (_initialize_event_loop): Delete function setting event_loop_hook.
10451 * event-top.h (cli_command_loop): Declare. Update copyright.
10452 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10453 * interps.c (current_interp_command_loop): When event_loop_p, call
10456 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10458 * interps.h (interp_command_loop_ftype): Change return type to
10461 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10463 * x86-64-tdep.c (x86_64_extract_return_value)
10464 (x86_64_store_return_value): Use regcache instead of regbuf.
10465 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10466 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10468 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10470 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10471 * aclocal.m4: Regenerate.
10472 * configure: Regenerate.
10474 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10475 TCL_LD_SEARCH_FLAGS.
10477 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10479 * dwarf2cfi.c: Reindented.
10481 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10483 * interps.c (clear_interpreter_hooks): Convert function definition
10486 2003-02-07 David Carlton <carlton@math.stanford.edu>
10488 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10490 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10492 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10493 (struct type): ...to here.
10494 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10496 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10497 (replace_type): Set length on all type variants for a given type.
10499 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10501 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10503 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10505 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10507 * Makefile.in (symm-nat.o): Update dependencies.
10508 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10509 (lynx-nat.o, ia64-linux-nat.): Ditto.
10510 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10511 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10512 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10514 * Makefile.in (inflow_h): Define.
10515 (procfs.o, inflow.o, procfs.o): Update dependencies.
10516 * inftarg.c (child_stop): Delete extern declaration of
10517 inferior_process_group. Include "inflow.h".
10518 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10519 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10520 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10521 (our_process_group, inferior_process_group): Extern declarations.
10523 * procfs.c: Include "gdb_assert.h".
10525 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10526 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10527 * jv-typeprint.c (java_type_print_base): Ditto.
10528 * typeprint.c (typedef_print): Eliminate STREQ.
10529 * cli/cli-script.c (define_command, define_command): Ditto.
10530 * main.c (captured_main): Ditto.
10531 * values.c (lookup_internalvar): Ditto.
10532 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10533 within `if' conditional.
10534 * linespec.c (decode_line_2): Ditto.
10535 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10536 (bfd_openw_with_cleanup): Ditto.
10538 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10540 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10541 legacy_extract_return_value and store_return_value to
10542 legacy_return_value.
10544 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10546 * win32-nat.c (get_relocated_section_addrs): New function. Find
10547 section load addresses for symbol handling in relocated DLLs.
10548 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10550 2003-02-05 Fred Fish <fnf@intrinsity.com>
10552 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10554 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10556 (angel_RDI_info): Ditto.
10557 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10559 (threads_continue_all_with_signals): Ditto.
10561 2003-02-05 Jim Ingham <jingham@apple.com>
10562 Keith Seitz <keiths@redhat.com>
10563 Elena Zannoni <ezannoni@redhat.com>
10564 Andrew Cagney <ac131313@redhat.com>
10566 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10567 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10568 (SUBDIR_MI_OBS): Add "mi-interp.o".
10569 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10570 (SFILES): Add "interps.c".
10571 (COMMON_OBS): Add "interps.o".
10572 (interps_h, mi_main_h): Define.
10573 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10574 (mi-main.o, main.o, event-top.o): Update dependencies.
10575 * cli/cli-interp.c: New file.
10576 * interps.h, interps.c: New files.
10577 * top.c: (gdb_init): Don't install the default interpreter, handed
10579 * main.c: Include "interps.h".
10580 (interpreter_p): Note that it should malloc'ed.
10581 (captured_command_loop): Call current_interp_command_loop.
10582 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10583 xfree and xstrdup when updating interpreter_p. Install the
10584 default interpreter. Add hack to stop mi1's copyright notice
10586 * event-top.h (gdb_setup_readline): Declare.
10587 (gdb_disable_readline): Declare.
10588 * event-top.c: Include "interps.h".
10589 (display_gdb_prompt): Call current_interp_display_prompt_p.
10590 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10591 gdb_stdlog, and gdb_stdtarg.
10592 (_initialize_event_loop): Don't call gdb_setup_readline.
10593 * cli-out.c (cli_out_set_stream): New function.
10594 * cli-out.h (cli_out_set_stream): Declare.
10596 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10598 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10599 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10600 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10601 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10602 config/i386/i386v42mp.mt: Removed.
10604 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10606 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10609 2003-02-05 Michael Chastain <mec@shout.net>
10611 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10612 2.12.1 and earlier versions.
10614 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10616 Remove orphaned hosts, targets and files.
10617 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10618 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10619 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10620 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10621 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10622 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10623 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10624 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10625 * config/sparc/tm-sp64sim.h: Delete.
10626 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10628 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10629 mips*-dec-mach3* targets.
10631 2003-02-04 Michael Chastain <mec@shout.net>
10633 * NEWS: Fix typo: sepcifying -> specifying.
10635 2003-02-04 Michael Chastain <mec@shout.net>
10637 * dwarfread.c: Add documentation on the state of dwarf-1,
10638 looking towards obsoletion.
10640 2003-02-03 Michael Chastain <mec@shout.net>
10642 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10643 gdb/testsuite/gdb.c++/pr-1023.exp.
10645 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10647 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10648 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10650 * utils.c (init_page_info): Delete reference to MPW in comments.
10651 * main.c (captured_main): Delete #ifdef MPW.
10653 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10655 * NEWS: Note that the m32r-*-elf* is obsolete.
10656 * monitor.c (monitor_expect): Obsolete reference to m32r.
10657 * configure.tgt: Mark m32r-*-elf* as obsolete.
10658 * MAINTAINERS: Mark m32k as obsolete.
10659 * m32r-rom.c: Obsolete file.
10660 * config/m32r/m32r.mt: Obsolete file.
10661 * config/m32r/tm-m32r.h: Obsolete file.
10662 * m32r-stub.c: Obsolete file.
10663 * m32r-tdep.c: Obsolete file.
10665 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10667 * NEWS: Mention that the z8k-zilog-none is obsolete.
10668 * MAINTAINERS: Mark z8k as obsolete.
10669 * configure.tgt: Obsolete the z8k-*-coff* target.
10670 * config/z8k/z8k.mt: Obsolete file.
10671 * config/z8k/tm-z8k.h: Obsolete file.
10672 * z8k-tdep.c: Obsolete file.
10674 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10676 * NEWS: Mention that the mn10200-elf is obsolete.
10677 * configure.tgt: Obsolete mn10200-*-* target.
10678 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10679 mention that the mn10200 is obsolete.
10680 * breakpoint.h: Ditto.
10681 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10682 * config/mn10200/mn10200.mt: Obsolete file.
10683 * config/mn10200/tm-mn10200.h: Obsolete file.
10684 * mn10200-tdep.c: Obsolete file.
10686 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10688 * MAINTAINERS: Mark h8500 as obsolete.
10689 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10690 * findvar.c (value_from_register): Ditto.
10691 * h8500-tdep.c: Mark file as obsolete.
10692 * config/h8500/h8500.mt: Ditto.
10693 * config/h8500/tm-h8500.h: Ditto.
10694 * NEWS: Mention that h8500 is obsolete.
10696 2003-02-04 David Carlton <carlton@math.stanford.edu>
10698 * objfiles.c (allocate_objfile): Always set name. Add comment at
10700 * jv-lang.c (get_dynamics_objfile): Add comment.
10702 2003-02-04 David Carlton <carlton@math.stanford.edu>
10704 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10705 * printcmd.c (build_address_symbolic): Replace uses of
10706 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10707 SYMBOL_NAME, and asm_demangle.
10710 2003-02-04 David Carlton <carlton@math.stanford.edu>
10712 * linespec.c (decode_compound): Extract code into
10714 (lookup_prefix_sym): New function.
10716 2003-02-04 David Carlton <carlton@math.stanford.edu>
10718 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10719 FLOAT_COERCION_BADNESS.
10720 * gdbtypes.c (rank_one_type): Replace all uses of
10721 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10723 2003-02-04 Jim Blandy <jimb@redhat.com>
10725 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10726 section, let dwarf_macinfo_section point to it, not
10729 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10731 Pointed out by Anton Blanchard <anton@samba.org>.
10732 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10733 (ppc_linux_at_sigtramp_return_path): Use it.
10735 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10737 * defs.h (streq): Add prototype.
10738 * utils.c (streq): New function.
10740 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10741 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10742 * mdebugread.c (new_symbol): Likewise.
10743 * stabsread.c (define_symbol): Likewise.
10744 * coffread.c (process_coff_symbol): Likewise.
10745 * dwarfread.c (new_symbol): Likewise.
10747 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10748 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10750 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10751 SYMBOL_INIT_DEMANGLED_NAME.
10752 * objfiles.c: Include "hashtab.h".
10753 (allocate_objfile): Call htab_set_functions_ex for the
10754 demangled_names_hash.
10755 (free_objfile): Call htab_delete for the demangled_names_hash.
10756 * objfiles.h (struct htab): Add declaration.
10757 (struct objfile): Add demangled_names_hash.
10758 * symfile.c: Include "hashtab.h".
10759 (reread_symbols): Call htab_delete for the demangled_names_hash.
10760 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10761 SYMBOL_NAME in the bcache.
10762 * symtab.c: Include "hashtab.h". Update comments.
10763 (create_demangled_names_hash, symbol_set_names): New functions.
10764 (symbol_find_demangled_name): New function, broken out from
10765 symbol_init_demangled_names.
10766 (symbol_init_demangled_names): Use it.
10767 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10768 (SYMBOL_SET_NAMES): New macro.
10769 (symbol_set_names): Add prototype.
10771 2003-02-03 Jim Blandy <jimb@redhat.com>
10773 Use a single, consistent representation for an empty minimal
10774 symbol table in an objfile.
10775 * objfiles.c (terminate_minimal_symbol_table): New function.
10776 (allocate_objfile): Call it.
10777 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10778 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10780 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10781 objfile has minimal symbols, compare minimal_symbol_count to zero,
10782 instead of comparing msymbols with NULL.
10783 * objfiles.c (have_minimal_symbols): Same.
10784 * solib-sunos.c (solib_add_common_symbols): Call
10785 terminate_minimal_symbol_table.
10786 * symfile.c (reread_symbols): Same.
10788 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10790 * s390-tdep.c (s390_address_class_type_flags)
10791 (s390_address_class_type_flags_to_name)
10792 (s390_address_class_name_to_type_flags): New functions.
10793 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10794 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10796 2003-02-03 Michael Snyder <msnyder@redhat.com>
10798 * arm-tdep.c: Fix spell-o in comment.
10800 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10802 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10803 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10804 error messages to contain BFD filename.
10806 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10808 Fix PR gdb/742 gdb/743 gdb/877
10809 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10810 (do_mixed_source_and_assembly): Use
10811 make_cleanup_ui_out_tuple_begin_end and
10812 make_cleanup_ui_out_tuple_begin_end.
10813 (do_mixed_source_and_assembly): Ditto.
10814 * thread.c (do_captured_list_thread_ids): Ditto.
10815 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10816 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10817 ui_out_tuple_end): Delete prototypes.
10818 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10819 ui_out_list_end, ui_out_tuple_end): Delete.
10821 From Kevin Buettner <kevinb@redhat.com>:
10822 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10823 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10824 (do_cleanup_table_end): New functions.
10825 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10826 Use cleanups to invoke_ui_out_tuple_end().
10827 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10828 * cli/cli-setshow.c (cmd_show_list): Use
10829 make_cleanup_ui_out_tuple_begin_end.
10831 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10833 * frame.c (frame_unwind_register): New function.
10834 (frame_unwind_unsigned_register): Use.
10835 (frame_unwind_signed_register): Use.
10836 (frame_read_register): New function.
10837 * frame.h (frame_unwind_register): Declare.
10838 (frame_read_register): Declare.
10840 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10841 and frame_unwind_register instead of read_memory, write_register
10842 and deprecated_write_register_bytes.
10844 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10846 * frame.h: Note that namelen can be negative.
10847 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10850 * NEWS: Mention that the d10v's `regs' command is deprecated.
10851 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10852 (d10v_print_registers_info): New function.
10853 (show_regs): Call d10v_print_registers_info.
10854 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10856 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10858 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10859 lost in the previous patch.
10861 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10863 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10864 * stack.c (print_frame_info_base): Output complete FRAME tuple
10865 for synthesized frames.
10867 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10869 * mips-nat.c (zerobuf): Delete.
10870 (fetch_inferior_registers): Alloc local zerobuf.
10871 (fetch_core_registers): Alloc local zerobuf.
10872 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10873 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10874 * thread-db.c (thread_db_store_registers): Ditto.
10875 * sh-tdep.c (sh_do_register): Ditto.
10876 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10877 * remote-sim.c (gdbsim_store_register): Ditto.
10878 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10879 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10880 * monitor.c (monitor_supply_register): Ditto.
10881 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10882 * mips-nat.c (fetch_inferior_registers): Ditto.
10883 * m68klinux-nat.c (fetch_register): Ditto.
10884 * lynx-nat.c (fetch_inferior_registers): Ditto.
10885 (fetch_inferior_registers): Ditto.
10886 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10887 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10888 (hpux_thread_store_registers): Ditto.
10889 * hppah-nat.c (fetch_register): Ditto.
10890 * hppab-nat.c (fetch_register): Ditto.
10891 * hppa-tdep.c (pa_register_look_aside): Ditto.
10892 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10893 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10895 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10897 * gdbarch.sh: Explictly specify all method levels. When a
10898 variable with an empty level, provide a non-multi-arch default.
10899 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10900 * gdbarch.h: Re-generate.
10901 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10902 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10904 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10906 * defs.h (host_pointer_to_address): Delete declaration.
10907 (address_to_host_pointer): Delete declaration.
10908 * utils.c (host_pointer_to_address): Delete function.
10909 (address_to_host_pointer): Delete function.
10910 * procfs.c (procfs_address_to_host_pointer): New function.
10911 * procfs.c (proc_set_watchpoint): Use.
10912 (procfs_can_use_hw_breakpoint): Update comments.
10913 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10914 (som_solib_add): Use.
10915 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10916 * hppa-tdep.c (unwind_command): Use.
10918 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10920 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10923 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10924 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10925 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10926 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10927 (define_symbol): Update.
10928 * symfile.c (generic_load): Remove references to nindy.
10929 * symtab.c: Remove references to nindy.
10931 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10933 * infcmd.c (print_float_info): Delete code conditional on
10935 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10936 * config/m68k/nm-apollo68b.h: Ditto.
10937 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10938 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10939 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10941 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10943 * config/i386/tm-i386os9k.h: Removed.
10945 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10946 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10947 they're identical to i[3456]86-*-sysv* now.
10948 * config/i386/i386v32.mh: Removed.
10949 * config/i386/xm-i386v32.h: Removed.
10950 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10952 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10954 * config/i386/i386dgux.mh: Removed.
10955 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10957 * configure.in: Fix typo.
10958 * configure: Regenerated.
10960 2003-01-31 David Carlton <carlton@math.stanford.edu>
10962 * dwarf2read.c (dwarf2_locate_sections): Set
10963 dwarf_ranges_section.
10965 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10967 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10968 * utils.c: Update comments documenting legitimate uses of PTR.
10970 * utils.c: Re-indent.
10972 * config/djgpp/fnchange.lst: Delete nindy files.
10973 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10974 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10975 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10976 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10977 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10978 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10979 * Makefile.in (init.c): Remove nindy references.
10980 (saber_gdb): Delete rule.
10981 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10982 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10984 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10985 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10986 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10987 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10988 nindy-share/stop.h.
10989 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10990 * saber.suppress: Delete file.
10992 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10994 * dbxread.c (stabs_data): New static variable.
10995 (fill_symbuf): Support an in-memory buffer for stabs data.
10996 (stabs_seek): New function.
10997 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10998 (read_ofile_symtab): Use stabs_seek.
10999 (elfstab_build_psymtabs): Take an asection* instead of
11000 an offset and size. Relocate the stabs data if necessary.
11001 Save the section* for dbx_psymtab_to_symtab.
11002 * dwarf2read.c: Add section variables for each debug section.
11003 (dwarf2_locate_sections): Fill them in.
11004 (dwarf2_read_section): Take an asection* argument.
11005 Relocate the section contents if necessary.
11006 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11007 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11008 it to dwarf2_read_section.
11009 (dwarf2_build_frame_info): Update callers.
11010 * elfread.c (elf_symfile_read): Update call to
11011 elfstab_build_psymtabs.
11012 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11013 (DBX_STAB_SECTION): New macro.
11014 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11015 * symfile.c (symfile_dummy_outputs): New function.
11016 (symfile_relocate_debug_section): New function.
11017 * symfile.h (symfile_relocate_debug_section): Add prototype.
11019 2003-01-31 Richard Henderson <rth@redhat.com>
11021 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11022 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11023 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11024 * alpha-tdep.c (alpha_register_name): Add "unique".
11025 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11026 (ALPHA_UNIQUE_REGNUM): New.
11027 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11029 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11031 * README: Remove reference to Ericsson 1800 monitor.
11032 * Makefile.in (remote-es.o): Delete rule.
11033 (ALLDEPFILES): Delete remote-es.c.
11034 * remote-es.c: Delete file.
11035 * config/m68k/es1800.mt: Delete file.
11036 * config/djgpp/fnchange.lst: Update.
11037 * configure.tgt: Delete m68*-ericsson-* target.
11039 2003-01-31 Adam Fedor <fedor@gnu.org>
11041 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11042 Remove duplicate/shadowing variable of same name.
11044 2003-01-30 Jim Blandy <jimb@redhat.com>
11046 * symfile.c (find_separate_debug_file): Assert that the objfile's
11047 directory name we compute ends with a slash, and then assume that
11048 that's so everywhere we use it.
11050 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11052 * valops.c (value_assign): Flush frame cache after stores to memory
11055 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11057 * Makefile.in (mon960-rom.o): Delete rule.
11058 * mon960-rom.c: Delete file.
11060 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11062 * d10v-tdep.c: Include "frame-unwind.h".
11063 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11065 (next_addr, uses_frame): Delete.
11066 (struct d10v_unwind_cache): Define.
11067 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11068 Use info instead of next_addr and uses_frame globals.
11069 (d10v_frame_init_saved_regs): Delete function.
11070 (d10v_init_extra_frame_info): Delete function.
11071 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11072 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11073 init_frame_pc or frame_saved_pc.
11074 (d10v_pop_frame): Delete function.
11075 (do_d10v_pop_frame): Delete function.
11076 (d10v_frame_chain): Delete function.
11077 (d10v_frame_chain_valid): Delete function.
11078 (d10v_frame_pc_unwind): New function.
11079 (d10v_frame_id_unwind): New function.
11080 (saved_regs_unwinder): New function.
11081 (d10v_frame_register_unwind): New function.
11082 (d10v_frame_pop): New function.
11083 (d10v_frame_unwind): New variable.
11084 (d10v_frame_p): New function.
11085 (d10v_frame_saved_pc): Delete function.
11086 * Makefile.in (d10v-tdep.o): Update dependencies.
11088 2003-01-30 J. Brobecker <brobecker@gnat.com>
11090 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11091 causing some regressions due to a change in the default value
11094 2003-01-29 Richard Henderson <rth@redhat.com>
11095 Elena Zannoni <ezannoni@redhat.com>
11096 Daniel Jacobowitz <drow@mvista.com>
11099 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11101 (RANGES_SECTION): New.
11102 (dwarf_ranges_buffer): New variable.
11103 (struct comp_unit_head): Add member "die".
11104 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11105 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11106 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11107 (dwarf2_locate_sections): Likewise.
11108 (dwarf2_build_psymtabs): Read .debug_ranges.
11109 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11110 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11111 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11112 Look for DW_AT_ranges and return the bounding box.
11114 2003-01-29 Brian Ford <ford@vss.fsi.com>
11116 * win32-nat.c (cygwin_pid): Removed as unused.
11117 (child_attach): Try fall back to Cygwin pid.
11119 2003-01-29 Jim Blandy <jimb@redhat.com>
11121 * objfiles.h (struct objfile): Doc fix.
11123 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11125 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11126 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11127 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11128 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11129 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11130 (FRAME_SAVED_PC): Change to a function with predicate.
11131 * gdbarch.h, gdbarch.c: Re-generate.
11133 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11135 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11137 * complaints.c (complain): Delete function.
11138 * complaints.h (struct deprecated_complaint): Delete definition.
11139 (complain): Delete declaration.
11141 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11143 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11146 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11148 * sentinel-frame.h, sentinel-frame.c: New files.
11149 * Makefile.in (frame.o): Update dependencies.
11150 (SFILES): Add sentinel-frame.c.
11151 (sentinel_frame_h): Define.
11152 (COMMON_OBS): Add sentinel-frame.o.
11153 (sentinel-frame.o): Specify dependencies.
11154 * frame.c: Include "sentinel-frame.h".
11155 (frame_register_unwind): Rewrite assuming that there is always a a
11157 (frame_register, generic_unwind_get_saved_register): Ditto.
11158 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11159 (create_sentinel_frame, unwind_to_current_frame): New functions.
11160 (get_current_frame): Rewrite using create_sentinel_frame and
11161 unwind_to_current_frame. When possible, always create a frame.
11162 (create_new_frame): Set next to the sentinel frame.
11163 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11164 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11165 ID cache when necessary.
11166 (frame_saved_regs_id_unwind): Use frame_relative_level.
11167 (deprecated_generic_get_saved_register): Use frame_relative_level,
11168 get_frame_saved_regs, get_frame_pc, get_frame_base and
11170 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11173 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11175 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11177 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11179 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11180 (maintenance_set_profile_cmd): Use error () instead of warning ().
11182 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11184 * configure.in: Check that -pg works if using --enable-profiling.
11185 Check for monstartup and _mcleanup regardless of --enable-profiling.
11186 * maint.c: Check for monstartup and _mcleanup before using them.
11187 * config.in: Regenerated.
11188 * configure: Regenerated.
11190 2003-01-24 Nick Clifton <nickc@redhat.com>
11192 * Add sh2e support:
11194 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11196 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11197 (sh2e_show_regs): New.
11198 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11199 * config/sh/tm-sh.h: Added sh2e to comments.
11201 2003-01-23 Jim Blandy <jimb@redhat.com>
11203 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11204 symbols found)" message here; we haven't checked for a separate
11205 debug info file yet, so we don't know yet.
11206 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11207 we've looked everywhere. Also, there's no need to print a special
11208 message when we're loading the separate debug info file: the one
11209 symbol_file_add prints is fine.
11211 2003-01-23 Alexander Larsson <alexl@redhat.com>
11212 Jim Blandy <jimb@redhat.com>
11214 Add support for executables whose debug info has been separated
11215 out into a separate file, leaving only a link behind.
11216 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11217 and separate_debug_objfile_backlink.
11218 (put_objfile_before): New declaration.
11219 * symfile.c: #include "filenames.h".
11220 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11221 debug info in a separate file, read that, too. Save the addrs
11222 argument, so we can use it again to read the separated debug info;
11223 syms_from_objfile modifies the table we pass it.
11224 (reread_symbols): After re-reading an objfile, call
11225 reread_separate_symbols to refresh its separate debug info
11226 objfile, if it has one.
11227 (reread_separate_symbols, find_separate_debug_file,
11228 get_debug_link_info, separate_debug_file_exists): New functions.
11229 (debug_file_directory): New global var.
11230 (_initialize_symfile): Initialize debug_file_directory, and
11231 provide the new `set debug-file-directory' command to let the user
11233 * objfiles.c (free_objfile): If this objfile has its debug info in
11234 a separate objfile, free that one too. If this is itself a
11235 separate debug info objfile, clear our parent's backlink.
11236 (put_objfile_before): New function.
11237 * utils.c (gnu_debuglink_crc32): New function.
11238 * defs.h (gnu_debuglink_crc32): New declaration.
11239 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11240 * configure.in: Handle --with-separate-debug-dir config option.
11241 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11242 * acconfig.h (DEBUGDIR): New macro.
11243 * configure, aclocal.m4, config.in: Regenerated.
11245 2003-01-22 Jim Blandy <jimb@redhat.com>
11247 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11248 like the old symbol_file_add, but taking new arguments: you can
11249 now pass in either a `struct section_addr_info' list to say where
11250 each section is loaded, or a `struct section_offsets' table. Pass
11251 these new arguments through to syms_from_objfile as appropriate.
11252 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11253 with the appropriate quiescent values for the new arguments.
11255 * symfile.c: #include "gdb_assert.h".
11256 (syms_from_objfile): Add the ability to pass in a section offset
11257 table directly, as an alternative to the section_addr_info table.
11258 Document arguments better.
11259 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11260 * symfile.h (syms_from_objfile): Update declaration.
11261 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11263 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11265 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11267 Original patch by Tom Tromey <tromey@cygnus.com> and
11268 Jason Molenda <jmolenda@apple.com>.
11269 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11270 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11271 * NEWS: Mention profiling.
11272 * configure.in (--enable-gdbtk): Fix typo.
11273 (--enable-profiling): New. Set PROFILE_CFLAGS.
11274 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11276 (profiling_state): New variable.
11277 (mcleanup_wrapper): New function.
11278 (_initialize_maint): Remove NOTYET, fix call to
11279 add_setshow_boolean_cmd for "maint set profile".
11280 * configure: Regenerated.
11282 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11284 * Makefile.in (install-gdbtk): Install PNG images too.
11286 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11288 * exec.c (text_start): Delete global variable.
11289 (exec_file_attach): Make text_start local to the function.
11290 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11291 * valops.c (hand_function_call): Delete code that handles
11292 BEFORE_TEXT_END and AFTER_TEXT_END.
11293 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11294 of CALL_DUMMY_LOCATION.
11295 * gdbarch.c: Regenerate.
11296 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11297 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11298 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11299 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11300 (text_end): Delete extern declaration.
11302 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11304 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11305 * blockframe.c (backtrace_below_main): Move to "frame.c".
11306 (frame_chain_valid): Delete check for backtrace_below_main.
11307 (_initialize_blockframe): Delete initialization, move ``set
11308 backtrace-below-main'' command to "frame.c".
11309 (do_flush_frames_sfunc): Delete function.
11310 * frame.c: Include "command.h" and "gdbcmd.h".
11311 (frame_type_from_pc): New function.
11312 (create_new_frame): Use frame_type_from_pc.
11313 (legacy_get_prev_frame): New function.
11314 (get_prev_frame): Rewrite. When an old style frame, call
11315 legacy_get_prev_frame. Otherwize, unwind the PC first.
11316 (_initialize_frame): Add ``set backtrace-below-main'' command.
11317 * Makefile.in (frame.o): Update dependencies.
11319 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11321 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11322 DEPRECATED_REGISTERS_INFO.
11324 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11326 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11327 Maintainers'. Update `Various Maintainers'.
11329 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11331 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11332 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11333 Suppress actual parameters when `-'.
11334 * gdbarch.h, gdbarch.c: Regenerate.
11336 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11338 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11339 code handling dummy frames.
11341 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11343 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11344 (struct frame_unwind): Add field pop.
11345 * frame.h (frame_pop): Declare.
11346 * frame.c (frame_saved_regs_pop): New function.
11347 (trad_frame_unwinder): Add frame_saved_regs_pop.
11348 (frame_pop): New function.
11349 * dummy-frame.c (dummy_frame_pop): New function.
11350 (discard_innermost_dummy): New function.
11351 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11352 (dummy_frame_unwind): Add dummy_frame_pop.
11353 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11354 * valops.c (hand_function_call): Ditto.
11355 * stack.c (return_command): Ditto.
11357 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11359 * cris-tdep.c: Fix function declaration indentation.
11360 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11361 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11362 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11363 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11364 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11365 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11367 2003-01-18 Michael Chastain <mec@shout.net>
11369 * README (Unpacking and Installation -- quick overview):
11370 Warn against ".../gdb-5.3/gdb/configure".
11372 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11374 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11375 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11376 (struct frame_unwind): Declare opaque.
11377 (dummy_frame_p): Declare function.
11378 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11379 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11380 * dummy-frame.c: Include "frame-unwind.h".
11381 (dummy_frame_p): New function.
11382 (dummy_frame_unwind): New variable.
11383 * frame.c: Include "frame-unwind.h".
11384 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11385 to use the new unwind field.
11386 (set_unwind_by_pc): Delete function.
11387 (create_new_frame, get_prev_frame): Set unwind field using
11388 frame_unwind_find_by_pc.
11389 (trad_frame_unwind, trad_frame_unwinder): New variables.
11390 * frame.h (trad_frame_unwind): Declare variable.
11391 (frame_id_unwind_ftype): Delete declaration.
11392 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11393 (struct frame_unwind): Declare opaque.
11394 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11395 register_unwind with a single unwind pointer.
11396 * frame-unwind.h, frame-unwind.c: New files.
11397 * Makefile.in (SFILES): Add frame-unwind.c.
11398 (frame_unwind_h): Define.
11399 (COMMON_OBS): Add frame-unwind.o.
11400 (frame-unwind.o): Specify dependencies.
11401 (frame.o, dummy-frame.o): Update dependencies.
11403 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11405 * ada-valprint.c: Eliminate PTR.
11406 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11407 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11408 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11409 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11410 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11411 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11412 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11414 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11416 * main.c (captured_main): Don't use PTR.
11417 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11418 * gdbtypes.c (lookup_primitive_typename): Ditto.
11419 (lookup_struct_elt_type): Ditto.
11420 * f-valprint.c (info_common_command): Ditto.
11421 (list_all_visible_commons): Ditto.
11422 * jv-typeprint.c (java_type_print_base): Ditto.
11424 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11425 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11426 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11427 i386-interix-nat.c and i386-interix-tdep.c. Rename
11428 m68klinux-nat.c and m68klinux-tdep.c. Rename
11429 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11430 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11431 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11432 * main.c (captured_main): Use xfree, not free.
11434 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11436 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11437 ID back using a parameter.
11438 * frame.c (frame_id_unwind): Update call.
11439 (frame_saved_regs_id_unwind): Update.
11440 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11441 * dummy-frame.h (struct frame_id): Add opaque declaration.
11442 (dummy_frame_id_unwind): Update declaration.
11444 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11446 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11448 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11450 * MAINTAINERS (Stephen P. Smith): Updated email address.
11452 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11455 * breakpoint.c (until_break_command): Add new argument. Use it to
11456 decide whether to stop only at the current frame or not.
11457 * breakpoint.h (until_break_command): Update prototype.
11458 * infcmd.c (until_command): Add new argument to until_break_command
11460 (advance_command): New function.
11461 (_initialize_infcmd): Update help string for 'until' command.
11462 Add new 'advance' command.
11464 2003-01-14 David Carlton <carlton@math.stanford.edu>
11466 * linespec.c (decode_line_1): Normalize comments.
11467 (set_flags): Ditto.
11468 (locate_first_half): Ditto.
11469 (decode_compound): Ditto.
11470 (symtab_from_filename): Ditto.
11471 (decode_all_digits): Ditto.
11472 (decode_dollar): Ditto.
11473 (find_methods): Ditto.
11474 (find_toplevel_char): Ditto.
11476 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11478 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11479 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11480 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11481 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11482 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11483 * language.c, language.h, m32r-tdep.c: Update copyright.
11484 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11485 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11486 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11487 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11488 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11489 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11491 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11493 * stabsread.h (process_later, resolve_cfront_continuation):
11495 Update copyright years.
11496 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11497 Update copyright year.
11498 * dbxread.c(struct cont_elem): Obsolete.
11499 (process_later, process_now): Obsolete functions.
11500 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11501 Update copyright year.
11502 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11503 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11504 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11505 (parse_partial_symbols): Obsolete cfront support.
11507 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11509 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11510 read_cfront_baseclasses, read_cfront_member_functions,
11511 resolve_cfront_continuation,read_cfront_static_fields,
11512 copy_cfront_struct_fields): Obsolete functions.
11513 (define_symbol, read_one_struct_field): Obsolete cfront support.
11514 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11515 Update Copyright year.
11517 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11519 * stack.c (print_frame_info, print_stack_frame_base_stub,
11520 print_stack_frame_base, show_and_print_stack_frame_stub,
11521 show_and_print_stack_frame, print_only_stack_frame_stub,
11522 print_only_stack_frame): Delete functions.
11523 (print_stack_frame_stub): Call print_frame_info instead of
11524 print_frame_info_base.
11525 (print_frame_info_base): Rename to print_frame_info.
11526 (backtrace_command_1): Call print_frame_info, instead of
11527 print_frame_info_base.
11528 (current_frame_command): Call print_stack_frame, instead of
11529 print_only_stack_frame.
11530 (frame_command): Call print_stack_frame, instead of
11531 show_and_print_stack_frame.
11532 (up_command): Ditto.
11533 (down_command): Ditto.
11534 * frame.h (print_only_stack_frame): Delete prototype.
11535 * infrun.c (normal_stop): Call print_stack_frame, instead of
11536 show_and_print_stack_frame.
11537 * thread.c (info_threads_command): Call print_stack_frame, instead
11538 of print_only_stack_frame.
11540 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11542 * README (Graphical interface to GDB): Update URL. Point at
11545 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11548 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11550 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11553 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11555 * thread-db.c (attach_thread): Prototype.
11556 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11557 thread information (ti), and valid flags (th_valid, ti_valid).
11558 (attach_thread): Move target_pid_to_str call to after the thread
11559 is added to GDB's list. Initialize the cache.
11560 (thread_get_info_callback, thread_db_map_id2thr)
11561 (thread_db_get_info): New functions.
11562 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11563 (thread_db_store_registers, thread_db_thread_alive)
11564 (thread_db_get_thread_local_address): Use them.
11565 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11566 of calling error() for threads in unknown state.
11568 (clear_lwpid_callback): New function.
11569 (thread_db_resume): Use it to clear the cache.
11571 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11573 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11574 (resume_callback): Remove dead code.
11576 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11578 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11580 * gdbarch.h, gdbarch.c: Regenerate.
11581 * stack.c (frame_info): Only initialize the saved registers when
11582 FRAME_INIT_SAVED_REGS_P.
11583 * frame.c (frame_saved_regs_register_unwind): Assert
11584 FRAME_INIT_SAVED_REGS_P.
11585 (deprecated_generic_get_saved_register): Ditto.
11587 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11589 * source.c (openp): Squelch warning about "filename".
11591 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11593 * source.c (openp): If the file does not exist don't necessarily
11596 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11599 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11600 (integer_types_same_name_p): New function.
11601 (rank_one_type): Use it.
11602 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11604 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11606 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11608 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11609 * configure.in: Add --with-sysroot.
11610 * configure: Regenerated.
11611 * main.c (gdb_sysroot): New variable.
11612 (captured_main): Initialize gdb_sysroot.
11613 * defs.h (gdb_sysroot): New extern declaration.
11614 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11616 2003-01-12 Michael Chastain <mec@shout.net>
11618 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11620 2003-01-12 Michael Chastain <mec@shout.net>
11622 * top.c (print_gdb_version): Bump copyright year to 2003.
11624 2003-01-12 David Carlton <carlton@bactrian.org>
11626 * linespec.c (symtab_from_filename): Rename variable 's' to
11629 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11631 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11633 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11635 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11637 * d10v-tdep.c: Include "gdb_assert.h".
11638 (d10v_store_return_value): Rewrite to match current interface.
11639 (d10v_extract_struct_value_address): Ditto.
11640 (d10v_extract_return_value): Ditto.
11641 (d10v_gdbarch_init): Set store_restore_value,
11642 extract_struct_value_address and extract_return_value.
11644 2003-01-12 J. Brobecker <brobecker@gnat.com>
11646 * hpread.c (set_namestring): New procedure replacing the
11647 SET_NAMESTRING macro.
11648 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11649 by calls to set_namestring.
11651 2003-01-11 J. Brobecker <brobecker@gnat.com>
11653 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11654 a compilation warning.
11655 (hpread_process_one_debug_symbol): Likewise.
11657 2003-01-10 David Carlton <carlton@math.stanford.edu>
11659 * linespec.c (decode_line_1): Rename variable 's' to
11661 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11662 (decode_dollar): Ditto.
11663 (decode_variable): Ditto.
11664 (symbol_found): Ditto.
11666 2003-01-09 Michael Chastain <mec@shout.net>
11668 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11670 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11672 * win32-nat.c (set_process_privilege): New function.
11673 (child_attach): Call set_process_privilege() to enable the
11674 SE_DEBUG_NAME user privilege if available in process token.
11676 2003-01-10 J. Brobecker <brobecker@gnat.com>
11678 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11679 compilation error in the previous revision.
11681 2003-01-09 David Carlton <carlton@math.stanford.edu>
11683 * linespec.c: Update copyright.
11685 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11687 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11688 than inferior_ptid.
11689 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11691 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11693 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11695 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11696 (frame_saved_regs_zalloc): Update.
11697 (frame_saved_regs_register_unwind): Update.
11698 (create_new_frame): Update.
11699 (get_prev_frame): Update.
11700 (frame_extra_info_zalloc): Update.
11701 (deprecated_get_frame_saved_regs): Update.
11702 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11703 * cris-tdep.c: Update comment.
11705 * somsolib.h: Fix function indentation.
11706 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11707 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11708 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11709 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11710 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11712 * infrun.c (follow_fork): Use ISO C definition.
11713 * expprint.c (print_subexp): Use xfree instead of free.
11714 * charset.c: Include "gdb_string.h" instead of <string.h>.
11715 (register_iconv_charsets): Use ISO C definition.
11716 (host_charset, target_charset): Ditto.
11717 * Makefile.in (charset.o): Update dependencies.
11718 (mi-cmd-env.o): Update dependencies.
11720 2003-01-08 Andrew Cagney <cagney@redhat.com>
11722 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11725 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11727 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11728 build directories. Save edited gdb output in Mbuild.log. If a
11729 build fails, remove any final GDB executable.
11731 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11733 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11734 replacing hex constants with function names and stripping leading
11735 file name directory prefixes.
11737 2003-01-08 Andrew Cagney <cagney@redhat.com>
11739 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11742 2003-01-08 David Carlton <carlton@math.stanford.edu>
11744 * linespec.c (decode_line_1): Move code into decode_variable.
11745 (decode_variable): New function.
11747 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11749 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11751 2003-01-08 Andrew Cagney <cagney@redhat.com>
11753 * cris-tdep.c (cris_frame_init_saved_regs): Use
11754 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11756 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11757 (sh64_nofp_frame_init_saved_regs): Ditto.
11758 (sh_fp_frame_init_saved_regs): Ditto.
11759 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11760 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11761 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11762 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11764 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11766 * minsyms.c (lookup_minimal_symbol): Update comment.
11767 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11768 (lookup_minimal_symbol_solib_trampoline): Likewise.
11770 2003-01-08 Andrew Cagney <cagney@redhat.com>
11772 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11773 frame_relative_level.
11775 * alpha-tdep.c: Use get_frame_extra_info.
11776 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11777 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11778 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11779 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11781 * alpha-tdep.c: Use get_next_frame.
11782 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11783 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11784 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11785 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11786 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11787 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11788 * xstormy16-tdep.c: Ditto.
11790 2003-01-07 Andrew Cagney <cagney@redhat.com>
11792 * alpha-tdep.c: Use get_frame_base.
11793 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11794 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11795 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11796 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11797 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11798 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11799 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11800 * config/sparc/tm-sparc.h: Ditto.
11802 2003-01-07 Andrew Cagney <cagney@redhat.com>
11804 * frame.c (deprecated_get_frame_context): New function.
11805 (deprecated_set_frame_context): New function.
11806 * frame.h (deprecated_get_frame_context): Declare.
11807 (deprecated_set_frame_context): Declare.
11808 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11809 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11811 2003-01-07 Andrew Cagney <cagney@redhat.com>
11813 * frame.c (deprecated_set_frame_next_hack): New function.
11814 (deprecated_set_frame_prev_hack): New function.
11815 * frame.h (deprecated_set_frame_next_hack): Declare.
11816 (deprecated_set_frame_prev_hack): Declare.
11817 * mcore-tdep.c (analyze_dummy_frame): Use
11818 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11819 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11821 2003-01-07 David Carlton <carlton@math.stanford.edu>
11823 * linespec.c (decode_line_1): Move code into decode_dollar.
11824 (decode_dollar): New function.
11826 2003-01-07 Andrew Cagney <cagney@redhat.com>
11828 * arm-tdep.c (arm_init_extra_frame_info): Use
11829 deprecated_update_frame_base_hack.
11830 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11831 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11832 (fix_frame_pointer): Ditto.
11833 (mn10300_analyze_prologue): Ditto.
11835 2003-01-07 Andrew Cagney <cagney@redhat.com>
11837 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11838 extra_info using frame_extra_info_zalloc.
11839 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11840 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11841 (sh64_init_extra_frame_info): Ditto.
11842 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11843 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11844 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11845 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11846 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11847 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11848 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11849 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11850 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11851 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11852 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11853 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11855 * mn10300-tdep.c (analyze_dummy_frame): Use
11856 deprecated_set_frame_extra_info_hack.
11857 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11859 2003-01-07 J. Brobecker <brobecker@gnat.com>
11861 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11862 class is not scText. These do not define "real" procedures.
11863 (parse_partial_symbols): Likewise.
11865 2003-01-06 Michael Snyder <msnyder@redhat.com>
11867 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11869 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11871 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11872 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11873 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11874 deprecated_frame_xmalloc_with_cleanup.
11875 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11876 deprecated_frame_xmalloc.
11877 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11878 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11880 2003-01-06 Andrew Cagney <cagney@redhat.com>
11882 * x86-64-linux-tdep.c: Include "osabi.h".
11883 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11885 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11887 2003-01-06 Andrew Cagney <cagney@redhat.com>
11889 * MAINTAINERS (Target Instruction Set Architectures): Update
11890 arm-elf. Can be built with -Werror, has been multiarched.
11892 * value.h (unpack_long): Make buffer parameter constant.
11893 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11894 * scm-lang.h (scm_parse): Ditto.
11895 * defs.h (extract_typed_address, extract_address): Ditto.
11896 (extract_long_unsigned_integer): Ditto.
11897 * inferior.h (unsigned_pointer_to_address): Ditto.
11898 (signed_pointer_to_address): Ditto.
11899 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11900 * gdbarch.h, gdbarch.c: Regenerate.
11901 * findvar.c (extract_long_unsigned_integer): Update.
11902 (extract_address): Update.
11903 (extract_typed_address): Update.
11904 (unsigned_pointer_to_address): Update.
11905 * values.c (unpack_long): Update.
11906 (unpack_double): Update.
11907 (unpack_pointer): Update.
11908 (unpack_field_as_long): Update.
11909 * d10v-tdep.c (d10v_pointer_to_address): Update.
11910 * avr-tdep.c (avr_pointer_to_address): Update.
11911 * scm-lang.c (scm_unpack): Update.
11912 * findvar.c (signed_pointer_to_address): Update.
11914 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11916 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11917 since it is in i386-tdep.c.
11919 2003-01-06 J. Brobecker <brobecker@gnat.com>
11921 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11922 failure introduced in the previous change.
11924 2003-01-05 Michael Chastain <mec@shout.net>
11926 * README: Remove references to deleted remote-*.c files:
11927 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11928 remote-nrom.c, remote-os9k.c, remote-udi.c.
11930 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11932 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11933 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11934 i386_get_longjmp_target.
11936 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11938 * arm-tdep.c (prologue_cache): Change to a pointer.
11939 (_initialize_arm_tdep): Allocate prologue_cache.
11940 (check_prologue_cache): Update.
11941 (save_prologue_cache): Update.
11942 (arm_gdbarch_init): Update.
11944 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11946 * stabsread.c (update_method_name_from_physname): Call complaint()
11949 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11951 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11952 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11953 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11955 * blockframe.c: Include "gdbcmd.h" and "command.h".
11956 (backtrace_below_main): New variable.
11957 (file_frame_chain_valid, func_frame_chain_valid)
11958 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11959 (generic_func_frame_chain_valid): Remove functions.
11960 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11961 (_initialize_blockframe): New function.
11962 * Makefile.in (blockframe.o): Update dependencies.
11963 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11964 comment. Call frame_chain_valid ().
11965 * frame.h: Remove old prototypes. Add prototype for
11966 frame_chain_valid and update comments to match.
11967 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11968 Remove old comment.
11969 * gdbarch.h: Regenerated.
11970 * gdbarch.c: Regenerated.
11972 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11973 set_gdbarch_frame_chain_valid.
11974 * avr-tdep.c (avr_gdbarch_init): Likewise.
11975 * cris-tdep.c (cris_gdbarch_init): Likewise.
11976 * frv-tdep.c (frv_gdbarch_init): Likewise.
11977 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11978 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11979 (i386_nw_init_abi): Likewise.
11980 (i386_gdbarch_init): Likewise.
11981 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11983 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11984 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11985 * mips-tdep.c (mips_gdbarch_init): Likewise.
11986 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11987 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11988 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11989 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11990 * s390-tdep.c (s390_gdbarch_init): Likewise.
11991 * sh-tdep.c (sh_gdbarch_init): Likewise.
11992 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11993 * v850-tdep.c (v850_gdbarch_init): Likewise.
11994 * vax-tdep.c (vax_gdbarch_init): Likewise.
11995 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11997 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11998 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11999 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12000 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12001 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12002 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12003 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12004 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12006 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12008 * Makefile.in (acconfig_h): Remove incorrect macro.
12009 (config_h): Define.
12010 (osabi.o): Update dependencies.
12011 * configure.tgt: Set gdb_osabi based on target triplet.
12012 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12013 * configure: Regenerated.
12014 * config.in: Regenerated.
12015 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12016 (GDB_OSABI_DEFAULT): Define if not already defined.
12017 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12018 (set_osabi_string): New variables.
12019 (gdbarch_register_osabi): Add new OS ABI to
12020 gdb_osabi_available_names.
12021 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12022 (set_osabi, show_osabi): New functions.
12023 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12025 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12027 * arch-utils.c (gdbarch_info_init): Set osabi to
12028 GDB_OSABI_UNINITIALIZED.
12029 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12030 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12031 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12032 * gdbarch.c: Regenerated.
12033 * gdbarch.h: Regenerated.
12034 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12036 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12037 * osabi.h (enum gdb_osabi): Move to defs.h.
12038 (gdbarch_init_osabi): Update prototype.
12039 * defs.h (enum gdb_osabi): Moved here.
12040 * Makefile.in: Update dependencies.
12042 * alpha-tdep.h: Don't include "osabi.h".
12043 (struct gdbarch_tdep): Remove osabi member.
12044 * alpha-tdep.c: Include "osabi.h".
12045 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12046 iterate over arches. Update call to gdbarch_init_osabi.
12047 (alpha_dump_tdep): Don't dump osabi.
12048 * alpha-linux-tdep.c: Include "osabi.h".
12049 * alpha-osf1-tdep.c: Include "osabi.h".
12050 * alphafbsd-tdep.c: Include "osabi.h".
12051 * alphanbsd-tdep.c: Include "osabi.h".
12053 * arm-tdep.h: Don't include "osabi.h".
12054 (struct gdbarch_tdep): Remove osabi member.
12055 * arm-tdep.c: Include "osabi.h".
12056 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12057 iterate over arches. Update call to gdbarch_init_osabi.
12058 (arm_dump_tdep): Don't dump osabi.
12059 * arm-linux-tdep.c: Include "osabi.h".
12060 * armnbsd-tdep.c: Include "osabi.h".
12062 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12063 Update call to gdbarch_init_osabi.
12065 * i386-tdep.h: Don't include "osabi.h".
12066 (struct gdbarch_tdep): Remove osabi member.
12067 * i386-tdep.c: Include "osabi.h".
12068 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12069 iterate over arches. Update call to gdbarch_init_osabi.
12070 (i386_dump_tdep): Don't dump osabi.
12071 * i386-linux-tdep.c: Include "osabi.h".
12072 * i386-sol2-tdep.c: Include "osabi.h".
12073 * i386bsd-tdep.c: Include "osabi.h".
12074 * i386gnu-tdep.c: Include "osabi.h".
12075 * i386ly-tdep.c: Include "osabi.h".
12076 * i386nbsd-tdep.c: Include "osabi.h".
12077 * i386obsd-tdep.c: Include "osabi.h".
12079 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12080 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12081 check osabi when iterating over arches. Update call to
12082 gdbarch_init_osabi.
12083 (mips_dump_tdep): Don't dump osabi.
12085 * ns32k-tdep.h: Don't include "osabi.h".
12086 (struct gdbarch_tdep): Remove.
12087 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12088 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12089 allocate tdep. Update call to gdbarch_init_osabi.
12090 (ns32k_dump_tdep): Remove.
12091 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12092 * ns32knbsd-tdep.c: Include "osabi.h".
12094 * ppc-tdep.h: Don't include "osabi.h".
12095 (struct gdbarch_tdep): Remove osabi member.
12096 * rs6000-tdep.c: Include "osabi.h".
12097 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12098 osabi when iterating over arches. Update call to
12099 gdbarch_init_osabi.
12100 (rs6000_dump_tdep): Don't dump osabi.
12101 * ppc-linux-tdep.c: Include "osabi.h".
12102 * ppcnbsd-tdep.c: Include "osabi.h".
12104 * sh-tdep.h: Don't include "osabi.h".
12105 (struct gdbarch_tdep): Remove osabi member.
12106 * sh-tdep.c: Include "osabi.h".
12107 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12108 iterate over arches. Update call to gdbarch_init_osabi.
12109 (sh_dump_tdep): Don't dump osabi.
12110 * shnbsd-tdep.c: Include "osabi.h".
12112 * sparc-tdep.c: Include "osabi.h".
12113 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12114 iterate over arches. Update call to gdbarch_init_osabi.
12115 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12118 * vax-tdep.h: Don't include "osabi.h".
12119 (struct gdbarch_tdep): Remove.
12120 * vax-tdep.c: Include "osabi.h".
12121 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12122 iterate over arches. Don't allocate tdep. Update call
12123 to gdbarch_init_osabi.
12124 (vax_dump_tdep): Remove.
12125 (_initialize_vax_tdep): Update call to gdbarch_register.
12127 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12129 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12131 (breakpoint_re_set_one): Don't fetch the value for a disabled
12134 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12136 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12137 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12138 (COERCE_FLOAT_TO_DOUBLE): Remove.
12139 * gdbarch.c: Regenerate.
12140 * gdbarch.h: Regenerate.
12141 * Makefile.in: Remove value_h from gdbarch_h.
12142 * valops.c (coerce_float_to_double): New variable.
12143 (default_coerce_float_to_double): Remove.
12144 (standard_coerce_float_to_double): Remove.
12145 (value_arg_coerce): Use coerce_float_to_double.
12146 (_initialize_valops): Add "set coerce-float-to-double".
12147 * value.h (default_coerce_float_to_double): Remove prototype.
12148 (standard_coerce_float_to_double): Remove prototype.
12150 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12152 * mdebugread.c (parse_symbol): Likewise.
12153 * stabsread.c (define_symbol): Mark all functions as prototyped.
12155 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12156 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12157 set_gdbarch_coerce_float_to_double.
12158 * arm-tdep.c (arm_gdbarch_init): Likewise.
12159 * frv-tdep.c (frv_gdbarch_init): Likewise.
12160 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12161 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12162 * mips-tdep.c (mips_gdbarch_init): Likewise.
12163 (mips_coerce_float_to_double): Remove.
12164 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12165 (rs6000_coerce_float_to_double): Remove.
12166 * s390-tdep.c (s390_gdbarch_init): Likewise.
12167 * sh-tdep.c (sh_gdbarch_init): Likewise.
12168 (sh_coerce_float_to_double): Remove.
12169 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12170 (sparc_coerce_float_to_double): Remove.
12171 * v850-tdep.c (v850_gdbarch_init): Likewise.
12172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12173 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12174 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12175 (hppa_coerce_float_to_double): Remove prototype.
12176 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12178 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12180 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12182 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12184 Suggested by Stewart Brown <sb24@avaya.com>:
12185 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12186 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12187 (c_type_print_varspec_suffix): Likewise.
12189 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12191 * configure.in: Don't set and AC_SUBST SUBDIRS.
12192 * configure: Regenerated.
12194 * configure.in: Remove code dealing with shared libraries.
12195 * Makefile.in: Remove HLDFLAGS and HLDENV.
12196 * configure: Regenerated.
12198 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12200 * frame.c (deprecated_frame_xmalloc): New function.
12201 (deprecated_set_frame_saved_regs_hack): New function.
12202 (deprecated_set_frame_extra_info_hack): New function.
12203 * frame.h (deprecated_frame_xmalloc): Declare.
12204 (deprecated_set_frame_saved_regs_hack): Declare.
12205 (deprecated_set_frame_extra_info_hack): Declare.
12207 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12209 * configure.in: Move code that provides the --enable-gdbtk option
12210 right after the code that handles the --enable-tui option, and
12211 polish it somewhat.
12212 * configure: Regenerated.
12214 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12215 AC_CHECK_FUNCS and remove the old check for pread64.
12216 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12217 * acconfig.h (_GNU_SOURCE): Add.
12218 (HAVE_PREAD64): Remove.
12219 * configure, aclocal.m4, config.in: Regenerated.
12221 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12223 * alpha-tdep.c: Use get_frame_saved_regs.
12224 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12225 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12226 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12227 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12228 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12230 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12232 * configure.in: Remove all use of the SUBDIRS variable; add
12233 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12234 code providing the --enable-multi-ice option, and move it right in
12235 front of the code that checks whether gdbserver is supported.
12237 * configure: Regenerated.
12238 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12241 2003-01-03 Andrew Cagney <cagney@redhat.com>
12243 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12244 * avr-tdep.c, cris-tdep.c: Ditto.
12245 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12246 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12248 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12250 * configure.in: Remove --enable-netrom option.
12251 * configure: Regenerated.
12253 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12255 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12256 declaration for `struct re_pattern_buffer' instead.
12257 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12259 2003-01-03 J. Brobecker <brobecker@gnat.com>
12261 * mdebugread.c (parse_symbol): Count until the stEnd matching
12262 the structure name.
12264 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12266 * configure.in: Remove --with-cpu option.
12267 subscripts. Remove evil changequotes here.
12268 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12269 * config.in, configure: Regenerated.
12271 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12272 * configure.in: Cleanup section that sources GDB and BFD configure
12273 subscripts. Remove evil changequotes here.
12274 * config.in, configure: Regenerated.
12276 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12278 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12279 frame accessor methods.
12280 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12281 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12282 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12283 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12284 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12285 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12286 * z8k-tdep.c: Ditto.
12288 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12290 * configure.in: Remove UI_OUT configuration code.
12291 * ada-lang.c: Update assuming UI_OUT is always true.
12292 * Makefile.in (UIOUT_CFLAGS): Remove.
12293 * configure: Regenerated.
12294 * TODO: Remove blurb about elimination of -DUI_OUT.
12296 * configure.in: Move code that provides the --enable-gdbcli,
12297 --enable-gdbmi options right before the code that handles the
12298 --enable-tui option. Polish a bit.
12299 * configure: Regenerated.
12301 * configure.in: Rewrite check for GNU regex and the
12302 --without-included regex option, and move it into the "Checks for
12303 library functions" section. This makes us use the system regex
12304 again by default on systems with version 2 of the GNU C library.
12305 This was apparently broken.
12306 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12307 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12308 * config.in, configure: Regenerated.
12310 * configure.in: Move code that provides the --enable-tui option
12311 before the "Checks for libraries" section. Polish the code
12312 somewhat and set need_curses to yes if we build the TUI. Rewrite
12313 code that looks for a library providing termcap functionality to
12314 match more closely what's done in the Readline library, and move
12315 it into to the "Checks for libraries" section.
12316 * configure: Regenerated.
12317 * Makefile.in (TERMCAP): Remove variable.
12318 * config/i386/go32.mh (TERMCAP): Remove variable.
12320 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12322 * MAINTAINERS: Mention gdb_mbuild.sh.
12323 * gdb_mbuild.sh: Rewrite.
12325 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12327 * configure.in: Fix typo in last change.
12328 * config.in, configure: Regenerated.
12330 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12332 * valarith.c (value_binop): Delete obsolete code and comments.
12333 * configure.host: Ditto.
12334 * buildsym.h (make_blockvector): Ditto.
12335 * buildsym.c (make_blockvector): Ditto.
12336 * defs.h (enum language): Ditto.
12337 (chill_demangle): Ditto.
12338 * elfread.c (elf_symtab_read): Ditto.
12339 * dwarfread.c (CHILL_PRODUCER): Ditto.
12340 (set_cu_language): Ditto.
12341 (handle_producer): Ditto.
12342 * expprint.c (print_subexp): Ditto.
12343 * gdbtypes.c (chill_varying_type): Ditto.
12344 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12345 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12346 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12347 (chill_varying_type): Ditto.
12348 * language.h (_LANG_chill): Ditto.
12349 * language.c (binop_result_type, integral_type): Ditto.
12350 (character_type, string_type, structured_type): Ditto.
12351 (lang_bool_type, binop_type_check): Ditto.
12352 * stabsread.h (os9k_stabs): Ditto.
12353 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12354 (define_symbol, read_type, read_struct_fields): Ditto.
12355 (read_array_type, read_enum_type, read_huge_number): Ditto.
12356 (read_range_type, start_stabs): Ditto.
12357 * symfile.c (init_filename_language_table): Ditto.
12358 (add_psymbol_with_dem_name_to_list): Ditto.
12359 * symtab.c (symbol_init_language_specific): Ditto.
12360 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12361 * symtab.h (struct general_symbol_info): Ditto.
12362 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12363 * typeprint.c (typedef_print): Ditto.
12364 * utils.c (fprintf_symbol_filtered): Ditto.
12365 * valops.c (value_cast, search_struct_field, value_slice): Delete
12367 (varying_to_slice): Delete function.
12368 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12369 (varying_to_slice): Delete declaration.
12370 * MAINTAINERS: Update.
12372 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12374 * configure.in: Reorganize "Checks for library functions section"
12375 a bit. Remove check for `btowc' and `isascii' functions.
12376 * configure: Regenerated.
12378 * acconfig.h (_MSE_INT_H): Remove.
12379 * configure.in: Create "Checks for header files" section, and move
12380 appropriate tests there. Don't check for objlist.h, wchar.h,
12381 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12382 misdetection fix. Also add "Checks for types", "Checks for
12383 compiler characteristics" and "Checks for library functions"
12385 * config.in, configure: Regenerated.
12387 * configure.in: Create "Checks for programs" section, and move
12388 appropriate tests there.
12390 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12392 * configure.in: Create "Checks for libraries" section, and move
12393 appropriate tests there. Cleanup check for wctype in libw. Use
12394 AC_SEARCH_LIBS to see whether we need libsocket.
12395 * configure: Regenerated.
12397 For older changes see ChangeLog-2002
12403 version-control: never