1 2003-09-25 Andreas Schwab <schwab@suse.de>
3 * m68k-tdep.c: Include "dwarf2-frame.h".
4 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
5 * Makefile.in (m68k-tdep.o): Update dependencies.
7 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
9 * sh-tdep.c (struct frame_extra_info): Remove.
10 (struct sh_frame_cache): New structure.
11 (GET_SOURCE_REG): New macro extracting source register of an opcode.
12 (GET_TARGET_REG): Ditto but target register.
13 (GET_PUSHED_REG): Remove.
14 (IS_MOV_ARG_TO_REG): New macro.
15 (IS_MOV_ARG_TO_IND_R14): New macro.
16 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
17 (IS_MOVW_PCREL_TO_REG): New macro.
18 (IS_MOVL_PCREL_TO_REG): New macro.
19 (IS_SUB_REG_FROM_SP): New macro.
21 (IS_MOV_TO_R14): Remove.
22 (IS_RESTORE_FP): New macro.
25 (IS_MOV_FP_SP): New macro.
26 (IS_ADD_REG_TO_FP): New macro.
27 (IS_ADD_IMM_FP): New macro.
28 (sh_skip_prologue_hard_way): Remove.
29 (sh_saved_pc_after_call): Remove.
30 (sh_frame_chain): Remove.
31 (sh_find_callers_reg): Remove.
32 (sh_nofp_frame_init_saved_regs): Remove.
33 (sh_fp_frame_init_saved_regs): Remove.
34 (sh_init_extra_frame_info): Remove.
35 (sh_analyze_prologue): New function.
36 (sh_skip_prologue): Remove deprecated code. Rely on new function
37 sh_analyze_prologue when after_prologue fails.
38 (sh_frame_saved_pc): Remove.
39 (sh_alloc_frame_cache): New function.
40 (sh_frame_cache): Ditto.
41 (sh_frame_prev_register): Ditto.
42 (sh_frame_this_id): Ditto.
43 (sh_frame_unwind): New structure defining the heuristic frame
45 (sh_frame_sniffer): New function.
46 (sh_unwind_sp): Ditto.
47 (sh_unwind_pc): Ditto.
48 (sh_unwind_dummy_id): Ditto.
49 (sh_frame_base_address): Ditto.
50 (sh_frame_base): New structure defining new frame base code.
51 (sh_in_function_epilogue_p): New function.
52 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
53 code and to call all new code instead. Initialize dwarf2 and
54 heuristic frame sniffer.
56 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
58 * parser-defs.h (struct exp_descriptor): New definition, containing
59 language-specific info for printing, prefixifying, dumping, and
60 evaluating expressions.
61 (exp_descriptor_standard): Declare new variable.
62 (print_subexp): Make global and declare here (from expprint.c).
64 (dump_subexp_body_standard): Declare.
65 (operator_length_standard): Declare.
66 (op_name_standard): Declare.
67 (print_subexp): Declare.
68 (print_subexp_standard): Declare.
70 * language.h (struct language_defn): Add la_exp_desc field to hold
71 pointer to table for language-specific operators.
72 Remove evaluate_exp field, which is now in struct exp_descriptor.
74 * parse.c (operator_length): Move most code to new
75 operator_length_standard function. Use language-specific information.
76 (operator_length_standard): New function taking most code from
78 (exp_descriptor_standard): New constant.
80 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
83 * expprint.c (print_subexp): Use language-specific print_subexp.
84 Make global; remove static declaration.
85 Move most code to print_subexp_standard.
86 (print_subexp_standard): New function, containing code formerly in
88 (op_name): Add expression to argument signature.
89 Use langauge-specific op_name.
90 Move most code to op_name_standard.
91 (op_name_standard): New function, containing code formerly in op_name.
92 (dump_subexp): Use new version of op_name function.
93 Use language-specific dump_subexp_body, and move most existing code to
94 dump_subexp_body_standard.
95 (dump_raw_expression): Use new op_name interface.
96 (dump_subexp_body): Move most code to dump_subexp_body_standard.
97 (dump_subexp_body_standard): New function, containing code formerly
100 * language.c (unknown_language): Add default la_exp_desc field and
101 remove evaluate_exp field.
102 (auto_language): Ditto.
103 (local_language): Ditto.
104 * f-lang.c (f_language_defn): Ditto.
105 * c-lang.c (c_language_defn): Ditto.
106 (cplus_language_defn): Ditto.
107 (asm_language_defn): Ditto.
108 (minimal_language_defn): Ditto.
109 * p-lang.c (pascal_language_defn): Ditto.
110 * m2-lang.c (m2_language_defn): Ditto.
111 * objc-lang.c (objc_language_defn): Ditto.
113 * jv-lang.c (exp_descriptor_java): New variable, containing
114 Java-specific expression evaluator.
115 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
117 * scm-lang.c (exp_descriptor_scm): New variable, containing
118 Scheme-specific expression evaluator.
119 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
121 * objc-lang.c (print_object_command): Take evaluate_exp from the
124 * Makefile.in (eval.o): Add dependency on parser-defs.h.
126 * eval.c: Include parser-defs.h for the full declaration of
128 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
130 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
132 * parser-defs.h (operator_length): Declare.
134 * parse.c (length_of_subexp): Use operator_length to get operator
135 lengths and arities for operators.
136 Move most code to new operator_length function.
137 (operator_length): New function absorbing most code from
139 (prefixify_subexp): Remove large case and use operator_length instead.
140 (parse_exp_1): Use renamings:
141 dump_prefix_expression => dump_raw_expression and
142 dump_postfix_expression => dump_prefix_expression.
144 * expression.h (dump_prefix_expression): Rename to ...
145 (dump_raw_expression): New name.
146 (dump_postfix_expression): Rename to ...
147 (dump_prefix_expression): New name.
149 * expprint.c (dump_subexp): Make global. Add comment.
150 Move most existing code to dump_subexp_body.
151 (dump_subexp_body): New function.
152 (dump_prefix_expression): Rename to dump_raw_expression.
153 Remove attempt to print the expression via print_expression: it can't
154 work before the expression is prefixified.
155 (dump_raw_expression): Renamed from dump_prefix_expression.
156 (dump_postfix_expression): Rename to dump_prefix_expression, since
158 Remove 'note' parameter, since this routine must be used on
159 prefixified expression.
160 (dump_prefix_expression): Renamed from dump_postfix_expression.
162 2003-09-22 Jim Blandy <jimb@redhat.com>
164 * dwarf2read.c (read_array_type): When building the type for an
165 array of unspecified length, make sure to choose the upper bound
166 so that the array's total length comes out to be zero --- that's
167 how we represent such arrays.
169 2003-09-22 Michael Chastain <mec@shout.net>
171 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
173 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
175 * top.c (quit_force): Fix indirect call to quit_target so
176 a struct qt_args pointer is passed.
178 2003-09-22 Andrew Cagney <cagney@redhat.com>
180 * arch-utils.h (init_frame_pc_noop): Delete declaration.
181 * arch-utils.c (init_frame_pc_noop): Delete function.
182 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
184 * mips-tdep.c (mips_gdbarch_init): Ditto.
185 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
186 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
188 (DEPRECATED_INIT_FRAME_PC): Delete macro.
189 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
191 (DEPRECATED_INIT_FRAME_PC): Delete macro.
193 2003-09-22 Anthony Green <green@redhat.com>
195 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
198 2003-09-20 Andrew Cagney <cagney@redhat.com>
200 * breakpoint.c: Eliminate ARGSUSED.
201 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
202 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
203 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
204 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
205 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
206 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
207 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
208 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
209 * wince.c, remote-vx.c: Ditto.
211 * cli/cli-script.c: Remove "register" attributes.
212 * config/pa/tm-hppa.h: Ditto.
213 * cli/cli-decode.c: Ditto.
214 * cli/cli-cmds.c: Ditto.
216 2003-09-19 Andrew Cagney <cagney@redhat.com>
218 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
219 DEPRECATED_NPC_REGNUM.
220 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
222 2003-09-19 Christopher Faylor <cgf@redhat.com>
224 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
226 2003-09-19 Jim Blandy <jimb@redhat.com>
228 * macrotab.c (macro_include): Use the correct comparison to find
229 the appropriate place for this inclusion in the list.
231 2003-09-19 Andrew Cagney <cagney@redhat.com>
233 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
234 (DEPRECATED_HPUX_TEXT_END): Define.
235 (deprecated_hpux_text_end): Declare.
236 (struct target_ops): Declare opaque.
237 * hppah-nat.c (text_end): Make static.
238 (deprecated_hpux_text_end): New function.
239 * exec.c (text_end): Delete global variable.
240 (NEED_TEXT_START_END): Do not define.
241 (exec_file_attach): Replace code computing "text_end" code with
242 call to DEPRECATED_HPUX_TEXT_END.
244 2003-09-19 Andrew Cagney <cagney@redhat.com>
246 * utils.c (align_up, align_down): New functions.
247 * defs.h (align_up, align_down): Declare.
248 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
249 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
251 (round_up, round_down): Delete functions.
252 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
254 (ROUND_DOWN, ROUND_UP): Delete macros.
255 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
256 * h8300-tdep.c: Replace "round_up" and "round_down" with
257 "align_up" and "align_down".
258 (round_up, round_down): Delete macros.
259 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
261 (ROUND_UP, ROUND_DOWN): Delete macros.
263 2003-09-18 J. Brobecker <brobecker@gnat.com>
265 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
266 hard-coded constant. Use the proper machine name instead.
268 2003-09-17 Andrew Cagney <cagney@redhat.com>
270 * sparc-tdep.c (legacy_register_name): Delete function.
271 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
272 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
273 * infcmd.c (gdb_register_name): Delete variable.
274 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
275 REGISTER_NAME and "tm.h".
276 * gdbarch.h, gdbarch.c: Regenerate.
277 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
278 REGISTER_NAMES in comments.
279 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
280 * m68klinux-nat.c (regmap): Ditto.
282 2003-09-17 Jim Blandy <jimb@redhat.com>
284 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
286 2003-09-17 Andrew Cagney <cagney@redhat.com>
288 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
289 (ppcnbsd_init_abi): Set "use_struct_convention" to
290 "ppcnbsd_use_struct_convention".
292 2003-09-17 Mark Kettenis <kettenis@gnu.org>
294 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
295 * gdbarch.h, gdbarch.c: Regenerate.
296 (stabs_argument_has_addr): New architecture method.
297 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
298 * arch-utils.c: Include "buildsym.h".
299 (default_stabs_argument_has_addr): New function.
300 * stabsread.c (define_symbol): Use stabs_argument_has_addr
301 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
303 2003-09-17 Andrew Cagney <cagney@redhat.com>
305 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
306 * gdbarch.h, gdbarch.c: Regenerate.
307 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
308 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
309 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
310 * sparcnbsd-tdep.c: Update.
312 2003-09-17 Andrew Cagney <cagney@redhat.com>
314 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
315 * gdbarch.h, gdbarch.c: Regenerate.
316 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
317 * d10v-tdep.c, frame.c: Update.
318 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
319 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
320 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
321 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
322 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
323 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
324 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
325 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
326 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
327 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
328 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
329 * config/pa/nm-hppah.h: Update.
331 2003-09-16 Andrew Cagney <cagney@redhat.com>
333 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
334 "use_struct_convention" to "ppc_linux_use_struct_convention".
335 (ppc_linux_use_struct_convention): New function.
336 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
337 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
338 "rs6000_use_struct_convention".
339 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
341 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
344 2003-09-16 Andrew Cagney <cagney@redhat.com>
346 * buildsym.c: Remove more occurances of "register".
347 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
348 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
349 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
350 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
351 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
352 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
353 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
354 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
356 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
358 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
359 numbers to enumeration values.
360 * sh-tdep.c: Accomodate above change.
361 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
362 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
363 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
364 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
365 (IS_FPUSH): Rename from IS_FMOV.
366 (sh_extract_struct_value_address): Remove useless comment.
367 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
368 instead of own local values.
369 (sh_dump_tdep): Remove.
370 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
371 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
373 2003-09-15 Andrew Cagney <cagney@redhat.com>
375 * doublest.c (convert_floatformat_to_doublest): No longer need to
376 cast "exp_bias" to an int. Reverts 2002-12-04 change.
378 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
380 * values.c (unpack_double): Call floatformat_is_valid.
382 2003-09-15 Mark Kettenis <kettenis@gnu.org>
384 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
385 ps_strings into a long.
387 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
388 _initialize_am64fbsd_nat.
390 2003-09-15 Kevin Buettner <kevinb@redhat.com>
392 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
393 associated with DW_AT_ranges attribute is out of bounds.
395 2003-09-15 David Lecomber <dsl@sources.redhat.com>
397 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
399 2003-09-14 Michael Chastain <mec@shout.net>
401 * config/m68k/nm-apollo68v.h: Delete.
402 * config/m68k/xm-apollo68v.h: Delete.
404 2003-09-14 Andrew Cagney <cagney@redhat.com>
406 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
407 * dcache.c: Update copyrights and descriptions.
408 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
410 2003-09-14 Andrew Cagney <cagney@redhat.com>
412 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
413 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
415 2003-09-14 Andrew Cagney <cagney@redhat.com>
417 * alpha-nat.c: Remove some occurances of "register".
418 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
419 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
420 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
421 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
422 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
423 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
424 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
425 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
426 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
427 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
428 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
429 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
430 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
431 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
432 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
433 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
434 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
435 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
436 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
437 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
438 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
439 * values.c, vax-tdep.c, xcoffread.c: Ditto.
441 2003-09-13 Andrew Cagney <cagney@redhat.com>
443 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
444 * ppc-tdep.h (struct regcache): Declare opaque.
445 * objfiles.h (struct objfile_data): Declare opaque.
446 * cp-support.h (struct objfile): Declare opaque.
447 * linux-nat.h (target_waitstatus): Declare opaque.
449 2003-09-14 Mark Kettenis <kettenis@gnu.org>
451 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
452 (stabs_argument_has_addr): New architecture method.
453 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
454 * arch-utils.c: Include "buildsym.h".
455 (default_stabs_argument_has_addr): New function.
456 * stabsread.c (define_symbol): Use stabs_argument_has_addr
457 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
459 * cris-tdep.c (cris_gdbarch_init): Set
460 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
461 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
462 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
463 * mips-tdep.c (mips_gdbarch_init): Likewise.
464 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
465 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
467 2003-09-13 Andrew Cagney <cagney@redhat.com>
469 * values.c (using_struct_return): Delete "function" and "funcaddr"
471 * value.h (using_struct_return): Update declaration.
472 * infcmd.c (finish_command_continuation): Update.
473 (finish_command): Update.
474 * infcall.c (call_function_by_hand): Update.
475 * eval.c (evaluate_subexp_standard): Update.
477 2003-09-13 Christopher Faylor <cgf@redhat.com>
479 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
480 SSE registers since gdb will not operate correctly without this.
481 Restore include file ordering munged in previous change.
482 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
484 2003-09-13 Mark Kettenis <kettenis@gnu.org>
486 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
488 * gdbarch.c, gdbarch.h: Updated.
489 * infcall.c (call_function_by_hand): Update.
490 * stabsread.c (define_symbol): Updated.
492 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
494 2003-09-12 Christopher Faylor <cgf@redhat.com>
496 * win32-nat.c: Reorganize so that defines used by target headers are
497 actually defined by the system headers.
498 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
499 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
501 2003-09-12 Jim Blandy <jimb@redhat.com>
503 * dbxread.c (read_dbx_symtab): Don't report an internal error if
504 the file has no .data, .bss, or .rodata sections. Instead wait
505 until we see a variable alleged to live in one of those sections.
507 * dbxread.c (read_dbx_symtab): If we have no .data section and no
508 .bss section, presume that any variables we find live in the
511 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
512 offsets for global and static variables.
514 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
515 symbol types are, by definition, in the .data section, so it is
516 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
517 If there is no .data section, there should be no N_DATA or N_DATA
520 2003-09-12 Mark Kettenis <kettenis@gnu.org>
522 * amd64fbsd-tdep.c: Fix sigtramp recognition.
523 (amd64fbsd_sigcontext_addr): Rewrite.
524 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
526 (amd64fbsd_sc_reg_offset): Initialize with correct values.
527 (amd64fbsd_init_abi): Fix typo.
529 2003-09-12 Andrew Cagney <cagney@redhat.com>
531 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
532 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
534 2003-09-12 Andrew Cagney <cagney@redhat.com>
536 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
537 "entry_file_highpc". Update comments.
538 * defs.h (deprecated_inside_entry_file): Rename
540 * blockframe.c (deprecated_inside_entry_file): Rename
542 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
543 * vax-tdep.c (vax_frame_chain): Update.
544 * sh64-tdep.c (sh64_frame_chain): Update.
545 * sh-tdep.c (sh_frame_chain): Update.
546 * rs6000-tdep.c (rs6000_frame_chain): Update.
547 * ns32k-tdep.c (ns32k_frame_chain): Update.
548 * mips-tdep.c (mips_frame_chain): Update.
549 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
550 * m32r-tdep.c (m32r_frame_this_id): Update.
551 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
552 * frv-tdep.c (frv_frame_this_id): Update.
553 * d10v-tdep.c (d10v_frame_this_id): Update.
554 * cris-tdep.c (cris_frame_chain): Update.
555 * blockframe.c (legacy_frame_chain_valid): Update.
556 * avr-tdep.c (avr_frame_this_id): Update.
557 * arm-tdep.c (arm_prologue_this_id): Update.
558 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
559 * objfiles.c (objfile_relocate): Update.
560 * mipsread.c (mipscoff_symfile_read): Update.
561 (mipscoff_symfile_read): Update.
562 * mdebugread.c (parse_partial_symbols): Update.
563 * dwarfread.c (read_file_scope): Update.
564 * dwarf2read.c (read_file_scope): Update.
565 * dbxread.c (read_dbx_symtab): Update.
566 (read_dbx_symtab): Update.
567 * coffread.c (complete_symtab): Update.
569 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
571 * top.c (quit_target): New static helper function.
572 (quit_force): Moved code to quit_target(). Call quit_target()
573 via catch_errors() to catch errors during quit.
575 2003-09-11 David Carlton <carlton@kealia.com>
577 * buildsym.c (finish_block): Use allocate_block to allocate the
579 * mdebugread.c (new_block): Add FIXME.
581 2003-09-11 David Carlton <carlton@kealia.com>
583 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
584 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
585 (recursive_dump_type): Ditto.
586 * printcmd.c (print_formatted): Ditto.
587 * typeprint.c (print_type_scalar): Ditto.
588 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
589 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
590 * cp-support.h: Declare cp_check_possible_namespace_symbols,
591 maint_cplus_cmd_list.
592 * cp-support.c: Make maint_cplus_cmd_list extern.
593 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
595 (lookup_symbol_file): Look in possible namespace blocks when
597 (initialize_namespace_symtab): New.
598 (get_possible_namespace_block, free_namespace_block)
599 (check_possible_namespace_symbols)
600 (check_possible_namespace_symbols_loop)
601 (check_one_possible_namespace_symbol)
602 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
603 (_initialize_cp_namespace): Ditto.
604 * block.h: Declare allocate_block.
605 * block.c (allocate_block): New.
606 * jv-lang.c (get_java_class_symtab): Allocate blocks via
608 * symfile.h: Update declaration of add_psymbol_to_list.
609 * symfile.c (add_psymbol_to_list): Return the partial symbol in
611 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
612 scan_partial_symbols_call.
613 (scan_partial_symbols): Add NAMESPACE argument; update calls to
615 (add_partial_symbol): If necessary, scan mangled names for names
617 (add_partial_namespace): Add NAMESPACE argument; generate partial
618 symbols associated to namespaces.
619 (add_partial_enumeration): Add NAMESPACE argument.
620 (new_symbol): Allow namespace syms.
621 (read_namespace): Generate namespace syms.
622 * objfiles.h: Add opaque declaration of struct symtab.
623 (struct objfile): Add cp_namespace_symtab member.
624 * objfiles.c (allocate_objfile): Set
625 objfile->cp_namespace_symtab.
626 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
627 dictionary_h, command_h.
629 2003-09-11 Andrew Cagney <cagney@redhat.com>
631 * rs6000-tdep.c (rs6000_push_dummy_call): Use
632 regcache_raw_write_signed to set SP_REGNUM, move the operation to
633 near the function's end.
634 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
635 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
636 regcache_raw_write_signed to set SP_REGNUM.
638 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
640 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
641 orig_addrs is set up properly.
643 2003-09-11 Andrew Cagney <cagney@redhat.com>
645 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
646 * gdbarch.h, gdbarch.c: Re-generate.
647 * infcall.c (call_function_by_hand): Update.
648 * hppa-tdep.c (hppa_push_arguments): Update.
649 * ada-lang.c (place_on_stack): Update.
650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
651 * sparc-tdep.c (sparc_gdbarch_init): Update.
652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
653 * hppa-tdep.c (hppa_gdbarch_init): Update.
654 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
657 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
659 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
660 register do need a frame.
662 2003-09-11 Andrew Cagney <cagney@redhat.com>
664 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
665 buildable since GDB 5.0.
666 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
667 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
668 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
669 * irix4-nat.c: Delete file.
670 * config/mips/irix4.mh: Delete file.
671 * config/mips/irix3.mh: Delete file.
672 * config/mips/irix3.mt: Delete file.
673 * config/mips/tm-irix3.h: Delete file.
674 * config/mips/nm-irix3.h: Delete file.
675 * config/mips/xm-irix3.h: Delete file.
676 * config/mips/nm-irix4.h: Delete file.
677 * config/mips/xm-irix4.h: Delete file.
678 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
680 2003-09-10 J. Brobecker <brobecker@gnat.com>
682 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
683 * Makefile.in (hppa-tdep.o): Update dependencies.
685 2003-09-10 James E Wilson <wilson@specifixinc.com>
687 * MAINTAINERS: Change my e-mail address. Move to paper trail
690 2003-09-10 Kevin Buettner <kevinb@redhat.com>
692 * MAINTAINERS (frv): New ISA entry.
694 2003-09-10 Kevin Buettner <kevinb@redhat.com>
696 * frv-tdep.c (dis-asm.h): Include.
697 * Makefile.in (frv-tdep.o): Update dependencies.
699 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
701 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
702 Fix typo for high range of floating registers.
704 2003-09-09 David Carlton <carlton@kealia.com>
706 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
707 highpc initialization here out of scan_partial_symbols.
708 (scan_partial_symbols): Restructure into a recursive version,
709 calling add_partial_namespace and add_partial_enumeration when
711 (add_partial_namespace): New.
712 (add_partial_enumeration, locate_pdi_sibling): Ditto.
714 2003-09-09 Andrew Cagney <cagney@redhat.com>
716 * rs6000-tdep.c (ppc_push_return_address): Delete function.
717 (rs6000_push_dummy_call): Set LR to BP_ADDR.
718 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
719 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
721 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
722 (rs6000_push_dummy_call): Set the "TOC" register.
724 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
725 methods "max_register_raw_size", "max_register_virtual_size" or
726 "register_virtual_size".
728 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
730 * MAINTAINERS: Update my e-mail address.
732 2003-09-09 Andrew Cagney <cagney@redhat.com>
734 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
735 (rs6000_push_dummy_call): Store the struct return address.
736 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
738 2003-09-09 Andrew Cagney <cagney@redhat.com>
740 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
741 "ppc_sysv_abi_push_arguments".
742 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
743 "ppc_sysv_abi_push_arguments".
744 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
745 instead of "push_arguments".
746 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
748 2003-09-09 Andrew Cagney <cagney@redhat.com>
750 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
751 instead of CALL_DUMMY_ADDRESS.
753 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
755 * p-lang.c: Eliminate "register".
764 * objc-lang.c: Ditto.
766 2003-09-09 Nick Clifton <nickc@redhat.com>
768 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
770 2003-09-04 Andrew Cagney <cagney@redhat.com>
772 * avr-tdep.c: Include "dis-asm.h".
773 * cris-tdep.c: Include "dis-asm.h".
774 (cris_delayed_get_disassembler): Use "struct disassemble_info"
775 instead of corresponding typedef.
776 * h8300-tdep.c: Include "dis-asm.h".
777 * ia64-tdep.c: Include "dis-asm.h".
778 * i386-tdep.c: Include "dis-asm.h".
779 (i386_print_insn): Use "struct disassemble_info" instead of
780 corresponding typedef.
781 * m68k-tdep.c: Include "dis-asm.h".
782 * mcore-tdep.c: Include "dis-asm.h".
783 * mips-tdep.c: Include "dis-asm.h".
784 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
785 instead of corresponding typedef.
786 * ns32k-tdep.c: Include "dis-asm.h".
787 * s390-tdep.c: Include "dis-asm.h".
788 * sparc-tdep.c: Include "dis-asm.h".
789 * vax-tdep.c: Include "dis-asm.h".
790 * v850-tdep.c: Include "dis-asm.h".
791 * mn10300-tdep.c: Include "dis-asm.h".
792 * rs6000-tdep.c: Include "dis-asm.h".
793 * xstormy16-tdep.c: Include "dis-asm.h".
794 (_initialize_xstormy16_tdep): Delete "extern" declaration of
795 print_insn_xstormy16.
796 * Makefile.in (v850-tdep.o): Update dependencies.
797 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
798 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
799 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
800 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
801 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
802 (gdbarch_h): Remove $(dis_asm_h).
803 * disasm.c: Include "dis-asm.h".
804 (dis_asm_read_memory): Use "struct disassemble_info" instead of
805 corresponding typedef.
806 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
807 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
808 * gdbarch.sh: Do not include "dis-asm.h".
809 (struct disassemble_info): Declare opaque.
810 (TARGET_PRINT_INSN): Update declaration.
811 * gdbarch.h, gdbarch.c: Re-generate.
813 2003-09-08 Andrew Cagney <cagney@redhat.com>
815 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
816 CALL_DUMMY_ADDRESS, change to a predicate.
817 * gdbarch.h, gdbarch.c: Re-generate.
818 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
819 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
820 * infcall.c (call_function_by_hand): Ditto.
821 * sparc-tdep.c (sparc_push_return_address): Ditto.
822 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
823 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
824 CALL_DUMMY_ADDRESS with entry_point_address.
825 * v850-tdep.c (v850_push_return_address): Ditto.
826 * s390-tdep.c (s390_push_return_address): Ditto.
827 * rs6000-tdep.c (ppc_push_return_address): Ditto.
828 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
829 * mcore-tdep.c (mcore_push_return_address): Ditto.
830 * cris-tdep.c (cris_push_return_address): Ditto.
831 * arm-tdep.c (arm_push_return_address): Ditto.
833 2003-09-08 Andrew Cagney <cagney@redhat.com>
835 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
836 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
837 and REG_UNMODIFIED to REG_SAME_VALUE.
838 (execute_cfa_program): Update.
839 (dwarf2_frame_cache): Update. Initialize table to
840 REG_UNSPECIFIED, complain if CFI fails to specify a register's
842 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
844 2003-09-08 Andrew Cagney <cagney@redhat.com>
846 * gnu-nat.c: Remove "inline" function attribute.
847 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
849 2003-09-08 Kevin Buettner <kevinb@redhat.com>
851 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
854 2003-09-08 Kevin Buettner <kevinb@redhat.com>
856 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
857 (frame_extra_info): Rename this struct to frv_unwind_cache.
858 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
859 Add fields ``prev_sp'' and ``base''.
860 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
861 (frv_saved_pc_after_call, frv_init_extra_frame_info)
862 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
864 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
865 Revise all callers. Fill in the unwind cache argument and make
866 other adjustments to account for new frame mechanisms.
867 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
868 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
869 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
870 (frv_frame_unwind, frv_frame_base): New structs.
871 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
872 additional arguments expected by this method and adjust function
874 (frv_gdbarch_init): Remove calls to the following functions:
875 set_gdbarch_deprecated_init_frame_pc(),
876 set_gdbarch_deprecated_saved_pc_after_call(),
877 set_gdbarch_deprecated_frame_chain(),
878 set_gdbarch_deprecated_frame_saved_pc(),
879 set_gdbarch_deprecated_frame_init_saved_regs(),
880 set_gdbarch_deprecated_push_arguments(),
881 set_gdbarch_deprecated_push_return_address(),
882 set_gdbarch_deprecated_pop_frame(),
883 set_gdbarch_deprecated_call_dummy_words(),
884 set_gdbarch_deprecated_sizeof_call_dummy_words(),
885 set_gdbarch_deprecated_init_extra_frame_info(),
886 set_gdbarch_deprecated_dummy_write_sp(), and
887 set_gdbarch_deprecated_pc_in_call_dummy().
888 Add calls to the following functions:
889 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
890 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
891 frame_base_set_default().
892 * Makefile.in (frv-tdep.o): Update dependencies.
894 2003-09-09 Mark Kettenis <kettenis@gnu.org>
896 * dwarf2-frame.c (read_encoded_value): Add support for
897 DW_EH_PE_aligned encoding.
899 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
901 * infrun.c (normal_stop): Don't print a message if the inferior
904 2003-09-08 Jim Blandy <jimb@redhat.com>
906 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
907 * dbxread.c: #include "gdb_assert.h".
908 (read_dbx_symtab): If the objfile has no .data section, use the
909 section index for the .bss section instead.
911 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
913 * frame.c (deprecated_safe_get_selected_frame): New function.
914 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
915 * findvar.c (read_var_value): Call it.
917 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
919 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
920 (sh64-tdep.o): Add dependencies.
921 * configure.tgt: Add FIXME to sh-*-linux*.
922 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
923 (sh_gdbarch_init): Always set correct sh_show_regs function
924 pointer. Call sh64_gdbarch_init() if machine type is sh5.
925 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
926 * sh64-tdep.c: New file, containing all sh64 related code from
928 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
929 * config/sh/linux.mt (TDEPFILES): Ditto.
930 * config/sh/nbsd.mt (TDEPFILES): Ditto.
931 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
932 * config/sh/wince.mt (TDEPFILES): Ditto.
934 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
936 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
937 (stop_wait_callback): Handle !lp->signalled also.
938 (lin_lwp_has_pending, flush_callback): New functions.
939 (lin_lwp_wait): Call flush_callback.
940 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
941 (linux_proc_pending_signals): New function.
942 * linux-nat.h (linux_proc_pending_signals): Add prototype.
944 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
946 From Nick Kelsey <nickk@ubicom.com>:
947 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
948 when the stop PC is at the beginning of a function also.
950 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
952 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
953 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
955 2003-09-06 Mark Kettenis <kettenis@gnu.org>
957 * sol-thread.c: Include "gdb_string.h".
959 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
961 * gcore.c: Reorder include files in alphabetical order. Include
962 "gdb_assert.h". Various coding style fixes.
963 (derive_stack_segment, derive_heap_segment): Replace check for
964 non-null BOTTOM and TOP with gdb_assert.
965 (derive_heap_segment): Replace check for successful creation of
966 ZERO with gdb_assert.
967 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
969 2003-09-04 Andrew Cagney <cagney@redhat.com>
971 * thread-db.c (verbose_dlsym): New function.
972 (thread_db_load): Use verbose_dlsym
973 (thread_db_new_objfile): Print that libthread_db was loaded, and
974 that thread debugging was enabled.
976 2003-09-04 Andrew Cagney <cagney@redhat.com>
978 * configure.tgt: Add "mips64*-*-*" target. Delete
979 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
980 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
981 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
982 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
983 mips*-sony-*, and mips64*-*-elf* targets.
984 * config/mips/embedl.mt: Delete file.
985 * config/mips/embedl64.mt: Delete file.
986 * config/mips/mips.mt: Delete file.
987 * config/mips/mips64.mt: Delete file.
988 * config/mips/tm-embed.h: Delete file.
989 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
990 * config/mips/embed64.mt: Delete out-of-date comment.
992 2003-09-04 Andrew Cagney <cagney@redhat.com>
994 * hppa-tdep.c (hppa_gdbarch_init): Set
995 "have_nonsteppable_watchpoint".
996 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
997 * mips-tdep.c (mips_dump_tdep): Do not print
998 HAVE_NONSTEPPABLE_WATCHPOINT.
999 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1000 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1001 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1002 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1004 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1006 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1007 unused code. Add comment.
1009 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1011 * breakpoint.c (watchpoint_check): Check for pc being in an
1012 epilogue if watchpoint frame couldn't be found.
1014 2003-09-04 Andrew Cagney <cagney@redhat.com>
1016 * Makefile.in: Re-generate all dependencies.
1018 2003-09-03 Andrew Cagney <cagney@redhat.com>
1020 * arch-utils.h (legacy_print_insn): Delete declaration.
1021 * arch-utils.c (legacy_print_insn): Delete function.
1022 * disasm.c (deprecated_tm_print_insn_info): Delete.
1023 (_initialize_disasm): Delete function, contained code initializing
1024 deprecated_tm_print_insn_info.
1025 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1026 (deprecated_tm_print_insn_info): Delete.
1027 (TARGET_PRINT_INSN): Do not provide a default.
1028 * gdbarch.h, gdbarch.c: Re-generate.
1030 2003-09-03 Andrew Cagney <cagney@redhat.com>
1032 * disasm.c (fprintf_disasm): New function.
1033 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1034 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1035 reverts 2003-08-14 change.
1036 (_initialize_disasm): Call "init_disassemble_info", instead of
1037 INIT_DISASSEMBLE_INFO_NO_ARCH.
1039 2003-09-03 Michael Snyder <msnyder@redhat.com>
1041 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1043 2003-09-03 Andrew Cagney <cagney@redhat.com>
1045 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1046 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1047 * symfile.c (syms_from_objfile): Update.
1048 (reread_symbols): `Update
1049 * exec.c (exec_file_attach): Update.
1050 (exec_file_attach): Update.
1051 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1053 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1055 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1057 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1059 (arm_get_cache): Delete macro.
1060 (struct arm_prologue_cache): Update comments. Make saved_regs into
1061 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1063 (thumb_scan_prologue): Update for cache changes. Don't call
1064 DEPRECATED_PC_IN_CALL_DUMMY.
1065 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1066 argument and use it in desperation search for our prologue. Do not
1067 search past the specified PC.
1068 (arm_make_prologue_cache): Simplify.
1070 (arm_prologue_this_id, arm_prologue_prev_register)
1071 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1072 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1073 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1074 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1075 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1077 (arm_frame_chain_valid, arm_find_callers_reg)
1078 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1079 (arm_pop_frame): Delete obsolete methods.
1080 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1082 (arm_gdbarch_init): Update for new frame methods. Register prologue
1083 and sigtramp unwinders. Set the default frame base method.
1085 * Makefile.in (arm-tdep.o): Update dependencies.
1086 * varobj.c (find_frame_addr_in_frame_chain): Call
1087 get_frame_base_address.
1088 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1090 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1092 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1093 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1094 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1095 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1096 Take NEXT_FRAME and CACHE arguments. Call
1097 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1098 Set unwound_pc in CACHE instead of modifying the frame argument.
1099 Don't bother checking the frame type when looking for sigtramp
1101 (arm_make_prologue_cache, arm_frame_chain)
1102 (arm_init_extra_frame_info): New functions.
1104 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1106 * arm-tdep.c (arm_get_cache): Define.
1107 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1108 unwound_sp, unwound_pc, and saved_regs.
1109 (thumb_scan_prologue): Take a cache instead of the frame.
1110 (arm_scan_prologue): Likewise.
1111 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1112 instead of a temporary frame.
1113 (arm_init_extra_frame_info): Allocate and use a cache.
1114 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1116 2003-09-03 Andrew Cagney <cagney@redhat.com>
1118 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1119 * config/mips/wince.mt (TM_CLIBS): Ditto.
1120 * config/sh/wince.mt (TM_CLIBS): Ditto.
1121 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1122 * config/sparc/sp64.mt (CC): Delete.
1124 2003-09-03 Andrew Cagney <cagney@redhat.com>
1126 * defs.h: Do not include "arch-utils.h".
1127 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1128 GDB_MULTI_ARCH_PURE.
1129 * configure.in (GDB_MULTI_ARCH): Do not define.
1130 * configure, config.in: Regenerate.
1131 * configure.tgt: Do not set variable "gdb_multi_arch".
1132 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1133 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1134 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1135 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1136 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1137 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1138 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1139 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1140 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1141 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1142 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1143 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1144 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1145 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1146 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1147 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1148 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1149 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1151 2003-08-30 Michael Chastain <mec@shout.net>
1153 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1154 * config/m68k/nm-hp300hpux.h: Delete.
1155 * config/m68k/tm-hp300hpux.h: Delete.
1156 * config/m68k/xm-hp300hpux.h: Delete.
1157 * config/m68k/xm-hp300bsd.h: Delete.
1158 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1159 tm-hp300hpux.h, xm-hp300hpux.h.
1160 * somsolib.c: Remove comment about hp300 shared libraries.
1162 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1164 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1165 Only define PTRACE_GET_THREAD_AREA is not already defined.
1166 Various style fixes in code and comments and some additional
1167 spelling fixes in comments. Move after functions dealing with
1169 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1172 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1173 frame_unwind_register_unsigned instead of
1174 frame_unwind_unsigned_register.
1176 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1178 * configure.in: Search for gethostbyname in libnsl.
1179 * configure: Regenerated.
1181 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1183 * configure.in: Remove redundant AC_MSG_RESULT in check for
1184 uintptr_t in stdint.h.
1185 * configure: Regenerated.
1187 * amd64-nat.h (struct regcache): Add opaque declaration.
1189 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1190 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1191 Change "register array" to "register cache" in comments.
1192 (x86_64_linux_gregset64_reg_offset): New variable.
1193 (GETREGS_SUPPLIES): Remove macro.
1194 (supply_gregset): Call amd64_supply_native_gregset instead of
1195 x86_64_linux_supply_gregset.
1196 (fill_gregset): Rename `regno' to `regnum'. Call
1197 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1198 (store_regs): Rename `regno' to `regnum'.
1199 (store_fpregs): Rename `regno' to `regnum'.
1200 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1201 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1202 Reorganize function a bit.
1203 (store_inferior_registers): Rename `regno' to `regnum'. Use
1204 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1205 Reorganize function a bit.
1206 (_initialize_x86_64_linux_nat): New function.
1207 * config/i386/x86-64linux.mh.
1209 2003-08-29 Andrew Cagney <cagney@redhat.com>
1211 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1212 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1213 (target_remove_watchpoint): Delete macro.
1214 (target_insert_watchpoint): Delete macro.
1215 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1216 (remote_mips_stopped_by_watchpoint): Delete declaration.
1217 (remote_mips_remove_watchpoint): Delete declaration.
1218 (remote_mips_set_watchpoint): Delete declaration.
1219 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1220 * remote-mips.c (_initialize_remote_mips): Set
1221 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1222 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1223 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1224 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1225 (mips_stopped_by_watchpoint): Rename
1226 remote_mips_stopped_by_watchpoint.
1227 (mips_can_hardware_watchpoint): Rename
1228 remote_mips_can_use_hardware_watchpoint, update function
1231 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1233 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1234 USER_DS. We haven't given them a register number yet.
1236 * amd64-nat.h: New file.
1237 * amd64-nat.c: New file.
1238 * amd64fbsd-nat.c: Include "amd64-nat.h".
1239 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1240 (amd64fbsd32_r_reg_offset): New variable.
1241 (supply_gregset): Simply call amd64_supply_native_gregset.
1242 (fill_gregset): Rename `regno' to `regnum'. Simply call
1243 amd64_collect_native_gregset.
1244 (fill_fpregset): Rename `regno' to `regnum'.
1245 (fetch_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_supply_native_gregset instead of
1249 supply_gregset. Call x86_64_supply_fxsave instead of
1251 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1252 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1253 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1254 `fpregset_t'. Call amd64_collect_native_gregset instead of
1255 fill_gregset. Call x86_64_collect_fxsave instead of
1257 (_initialize_am64fbsd_nat): Initialize
1258 amd64_native_gregset32_reg_offset and
1259 amd64_native_gregset64_reg_offset.
1260 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1262 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1263 null pointer. Fix typo in comment.
1265 * regcache.c (supply_register): Reimplement to call
1266 regcache_raw_supply.
1267 (regcache_collect): Reimplement by calling regcache_raw_collect.
1269 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1271 * regcache.c (register_buffer): Consitify first argument.
1272 (regcache_raw_supply, regcache_raw_collect): New
1275 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1277 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1278 by Nathan J. Williams.
1280 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1282 * lin-lwp.c (wait_lwp): New function, copied from
1283 stop_wait_callback. Clean up.
1284 (stop_wait_callback): Use wait_lwp.
1286 2003-08-28 Andrew Cagney <cagney@redhat.com>
1288 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1289 flavour and disassembler options.
1290 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1291 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1292 deprecated_tm_print_insn_info.
1294 2003-08-27 Andrew Cagney <cagney@redhat.com>
1296 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1297 Use target_read_memory.
1298 (s390_get_frame_info): Update. Do not reference
1299 deprecated_tm_print_insn_info.
1300 (s390_check_function_end, s390_is_sigreturn): Ditto.
1302 2003-08-27 Andrew Cagney <cagney@redhat.com>
1304 * Makefile.in (cris-tdep.o): Update dependencies.
1305 * cris-tdep.c: Include "gdb_assert.h".
1306 (cris_gdbarch_init): Set print_insn.
1307 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1308 (cris_delayed_get_disassembler): Simplify, directly call the
1309 disassembler returned by cris_get_disassembler.
1310 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1311 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1312 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1313 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1314 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1315 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1316 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1317 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1318 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1319 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1320 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1321 (gdb_print_insn_sparc): Delete function.
1322 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1323 deprecated_tm_print_insn_info.
1324 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1325 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1326 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1327 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1328 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1329 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1330 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1331 (s390_gdbarch_init): Set print_insn.
1333 2003-08-27 Andrew Cagney <cagney@redhat.com>
1335 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1336 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1337 * infcall.c (call_function_by_hand): Convert the entry point
1338 address into a code address.
1340 2003-08-27 Andrew Cagney <cagney@redhat.com>
1342 * dsrec.c: Include "gdb_string.h".
1343 * Makefile.in (dsrec.o): Update dependencies.
1345 2003-08-27 Michael Chastain <mec@shout.net>
1347 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1349 2003-08-27 Andrew Cagney <cagney@redhat.com>
1351 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1352 (alpha_osf1_init_abi): Do not set call_dummy_address.
1354 2003-08-27 David Carlton <carlton@kealia.com>
1356 From Randolph Chung <tausq@debian.org>:
1357 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1358 compiles with -Wformat-nonliteral -Werror.
1360 2003-08-26 Jim Blandy <jimb@redhat.com>
1362 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1363 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1364 bfd_lookup_symbol, since we only want symbols in code sections.
1365 (look_for_base): Pass zero as the SECT_FLAGS argument to
1366 bfd_lookup_symbol, since we're not concerned about which section
1369 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1371 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1372 we are frameless or the return address register is already known.
1374 2003-08-26 Andrew Cagney <cagney@redhat.com>
1376 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1377 in size. Add comments.
1379 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1381 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1382 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1384 2003-08-26 Jason Merrill <jason@redhat.com>
1386 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1387 case out of #ifdef MIPS block.
1389 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1392 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1393 available before calling SECT_OFF_TEXT.
1394 * PROBLEMS: Remove description of java/1322.
1396 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1398 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1399 bof, and nat0-nat127 as pseudo-registers.
1400 (ia64_frame_cache): New struct used to cache frame info.
1401 (ia64_register_reggroup_p): New routine used to override default
1402 register grouping so registers without names are still saved and
1404 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1406 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1407 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1408 (ia64_alloc_frame_cache): New routine to create a new
1410 (examine_prologue): Change prototype to add next_frame pointer.
1411 Assume frameless until otherwise proven. Verify that the cfm for
1412 current frame matches the cfm that should occur for the prologues
1413 alloc insn and if equal, mark as not frameless. At end of routine,
1414 if not frameless, calculate registers for the previous frame and store
1415 in the cache, if a cache is provided.
1416 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1417 and pass 0 for next_frame.
1418 (ia64_store_return_value): Change to use convert_typed_floating()
1419 instead of calling ia64_convert_to_raw().
1420 (ia64_extract_return_value): Change to use convert_typed_floating()
1421 instead of calling ia64_convert_to_virtual().
1422 (ia64_frame_cache): New routine to support new frame model.
1423 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1424 (ia64_frame_sniffer): Ditto.
1425 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1426 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1427 (ia64_sigtramp_frame_prev_register): Ditto.
1428 (ia64_sigtramp_frame_sniffer): Ditto.
1429 (ia64_frame_base_address): Ditto.
1430 (ia64_extract_struct_value_address): Change to issue error message.
1431 (ia64_frame_align): New routine to align sp.
1432 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1433 (ia64_push_arguments): Removed. Logic moved to
1434 ia64_push_dummy_call().
1435 (ia64_push_return_address): Ditto.
1436 (ia64_unwind_dummy_id): New function.
1437 (ia64_unwind_pc): Ditto.
1438 (ia64_convert_register_p): Ditto.
1439 (ia64_register_to_value): Ditto.
1440 (ia64_value_to_register): Ditto.
1441 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1442 (ia64_register_byte, ia64_register_raw_size): Ditto.
1443 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1444 (ia64_saved_pc_after_call): Ditto.
1445 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1446 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1447 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1448 (ia64_register_convert_to_raw): Ditto.
1449 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1450 (ia64_init_extra_frame_info): Ditto.
1451 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1452 (ia64_gdbarch_init): Remove registering of deprecated functions that
1453 are no longer used. Add registration of new gdbarch functions.
1454 Remove registering deprecated_write_sp. Replace
1455 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1456 Delete set_gdbarch_deprecated_register_convertible(),
1457 set_gdbarch_deprecated_register_convert_to_virtual(), and
1458 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1459 set_gdbarch_deprecated_register_size(),
1460 set_gdbarch_deprecated_register_bytes(),
1461 set_gdbarch_pcregnum(),
1462 set_gdbarch_deprecated_register_byte(),
1463 set_gdbarch_deprecated_register_raw_size(),
1464 set_gdbarch_deprecated_max_register_raw_size(),
1465 set_gdbarch_deprecated_register_virtual_size(),
1466 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1467 Replace set_gdbarch_deprecated_extract_return_value() with
1468 set_gdbarch_extract_return_value(). Remove calls to:
1469 set_gdbarch_deprecated_saved_pc_after_call();
1470 set_gdbarch_deprecated_frame_chain(),
1471 set_gdbarch_deprecated_frame_saved_pc(),
1472 set_gdbarch_deprecated_frame_init_saved_regs(),
1473 set_gdbarch_deprecated_get_saved_register(),
1474 set_gdbarch_deprecated_call_dummy_words(),
1475 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1476 set_gdbarch_deprecated_init_extra_frame_info(),
1477 set_gdbarch_deprecated_frame_args_address(),
1478 set_gdbarch_deprecated_frame_locals_address(),
1479 and set_gdbarch_deprecated_dummy_write_sp().
1480 Add set_gdbarch_convert_register_p(),
1481 set_gdbarch_register_to_value(),
1482 set_gdbarch_value_to_register(),
1483 set_gdbarch_push_dummy_call(),
1484 set_gdbarch_frame_align(),
1485 set_gdbarch_unwind_dummy_id(),
1486 set_gdbarch_unwind_pc(),
1487 frame_unwind_append_sniffer(),
1488 frame_unwind_append_sniffer(),
1489 and frame_base_set_default().
1491 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1493 * configure.tgt: Document need for special "mipsisa64" handling.
1494 (mipsisa64*-*-linux64): Handle as target linux64.
1495 (mipsisa64*-*-*): Handle as target embed64.
1497 2003-08-18 Michael Chastain <mec@shout.net>
1499 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1502 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1504 * i387-tdep.h: Update copyright date.
1505 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1507 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1508 CFLAGS games to reflect reality.
1510 2003-08-24 Andrew Cagney <cagney@redhat.com>
1512 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1513 GDB_MULTI_ARCH is always non-zero.
1514 * osabi.c (_initialize_gdb_osabi): Ditto.
1515 (gdbarch_init_osabi): Ditto.
1516 * sparc-tdep.c: Ditto for #if code.
1518 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1520 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1522 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1524 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1525 x86_64_supply_fxsave.
1526 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1527 x86_64_supply_fxsave.
1528 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1529 x86_64_supply_fxsave.
1531 2003-08-23 Andreas Jaeger <aj@suse.de>
1533 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1536 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1538 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1539 i387_supply_register.
1540 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1541 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1543 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1545 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1547 * i386bsd-nat.c (supply_fpregset): Adjust call to
1549 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1550 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1552 (store_inferior_registers): Remove extraneous whitespace. Call
1553 i387_fill_fsave instead of fill_fpregset.
1554 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1555 (supply_fpregset): Likewise.
1556 * i386v4-nat.c (supply_fpregset): Adjust call to
1558 * i386-interix-nat.c (supply_fpregset): Adjust call to
1560 * i386-linux-nat.c (supply_fpregset): Adjust call to
1562 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1563 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1564 i387supply_fsave and i387_supply_fxsave.
1565 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1566 Incorporate code from `i387_supply_register.
1567 (i387_supply_register): Remove.
1568 (i387_supply_fxsave): Add `regnum' argument.
1570 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1572 (i387_supply_register): remove prototype.
1575 2003-08-22 Michael Chastain <mec@shout.net>
1577 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1578 Add lines for files in gdb/testsuite/gdb.cp/* that are
1579 still not 8.3 unique.
1581 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1583 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1584 TYPE_VPTR_FIELDNO is valid.
1586 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1588 * utils.c (set_width_command): Remove prototypes.
1589 (set_screen_size): New prototype.
1590 (init_page_info): Simplify by fetching the screen size from
1591 Readline. Call set_screen_size.
1592 (set_screen_size): New function.
1593 (set_width): Add missing whitespace in comment.
1594 (set_width_command): Call set_screen_size.
1595 (set_height_command): New function.
1596 (initialize_utils): Fix formatting. Make "set height" command
1597 call set_height_command. Remove redundant code that turns off
1598 pagination if output isn't a terminal. Remove redundant call to
1601 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1603 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1604 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1605 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1606 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1608 (sparc64_register_info): Give the reister with number
1609 SPARC64_STATE_REGNUM a name.
1610 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1612 (sparc64_push_dummy_call): Take BIAS into account when checking
1614 (sparc_software_single_step): Remove assertions that check whether
1615 NPC and NNPC were zero.
1616 (sparc_supply_rwindow): Make public. Merge functionality with
1617 sparc64_supply_rwindow.
1618 (sparc_fill_rwindow): Make public. Merge functionality with
1619 sparc64_fill_rwindow.
1620 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1621 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1622 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1623 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1624 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1626 * reggroups.c: Add whitespace after declarations of local
1627 variables in functions.
1629 2003-08-21 Michael Chastain <mec@shout.net>
1631 * gdbtypes.h: Change array bound type from an int to enum.
1633 2003-08-21 Andrew Cagney <cagney@redhat.com>
1635 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1636 * config/sparc/tm-sparc.h: Ditto.
1637 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1639 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1641 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1643 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1644 (register_objfile_data, set_objfile_data, objfile_data): New
1646 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1648 (allocate_objfile): Call objfile_alloc_data.
1649 (free_objfile): Call objfile_free_data.
1650 (struct objfile_data): New.
1651 (struct objfile_data_registration): New.
1652 (struct objfile_data_registry): New.
1653 (objfile_data_registry): New variable.
1654 (register_objfile_data): New function.
1655 (objfile_alloc_data, objfile_free_data): New functions.
1656 (set_objfile_data, objfile_data): New functions.
1657 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1658 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1659 (_initialize_dwarf2_frame): New function and prototype.
1661 2003-08-21 Andrew Cagney <cagney@redhat.com>
1663 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1664 a specific architecture.
1665 * arch-utils.h (set_architecture_from_arch_mach): Delete
1667 (target_architecture_hook): Delete declaration.
1668 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1669 (default_float_format): Assume GDB_MULTI_ARCH.
1670 (default_double_format): Assume GDB_MULTI_ARCH.
1671 (set_endian_from_file): Delete function.
1672 (arch_ok): Delete function.
1673 (set_arch): Delete function.
1674 (set_architecture_from_arch_mach): Delete function.
1675 (set_architecture_from_file): Delete function.
1676 (set_architecture): Assume GDB_MULTI_ARCH.
1677 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1679 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1681 Rewrite FreeBSD/sparc64 native configuration.
1682 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1683 * sparc64fbsd-nat.c: New file.
1684 * sparc64fbsd-tdep.c: New file.
1685 * sparc64-tdep.c sparc64-tdep.h: New files.
1686 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1687 sparc64fbsd-tdep.o): New dependencies.
1688 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1689 and sparc64fbsd-tdep.c.
1690 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1691 * config/sparc/fbsd.mh: Remove copyright notice.
1692 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1694 * config/sparc/fbsd.mt: Remove copyright notice.
1695 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1696 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1697 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1698 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1699 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1700 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1701 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1702 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1704 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1705 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1707 2003-08-21 Michael Chastain <mec@shout.net>
1709 * symtab.h: Add doco on the space critical structures and
1710 some measurements of space usage.
1712 2003-08-21 Michael Snyder <msnyder@redhat.com>
1714 * tracepoint.c (trace_dump_command): Trace break address
1715 is subject to DECR_PC_AFTER_BREAK.
1716 (set_traceframe_context): Make "trace_line" an int.
1717 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1719 2003-08-20 Michael Snyder <msnyder@redhat.com>
1721 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1722 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1723 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1725 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1726 functions, replace sh_push_dummy_call.
1727 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1729 2003-08-20 Michael Chastain <mec@shout.net>
1731 * gdbtypes.h (struct main_type): Rearrange to save space.
1733 2003-08-20 Michael Snyder <msnyder@redhat.com>
1735 * trad-frame.c: Comment typo fix.
1737 2003-08-20 Michael Snyder <msnyder@redhat.com>
1738 Kevin Buettner <kevinb@redhat.com>
1740 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1741 (frv_frame_init_saved_regs): Add declaration.
1742 (frame_extra_info): Add new field ``saved_regs''.
1743 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1744 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1745 Update frame related code.
1746 (frv_extract_struct_value_address): Adjust formatting.
1747 * Makefile.in (frv-tdep.o): Update dependencies.
1748 * config/frv/tm-frv.h (target_insert_watchpoint)
1749 (target_remove_watchpoint, target_insert_hw_breakpoint)
1750 (target_remove_hw_breakpoint): Delete these macros.
1751 (remote_insert_watchpoint, remote_remove_watchpoint)
1752 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1755 2003-08-20 Michael Chastain <mec@shout.net>
1757 * defs.h (ENUM_BITFIELD): New macro.
1758 * symtab.h (ENUM_BITFIELD): Use it.
1759 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1761 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1763 * MAINTAINERS (write after approval): Add myself.
1765 2003-08-18 Andrew Cagney <cagney@redhat.com>
1767 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1768 * gdbarch.h, gdbarch.c: Re-generate.
1769 * infcall.c (call_function_by_hand): Adjust the SP by
1770 frame_red_zone_size before allocating any stack space.
1771 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1772 * x86-64-tdep.c (x86_64_frame_align): New function.
1773 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1775 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1776 Remove code adjusting SP so that it skips over the Red Zone.
1778 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1780 * NEWS (New native configurations): Mention FreeBSD/amd64.
1782 2003-08-18 Andrew Cagney <cagney@redhat.com>
1784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1785 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1787 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1789 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1791 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1793 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1795 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1797 * i386-linux-nat.c: Include "linux-nat.h".
1798 (child_post_startup_inferior): New function.
1800 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1802 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1803 at the start of a frameless function. This probably fixes PR
1806 2003-08-17 Michael Chastain <mec@shout.net>
1808 * symfile.c (find_sym_fns): Remove special case for apollo target.
1810 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1812 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1813 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1814 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1815 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1816 (linux_supports_tracevforkdone): New function.
1817 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1819 (child_follow_fork): Handle vfork.
1820 (linux_handle_extended_wait): Likewise. Also handle exec.
1821 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1822 * NEWS: Mention fork tracing.
1824 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1826 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1828 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1830 * Makefile.in (i386-linux-nat.o): Update dependencies.
1831 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1832 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1833 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1834 * i386-linux-nat.c: Include "linux-nat.h".
1835 (child_post_startup_inferior): New function.
1836 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1837 * infptrace.c (kill_inferior): Wrap in #ifdef.
1838 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1839 attaching to each LWP.
1840 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1841 (init_lin_lwp_ops): Fill in some more operations.
1842 * linux-nat.h (linux_enable_event_reporting)
1843 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1845 * linux-nat.c (linux_enable_event_reporting): New function.
1846 (child_post_attach, linux_child_post_startup_inferior)
1847 (child_post_startup_inferior, child_follow_fork)
1848 (linux_handle_extended_wait, kill_inferior): New functions.
1850 2003-08-16 Andrew Cagney <cagney@redhat.com>
1852 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1853 * gdbarch.h, gdbarch.c: Re-generate.
1855 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1857 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1859 2003-08-16 Andrew Cagney <cagney@redhat.com>
1861 * NEWS: Mention that "set prompt-escape-char" was deleted.
1862 * top.c (get_prompt_1): Delete function.
1863 (gdb_prompt_escape):
1864 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1865 prompt-escape-char" command.
1866 (MAX_PROMPT_SIZE): Delete macro.
1867 (get_prompt): Simplify, do not call get_prompt_1.
1869 2003-08-16 Andrew Cagney <cagney@redhat.com>
1871 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1872 -Werror. -Wformat-nonliteral problems.
1874 2003-08-15 J. Brobecker <brobecker@gnat.com>
1876 Further multiarching work mostly for hppa64-*-hpux11:
1877 * hppa-tdep.h: New file.
1878 * hppa-tdep.c: #include hppa-tdep.c.
1879 (hppa32_num_regs): Renamed from hppa_num_regs.
1880 (hppa64_num_regs): New constant.
1881 (hppa64_call_dummy_breakpoint_offset): New constant.
1882 (hppa32_call_dummy_length): New constant.
1883 (hppa64_call_dummy_length): New constant.
1884 (hppa32_stack_align): Make name 32bit explicit.
1885 (hppa32_register_virtual_type): Likewise.
1886 (hppa32_extract_return_value): Likewise.
1887 (hppa32_use_struct_convention): Likewise.
1888 (hppa32_store_return_value): Likewise.
1889 (hppa64_register_virtual_type): New function.
1890 (hppa64_extract_return_value): New function.
1891 (hppa64_use_struct_convention): New function.
1892 (hppa64_store_return_value): New function.
1893 (hppa_frame_locals_address): Remove declaration, function does
1895 (hppa_register_byte): Add support for PA64 ABI.
1896 (hppa_gdbarch_init): Add support for PA64 ABI.
1897 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1898 Make name 32bit explicit.
1899 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1900 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1901 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1902 (hppa64_hpux_frame_base_before_sigtramp): New function.
1903 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1904 * config/pa/tm-hppa64.h: Remove macros that are no longer
1905 necessary now that the gdbarch vector is properly setup.
1906 Transform some macros into function calls. Some minor cleanup.
1907 * config/pa/tm-hppah.h: Update function calls in macros
1908 following the function renaming in hppa-hpux-tdep.c.
1909 * Makefile.in (hppa_tdep_h): New variable.
1910 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1912 2003-08-14 Michael Snyder <msnyder@redhat.com>
1914 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1916 2003-08-13 J. Brobecker <brobecker@gnat.com>
1918 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1919 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1922 2003-08-13 Michael Snyder <msnyder@redhat.com>
1924 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1925 (frv_saved_pc_after_call): Use deprecated ftype.
1926 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1927 (frv_remote_translate_xfer_address): Remove.
1928 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1930 2003-08-13 J. Brobecker <brobecker@gnat.com>
1932 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1933 initialization after the common gdbarch initialization, not before.
1935 2003-08-13 J. Brobecker <brobecker@gnat.com>
1937 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1938 (ADDR_BITS_REMOVE): Remove, redundant.
1940 2003-08-13 J. Brobecker <brobecker@gnat.com>
1942 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1943 gdbarch method to clear the 2 low bits of text addresses.
1945 2003-08-12 Andrew Cagney <cagney@redhat.com>
1947 * Makefile.in (dsrec.o): Update dependencies.
1948 * dsrec.c: Include "gdb_assert.h".
1949 (make_srec): Use snprintf instead of sprintf, use a literal format
1952 2003-08-12 Andrew Cagney <cagney@redhat.com>
1954 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1955 FRAME_OBSTACK_ZALLOC.
1957 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1959 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1962 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1964 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1965 amd64fbsd_sc_reg_offset): Add extern declarations.
1966 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1969 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1971 * MAINTAINERS (write after approval): Update my mail address.
1973 2003-08-10 Andrew Cagney <cagney@redhat.com>
1975 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1977 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1979 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1980 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1981 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1982 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1983 i386bsd_sc_reg_offset): Add extern declarations.
1984 * i386obsd-nat.c: Include "i386-tdep.h"
1985 (_initialize_i386obsd_nat): Remove extern declarations.
1986 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1988 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1991 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1992 instead of frame_read_register.
1993 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1994 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1996 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1997 instead of frame_unwind_unsigned_register. Use
1998 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1999 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2000 instead of read_register. Use builtin_type_void_data_ptr instead
2001 of builtin_type_void_func_ptr when extracting the address of the
2003 (i386_extract_return_value, i386_store_return_value,
2004 i386_pseudo_register_read, i386_pseudo_register_write): Use
2005 register_size instead REGISTER_RAW_SIZE.
2007 2003-08-10 Andrew Cagney <cagney@redhat.com>
2009 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2010 sprintf. Make "name" constant.
2012 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2014 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2015 instead of frame_read_register.
2016 (i387_print_float_info): Use get_frame_register and
2017 get_frame_register_unsigned instead of frame_register_read.
2019 * i386fbsd-nat.c: Include "i386-tdep.h".
2020 (child_resume): Make `eflags' an ULONGEST. Use
2021 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2022 instead of register_read and register_write.
2024 * i386bsd-nat.c (fetch_inferior_registers,
2025 store_inferior_registers): Don't use && at the end of a line.
2026 (_initialize_i386bsd_nat): Fix typo.
2028 * frame.c (_initialize_frame): Add missing backslash.
2030 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2031 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2032 and supply_register instead of manipulating the register buffer
2035 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2036 * config/i386/nm-i386sol2.h
2037 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2039 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2040 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2041 instructions that GCC likes to mingle into the prologue. Fixes
2042 gdb/1253 and gdb/1255.
2044 2003-08-09 Andrew Cagney <cagney@redhat.com>
2047 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2048 * command.h (add_setshow_uinteger_cmd): Declare.
2049 * frame.c (set_backtrace_cmd): New function.
2050 (show_backtrace_cmd): New function.
2051 * frame.c (_initialize_frame): Replace "set/show
2052 backtrace-below-main" with "set/show backtrace past-main". Add
2053 command "set/show backtrace limit".
2054 (backtrace_past_main): Rename "backtrace_below_main".
2055 (backtrace_limit): New variable.
2056 (get_prev_frame): Update. Check the backtrace_limit.
2058 2003-08-09 Andrew Cagney <cagney@redhat.com>
2060 * defs.h (xstrprintf): Declare.
2061 * utils.c (xstrprintf): New function.
2062 * breakpoint.c (insert_breakpoints): Replace sprintf and
2063 non-literal format strings, with xstrprintf and cleanups.
2064 (delete_breakpoint,breakpoint_re_set): Ditto.
2065 (commands_command, insert_breakpoints): Ditto.
2066 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2067 (break_at_finish_command_1): Ditto.
2069 2003-08-09 Andrew Cagney <cagney@redhat.com>
2071 * MAINTAINERS (language support): List Adam Fedor as Objective C
2074 2003-08-08 J. Brobecker <brobecker@gnat.com>
2076 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2077 are now multiarched.
2079 2003-08-08 J. Brobecker <brobecker@gnat.com>
2081 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2082 longer necessary now that hppa64 is partially multiarch'ed.
2084 2003-08-08 Andrew Cagney <cagney@redhat.com>
2086 * interps.c (interp_set): Check for a NULL "old_interp".
2088 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2090 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2091 (install-only): Support DESTDIR.
2092 (uninstall): Likewise.
2093 (install-gdbtk): Likewise.
2095 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2097 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2098 contains something meaningful at all times.
2100 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2102 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2104 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2106 * MAINTAINERS (write after approval): Added self.
2108 2003-08-07 Andrew Cagney <cagney@redhat.com>
2110 * inferior.h (AT_SYMBOL): Define.
2111 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2112 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2113 * mips-tdep.c (mips_call_dummy_address): Delete function.
2114 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2115 set call_dummy_address.
2117 2003-08-07 Andrew Cagney <cagney@redhat.com>
2119 * language.c (op_error): Delete function.
2120 (binop_type_check): Delete function.
2121 * language.h (type_op_error, range_op_error): Delete macros.
2122 (op_error): Delete declaration.
2124 2003-08-07 Andrew Cagney <cagney@redhat.com>
2126 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2128 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2130 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2131 (x86_64_push_arguments): Skip the red zone.
2133 2003-08-05 Andrew Cagney <cagney@redhat.com>
2135 * reggroups.c (reggroup_next): Check for the final entry.
2137 2003-08-04 Andrew Cagney <cagney@redhat.com>
2139 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2140 * cli/cli-script.c (define_command): Call query directly, instead
2141 of passing it a buffer.
2142 * ocd.c (ocd_error): Pass error a constant format string.
2143 * remote-mips.c (mips_error): Use fputs_filtered.
2145 * solib-svr4.c (_initialize_svr4_solib): Update
2146 register_gdbarch_data call.
2147 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2149 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2150 (register_gdbarch_data): Delete "free" parameter. Update
2152 * gdbarch.h, gdbarch.c: Re-generate.
2153 * reggroups.c (_initialize_reggroup): Update.
2154 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2155 * frame-base.c (_initialize_frame_base): Update.
2156 * frame-unwind.c (_initialize_frame_unwind): Update.
2157 * user-regs.c (_initialize_user_regs): Update.
2158 * remote.c (_initialize_remote): Update.
2159 * regcache.c (_initialize_regcache): Update.
2161 * regcache.c (xfree_regcache_descr): Delete function.
2162 (_initialize_regcache): Update call to register_gdbarch_data.
2163 (init_regcache_descr, init_legacy_regcache_descr): Use
2164 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2166 * remote.c (free_remote_state): Delete function.
2167 (_initialize_remote): Update register_gdbarch_data.
2168 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2169 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2171 2003-08-04 Andrew Cagney <cagney@redhat.com>
2173 * reggroups.c (struct reggroup_el): Define.
2174 (struct reggroups): Delete field "nr_group". Replace array
2175 "group" with a "first" to "last" linked list.
2176 (reggroups_init): Update. Allocate using gdbarch's obstack.
2177 (reggroups_free): Delete function.
2178 (add_group): Update. Add "el" parameter.
2179 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2180 (default_groups): Update.
2181 (reggroup_next): Replace reggroups.
2182 (reggroups_dump): Update.
2183 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2184 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2185 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2187 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2189 * Makefile.in (tui-interp.o): Update dependencies.
2191 2003-08-04 David Carlton <carlton@kealia.com>
2193 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2194 to internal_error call.
2195 * source.c (forward_search_command): Add "%s" format argument.
2196 (reverse_search_command): Ditto.
2197 * top.c (quit_confirm): Ditto.
2198 * cli/cli-setshow.c (do_setshow_command): Ditto.
2199 * cp-valprint.c (cp_print_class_method): Replace
2200 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2201 (cp_print_class_member): Ditto.
2202 * event-top.c (command_line_handler): Ditto.
2203 * linux-proc.c (linux_info_proc_cmd): Ditto.
2204 * p-typeprint.c (pascal_type_print_base): Ditto.
2205 * p-valprint.c (pascal_object_print_class_method): Ditto.
2206 (pascal_object_print_class_member): Ditto.
2207 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2208 * remote.c (remote_cisco_section_offsets): Ditto.
2209 * top.c (command_line_input): Ditto.
2210 * utils.c (vwarning,error_stream,quit): Ditto.
2211 * valprint.c (print_floating,print_binary_chars)
2212 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2214 2003-08-04 Andrew Cagney <cagney@redhat.com>
2216 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2218 2003-08-02 Andrew Cagney <cagney@redhat.com>
2220 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2221 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2224 2003-08-02 Andrew Cagney <cagney@redhat.com>
2226 * Makefile.in: Update all dependencies and definitions.
2228 2003-08-02 Adam Fedor <fedor@gnu.org>
2230 * linespec.c (is_objc_method_format): New function
2231 (decode_line_1, locate_first_half): Use it.
2234 2003-08-01 Andrew Cagney <cagney@redhat.com>
2236 * NEWS: Mention that m32r is multi-arch.
2237 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2238 * configure.tgt: Recognize m32r-*-*.
2239 * config/m32r/tm-m32r.h: Delete file.
2240 * config/m32r/m32r.mt: New file.
2241 * m32r-rom.c (m32r_upload_command): Use hostent only when
2242 gethostname succeeds, in order to avoid a compilation
2244 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2247 2003-08-01 Michael Snyder <msnyder@redhat.com>
2249 * sh-tdep.c (sh_frame_align): New gdbarch method.
2250 (sh_gdbarch_init): Set up frame_align method.
2252 2003-07-31 Michael Snyder <msnyder@redhat.com>
2254 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2255 which is already covered by the new frames infrastructure.
2257 2003-07-31 Andrew Cagney <cagney@redhat.com>
2259 * user-regs.c (struct user_reg): Add "next" link.
2260 (struct user_regs): Replace "user" with "first" and "last" links.
2261 (append_user_reg): Add pre-allocated "reg" parameter.
2262 (builtin_user_regs): Provide initial value for "last".
2263 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2264 (user_regs_init): Allocate memory from the gdbarch obstack.
2265 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2266 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2268 (usernum_to_user_reg): New function.
2269 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2270 (value_of_user_reg): Use usernum_to_user_reg.
2271 (user_regs_free): Delete function.
2272 (_initialize_user_regs): Update register_gdbarch_data call.
2274 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2276 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2278 2003-07-30 Michael Snyder <msnyder@redhat.com>
2280 * value.h (value_being_returned): Add a struct_addr argument.
2281 * infcall.c (call_function_by_hand): Pass struct_addr to
2282 value_being_returned.
2283 * infcmd.c (print_return_value): Pass zero as struct_addr.
2284 * values.c (value_being_returned): If struct_addr is passed,
2285 use it instead of trying to recover it from the inferior.
2287 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2289 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2290 the prologue analyzer won't need to attempt to extract the pc
2291 value from the woefully incomplete dummy frame.
2292 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2293 possible. Disable code which modifies the frame.
2295 2003-07-28 Andrew Cagney <cagney@redhat.com>
2297 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2299 (annotate_breakpoints_table, annotate_record): Ditto.
2300 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2301 (annotate_field_name_end, annotate_field_value): Ditto.
2302 (annotate_field_end, annotate_frame_source_begin): Ditto.
2303 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2304 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2305 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2306 (annotate_frame_address_end, annotate_frame_address): Ditto.
2307 (annotate_frame_args, annotate_frame_end): Ditto.
2308 (annotate_frame_where, annotate_arg_begin): Ditto.
2309 (annotate_arg_name_end, annotate_arg_value): Ditto.
2310 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2311 (annotate_function_call, annotate_signal_name): Ditto.
2312 (annotate_signal_string, annotate_signal_name_end): Ditto.
2313 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2314 (annotate_value_begin, annotate_value_history_value): Ditto.
2315 (annotate_value_history_end, annotate_value_end): Ditto.
2316 (annotate_display_begin, annotate_display_number_end): Ditto.
2317 (annotate_display_format, annotate_display_expression): Ditto.
2318 (annotate_display_expression_end, annotate_display_value): Ditto.
2319 (annotate_display_end, annotate_array_section_begin): Ditto.
2320 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2321 (annotate_elt, annotate_array_section_end): Ditto.
2323 2003-07-28 Andrew Cagney <cagney@redhat.com>
2325 * regcache.c (struct regcache_descr): Update comments on
2327 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2328 sizeof_raw_register_valid_p.
2329 (init_regcache_descr): Set nr_raw_registers and
2330 sizeof_raw_register_valid_p before calling
2331 init_legacy_regcache_descr.
2333 2003-07-28 Andrew Cagney <cagney@redhat.com>
2335 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2338 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2340 * thread.c (info_threads_command): Use get_selected_frame ().
2341 Check that there is at least one non-sentinel frame.
2343 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2345 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2346 (m68hc11_pop_frame): Remove.
2347 (m68hc11_frame_saved_pc): Remove.
2348 (m68hc11_frame_chain): Remove.
2349 (m68hc11_frame_init_saved_regs): Remove.
2350 (m68hc11_init_extra_frame_info): Remove.
2351 (m68hc11_store_struct_return): Remove.
2352 (m68hc11_saved_pc_after_call): Remove.
2354 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2356 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2357 frame unwind information.
2358 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2359 and adapted for frame unwinding.
2360 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2361 (m68hc11_unwind_pc): New function.
2362 (m68hc11_frame_unwind_cache): New function to analyze frames.
2363 (m68hc11_frame_this_id): New function to create new frame struct.
2364 (m68hc11_frame_prev_register): New function to unwind a register from
2366 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2367 (m68hc11_frame_p): New function for the above.
2368 (m68hc11_frame_base_address): New function to return fp of frame.
2369 (m68hc11_frame_args_address): Update for frame.
2370 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2371 (m68hc11_unwind_sp): New function.
2372 (m68hc11_unwind_dummy_id): New function.
2373 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2376 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2378 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2379 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2380 when we are beyond the current pc.
2382 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2384 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2385 from m68hc11_push_arguments.
2386 (m68hc11_push_arguments): Remove.
2387 (m68hc11_push_return_address): Remove.
2388 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2389 handlers; remove deprecated_extra_stack_alignment_needed.
2391 2003-07-27 Andrew Cagney <cagney@redhat.com>
2393 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2394 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2395 REAL_PC and not the pointer.
2396 * hppa-hpux-tdep.c: Include frame.h
2398 2003-07-27 Andrew Cagney <cagney@redhat.com>
2400 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2401 GDB_MULTI_ACH_PARTIAL.
2403 2003-07-27 Andrew Cagney <cagney@redhat.com>
2405 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2406 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2407 operator at start and not end of line.
2408 (decode_prologue): Ditto.
2409 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2410 frame_unwind_register_unsigned instead of
2411 frame_unwind_unsigned_register.
2412 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2414 (m32r_push_dummy_call): Use register_size instead of
2416 (m32r_frame_sniffer): Replace m32r_frame_p.
2417 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2418 * m32r-rom.c (report_transfer_performance): Delete extern
2420 (m32r_load, m32r_upload_command): Use print_transfer_performance
2421 instead of report_transfer_performance.
2422 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2423 / add_show_from_set.
2425 2003-07-26 Andrew Cagney <cagney@redhat.com>
2427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2428 store_return_value and extract_struct_value_address.
2430 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2433 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2434 NULL, default to the section containing PC.
2436 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2438 * NEWS: Mention "regs" deprecated for m68hc11 too.
2440 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2441 (m68hc11_print_register): New function to print out one register.
2442 (m68hc11_print_registers_info): New function to print registers.
2443 (show_regs): Deprecate and use the above.
2444 (m68hc11_gdbarch_init): Install the print_registers_info.
2446 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2448 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2449 that we have a SIGTRAP before returning non-zero.
2451 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2452 Elena Zannoni <ezannoni@redhat.com>
2454 * linespec.c (decode_line_2): Avoid crash if
2455 find_function_start_sal() returns empty record.
2457 2003-07-23 Andreas Schwab <schwab@suse.de>
2459 * ia64-tdep.c (ia64_print_insn): New function.
2460 (ia64_gdbarch_init): Set print_insn to it.
2461 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2462 deprecated_tm_print_insn_info.
2464 2003-07-22 Michael Snyder <msnyder@redhat.com>
2466 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2467 handle 8-bit returns (long long).
2468 (h8300h_extract_return_value): Ditto.
2469 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2471 2003-07-22 Andrew Cagney <cagney@redhat.com>
2473 * gdbarch.c Include "gdb_obstack.h".
2474 (struct gdbarch): Add an "obstack".
2475 (alloc_gdbarch_data): Allocate the gdbarch data using
2476 GDBARCH_OBSTACK_CALLOC.
2477 (free_gdbarch_data): Delete function.
2478 (gdbarch_obstack_zalloc): New function.
2479 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2480 Assert that the architecture is not initialized.
2481 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2482 vector from the obstack.
2483 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2484 architecture obstack.
2485 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2486 (set_gdbarch_data): Assert that the data is not initialized.
2487 (struct gdbarch_data): Delete member "free".
2488 (register_gdbarch_data): Do not initialize "free".
2489 * gdbarch.h, gdbarch.c: Re-generate.
2491 2003-07-22 Andrew Cagney <cagney@redhat.com>
2493 * configure.in (build_warnings): Add -Wformat-nonliteral.
2494 * configure: Re-generate.
2496 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2498 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2500 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2502 * findvar.c (read_var_value): Remove case for thread local storage
2503 variables. It is now entirely handled by the dwarf2 location
2505 * printcmd.c (address_info): Ditto.
2506 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2508 (struct symbol): Remove objfile field, which was used by
2509 LOC_THREAD_LOCAL_STATIC only.
2510 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2511 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2512 usage of objfile pointer.
2513 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2514 thread local variables.
2515 Add include of objfiles.h.
2516 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2518 * Makefile.in (dwarf2loc.o): Update dependencies.
2520 2003-07-22 Andrew Cagney <cagney@redhat.com>
2522 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2524 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2525 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2526 (struct value): Add opaque declaration.
2527 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2529 2003-07-21 Andrew Cagney <cagney@redhat.com>
2531 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2532 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2534 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2536 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2537 regcache_cooked_read_unsigned instead of read_register.
2538 (m68hc11_saved_pc_after_call): Likewise.
2539 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2540 instead of write_register.
2541 (m68hc11_register_type): New function.
2542 (m68hc11_register_virtual_type): Remove.
2543 (m68hc11_store_return_value): Convert to use the regcache.
2544 (m68hc11_extract_struct_value_address): Likewise.
2545 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2546 m68hc11_register_type; undeprecate store_return_value and
2547 extract_struct_value_address.
2549 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2551 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2552 and translate to use regcache.
2553 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2555 2003-07-18 Andrew Cagney <cagney@redhat.com>
2557 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2558 * gdbarch.h, gdbarch.c: Re-generate.
2559 * i386-tdep.c (i386_gdbarch_init): Do not set
2560 DWARF2_BUILD_FRAME_INFO.
2561 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2563 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2564 DWARF2_BUILD_FRAME_INFO.
2566 2003-07-18 Andrew Cagney <cagney@redhat.com>
2568 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2569 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2571 2003-07-18 Andrew Cagney <cagney@redhat.com>
2573 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2574 frame_unwind_address_in_block, instead of frame_pc_unwind.
2575 (dwarf2_frame_cache): Ditto.
2577 2003-07-18 Andrew Cagney <cagney@redhat.com>
2579 * user-regs.h (struct gdbarch): Declare opaque.
2580 * ui-out.h (struct ui_file): Declare opaque.
2581 * dwarf2-frame.h (struct frame_info): Declare opaque.
2583 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2585 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2587 (procfs_meminfo): Change strerror to safe_strerror.
2588 (procfs_can_run): Remove K&R badness.
2590 2003-07-17 Michael Snyder <msnyder@redhat.com>
2592 * remote-sim.c: Comment typo fix.
2594 2003-07-17 Andrew Cagney <cagney@redhat.com>
2596 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2598 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2599 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2600 GDB_MULTI_ARCH_PARTIAL.
2602 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2604 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2605 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2606 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2608 2003-07-16 Theodore A. Roth <troth@openavr.org>
2610 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2612 (avr_frame_unwind_cache): Don't unwind FP for main.
2614 Save the computed prev_sp.
2615 (avr_saved_regs_unwinder): Remove function.
2616 (avr_frame_prev_register): Use PC unwind logic from
2617 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2619 2003-07-16 Andrew Cagney <cagney@redhat.com>
2621 * frame-base.h (frame_base_p_ftype): Delete definition.
2622 (frame_base_append_predicate): Delete declaration.
2623 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2624 (frame_unwind_append_predicate): Delete declaration.
2625 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2626 (append_predicate): Delete parameter "p".
2627 (frame_unwind_append_predicate): Delete function.
2628 (frame_unwind_append_sniffer): Update call to append_predicate.
2629 (frame_unwind_free): Delete function.
2630 (_initialize_frame_unwind): Pass NULL as "free" to
2631 register_gdbarch_data.
2632 (frame_unwind_init): Append the dummy_frame_sniffer.
2633 (frame_unwind_find_by_frame): Simplify.
2634 * frame-base.c (struct frame_base_table): Delete field "p".
2635 (append_predicate): Delete parameter "p".
2636 (frame_base_append_predicate): Delete function.
2637 (frame_base_append_sniffer): Update call to append_predicate.
2638 (frame_base_free): Delete function.
2639 (frame_base_find_by_frame): Simplify.
2640 (_initialize_frame_base): Pass NULL as "free" to
2641 register_gdbarch_data.
2642 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2643 (x86_64_sigtramp_frame_sniffer): Replace
2644 "x86_64_sigtramp_frame_p".
2645 (x86_64_init_abi): Set the frame unwind sniffers.
2646 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2647 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2648 (m68k_gdbarch_init): Set the frame unwind sniffers.
2649 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2650 "i386_sigtramp_frame_p".
2651 (i386_frame_sniffer): Replace "i386_frame_p".
2652 (i386_gdbarch_init): Set the frame unwind sniffers.
2653 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2654 (avr_gdbarch_init): Set the frame unwind sniffers.
2655 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2656 "alpha_sigtramp_frame_p"
2657 (alpha_heuristic_frame_sniffer): Replace
2658 "alpha_heuristic_frame_p".
2659 (alpha_gdbarch_init): Set the frame unwind sniffers.
2660 (alpha_dwarf2_init_abi): Ditto.
2661 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2662 "alpha_debug_frame_p".
2663 (alpha_mdebug_frame_base_sniffer): Replace
2664 "alpha_mdebug_frame_base_p".
2665 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2666 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2667 (d10v_gdbarch_init): Set the frame unwind sniffer.
2668 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2669 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2670 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2671 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2672 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2673 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2675 2003-07-16 Michael Snyder <msnyder@redhat.com>
2677 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2678 should go thru sh_dsp_register_sim_regno, else the dsp regs
2679 will not get the right values.
2681 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2683 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2684 deprecated_store_floating by call to store_typed_floating.
2685 (sh_sh4_register_convert_to_raw): Substitute call to
2686 deprecated_extract_floating by call to extract_typed_floating.
2688 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2690 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2692 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2694 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2695 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2696 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2698 (do_pseudo_register): Remove.
2699 (sh_push_dummy_code): New function.
2700 (sh64_store_struct_return): Rename from sh_store_struct_return.
2701 Only called for sh64 now.
2702 (sh_extract_struct_value_address): Regcache'ify.
2703 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2704 and accomodate new tasks.
2705 (sh64_push_return_address): Rename from sh_push_return_address.
2706 Only called for sh64 now.
2707 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2709 (sh3e_sh4_extract_return_value): Regcache'ify.
2710 (sh_default_store_return_value): Ditto.
2711 (sh3e_sh4_store_return_value): Ditto.
2712 (sh_default_register_byte): Remove.
2713 (sh_sh4_register_byte): Remove.
2714 (sh_default_register_raw_size): Remove.
2715 (sh_sh4_register_raw_size): Remove.
2716 (sh_register_virtual_size): Remove.
2717 (sh_sh3e_register_virtual_type): Remove.
2718 (sh_sh3e_register_type): New function.
2719 (sh_sh4_register_virtual_type): Remove.
2720 (sh_sh4_register_type): New function.
2721 (sh_default_register_virtual_type): Remove.
2722 (sh_default_register_type): New function.
2723 (do_fv_register_info): Add parameters to accomodate call from
2724 sh_print_registers_info.
2725 (do_dr_register_info): Ditto.
2726 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2727 Add parameters to accomodate call from sh_print_registers_info.
2728 (sh_do_fp_register): Ditto.
2729 (sh64_do_pseudo_register): Call do_dr_register_info,
2730 do_fv_register_info and sh_do_fp_register with default parameters.
2731 (sh_do_register): Add parameters to accomodate call from
2732 sh_print_registers_info.
2733 (sh_print_register): Ditto.
2734 (sh_print_registers_info): Rename from sh_do_registers_info.
2735 Add parameters to be used as gdbarch_print_registers_info
2736 implementation. Accomodate removed do_pseudo_register function
2738 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2739 function pointer. Call sh_print_register with default parameters.
2740 (sh64_do_registers_info): Call sh_print_registers_info instead of
2741 sh_do_registers_info.
2742 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2743 detection of deprecated vs. non-deprecated functionality.
2744 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2745 function pointer assignments by direct function calls.
2747 2003-07-15 Andrew Cagney <cagney@redhat.com>
2749 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2750 (frame_register_unwind, create_new_frame): Ditto.
2751 (legacy_get_prev_frame, get_frame_type): Ditto.
2752 (get_frame_base_address): Use frame_base_find_by_frame.
2753 (get_frame_locals_address): Use frame_base_find_by_frame.
2754 (get_frame_args_address): Use frame_base_find_by_frame.
2755 * frame-base.h (frame_base_sniffer_ftype): Declare.
2756 (frame_base_append_sniffer): Declare.
2757 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2758 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2759 (frame_base_append_sniffer): New function.
2760 (frame_base_append_predicate): Add a NULL sniffer.
2761 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2762 (struct frame_base_table): Add "sniffer".
2763 (frame_base_free): Free the "sniffer" table.
2764 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2765 (frame_unwind_append_sniffer): Declare.
2766 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2767 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2768 (struct frame_unwind_table): Add "sniffer", delete "middle".
2769 (append_predicate): Add "sniffer" parameter, append the sniffer.
2770 (frame_unwind_init): Update append_predicate call.
2771 (frame_unwind_append_sniffer): New function.
2772 (frame_unwind_append_predicate): Update append_predicate call.
2773 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2775 2003-07-15 Andrew Cagney <cagney@redhat.com>
2777 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2778 before code inhibiting repeated unwind attempts. Add to
2779 commentary on that test's problems.
2780 * blockframe.c (inside_main_func): Look for "main" in the minimal
2782 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2785 2003-07-15 Andrew Cagney <cagney@redhat.com>
2787 * complaints.c (struct explanation): Define.
2788 (struct complaints): Change type of "explanation" to "struct
2790 (symfile_explanations): Convert to a "struct explanation" table.
2791 (vcomplaint): Update.
2793 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2795 * x86-64-linux-nat.c (regmap): Removed.
2796 (supply_gregset, fill_gregset): Call
2797 x86_64_linux_(fill,supply)_gregset functions.
2798 * x86-64-linux-tdep.c (USER_*): New defines.
2799 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2800 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2802 (fetch_core_registers): Ditto.
2803 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2804 * x86-64-linux-tdep.h: New file.
2805 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2807 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2809 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2811 * x86-64-tdep.c (x86_64_store_return_value): Use
2812 regcache_cooked_write_part instead of regcache_cooked_write.
2814 * configure.host: Add x86_64-*-freebsd*.
2815 * configure.tgt: Add x86_64-*-freebsd*.
2816 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2817 * amd64fbsd-nat.c: New file.
2818 * amd64fbsd-tdep.c: New file.
2819 * config/i386/nm-fbsd64.h: New file.
2820 * config/i386/fbsd64.mh: New file.
2821 * config/i386/fbsd64.mt: New file.
2823 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2825 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2826 `sc_regs_offset' and `sc_fpregs_offset'.
2827 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2828 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2829 (alpha_sigtramp_register_address): Rewrite to use new members of
2830 `struct gdbarch_tdep'.
2831 (alpha_gdbarch_init): Initialize new members of struct
2833 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2834 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2835 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2836 (alphafbsd_pc_in_sigtramp): Implement.
2837 (alphafbsd_sigtramp_offset): New function.
2838 (alphafbsd_sigcontext_addr): New function.
2839 (alphafbsd_init_abi): Initialize signal trampoline related members
2840 of `struct gdbarch_tdep'.
2841 (_initialize_alphafbsd_tdep): Add prototype.
2843 2003-07-11 Theodore A. Roth <troth@openavr.org>
2845 * Makefile.in (install-only): Quote sed expression when generating
2848 2003-07-11 Richard Henderson <rth@redhat.com>
2850 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2851 * dwarf2-frame.c: Include complaints.h.
2852 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2853 variable initialization; return NULL on error.
2854 (decode_frame_entry): New.
2856 2003-07-11 Andrew Cagney <cagney@redhat.com>
2858 * frame.h (frame_address_in_block): Delete declaration.
2859 * blockframe.c (frame_address_in_block): Delete function.
2860 (get_frame_block): Use get_frame_address_in_block.
2861 (block_innermost_frame): Ditto.
2862 * stack.c (print_frame, backtrace_command_1): Ditto.
2864 * frame.h (get_frame_address_in_block): Declare.
2865 (frame_unwind_address_in_block): Declare.
2866 * frame.c (frame_unwind_address_in_block): New function.
2867 (get_frame_address_in_block): New function.
2869 2003-07-10 Andrew Cagney <cagney@redhat.com>
2871 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2872 pre-default. Note: re-generate has no effect.
2874 2003-07-10 Andrew Cagney <cagney@redhat.com>
2876 * gdbarch.sh: When a variable, but not a function, compare against
2877 0. Fix problem in previous patch.
2878 * gdbarch.c: Re-generate.
2880 2003-07-10 Andrew Cagney <cagney@redhat.com>
2882 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2883 functions against NULL, not 0.
2884 * gdbarch.c: Re-generate.
2886 2003-07-10 Fred Fish <fnf@ninemoons.com>
2888 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2889 null string instead of a null pointer.
2890 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2892 2003-07-09 Michael Snyder <msnyder@redhat.com>
2894 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2896 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2898 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2899 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2900 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2901 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2902 * x86-64-tdep.c: ... from here.
2904 2003-07-09 Andreas Schwab <schwab@suse.de>
2906 * m68k-tdep.h (enum struct_return): Define.
2907 (struct gdbarch_tdep): Add struct_return.
2908 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2909 bytes are padded to the right, not to the left. Pass struct value
2910 address in register %a1, not on stack.
2911 (m68k_use_struct_convention): New function.
2912 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2913 struct_return in tdep to pcc_struct_return.
2914 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2917 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2919 * somread.c (som_symfile_offsets): Fix compilation error.
2921 2003-07-09 Andrew Cagney <cagney@redhat.com>
2923 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2924 Add comments about the checks.
2926 2003-07-08 Andrew Cagney <cagney@redhat.com>
2928 * Makefile.in: Make dependency section headers consistent.
2929 (config_h): Move to $BUILD headers section.
2930 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2931 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2932 (ada-exp.tab.c): Move to YACC/LEX section.
2933 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2934 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2936 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2938 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2939 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2940 of strerror with safe_strerror, use ISO C function definitions,
2941 and replace instances of sprintf with snprintf.
2943 2003-07-07 Andrew Cagney <cagney@redhat.com>
2945 * frame.c (get_prev_frame): Enable check for identical frames.
2946 Update comments. Update error messages.
2948 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2950 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2952 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2954 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2955 sort_symtab_syms, no longer necessary.
2957 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2959 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2961 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2963 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2964 (mips_register_byte): Likewise.
2966 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2968 * Makefile.in (sparc_tdep_h): New.
2969 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2970 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2971 * sparc-linux-nat.c: Include "sparc-tdep.h".
2972 * sparc-nat.c: Likewise.
2973 * sparc-tdep.c: Likewise.
2974 * sparc64nbsd-nat.c: Likewise.
2975 * sparcnbsd-nat.c: Likewise.
2976 * sparcnbsd-tdep.c: Likewise.
2977 * sparc-tdep.h: New file.
2978 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2979 and sparc_npc_regnum.
2981 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2983 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2984 (mips_linux_cannot_store_register): List supported instead of
2985 unsupported registers.
2987 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2989 * disasm.c (dump_insns): Separate instructions from addresses.
2991 2003-07-07 Andreas Schwab <schwab@suse.de>
2993 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2995 * m68k-tdep.c (NUM_FREGS): Delete.
2996 (SIG_PC_FP_OFFSET): Delete.
2997 (TARGET_M68K): Delete.
2998 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2999 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3000 P_MOVEL_SP, P_MOVEML_SP): Define.
3001 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3003 (m68k_register_raw_size): Delete.
3004 (m68k_register_virtual_size): Delete.
3005 (m68k_register_type): Renamed from m68k_register_virtual_type and
3006 add gdbarch argument.
3007 (m68k_store_struct_return): Delete.
3008 (m68k_deprecated_extract_return_value): Delete.
3009 (m68k_deprecated_extract_struct_value_address): Delete.
3010 (m68k_frame_chain): Delete.
3011 (m68k_frame_saved_pc): Delete.
3012 (m68k_fix_call_dummy): Delete.
3013 (m68k_push_dummy_frame): Delete.
3014 (m68k_pop_frame): Delete.
3015 (m68k_extract_return_value): New function.
3016 (m68k_store_return_value): Rewrite using regcache.
3017 (m68k_extract_struct_value_address): Rewrite using regcache.
3018 (m68k_push_dummy_call): New function.
3019 (struct m68k_frame_cache): Define.
3020 (m68k_alloc_frame_cache): New function.
3021 (m68k_analyze_frame_setup): New function.
3022 (m68k_analyze_register_saves): New function.
3023 (m68k_analyze_prologue): New function.
3024 (m68k_skip_prologue): Rewrite using above functions.
3025 (m68k_unwind_pc): New function.
3026 (m68k_frame_cache): New function.
3027 (m68k_frame_this_id): New function.
3028 (m68k_frame_prev_register): New function.
3029 (m68k_frame_unwind): New variable.
3030 (m68k_frame_p): New function.
3031 (m68k_sigtramp_frame_cache): New function.
3032 (m68k_sigtramp_frame_this_id): New function.
3033 (m68k_sigtramp_frame_prev_register): New function.
3034 (m68k_sigtramp_frame_unwind): New variable.
3035 (m68k_sigtramp_frame_p): New function.
3036 (m68k_frame_base_address): New function.
3037 (m68k_frame_base): New function.
3038 (m68k_unwind_dummy_id): New function.
3039 (fill_gregset): Use regcache_collect.
3040 (fill_fpregset): Likewise.
3041 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3043 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3044 deprecated_init_frame_pc, deprecated_store_struct_return,
3045 deprecated_extract_return_value, deprecated_store_return_value,
3046 deprecated_frame_chain, deprecated_frame_saved_pc,
3047 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3048 deprecated_register_virtual_size,
3049 deprecated_max_register_raw_size,
3050 deprecated_max_register_virtual_size,
3051 deprecated_register_virtual_type, deprecated_register_size,
3052 deprecated_register_byte, deprecated_register_bytes,
3053 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3054 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3055 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3056 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3057 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3058 deprecated_push_dummy_frame, deprecated_pop_frame,
3059 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3060 only if SYSCALL_TRAP is defined. Set extract_return_value,
3061 store_return_value, extract_struct_value_address, register_type,
3062 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3064 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3065 M68K_MAX_REGISTER_SIZE): Define.
3066 (struct m68k_sigtramp_info): Define.
3067 (struct gdbarch_tdep): Add get_sigtramp_info.
3068 * m68klinux-nat.c (fetch_register): Use register_size instead of
3069 REGISTER_RAW_SIZE. Don't put assignment in if.
3070 (store_register): Likewise.
3071 (fetch_inferior_registers): Likewise.
3072 (store_inferior_registers): Likewise.
3073 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3074 (m68k_linux_frame_saved_pc): Delete.
3075 (m68k_linux_sigcontext_reg_offset,
3076 m68k_linux_ucontext_reg_offset): Define.
3077 (m68k_linux_get_sigtramp_info): New function.
3078 (m68k_linux_extract_return_value): Rewrite using regcache.
3079 (m68k_linux_store_return_value): Likewise.
3080 (m68k_linux_extract_struct_value_address): Likewise.
3081 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3082 Don't set deprecated_frame_saved_pc,
3083 deprecated_extract_return_value, deprecated_store_return_value,
3084 deprecated_extract_struct_value_address. Set
3085 extract_return_value, store_return_value,
3086 extract_struct_value_address.
3088 2003-07-07 Andrew Cagney <cagney@redhat.com>
3090 * expprint.c: Include "user-regs.h" instead of "frame.h".
3091 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3092 frame_map_regnum_to_name.
3093 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3094 (frame_map_name_to_regnum): Simplify, call
3095 user_reg_map_name_to_regnum.
3096 (frame_map_regnum_to_name): Simplify, call
3097 user_reg_map_regnum_to_name.
3098 (frame_register_unwind): Update.
3099 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3100 (_initialize_frame_reg): Call user_reg_add_builtin.
3101 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3102 (value_of_register): Use value_of_user_reg.
3103 * eval.c (evaluate_subexp_standard): Update.
3104 * parse.c (write_dollar_variable): Update.
3105 * d10v-tdep.c (d10v_print_registers_info): Update.
3106 * infcmd.c (registers_info): Update.
3107 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3108 (builtin_regs_h): Delete macro.
3109 (user_regs_h): Define.
3110 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3111 (builtin-regs.o): Delete target.
3112 (user-regs.o): Specify dependencies.
3113 (expprint.o): Update dependencies.
3114 (findvar.o): Update dependencies.
3115 (frame.o): Update dependencies.
3116 (std-regs.o): Update dependencies.
3118 2003-07-06 Christopher Faylor <cgf@redhat.com>
3120 * win32-nat.c (solib_symbols_add): Use one variable for all section
3121 address stuff. Pass variable rather than address of variable to
3122 safe_symbol_file_add.
3124 2003-07-06 Andreas Schwab <schwab@suse.de>
3126 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3128 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3130 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3132 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3134 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3136 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3138 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3139 * config/i386/nto.mh: New file.
3140 * config/i386/nm-nto.h: New file.
3141 * configure.host: Add i[3456]86-*-nto*.
3143 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3145 * remote-vx.c (vx_add_symbols): Fix compilation error.
3147 2003-07-03 Andrew Cagney <cagney@redhat.com>
3149 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3150 * gdbarch.h, gdbarch.c: Re-generate.
3151 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3152 (legacy_register_name): Declare.
3153 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3154 (REGISTER_NAME): Define.
3155 * sparc-tdep.c (legacy_register_name): New function.
3156 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3157 (REGISTER_NAME): Define.
3158 (hppa64_register_name): Declare.
3159 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3160 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3161 (hppa64_register_name): New function.
3162 (hppa_register_name): New function.
3163 * arch-utils.c (legacy_register_name): Delete.
3164 * arch-utils.h (legacy_register_name): Delete.
3166 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3168 * cli/cli-interp.c (cli_interpreter_resume): Update the
3169 cli_uiout's stream to gdb_stdout.
3171 2003-07-03 Andrew Cagney <cagney@redhat.com>
3173 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3175 * gdbarch.h, gdbarch.c: Re-generate.
3176 * regcache.c (init_regcache_descr): Use legacy code when either
3177 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3179 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3181 * NEWS: Move "set logging" entry into GDB 6.0 section.
3183 2003-07-02 Jim Blandy <jimb@redhat.com>
3185 * s390-tdep.c (struct frame_extra_info): new member:
3186 'stack_bought_valid'.
3187 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3188 initialize fextra_info->stack_bought.
3189 (s390_frameless_function_invocation): Don't trust the value of
3190 fextra_info_ptr->stack_bought unless
3191 fextra_info->stack_bought_valid is set.
3193 New S390 prologue analyzer.
3194 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3195 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3196 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3197 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3198 compute_x_addr, s390_on_stack, s390_store,
3199 s390_get_signal_frame_info): New functions.
3200 (S390_NUM_SPILL_SLOTS): New macro.
3201 (s390_get_frame_info): Rewritten.
3202 (is_arg_reg): Deleted.
3204 Break out the decoding of S/390 instructions into separate
3205 functions, to make it more legible, and easier to check
3207 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3208 is_rx, is_rxe): New functions.
3209 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3210 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3211 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3212 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3213 enums for opcode values. (Is this an improvement?)
3215 2003-07-02 Andrew Cagney <cagney@redhat.com>
3217 * i386-tdep.c: Revert change committed as part of trad-frame code
3220 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3222 * breakpoint.c (insert_catchpoint): Make static.
3224 2003-07-02 Andreas Schwab <schwab@suse.de>
3226 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3227 former ia64_push_arguments and ia64_push_return_address, and use
3228 regcache functions instead of read/write_register.
3229 (ia64_gdbarch_init): Set push_dummy_call instead of
3230 deprecated_push_arguments and deprecated_push_return_address.
3232 2003-07-01 Andreas Jaeger <aj@suse.de>
3234 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3236 Set %rax only to number of SSE registers used.
3238 2003-07-01 Andrew Cagney <cagney@redhat.com>
3240 * trad-frame.h: Update comments, a -1 .addr is reserved.
3241 (trad_frame_value_p, trad_frame_addr_p): Declare.
3242 (trad_frame_reg_p): Declare.
3243 (trad_frame_set_value): Rename trad_frame_register_value.
3244 (trad_frame_set_unknown): Declare.
3245 * trad-frame.c (trad_frame_realreg_p): New function.
3246 (trad_frame_addr_p, trad_frame_value_p): New function.
3247 (trad_frame_set_unknown): New function.
3248 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3249 (trad_frame_prev_register): Use trad_frame_realreg_p,
3250 trad_frame_addr_p and trad_frame_value_p.
3251 (trad_frame_set_value): Rename trad_frame_register_value.
3252 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3253 and trad_frame_set_value.
3255 2003-06-30 Jim Blandy <jimb@redhat.com>
3257 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3258 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3259 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3260 for 16 registers, and then 32 more bytes.
3261 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3263 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3264 Move up in the file, since it's now used by is_simple_arg.
3265 (is_simple_arg): Don't assume registers are four bytes long.
3266 Exclude all double arguments. Extended floats are not simple
3268 (is_power_of_two): New function.
3269 (pass_by_copy_ref): Call is_power_of_two, and check that the
3270 length fits in a register, rather than listing all the acceptable
3271 sizes. Extended floats are not passed by reference.
3272 (s390_push_arguments): Don't assume registers are four bytes long.
3273 Reserve an argument register to point to the buffer for structures
3274 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3275 S390_STACK_FRAME_OVERHEAD.
3277 2003-06-30 Andreas Schwab <schwab@suse.de>
3279 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3280 format error message.
3282 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3284 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3286 2003-06-30 David Carlton <carlton@kealia.com>
3288 Band-aid for PR c++/1245.
3289 * Makefile.in (cp-support.o): Depend on complaints_h.
3290 * cp-support.c: Include complaints.h. Add declaration for
3291 find_last_component.
3292 (cp_find_first_component): Separate code into
3293 cp_find_first_component_aux.
3294 (cp_find_first_component_aux): Call demangled_name_complaint.
3295 (demangled_name_complaint): New.
3297 2003-06-30 Andrew Cagney <cagney@redhat.com>
3299 * remote.c (remote_write_bytes): Explicitly compute and then use
3300 the payload size. Update comments to reflect. Fixes problem of
3301 GDB not sending small packets as found by Fred Fish.
3303 2003-06-30 Andrew Cagney <cagney@redhat.com>
3305 * remote.c (remote_async_wait): Fix -Wformat problem.
3307 2003-06-29 Andrew Cagney <cagney@redhat.com>
3309 * remote.c (remote_wait): Call error, and not warning, when the
3311 (remote_async_wait): Ditto.
3313 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3315 * sparc-tdep.c (sparc_y_regnum): Make external again.
3317 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3319 * cli/cli-logging.c (pop_output_files): Add void to function
3322 2003-06-29 Andrew Cagney <cagney@redhat.com>
3324 * frame.c (frame_register_unwind): Use unsigned char when dumping
3325 the buffer contents.
3327 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3329 * cli/cli-logging.c: New file.
3330 * cli-out.c (struct ui_out_data): Add original_stream.
3331 (cli_redirect): New function.
3332 (cli_ui_out_impl): Add cli_redirect.
3333 (cli_out_new): Initialize original_stream.
3334 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3335 (uo_redirect, ui_out_redirect): New.
3336 * ui-out.h (struct ui_out_impl): Add redirect member.
3337 (redirect_ftype): New.
3338 (ui_out_redirect): Add prototype.
3339 * Makefile.in: Add rules for cli-logging.c.
3340 * NEWS: Mention "set logging".
3342 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3344 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3346 2003-06-27 Andrew Cagney <cagney@redhat.com>
3348 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3349 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3350 * avr-tdep.c (avr_call_dummy_address): Delete function.
3351 (avr_gdbarch_init): Do not set call_dummy_address.
3353 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3355 * symfile.c (syms_from_objfile): Move variables to inner block.
3356 Move the checks for the non-mainline case a bit earlier to avoid
3357 doing some useless computations.
3359 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3361 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3363 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3365 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3368 2003-06-26 Michael Chastain <mec@shout.net>
3370 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3371 gdb/testsuite/gdb.c++/pr-1210.exp.
3373 2003-06-26 Andrew Cagney <cagney@redhat.com>
3375 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3376 altivec_expression.h and altivec_registers.h.
3378 2003-06-26 Andrew Cagney <cagney@redhat.com>
3380 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3381 info->mach when MIPS16. Patch suggested by Fred Fish.
3383 2003-06-26 Andrew Cagney <cagney@redhat.com>
3385 * utils.c (internal_vproblem): Print the problem to a reason
3386 buffer and then pass to query. Make the msg variable more local.
3388 2003-06-26 Andrew Cagney <cagney@redhat.com>
3390 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3391 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3392 * gdbarch.h, gdbarch.c: Re-generate.
3393 * frame-base.c (default_frame_args_address): Update. Use
3394 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3396 (default_frame_locals_address): Ditto for
3397 DEPRECATED_FRAME_LOCALS_ADDRESS.
3398 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3399 (vax_frame_num_args): Update.
3400 (vax_gdbarch_init): Update.
3401 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3402 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3403 * mcore-tdep.c (mcore_gdbarch_init): Update.
3404 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3405 * ia64-tdep.c (ia64_gdbarch_init): Update.
3406 * symtab.h (address_class): Update comments.
3407 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3408 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3409 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3410 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3411 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3412 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3413 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3414 * alpha-mdebug-tdep.c: Update.
3415 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3417 2003-06-26 Andreas Jaeger <aj@suse.de>
3419 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3420 of SSE registers so that varargs functions work. Rework handling
3421 of passing arguments on the stack.
3422 (x86_64_store_return_value): Return double and float values in SSE
3425 2003-06-24 Michael Chastain <mec@shout.net>
3427 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3428 the "constructor breakpoints ignored" bug.
3430 2003-06-25 David Carlton <carlton@kealia.com>
3432 * MAINTAINERS: Update e-mail address.
3434 2003-06-24 Jim Blandy <jimb@redhat.com>
3436 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3438 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3440 (ppc_linux_init_abi): Register it as the
3441 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3443 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3444 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3447 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3448 (ppc64_standard_linkage_target): Use it.
3450 2003-06-23 Andrew Cagney <cagney@redhat.com>
3452 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3453 for 0 "int0" and 4 "int32" sized registers.
3454 * gdbtypes.c (builtin_type_int0): Define.
3455 (build_gdbtypes): Initialize builtin_type_int0.
3456 * gdbtypes.h (builtin_type_int0): Declare.
3458 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3461 as characters are unsigned.
3463 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3466 * dwarfread.c (struct_type): Skip static fields without crashing.
3468 2003-06-22 Andrew Cagney <cagney@redhat.com>
3470 GDB 6.0 branch created.
3472 * PROBLEMS: Update. Empty.
3475 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3477 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3478 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3480 2003-06-22 Andrew Cagney <cagney@redhat.com>
3482 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3483 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3486 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3488 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3491 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3493 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3494 argument of val_print.
3495 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3496 to the address argument of baseclass_offset or target_read_memory.
3497 Do add it to the argument of cp_print_value_fields.
3499 2003-06-21 Andrew Cagney <cagney@redhat.com>
3501 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3502 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3503 instead of 0..NUM_REGS.
3504 (mips_register_reggroup_p): New function.
3505 (mips_pseudo_register_write): New function.
3506 (mips_pseudo_register_read): New function.
3507 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3508 based on the register's type.
3509 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3511 (mips_get_saved_register): Simplify. Assert that REGNO is a
3513 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3514 (mips_register_type): Replace mips_register_virtual_type. Map
3515 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3517 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3518 that the register is cooked / virtual.
3519 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3520 Only get the extra info when needed.
3521 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3522 (mips32_heuristic_proc_desc): Fetch the cooked register.
3523 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3524 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3525 (mips_print_register): Use gdbarch_register_type, instead of
3526 REGISTER_VIRTUAL_TYPE.
3527 (print_gp_register_row): Use gdbarch_register_type, instead of
3528 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3529 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3530 Print the pseudo / cooked registers.
3531 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3532 Print the pseudo / cooked registers.
3533 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3534 REG_NUM is pseudo / cooked.
3535 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3536 (mips_n32n64_xfer_return_value): Ditto.
3537 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3538 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3539 (mips_register_sim_regno): New function.
3540 (mips_gdbarch_init): Set deprecated_register_byte,
3541 register_group_p, pseudo_register_write, pseudo_register_read,
3542 register_sim_regno, and num_pseudo_regs. Set register_type,
3543 instead of register_virtual_type.
3544 * Makefile.in (mips-tdep.o): Update dependencies.
3545 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3546 REGISTER_VIRTUAL_TYPE.
3547 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3548 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3549 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3550 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3551 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3553 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3555 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3556 * cli/cli-cmds.c: Include "gdb_vfork.h".
3557 (shell_escape): Use vfork.
3559 2003-06-21 Andrew Cagney <cagney@redhat.com>
3561 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3562 32 bit floating-point register saves.
3564 * frame.h (deprecated_unwind_get_saved_register): Delete.
3565 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3566 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3567 and deprecated_get_next_frame_hack instead of
3568 deprecated_unwind_get_saved_register.
3570 * mips-tdep.c (mips_dump_tdep): Do not print
3571 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3573 * frame.c (get_frame_register): New function.
3574 (frame_unwind_register_signed): New function.
3575 (get_frame_register_signed): New function.
3576 (frame_unwind_register_unsigned): New function.
3577 (get_frame_register_unsigned): New function.
3578 * frame.h: Add comments on naming schema.
3579 (get_frame_register, frame_unwind_register_signed): Declare.
3580 (get_frame_register_signed, get_frame_register_signed): Declare.
3581 (frame_unwind_register_unsigned): Declare.
3582 (get_frame_register_unsigned): Declare.
3584 2003-06-20 Theodore A. Roth <troth@openavr.org>
3586 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3588 2003-06-20 Theodore A. Roth <troth@openavr.org>
3590 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3591 (avr_read_sp): Ditto.
3593 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3595 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3596 * config/arm/nm-linux.h: Likewise.
3597 * config/arm/tm-linux.h: Likewise.
3598 * config/ia64/nm-linux.h: Likewise.
3599 * config/ia64/tm-ia64.h: Likewise.
3600 * config/s390/tm-linux.h: Likewise.
3601 * config/s390/tm-s390.h: Likewise.
3602 * s390-nat.c: Likewise.
3603 * s390-tdep.c: Likewise.
3605 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3606 * config/ia64/linux.mt: Likewise.
3607 * config/m68k/linux.mh: Likewise.
3608 * config/mips/linux.mt: Likewise.
3609 * config/powerpc/linux.mh: Likewise.
3610 * config/sh/linux.mt: Likewise.
3612 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3614 * solib.c (solib_open): Change tests for whether to search
3615 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3618 2003-06-19 Theodore A. Roth <troth@openavr.org>
3620 * avr-tdep.c (avr_frame_address): Delete function.
3621 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3622 set_gdbarch_frame_args_address.
3624 2003-06-19 Andrew Cagney <cagney@redhat.com>
3626 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3627 (REGISTER_CONVERT_FROM_TYPE): Delete.
3628 (mips_register_convert_to_type): Delete declaration.
3629 (mips_register_convert_from_type): Delete declaration.
3630 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3633 2003-06-19 Michael Snyder <msnyder@redhat.com>
3635 * linux-nat.h: New file.
3636 * linux-nat.c: Include linux-nat.h.
3637 * lin-lwp.c: Include linux-nat.h.
3638 Move struct lwp_info def to linux-nat.h.
3639 * linux-proc.c: Include linux-nat.h.
3640 (linux_make_note_section): Iterate over lwps instead of threads.
3641 (linux_do_thread_registers): Use lwp instead of merged pid.
3642 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3643 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3644 Add dependency on linux_nat_h.
3646 2003-06-19 Theodore A. Roth <troth@openavr.org>
3648 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3650 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3652 * varobj.c (get_type, get_target_type): Use check_typedef.
3654 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3656 * breakpoint.c (insert_catchpoint): Call internal_error.
3658 2003-06-19 Theodore A. Roth <troth@openavr.org>
3660 * avr-tdep.c (avr_push_dummy_code): Delete function.
3661 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3663 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3665 * arch-utils.c (default_prepare_to_proceed): Remove.
3666 (generic_prepare_to_proceed): Remove.
3667 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3668 (generic_prepare_to_proceed): Remove prototype.
3669 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3670 * gdbarch.c: Regenerate.
3671 * gdbarch.h: Regenerate.
3672 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3673 * hppah-nat.c (hppa_switched_threads): Remove.
3674 * infrun.c (prepare_to_proceed): New static function, copied from
3675 generic_prepare_to_proceed. Remove select_it argument.
3676 (proceed): Call prepare_to_proceed.
3677 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3679 (ptrace_wait): Don't set the removed variables.
3680 (hppa_switched_threads): Remove.
3681 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3682 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3683 (lin_lwp_prepare_to_proceed): Remove prototype.
3684 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3685 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3687 2003-06-18 Theodore A. Roth <troth@openavr.org>
3689 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3691 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3692 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3693 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3694 (AVR_PROLOGUE_*): Enumerate prologue types.
3695 (struct frame_extra_info): Remove.
3696 (struct avr_unwind_cache): Define.
3697 (avr_write_sp): Delete function.
3698 (avr_read_fp): Ditto.
3699 (avr_init_extra_frame_info): Ditto.
3700 (avr_pop_frame): Ditto.
3701 (avr_frame_saved_pc): Ditto.
3702 (avr_saved_pc_after_call): Ditto.
3703 (avr_push_return_address): Ditto.
3704 (avr_frame_chain): Ditto.
3705 (avr_store_struct_return): Ditto.
3706 (avr_push_arguments): Ditto.
3707 (avr_scan_prologue): Update comments. Changed to set up the info for
3708 cache unwinding. Now returns end of prologue PC.
3709 (avr_skip_prologue): Better handling of functions lacking a prologue
3710 by using avr_scan_prologue.
3711 (avr_scan_arg_moves): New function.
3712 (avr_saved_regs_unwinder): Ditto.
3713 (avr_frame_unwind_cache): Ditto.
3714 (avr_unwind_pc): Ditto.
3715 (avr_frame_this_id): Ditto.
3716 (avr_frame_prev_register): Ditto.
3717 (avr_frame_p): Ditto.
3718 (avr_frame_base_address ): Ditto.
3719 (avr_unwind_dummy_id): Ditto.
3720 (avr_push_dummy_code): Ditto.
3721 (push_stack_item): Ditto.
3722 (pop_stack_item): Ditto.
3723 (avr_push_dummy_call): Ditto.
3724 (struct stack_item): Define.
3725 (avr_frame_unwind): Declare structure.
3726 (avr_frame_base): Ditto.
3727 (avr_gdbarch_init): Remove calls to
3728 set_gdbarch_deprecated_init_frame_pc,
3729 set_gdbarch_deprecated_target_read_fp,
3730 set_gdbarch_deprecated_dummy_write_sp,
3731 set_gdbarch_deprecated_fp_regnum,
3732 set_gdbarch_deprecated_push_arguments,
3733 set_gdbarch_deprecated_push_return_address,
3734 set_gdbarch_deprecated_pop_frame,
3735 set_gdbarch_deprecated_store_struct_return,
3736 set_gdbarch_deprecated_frame_init_saved_regs,
3737 set_gdbarch_deprecated_init_extra_frame_info,
3738 set_gdbarch_deprecated_frame_chain,
3739 set_gdbarch_deprecated_frame_saved_pc,
3740 set_gdbarch_deprecated_saved_pc_after_call.
3741 Add calls to set_gdbarch_push_dummy_call,
3742 set_gdbarch_push_dummy_code,
3743 frame_unwind_append_predicate,
3744 frame_base_set_default,
3745 set_gdbarch_unwind_dummy_id,
3746 set_gdbarch_unwind_pc.
3749 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3751 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3752 registers for H8/300S.
3753 (h8300_print_registers_info): Ditto.
3754 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3756 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3758 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3759 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3760 (lin_lwp_wait): Likewise. Update comments.
3761 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3762 (pull_pid_from_list, linux_record_stopped_pid): New.
3764 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3766 * ada-lang.c (scan_discrim_bound): Name first argument.
3767 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3768 declared by ALL_BLOCK_SYMBOLS.
3770 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3772 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3773 ("regcache.h"): Include it.
3774 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3776 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3778 * NEWS: Mention gdbserver detach change and "disconnect" command.
3779 * infcmd.c (disconnect_command): New function.
3780 (_initialize_infcmd): Add ``disconnect'' command.
3781 * remote.c (remote_async_detach): Delete.
3782 (remote_detach): Merge remote_async_detach.
3783 (remote_disconnect): New.
3784 (init_remote_ops): Set to_disconnect.
3785 (init_remote_cisco_ops): Likewise.
3786 (init_remote_async_ops): Likewise. Use remote_detach.
3787 * target.c (cleanup_target): Default to_disconnect.
3788 (update_current_target): Inherit to_disconnect.
3789 (target_disconnect, debug_to_disconnect): New functions.
3790 (setup_target_debug): Set to_disconnect.
3791 * target.h (struct target_ops): Add to_disconnect.
3792 (target_disconnect): Add prototype.
3794 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3796 * breakpoint.c (insert_catchpoint): New function.
3797 (insert_breakpoints): Use catch_exceptions to call
3798 insert_catchpoint. Disable catchpoints if they fail to insert.
3800 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3802 * symfile.c (reread_symbols): Clear sym_private.
3804 2003-06-17 Andrew Cagney <cagney@redhat.com>
3806 * trad-frame.h (struct frame_info): Add opaque declaration.
3807 * remote-fileio.h (struct cmd_list_element): Add opaque
3809 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3812 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3814 * remote.c (remote_prepare_to_store): Replace call to
3815 deprecated_read_register_bytes with multiple regcache_raw_read
3818 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3820 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3821 (nto_find_and_open_solib): Likewise.
3822 (nto_init_solib_absolute_prefix): Likewise.
3823 (_initialize_nto_tdep): Fix indentation.
3825 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3827 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3829 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3831 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3833 2003-06-17 Jim Blandy <jimb@redhat.com>
3835 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3837 2003-06-16 Theodore A. Roth <troth@openavr.org>
3839 * avr-tdep.c (avr_extract_return_value): New function.
3840 (avr_gdbarch_init): Set extract_return_value method.
3842 2003-06-16 Andrew Cagney <cagney@redhat.com>
3844 * frame.h (deprecated_get_next_frame_hack): Declare.
3845 * frame.c (legacy_saved_regs_prev_register): Only require
3846 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3847 there are always saved regs.
3848 (deprecated_generic_get_saved_register): Do not require
3849 DEPRECATED_FRAME_INIT_SAVED_REGS.
3850 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3851 use frame ID unwind instead.
3852 (deprecated_get_next_frame_hack): New function.
3854 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3856 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3857 (h8300_push_dummy_call): ...this function. Some minor optimization.
3858 (h8300_push_return_address): Remove.
3859 (h8300_gdbarch_init): Remove calls to
3860 set_gdbarch_deprecated_dummy_write_sp,
3861 set_gdbarch_deprecated_push_arguments and
3862 set_gdbarch_deprecated_push_return_address.
3863 Add call to set_gdbarch_push_dummy_call.
3865 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3867 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3868 (E_PSEUDO_EXR_REGNUM): Ditto.
3869 (h8300_is_argument_spill): Check for instructions moving argument
3870 registers into safe registers.
3871 (h8300_skip_prologue): Check for stm instruction to push registers
3872 used for register variables onto stack.
3873 (gdb_print_insn_h8300): Remove.
3874 (h8300_examine_prologue): Add a comment.
3875 (h8300_register_name): Take pseudo registers into account.
3876 (h8300s_register_name): Ditto.
3877 (h8300sx_register_name): Ditto.
3878 (h8300_print_register): Ditto.
3879 (h8300_print_registers_info): Define "nice" printing order.
3880 (h8300_saved_pc_after_call): Take pseudo registers into account.
3881 (h8300_register_type): Ditto. Return type used for remote connection
3882 when requesting real CCR or EXR register, return actual type when
3883 requesting pseudo CCR or EXR.
3884 (h8300_pseudo_register_read): New function.
3885 (h8300_pseudo_register_write): Ditto.
3886 (h8300_dbg_reg_to_regnum): Ditto.
3887 (h8300s_dbg_reg_to_regnum): Ditto.
3888 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3889 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3890 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3891 set_gdbarch_print_insn architecture dependent.
3892 Call set_gdbarch_pseudo_register_read and
3893 set_gdbarch_pseudo_register_write.
3894 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3896 2003-06-16 Andrew Cagney <cagney@redhat.com>
3898 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3899 * gdbarch.h, gdbarch.c: Re-generate.
3900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3901 * s390-tdep.c (s390_gdbarch_init): Update.
3902 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3903 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3904 * mips-tdep.c (mips_gdbarch_init): Update.
3905 * mcore-tdep.c (mcore_gdbarch_init): Update.
3906 * cris-tdep.c (cris_gdbarch_init): Update.
3907 * infcall.c (call_function_by_hand): Update.
3908 * ia64-tdep.c (ia64_push_arguments): Update comment.
3909 * frame.c (legacy_get_prev_frame): Do not assume
3910 SAVE_DUMMY_FRAME_TOS_P.
3911 * dummy-frame.c (find_dummy_frame): Update comment.
3913 2003-06-16 Andrew Cagney <cagney@redhat.com>
3915 * regcache.c (do_cooked_read): Do not use register_valid_p.
3917 2003-06-15 Theodore A. Roth <troth@openavr.org>
3919 * avr-tdep.c (avr_register_type): Remove a blank line.
3920 (avr_scan_prologue): Correct some comments.
3922 2003-06-15 Theodore A. Roth <troth@openavr.org>
3924 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3926 Properly scan prologues generated by gcc with the -mcall-prologues
3928 Add code to scan -mcall-prologues for mega devices.
3930 2003-06-15 Theodore A. Roth <troth@openavr.org>
3932 * avr-tdep.c (avr_register_byte): Delete function.
3933 (avr_register_raw_size): Delete function.
3934 (avr_register_virtual_size): Delete function.
3935 (avr_register_virtual_type): Delete function.
3936 (avr_register_type): New function.
3937 (avr_address_to_pointer): Remove unused code.
3938 (avr_read_fp): Need to read FP as two separate bytes due to change to
3939 avr_register_type() usage.
3940 (avr_gdbarch_init): Don't set deprecated_register_size.
3941 Don't set deprecated_register_bytes.
3942 Don't set deprecated_register_byte.
3943 Don't set deprecated_register_raw_size.
3944 Don't set deprecated_max_register_raw_size.
3945 Don't set deprecated_register_virtual_size.
3946 Don't set deprecated_max_register_virtual_size.
3947 Don't set deprecated_register_virtual_type.
3948 Set register_type method.
3950 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3952 * Makefile.in (linux-nat.o): Add rule.
3953 * linux-nat.c: New file.
3954 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3955 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3956 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3957 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3958 * config/arm/linux.mh (NATDEPFILES): Likewise.
3959 * config/i386/linux.mh (NATDEPFILES): Likewise.
3960 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3961 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3962 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3963 * config/mips/linux.mh (NATDEPFILES): Likewise.
3964 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3965 * config/s390/s390.mh (NATDEPFILES): Likewise.
3966 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3968 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3970 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3971 replace out-of-date comment.
3973 2003-06-15 Andrew Cagney <cagney@redhat.com>
3975 * rdi-share/host.h (Fail): Change to a varargs function.
3976 * remote-rdi.c (Fail): Update.
3978 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3980 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3981 (i386_convert_register_p, i386_register_to_value,
3982 i386_register_from_value): Handle types longer than 8 bytes.
3984 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3986 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3987 Move floating-point code to new function in i387-tdep.c.
3988 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3989 New functions containing code moved here from i386-tdep.c.
3990 * i387-tdep.h: Add opaque declaration for `struct type'.
3991 (i387_register_to_value, i387_value_to_register): New prototypes.
3992 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3993 (x86_64_init_abi): Set convert_register_p, register_to_value and
3994 value_to_register here.
3996 2003-06-14 Andrew Cagney <cagney@redhat.com>
3998 * mips-tdep.c (mips_register_to_value): Make static.
3999 (mips_value_to_register): Make static.
4000 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4001 * ia64-tdep.c (ia64_register_raw_size): Make static.
4002 (ia64_register_virtual_size): Make static.
4003 (ia64_register_byte): Make static.
4004 * i387-tdep.c: Include "i387-tdep.h".
4005 (print_387_control_word): Delete function.
4006 (print_387_status_word): Delete function.
4007 (print_387_status_bits): Delete function.
4008 (print_387_control_bits): Delete function.
4009 * Makefile.in (i387-tdep.o): Update dependencies.
4010 * rdi-share/host.h (Fail): Declare.
4011 * remote-rdi.c (Fail): Update to match declaration.
4013 2003-06-14 Andrew Cagney <cagney@redhat.com>
4015 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4016 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4017 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4018 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4019 * README: Delete reference to remote-array.
4020 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4021 (remote-array.o): Delete target.
4022 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4023 * remote-array.c: Delete file.
4025 2003-06-14 Andrew Cagney <cagney@redhat.com>
4026 Mark Kettenis <kettenis@gnu.org>
4028 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4029 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4030 parameter with "frame".
4031 * gdbarch.h, gdbarch.c: Re-generate.
4032 * frame.h (put_frame_register): Declare.
4033 * frame.c (put_frame_register): New function.
4034 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4035 (legacy_register_to_value): Rewrite, use "frame" to get the
4037 (legacy_value_to_register): Rewrite, use "frame" to find the
4038 register's location before storing.
4039 * arch-utils.h (legacy_convert_register_p): Update.
4040 (legacy_register_to_value, legacy_value_to_register): Update.
4041 * findvar.c (value_from_register): Rewrite, eliminate use of
4042 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4043 "frame" to REGISTER_TO_VALUE.
4044 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4045 lval_reg_frame_relative + lval_register branch of the switch. Do
4046 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4047 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4048 I386_EDI_REGNUM): New defines.
4049 (i386_next_regnum, i386_convert_register_p,
4050 i386_register_to_value, i386_value_to_register): New functions.
4051 (i386_register_convertible, i386_register_convert_to_virtual,
4052 i386_convert_to_raw): Remove functions.
4053 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4054 value_to_register instead of register_convertible,
4055 register_convert_to_virtual and register_convert_to_raw.
4056 * mips-tdep.c (mips_convert_register_p): New function.
4057 (mips_value_to_register): Replace mips_register_convert_from_type.
4058 (mips_register_to_value): Replace mips_register_convert_to_type.
4059 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4061 * alpha-tdep.c (alpha_convert_register_p): Update.
4062 (alpha_value_to_register): Update, store the register.
4063 (alpha_register_to_value): Update, fetch the register.
4065 2003-06-14 Theodore A. Roth <troth@openavr.org>
4067 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4068 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4069 Don't set deprecated_call_dummy_words.
4070 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4071 Don't set remote_translate_xfer_address.
4072 (avr_io_reg_read_command): Remove commented out debug printf.
4075 2003-06-14 Theodore A. Roth <troth@openavr.org>
4077 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4078 causes gdb to seg fault.
4080 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4082 * sparc-nat.c (fetch_inferior_registers): Correct
4083 a reference to "registers".
4085 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4087 * Makefile.in (exc_request_U_h): Define
4088 (exc_request_S_h): Likewise.
4089 (msg_reply_S_h): Likewise.
4090 (msg_U_h): Likewise.
4091 (notify_S_h): Likewise.
4092 (process_reply_S_h): Likewise.
4093 (gnu-nat.o): Depend on gdb_obstack_h
4094 * gnu-nat.c: Include "gdb_obstack.h".
4096 2003-06-13 Andrew Cagney <cagney@redhat.com>
4098 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4099 * gdbarch.h, gdbarch.c: Re-generate.
4101 2003-06-13 Andrew Cagney <cagney@redhat.com>
4103 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4104 when deprecated REGISTER macros can be deleted.
4105 * gdbarch.h, gdbarch.c: Re-generate.
4107 2003-06-13 Jim Blandy <jimb@redhat.com>
4109 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4110 Linux entry point symbols for _dl_debug_state, too.
4112 2003-06-13 Andrew Cagney <cagney@redhat.com>
4114 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4115 available, do not use the FP register, and always save the TOS.
4116 * dummy-frame.c (dummy_frame_this_id): Do not assert
4117 SAVE_DUMMY_FRAME_TOS.
4118 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4119 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4120 (i386_push_dummy_call): Add 8 to the returned SP.
4121 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4122 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4123 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4124 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4125 (x86_64_push_dummy_call): Return "sp + 16".
4126 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4127 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4128 save_dummy_frame_tos.
4130 2003-06-13 Jim Blandy <jimb@redhat.com>
4132 * frv-tdep.c (frv_use_struct_convention): Delete static
4133 declaration for function deleted in my change of 2003-06-12.
4135 2003-06-13 Theodore A. Roth <troth@openavr.org>
4137 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4138 (avr_pointer_to_address): Shift code addrs left 1 bit.
4139 (avr_convert_from_func_ptr_addr): Delete function since operation is
4140 better handled by avr_address_to_pointer and avr_pointer_to_address.
4141 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4143 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4145 From Kelley Cook <kelleycook@wideopenwest.com>:
4146 * configure.host: Accept i[34567]86 variants.
4147 * configure.tgt: Likewise.
4148 * nlm/configure.in: Likewise.
4149 * nlm/configure: Regenerated.
4151 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4153 * arm-tdep.c (solib-svr4.h): Dont' include it.
4154 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4155 * arm-linux-tdep.c: ... here. Make static.
4156 (arm_linux_init_abi): Register it.
4157 (solib-svr4.h): Include it.
4158 * Makefile.in: Update dependencies.
4159 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4160 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4162 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4164 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4165 indicate registers used for return values.
4166 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4167 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4169 (h8300_init_extra_frame_info): Ditto.
4170 (h8300_frame_locals_address): Removed.
4171 (h8300_frame_args_address): Removed.
4172 (h8300_extract_return_value): Use new regcache structure. Only care
4174 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4175 (h8300_store_return_value): Use new regcache structure. Only care
4177 (h8300h_store_return_value): Same function for 32 bit CPUs.
4178 (h8300_store_struct_return): Removed.
4179 (h8300_extract_struct_value_address): Use new regcache structure.
4180 (h8300h_extract_struct_value_address): Removed.
4181 (h8300_push_dummy_code): New function.
4182 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4183 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4184 set_gdbarch_store_return_value architecture dependent.
4185 Call set_gdbarch_push_dummy_code and
4186 set_gdbarch_extract_struct_value_address.
4187 Remove calls to set_gdbarch_frame_args_address,
4188 set_gdbarch_frame_locals_address,
4189 set_gdbarch_deprecated_store_struct_return,
4190 set_gdbarch_deprecated_extract_return_value,
4191 set_gdbarch_deprecated_extract_struct_value_address,
4192 set_gdbarch_deprecated_call_dummy_words and
4193 set_gdbarch_deprecated_sizeof_call_dummy_words.
4195 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4197 * h8300-tdep.c (h8300_register_byte): Remove.
4198 (h8300h_register_byte): Remove.
4199 (h8300_register_virtual_type): Remove. Substitute by...
4200 (h8300_register_type): New function.
4201 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4202 (h8300h_extract_struct_value_address): Ditto.
4203 (h8300_gdbarch_init): Drop calls to
4204 set_gdbarch_deprecated_register_byte and
4205 set_gdbarch_deprecated_register_virtual_type.
4206 Add call to set_gdbarch_register_type.
4208 2003-06-13 Andrew Cagney <cagney@redhat.com>
4210 * gdbarch.sh: Update comments on registers.
4211 (deprecated_register_byte): Rename register_byte.
4212 (deprecated_register_raw_size): Rename register_raw_size.
4213 (deprecated_register_virtual_size): Rename register_virtual_size.
4214 (deprecated_register_virtual_type): Rename register_virtual_type.
4215 * gdbarch.h, gdbarch.c: Re-generate.
4216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4217 * vax-tdep.c (vax_gdbarch_init): Update.
4218 * v850-tdep.c (v850_gdbarch_init): Update.
4219 * sparc-tdep.c (sparc_gdbarch_init): Update.
4220 * sh-tdep.c (sh_gdbarch_init): Update.
4221 * s390-tdep.c (s390_gdbarch_init): Update.
4222 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4223 * ns32k-tdep.c: Update.
4224 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4225 * mips-tdep.c (mips_gdbarch_init): Update.
4226 * mcore-tdep.c (mcore_gdbarch_init): Update.
4227 * m68k-tdep.c (m68k_gdbarch_init): Update.
4228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4229 * ia64-tdep.c (ia64_gdbarch_init): Update.
4230 * hppa-tdep.c (hppa_gdbarch_init): Update.
4231 * h8300-tdep.c (h8300_gdbarch_init): Update.
4232 * frv-tdep.c (frv_gdbarch_init): Update.
4233 * cris-tdep.c (cris_gdbarch_init): Update.
4234 * avr-tdep.c (avr_gdbarch_init): Update.
4235 * alpha-tdep.c (alpha_gdbarch_init): Update.
4236 * arm-tdep.c (arm_gdbarch_init): Update.
4238 2003-06-13 Andrew Cagney <cagney@redhat.com>
4240 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4241 mips_o32_use_struct_convention with always_use_struct_convention.
4243 2003-06-12 David Carlton <carlton@kealia.com>
4245 * cp-namespace.c (cp_set_block_scope): Comment out
4246 processing_has_namespace_info branch.
4248 2003-06-12 Jim Blandy <jimb@redhat.com>
4250 Recognize and skip 64-bit PowerPC Linux linkage functions.
4251 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4252 insn_pattern, insns_match_pattern, d_field, ds_field): New
4253 functions, macros, and types for working with PPC instructions.
4254 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4255 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4256 ppc64_skip_trampoline_code): New functions, variables, and macros
4257 for recognizing and skipping linkage functions.
4258 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4259 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4261 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4262 register offsets for both the 32- and 64-bit interfaces.
4264 Actually finish the job started by my change of 2003-05-29.
4265 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4266 other #definition of this.
4267 (ppc_linux_skip_trampoline_code): Remove declaration.
4268 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4270 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4273 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4274 'long' on ppc64-*-linux*.
4276 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4277 isn't #defined, assume the register doesn't exist: act as if
4278 tdep->ppc_mq_regnum were -1.
4280 * configure.host, configure.tgt: Add entries for
4281 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4283 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4286 * arch-utils.c (always_use_struct_convention): New function.
4287 * arch-utils.h (always_use_struct_convention): New prototype.
4288 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4289 (alpha_gdbarch_init): Register always_use_struct_convention,
4290 instead of alpha_use_struct_convention.
4291 * cris-tdep.c (cris_use_struct_convention): Delete.
4292 (cris_gdbarch_init): Register always_use_struct_convention,
4293 instead of cris_use_struct_convention.
4294 * frv-tdep.c (frv_use_struct_convention): Delete.
4295 (frv_gdbarch_init): Register always_use_struct_convention,
4296 instead of frv_use_struct_convention.
4297 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4298 (h8300_gdbarch_init): Register always_use_struct_convention,
4299 instead of h8300_use_struct_convention.
4300 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4301 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4302 instead of mips_o32_use_struct_convention.
4304 2003-06-12 Andrew Cagney <cagney@redhat.com>
4306 * wince.c: Include "mips-tdep.h".
4307 * mips-tdep.h (mips_next_pc): Declare.
4308 * mcore-tdep.c: Make more local functions static.
4309 * Makefile.in (wince.o): Update dependencies.
4311 2003-06-12 David Carlton <carlton@kealia.com>
4313 * symtab.c (lookup_symbol_aux_minsyms): Replace
4314 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4315 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4316 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4317 SYMBOL_NATURAL_NAME.
4319 2003-06-12 Andreas Schwab <schwab@suse.de>
4321 * Makefile.in (tuiDisassem.o): Update dependencies.
4323 2003-06-12 David Carlton <carlton@bactrian.org>
4325 * symtab.h: Delete declaration of make_symbol_overload_list.
4326 Add declaration of lookup_partial_symbol.
4327 * symtab.c (remove_params): Move to cp-support.c.
4328 (overload_list_add_symbol, make_symbol_overload_list)
4329 (sym_return_val_size, sym_return_val_index): Ditto.
4330 (lookup_partial_symbol): Make extern.
4331 * cp-support.h: Add declaration of make_symbol_overload_list.
4332 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4333 symtab.h, and block.h.
4334 (remove_params): Move here from symtab.c.
4335 (overload_list_add_symbol, make_symbol_overload_list)
4336 (sym_return_val_size, sym_return_val_index): Ditto.
4337 * valops.c: Include cp-support.h.
4338 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4339 frame_h, and block_h.
4340 (valops.o): Depend on cp_support_h.
4342 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4344 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4345 substitute by NUM_REGS throughout.
4346 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4347 (h8300s_register_name): New function for H8S registers.
4348 (h8300sx_register_name): Ditto for H8SX registers.
4349 (h8300_print_register): Revise register printing, avoid depending
4351 (h8300_register_byte): Only care for H8/300 registers.
4352 (h8300h_register_byte): New function for any other architecture.
4353 (h8300_register_raw_size): Remove.
4354 (h8300_register_virtual_type): Revise to return actually useful
4356 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4357 (h8300h_extract_struct_value_address): New function for any other
4359 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4360 set_gdbarch_register_name, set_gdbarch_register_byte,
4361 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4362 Remove calls to set_gdbarch_deprecated_register_size,
4363 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4364 set_gdbarch_deprecated_max_register_raw_size,
4365 set_gdbarch_register_virtual_size and
4366 set_gdbarch_deprecated_max_register_virtual_size entirely.
4367 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4368 set_gdbarch_long_double_bit.
4370 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4372 * doublest.c (convert_doublest_to_floatformat): When dealing
4373 with the implied integer bit, only alter mant_bits if we are
4374 processing a full 32 bits of mantissa.
4376 2003-06-11 David Carlton <carlton@bactrian.org>
4378 * dictionary.h: New.
4379 * dictionary.c: New.
4380 * block.h: Add opaque declaration for struct dictionary.
4381 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4383 (BLOCK_DICT): New macro.
4384 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4385 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4387 (ALL_BLOCK_SYMBOLS): Update definition.
4388 * Makefile.in (SFILES): Add dictionary.c.
4389 (dictionary_h): New.
4390 (COMMON_OBS): Add dictionary.o.
4391 (dictionary.o): New.
4392 (ada-lang.o): Depend on dictionary_h.
4393 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4394 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4395 (mi-cmd-stack.o): Ditto.
4396 (gdbtk-cmds.o): Update dependencies.
4397 (gdbtk-stack.o): Ditto.
4398 * ada-lang.c: Include dictionary.h.
4399 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4400 (fill_in_ada_prototype, debug_print_block): Ditto.
4401 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4402 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4404 * mdebugread.c: Include dictionary.h.
4405 (struct parse_stack): Delete 'maxsyms' member.
4406 (parse_symbol): Update calls to new_block. Delete calls to
4407 shrink_block. Use dictionary methods.
4408 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4409 Update calls to new_symtab. Don't maintain maxsyms data.
4410 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4411 (add_symbol): Just call dict_add_symbol.
4412 (new_symtab): Delete 'maxsyms' argument.
4413 (new_symtab): Update calls to new_block.
4414 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4415 (shrink_block): Delete function.
4416 (fixup_sigtramp): Update call to new_block. Add symbol via
4418 * jv-lang.c: Include dictionary.h.
4419 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4420 appropriately. Set class_symtab->free_func. Make sure the
4421 blockvector is big enough to hold two blocks.
4422 (add_class_symtab_symbol): Use dictionary methods.
4423 (free_class_block): New function.
4424 (type_from_class): Replace explicit iteration by
4426 * symtab.h (struct symtab): Replace 'free_ptr' method by
4428 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4430 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4432 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4433 Include dictionary.h.
4434 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4435 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4437 * objfiles.c: Include dictionary.h.
4438 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4439 * buildsym.c: Include dictionary.h.
4440 (finish_block): Use dictionary methods.
4441 (end_symtab): Set free_func to NULL, not free_ptr.
4442 * tracepoint.c: Include dictionary.h.
4443 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4444 (scope_info): Ditto.
4445 * stack.c: Include dictionary.h.
4446 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4447 (print_block_frame_labels, print_frame_arg_vars)
4448 (print_frame_args): Ditto.
4449 * symmisc.c (free_symtab_block): Use dictionary methods.
4450 (dump_symtab): Ditto.
4451 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4452 Include dictionary.h.
4453 * symfile.h: Delete declarations of sort_block_syms,
4455 * symfile.c (sort_block_syms): Delete.
4456 (sort_symtab_syms): Delete.
4457 * symtab.c: Include dictionary.h.
4458 (lookup_block_symbol): Use dictionary iterators.
4459 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4460 (search_symbols, make_symbol_completion_list): Ditto.
4461 (make_symbol_overload_list): Ditto.
4462 * valops.c (value_of_local): Use dict_empty.
4463 Include dictionary.h.
4465 2003-06-11 J. Brobecker <brobecker@gnat.com>
4467 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4469 2003-06-11 David Carlton <carlton@bactrian.org>
4471 * block.h (BLOCK_SHOULD_SORT): Delete.
4472 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4474 * ada-lang.c (ada_add_block_symbols): Ditto.
4475 * symfile.c (sort_block_syms): Delete.
4476 (sort_symtab_syms): Ditto.
4477 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4479 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4480 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4481 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4482 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4483 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4484 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4485 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4487 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4489 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4492 2003-06-11 Andrew Cagney <cagney@redhat.com>
4494 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4495 REGISTER_CONVERTIBLE.
4496 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4497 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4498 * gdbarch.h, gdbarch.c: Re-generate.
4499 * arch-utils.h (deprecated_register_convertible_not): Rename
4500 generic_register_convertible_not.
4501 * arch-utils.c (deprecated_register_convertible_not): Rename
4502 generic_register_convertible.
4503 (legacy_convert_register_p, legacy_register_to_value): Update.
4504 * sh-tdep.c (sh64_push_arguments): Update.
4505 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4506 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4507 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4508 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4509 * arch-utils.c (legacy_value_to_register): Update.
4510 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4511 (rs6000_register_convert_to_raw): Make parameter "from" const.
4512 * mips-tdep.c (mips_gdbarch_init): Update.
4513 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4514 * infcmd.c (default_print_registers_info): Update.
4515 * ia64-tdep.c (ia64_gdbarch_init): Update.
4516 (ia64_register_convert_to_raw): Make parameter "from" const.
4517 * i386-tdep.c (i386_gdbarch_init): Update.
4518 (i386_register_convert_to_raw): Update.
4520 2003-06-11 Andrew Cagney <cagney@redhat.com>
4522 * remote-fileio.c: Include "remote-fileio.h".
4523 * Makefile.in (remote-fileio.o): Update dependencies.
4524 (remote_fileio_h): Fix typo.
4526 2003-06-11 Andrew Cagney <cagney@redhat.com>
4528 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4529 (xstormy16_save_dummy_frame_tos): Make static.
4530 (_initialize_xstormy16_tdep): Add declaration.
4531 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4532 * v850-tdep.c: Make local functions static.
4533 (_initialize_v850_tdep): Add declaration.
4534 * sparc-tdep.c: Make local functions static.
4535 (_initialize_sparc_tdep): Add declaration.
4536 * sh-tdep.c: Make local functions static.
4537 (_initialize_sh_tdep): Add declaration.
4538 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4539 * s390-tdep.c: Make local functions static.
4540 (_initialize_s390_tdep): Add declaration.
4541 * dbxread.c (find_stab_function_addr): Make static.
4542 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4543 * ocd.c (_initialize_remote_ocd): Add declaration.
4544 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4545 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4546 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4547 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4548 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4549 * remote-array.c (_initialize_array): Add declaration.
4550 (_initialize_remote_monitors): Add declaration.
4551 * remote-mips.c: Make local functions static.
4552 (_initialize_remote_mips): Add declaration.
4553 * mcore-tdep.c: Make all local functions static.
4554 (_initialize_mcore_tdep): Add declaration.
4555 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4556 * abug-rom.c (_initialize_abug_rom): Add declaration.
4557 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4558 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4559 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4560 * remote-est.c (_initialize_est): Add declaration.
4561 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4562 (m68hc11_call_dummy_address): Make static.
4563 * ia64-tdep.c: Make local functions static.
4564 (_initialize_ia64_tdep): Add declaration.
4565 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4566 * monitor.c (monitor_wait_filter): Make static.
4567 (_initialize_remote_monitors): Add declaration.
4568 * remote-hms.c (_initialize_remote_hms): Add declaration.
4569 * remote-e7000.c (fetch_regs_from_dump): Make static.
4570 (expect_n): Make static.
4571 (_initialize_remote_e7000): Add declaration.
4572 * ser-e7kpc.c: Always include "defs.h".
4573 (_initialize_ser_e7000pc): Add declaration.
4574 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4575 * cris-tdep.c: Make all but one function static.
4576 (_initialize_cris_tdep): Add declaration.
4577 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4578 * solib.c (update_solib_list): Make static.
4579 (_initialize_solib): Add declaration.
4580 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4581 (_initialize_avr_tdep): Add declaration.
4582 * remote-rdi.c (voiddummy): Make static.
4583 (_initialize_remote_rdi): Add declaration.
4584 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4585 * remote-rdp.c (send_rdp): Make static.
4586 (_initialize_remote_rdp): Add declaration.
4587 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4589 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4591 * remote-fileio.c: Make ari happy.
4593 2003-06-10 J. Brobecker <brobecker@gnat.com>
4595 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4596 fetching the trailing bytes of the buffer we are about to write.
4598 2003-06-10 Andrew Cagney <cagney@redhat.com>
4600 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4601 * Makefile.in (remote-fileio.o): Update dependencies.
4602 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4603 include <setjmp.h>, or <sys/types.h> conditional on USG.
4604 (remote_fio_jmp_buf): Delete global variable.
4606 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4607 Martin M. Hunt <hunt@redhat.com>
4609 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4610 (SFILES): Add remote-fileio.c.
4611 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4612 dependencies for building remote.o.
4613 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4614 * remote-fileio.h: New header file defining remote File-I/O interface.
4615 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4616 static storage class.
4617 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4619 (_initialize_remote): Call initialize_remote_fileio().
4620 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4621 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4622 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4623 (captured_main): Initialize new ui_files.
4624 * ui-file.c: Add read and fgets input functions.
4625 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4626 (null_file_read): New function.
4627 (ui_file_read): New function.
4628 (set_ui_file_read): New function.
4629 (stdio_file_read): New function.
4630 * ui-file.h: New type ui_file_read_ftype.
4631 (set_ui_file_read): Declare.
4632 (ui_file_read): Declare.
4634 2003-06-09 Andrew Cagney <cagney@redhat.com>
4636 * frame.h (deprecated_unwind_get_saved_register): Rename
4637 generic_unwind_get_saved_register, update comments.
4638 * mips-tdep.c (mips_get_saved_register): Update.
4639 * frame.c (deprecated_unwind_get_saved_register): Update.
4641 2003-06-09 Andrew Cagney <cagney@redhat.com>
4643 * vax-tdep.c (vax_frame_locals_address): Delete function.
4644 (vax_gdbarch_init): Do not set frame_locals_address.
4645 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4646 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4647 * s390-tdep.c (s390_frame_args_address): Delete function.
4648 (s390_gdbarch_init): Do not set frame_args_address or
4649 frame_locals_address.
4650 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4651 (ns32k_gdbarch_init): Do not set frame_locals_address.
4652 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4653 (hppa_frame_locals_address): Delete function.
4654 (hppa_gdbarch_init): Do not set frame_args_address, or
4655 frame_locals_address.
4656 * arm-tdep.c (arm_frame_args_address): Delete.
4657 (arm_frame_locals_address): Delete.
4658 (arm_gdbarch_init): Do not set frame_args_address, or
4659 frame_locals_address.
4661 2003-06-09 Andrew Cagney <cagney@redhat.com>
4663 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4664 * gdbarch.h, gdbarch.c: Re-generate.
4665 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4666 * arch-utils.c (frame_num_args_unknown): Delete function.
4667 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4668 (frame_info): Use FRAME_NUM_ARGS_P.
4669 * arm-tdep.c (arm_frame_num_args): Delete function.
4670 (arm_gdbarch_init): Do not set frame_num_args.
4671 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4672 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4673 (hppa_gdbarch_init): Do not set frame_num_args.
4674 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4675 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4676 frame_num_args to default frame_num_args_unknown.
4677 * v850-tdep.c (v850_gdbarch_init): Ditto.
4678 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4679 * sh-tdep.c (sh_gdbarch_init): Ditto.
4680 * s390-tdep.c (s390_gdbarch_init): Ditto.
4681 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4682 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4683 * mips-tdep.c (mips_gdbarch_init): Ditto.
4684 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4685 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4686 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4687 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4688 * i386-tdep.c (i386_gdbarch_init): Ditto.
4689 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4690 * frv-tdep.c (frv_gdbarch_init): Ditto.
4691 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4692 * cris-tdep.c (cris_gdbarch_init): Ditto.
4693 * avr-tdep.c (avr_gdbarch_init): Ditto.
4694 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4696 2003-06-09 Andrew Cagney <cagney@redhat.com>
4698 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4699 (print_frame_args): Moved to "stack.c".
4700 * stack.c: Include "gdb_assert.h".
4701 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4702 (print_frame_args): Moved from "printcmd.c".
4703 * frame.h (print_frame_args): Delete declaration.
4704 * Makefile.in (stack.o): Update dependencies.
4706 2003-06-08 Andrew Cagney <cagney@redhat.com>
4708 * frame.c (get_prev_frame): Remove reference to
4709 frame_args_address_correct in comments.
4710 * frame-base.c (default_frame_args_address): Delete code
4711 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4712 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4713 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4714 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4715 (vax_frame_args_address_correct): Delete declaration.
4717 2003-06-08 Andrew Cagney <cagney@redhat.com>
4719 * gdbarch.sh (UNWIND_SP): Add.
4720 * gdbarch.h, gdbarch.c: Re-generate.
4721 * frame.c (frame_sp_unwind): New function.
4722 (get_frame_sp): New function.
4723 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4724 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4725 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4727 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4728 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4730 2003-06-08 Andrew Cagney <cagney@redhat.com>
4732 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4735 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4736 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4737 * config/m68k/tm-sun3.h: Update.
4738 * config/m68k/tm-m68klynx.h: Update.
4739 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4741 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4742 trad_frame". Update comments.
4743 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4744 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4745 (trad_frame_register_value, trad_frame_prev_register): Update.
4747 2003-06-08 Andrew Cagney <cagney@redhat.com>
4749 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4750 from GCC's acinclude.m4.
4751 * configure.in: Check for getopt's delcaration.
4752 * aclocal.m4, config.in, configure: Re-generate.
4753 * main.c (error_init): Delete declaration.
4754 * defs.h (error_init): Declare.
4755 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4756 (rs6000_convert_from_func_ptr_addr): Make static.
4757 (_initialize_rs6000_tdep): Add declaration.
4758 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4759 (show_commands, set_verbose, show_history): Delete declaration.
4760 * top.h (set_verbose): Add declaration.
4761 (show_history, set_history, show_commands): Add declaration.
4762 (do_restore_instream_cleanup): Add declaration.
4763 * objc-lang.c (specialcmp): Make static.
4764 (print_object_command): Make static.
4765 (find_objc_msgsend): Make static.
4766 (find_objc_msgcall_submethod_helper): Make static.
4767 (find_objc_msgcall_submethod): Make static.
4768 (_initialize_objc_language): Add declaration.
4769 (find_implementation_from_class): Make static.
4770 (find_implementation): Make static.
4771 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4772 * objc-lang.h (lookup_struct_typedef): Add declaration.
4773 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4774 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4775 (do_restore_user_call_depth): Make static.
4776 (do_restore_instream_cleanup): Delete declaration.
4777 (dont_repeat): Delete declaration.
4778 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4779 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4780 * reggroups.c (_initialize_reggroup): Add declaration.
4781 * cp-support.c (_initialize_cp_support): Add declaration.
4782 * cp-abi.c (_initialize_cp_abi): Add declaration.
4783 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4784 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4785 (_initialize_gnu_v3_abi): Add declaration.
4786 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4787 (_initialize_gnu_v2_abi): Add declaration.
4788 * frame-base.c (_initialize_frame_base): Add declaration.
4789 * doublest.c (floatformat_from_length): Make static.
4790 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4791 * frame.c (create_sentinel_frame): Make static.
4792 (_initialize_frame): Add declaration.
4793 * top.c (do_catch_errors): Make static.
4794 (gdb_rl_operate_and_get_next_completion): Make static.
4795 * typeprint.c: Include "typeprint.h".
4796 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4797 (sentinel_frame_this_id): Make static.
4798 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4799 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4800 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4801 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4802 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4803 * maint.c (maintenance_print_architecture): Make static.
4804 * signals/signals.c (_initialize_signals): Add declaration.
4805 * std-regs.c (_initialize_frame_reg): Add declaration.
4806 * jv-exp.y (push_variable): ISO C definition.
4807 (push_qualified_expression_name): Ditto.
4808 * memattr.c (_initialize_mem): Add declaration.
4809 * remote.c (remote_check_watch_resources): Make static.
4810 (remote_stopped_by_watchpoint): Make static.
4811 (remote_stopped_data_address): Make static.
4812 * d10v-tdep.c (nr_dmap_regs): Make static.
4813 (a0_regnum): Make static.
4814 (d10v_frame_unwind_cache): Make static.
4815 (d10v_frame_p): Make static.
4816 * osabi.c (show_osabi): Make static.
4817 (_initialize_gdb_osabi): Add extern declaration.
4818 * gdbtypes.c (make_qualified_type): Make static.
4819 (safe_parse_type): Make static.
4820 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4821 * macrotab.c (macro_bcache_free): Make static.
4822 * interps.c (interp_set_quiet): Make static.
4823 (interpreter_exec_cmd): Make static.
4824 * stack.h (select_frame_command): New file.
4825 * stack.c: Include "stack.h".
4826 (select_frame_command_wrapper): Delete function.
4827 (select_frame_command): Make global.
4828 * infcall.c: Include "infcall.h".
4829 * linespec.c: Include "linespec.h".
4830 * symfile.c (sections_overlap): Make static.
4831 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4832 * charset.c (_initialize_charset): Add missing prototype.
4833 * regcache.c (init_legacy_regcache_descr): Make static.
4834 (do_regcache_xfree): Make static.
4835 (regcache_xfer_part): Make static.
4836 (_initialize_regcache): Add missing prototype.
4837 * breakpoint.c (parse_breakpoint_sals): Make static.
4838 (breakpoint_sals_to_pc): Make static.
4839 * interps.h (clear_interpreter_hooks): ISO C declaration.
4840 * Makefile.in (stack_h): Define.
4841 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4842 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4844 2003-06-08 Andrew Cagney <cagney@redhat.com>
4846 * Makefile.in (d10v-tdep.o): Update dependencies.
4847 (SFILES): Add trad-frame.c.
4848 (trad_frame_h): Define.
4849 (COMMON_OBS): Add trad-frame.o.
4850 (trad-frame.o): Specify dependencies.
4851 * d10v-tdep.c: Include "trad-frame.h".
4852 (saved_regs_unwinder): Delete function.
4853 (d10v_frame_prev_register): Use trad_frame_prev_register.
4854 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4855 trad_frame", delete "regs" and "prev_sp".
4856 (prologue_find_regs): Use trad-frame.
4857 * trad-frame.h, trad-frame.c: New files.
4859 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4861 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4863 2003-06-07 Adam Fedor <fedor@gnu.org>
4865 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4866 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4867 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4868 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4869 resolve_msgsend_super, resolve_msgsend_super_stret):
4872 2003-06-07 Andrew Cagney <cagney@redhat.com>
4874 * symfile.h: Re-indent, clean up comments.
4876 2003-06-07 Andrew Cagney <cagney@redhat.com>
4878 * inferior.h (deprecated_write_sp): Replace
4879 generic_target_write_sp.
4880 * regcache.c (deprecated_write_sp): Replace
4881 generic_target_write_sp.
4882 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4883 * vax-tdep.c (vax_gdbarch_init): Update.
4884 * v850-tdep.c (v850_gdbarch_init): Update.
4885 * sparc-tdep.c (sparc_gdbarch_init): Update.
4886 * sh-tdep.c (sh_gdbarch_init): Update.
4887 * s390-tdep.c (s390_gdbarch_init): Update.
4888 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4889 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4890 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4891 * mcore-tdep.c (mcore_gdbarch_init): Update.
4892 * m68k-tdep.c (m68k_gdbarch_init): Update.
4893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4894 * ia64-tdep.c (ia64_gdbarch_init): Update.
4895 * h8300-tdep.c (h8300_gdbarch_init): Update.
4896 * frv-tdep.c (frv_gdbarch_init): Update.
4897 * cris-tdep.c (cris_gdbarch_init): Update.
4898 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4900 2003-06-07 Andrew Cagney <cagney@redhat.com>
4902 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4903 Assert that PC_REGNUM is valid.
4904 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4906 2003-06-07 Andrew Cagney <cagney@redhat.com>
4908 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4909 * gdbarch.h, gdbarch.c: Regenerate.
4910 * mn10300-tdep.c: Include "gdb_assert.h".
4911 (mn10300_read_fp): New function.
4912 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4913 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4914 * ia64-tdep.c: Include "gdb_assert.h".
4915 (ia64_read_fp): New function.
4916 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4917 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4918 * regcache.c (generic_target_read_sp): Delete function.
4919 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4920 * inferior.h (generic_target_read_sp): Delete declaration.
4921 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4922 generic_target_read_sp.
4923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4924 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4925 * sh-tdep.c (sh_gdbarch_init): Ditto.
4926 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4927 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4929 2003-06-07 Andrew Cagney <cagney@redhat.com>
4931 * gdbarch.sh: Comment each field of startup_gdbarch.
4932 * gdbarch.h, gdbarch.c: Re-generate.
4934 2003-06-07 Andrew Cagney <cagney@redhat.com>
4936 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4937 * gdbarch.h, gdbarch.c: Re-generate.
4938 * regcache.c: Update comments on read_pc et.al.
4939 (generic_target_read_pc): Delete function.
4940 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4941 * inferior.h (generic_target_read_pc): Delete declaration.
4942 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4943 generic_target_read_pc.
4944 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4945 * sh-tdep.c (sh_gdbarch_init): Ditto.
4946 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4949 2003-06-07 Andrew Cagney <cagney@redhat.com>
4951 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4952 "index" with "special_local_sect". Use strcmp instead of STREQ.
4953 Append period to coments.
4955 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4957 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4958 (elfstab_offset_sections): Likewise.
4959 * gdb-stabs.h (stab_section_info): Likewise.
4960 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4961 * objfiles.c (objfile_relocate): Likewise.
4962 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4963 * remote.c (get_offsets): Likewise.
4964 (remote_cisco_objfile_relocate): Likewise.
4965 * somread.c (som_symfile_offsets): Likewise.
4966 * symfile.c (alloc_section_addr_info): New function.
4967 (build_section_addr_info_from_section_tab): Use it.
4968 (free_section_addr_info): Adjust.
4969 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4970 (syms_from_objfile): Allocate local_addr dynamically.
4971 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4973 (add_symbol_file_command): Allocate sect_opts dynamically.
4974 (reread_symbols): Avoid use of SECT_OFF_MAX.
4975 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4976 (alloc_section_addr_info): Declare it.
4977 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4978 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4980 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4982 2003-06-06 Andrew Cagney <cagney@redhat.com>
4984 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4985 (d10v_frame_unwind_cache): Do not set "return_pc".
4987 2003-06-06 Michael Snyder <msnyder@redhat.com>
4989 * h8300-tdep.c: Make tidy (long lines).
4991 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4993 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4994 to regcache_collect().
4996 2003-06-05 J. Brobecker <brobecker@gnat.com>
4998 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4999 pc_in_sigtramp multiarch method.
5000 (hppa_hpux_som_init_abi): Use it.
5001 (hppa_hpux_elf_init_abi): Likewise.
5002 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5003 macro has been multiarched.
5004 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5005 macro here, as hppa64 isn't multiarched yet.
5007 2003-06-05 Andrew Cagney <cagney@redhat.com>
5009 * Makefile.in (value_h): Add $(frame_h).
5010 * value.h: Include "frame.h".
5011 (struct value): Replace "frame_addr" with "frame_id".
5012 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5013 * values.c (allocate_value): Use VALUE_FRAME_ID.
5014 (value_copy): Use VALUE_FRAME_ID.
5015 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5016 * valops.c (value_assign): Update. Use frame_find_by_id.
5018 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5020 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5023 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5025 * thread-db.c (check_event): For create/death event breakpoints,
5026 loop through all messages to ensure that we read the message
5027 corresponding to the breakpoint we are at.
5029 2003-06-04 Michael Snyder <msnyder@redhat.com>
5031 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5033 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5035 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5036 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5037 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5038 when handling .eh_frame sections.
5040 2003-06-04 J. Brobecker <brobecker@gnat.com>
5042 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5043 prepare_to_proceed procedure instead of the hppa-specific one.
5044 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5046 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5048 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5049 * config.in: Regenerated.
5050 * configure.in: Add test for syscall function and check for
5051 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5052 * configure: Regenerated.
5053 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5055 (kill_lwp): New function that uses tkill syscall or
5056 uses kill, depending on whether threading model is nptl or not.
5057 All callers of kill() changed to use kill_lwp().
5058 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5059 see if all threads have already exited in the nptl model.
5060 (stop_and_resume_callback): New callback function used by the
5061 lin_lwp_wait thread exit handling code.
5062 (stop_wait_callback): Check for threads already having exited and
5063 delete such threads fromt the lwp list when discovered.
5064 (stop_callback): Don't assert retcode of kill call.
5066 Roland McGrath <roland@redhat.com>
5067 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5070 2003-06-03 Richard Henderson <rth@redhat.com>
5072 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5073 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5074 (alpha_sigtramp_frame_prev_register): Likewise.
5075 (alpha_heuristic_frame_prev_register): Likewise.
5076 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5078 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5079 alpha-specific register id names.
5080 (alpha_mdebug_frame_unwind_cache): Likewise.
5081 (alpha_mdebug_frame_prev_register): Likewise.
5083 2003-06-03 Richard Henderson <rth@redhat.com>
5085 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5086 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5087 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5088 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5090 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5091 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5092 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5094 * alpha-linux-tdep.c: Remove unnecessary includes.
5095 * Makefile.in (alpha-linux-tdep.o): Update.
5097 2003-06-03 Richard Henderson <rth@redhat.com>
5099 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5100 (alphabsd_fill_fpreg): Likewise.
5102 2003-06-03 J. Brobecker <brobecker@gnat.com>
5104 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5105 references to struct frame_info fields by calls to the equivalent
5106 accessors. Necessary now that frame_info is opaque.
5108 2003-06-03 J. Brobecker <brobecker@gnat.com>
5110 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5111 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5112 structure, field no longer exists.
5114 2003-06-03 J. Brobecker <brobecker@gnat.com>
5116 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5117 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5119 2003-06-03 J. Brobecker <brobecker@gnat.com>
5121 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5122 references to struct frame_info fields by calls to the equivalent
5123 accessors. Necessary now that frame_info is opaque.
5125 2003-06-03 J. Brobecker <brobecker@gnat.com>
5127 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5128 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5129 structure, field no longer exists.
5131 2003-06-03 Theodore A. Roth <troth@openavr.org>
5133 * remote.c (init_remote_state): Compute sizeof_g_packet by
5134 accumulation of the size of all registers instead of blindly using
5135 DEPRECATED_REGISTER_BYTES.
5137 2003-06-03 Michael Snyder <msnyder@redhat.com>
5139 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5140 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5143 2003-06-03 J. Brobecker <brobecker@gnat.com>
5145 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5146 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5148 2003-06-03 Andrew Cagney <cagney@redhat.com>
5150 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5151 (sparc_convert_to_raw): Delete function.
5152 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5153 register_convert_to_virtual.
5155 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5157 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5158 layer if not dealing with a statically-linked threaded program.
5160 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5162 * solib.c (solib_open): Update comment to reflect actual search order.
5164 2003-06-03 Andrew Cagney <cagney@redhat.com>
5166 * frame.c (get_frame_memory_signed): New function.
5167 (get_frame_memory, get_frame_memory_unsigned): New function.
5168 (get_frame_arch): New function.
5169 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5170 (get_frame_memory, get_frame_unsigned_memory): Declare.
5171 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5172 get_frame_memory_unsigned and get_frame_arch.
5173 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5175 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5177 * MAINTAINERS (write after approval): Add myself.
5179 2003-06-03 Jim Blandy <jimb@redhat.com>
5181 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5182 elements of gregset_t are 64 bits each, but access registers
5183 are still 32 bits, so they're packed two per gregset_t
5184 element. Unpack/pack them properly.
5186 2003-06-02 David Carlton <carlton@bactrian.org>
5188 * linespec.c (find_methods): Break out code into
5189 add_matching_methods and add_constructors.
5190 (add_matching_methods): New.
5191 (add_constructors): Ditto.
5193 2003-06-02 Andrew Cagney <cagney@redhat.com>
5195 * sparc-tdep.c (sparc_print_registers): Delete call to
5196 REGISTER_CONVERTIBLE.
5197 (sparc_gdbarch_init): Do not set register_convertible.
5198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5199 * frv-tdep.c (frv_gdbarch_init): Ditto.
5200 * cris-tdep.c (cris_gdbarch_init): Ditto.
5202 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5204 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5205 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5206 (syms_from_objfile): Ditto.
5208 2003-06-03 Andreas Schwab <schwab@suse.de>
5210 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5211 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5213 2003-06-02 Richard Henderson <rth@redhat.com>
5215 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5216 a member of all_reggroup.
5218 2003-06-02 Richard Henderson <rth@redhat.com>
5220 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5221 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5222 (alpha_lds, alpha_sts): New.
5223 (alpha_convert_register_p): Change from _register_convertible.
5224 (alpha_register_to_value): Change from _convert_to_virtual;
5225 restructure and fail for type sizes other than 4 or 8.
5226 (alpha_value_to_register): Similarly.
5227 (alpha_extract_return_value): Use alpha_sts.
5228 (alpha_store_return_value): Use alpha_lds.
5229 (alpha_gdbarch_init): Update hooks.
5231 2003-06-02 Richard Henderson <rth@redhat.com>
5233 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5235 (alpha_sigtramp_register_address): Likewise.
5237 2003-06-02 Richard Henderson <rth@redhat.com>
5239 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5240 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5241 * alpha-tdep.h: Declare them.
5243 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5244 Remove zerobuf. Don't error on UNIQUE.
5245 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5246 (ALPHA_REGSET_UNIQUE): Provide default.
5247 (supply_gregset): Use alpha_supply_int_regs.
5248 (fill_gregset): Use alpha_fill_int_regs.
5249 (supply_fpregset): Use alpha_supply_fp_regs.
5250 (fill_fpregset): Use alpha_fill_fp_regs.
5251 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5252 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5253 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5254 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5255 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5256 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5258 2003-06-02 Richard Henderson <rth@redhat.com>
5260 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5262 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5263 (alpha_store_return_value): Likewise.
5265 2003-06-02 David Carlton <carlton@math.stanford.edu>
5267 * block.c (contained_in): Add 'const' to arguments.
5268 (block_function): Ditto.
5269 * block.h: Update declarations for block_function and
5272 2003-06-02 David Carlton <carlton@math.stanford.edu>
5274 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5275 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5276 * p-valprint.c (pascal_val_print): Ditto.
5277 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5279 2003-06-02 Richard Henderson <rth@redhat.com>
5281 * alpha-tdep.c (alpha_push_dummy_call): Use
5282 builtin_type_ieee_double_little instead of builtin_type_double.
5284 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5285 sign-extension of 32-bit values.
5286 (alpha_store_return_value): Similarly.
5288 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5289 (alpha_extract_return_value): Likewise.
5290 (alpha_store_return_value): Likewise.
5292 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5293 (alpha_store_return_value): Error on IEEE Quad floats.
5295 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5296 (alpha_extract_struct_value_address): Likewise.
5297 (alpha_store_return_value): Likewise.
5298 (alpha_store_struct_return): Remove.
5299 (alpha_gdbarch_init): Update hook registration to match.
5301 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5302 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5303 macros where appropriate.
5304 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5305 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5307 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5308 for SP, GP; void_func_ptr for PC; non-language-specific types
5310 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5312 2003-06-02 Richard Henderson <rth@redhat.com>
5314 * top.h (lim_at_start): Declare.
5315 * main.c (captured_main): Set it.
5316 * top.c (lim_at_start): Define.
5317 (command_loop): Use it instead of &environ.
5318 * event-top.c (command_handler): Likewise.
5320 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5322 * mipsnbsd-tdep.c: Update copyright years.
5323 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5325 2003-06-01 Richard Henderson <rth@redhat.com>
5327 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5328 (alpha-linux-tdep.o): Update dependencies.
5329 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5330 * alpha-mdebug-tdep.c: Remove unneeded includes.
5332 2003-06-01 Richard Henderson <rth@redhat.com>
5334 * alpha-tdep.c (alpha_register_reggroup_p): New.
5335 (alpha_gdbarch_init): Register it.
5337 2003-06-02 Andrew Cagney <cagney@redhat.com>
5339 * dwarfread.c: Eliminate "register"
5340 (decode_die_type): Eliminate assignment within "if".
5341 (struct_type, decode_array_element_type): Ditto.
5342 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5343 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5344 (decode_modified_type, completedieinfo): Ditto.
5345 * block.c: Eliminate "register".
5346 (blockvector_for_pc_sect): Eliminate assignment within "if".
5347 * cp-support.h (struct symbol): Opaque declaration.
5348 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5350 2003-06-01 Richard Henderson <rth@redhat.com>
5352 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5353 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5355 2003-06-01 Adam Fedor <fedor@gnu.org>
5357 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5358 * gdbarch.[ch]: Regenerate.
5359 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5360 (hppa_gdbarch_init): Set it in the gdbarch vector.
5361 * i386-tdep.c (i386_fetch_pointer_argument): New
5362 (i386_gdbarch_init): Set it into gdbarch.
5363 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5364 (rs6000_gdbarch_init): Set it in gdbarch.
5365 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5366 (sparc_gdbarch_init): Set it in gdbarch.
5368 2003-06-01 Andrew Cagney <cagney@redhat.com>
5370 * defs.h (extract_address): Delete declaration.
5371 * findvar.c (extract_address): Delete function.
5372 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5373 extract_address with the inline equivalent,
5374 extract_unsigned_integer.
5375 (xstormy16_extract_struct_value_address): Ditto.
5376 (xstormy16_pointer_to_address): Ditto.
5377 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5378 * v850-tdep.c (v850_push_arguments): Ditto.
5379 (v850_extract_return_value): Ditto.
5380 (v850_extract_struct_value_address): Ditto.
5381 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5382 (sparcnbsd_get_longjmp_target_64): Ditto.
5383 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5384 (get_longjmp_target): Ditto.
5385 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5386 (sh64_extract_struct_value_address): Ditto.
5387 (sh_push_arguments): Ditto.
5388 (sh64_push_arguments): Ditto.
5389 * remote-vxsparc.c (vx_read_register): Ditto.
5390 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5391 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5392 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5393 * mipsv4-nat.c (get_longjmp_target): Ditto.
5394 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5395 * mips-nat.c (get_longjmp_target): Ditto.
5396 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5397 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5398 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5399 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5400 * irix5-nat.c (get_longjmp_target): Ditto.
5401 * irix4-nat.c (get_longjmp_target): Ditto.
5402 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5403 (ia64_push_arguments): Ditto.
5404 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5405 * h8300-tdep.c (h8300_push_arguments): Ditto.
5406 (h8300_store_return_value): Ditto.
5407 (h8300_extract_struct_value_address): Ditto.
5408 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5409 (frv_push_arguments): Ditto.
5410 * avr-tdep.c (avr_pointer_to_address): Ditto.
5411 (avr_push_arguments): Ditto.
5412 * arm-tdep.c (arm_push_dummy_call): Ditto.
5413 (arm_get_longjmp_target): Ditto.
5414 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5415 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5416 (alpha_get_longjmp_target): Ditto.
5418 * solib-irix.c (extract_mips_address): Inline extract_address,
5419 replacing it with extract_signed_integer.
5420 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5421 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5422 (first_link_map_member, open_symbol_file_object): Ditto.
5423 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5424 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5425 (LM_NEXT, LM_NAME): Ditto.
5427 2003-06-01 Richard Henderson <rth@redhat.com>
5429 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5430 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5431 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5432 (alpha_cannot_store_register): Likewise.
5433 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5434 * alpha-nat.c (supply_gregset): Likewise.
5435 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5437 2003-06-01 Andrew Cagney <cagney@redhat.com>
5439 * infcall.c (call_function_by_hand): Update comment on
5440 DEPRECATED_DUMMY_WRITE_SP.
5442 * mips-tdep.c (mips_gdbarch_init): Do not set
5443 deprecated_dummy_write_sp.
5444 (mips_eabi_push_dummy_call): Set the SP register.
5445 (mips_o64_push_dummy_call): Set the SP register.
5446 (mips_o32_push_dummy_call): Set the SP register.
5447 (mips_n32n64_push_dummy_call): Set the SP register.
5449 2003-06-01 Richard Henderson <rth@redhat.com>
5451 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5452 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5453 (supply_gregset): Likewise.
5454 * alpha-tdep.c (alpha_store_return_value): Likewise.
5455 (alpha_get_longjmp_target): Likewise.
5456 (alpha_register_name): Constify array.
5457 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5458 deprecated_register_size, deprecated_register_bytes,
5459 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5460 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5461 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5463 2003-06-01 Richard Henderson <rth@redhat.com>
5465 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5466 from arg_reg_buffer to regcache to avoid double conversion.
5468 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5470 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5472 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5473 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5475 2003-06-01 Richard Henderson <rth@redhat.com>
5477 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5478 (decode_frame_entry): Set it. Skip FDE augmentation.
5480 2003-06-01 Richard Henderson <rth@redhat.com>
5482 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5483 not overlapping PC_REGNUM.
5485 2003-06-01 Richard Henderson <rth@redhat.com>
5487 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5488 alpha_push_arguments. Don't dump argument register data to
5489 the target stack. Fix float and 128-bit long double semantics.
5490 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5491 (alpha_fix_call_dummy): Remove.
5492 (alpha_call_dummy_words): Remove.
5493 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5495 2003-06-01 Richard Henderson <rth@redhat.com>
5497 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5499 2003-06-01 Andrew Cagney <cagney@redhat.com>
5501 * mips-tdep.c (is_mips16_addr): New function.
5502 (make_mips16_addr, unmake_mips16_addr): New functions.
5503 (pc_is_mips16, mips_fetch_instruction): Use.
5504 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5505 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5506 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5507 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5509 * config/mips/tm-mips.h: Update copyright.
5510 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5511 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5512 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5513 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5514 (TM_PRINT_INSN_MACH): Delete.
5515 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5517 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5518 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5519 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5520 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5521 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5522 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5523 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5524 mips*-*-riscos* and mips*-*-sysv* onto mips.
5525 * config/mips/mips64.mt: New file.
5526 * config/mips/mips.mt: New file.
5527 * config/mips/littlemips.mt: Delete file.
5528 * config/mips/decstation.mt: Delete file.
5529 * config/mips/vr4300el.mt: Delete file.
5530 * config/mips/vr5000el.mt: Delete file.
5531 * config/mips/vr5000.mt: Delete file.
5532 * config/mips/vr4100.mt: Delete file.
5533 * config/mips/vr4xxxel.mt: Delete file.
5534 * config/mips/vr4300.mt: Delete file.
5535 * config/mips/vr4xxx.mt: Delete file.
5536 * config/mips/bigmips.mt: Delete file.
5537 * config/mips/bigmips64.mt: Delete file.
5538 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5539 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5540 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5541 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5542 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5544 * config/mips/tm-irix3.h: Ditto.
5545 * config/mips/tm-mipsv4.h: Ditto.
5546 * config/mips/tm-embed.h: Ditto.
5547 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5549 * config/mips/tm-vr5000el.h: Delete file.
5550 * config/mips/tm-tx39l.h: Delete file.
5551 * config/mips/tm-vr4300el.h: Delete file.
5552 * config/mips/tm-vr4xxxel.h: Delete file.
5553 * config/mips/tm-vr4300.h: Delete file.
5554 * config/mips/tm-vr4100.h: Delete file.
5555 * config/mips/tm-vr4xxx.h: Delete file.
5556 * config/mips/tm-vr5000.h: Delete file.
5557 * config/mips/tm-embedl64.h: Delete file.
5558 * config/mips/tm-embedl.h: Delete file.
5559 * config/mips/tm-embed64.h: Delete file.
5560 * config/mips/tm-bigmips64.h: Delete file.
5561 * config/mips/tm-bigmips.h: Delete file.
5563 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5566 * shnbsd-nat.c: Include "sh-tdep.h".
5568 From Richard Henderson <rth@redhat.com>:
5569 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5571 2003-05-31 Andrew Cagney <cagney@redhat.com>
5573 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5574 forward declaration.
5575 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5576 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5577 (mips_find_saved_regs): Use set_reg_offset.
5578 (mips_frame_init_saved_regs): Delete function.
5579 (mips_pop_frame): Call mips_find_saved_regs instead of
5580 DEPRECATED_FRAME_INIT_SAVED_REGS.
5582 2003-05-31 Andrew Cagney <cagney@redhat.com>
5584 * mips-tdep.c (mips_gdbarch_init): Do not set
5585 deprecated_max_register_raw_size, register_virtual_size, and
5586 deprecated_max_register_virtual_size.
5588 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5590 * i386-tdep.c: Include "dwarf2-frame.h".
5591 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5592 * Makefile.in (i386-tdep.o): Update dependencies.
5594 * dwarf2-frame.c, dwarf2-frame.h: New files.
5595 * Makefile.in (SFILES): Add dwarf2-frame.c.
5596 (dwarf2_frame_h): Define.
5597 (COMMON_OBS): Add dwarf2-frame.o.
5598 (dwarf2-frame.o): Add dependencies.
5600 2003-05-31 Andreas Jaeger <aj@suse.de>
5602 * x86-64-linux-nat.c: Fix comment.
5604 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5606 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5609 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5610 have a sigcontext_addr handler.
5611 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5612 sigcontext_addr handler.
5614 2003-05-31 Andrew Cagney <cagney@redhat.com>
5616 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5617 (print_fp_register_row): Replace do_fp_register_row.
5618 (mips_print_fp_register): Add "file" and "frame" parameters.
5619 (mips_print_register): Add "file" and "frame" parameters.
5620 (mips_print_registers_info): Replace mips_do_registers_info.
5621 (mips_gdbarch_init): Set print_registers_info instead of
5622 deprecated_do_registers_info.
5623 (mips_read_fp_register_single): Add "frame" parameter.
5624 (mips_read_fp_register_double): Add "frame" parameter.
5626 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5628 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5629 Fixes a bug where GDB would print the wrong register names for
5630 targets without SSE.
5632 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5633 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5636 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5637 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5638 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5641 From Michal Ludvig <mludvig@suse.cz>:
5642 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5644 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5645 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5646 I386_ST0_REGNUM): Move here from...
5647 * i386-tdep.c: ... here.
5648 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5649 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5650 registers if possible.
5651 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5652 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5654 (i386bsd_sc_reg_offset): New variable.
5655 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5656 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5658 (i386fbsd_sc_reg_offset): New variable.
5659 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5661 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5663 (i386fbsd4_sc_reg_offset): New variable.
5664 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5665 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5667 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5668 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5669 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5671 (i386nbsd_sc_reg_offset): New variable.
5672 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5673 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5675 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5677 (i386obsd_sc_reg_offset): New variable.
5678 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5679 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5681 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5682 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5683 for frame pointer offset in `struct sigcontext'.
5685 2003-05-31 Andrew Cagney <cagney@redhat.com>
5687 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5688 architecture methods call_dummy_words, sizeof_call_dummy_words,
5689 push_return_address, store_struct_return, and fix_call_dummy. Set
5690 push_dummy_call instead of deprecated_push_arguments.
5691 (mips_store_struct_return): Delete function.
5692 (mips_fix_call_dummy): Delete function.
5693 (mips_push_return_address): Delete function.
5694 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5695 RA_REGNUM and T9_REGNUM.
5696 (mips_n32n64_push_dummy_call): Ditto for
5697 mips_n32n64_push_arguments.
5698 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5699 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5701 2003-05-31 Andrew Cagney <cagney@redhat.com>
5703 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5704 "dummy_addr" to "bp_addr".
5705 * infcall.c (call_function_by_hand): Pass "funaddr" to
5706 gdbarch_push_dummy_call.
5707 * gdbarch.h, gdbarch.c: Re-generate.
5708 * i386-tdep.c (i386_push_dummy_call): Update.
5709 * arm-tdep.c (arm_push_dummy_call): Update.
5710 * d10v-tdep.c (d10v_push_dummy_call): Update.
5712 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5714 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5715 variable declarations.
5716 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5717 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5718 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5719 x86_64_init_frame_pc, x86_64_init_frame_pc,
5720 x86_64_function_has_prologue): Remove prototypes.
5721 (X86_64_NUM_GREGS): New define.
5722 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5723 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5724 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5725 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5726 XMM1_REGNUM): Remove defines.
5727 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5728 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5729 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5730 X86_64_XMM1_REGNUM): New defines.
5731 (struct x86_64_register_info): Renamed from `struct
5732 register_info'. Remove `size' member.
5733 (x86_64_register_info_table): Remove variable.
5734 (x86_64_register_info): New variable.
5735 (X86_64_NUM_REGS): New define.
5736 (X86_64_NUM_GREGS): Remove define.
5737 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5738 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5740 (x86_54_dwarf2_reg_to_regnum): Remove function.
5741 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5742 (x86_64_dwarf_reg_to_regnum): New function.
5743 (x86_64_register_name): Rewrite.
5744 (x86_64_register_raw_size): Remove function.
5745 (x86_64_register_byte_table): Remove variable.
5746 (x86_64_register_byte): Remove function.
5747 (x86_64_register_virtual_type): Remove function.
5748 (x86_64_register_type): New function.
5749 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5750 x86_64_register_convert_to_raw): Remove functions.
5751 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5752 (x86_64_use_struct_convention): Make static. Adjust for renamed
5754 (x86_64_frame_init_saved_regs): Remove function.
5755 (x86_64_push_arguments): Make static. Change to accept a regcache
5757 (x86_64_store_return_value, x86_64_extract_return_value): Make
5758 static. Rewrite based on i386 counterparts.
5759 (x86_64_push_dummy_call): New function.
5760 (X86_64_NUM_SAVED_REGS): New define.
5761 (x86_64_register_number): Remove function.
5762 (x86_64_store_struct_return): Remove function.
5763 (x86_64_frameless_function_invocation,
5764 x86_64_function_has_prologue): Remove functions.
5765 (PROLOG_BUFSIZE): Remove define.
5766 (struct x86_64_frame_cache): New structure.
5767 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5768 x86_64_frame_cache, x86_64_frame_this_id,
5769 x86_64_frame_prev_register, x86_64_frame_p,
5770 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5771 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5773 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5775 (x86_64_skip_prologue): Rewrite in terms of
5776 x86_64_analyze_prologue.
5777 (x86_64_frame_base_address): New function.
5778 (x86_64_frame_base): New variable.
5779 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5780 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5781 set deprecated_fp_regnum, deprecated_register_size,
5782 deprecated_register_bytes, register_raw_size, register_byte,
5783 register_virtual_type, register_convertiable,
5784 register_convert_to_virtual, convert_to_raw,
5785 deprecated_get_saved_register, deprecated_target_read_fp,
5786 deprecated_push_arguments, deprecated_push_return_address,
5787 deprecated_pop_frame, deprecated_store_struct_return,
5788 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5789 frameless_function_invocation, deprecated_frame_saved_pc,
5790 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5791 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5792 deprecated_init_frame_pc and virtual_frame_pointer. Call
5793 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5794 and x86_64_frame_p. Call frame_base_set_default to register
5796 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5797 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5798 (_initialize_x86_64_tdep): Remove function.
5799 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5800 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5801 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5803 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5804 (x86_64_linux_sigcontext_addr): Rewrite.
5805 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5806 x86_64_linux_frame_saved_pc): Remove functions.
5807 (x86_64_linux_pc_in_sigtramp): Renamed from
5808 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5810 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5812 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5813 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5814 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5815 (x86_64_regmap): Rename to regmap.
5816 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5818 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5820 (x86_64_fxsave_offset): Remove function.
5821 (supply_fpregset): Simply call x86_64_supply_fxsave.
5822 (fill_fpregset): Simply call x86_64_fill_fxsave.
5823 (fetch_inferior_registers, store_inferior_registers): Avoid
5824 asignment in if-statement.
5825 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5826 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5827 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5828 (fetch_core_registers): Remove function.
5829 (linux_elf_core_fns): Remove.
5830 (offsetoff): Don't define.
5831 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5832 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5833 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5835 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5836 protection against multiple includes instead of NM_X86_64_h. Add
5837 various comments. Include "config/nm-linux.h". Don't include
5839 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5840 GET_THREAD_SIGNALS): Remove defines.
5841 (x86_64_register_u_addr, kernel_u_size,
5842 lin_thread_get_thread_signals): Remove prototypes.
5843 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5844 [HAVE_LINK_H]: Don't include "solib.h".
5845 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5846 * config/i386/tm-x86-64linux.h: Fix comments.
5847 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5848 x86-64-tdep.o): Update dependencies.
5850 2003-05-30 Andrew Cagney <cagney@redhat.com>
5852 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5853 Change parameter type to a "struct regcache *".
5855 * gdbarch.sh: Regardless of the multi-arch level, always define
5856 the macro when not already defined.
5857 * gdbarch.h, gdbarch.c: Re-generate.
5859 2003-05-30 Richard Henderson <rth@redhat.com>
5861 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5862 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5863 (alpha_mdebug_frame_this_id): Likewise.
5864 (alpha_mdebug_frame_prev_register): Likewise.
5865 (alpha_mdebug_frame_base_address): Likewise.
5866 (alpha_mdebug_frame_locals_address): Likewise.
5867 (alpha_mdebug_frame_args_address): Likewise.
5868 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5869 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5870 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5872 (alpha_heuristic_frame_this_id): Make static.
5873 (alpha_heuristic_frame_prev_register): Likewise.
5874 (alpha_heuristic_frame_base_address): Likewise.
5875 * alpha-tdep.h: Update.
5877 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5879 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5880 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5882 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5883 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5884 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5885 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5886 I386_ST0_REGNUM): New defines.
5887 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5888 codestream_get): Remove define.
5889 (codestream_next_addr, condestream_addr, condestream_buf,
5890 codestream_off, codestream_cnt): Remove variables.
5891 (codestream_fill, codestream_seek, codestream_read): Remove
5893 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5895 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5896 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5897 i386_frame_saved_pc, i386_saved_pc_after_call,
5898 i386_frame_num_args, i386_frame_init_saved_regs,
5899 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5900 i386_push_arguments): Remove functions.
5901 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5902 functionality. Use i386_analyze_prologue instead of
5903 i386_get_frame_setup.
5904 (I386_NUM_SAVED_REGS): New define.
5905 (struct i386_frame_cache): New structure.
5906 (i386_alloc_frame_cache, i386_analyze_struct_return,
5907 i386_skip_probe, i386_analyze_frame_setup,
5908 i386_analyze_register_saves, i386_analyze_prologue,
5909 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5910 i386_frame_prev_register, i386_sigtramp_frame_cache,
5911 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5912 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5913 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5915 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5917 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5918 I386_EAX_REGNUM and I386_EDX_REGNUM.
5919 (i386_extract_return_value, i386_store_return_value): Use
5920 I386_ST0_REGNUM where appropriate.
5921 (i386_extract_struct_value_address): Rewrite to use extract_address.
5922 (i386_svr4_pc_in_sigtramp): Add comment.
5923 (i386_svr4_sigcontext_addr): Rewrite.
5924 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5926 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5927 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5928 of new defines. Set push_dummy_call, don't set
5929 deprecated_push_arguments, deprecated_push_return_address,
5930 deprecated_pop_frame. Don't set parm_boundary. Don't set
5931 deprecated_frame_chain, deprecated_frame_saved_pc,
5932 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5933 save_dummy_frame_tos, unwind_pc. Call
5934 frame_unwind_append_predicate and frame_base_set_default. Don't
5935 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5936 Don't set frameless_function_invocation. Don't set
5937 deprecated_register_bytes, deprecated_register_size,
5938 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5939 * i386-linux-tdep.c: Fix formatting in some comments.
5940 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5941 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5942 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5943 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5944 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5945 redundant parentheses.
5946 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5947 (i386_linux_sigcontext_addr): Use it. Rewrite.
5948 (find_minsym_and_objfile): Change name of second argument.
5949 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5950 changed. Use frame_pc_unwind instead of
5951 DEPRECATED_SAVED_PC_AFTER_CALL.
5952 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5953 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5954 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5956 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5958 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5959 (_initialize_i386_cygwin_tdep): New prototype.
5960 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5961 deprecated_frame_chain_valid.
5962 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5963 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5964 Rely on the SVR4 defaults.
5965 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5966 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5968 2003-05-30 Andrew Cagney <cagney@redhat.com>
5970 * infcall.c (call_function_by_hand): Always call
5971 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5973 2003-05-30 Richard Henderson <rth@redhat.com>
5975 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5978 2003-05-29 Jim Blandy <jimb@redhat.com>
5980 Use gdbarch methods for solib stuff on PowerPC Linux.
5981 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5982 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5984 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5985 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5986 giving the same effect as the #definitions above.
5988 2003-05-29 Adam Fedor <fedor@gnu.org>
5990 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5991 (find_implementation_from_class): Replace it with the standard
5992 case i.e. do nothing.
5994 2003-05-29 Richard Henderson <rth@redhat.com>
5996 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5997 (alpha_linux_sigtramp_offset): Use it. Make static.
5998 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5999 update for new frame model.
6000 * alpha-mdebug-tdep.c: New file.
6001 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6002 (alpha_osf1_init_abi): Install it.
6003 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6004 (linked_proc_desc_table): Remove.
6005 (alpha_frame_past_sigtramp_frame): Remove.
6006 (alpha_dynamic_sigtramp_offset): Remove.
6007 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6008 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6009 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6010 (push_sigtramp_desc): Remove.
6011 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6012 (alpha_cannot_store_register): Likewise.
6013 (alpha_sigcontext_addr): Remove.
6014 (alpha_find_saved_regs): Remove.
6015 (alpha_frame_init_saved_regs): Remove.
6016 (alpha_init_frame_pc_first): Remove.
6017 (read_next_frame_reg): Remove.
6018 (alpha_frame_saved_pc): Remove.
6019 (alpha_saved_pc_after_call): Remove.
6020 (temp_proc_desc, temp_saved_regs): Remove.
6021 (alpha_about_to_return): Remove.
6022 (cached_proc_desc): Remove.
6023 (alpha_frame_chain): Remove.
6024 (alpha_print_extra_frame_info): Remove.
6025 (alpha_init_extra_frame_info): Remove.
6026 (alpha_frame_locals_address): Remove.
6027 (alpha_frame_args_address): Remove.
6028 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6029 (alpha_push_dummy_frame): Remove.
6030 (alpha_pop_frame): Remove.
6031 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6032 (alpha_read_insn): New.
6033 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6034 for different insn encodings.
6035 (alpha_in_lenient_prologue): Remove.
6036 (struct alpha_sigtramp_unwind_cache): New.
6037 (alpha_sigtramp_frame_unwind_cache): New.
6038 (alpha_sigtramp_register_address): New.
6039 (alpha_sigtramp_frame_this_id): New.
6040 (alpha_sigtramp_frame_prev_register): New.
6041 (alpha_sigtramp_frame_unwind): New.
6042 (alpha_sigtramp_frame_p): New.
6043 (struct alpha_heuristic_unwind_cache): New.
6044 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6045 don't count nop insns that occur between functions.
6046 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6047 heuristic_proc_desc, but without the mdebug wrapping.
6048 (alpha_heuristic_frame_this_id): New.
6049 (alpha_heuristic_frame_prev_register): New.
6050 (alpha_heuristic_frame_unwind): New.
6051 (alpha_heuristic_frame_p): New.
6052 (alpha_heuristic_frame_base_address): New.
6053 (alpha_heuristic_frame_base): New.
6054 (alpha_unwind_dummy_id): New.
6055 (alpha_unwind_pc): New.
6056 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6057 frame related deprecated initializations; install replacements.
6058 (alpha_dump_tdep): Remove.
6059 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6060 (alpha_read_insn, alpha_after_prologue,
6061 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6062 alpha_heuristic_frame_prev_register,
6063 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6064 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6065 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6066 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6068 2003-05-29 Andrew Cagney <cagney@redhat.com>
6070 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6071 dependant on the availability of ASSERT_FUNCTION.
6072 (ASSERT_FUNCTION): Do not define when there is no function name.
6074 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6076 From Jimi X <jimix@watson.ibm.com>:
6077 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6079 2003-05-28 Jim Blandy <jimb@redhat.com>
6081 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6082 argument to ptrace to int; the system headers should give it the
6083 right type, and pointers don't fit in ints on powerpc64-*-*.
6085 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6087 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6090 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6092 * stabsread.c (dbx_lookup_type): Make static.
6094 (add_undefined_type): Ditto.
6095 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6098 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6100 * hpread.c (hpread_has_name): Make static.
6101 (hpread_psymtab_to_symtab): Ditto.
6102 (file_exists): Ditto.
6103 (hpread_call_pxdb): Ditto.
6104 (hpread_pxdb_needed): Ditto.
6105 (hpread_quick_traverse): Ditto.
6106 (hpread_get_header): Ditto.
6107 (hpread_get_lntt): Ditto.
6108 (hpread_get_slt): Ditto.
6111 2003-05-25 Andreas Schwab <schwab@suse.de>
6113 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6114 stack_align and deprecated_extra_stack_alignment_needed.
6115 (m68k_stack_align): Delete.
6117 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6118 (m68k_register_virtual_size): Likewise.
6119 (altos_skip_prologue): Remove obsolete function.
6120 (isi_frame_num_args): Likewise.
6121 (news_frame_num_args): Likewise.
6122 (m68k_fix_call_dummy): Make static.
6123 (m68k_push_dummy_frame): Likewise.
6124 (m68k_pop_frame): Likewise.
6125 (m68k_skip_prologue): Likewise.
6126 (m68k_frame_init_saved_regs): Likewise.
6127 (m68k_saved_pc_after_call): Likewise.
6128 (m68k_get_longjmp_target): Make multi-arch.
6129 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6130 structure. Register m68k_get_longjmp_target if enabled.
6131 * m68k-tdep.h (struct gdbarch_tdep): Define.
6132 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6134 * Makefile.in (config.status): Also depend on configure.tgt
6136 (m68klinux-tdep.o): Update dependencies.
6137 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6138 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6139 (M68K_LINUX_JB_PC): Define.
6140 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6141 and take additional parameter.
6142 (m68k_linux_sigtramp_saved_pc): Update.
6143 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6144 m68k_linux_pc_in_sigtramp, in_plt_section,
6145 find_solib_trampoline_target.
6146 * config/m68k/tm-linux.h: Don't include any tm headers.
6147 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6148 (JB_ELEMENT_SIZE): Likewise.
6150 (GET_LONGJMP_TARGET): Likewise.
6151 (IN_SIGTRAMP): Likewise.
6152 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6154 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6156 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6157 (sparc32_push_arguments): Re-implement by calling
6158 sparc32_do_push_arguments.
6160 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6162 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6163 SPARC_O1_REGNUM): New defines.
6164 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6165 (sparc32_store_return_value): New function.
6166 (sparc_extract_struct_value_address): Rewrite to operate on a
6168 (sparc_gdbarch_init): Don't set
6169 deprecated_extract_struct_value_address. Set
6170 extract_struct_value_address instead. Don't set
6171 deprecated_extract_return_value and deprecated_store_return_value
6172 for 32-bit targets. Set extract_return_value and
6173 store_return_value instead.
6174 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6175 DEPRECTAED_EXTRACT_RETURN_VALUE,
6176 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6177 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6178 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6179 (sparc_store_return_value): Remove prototype.
6180 (sparc32_store_return_value): New prototype.
6181 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6184 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6186 * sparcnbsd-tdep.c: Include "gdb_string.h".
6188 2003-05-23 Andrew Cagney <cagney@redhat.com>
6190 * p-valprint.c (pascal_val_print): Replace extract_address with
6191 the inline equivalent extract_unsigned_integer.
6192 * jv-valprint.c (java_value_print): Ditto.
6193 * ada-valprint.c (ada_val_print_1): Ditto.
6194 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6196 2003-05-23 Theodore A. Roth <troth@openavr.org>
6198 * blockframe.c (frameless_look_for_prologue): Remove unused
6199 after_prologue variable.
6201 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6203 * blockframe.c (get_pc_function_start): Rewrite to avoid
6204 asignments in if-statements.
6206 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6208 Committed by Elena Zannoni <ezannoni@redhat.com>.
6209 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6210 files, don't relocate absolute symbols (and do use mst_abs).
6212 2003-05-23 Andrew Cagney <cagney@redhat.com>
6214 * objc-lang.c: Include "gdb_assert.h".
6215 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6216 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6217 (gdb_check, gdb_check_fatal): Delete functions.
6218 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6220 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6221 * Makefile.in (objc-lang.o): Update dependencies.
6223 2003-05-22 Ian Lance Taylor <ian@airs.com>
6225 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6226 with fprintf_filtered, not fprintf_unfiltered.
6228 2003-05-22 Andrew Cagney <cagney@redhat.com>
6230 * stack.c (frame_info): Inline extract_address, replacing it with
6231 extract_unsigned_integer.
6232 * findvar.c (unsigned_pointer_to_address): Ditto.
6233 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6234 * dwarf2expr.c (dwarf2_read_address): Ditto.
6235 * frame.c (frame_pc_unwind): Update comment.
6236 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6238 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6240 * infptrace.c (detach): Call print_sys_errmsg rather than
6241 perror_with_name to issue warning message when errno is non-zero
6242 after calling ptrace detach.
6244 2003-05-21 J. Brobecker <brobecker@gnat.com>
6246 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6247 macro definitions from here...
6248 * hppa-tdep.c: ...to there.
6250 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6252 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6253 register_ptrace_addr(). Fix all callers.
6255 2003-05-21 Andreas Schwab <schwab@suse.de>
6257 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6259 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6261 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6262 (_initialize_m68k_linux_tdep): New function.
6263 (m68k_linux_frame_saved_pc): Make static.
6264 (m68k_linux_extract_return_value): Likewise.
6265 (m68k_linux_store_return_value): Likewise.
6266 (m68k_linux_extract_struct_value_address): Likewise.
6267 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6269 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6270 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6271 (DEPRECATED_FRAME_SAVED_PC): Remove.
6273 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6275 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6276 regset numbering rather than our own.
6278 2003-05-19 David Carlton <carlton@bactrian.org>
6280 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6282 2003-05-19 David Carlton <carlton@bactrian.org>
6284 Partial fix for PR c++/827.
6285 * cp-support.h: Include symtab.h.
6286 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6287 * cp-namespace.c: Update contributors.
6288 (cp_lookup_symbol_nonlocal): New.
6289 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6290 (lookup_symbol_file): Ditto.
6291 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6292 * block.h: Declare block_scope, block_using, block_global_block.
6293 * block.c (block_scope): New.
6294 (block_using, block_global_block): Ditto.
6295 * Makefile.in (cp_support_h): Depend on symtab_h.
6296 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6298 2003-05-19 David Carlton <carlton@bactrian.org>
6300 * language.h (struct language_defn): Add 'la_value_of_this'
6301 and 'la_lookup_symbol_nonlocal' members.
6302 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6303 lookup_symbol_static, lookup_symbol_global,
6304 lookup_symbol_aux_block.
6305 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6306 if we should search fields of this and how to do static/global
6308 (lookup_symbol_aux_block): Make extern.
6309 (basic_lookup_symbol_nonlocal): New.
6310 (lookup_symbol_static, lookup_symbol_global): Ditto.
6311 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6312 'la_lookup_symbol_nonlocal' members.
6313 * c-lang.c (c_language_defn, cplus_language_defn)
6314 (asm_language_defn, minimal_language_defn): Ditto.
6315 * jv-lang.c (java_language_defn): Ditto.
6316 * language.c (unknown_language_defn, auto_language_defn)
6317 (local_language_defn): Ditto.
6318 * m2-lang.c (m2_language_defn): Ditto.
6319 * objc-lang.c (objc_language_defn): Ditto.
6320 * scm-lang.c (scm_language_defn): Ditto.
6321 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6322 * p-lang.c (pascal_language_defn): Ditto for both.
6323 * Makefile.in (f-lang.o): Depend on value_h.
6326 2003-05-19 David Carlton <carlton@bactrian.org>
6328 * block.h: Declare block_static_block.
6329 * block.c (block_static_block): New.
6330 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6331 lookup_symbol_aux_local, calling block_static_block instead.
6332 (lookup_symbol_aux_local): Delete 'static_block' argument.
6334 2003-05-19 David Carlton <carlton@bactrian.org>
6336 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6338 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6340 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6341 register numbers mapping.
6343 2003-05-18 Adam Fedor <fedor@gnu.org>
6345 * symtab.c (completion_list_objc_symbol): New function.
6346 (make_symbol_completion_list): Use it to add ObjC symbols
6347 when looking though the list.
6348 (language_search_unquoted_string): New function.
6349 (make_file_symbol_completion_list): Use it.
6351 2003-05-18 Andreas Schwab <schwab@suse.de>
6353 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6355 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6356 as m68k_linux_extract_return_value.
6357 (DEPRECATED_STORE_RETURN_VALUE): Define as
6358 m68k_linux_store_return_value.
6359 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6360 m68k_linux_extract_struct_value_address.
6361 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6362 get_next_frame, get_frame_base, get_frame_pc.
6363 (m68k_linux_frame_saved_pc): Use get_frame_base.
6364 (m68k_linux_extract_return_value): New function.
6365 (m68k_linux_store_return_value): New function.
6366 (m68k_linux_extract_struct_value_address): New function.
6367 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6369 * c-exp.y (typebase): Remove duplicate occurence of
6370 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6371 of lookup_signed_typename.
6373 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6375 * dwarf2loc.c (find_location_expression): Change type of second
6376 argument to `size_t *'.
6377 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6380 2003-05-18 David Carlton <carlton@bactrian.org>
6382 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6383 'linkage_name'. Add comment.
6384 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6386 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6387 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6388 (lookup_block_symbol): Ditto.
6390 2003-05-16 Andrew Cagney <cagney@redhat.com>
6392 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6393 * gdbarch.h, gdbarch.c: Re-generate.
6394 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6395 * TODO (REGISTER_BYTES): Delete reference.
6396 * alpha-tdep.c (alpha_gdbarch_init): Update.
6397 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6398 * x86-64-tdep.c (x86_64_init_abi): Update.
6399 * vax-tdep.c (vax_gdbarch_init): Update.
6400 * v850-tdep.c (v850_gdbarch_init): Update.
6401 * sparc-tdep.c (sparc_gdbarch_init): Update.
6402 * sh-tdep.c (sh_gdbarch_init): Update.
6403 * s390-tdep.c (s390_gdbarch_init): Update.
6404 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6405 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6406 (ns32k_gdbarch_init_32382): Update.
6407 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6408 * mcore-tdep.c (mcore_gdbarch_init): Update.
6409 * m68k-tdep.c (m68k_gdbarch_init): Update.
6410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6411 * ia64-tdep.c (ia64_gdbarch_init): Update.
6412 * i386-tdep.c (i386_gdbarch_init): Update.
6413 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6414 * hppa-tdep.c (hppa_gdbarch_init): Update.
6415 * h8300-tdep.c (h8300_gdbarch_init): Update.
6416 * frv-tdep.c (frv_gdbarch_init): Update.
6417 * cris-tdep.c (cris_gdbarch_init): Update.
6418 * avr-tdep.c (avr_gdbarch_init): Update.
6419 * arm-tdep.c (arm_gdbarch_init): Update.
6420 * sparc-tdep.c (sparc_pop_frame): Update.
6421 * rs6000-tdep.c (rs6000_pop_frame): Update.
6422 * remote.c (init_remote_state): Update.
6423 (remote_prepare_to_store): Update.
6424 * remote-vx.c (vx_prepare_to_store): Update.
6425 * remote-sds.c (sds_fetch_registers): Update.
6426 (sds_prepare_to_store): Update.
6427 * remote-array.c: Update.
6428 * regcache.c (init_legacy_regcache_descr): Update.
6429 (init_regcache_descr): Update.
6430 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6431 (mips_o64_extract_return_value): Update.
6432 * irix5-nat.c (fetch_core_registers): Update.
6433 * irix4-nat.c (fetch_core_registers): Update.
6434 * i386-tdep.h: Update.
6435 * hppa-tdep.c (pa_do_registers_info): Update.
6436 (pa_do_strcat_registers_info): Update.
6437 * cris-tdep.c (cris_register_bytes_ok): Update.
6438 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6439 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6440 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6441 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6442 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6443 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6444 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6445 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6446 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6447 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6448 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6449 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6450 (REGISTER_BYTES_OK): Update.
6451 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6452 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6454 2003-05-16 Ian Lance Taylor <ian@airs.com>
6456 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6457 (vax_print_insn, print_insn_arg): Remove static functions.
6458 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6459 print_insn_vax from opcodes library.
6460 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6462 2003-05-15 Andrew Cagney <cagney@redhat.com>
6464 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6465 * target.h (memory_breakpoint_from_pc): Delete declaration.
6466 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6467 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6468 * monitor.c (monitor_insert_breakpoint): Use
6469 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6470 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6471 * gdbarch.h, gdbarch.c: Re-generate.
6472 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6473 (sparc_gdbarch_init): Set breakpoint_from_pc to
6474 sparc_breakpoint_from_pc.
6475 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6476 (BREAKPOINT_FROM_PC): Define.
6477 (sparc_breakpoint_from_pc): Declare.
6478 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6479 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6480 (BREAKPOINT_FROM_PC): Define.
6481 (BREAKPOINT): Delete macro.
6482 * target.h: Update comment.
6483 * s390-tdep.c (s390_gdbarch_init): Update comments.
6484 * remote.c: Update comments.
6485 * remote-mips.c: Update comments.
6486 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6487 * mem-break.c: Update comment.
6488 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6489 (ia64_memory_insert_breakpoint): Update.
6490 * config/sparc/tm-sparc.h: Update comment.
6491 * config/pa/tm-hppa64.h: Update comment.
6492 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6493 (rs6000_breakpoint_from_pc): Update.
6494 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6495 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6496 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6497 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6498 (mips_breakpoint_from_pc): Update.
6499 (mips_dump_tdep): Update.
6501 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6502 * minsyms.c (lookup_minimal_symbol): Inline
6503 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6505 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6506 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6507 * p-lang.c (pascal_printstr): Ditto.
6508 * objc-lang.c (objc_printstr): Ditto.
6509 * m2-lang.c (m2_printstr): Ditto.
6510 * jv-valprint.c (java_print_value_fields): Ditto.
6511 * f-lang.c (f_printstr): Ditto.
6512 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6513 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6514 for repeat_count_threshold.
6515 * Makefile.in (cp-valprint.o): Update dependencies.
6517 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6519 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6520 (examine_prologue): Support looking through leaf functions, knowing
6521 they start with mov r2,r12. Support skipping over indirect stores
6522 of the input registers. Upon hitting a non-nop branch instruction
6523 or predicated instruction, bail out by setting lim_pc to the current
6524 pc value in the loop. At the end, if the lim_pc value is still
6525 beyond our calculated value and we have trust_limit set,
6526 use the lim_pc value.
6528 2003-05-15 Andrew Cagney <cagney@redhat.com>
6530 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6531 generic_find_dummy_frame.
6532 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6533 (deprecated_generic_find_dummy_frame): Update.
6534 (deprecated_read_register_dummy): Update.
6535 * frame.c (deprecated_generic_get_saved_register): Update.
6537 2003-05-15 Theodore A. Roth <troth@openavr.org>
6539 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6540 (avr_gdbarch_init): Set breakpoint_from_pc method.
6542 2003-05-15 Andrew Cagney <cagney@redhat.com>
6544 * regcache.c (build_regcache): Set deprecated_register_valid
6546 (deprecated_grub_regcache_for_register_valid): Delete function.
6547 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6550 2003-05-15 David Carlton <carlton@bactrian.org>
6552 Committed by Elena Zannoni <ezannoni@redhat.com>
6553 * symtab.c (lookup_symbol_aux): Delete calls to
6554 lookup_symbol_aux_minsyms.
6555 (lookup_symbol_aux_minsyms): Comment out function and
6556 prototype. Delete lookup by mangled name.
6558 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6560 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6561 correctly indicate an empty stack and ``stack_allocated'' to the
6562 indicate the number of elements initially allocated.
6563 (dwarf_expr_grow_stack): Simplify method for computing new
6564 stack size. Don't loop infinitely if ``stack_len'' is zero.
6565 (execute_stack_op): Move ``ctx->in_reg'' initialization
6566 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6567 be used in conjuction with DW_OP_piece. Revise error message
6570 2003-05-14 Theodore A. Roth <troth@openavr.org>
6572 * MAINTAINERS: Update my email address.
6573 * avr-tdep.c: Ditto.
6575 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6577 * symtab.h (enum domain_enum): Rename from namespace_enum.
6578 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6579 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6580 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6581 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6582 TYPES_NAMESPACE, METHODS_NAMESPACE.
6583 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6584 (struct symbol, struct partial_symbol): Rename field
6585 'namespace_enum namespace' to 'domain_enum domain'.
6586 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6587 Delete old define kludge for namespace.
6589 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6590 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6591 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6592 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6593 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6594 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6595 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6596 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6597 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6598 occurrences of the above.
6600 2003-05-14 Ian Lance Taylor <ian@airs.com>
6602 * Makefile.in (install-only): Use $(SHELL) when running
6605 2003-05-13 Ian Lance Taylor <ian@airs.com>
6607 * MAINTAINERS (write after approval): Add myself.
6609 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6610 second and third arguments.
6611 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6612 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6614 2003-05-13 Andrew Cagney <cagney@redhat.com>
6616 * defs.h (store_address): Delete declaration.
6617 findvar.c (store_address): Delete function.
6618 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6619 store_unsigned_integer.
6620 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6621 * v850-tdep.c (v850_push_arguments): Ditto.
6622 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6623 * sh-tdep.c (sh64_get_saved_register): Ditto.
6624 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6625 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6626 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6627 (mips_get_saved_register): Ditto.
6628 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6629 (find_func_descr, ia64_push_arguments): Ditto.
6630 * i386-tdep.c (i386_push_arguments): Ditto.
6631 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6632 * frv-tdep.c (frv_push_arguments): Ditto.
6633 * frame.c (legacy_saved_regs_prev_register): Ditto.
6634 (deprecated_generic_get_saved_register): Ditto.
6635 * findvar.c (unsigned_address_to_pointer): Ditto.
6636 * dwarf2read.c (dwarf2_const_value): Ditto.
6637 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6638 * alpha-tdep.c (alpha_push_arguments): Ditto.
6640 2003-05-12 J. Brobecker <brobecker@gnat.com>
6642 * NEWS: Mention that the hppa-hpux port has been partially
6643 multiarched (32bit ABIT only, so far).
6645 2003-05-11 Andrew Cagney <cagney@redhat.com>
6647 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6648 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6649 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6650 sim/testsuite/sim/arm/misaligned2.ms, and
6651 sim/testsuite/sim/arm/misaligned3.ms.
6652 * disasm.h (struct ui_file): Add opaque struct declaration.
6653 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6654 * frame.h (struct ui_file): Ditto.
6656 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6658 * value.h: Pretty print.
6660 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6662 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6664 2003-05-08 Andrew Cagney <cagney@redhat.com>
6666 * regcache.h (max_register_size): Delete declaration.
6667 * regcache.c (max_register_size): Delete function.
6668 (struct regcache_descr): Delete field "max_register_size".
6669 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6670 registers fit in MAX_REGISTER_SIZE.
6671 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6672 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6673 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6674 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6675 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6676 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6677 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6678 * dve3900-rom.c, hppa-tdep.c: Ditto.
6680 2003-05-08 David Carlton <carlton@math.stanford.edu>
6682 * valops.c (push_word): Fix typo.
6684 2003-05-08 Andrew Cagney <cagney@redhat.com>
6686 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6687 * gdbarch.h: Re-generate.
6688 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6689 (legacy_max_register_raw_size): Delete declaration.
6690 * regcache.c (legacy_max_register_raw_size): Delete function.
6691 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6692 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6693 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6694 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6695 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6696 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6697 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6698 * findvar.c, dwarf2cfi.c: Ditto.
6700 2003-05-08 Andrew Cagney <cagney@redhat.com>
6702 * mips-tdep.c (read_signed_register): New function, moved to here
6704 (read_signed_register_pid): Ditto.
6705 * regcache.c (read_signed_register_pid): Delete function, moved to
6707 (read_signed_register): Ditto.
6708 * regcache.h (read_signed_register): Delete declaration.
6709 (read_signed_register_pid): Delete declaration.
6711 2003-05-08 Andrew Cagney <cagney@redhat.com>
6713 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6714 * gdbarch.h: Re-generate.
6715 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6716 (legacy_max_register_virtual_size): Delete declaration.
6717 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6718 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6719 * tracepoint.c (memrange_sortmerge): Ditto.
6720 * sparc-tdep.c (sparc_print_registers): Ditto.
6721 * regcache.c (legacy_max_register_virtual_size): Delete function.
6723 2002-05-08 J. Brobecker <brobecker@gnat.com>
6725 * fork-child.c (escape_bang_in_quoted_argument): New function.
6726 (fork_inferior): Escape '!' characters in quoted arguments
6729 2003-05-08 J. Brobecker <brobecker@gnat.com>
6731 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6732 the language of the CU is not currently supported by GDB.
6734 2003-05-08 J. Brobecker <brobecker@gnat.com>
6736 * defs.h (language): Add language_minimal enum value.
6737 * c-lang.c (minimal_language_defn): New language definition.
6738 (_initialize_c_language): Add the new minimal language to the list
6739 of languages known to GDB.
6741 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6743 * frame.c (get_frame_type): Don't attempt to lazily initialize
6744 frame's unwinder for legacy frames.
6746 2003-05-07 Andrew Cagney <cagney@redhat.com>
6748 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6749 and "regcache" parameters.
6750 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6752 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6754 * dwarf2read.c (dwarf_decode_lines): Only use output of
6755 check_cu_functions() when calling record_line(). Do not update
6756 the current address.
6758 2003-05-07 Andrew Cagney <cagney@redhat.com>
6760 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6763 2003-05-07 Jim Blandy <jimb@redhat.com>
6765 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6766 'maint info symtabs' and 'maint info psymtabs'.
6767 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6768 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6769 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6770 Declarations updated.
6771 * maint.c (maintenance_list_command): Delete.
6772 (_initialize_maint_cmds): Update calls to add_cmd.
6773 * gdbcmd.h (maintenancelistlist): Delete declaration.
6774 * cli/cli-cmds.c (maintenancelistlist): Delete.
6775 (init_cmd_lists): Don't initialize it.
6776 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6778 2003-05-07 Andrew Cagney <cagney@redhat.com>
6780 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6782 (d10v_print_registers_info): Update.
6783 (d10v_dmap_register, d10v_imap_register): Delete functions.
6784 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6785 and "imap_register".
6786 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6787 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6788 * arch-utils.c (generic_remote_translate_xfer_address): Add
6789 "regcache" and "gdbarch" parameters.
6790 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6791 parameter. Change class to multi-arch.
6792 * gdbarch.h, gdbarch.c: Re-generate.
6793 * remote.c (remote_xfer_memory): Use
6794 gdbarch_remote_translate_xfer_address.
6796 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6798 * infrun.c (prev_pc): Move declaration ahead of proceed().
6799 (proceed): Refresh prev_pc value before resuming.
6800 (stop_stepping): Remove code to refresh prev_pc.
6802 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6804 * nto-tdep.c: Removed stray comment.
6806 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6808 * i386-nto-tdep.c: Fix old K&R function definitions.
6809 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6810 Also change add_show_from_set() call to add_setshow_cmd().
6811 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6813 2003-05-05 Andrew Cagney <cagney@redhat.com>
6815 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6816 (fprint_dummy_frames): New function.
6817 (maintenance_print_dummy_frames): New function.
6818 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6819 * frame.c (fprint_frame_id): Make global.
6820 * frame.h (fprint_frame_id): Declare.
6821 * Makefile.in (dummy-frame.o): Update dependencies.
6823 2003-05-05 Andrew Cagney <cagney@redhat.com>
6825 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6826 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6827 SIZEOF_CALL_DUMMY_WORDS.
6828 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6829 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6830 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6831 CALL_DUMMY_BREAKPOINT_OFFSET.
6832 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6833 CALL_DUMMY_START_OFFSET.
6834 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6835 * gdbarch.h, gdbarch.c: Re-generate.
6836 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6837 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6838 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6839 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6840 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6841 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6842 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6843 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6844 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6845 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6846 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6847 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6848 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6849 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6850 * config/sparc/tm-sparc.h: Update.
6852 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6854 * configure.tgt: Add i[3456]86-*-nto*.
6855 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6856 * nto-tdep.c: New file. Neutrino target support routines.
6857 * nto-tdep.h: New file. Neutrino target header.
6858 * config/tm-qnxnto.h: New file.
6859 * config/i386/i386nto.mt: New file.
6860 * config/i386/tm-i386nto.h: New file.
6862 2003-05-04 Andrew Cagney <cagney@redhat.com>
6864 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6865 (load_infrun_state): Ditto.
6866 (struct thread_info): Drop "prev_func_name" field.
6867 * thread.c (load_infrun_state): Update.
6868 (save_infrun_state): Update.
6869 * infrun.c (prev_func_name): Delete variable.
6870 (init_wait_for_inferior): Do not clear prev_func_name.
6871 (stop_stepping, keep_going, context_switch): Do not swap
6873 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6874 instead of PC_IN_SIGTRAMP.
6876 2003-05-04 Andrew Cagney <cagney@redhat.com>
6878 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6879 REGISTER_BYTE with register_offset_hack.
6880 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6881 that REGISTER_BYTE is consistent with the regcache.
6882 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6883 * gdbarch.h, gdbarch.c: Regenerate.
6885 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6887 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6888 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6890 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6892 2003-05-03 J. Brobecker <brobecker@gnat.com>
6894 From Thierry Schneider <tpschneider1@yahoo.com>
6895 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6896 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6897 (mi-cmd-symbol.o): Add rule.
6899 2003-05-03 Andrew Cagney <cagney@redhat.com>
6901 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6902 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6903 * gdbarch.h, gdbarch.c: Re-generate.
6904 * d10v-tdep.c (d10v_push_dummy_code): New function.
6905 (d10v_gdbarch_init): Set push_dummy_code.
6906 * infcall.c (legacy_push_dummy_code): New function.
6907 (generic_push_dummy_code): New function.
6908 (push_dummy_code): New function.
6909 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6910 instead of dummy_addr, to push_dummy_call. Move call to
6911 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6913 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6915 2003-05-03 Andrew Cagney <cagney@redhat.com>
6917 * disasm.h (print_insn): Declare.
6918 * disasm.c (init_gdb_disassemble_info): New function.
6919 (gdb_disassembly): Call init_gdb_disassemble_info.
6920 (gdb_print_insn): New function.
6921 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6922 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6923 * mcore-tdep.c: Include "disasm.h"
6924 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6925 * d10v-tdep.c: Include "disasm.h".
6926 (display_trace): Call gdb_print_insn, instead of print_insn.
6927 (print_insn): Delete function.
6928 * printcmd.c: Include "disasm.h".
6929 (print_insn): Delete function.
6930 (print_formatted): Call gdb_print_insn, instead of print_insn.
6931 * Makefile.in (printcmd.o): Update dependencies.
6932 (mcore-tdep.o, d10v-tdep.o): Ditto.
6934 2003-05-02 Andrew Cagney <cagney@redhat.com>
6936 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6937 PC_REGNUM, re-indent.
6938 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6939 PC_REGNUM isn't set.
6941 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6942 * gdbarch.h, gdbarch.c: Re-generate.
6943 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6944 register_virtual_size, pc_regnum, or register_bytes.
6945 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6946 (d10v_register_type): Use D10V_PC_REGNUM.
6947 (d10v_print_registers_info, d10v_read_pc): Ditto.
6948 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6949 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6951 2003-05-02 David Carlton <carlton@bactrian.org>
6953 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6954 the name with mstrsave.
6956 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6958 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6959 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6960 (host_charset_name, target_charset_name): New vars for use by
6962 (host_charset_enum, target_charset_enum): New enums for set/show
6964 (set_charset_sfunc, set_host_charset_sfunc,
6965 set_target_charset_sfunc): New functions.
6966 (set_host_charset, set_target_charset): Make static.
6967 (list_charsets, set_host_charset_command,
6968 set_target_charset_command): Delete functions.
6969 (show_charset_command): Rewrite as....
6970 (show_charset): Hook this up with the set/show command mechanism.
6971 (_initialize_charset): Change names of charsets to match the
6972 set/show enums. Use host_charset_name and target_charset_name.
6973 Use set/show mechanism for charset, host-charset, target-charset
6974 commands. Do not make 'show host-charset' and 'show
6975 target-charset' be aliases of 'show charset'.
6977 * charset.h (set_host_charset, set_target_charset): Don't export,
6978 they are not used outside the file.
6980 2003-05-01 Andrew Cagney <cagney@redhat.com>
6982 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6983 (gdb_disassembly): Make "di" non static, always initialize and
6984 cleanup. Always use dis_asm_read_memory.
6985 (gdb_dis_asm_read_memory): Delete function.
6987 2003-05-01 Andrew Cagney <cagney@redhat.com>
6989 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6990 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6992 2003-04-30 Andrew Cagney <cagney@redhat.com>
6994 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6995 "tm_print_insn_info".
6996 (TARGET_PRINT_INSN_INFO): Delete macro.
6997 (dis_asm_read_memory): Delete function declaration.
6998 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6999 (tm_print_insn_info): Delete variable definition.
7000 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7001 * gdbarch.h, gdbarch.c: Re-generate.
7002 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7003 "deprecated_tm_print_insn_info".
7004 * mcore-tdep.c (mcore_dump_insn): Ditto.
7005 * mips-tdep.c (mips_gdbarch_init): Ditto.
7006 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7007 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7008 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7009 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7010 instead of TARGET_PRINT_INSN_INFO, add comment.
7011 * s390-tdep.c (s390_get_frame_info): Instead of
7012 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7013 (s390_check_function_end, s390_is_sigreturn): Ditto.
7014 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7015 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7016 * disasm.c: Include "gdbcore.h".
7017 (_initialize_disasm): New function, initialize
7018 "deprecated_tm_print_insn_info".
7019 (deprecated_tm_print_insn_info): New variable.
7020 (dis_asm_read_memory): Moved from "corefile.c", made static.
7021 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7022 * Makefile.in (disasm.o): Update dependencies.
7024 2003-04-30 Andrew Cagney <cagney@redhat.com>
7026 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7028 2003-04-29 Adam Fedor <fedor@gnu.org>
7030 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7031 * infcall.c (find_function_addr): Make non-static.
7032 * infcall.h (find_function_addr): Declare.
7033 * Makefile.in (eval.o): Update dependencies.
7035 2003-04-28 Adam Fedor <fedor@gnu.org>
7037 * symtab.c (symbol_find_demangled_name): Check for and demangle
7039 (symbol_init_demangled_name): Init for language_objc as well.
7041 2003-04-28 Andrew Cagney <cagney@redhat.com>
7043 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7044 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7045 * gdbarch.h, gdbarch.c: Re-generate.
7046 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7047 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7048 * inferior.h (deprecated_read_fp): Rename read_fp.
7049 (generic_target_read_fp): Delete declaration.
7050 * regcache.c (generic_target_read_fp): Delete function.
7051 (deprecated_read_fp): Replace read_fp, use
7052 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7053 * d10v-tdep.c (d10v_read_fp): Delete function.
7054 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7056 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7057 deprecated_target_read_fp to generic_target_read_fp.
7058 * sh-tdep.c (sh_gdbarch_init): Ditto.
7059 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7061 * frv-tdep.c (frv_gdbarch_init): Ditto.
7063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7064 deprecated_fp_regnum.
7065 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7066 * vax-tdep.c (vax_gdbarch_init): Ditto.
7067 * v850-tdep.c (v850_gdbarch_init): Ditto.
7068 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7069 * sh-tdep.c (sh_gdbarch_init): Ditto.
7070 * s390-tdep.c (s390_gdbarch_init): Ditto.
7071 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7072 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7073 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7074 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7076 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7077 * i386-tdep.c (i386_gdbarch_init): Ditto.
7078 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7079 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7080 * frv-tdep.c (frv_gdbarch_init): Ditto.
7081 * cris-tdep.c (cris_gdbarch_init): Ditto.
7082 * avr-tdep.c (avr_gdbarch_init): Ditto.
7083 * arm-tdep.c (arm_gdbarch_init): Ditto.
7084 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7086 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7087 * v850-tdep.c (v850_gdbarch_init): Ditto.
7088 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7089 * sh-tdep.c (sh_gdbarch_init): Ditto.
7090 * s390-tdep.c (s390_gdbarch_init): Ditto.
7091 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7092 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7093 * mips-tdep.c (mips_gdbarch_init): Ditto.
7094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7095 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7096 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7097 * frv-tdep.c (frv_gdbarch_init): Ditto.
7098 * avr-tdep.c (avr_gdbarch_init): Ditto.
7099 * arm-tdep.c (arm_gdbarch_init): Ditto.
7101 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7102 DEPRECATED_FP_REGNUM.
7103 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7104 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7105 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7106 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7107 (sparc32_register_virtual_type): Ditto.
7108 * sh-tdep.c (sh64_frame_chain): Ditto.
7109 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7110 (sh_nofp_frame_init_saved_regs): Ditto.
7111 (sh64_nofp_frame_init_saved_regs): Ditto.
7112 (sh_fp_frame_init_saved_regs): Ditto.
7113 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7114 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7115 * procfs.c (procfs_fetch_registers): Ditto.
7116 (procfs_store_registers): Ditto.
7117 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7118 (store_inferior_registers, fetch_core_registers): Ditto.
7119 (fetch_kcore_registers, clear_regs): Ditto.
7120 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7121 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7122 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7123 * nlm/i386.c (do_status): Ditto.
7124 * mipsv4-nat.c (supply_gregset): Ditto.
7125 * mips-tdep.c: Ditto for comments.
7126 * mips-nat.c (fetch_inferior_registers): Ditto.
7127 (store_inferior_registers, fetch_core_registers): Ditto.
7128 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7129 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7130 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7131 (i386_do_pop_frame, i386_register_type): Ditto.
7132 * hppa-tdep.c (hppa_frame_chain): Ditto.
7133 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7134 (hppa_pop_frame, hppa_read_fp): Ditto.
7135 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7136 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7137 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7138 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7139 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7140 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7141 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7142 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7143 * blockframe.c: Ditto for comments.
7144 * arch-utils.h: Ditto for comments.
7145 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7146 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7147 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7148 * alpha-tdep.h: Ditto for comments.
7149 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7150 (alpha_cannot_store_register): Ditto.
7151 (alpha_push_dummy_frame): Ditto.
7152 * alpha-nat.c (supply_gregset): Ditto.
7154 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7155 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7156 * config/sparc/tm-sparc.h: Update comment.
7158 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7159 deprecated_read_fp instead of TARGET_READ_FP.
7160 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7161 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7162 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7163 deprecated_read_fp instead of read_fp.
7164 * s390-tdep.c (s390_push_arguments): Ditto.
7165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7166 * frame.h: Ditto in comments.
7167 * frame.c (legacy_get_prev_frame): Ditto.
7168 * dummy-frame.c (dummy_frame_this_id): Ditto.
7169 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7171 2003-04-28 Andrew Cagney <cagney@redhat.com>
7173 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7174 * gdbarch.h, gdbarch.c: Re-generate.
7175 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7176 * vax-tdep.c (_initialize_vax_tdep): Update.
7177 * v850-tdep.c (_initialize_v850_tdep): Update.
7178 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7179 * s390-tdep.c (_initialize_s390_tdep): Update.
7180 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7181 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7182 * mips-tdep.c (_initialize_mips_tdep): Update.
7183 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7184 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7185 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7186 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7187 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7188 * frv-tdep.c (_initialize_frv_tdep): Update.
7189 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7190 (_initialize_cris_tdep): Update.
7191 * arch-utils.c (legacy_print_insn): Update.
7192 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7194 2003-04-26 Adam Fedor <fedor@gnu.org>
7196 * linespec.c (decode_objc): New function to decode ObjC calls
7197 (decode_line_1): Check for ObjC calls (using decode_objc)
7198 * Makefile (linespec.o): Update dependencies.
7200 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7202 * breakpoint.h (struct breakpoint_ops): New.
7203 (struct breakpoint): Add ops member.
7205 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7206 (mention): Use new breakpoint ops member.
7207 (set_raw_breakpoint): Initialize ops field to NULL.
7208 (print_exception_catchpoint, print_one_exception_catchpoint)
7209 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7210 (gnu_v3_exception_catchpoint_ops): New.
7211 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7213 2003-04-25 Adam Fedor <fedor@gnu.org>
7215 * Makefile.in (COMMON_OBS): Add objc-lang.o
7217 2003-04-25 Andrew Cagney <cagney@redhat.com>
7219 * d10v-tdep.c (print_insn): Delete function.
7220 (display_trace): Use TARGET_PRINT_INSN.
7221 (_initialize_d10v_tdep): Do not set tm_print_insn.
7222 (d10v_gdbarch_init): Set print_insn.
7224 2003-04-25 Andrew Cagney <cagney@redhat.com>
7226 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7227 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7228 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7229 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7230 (nr_dmap_regs, a0_regnum): ... new functions.
7231 (d10v_print_registers_info): Use a0_regnum, use register_size.
7232 (d10v_register_byte): Delete function.
7233 (d10v_register_raw_size): Delete function.
7234 (d10v_register_type): Use a0_regnum.
7235 (d10v_print_registers_info): Use a0_regnum.
7236 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7237 (d10v_gdbarch_init): Do not set register_byte or
7238 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7239 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7241 (trace_command): Use XCALLOC.
7242 (print_insn): Delete reference to tm_print_insn.
7243 (saved_regs_unwinder): Use store_unsigned_integer instead of
7245 * frame.h (FRAME_OBSTACK_CALLOC): Define
7247 2003-04-25 David Carlton <carlton@bactrian.org>
7249 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7251 2003-04-24 Adam Fedor <fedor@gnu.org>
7253 * objc-lang.c: Include "valprint.h"
7254 * Makefile.in (objc-lang.o): Update dependencies.
7256 2003-04-24 Adam Fedor <fedor@gnu.org>
7258 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7259 architecture dependant compilation and mark as unimplemented
7260 (until they get put in the gdbarch vector).
7262 2003-04-23 David Carlton <carlton@bactrian.org>
7264 * cp-support.c (cp_find_first_component): Accept 'operator' in
7267 2003-04-23 Andrew Cagney <cagney@redhat.com>
7269 * infcall.c (call_function_by_hand): Eliminate redundant
7270 indentation. Move "saved_async" and "old_cleanups" to where they
7273 2003-04-23 Andrew Cagney <cagney@redhat.com>
7275 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7276 and "buffer". Move the "name" code to where it is needed.
7278 2003-04-23 Andrew Cagney <cagney@redhat.com>
7280 * infcall.c (call_function_by_hand): Move variables "start_sp",
7281 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7282 code to ON_STACK switch branch.
7284 2003-04-23 Andrew Cagney <cagney@redhat.com>
7286 * infcall.c (call_function_by_hand): Make declaration of "i",
7287 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7290 2003-04-23 Andrew Cagney <cagney@redhat.com>
7292 * infcall.c (call_function_by_hand): Delete variable
7293 "n_method_args". Localize "param_type"'s declaration to the loop
7294 that it is used. Reinstate code assigning to said variable -
7295 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7296 Rationalize code using "param_type".
7298 2003-04-22 Andrew Cagney <cagney@redhat.com>
7300 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7301 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7302 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7303 to DEPRECATED_PUSH_RETURN_ADDRESS.
7305 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7307 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7308 on the DWARF2 register number prior to fetching a register.
7310 2003-04-22 J. Brobecker <brobecker@gnat.com>
7312 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7313 Update all the tests using SOFT_FLOAT considering the fact that
7314 this macro was always set to 0.
7315 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7316 considering the fact that this macro was always set to 0.
7317 * hppa-tdep.h (hppa_store_return_value): Likewise.
7318 (hppa_extract_return_value): Likewise.
7320 2003-04-22 J. Brobecker <brobecker@gnat.com>
7322 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7323 the hppa-pro target only.
7325 2003-04-21 J. Brobecker <brobecker@gnat.com>
7327 Ongoing multi-arch conversion effort for HP/UX:
7328 * config/pa/tm-hppa.h: Move all macro that are no longer
7329 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7330 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7332 2003-04-21 J. Brobecker <brobecker@gnat.com>
7334 * config/pa/tm-hppa.h: Obsolete a section that was only used
7337 2003-04-21 J. Brobecker <brobecker@gnat.com>
7339 Ongoing multi-arch conversion for HP/UX.
7340 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7341 if already defined (allows hppa64 to stay non-multiarched for now).
7342 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7344 2003-04-21 Andrew Cagney <cagney@redhat.com>
7346 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7348 2003-04-21 Andrew Cagney <cagney@redhat.com>
7350 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7351 "i386_num_mmx_regs".
7353 2003-04-21 Andrew Cagney <cagney@redhat.com>
7355 * infcall.c: New file.
7356 * infcall.h: New file.
7357 * valarith.c: Include "infcall.h".
7358 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7359 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7360 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7361 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7362 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7363 (SFILES): Add "infcall.c"
7364 (COMMON_OBS): Add "infcall.o".
7365 (infcall.o): Specify dependencies.
7366 * value.h (call_function_by_hand): Delete declaration.
7367 * inferior.h (run_stack_dummy): Delete declaration.
7368 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7369 (run_stack_dummy): Move to "infcall.c", merged into
7370 call_function_by_hand.
7371 * valops.c (call_function_by_hand): Moved to "infcall.c".
7372 (find_function_addr, value_arg_coerce): Ditto.
7373 (unwindonsignal_p, coerce_float_to_double): Ditto.
7374 (_initialize_valops): Move "set/show coerce-float-to-double", and
7375 "set/show unwindonsignal" commands to "infcall.c".
7376 * v850-tdep.c, target.h: Update comments.
7377 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7378 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7379 (sh64_init_extra_frame_info): Update comments.
7380 * mn10300-tdep.c: Update comments.
7381 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7382 * config/sparc/tm-sparc.h: Update comments.
7383 * breakpoint.h: Update comments.
7384 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7385 * arm-tdep.c: Update comment.
7387 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7389 * i386-tdep.c (i386_num_register_names): New variable.
7390 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7391 (MM0_REGNUM): Remove redundant parentheses in define.
7392 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7393 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7394 i386_mxcsr_regnum_p): Remove redundant parentheses.
7395 (i386_register_name): Use i386_num_register_names.
7397 * i386-tdep.c (i386_extract_return_value,
7398 i386_store_return_value): Correct check for availability of
7399 floating-point registers.
7401 * i386-tdep.c (i386_frame_num_args): Remove function.
7402 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7404 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7405 mmx_regnum_to_fp_regnum. Adjust all callers.
7407 * i386-tdep.c (i386_get_longjmp_target): Use
7408 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7409 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7412 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7414 * core-regset.c: Update comments to reflect reality. Re-order
7416 (fetch_core_registers): Use switch instead of if. Remove
7417 redundant prototype.
7419 2003-04-18 Jim Blandy <jimb@redhat.com>
7421 * s390-tdep.c (s390_frame_align): New function.
7422 (s390_gdbarch_init): Register it with the gdbarch object.
7424 2003-04-17 Richard Henderson <rth@redhat.com>
7426 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7428 2003-04-17 Michael Snyder <msnyder@redhat.com>
7429 Karen Bennet <bennet@redhat.com>
7431 Committed by Elena Zannoni <ezannoni@redhat.com>
7432 * gdb_gcore.sh: New script to create a core dump of a process.
7434 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7436 * values.c (value_being_returned): Don't fetch the return
7437 value if the return type is void.
7439 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7441 * thread-db.c: Reindented.
7443 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7445 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7446 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7473 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7475 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7476 the size of ``long double'' to 16, instead of 8.
7478 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7480 * i386-linux-nat.c: Add some whitespace to make things more
7482 (fetch_register, store_register, fetch_inferior_registers,
7483 store_inferior_registers): Get rid of assignment in if-statement.
7484 (store_register): Fix typo in error message.
7486 2003-04-16 Andrew Cagney <cagney@redhat.com>
7488 * utils.c (xmmalloc): Always allocate something, matches
7489 libiberty/xmalloc's semantics.
7490 (xmrealloc, xmcalloc): Ditto.
7492 2003-04-16 Andrew Cagney <cagney@redhat.com>
7494 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7496 (get_frame_type): Initialize unwind and type when needed.
7497 (get_frame_id, frame_register_unwind): Ditto.
7499 2003-04-16 Andrew Cagney <cagney@redhat.com>
7501 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7503 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7504 * sparcl-stub.c: Obsolete file.
7505 * config/sparc/tm-sparclet.h: Obsolete file.
7506 * sparclet-stub.c: Obsolete file.
7507 * sparclet-rom.c: Obsolete file.
7508 * sparcl-tdep.c: Obsolete file.
7509 * config/sparc/tm-sparclite.h: Obsolete file.
7510 * config/sparc/sparclite.mt: Obsolete file.
7511 * config/sparc/sparclet.mt: Obsolete file.
7512 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7513 sparc86x-*-* obsolete.
7515 2003-04-15 David Carlton <carlton@math.stanford.edu>
7517 * Makefile.in (SFILES): Add cp-namespace.c.
7518 (COMMON_OBS): Add cp-namespace.o.
7519 (block.o): Depend on gdb_obstack_h and cp_support_h.
7520 (buildsym.o): Depend on cp_support_h.
7521 (cp-namespace.o): New.
7522 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7523 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7524 (dwarf2read.o): Depend on cp_support_h.
7525 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7526 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7527 processing_current_namespace.
7528 (read_namespace): Update processing_current_namespace; check for
7529 anonymous namespaces.
7530 (dwarf2_name): New function.
7531 (dwarf2_extension): Ditto.
7532 * cp-support.h: Update copyright, contributors.
7533 Add inclusion guards.
7534 Add opaque declaration for structs obstack, block, symbol.
7535 (struct using_direct): New struct.
7536 Add declarations for cp_find_first_component,
7537 cp_entire_prefix_len, processing_has_namespace_info,
7538 processing_current_namespace, cp_is_anonymous,
7539 cp_add_using_directive, cp_initialize_namespace,
7540 cp_finalize_namespace, cp_set_block_scope,
7541 cp_scan_for_anonymous_namespaces.
7542 * cp-namespace.c: New file.
7543 * cp-support.c: Update copyright.
7544 Include ctype.h, gdb_assert.h, gdbcmd.h.
7545 New variable maint_cplus_cmd_list.
7546 (cp_find_first_component): New function.
7547 (cp_entire_prefix_len, maint_cplus_command)
7548 (first_component_command, _initialize_cp_support): Ditto.
7549 * buildsym.c: Include cp-support.h.
7550 New variable using_list.
7551 (add_symbol_to_list): Check for anonymous namespaces.
7552 (finish_block): Set block's scope.
7553 (start_symtab): Initialize C++ namespace support.
7554 (end_symtab): Finalize C++ namespace support.
7555 * block.h: Add opaque declarations for structs
7556 block_namespace_info, using_direct, and obstack.
7557 Add declarations for block_set_scope and block_set_using.
7558 (struct block): Add 'language_specific' member.
7559 (BLOCK_NAMESPACE): New macro.
7560 * block.c: Include gdb_obstack.h and cp-support.h.
7561 (struct block_namespace_info): New struct.
7562 (block_set_scope): New function.
7563 (block_set_using, block_initialize_namespace): Ditto.
7565 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7567 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7568 (locate_base): Return early if there aren't any link map offsets.
7569 (svr4_solib_create_inferior_hook): Warn if shared library support
7572 2003-04-14 David Carlton <carlton@math.stanford.edu>
7574 * symtab.c (symbol_set_names): Add prefix when storing Java names
7575 in hash table. Fix for PR java/1039.
7577 2003-04-14 David Carlton <carlton@math.stanford.edu>
7579 * symtab.c (symbol_set_names): Rename 'name' arg to
7580 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7581 * symtab.h: Change 'name' argument in declaration of
7582 symbol_set_names to 'linkage_name'.
7583 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7585 2003-04-14 Andrew Cagney <cagney@redhat.com>
7587 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7588 return the fully sign-extended register value.
7589 (get_frame_pointer): Ditto.
7590 (mips_pop_frame): Initialize "proc_desc" after checking for a
7593 2003-04-14 Andrew Cagney <cagney@redhat.com>
7595 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7596 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7597 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7598 (mips_push_register): Delete function.
7599 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7602 2003-04-14 Jim Blandy <jimb@redhat.com>
7604 * symmisc.c: #include "gdb_regex.h".
7605 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7607 * maint.c (maintenance_list_command): New function.
7608 (_initialize_maint_cmds): Register the above as commands.
7609 * symtab.h (maintenance_list_symtabs,
7610 maintenance_list_psymtabs): New declarations.
7611 * cli/cli-cmds.c (maintenancelistlist): New variable.
7612 (init_cmd_lists): Initialize it.
7613 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7614 * gdbcmd.h (maintenancelistlist): New declaration.
7615 * Makefile.in (symmisc.o): Update dependencies.
7617 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7619 * s390-nat.c: Include asm/types.h for addr_t.
7621 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7623 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7624 actually incoming type.
7626 2003-04-13 Andrew Cagney <cagney@redhat.com>
7628 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7629 get_next_frame and get_frame_saved_regs.
7631 2003-04-13 Andrew Cagney <cagney@redhat.com>
7633 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7634 of gdbarch_num_regs.
7636 2003-04-13 Andrew Cagney <cagney@redhat.com>
7638 * frame.h: Mention what replaced what in "struct frame_info".
7639 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7640 deprecated_update_frame_base_hack and
7641 deprecated_update_frame_pc_hack.
7642 * hppa-tdep.c: Ditto.
7644 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7646 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7647 to read_reg and update its comment. Remove regnum member.
7648 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7649 Don't call read_reg when setting in_reg. Call read_reg to get
7650 the frame base if it's in a register. Return the register number
7651 on the stack instead of in the context. Remove extra arguments
7653 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7654 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7655 the register number on the expression stack.
7656 (needs_frame_read_reg): Remove extra arguments.
7658 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7660 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7662 (execute_stack_op): All callers updated.
7663 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7664 * dwarf2loc.c (find_location_expression): New function.
7665 (dwarf_expr_frame_base): Call it.
7666 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7667 (dwarf2_tracepoint_var_ref): New function, broken out from
7668 locexpr_tracepoint_var_ref.
7669 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7671 (loclist_read_variable, loclist_read_needs_frame): New functions.
7672 (loclist_describe_location, loclist_tracepoint_var_ref): New
7674 (dwarf2_loclist_funcs): New struct location_funcs.
7675 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7676 (struct dwarf2_locexpr_baton): Add comments.
7677 (dwarf2_loclist_funcs): New extern.
7678 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7679 base_address and base_known.
7680 (dwarf_loc_buffer): New variable.
7681 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7682 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7683 (dwarf2_has_info): Initialize dwarf_loc_offset.
7684 (dwarf2_build_psymtabs): Read in .debug_loc.
7685 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7687 (psymtab_to_symtab_1): Likewise. Move base address calculation
7689 (dwarf2_get_pc_bounds): ... here. Use the base address from
7691 (dwarf2_symbol_mark_computed): Handle location lists.
7693 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7695 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7696 if the linkage name demangled successfully.
7698 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7700 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7701 disassmbly_flavour): Removed.
7703 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7705 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7707 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7709 2003-04-12 Andrew Cagney <cagney@redhat.com>
7711 * frame.h (struct frame_info): Move definition from here ...
7712 * frame.c (struct frame_info): ... to here.
7714 2003-04-12 Andrew Cagney <cagney@redhat.com>
7716 * gdbthread.h (save_infrun_state): Delete parameter
7718 (struct thread_info): Delete field "prev_func_start".
7719 (load_infrun_state): Ditto.
7720 * thread.c (load_infrun_state, save_infrun_state): Update.
7721 * infrun.c (prev_func_start): Delete variable.
7722 (context_switch, init_wait_for_inferior): Update.
7723 (stop_stepping, keep_going): Update.
7725 2003-04-12 Andrew Cagney <cagney@redhat.com>
7727 * gdbarch.sh: Add missing opaque declarations.
7728 * gdbarch.h: Regnerate.
7729 * symtab.h: Add missing opaque declarations.
7730 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7731 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7732 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7733 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7734 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7735 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7736 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7737 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7738 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7739 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7740 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7741 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7742 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7744 2003-04-11 Andrew Cagney <cagney@redhat.com>
7746 * frame.c (get_frame_id): Return this frame's "id".
7747 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7749 (legacy_saved_regs_this_id): Replace function body with
7751 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7752 FRAME_OBSTACK_ZALLOC.
7753 (create_new_frame): Mark the frame ID as valid.
7755 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7757 * Makefile.in (libbfd_h): Added missing setting.
7758 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7759 according to the selected ABI.
7761 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7763 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7765 2003-04-11 Andrew Cagney <cagney@redhat.com>
7767 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7768 SAVED_PC_AFTER_CALL.
7769 * gdbarch.h, gdbarch.c: Regenerate.
7770 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7771 * x86-64-tdep.c (x86_64_init_abi): Update.
7772 * vax-tdep.c (vax_gdbarch_init): Update.
7773 * v850-tdep.c (v850_gdbarch_init): Update.
7774 * sparc-tdep.c (sparc_gdbarch_init): Update.
7775 * sh-tdep.c (sh_gdbarch_init): Update.
7776 * s390-tdep.c (s390_gdbarch_init): Update.
7777 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7778 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7779 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7780 * mips-tdep.c (mips_gdbarch_init): Update.
7781 * mcore-tdep.c (mcore_gdbarch_init): Update.
7782 * m68k-tdep.c (m68k_gdbarch_init): Update.
7783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7784 * ia64-tdep.c (ia64_gdbarch_init): Update.
7785 (ia64_saved_pc_after_call): Update declaration.
7786 * i386ly-tdep.c (i386lynx_init_abi): Update.
7787 * i386-tdep.c (i386_gdbarch_init): Update.
7788 * hppa-tdep.c (hppa_gdbarch_init): Update.
7789 * h8300-tdep.c (h8300_gdbarch_init): Update.
7790 * frv-tdep.c (frv_gdbarch_init): Update.
7791 * cris-tdep.c (cris_gdbarch_init): Update.
7792 * avr-tdep.c (avr_gdbarch_init): Update.
7793 * arm-tdep.c (arm_gdbarch_init): Update.
7794 * alpha-tdep.c (alpha_gdbarch_init): Update.
7795 * ns32knbsd-nat.c (frame_num_args): Update.
7796 * ns32k-tdep.c (umax_frame_num_args): Update.
7797 * mips-tdep.c (mips_init_frame_pc_first): Update.
7798 * infrun.c (step_over_function): Update.
7799 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7800 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7801 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7802 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7803 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7804 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7805 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7806 * arch-utils.c (init_frame_pc_default): Update.
7807 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7808 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7811 2003-04-11 Andrew Cagney <cagney@redhat.com>
7813 * i387-tdep.c: Update copyright.
7814 (i387_to_double): Delete function.
7815 (double_to_i387): Delete function.
7817 2003-04-10 Andrew Cagney <cagney@redhat.com>
7819 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7820 frame's function's address. Simplify.
7821 (d10v_frame_unwind_cache): Check that the frame's function is
7824 2003-04-10 Jim Blandy <jimb@redhat.com>
7826 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7827 call to set_gdbarch_deprecated_push_arguments.
7829 2003-04-10 Andrew Cagney <cagney@redhat.com>
7831 * frame.c (fprint_frame_id): New function.
7832 (fprint_frame_type, fprint_frame): New function.
7833 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7834 (create_sentinel_frame, get_frame_id): Ditto.
7835 (frame_id_p, frame_id_eq): Ditto.
7836 (frame_id_inner, create_new_frame): Ditto.
7837 (legacy_get_prev_frame, get_prev_frame): Ditto.
7838 (deprecated_update_frame_pc_hack): Ditto.
7839 (frame_register_unwind): Ditto.
7840 (deprecated_update_frame_base_hack): Ditto.
7842 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7844 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7845 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7846 frame_chain function.
7847 * Makefile.in: Add dependencies due to above change.
7849 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7851 * blockframe.c (legacy_frame_chain_valid): Move call to
7852 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7855 2003-04-09 Andrew Cagney <cagney@redhat.com>
7857 * frame.h (struct frame_id): Replace "pc" and "base" with
7858 "stack_addr" and "code_addr". Update comments.
7859 (frame_id_build): Update parameter names and comment.
7860 (struct frame_info): Replace "id_p" and "id" with "this_id".
7861 * dummy-frame.c (dummy_frame_this_id): Update.
7862 * breakpoint.c (print_one_breakpoint): Update.
7863 * frame.c (get_frame_id): Update.
7864 (get_frame_base, frame_id_build): Update.
7865 (create_sentinel_frame, legacy_get_prev_frame): Update.
7866 (deprecated_update_frame_base_hack): Update.
7867 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7868 (frame_id_inner): Ditto.
7870 2003-04-09 Andrew Cagney <cagney@redhat.com>
7872 * defs.h (gdb_print_host_address): Make "addr" parameter a
7874 * utils.c (gdb_print_host_address): Update.
7876 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7878 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7879 register number for R0 is 0.
7881 2003-04-09 J. Brobecker <brobecker@gnat.com>
7883 * frame.h (struct gdbarch): Add opaque structure definition
7884 to avoid a compilation warning on LynxOS 4.0.
7886 2003-04-09 Andrew Cagney <cagney@redhat.com>
7888 * frame.h (struct frame_info): Delete field "pc". Replace
7889 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7891 * frame.c (frame_pc_unwind): Update.
7892 (create_sentinel_frame): Do not set "pc".
7893 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7894 (get_frame_pc): Call frame_pc_unwind.
7895 (deprecated_update_frame_pc_hack): Update.
7896 (create_new_frame): Use "pc" not "->pc".
7898 2003-04-09 Andrew Cagney <cagney@redhat.com>
7900 * frame.c (get_frame_id): Eliminate code updating "frame".
7901 (legacy_get_prev_frame): Ditto.
7902 (get_frame_base): Return id.base directly.
7903 (deprecated_update_frame_base_hack): Update "id.base".
7904 * frame.h (struct frame_info): Delete field "frame".
7906 2003-04-09 Andrew Cagney <cagney@redhat.com>
7908 * NEWS: Mention that the "Sequent family" is obsolete.
7909 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7910 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7911 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7912 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7913 * config/i386/tm-ptx4.h: Obsolete file.
7914 * config/i386/tm-ptx.h: Obsolete file.
7915 * symm-tdep.c: Obsolete file.
7916 * config/i386/symmetry.mt: Obsolete file.
7917 * config/i386/tm-symmetry.h: Obsolete file.
7918 * symm-nat.c: Obsolete file.
7919 * config/i386/nm-symmetry.h: Obsolete file.
7920 * config/i386/xm-symmetry.h: Obsolete file.
7921 * config/i386/symmetry.mh: Obsolete file.
7922 * config/i386/nm-ptx4.h: Obsolete file.
7923 * config/i386/ptx4.mh: Obsolete file.
7924 * config/i386/ptx.mt: Obsolete file.
7925 * config/i386/ptx.mh: Obsolete file.
7926 * config/i386/xm-ptx4.h: Obsolete file.
7927 * config/i386/xm-ptx.h: Obsolete file.
7929 2003-04-09 Andrew Cagney <cagney@redhat.com>
7931 Obsolete mips*-*-mach3*.
7932 * NEWS: Mention that mips*-*-mach3* is obsolete.
7933 * m3-nat.c: Obsolete file.
7934 * config/nm-m3.h: Obsolete file.
7935 * config/mips/tm-mipsm3.h: Obsolete file.
7936 * config/mips/mipsm3.mt: Obsolete file.
7937 * config/mips/mipsm3.mh: Obsolete file.
7938 * config/mips/xm-mipsm3.h: Obsolete file.
7939 * mipsm3-nat.c: Obsolete file.
7940 * configure.host: Obsolete mips-dec-mach3*.
7941 * configure.tgt: Obsolete mips*-*-mach3*.
7943 2003-04-09 Andrew Cagney <cagney@redhat.com>
7945 * doublest.h: Update copyright.
7946 (deprecated_store_floating, deprecated_extract_floating): Rename
7947 store_floating and extract_floating. Update comments.
7948 * doublest.c: Update copyright.
7949 (extract_floating_by_length): Replace extract_floating.
7950 (store_floating_by_length): Replace store_floating.
7951 (deprecated_extract_floating): New function.
7952 (deprecated_store_floating): New function.
7953 (extract_typed_floating): Call extract_floating_by_length.
7954 (store_typed_floating): Call store_floating_by_length.
7955 * x86-64-tdep.c (x86_64_store_return_value): Update.
7956 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7957 (sh64_extract_return_value): Update.
7958 (sh_sh4_register_convert_to_virtual): Update.
7959 (sh_sh64_register_convert_to_virtual): Update.
7960 (sh_sh4_register_convert_to_raw): Update.
7961 (sh_sh64_register_convert_to_raw): Update.
7962 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7963 (rs6000_register_convert_to_raw): Update.
7964 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7965 (ia64_register_convert_to_raw): Update.
7966 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7967 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7968 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7969 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7970 (alpha_register_convert_to_raw): Update.
7972 2003-04-08 Andrew Cagney <cagney@redhat.com>
7974 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7975 * gdbarch.h, gdbarch.c: Re-generate.
7976 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7977 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7978 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7979 conditionally, use frame_pc_unwind as an alternative. Add
7981 * arch-utils.c (init_frame_pc_default): Only call
7982 SAVED_PC_AFTER_CALL when available.
7984 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7986 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7987 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7988 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7989 (start_remote): Ditto.
7990 (handle_inferior_event): Ditto.
7991 (save_inferior_status): Ditto.
7992 (restore_inferior_status): Ditto.
7993 * infcmd.c (attach_command): Ditto.
7994 * fork-child.c (startup_inferior): Ditto.
7995 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7996 * alpha-tdep.c (heuristic_proc_start): Ditto.
7997 * mips-tdep.c (heuristic_proc_start): Ditto.
7998 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7999 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8000 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8001 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8002 * remote-vx.c (vx_create_inferior): Ditto.
8004 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8006 * infrun.c (stop_soon_quietly): Make it an enum, to better
8007 override the default behavior of handle_inferior_event.
8008 (clear_proceed_status): Update uses of stop_soon_quietly to
8009 reflect that it is now an enum.
8010 (start_remote): Ditto.
8011 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8012 is set to handle the new GNU/Linux kernel behavior for
8013 attach/sigstop. Update uses of stop_soon_quietly.
8014 * inferior.h (enum stop_kind): New enum.
8015 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8016 Reset normal handle_inferior_event behavior, afterwards.
8017 * fork-child.c (startup_inferior): Update.
8018 * alpha-tdep.c (heuristic_proc_start): Update.
8019 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8020 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8021 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8022 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8023 * remote-vx.c (vx_create_inferior): Update.
8024 * mips-tdep.c (heuristic_proc_start): Update.
8026 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8028 * disasm.c (dump_insns): Move variables inside loop, or they will
8029 be freed more than once, causing wild memory corruptions.
8030 (gdb_disassembly): Look for the substring "-thread",
8031 instead of "-threads" in the target name, to make sure to find
8032 the 'multi-thread' target. Also, make sure we do the right thing
8033 with the "core" target.
8035 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8037 * mips-tdep.c (mips_print_fp_register): New function, created from
8038 do_fp_register_row(). Registers are now (also) printed as hex.
8039 Only one register is printed per row.
8040 (mips_print_register, do_fp_register_row): Print floating point
8041 registers with mips_print_fp_register().
8043 2003-04-06 Andrew Cagney <cagney@redhat.com>
8045 * valprint.h (inspect_it): Add extern declaration.
8046 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8047 (selectors_info, classes_info): Ditto.
8048 (find_objc_msgcall): Fix indentation.
8049 (objc_printstr): Delete extern declarations.
8051 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8053 2003-04-06 Andrew Cagney <cagney@redhat.com>
8055 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8057 * frame.c (legacy_saved_regs_this_id): Update.
8058 (legacy_get_prev_frame): Update.
8059 * xstormy16-tdep.c: Update comment.
8060 * sparc-tdep.c (sparc_frame_chain): Update comment.
8061 * blockframe.c (legacy_frame_chain_valid): Update.
8063 2003-04-06 Andrew Cagney <cagney@redhat.com>
8065 * valprint.c (val_print_type_code_int): Delete #ifdef
8066 PRINT_TYPELESS_INTEGER code.
8068 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8069 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8070 multi-arch definition.
8071 * gdbarch.h: Re-generate.
8073 2003-04-05 Andrew Cagney <cagney@redhat.com>
8075 Eliminate FRAME_FIND_SAVED_REGS.
8076 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8077 Change FSR parameter to a pointer.
8078 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8079 Assume FSR parameter is a pointer.
8080 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8082 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8083 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8084 saved_regs a pointer.
8085 (hppa_frame_saved_pc): Ditto.
8086 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8087 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8089 (restore_pc_queue): Make fsr a pointer.
8090 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8091 (hppa_frame_chain): Make saved_regs a pointer, call
8092 hppa_frame_init_saved_regs.
8093 * sparc-tdep.c: Include "gdb_assert.h".
8094 (sparc_frame_find_saved_regs): Replace internal_error with
8096 * remote-vxsparc.c (vx_read_register): Delete reference to
8097 FRAME_FIND_SAVED_REGS.
8098 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8099 * gdbarch.h: Regenerate.
8100 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8101 (deprecated_get_frame_saved_regs): Delete declaration.
8102 (struct frame_saved_regs): Delete definition.
8103 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8104 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8105 (hppa_frame_find_saved_regs): Delete declaration.
8106 (FRAME_FIND_SAVED_REGS): Delete macro.
8107 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8108 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8109 FRAME_FIND_SAVED_REGS in comment.
8111 2003-04-05 Andrew Cagney <cagney@redhat.com>
8113 * frame.c (frame_func_unwind, get_frame_func): New functions.
8114 * frame.h (get_frame_func, frame_func_unwind): Declare.
8115 (struct frame_info): Add field "prev_func" for caching the
8116 previous frame's function address.
8117 * arm-tdep.c (arm_frameless_function_invocation): Combine
8118 get_pc_function_start and get_frame_pc into get_frame_func.
8119 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8120 (sh64_nofp_frame_init_saved_regs): Ditto.
8121 * s390-tdep.c (s390_function_start): Ditto.
8122 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8123 (rs6000_frameless_function_invocation): Ditto.
8124 (rs6000_frame_saved_pc): Ditto.
8125 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8126 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8127 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8128 (i386_frame_init_saved_regs): Ditto.
8129 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8130 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8131 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8132 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8133 * blockframe.c (frameless_look_for_prologue): Ditto.
8135 2003-04-05 Andrew Cagney <cagney@redhat.com>
8137 * frame.c (legacy_get_prev_frame): Link prev to next at the
8138 function start. Update comments.
8140 2003-04-05 Andrew Cagney <cagney@redhat.com>
8142 * frame.c (get_frame_id): Update comment.
8143 (legacy_get_prev_frame): Update comment.
8144 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8145 * gdbarch.h: Regenerate.
8146 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8147 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8149 2003-04-05 Andrew Cagney <cagney@redhat.com>
8151 * stack.c (print_frame_info): Use get_frame_pc.
8153 2003-04-04 Andrew Cagney <cagney@redhat.com>
8155 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8156 the frame's type from the unwinder.
8157 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8158 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8159 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8160 (get_frame_base_address): Use get_frame_type.
8161 (get_frame_locals_address, get_frame_args_address): Ditto.
8162 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8163 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8164 (struct frame_info): Add comment explaining why the frame contains
8166 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8167 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8168 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8170 * frame-unwind.h: Include "frame.h".
8171 (struct frame_unwind): Add "type" field.
8172 * Makefile.in (frame_unwind_h): Add $(frame_h).
8174 2003-04-04 Andrew Cagney <cagney@redhat.com>
8176 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8177 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8178 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8180 (d10v_unwind_dummy_id): Use frame_id_build.
8181 * frame.c (find_frame_sal): Use get_frame_pc.
8182 (create_new_frame): Use deprecated_update_frame_pc_hack and
8183 deprecated_update_frame_base_hack.
8184 (create_sentinel_frame): Add comment about ->pc going away.
8185 (get_prev_frame): Add comment about ->pc going away.
8186 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8187 frame_id_build, deprecated_update_frame_pc_hack and
8188 deprecated_update_frame_base_hack.
8189 (select_frame): Use get_frame_pc.
8190 (legacy_saved_regs_this_id): Use frame_id_build.
8192 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8194 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8195 signed integer case.
8196 (classify_argument): Handle enumerations and references.
8198 2003-04-04 Andrew Cagney <cagney@redhat.com>
8200 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8203 2003-04-01 Adam Fedor <fedor@gnu.org>
8205 * gdb/objc-lang.c (selectors_info): Replace calls to
8206 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8207 SYMBOL_NATURAL_NAME.
8208 (classes_info, find_methods): Likewise.
8210 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8212 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8213 ``mach'' to the value determined by bfd_default_set_arch_mach().
8215 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8217 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8218 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8219 (mi-cmd-file.o): Update dependencies.
8221 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8223 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8224 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8226 2003-04-01 Adam Fedor <fedor@gnu.org>
8228 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8229 * language.h (struct language_defn): Add la_demangle.
8230 (language_demangle): Declare.
8231 * language.c (language_demangle): New function.
8232 (unk_lang_demangle): Likewise.
8233 (unknown_language_defn, auto_language_defn, local_language_defn):
8234 Add ukn_lang_demangle.
8235 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8236 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8237 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8238 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8239 * jv-lang.c (java_demangle): New function
8240 (java_language_defn): Use it for la_demangle element.
8241 * objc-lang.c (objc_demangle): Add options argument
8242 (objc_language_defn): Use objc_demangle for la_demangle element.
8243 * maint.c (maintenance_demangle): Replace switch with
8244 call to language_demangle.
8245 * utils.c (fprintf_symbol_filtered): Likewise.
8247 2003-04-01 Andrew Cagney <cagney@redhat.com>
8249 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8250 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8251 PRINT_TYPELESS_INTEGER.
8252 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8253 PUSH_RETURN_ADDRESS.
8255 2003-04-01 Andrew Cagney <cagney@redhat.com>
8257 * Makefile.in (d10v-tdep.o): Update dependencies.
8258 * d10v-tdep.c: Include "frame-base.h".
8259 (d10v_frame_unwind): Make constant.
8260 (d10v_frame_base_address): New function.
8261 (d10v_frame_base): New variable.
8262 (d10v_gdbarch_init): Set frame_base default.
8263 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8265 (d10v_frame_unwind_cache): Set and use "prev_sp".
8266 (d10v_frame_this_id): Use the previous frame's inner most stack
8267 address and this frame's func address for the frame ID. Use
8268 frame_id_build. Don't analyze beyond the current instruction.
8270 2003-04-01 Andrew Cagney <cagney@redhat.com>
8272 * frame.h (get_frame_locals_address, get_frame_args_address):
8273 Refer to the base address, instead of the address of the first
8276 2003-04-01 Andrew Cagney <cagney@redhat.com>
8278 Add frame debug info addresses:
8279 * frame-base.c: New file.
8280 * frame-base.h: New file.
8281 * frame.h (struct frame_base): Add opaque declaration.
8282 (get_frame_base): Update comment.
8283 (get_frame_base_address): Declare.
8284 (get_frame_locals_address): Declare.
8285 (get_frame_args_address): Declare.
8286 (struct frame_info): Add "base" and "base_cache". Update
8287 comments on the unwinder.
8288 * frame.c: Include "frame-base.h".
8289 (get_frame_locals_address): New function.
8290 (get_frame_base_address): New function.
8291 (get_frame_args_address): New function.
8292 * findvar.c (read_var_value): Use get_frame_locals_address and
8293 get_frame_args_address.
8294 * stack.c (frame_info): Use get_frame_locals_address and
8295 get_frame_args_address.
8296 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8297 moved to "frame-base.c".
8298 * printcmd.c (print_frame_nameless_args): Ditto.
8299 * symtab.h (address_class): Update comments.
8300 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8301 get_frame_base_address.
8302 * dwarf2expr.c (execute_stack_op): Ditto.
8303 * Makefile.in (frame_base_h): Define.
8304 (frame.o): Update dependencies.
8305 (frame-base.o): Add dependencies.
8306 (SFILES): Add frame-base.c.
8307 (COMMON_OBS): Add frame-base.o.
8309 2003-04-01 Andrew Cagney <cagney@redhat.com>
8311 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8312 CALL_DUMMY_LENGTH): Ditto.
8313 * gdbarch.c: Re-generate.
8314 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8315 (CALL_DUMMY_LENGTH): Delete macro.
8316 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8317 * arm-tdep.c (arm_gdbarch_init): Ditto.
8318 * avr-tdep.c (avr_gdbarch_init): Ditto.
8319 * cris-tdep.c (cris_gdbarch_init): Ditto.
8320 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8321 * frv-tdep.c (frv_gdbarch_init): Ditto.
8322 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8323 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8324 * i386-tdep.c (i386_gdbarch_init): Ditto.
8325 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8327 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8328 * mips-tdep.c (mips_gdbarch_init): Ditto.
8329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8330 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8331 * s390-tdep.c (s390_gdbarch_init): Ditto.
8332 * sh-tdep.c (sh_gdbarch_init): Ditto.
8333 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8334 * v850-tdep.c (v850_gdbarch_init): Ditto.
8335 * vax-tdep.c (vax_gdbarch_init): Ditto.
8336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8338 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8340 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8342 2003-04-01 Andrew Cagney <cagney@redhat.com>
8344 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8345 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8346 * gdbarch.h, gdbarch.c: Re-generate.
8347 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8348 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8349 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8350 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8351 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8352 * infcmd.c (run_stack_dummy): Simplify assuming
8353 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8354 * infrun.c (handle_inferior_event): Ditto.
8355 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8356 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8357 * arm-tdep.c (arm_gdbarch_init): Ditto.
8358 * avr-tdep.c (avr_gdbarch_init): Ditto.
8359 * cris-tdep.c (cris_gdbarch_init): Ditto.
8360 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8361 * frv-tdep.c (frv_gdbarch_init): Ditto.
8362 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8363 * i386-tdep.c (i386_gdbarch_init): Ditto.
8364 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8366 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8367 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8368 * mips-tdep.c (mips_gdbarch_init): Ditto.
8369 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8370 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8371 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8372 * s390-tdep.c (s390_gdbarch_init): Ditto.
8373 * sh-tdep.c (sh_gdbarch_init): Ditto.
8374 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8375 * v850-tdep.c (v850_gdbarch_init): Ditto.
8376 * vax-tdep.c (vax_gdbarch_init): Ditto.
8377 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8379 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8381 * symfile.c (symfile_relocate_debug_section): Update call to
8382 bfd_simple_get_relocated_section_contents.
8384 2003-03-31 Andrew Cagney <cagney@redhat.com>
8386 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8387 * gdbarch.h, gdbarch.c: Regenerate.
8388 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8389 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8391 * frame.h (generic_fix_call_dummy): Delete declaration.
8392 * dummy-frame.h: Update comment.
8393 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8394 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8396 * sh-tdep.c (sh_gdbarch_init): Ditto.
8397 * s390-tdep.c (s390_gdbarch_init): Ditto.
8398 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8399 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8401 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8402 * i386-tdep.c (i386_gdbarch_init): Ditto.
8403 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8404 * frv-tdep.c (frv_gdbarch_init): Ditto.
8405 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8406 * cris-tdep.c (cris_gdbarch_init): Ditto.
8407 * avr-tdep.c (avr_gdbarch_init): Ditto.
8408 * arm-tdep.c (arm_gdbarch_init): Ditto.
8410 2003-03-31 J. Brobecker <brobecker@gnat.com>
8412 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8413 (INIT_FRAME_AP): Likewise.
8414 (EXTRA_FRAME_INFO): Likewise.
8416 2003-03-31 Andrew Cagney <cagney@redhat.com>
8418 * gdbarch.sh: Include "symfile.h".
8419 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8420 * gdbarch.h, gdbarch.c: Re-generate.
8421 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8422 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8423 call_dummy_address, the default is at entry_point_address.
8424 * v850-tdep.c (v850_gdbarch_init): Ditto.
8425 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8426 * sh-tdep.c (sh_gdbarch_init): Ditto.
8427 * s390-tdep.c (s390_gdbarch_init): Ditto.
8428 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8429 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8430 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8431 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8432 * i386-tdep.c (i386_gdbarch_init): Ditto.
8433 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8434 * frv-tdep.c (frv_gdbarch_init): Ditto.
8435 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8436 * cris-tdep.c (cris_gdbarch_init): Ditto.
8437 * arm-tdep.c (arm_gdbarch_init): Ditto.
8439 2003-03-31 Andrew Cagney <cagney@redhat.com>
8441 * gdbarch.sh (CALL_DUMMY_P): Delete.
8442 * gdbarch.h, gdbarch.c: Re-generate.
8443 * inferior.h (CALL_DUMMY_P): Delete macro.
8444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8445 * vax-tdep.c (vax_gdbarch_init): Update.
8446 * v850-tdep.c (v850_gdbarch_init): Update.
8447 * sparc-tdep.c (sparc_gdbarch_init): Update.
8448 * sh-tdep.c (sh_gdbarch_init): Update.
8449 * s390-tdep.c (s390_gdbarch_init): Update.
8450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8451 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8452 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8453 * mips-tdep.c (mips_gdbarch_init): Update.
8454 * mcore-tdep.c (mcore_gdbarch_init): Update.
8455 * m68k-tdep.c (m68k_gdbarch_init): Update.
8456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8457 * ia64-tdep.c (ia64_gdbarch_init): Update.
8458 * i386-tdep.c (i386_gdbarch_init): Update.
8459 * h8300-tdep.c (h8300_gdbarch_init): Update.
8460 * frv-tdep.c (frv_gdbarch_init): Update.
8461 * d10v-tdep.c (d10v_gdbarch_init): Update.
8462 * cris-tdep.c (cris_gdbarch_init): Update.
8463 * breakpoint.c (deprecated_frame_in_dummy): Update.
8464 * avr-tdep.c (avr_gdbarch_init): Update.
8465 * alpha-tdep.c (alpha_gdbarch_init): Update.
8466 * arm-tdep.c (arm_gdbarch_init): Update.
8467 * dummy-frame.c (dummy_frame_this_id): Update comments.
8468 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8469 * frame.c (legacy_get_prev_frame): Ditto.
8470 * valops.c (call_function_by_hand): Delete function.
8471 (hand_function_call): Rename to call_function_by_hand
8473 2003-03-30 Andrew Cagney <cagney@redhat.com>
8475 2002-11-10 Klee Dienes <kdienes@apple.com>
8476 * value.h (struct value): Update comment.
8478 2003-03-30 Andrew Cagney <cagney@redhat.com>
8480 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8482 (d10v_gdbarch_init): Do not set fp_regnum.
8484 * frame.c (get_frame_base): Force ID initialization.
8485 (get_prev_frame): Move computation of the frame ID from here ...
8486 (get_frame_id): ... to here.
8487 (legacy_get_prev_frame): Mark the frame ID as valid.
8488 * frame.h (struct frame_info): Add field "id_p".
8490 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8492 * i386-tdep.c (i386_store_struct_return): Removed.
8493 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8495 2003-03-30 Andrew Cagney <cagney@redhat.com>
8497 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8498 * gdbarch.h, gdbarch.c: Regenerate.
8499 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8501 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8502 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8503 * i386-tdep.c (i386_gdbarch_init): Ditto.
8504 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8505 * cris-tdep.c (cris_gdbarch_init): Ditto.
8506 * vax-tdep.c (vax_gdbarch_init): Ditto.
8507 * s390-tdep.c (s390_gdbarch_init): Ditto.
8508 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8509 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8510 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8511 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8512 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8513 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8514 * sparc-tdep.c (sparc_gdbarch_init): Update.
8515 * sh-tdep.c (sh_gdbarch_init): Update.
8516 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8517 * mips-tdep.c (mips_gdbarch_init): Update.
8518 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8519 * ia64-tdep.c (ia64_gdbarch_init): Update.
8520 * frv-tdep.c (frv_gdbarch_init): Update.
8521 * avr-tdep.c (avr_gdbarch_init): Update.
8522 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8523 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8524 instead of when push_dummy_call is not available.
8526 2003-03-30 Andrew Cagney <cagney@redhat.com>
8528 * infttrace.c: Include "gdbthread.h".
8529 (parent_attach_all): Fix function signature.
8530 (call_ptrace): Update call.
8531 * Makefile.in (infttrace.o): Update dependencies.
8533 2003-03-30 Andrew Cagney <cagney@redhat.com>
8535 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8536 PUSH_RETURN_ADDRESS.
8537 * gdbarch.h, gdbarch.c: Regenerate.
8538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8539 * x86-64-tdep.c (x86_64_init_abi): Update.
8540 * v850-tdep.c (v850_gdbarch_init): Update.
8541 * sparc-tdep.c (sparc_gdbarch_init): Update.
8542 * sh-tdep.c (sh_gdbarch_init): Update.
8543 * s390-tdep.c (s390_gdbarch_init): Update.
8544 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8545 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8546 * mips-tdep.c (mips_gdbarch_init): Update.
8547 * mcore-tdep.c (mcore_gdbarch_init): Update.
8548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8549 * ia64-tdep.c (ia64_gdbarch_init): Update.
8550 * i386-tdep.c (i386_gdbarch_init): Update.
8551 * h8300-tdep.c (h8300_gdbarch_init): Update.
8552 * frv-tdep.c (frv_gdbarch_init): Update.
8553 * cris-tdep.c (cris_gdbarch_init): Update.
8554 * avr-tdep.c (avr_gdbarch_init): Update.
8555 * arm-tdep.c (arm_gdbarch_init): Update.
8556 * valops.c (hand_function_call): Update.
8558 2003-03-29 Andrew Cagney <cagney@redhat.com>
8560 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8561 sizeof_call_dummy_words.
8562 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8564 * gdbarch.h: Regenerate.
8566 2003-03-29 Andrew Cagney <cagney@redhat.com>
8568 * infttrace.h: New file.
8569 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8570 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8571 (hpread_read_doc_function_type): Detect an initialized type1.
8572 (hpread_quick_traverse): Initialize mod_name_string.
8573 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8574 (som_solib_get_solib_by_pc): Declare.
8575 (so_lib_thread_start_addr): Declare.
8576 (no_shared_libraries): Declare.
8577 * somread.c (init_import_symbols): Make static. Add forward
8579 * config/pa/nm-hppah.h: Include "infttrace.h" for
8581 (hppa_insert_hw_watchpoint): Declare.
8582 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8583 * hppah-nat.c: Include "gdb_string.h".
8584 (parent_attach_all): Delete extern declaration, moved to
8586 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8588 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8589 * Makefile.in (infttrace_h): Define.
8590 (hpread.o): Update dependencies.
8591 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8592 * hppa-hpux-tdep.c: Include "gdb_string.h".
8593 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8594 * infrun.c (handle_inferior_event): Always initialize
8595 stepped_after_stopped_by_watchpoint. Add default and remove
8596 fallthrough in switch statement.
8597 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8599 (hppa_remove_hw_watchpoint): Ditto.
8601 2003-03-29 Andrew Cagney <cagney@redhat.com>
8603 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8606 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8608 * arm-tdep.c (arm_push_arguments): Delete.
8609 (struct stack_item): New type.
8610 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8611 (arm_store_struct_return): Delte.
8612 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8613 arm_push_arguments or arm_store_struct_return.
8615 2003-03-28 Andrew Cagney <cagney@redhat.com>
8617 * Makefile.in (d10v-tdep.o): Update dependencies.
8618 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8619 * d10v-tdep.c: Include "remote.h".
8620 (target_resume_hook): Delete extern declaration.
8621 (target_wait_loop_hook): Ditto.
8622 (tdisassemble_command): Eliminate assignment in "if" conditional.
8623 (d10v_ts2_register_sim_regno): Eliminate call to
8624 legacy_register_sim_regno.
8625 (d10v_ts3_register_sim_regno): Ditto.
8627 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8629 * thread.c: Reindented.
8631 * linux-proc.c: Ditto.
8633 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8635 * MAINTAINERS (write after approval): Add myself.
8637 2003-03-27 Theodore A. Roth <troth@openavr.org>
8639 * objc-exp.y: Add missing semi-colons.
8641 2003-03-27 Andrew Cagney <cagney@redhat.com>
8643 * regcache.c (write_sp): Delete function and references.
8644 * inferior.h (write_sp): Delete declaration.
8645 * valops.c (hand_function_call): Replace write_sp with
8647 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8648 (sparc_pop_frame): Ditto.
8650 2003-03-27 Andrew Cagney <cagney@redhat.com>
8652 * NEWS: Mention removal of support for hppa*-*-bsd* and
8653 hppa*-*-osf* natives, and hppa*-*-pro* target.
8654 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8655 * config/pa/xm-pa.h: Obsolete file.
8656 * config/pa/xm-hppab.h: Obsolete file.
8657 * config/pa/nm-hppab.h: Obsolete file.
8658 * config/pa/tm-hppab.h: Obsolete file.
8659 * config/pa/tm-hppao.h: Obsolete file.
8660 * config/pa/nm-hppao.h: Obsolete file.
8661 * config/pa/tm-pro.h: Obsolete file.
8662 * config/pa/hppaosf.mt: Obsolete file.
8663 * config/pa/hppaosf.mh: Obsolete file.
8664 * config/pa/hppapro.mt: Obsolete file.
8665 * config/pa/hppabsd.mt: Obsolete file.
8666 * config/pa/hppabsd.mh: Obsolete file.
8667 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8668 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8671 2003-03-27 Andrew Cagney <cagney@redhat.com>
8673 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8674 push_arguments. Don't set push_return_address or write_sp.
8675 (d10v_push_dummy_call): Replace d10v_push_arguments.
8676 (d10v_push_return_address, d10v_write_sp): Delete function,
8677 handled by push_dummy_call.
8679 2003-03-26 Andrew Cagney <cagney@redhat.com>
8681 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8682 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8683 regcache and dummy_addr parameters.
8684 * gdbarch.h, gdbarch.c: Re-generate.
8685 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8686 available; assume it will handle stack alignment and return
8687 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8688 legacy_push_arguments.
8689 (legacy_push_arguments): Rename default_push_arguments.
8690 * value.h (legacy_push_arguments): Rename default_push_arguments.
8691 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8692 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8693 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8694 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8695 * config/i386/tm-symmetry.h: Update.
8696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8697 * x86-64-tdep.c (x86_64_init_abi): Update.
8698 * v850-tdep.c (v850_gdbarch_init): Update.
8699 * sparc-tdep.c (sparc_gdbarch_init): Update.
8700 * sh-tdep.c (sh_gdbarch_init): Update.
8701 * s390-tdep.c (s390_gdbarch_init): Update.
8702 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8703 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8704 * mips-tdep.c (mips_gdbarch_init): Update.
8705 * mcore-tdep.c (mcore_gdbarch_init): Update.
8706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8707 * ia64-tdep.c (ia64_gdbarch_init): Update.
8708 * i386-tdep.c (i386_gdbarch_init): Update.
8709 * hppa-tdep.c (hppa_gdbarch_init): Update.
8710 * h8300-tdep.c (h8300_gdbarch_init): Update.
8711 * frv-tdep.c (frv_gdbarch_init): Update.
8712 * d10v-tdep.c (d10v_gdbarch_init): Update.
8713 * cris-tdep.c (cris_gdbarch_init): Update.
8714 * avr-tdep.c (avr_gdbarch_init): Update.
8715 * arm-tdep.c (arm_gdbarch_init): Update.
8716 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8717 * alpha-tdep.c (alpha_gdbarch_init): Update.
8719 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8721 * signals/signals.c (do_target_signal_to_host): Correct realtime
8724 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8726 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8727 (struct sal_chain, map_catch_names): Remove.
8728 (catch_exception_command_1): Don't call
8729 handle_gnu_4_16_catch_command.
8731 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8733 From Mark Dettinger <dettinge@de.ibm.com>:
8734 * dwarf2cfi.c (read_2u): Increment pointer by two.
8736 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8738 * signals/signals.c: Fix typos in last change.
8740 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8742 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8743 not already defined. Use __SIGRTMIN if available.
8744 (target_signal_from_host): Remove SIGRTMIN block.
8745 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8746 the signal is within the realtime range.
8748 2003-03-25 Adam Fedor <fedor@gnu.org>
8750 * Makefile.in (infrun.o): Add $(language_h)
8751 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8752 for language specific trampolines.
8753 * language.h (struct language_defn): Add skip_trampoline.
8754 (skip_language_trampoline): Declare.
8755 * language.c (unk_lang_trampoline, skip_language_trampoline):
8757 (unknown_language_defn, auto_language_defn, local_language_defn):
8758 Add ukn_lang_trampoline.
8759 * ada-lang.c (ada_language_defn): Add NULL for language
8760 specific skip_trampoline.
8761 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8762 scm-lang.c: Likewise.
8763 * objc-lang.c (objc_skip_trampoline): New function.
8764 (objc_language_defn): Add objc_skip_trampoline.
8766 2003-03-25 Andrew Cagney <cagney@redhat.com>
8768 * frame.c (get_prev_frame): Delay validating a frame's ID -
8769 non-NULL, didn't go backwards - until an attempt to unwind it to
8772 2003-03-25 Andrew Cagney <cagney@redhat.com>
8774 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8775 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8776 * gdbarch.h, gdbarch.c: Re-generate.
8777 * config/sparc/tm-sparc.h
8778 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8779 * sparc-tdep.c (sparc_gdbarch_init): Set
8780 deprecated_extra_stack_alignment_needed.
8781 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8783 extra_stack_alignment_needed.
8784 * v850-tdep.c (v850_gdbarch_init): Ditto.
8785 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8786 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8787 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8788 * cris-tdep.c (cris_gdbarch_init): Ditto.
8789 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8792 2003-03-25 Andrew Cagney <cagney@redhat.com>
8794 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8795 STORE_STRUCT_RETURN.
8796 * gdbarch.h, gdbarch.c: Regenerate.
8797 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8798 (d10v_push_arguments): Set the struct return register.
8799 (d10v_gdbarch_init): Update.
8800 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8801 * x86-64-tdep.c (x86_64_init_abi): Update.
8802 * vax-tdep.c (vax_gdbarch_init): Update.
8803 * v850-tdep.c (v850_gdbarch_init): Update.
8804 * sparc-tdep.c (sparc_gdbarch_init): Update.
8805 * sh-tdep.c (sh_gdbarch_init): Update.
8806 * s390-tdep.c (s390_gdbarch_init): Update.
8807 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8808 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8809 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8810 * mips-tdep.c (mips_gdbarch_init): Update.
8811 * mcore-tdep.c (mcore_gdbarch_init): Update.
8812 * m68k-tdep.c (m68k_gdbarch_init): Update.
8813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8814 * ia64-tdep.c (ia64_gdbarch_init): Update.
8815 * i386-tdep.c (i386_gdbarch_init): Update.
8816 * hppa-tdep.c (hppa_gdbarch_init): Update.
8817 * h8300-tdep.c (h8300_gdbarch_init): Update.
8818 * frv-tdep.c (frv_gdbarch_init): Update.
8819 * cris-tdep.c (cris_gdbarch_init): Update.
8820 * avr-tdep.c (avr_gdbarch_init): Update.
8821 * arm-tdep.c (arm_gdbarch_init): Update.
8822 * alpha-tdep.c (alpha_gdbarch_init): Update.
8824 2003-03-25 Andrew Cagney <cagney@redhat.com>
8826 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8827 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8828 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8829 * gdbarch.h, gdbarch.c: Regenerate.
8830 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8831 call_dummy_stack_adjust_p.
8832 * vax-tdep.c (vax_gdbarch_init): Ditto.
8833 * v850-tdep.c (v850_gdbarch_init): Ditto.
8834 * sh-tdep.c (sh_gdbarch_init): Ditto.
8835 * s390-tdep.c (s390_gdbarch_init): Ditto.
8836 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8837 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8838 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8839 * mips-tdep.c (mips_gdbarch_init): Ditto.
8840 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8841 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8843 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8844 * i386-tdep.c (i386_gdbarch_init): Ditto.
8845 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8846 * frv-tdep.c (frv_gdbarch_init): Ditto.
8847 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8848 * cris-tdep.c (cris_gdbarch_init): Ditto.
8849 * avr-tdep.c (avr_gdbarch_init): Ditto.
8850 * arm-tdep.c (arm_gdbarch_init): Ditto.
8851 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8852 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8853 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8854 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8855 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8856 call_dummy_stack_adjust_p.
8857 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8858 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8859 * sparc-tdep.c (sparc32_push_arguments): Update.
8860 * valops.c (hand_function_call): Update.
8862 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8865 set_gdbarch_char_signed.
8867 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8870 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8872 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8874 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8875 (_initialize_arm_tdep): Don't set tm_print_insn.
8877 2003-03-24 Adam Fedor <fedor@gnu.org>
8879 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8880 * objc-lang.h: Add multiple inclusion protection.
8881 (start_msglist, add_msglist, end_msglist): Additional declarations.
8883 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8885 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8886 value was renamed to ARM_FLOAT_SOFT_FPA.
8888 2003-03-23 Andrew Cagney <cagney@redhat.com>
8890 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8891 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8892 * gdbarch.h, gdbarch.c: Regenerate.
8893 * valops.c (hand_function_call): Update.
8894 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8895 * frame.c (legacy_saved_regs_this_id): Update.
8896 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8897 * dummy-frame.h: Update.
8898 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8899 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8900 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8901 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8902 * config/m68k/tm-sun3.h: Update.
8903 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8905 * x86-64-tdep.c (x86_64_init_abi): Update.
8906 * vax-tdep.c (vax_gdbarch_init): Update.
8907 * v850-tdep.c (v850_gdbarch_init): Update.
8908 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8909 * sh-tdep.c (sh_gdbarch_init): Update.
8910 * s390-tdep.c (s390_gdbarch_init): Update.
8911 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8912 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8913 (frame_get_saved_regs): Update.
8914 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8915 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8916 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8917 * mips-tdep.c (mips_gdbarch_init): Update.
8918 * mcore-tdep.c (mcore_gdbarch_init): Update.
8919 * m68k-tdep.c (m68k_gdbarch_init): Update.
8920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8921 * ia64-tdep.c (ia64_gdbarch_init): Update.
8922 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8923 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8924 (i386_interix_back_one_frame): Update.
8925 * hppa-tdep.c (hppa_gdbarch_init): Update.
8926 (hppa_init_extra_frame_info): Update.
8927 * h8300-tdep.c (h8300_gdbarch_init): Update.
8928 * frv-tdep.c (frv_gdbarch_init): Update.
8929 * cris-tdep.c (cris_gdbarch_init): Update.
8930 * avr-tdep.c (avr_gdbarch_init): Update.
8931 * arm-tdep.c (arm_gdbarch_init): Update.
8932 * alpha-tdep.c (alpha_gdbarch_init): Update.
8934 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8936 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8937 (arm_get_fp_model): Declare.
8938 * arm-tdep.c (fp_model_strings): New string array.
8939 (arm_fp_model, current_fp_model): New variables.
8940 (arm_get_fp_model): New function.
8941 (arm_set_fp): New function.
8942 (set_fp_model_sfunc): New function.
8943 (show_fp_model): New function.
8944 (_initialize_arm_tdep): Add new command to set/show the FPU.
8945 (arm_extract_return_value): Use arm_get_fp_model.
8946 (arm_store_return_value): Likewise.
8947 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8948 to initialize the floating-point data types.
8949 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8952 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8954 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8955 the current setting of each value.
8956 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8957 new_set and new_show. Use add_setshow_cmd_full and
8958 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8959 commands and add new version as subcommands of "set/show arm".
8961 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8963 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8964 (set_arm_command, show_arm_command): New functions.
8965 (_initialize_arm_tdep): Add them.
8966 (num_disassembly_options): Renamed from num_flavor_options.
8967 (valid_disassembly_styles): Renamed from valid_flavors.
8968 (disassembly_style): Renamed from disassembly_flavor.
8969 (set_disassembly_style_sfunc): Renamed from
8970 set_disassembly_flavor_sfunc.
8971 (set_disassembly_style): Renamed from set_disassembly_flavor.
8972 (arm_othernames): Updated.
8973 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8974 command. Add "set/show arm disassembly" commands. Deprecate
8975 "othernames" command.
8977 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8979 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8980 (arm-tdep.o): Depend on elf_arm_h.
8982 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8984 * Makefile.in (coff_internal_h): Define.
8985 (arm-tdep.o): Update dependencies.
8987 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8989 * arm-tdep.c (prologue_cache): Delete.
8990 (check_prologue_cache, save_prologue_cache): Delete.
8991 (arm_scan_prologue): Don't check or update the prologue_cache.
8992 (arm_gdb_arch_init): Don't initialize it.
8993 (_initialize_arm_tdep): Likewise.
8995 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8997 * MAINTAINERS (tui): Maintainer of tui code.
8999 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9001 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9002 (i386-cygwin-tdep.o): Add dependencies.
9003 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9004 * i386-cygwin-tdep.c: New file.
9005 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9006 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9008 2003-03-20 Andrew Cagney <cagney@redhat.com>
9010 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9011 (handle_inferior_event): Remove code calling
9012 DYNAMIC_TRAMPOLINE_NEXTPC.
9014 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9015 already has a full path.
9017 * main.c (gdb_main): Return 1.
9018 (captured_main): Call error to report an invalid interpreter.
9020 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9021 * alpha-osf1-tdep.c: Include "gdb_string.h".
9023 2003-03-19 J. Brobecker <brobecker@gnat.com>
9025 Continuing work to convert the hppa targets to multiarch partial.
9027 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9028 method, now that hppa_push_dummy_frame has a conformant prototype.
9029 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9030 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9031 for the switch to multiarch partial.
9033 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9035 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9036 when iss is issNull.
9038 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9040 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9041 NUM_REGS bounds check.
9043 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9045 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9046 * mips-tdep.c (gdb_assert.h): Include.
9047 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9048 (mips_register_name): Handle integer registers explicitly. Add
9050 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9051 (mips_lsi33k_reg_names): Don't list integer registers; they're
9052 handled by mips_register_name() now.
9053 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9054 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9055 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9056 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9057 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9059 2003-03-18 Andrew Cagney <cagney@redhat.com>
9061 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9063 * gdbtypes.h (print_scalar_formatted): Update declaration.
9064 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9066 2003-03-18 J. Brobecker <brobecker@gnat.com>
9068 * infrun.c (observer.h): Add #include.
9069 (normal_stop): Add call to observer_notify_normal_stop.
9070 * Makefile.in (infrun.o): Add dependency on observer.h.
9072 2003-03-18 J. Brobecker <brobecker@gnat.com>
9074 Continuing work to convert the hppa targets to multiarch partial.
9075 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9076 parameter. Reformat comment.
9077 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9078 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9079 to match new profile.
9081 2003-03-18 J. Brobecker <brobecker@gnat.com>
9083 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9084 appear to be working in any case.
9086 2003-03-18 J. Brobecker <brobecker@gnat.com>
9088 * observer.c (observer_test_first_observer): New static variable.
9089 (observer_test_second_observer): Likewise.
9090 (observer_test_third_observer): Likewise.
9091 (observer_test_first_notification_function): New static function.
9092 (observer_test_second_notification_function): Likewise.
9093 (observer_test_third_notification_function): Likewise.
9095 2003-03-17 J. Brobecker <brobecker@gnat.com>
9097 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9098 * somsolib.c (gdb_assert.h): Likewise.
9099 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9100 (somsolib.o): Likewise.
9102 2003-03-17 Andrew Cagney <cagney@redhat.com>
9104 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9105 BFD. Simplify setting of di.endian.
9107 2003-03-17 Andrew Cagney <cagney@redhat.com>
9109 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9110 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9112 From Elena Zannoni <ezannoni@redhat.com>
9113 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9114 vector and floating-point parameters.
9115 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9117 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9119 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9121 * MAINTAINERS: Remove my name from several maintainership roles.
9123 2003-03-17 Andrew Cagney <cagney@redhat.com>
9125 Fix frame off-by-one bug.
9126 * frame-unwind.h (frame_this_id_ftype): Replace
9127 frame_unwind_id_ftype.
9128 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9129 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9130 with "prev_register".
9131 * frame-unwind.c (frame_unwind_find_by_pc): Return
9132 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9134 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9135 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9136 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9137 (dummy_frame_unwind): Update.
9138 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9139 sentinel_frame_register_unwind.
9140 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9141 (sentinel_frame_unwinder): Update.
9142 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9143 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9144 * frame.c (create_sentinel_frame): Update. Initialize
9145 "prologue_cache" instead of "unwind_cache".
9146 (frame_register_unwind): Call this frame's prev_register with the
9147 next frame and this frame's prologue cache.
9148 (get_prev_frame): Simplify. Always call prev frame's this_id with
9149 this frame and prev frame's prologue cache. Document that this
9150 call is shifted one to the left when compared to the
9151 frame_register_unwind call.
9152 (legacy_saved_regs_prev_register): Replace
9153 frame_saved_regs_register_unwind.
9154 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9155 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9156 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9157 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9158 (d10v_frame_unwind): Update.
9159 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9160 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9161 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9162 "saved_regs" with "this_saved_regs".
9164 2003-03-16 Andrew Cagney <cagney@redhat.com>
9166 * frame.c (frame_pop): Don't call target_store_registers. Fix
9167 problem reported by Mark Kettenis.
9169 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9171 * i386-tdep.c (i386_register_type): Renamed from
9172 i386_register_virtual_type. Adjust function signature.
9173 (i386_gdbarch_init): Set register_type instead of
9174 deprecated_max_register_raw_size,
9175 deprecated_max_register_virtual_size and register_virtual_type.
9177 2003-03-14 Andrew Cagney <cagney@redhat.com>
9179 * frame.c (get_prev_frame): When a legacy frame, always call
9180 legacy_get_prev_frame. Simplify unwind code using assumption that
9181 the unwinder is new.
9182 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9183 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9184 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9186 2003-03-14 Andrew Cagney <cagney@redhat.com>
9188 * frame.c (get_saved_register): Delete function.
9189 * frame.h (get_saved_register): Delete declaration.
9190 * xstormy16-tdep.c: Update comment.
9191 * regcache.h: Update comments.
9192 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9193 get_saved_register and extract_address, use
9194 frame_read_unsigned_register.
9195 (sparc_frame_saved_pc): Ditto.
9196 (sparc_get_saved_register): Instead of get_saved_register, use
9198 (sparc_pop_frame): Ditto.
9199 * findvar.c: Update comments.
9200 (value_of_register): Call frame_register instead of
9202 (value_from_register): Ditto.
9203 * config/sparc/tm-sparc.h: Update comment.
9204 * breakpoint.c: Update comment.
9206 2003-03-14 Andrew Cagney <cagney@redhat.com>
9208 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9210 * gdbarch.h, gdbarch.c: Re-generate.
9211 * frame.h: Update comments.
9212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9213 * x86-64-tdep.c (x86_64_init_abi): Update.
9214 * sparc-tdep.c (sparc_gdbarch_init): Update.
9215 * sh-tdep.c (sh_gdbarch_init): Update.
9216 * mips-tdep.c (mips_gdbarch_init): Update.
9217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9218 * cris-tdep.c (cris_gdbarch_init): Update.
9219 * ia64-tdep.c (ia64_gdbarch_init): Update.
9220 * frame.c (frame_register): Update.
9221 (get_saved_register): Update.
9222 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9224 2003-03-13 Andrew Cagney <cagney@redhat.com>
9226 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9227 * gdbarch.h, gdbarch.c: Regenerate.
9228 * valops.c (hand_function_call): Update comment.
9229 * stack.c (return_command): Update comment.
9230 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9231 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9233 * x86-64-tdep.c (x86_64_init_abi): Update.
9234 * vax-tdep.c (vax_gdbarch_init): Update.
9235 * v850-tdep.c (v850_gdbarch_init): Update.
9236 * sparc-tdep.c (sparc_gdbarch_init): Update.
9237 * sh-tdep.c (sh_gdbarch_init): Update.
9238 * s390-tdep.c (s390_gdbarch_init): Update.
9239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9240 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9241 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9242 * mips-tdep.c (mips_gdbarch_init): Update.
9243 * mcore-tdep.c (mcore_gdbarch_init): Update.
9244 * m68k-tdep.c (m68k_gdbarch_init): Update.
9245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9246 * ia64-tdep.c (ia64_gdbarch_init): Update.
9247 * i386-tdep.c (i386_gdbarch_init): Update.
9248 * hppa-tdep.c (hppa_gdbarch_init): Update.
9249 * h8300-tdep.c (h8300_gdbarch_init): Update.
9250 * frv-tdep.c (frv_gdbarch_init): Update.
9251 * cris-tdep.c (cris_gdbarch_init): Update.
9252 * avr-tdep.c (avr_gdbarch_init): Update.
9253 * arm-tdep.c (arm_gdbarch_init): Update.
9254 * alpha-tdep.c (alpha_gdbarch_init): Update.
9256 2003-03-13 Andrew Cagney <cagney@redhat.com>
9258 * frame.c (legacy_frame_p): New function.
9259 (get_prev_frame): Use legacy_frame_p.
9260 * frame.h (legacy_frame_p): Declare.
9262 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9264 * MAINTAINERS (write after approval): Alphabetically
9267 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9269 * MAINTAINERS (write after approval): Add myself.
9271 2003-03-12 Andrew Cagney <cagney@redhat.com>
9273 * frame.c (get_prev_frame): Rename the frame parameter to
9275 (get_next_frame, legacy_get_prev_frame): Ditto.
9277 2003-03-12 Andrew Cagney <cagney@redhat.com>
9279 * frame.c (get_current_frame): Check target_has_registers before
9280 checking target_has_stack.
9281 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9282 instead of deprecated_selected_frame.
9283 * findvar.c (value_of_register): Pass "frame", not
9284 deprecated_selected_frame, to value_of_builtin_reg.
9286 2003-03-12 Andrew Cagney <cagney@redhat.com>
9288 * regcache.c (regcache_cooked_write_signed): New function.
9289 (regcache_cooked_write_unsigned): New function.
9290 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9291 (regcache_cooked_read_signed): Fix regnum in range assertion.
9292 * regcache.h (regcache_cooked_write_signed): Declare.
9293 (regcache_cooked_write_unsigned): Declare.
9295 2003-03-12 Andrew Cagney <cagney@redhat.com>
9297 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9298 * gdbarch.h, gdbarch.c: Re-generate.
9299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9300 * x86-64-tdep.h: Update.
9301 * x86-64-tdep.c (x86_64_init_abi): Update.
9302 * v850-tdep.c (v850_gdbarch_init): Update.
9303 * sparc-tdep.c (sparc_gdbarch_init): Update.
9304 * sh-tdep.c (sh_gdbarch_init): Update.
9305 * s390-tdep.c (s390_gdbarch_init): Update.
9306 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9307 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9308 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9309 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9310 * mips-tdep.c (mips_gdbarch_init): Update.
9311 * mcore-tdep.c (mcore_gdbarch_init): Update.
9312 * m68k-tdep.c (m68k_gdbarch_init): Update.
9313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9314 * ia64-tdep.c (ia64_gdbarch_init): Update.
9315 * i386-tdep.c (i386_gdbarch_init): Update.
9316 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9317 * hppa-tdep.c (hppa_gdbarch_init): Update.
9318 * h8300-tdep.c (h8300_gdbarch_init): Update.
9319 * frv-tdep.c (frv_gdbarch_init): Update.
9320 * cris-tdep.c (cris_gdbarch_init): Update.
9321 * avr-tdep.c (avr_gdbarch_init): Update.
9322 * arm-tdep.c (arm_gdbarch_init): Update.
9323 * alpha-tdep.c (alpha_gdbarch_init): Update.
9324 * sh-tdep.c (sh_init_extra_frame_info): Update.
9325 (sh64_init_extra_frame_info): Update.
9326 * ns32knbsd-nat.c (frame_num_args): Update.
9327 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9328 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9329 (xstormy16_frame_chain_valid): Update.
9330 * vax-tdep.c (vax_saved_pc_after_call): Update.
9331 * v850-tdep.c (v850_frame_chain): Update.
9332 (v850_pop_frame): Update.
9333 (v850_init_extra_frame_info): Update.
9334 * sparc-tdep.c (setup_arbitrary_frame): Update.
9335 * ns32k-tdep.c (umax_frame_num_args): Update.
9336 * s390-tdep.c (s390_pop_frame_regular): Update.
9337 * mn10300-tdep.c (mn10300_frame_chain): Update.
9338 (mn10300_pop_frame_regular): Update.
9339 (mn10300_init_extra_frame_info): Update.
9340 * mips-tdep.c (mips_init_frame_pc_first): Update.
9341 (mips_frame_chain): Update.
9342 (mips_pop_frame): Update.
9343 * mcore-tdep.c (mcore_frame_chain): Update.
9344 (mcore_pop_frame): Update.
9345 (mcore_init_extra_frame_info): Update.
9346 * arch-utils.c (init_frame_pc_default): Update.
9347 * m68k-tdep.c (isi_frame_num_args): Update.
9348 (delta68_frame_num_args): Update.
9349 (news_frame_num_args): Update.
9350 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9351 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9352 (alpha_frame_chain): Update.
9353 (alpha_pop_frame): Update.
9354 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9355 (hppa_init_extra_frame_info): Update.
9356 (hppa_frame_chain): Update.
9357 (hppa_frame_chain_valid): Update.
9358 * cris-tdep.c (cris_init_extra_frame_info): Update.
9359 * avr-tdep.c (avr_init_extra_frame_info): Update.
9360 * arm-tdep.c (arm_frame_chain_valid): Update.
9361 (arm_init_extra_frame_info): Update.
9362 (arm_pop_frame): Update.
9363 * frame.c (frame_pc_unwind): Update.
9364 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9365 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9366 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9367 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9368 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9369 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9371 2003-03-12 Andrew Cagney <cagney@redhat.com>
9373 Eliminate the need for POP_FRAME.
9374 * frame.c (do_frame_unwind_register): New function.
9375 (frame_pop): When no POP_FRAME, pop the frame using register
9376 unwind and a scratch regcache.
9377 (frame_saved_regs_pop): Delete function.
9378 (trad_frame_unwinder): Update.
9379 * d10v-tdep.c (d10v_frame_pop): Delete function.
9380 (d10v_frame_unwind): Update.
9381 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9382 (sentinel_frame_unwinder): Update.
9383 * dummy-frame.c (dummy_frame_pop): Delete function.
9384 (dummy_frame_unwind): Update.
9385 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9386 (struct frame_unwind): Update.
9388 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9390 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9391 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9392 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9393 Do range checks on register number obtained from debugging info.
9394 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9395 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9396 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9398 (do_fp_register_row): Fix typo which caused double type to be
9399 used when attempting to unpack a float.
9401 2003-03-11 J. Brobecker <brobecker@gnat.com>
9403 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9405 2003-03-11 Andrew Cagney <cagney@redhat.com>
9407 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9408 frame. Problem found by Corinna Vinschen.
9410 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9412 * doublest.c (floatformat_from_length): Accept also
9413 the real size of 'long double' type.
9415 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9417 From Klee Dienes <kdienes@apple.com>:
9418 * breakpoint.c (bpstat_copy): Copy the command lines as well
9419 as the old value, to match what is freed in bpstat_clear.
9421 2003-03-10 David Carlton <carlton@math.stanford.edu>
9423 * minsyms.c (add_minsym_to_hash_table): Replace
9424 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9425 (compare_minimal_symbols, compact_minimal_symbols)
9426 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9427 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9428 of DEPRECATED_SYMBOL_MATCHES_NAME.
9429 (lookup_minimal_symbol_solib_trampoline): Ditto.
9431 2003-03-10 Andrew Cagney <cagney@redhat.com>
9433 * regcache.h (regcache_cooked_read_ftype): Define.
9434 (regcache_save, regcache_restore): Add a cooked_read parameter.
9435 * regcache.c (regcache_save, regcache_restore): Update.
9436 (do_cooked_read): New function.
9437 (regcache_cpy): Pass do_cooked_read to regcache_save and
9440 2003-03-10 Andrew Cagney <cagney@redhat.com>
9442 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9443 * gdbarch.h, gdbarch.c: Re-generate.
9444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9445 * x86-64-tdep.h: Update.
9446 * x86-64-tdep.c (x86_64_init_abi): Update.
9447 * v850-tdep.c (v850_gdbarch_init): Update.
9448 * sparc-tdep.c (sparc_gdbarch_init): Update.
9449 * sh-tdep.c (sh_gdbarch_init): Update.
9450 * s390-tdep.c (s390_gdbarch_init): Update.
9451 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9452 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9453 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9454 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9455 * mips-tdep.c (mips_gdbarch_init): Update.
9456 * mcore-tdep.c (mcore_gdbarch_init): Update.
9457 * m68k-tdep.c (m68k_gdbarch_init): Update.
9458 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9459 * ia64-tdep.c (ia64_gdbarch_init): Update.
9460 * i386-tdep.c (i386_gdbarch_init): Update.
9461 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9462 * hppa-tdep.c (hppa_gdbarch_init): Update.
9463 * h8300-tdep.c (h8300_gdbarch_init): Update.
9464 * frv-tdep.c (frv_gdbarch_init): Update.
9465 * cris-tdep.c (cris_gdbarch_init): Update.
9466 * avr-tdep.c (avr_gdbarch_init): Update.
9467 * arm-tdep.c (arm_gdbarch_init): Update.
9468 * alpha-tdep.c (alpha_gdbarch_init): Update.
9469 * sh-tdep.c (sh_init_extra_frame_info): Update.
9470 (sh64_init_extra_frame_info): Update.
9471 * ns32knbsd-nat.c (frame_num_args): Update.
9472 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9473 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9474 (xstormy16_frame_chain_valid): Update.
9475 * vax-tdep.c (vax_saved_pc_after_call): Update.
9476 * v850-tdep.c (v850_frame_chain): Update.
9477 (v850_pop_frame): Update.
9478 (v850_init_extra_frame_info): Update.
9479 * sparc-tdep.c (setup_arbitrary_frame): Update.
9480 * ns32k-tdep.c (umax_frame_num_args): Update.
9481 * s390-tdep.c (s390_pop_frame_regular): Update.
9482 * mn10300-tdep.c (mn10300_frame_chain): Update.
9483 (mn10300_pop_frame_regular): Update.
9484 (mn10300_init_extra_frame_info): Update.
9485 * mips-tdep.c (mips_init_frame_pc_first): Update.
9486 (mips_frame_chain): Update.
9487 (mips_pop_frame): Update.
9488 * mcore-tdep.c (mcore_frame_chain): Update.
9489 (mcore_pop_frame): Update.
9490 (mcore_init_extra_frame_info): Update.
9491 * arch-utils.c (init_frame_pc_default): Update.
9492 * m68k-tdep.c (isi_frame_num_args): Update.
9493 (delta68_frame_num_args): Update.
9494 (news_frame_num_args): Update.
9495 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9496 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9497 (alpha_frame_chain): Update.
9498 (alpha_pop_frame): Update.
9499 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9500 (hppa_init_extra_frame_info): Update.
9501 (hppa_frame_chain): Update.
9502 (hppa_frame_chain_valid): Update.
9503 * cris-tdep.c (cris_init_extra_frame_info): Update.
9504 * avr-tdep.c (avr_init_extra_frame_info): Update.
9505 * arm-tdep.c (arm_frame_chain_valid): Update.
9506 (arm_init_extra_frame_info): Update.
9507 (arm_pop_frame): Update.
9508 * frame.c (frame_pc_unwind): Update.
9509 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9510 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9511 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9512 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9513 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9514 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9516 2003-03-10 Andrew Cagney <cagney@redhat.com>
9518 * gdbarch.sh (gdbarch_unwind_pc): New method.
9519 * gdbarch.h, gdbarch.c: Regenerate.
9520 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9521 but use read_pc and FRAME_SAVED_PC as fall backs.
9522 (frame_saved_regs_pc_unwind): Delete function.
9523 (trad_frame_unwinder): Update.
9524 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9525 (struct frame_unwind): Update.
9526 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9527 (dummy_frame_unwind): Update.
9528 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9529 (sentinel_frame_unwinder): Update.
9530 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9531 (d10v_frame_unwind): Update.
9532 (d10v_unwind_pc): New function.
9533 (d10v_gdbarch_init): Set unwind_pc.
9535 2003-03-10 Andrew Cagney <cagney@redhat.com>
9537 * gdbarch.h: Re-generate.
9539 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9541 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9544 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9546 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9548 2003-03-08 Andrew Cagney <cagney@redhat.com>
9550 * cli-out.c: Update copyright.
9551 (cli_out_data): Define typedef. Use instead of ui_out_data.
9553 2003-03-08 Andrew Cagney <cagney@redhat.com>
9555 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9558 2003-03-07 Andrew Cagney <cagney@redhat.com>
9560 * gdbarch.sh: Don't generate two macro definitions when an
9561 undefined macro taking no arguments.
9562 * gdbarch.h: Regenerate.
9564 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9566 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9567 (x86_64_unwind_dummy_id): New functions.
9568 (x86_64_init_abi): Register these two new functions.
9570 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9572 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9573 (x86_64_skip_prologue): Move prologue detection to
9575 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9577 2003-03-05 Andrew Cagney <cagney@redhat.com>
9579 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9580 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9581 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9582 to use unwind_dummy_id when a dummy frame.
9583 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9585 * gdbarch.h, gdbarch.c: Regneerate.
9587 2003-03-05 Andrew Cagney <cagney@redhat.com>
9589 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9590 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9591 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9594 2003-03-05 Andrew Cagney <cagney@redhat.com>
9596 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9597 (struct d10v_unwind_cache): Delete field "frameless". Replace
9598 "next_addr" with "sp_offset". Add "r11_offset".
9599 (d10v_frame_unwind_cache): Update.
9600 (prologue_find_regs): Update. When "mv r11, sp", save the
9601 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9602 RN was saved in r11_offset.
9604 2003-03-05 Andrew Cagney <cagney@redhat.com>
9606 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9607 cached PC value in the next frame.
9609 2003-03-05 Andrew Cagney <cagney@redhat.com>
9611 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9612 "id_unwind_cache" with "id".
9613 (frame_id_unwind): Delete declaration.
9614 * frame.c (frame_id_unwind): Delete function.
9615 (get_prev_frame): Call the frame id unwind method directly. Store
9616 the returned next frame's ID value in NEXT_FRAME. Note that there
9617 is a problem with the wrong unwind ID being called with the wrong
9620 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9622 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9624 2003-03-05 James Ingham <jingham@apple.com>
9625 Daniel Jacobowitz <drow@mvista.com>
9627 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9628 (auto_cp_abi): New variable.
9629 (current_cp_abi, num_cp_abis): Make static.
9630 (CP_ABI_MAX): Define.
9631 (cp_abis): Turn into an array.
9632 (value_virtual_fn_field): Fix formatting.
9633 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9635 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9636 (list_cp_abis, _initialize_cp_abi): New functions.
9637 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9638 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9639 switch_to_cp_abi. Update prototype for register_cp_abi.
9640 * Makefile.in (cp-abi.o): Update dependencies.
9641 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9642 instead of switch_to_cp_abi.
9643 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9645 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9647 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9649 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9651 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9652 * dwarf2loc.c: Include "regcache.h".
9653 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9655 * Makefile.in (dwarf2loc.o): Update dependencies.
9657 2003-03-04 Theodore A. Roth <troth@openavr.org>
9659 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9660 number of io registers reported by remote target is not a multiple of
9663 2003-03-04 David Carlton <carlton@math.stanford.edu>
9665 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9666 (lookup_symbol_aux_psymtabs): Update call to
9667 lookup_partial_symbol.
9668 (lookup_transparent_type, find_main_psymtab)
9669 (make_symbol_overload_list): Ditto.
9671 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9673 * MAINTAINERS (Write after approval): Update my email address.
9675 2003-03-03 Andrew Cagney <cagney@redhat.com>
9677 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9678 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9679 predicate. Replace MAX_REGISTER_RAW_SIZE.
9680 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9681 MAX_REGISTER_VIRTUAL_SIZE.
9682 * regcache.c (legacy_max_register_raw_size): New function.
9683 (legacy_max_register_virtual_size): New function.
9684 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9685 (MAX_REGISTER_RAW_SIZE): Define.
9686 (legacy_max_register_raw_size): Declare.
9687 (legacy_max_register_virtual_size): Declare.
9688 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9689 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9690 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9691 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9692 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9693 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9694 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9695 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9696 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9698 * vax-tdep.c (vax_gdbarch_init): Update.
9699 * v850-tdep.c (v850_gdbarch_init): Update.
9700 * sparc-tdep.c (sparc_gdbarch_init): Update.
9701 * sh-tdep.c (sh_gdbarch_init): Update.
9702 * s390-tdep.c (s390_gdbarch_init): Update.
9703 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9704 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9705 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9706 * mips-tdep.c (mips_gdbarch_init): Update.
9707 * mcore-tdep.c (mcore_gdbarch_init): Update.
9708 * m68k-tdep.c (m68k_gdbarch_init): Update.
9709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9710 * ia64-tdep.c (ia64_gdbarch_init): Update.
9711 * i386-tdep.c (i386_gdbarch_init): Update.
9712 * hppa-tdep.c (hppa_gdbarch_init): Update.
9713 * h8300-tdep.c (h8300_gdbarch_init): Update.
9714 * frv-tdep.c (frv_gdbarch_init): Update.
9715 * cris-tdep.c (cris_gdbarch_init): Update.
9716 * avr-tdep.c (avr_gdbarch_init): Update.
9717 * arm-tdep.c (arm_gdbarch_init): Update.
9718 * alpha-tdep.c (alpha_gdbarch_init): Update.
9719 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9720 max_register_raw_size or max_register_virtual_size.
9722 2003-03-03 David Carlton <carlton@math.stanford.edu>
9724 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9725 SYMBOL_MATCHES_NAME, add comment.
9726 (SYMBOL_MATCHES_NATURAL_NAME): New.
9727 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9728 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9729 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9730 * symtab.c (lookup_partial_symbol): Use
9731 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9733 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9734 SYMBOL_MATCHES_NAME.
9737 2003-03-03 David Carlton <carlton@math.stanford.edu>
9739 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9740 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9741 by regexp matching against SYMBOL_NATURAL_NAME.
9743 2003-03-03 David Carlton <carlton@math.stanford.edu>
9745 * linespec.c (find_method): Extract code into collect_methods.
9746 (collect_methods): New.
9748 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9750 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9753 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9754 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9756 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9758 * arch-utils.c (generic_register_byte): Fix to use the loop index
9759 and not regnum when summing the size of all registers up to regnum.
9761 2003-03-01 Andrew Cagney <cagney@redhat.com>
9763 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9764 FRAME_INIT_SAVED_REGS.
9765 * gdbarch.h, gdbarch.c: Regenerate.
9766 * stack.c (frame_info): Update.
9767 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9768 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9769 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9770 * ns32k-tdep.c (ns32k_pop_frame): Update.
9771 * mips-tdep.c (mips_pop_frame): Update.
9772 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9773 * ia64-tdep.c (ia64_frame_chain): Update.
9774 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9775 (ia64_frameless_function_invocation): Update.
9776 (ia64_init_extra_frame_info): Update.
9777 (ia64_pop_frame_regular): Update.
9778 * frame.h (struct frame_info): Update comment.
9779 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9780 * frame.c (frame_saved_regs_register_unwind): Update.
9781 (frame_saved_regs_register_unwind): Update.
9782 (deprecated_generic_get_saved_register): Update.
9783 * cris-tdep.c: Update comment.
9784 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9787 * x86-64-tdep.c (x86_64_init_abi): Update.
9788 * vax-tdep.c (vax_gdbarch_init): Update.
9789 * v850-tdep.c (v850_gdbarch_init): Update.
9790 * sparc-tdep.c (sparc_gdbarch_init): Update.
9791 * sh-tdep.c (sh_gdbarch_init): Update.
9792 * s390-tdep.c (s390_gdbarch_init): Update.
9793 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9794 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9795 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9796 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9797 * mips-tdep.c (mips_gdbarch_init): Update.
9798 * mcore-tdep.c (mcore_gdbarch_init): Update.
9799 * m68k-tdep.c (m68k_gdbarch_init): Update.
9800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9801 * ia64-tdep.c (ia64_gdbarch_init): Update.
9802 * i386-tdep.c (i386_gdbarch_init): Update.
9803 * frv-tdep.c (frv_gdbarch_init): Update.
9804 * avr-tdep.c (avr_gdbarch_init): Update.
9805 * arm-tdep.c (arm_gdbarch_init): Update.
9806 * alpha-tdep.c (alpha_gdbarch_init): Update.
9808 2003-03-01 Andrew Cagney <cagney@redhat.com>
9810 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9811 option enum and switch. When no windows, set the interpreter to
9814 2003-03-01 Andrew Cagney <cagney@redhat.com>
9816 * main.c (captured_main): Replace magic option characters with an
9819 2003-03-01 Andrew Cagney <cagney@redhat.com>
9821 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9822 INIT_EXTRA_FRAME_INFO.
9823 * gdbarch.h, gdbarch.c: Regenerate.
9824 * arm-tdep.c: Update comments.
9825 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9826 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9827 * frame.h, avr-tdep.c: Ditto.
9828 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9829 (create_new_frame, legacy_get_prev_frame): Ditto.
9830 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9831 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9833 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9834 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9835 * v850-tdep.c (v850_gdbarch_init): Ditto.
9836 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9837 * sh-tdep.c (sh_gdbarch_init): Ditto.
9838 * s390-tdep.c (s390_gdbarch_init): Ditto.
9839 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9840 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9841 * mips-tdep.c (mips_gdbarch_init): Ditto.
9842 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9844 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9845 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9846 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9847 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9848 * frv-tdep.c (frv_gdbarch_init): Ditto.
9849 * cris-tdep.c (cris_gdbarch_init): Ditto.
9850 * avr-tdep.c (avr_gdbarch_init): Ditto.
9851 * arm-tdep.c (arm_gdbarch_init): Ditto.
9852 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9853 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9855 2003-03-01 Andrew Cagney <cagney@redhat.com>
9857 * gdbarch.sh (register_type): New function with predicate.
9858 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9859 * gdbarch.h, gdbarch.c: Re-generate.
9860 * arch-utils.c (generic_register_byte): Use generic_register_size.
9861 (generic_register_size): When available, use
9862 gdbarch_register_type.
9863 * regcache.c (init_regcache_descr): When available, initialize the
9864 register type array using gdbarch_register_type. If the
9865 architecture supplies gdbarch_register_type, do not use the legacy
9867 * d10v-tdep.c (d10v_register_type): Replace
9868 d10v_register_virtual_type.
9869 (d10v_gdbarch_init): Set register_type instead of
9870 register_virtual_type.
9872 2003-03-01 Andrew Cagney <cagney@redhat.com>
9874 * Makefile.in (ax-gdb.o): Update dependencies.
9875 * ax-gdb.c: Include "regcache.h".
9876 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9877 * findvar.c (value_of_register): Ditto.
9878 * infcmd.c (default_print_registers_info): Ditto.
9880 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9882 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9883 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9885 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9887 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9890 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9892 * Makefile.in (dwarf2loc.o): Update dependencies.
9893 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9894 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9895 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9896 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9897 (locexpr_tracepoint_var_ref): New function.
9898 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9900 2003-02-28 Andrew Cagney <cagney@redhat.com>
9902 * regcache.c (register_size): New function.
9903 * regcache.h (register_size): Declare
9904 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9905 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9907 2003-02-28 David Carlton <carlton@math.stanford.edu>
9909 * linespec.c (decode_compound): Extract code into find_method.
9912 2003-02-28 J. Brobecker <brobecker@gnat.com>
9914 * Makefile.in: Add rules to build and link in observer.o.
9916 2003-02-27 J. Brobecker <brobecker@gnat.com>
9918 * observer.c: Minor comments edits.
9920 2003-02-27 J. Brobecker <brobecker@gnat.com>
9922 * observer.h, observer.c: New file.
9924 2003-02-27 Andrew Cagney <cagney@redhat.com>
9926 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9928 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9930 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9931 (M6812_OP_STS_EXT): Likewise.
9932 (m6811_prologue): Use the above to recognize prologue.
9933 (m6812_prologue): Likewise.
9935 2003-02-27 David Carlton <carlton@math.stanford.edu>
9937 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9939 (compare_psymbols): Ditto.
9940 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9942 2003-02-27 Michael Snyder <msnyder@redhat.com>
9944 * f-lang.c (build_fortran_types): New function.
9945 (_initialize_f_language): Gdbarch-register built-in fortran types.
9946 * doublest.c (extract_floating): Fix warning text.
9948 2003-02-27 Andrew Cagney <cagney@redhat.com>
9950 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9951 predicate. Replaces PUSH_DUMMY_FRAME.
9952 * gdbarch.h, gdbarch.c: Regnerate.
9953 * valops.c (hand_function_call): Update. Call
9954 generic_push_dummy_frame directly.
9955 * vax-tdep.c (vax_gdbarch_init): Update.
9956 * sparc-tdep.c (sparc_gdbarch_init): Update.
9957 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9958 * m68k-tdep.c (m68k_gdbarch_init): Update.
9959 * hppa-tdep.c (hppa_gdbarch_init): Update.
9960 * alpha-tdep.c (alpha_gdbarch_init): Update.
9961 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9962 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9963 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9965 push_dummy_frame to generic_push_dummy_frame.
9966 * v850-tdep.c (v850_gdbarch_init): Ditto.
9967 * sh-tdep.c (sh_gdbarch_init): Ditto.
9968 * s390-tdep.c (s390_gdbarch_init): Ditto.
9969 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9970 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9971 * mips-tdep.c (mips_gdbarch_init): Ditto.
9972 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9974 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9975 * i386-tdep.c (i386_gdbarch_init): Ditto.
9976 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9977 * frv-tdep.c (frv_gdbarch_init): Ditto.
9978 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9979 * cris-tdep.c (cris_gdbarch_init): Ditto.
9980 * avr-tdep.c (avr_gdbarch_init): Ditto.
9981 * arm-tdep.c (arm_gdbarch_init): Ditto.
9983 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9985 * mips-tdep.c (show_mips_abi): New function.
9986 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9987 command ``show mips abi''.
9989 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9991 From Elena Zannoni <ezannoni@redhat.com>
9992 * dbxread.c (process_one_symbol): Only record line 0 if one or
9993 more sline entries have been seen for the function.
9995 2003-02-26 Michael Chastain <mec@shout.net>
9997 * configure: Regenerate with autoconf 000227.
9999 2003-02-26 Michael Chastain <mec@shout.net>
10001 Close PR build/660.
10002 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10003 for old libc5/glibc.
10004 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10006 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10008 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10009 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10011 2003-02-26 Michael Chastain <mec@shout.net>
10013 * configure.in: New variable HAVE_UINTPTR_T.
10014 * configure, config.in: Regenerated.
10016 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10019 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10021 2003-02-25 Andrew Cagney <cagney@redhat.com>
10023 * frame.c (get_prev_frame): Add comment on check for
10024 inside_entry_func. Only check for inside_entry_file when not a
10025 dummy and not a sentinel. Check that the new frame is not inner
10028 2003-02-25 Andrew Cagney <cagney@redhat.com>
10030 * frame.c (frame_debug): New variable.
10031 (_initialize_frame): Add "set/show debug frame" command.
10032 (get_prev_frame): When frame_debug, print reason why unwind
10035 2003-02-25 Michael Chastain <mec@shout.net>
10037 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10038 to avoid uintptr_t definition problems.
10040 2003-02-25 David Carlton <carlton@math.stanford.edu>
10042 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10043 (SYMBOL_LINKAGE_NAME): Ditto.
10044 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10045 SYMBOL_LINKAGE_NAME.
10046 (struct general_symbol_info): Expand comment.
10047 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10048 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10049 (SYMBOL_MATCHES_REGEXP): Ditto.
10050 * symtab.c (symbol_natural_name): New function.
10051 * objfiles.h: Replace all uses of SYMBOL_NAME by
10052 DEPRECATED_SYMBOL_NAME.
10053 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10054 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10055 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10056 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10057 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10058 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10059 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10060 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10061 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10062 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10063 * ada-exp.y: Ditto.
10064 * ada-exp.y: Update copyright.
10065 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10066 * cp-valprint.c: Ditto.
10068 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10070 * infptrace.c (detach): Do not flag error if ptrace detach fails
10071 and errno is set to ESRCH.
10073 2003-02-24 Andrew Cagney <cagney@redhat.com>
10075 * infptrace.c (udot_info): Change type of udot_off to long. Use
10076 paddr when printing udot_off's value.
10078 2003-02-24 David Carlton <carlton@math.stanford.edu>
10080 * symtab.c (make_symbol_overload_list): Only read in partial
10081 symtabs containing a matching partial symbol.
10083 2003-02-24 David Carlton <carlton@math.stanford.edu>
10085 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10086 do the comparison, not strcmp.
10087 * symfile.c (compare_psymbols): Ditto.
10088 * defs.h: Declare strcmp_iw_ordered.
10089 * utils.c (strcmp_iw_ordered): New function.
10091 2003-02-24 Jim Blandy <jimb@redhat.com>
10093 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10094 support, shared libs): Remove my name from here, to better reflect
10097 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10099 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10100 (target_ops): Add to_have_continuable_watchpoint.
10101 * target.c (update_current_target): Add INHERIT line for
10102 to_have_continuable_watchpoint.
10103 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10104 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10105 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10106 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10108 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10110 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10113 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10115 * solib.c (solib_open): Call target defined search function after
10116 failing with solib-search-path.
10117 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10118 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10120 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10122 * MAINTAINERS: Add myself to Write After section.
10124 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10126 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10128 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10130 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10131 (m68hc11_add_reggroups): New function.
10132 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10133 (m68hc11_gdbarch_init): Install the reggroups.
10134 (_initialize_m68hc11_tdep): Initialize them.
10136 2003-02-21 James E Wilson <wilson@tuliptree.org>
10138 * MAINTAINERS: Update my email address.
10140 2003-02-21 David Carlton <carlton@math.stanford.edu>
10142 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10144 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10146 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10147 * symtab.h: Add opaque declarations of struct axs_value and
10149 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10150 (struct location_funcs): New type.
10151 (struct symbol): Add "loc" to aux_value.
10152 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10153 * dwarf2read.c: Include "dwarf2expr.h".
10154 (dwarf2_symbol_mark_computed): New function.
10155 (read_func_scope): Use it.
10156 (var_decode_location): New function.
10157 (new_symbol): Use it.
10158 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10160 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10161 (dwarf2expr_h, dwarf2loc_h): New variables.
10162 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10163 (dwarf2expr.o, dwarf2loc.o): New rules.
10164 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10165 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10167 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10168 * m2-exp.y (yylex): Likewise.
10169 * printcmd.c (address_info, print_frame_args): Likewise.
10170 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10171 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10172 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10173 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10174 * symtab.c (lookup_block_symbol): Likewise.
10176 2003-02-20 Adam Fedor <fedor@gnu.org>
10178 * symtab.h: Remove objc_specific struct
10179 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10180 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10181 Have language_objc use cplus_specific struct.
10183 2003-02-20 Tom Tromey <tromey@redhat.com>
10185 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10186 TYPE_NAME, when printing a String value. PR java/1075.
10188 2003-02-20 Adam Fedor <fedor@gnu.org>
10190 * objc-lang.h (find_methods): Remove declaration.
10191 * objc-lang.c (find_methods): Make static.
10193 2003-02-20 Christopher Faylor <cgf@redhat.com>
10195 * win32-nat.c (get_image_name): Check return value from
10197 (child_xfer_memory): Ditto.
10199 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10201 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10202 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10203 '${exec_prefix}' (in addition to the expansion thereof) as
10205 * configure: Rebuilt.
10207 2003-02-20 David Carlton <carlton@math.stanford.edu>
10209 * symtab.c (search_symbols): Revert the search_symbols part of my
10210 2002-12-23 patch. Add comment.
10212 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10214 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10215 * dbxread.c (elfstab_build_psymtabs): Don't call
10216 install_minimal_symbols.
10217 (stabsect_build_psymtabs): Likewise.
10218 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10220 * somread.c (som_symfile_read): Call install_minimal_symbols
10221 and do_cleanups earlier.
10222 * nlmread.c (nlm_symfile_read): Likewise.
10223 * mdebugread.c (elfmdebug_build_psymtabs): Call
10224 install_minimal_symbols and make appropriate cleanups.
10226 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10228 * solib.c (reload_shared_libraries): New function.
10229 (_initialize_solib): Add callbacks for ``set solib-search-path''
10230 and ``set solib-absolute-prefix''.
10232 2003-02-20 David Carlton <carlton@math.stanford.edu>
10234 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10236 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10237 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10238 * ada-typeprint.c (ada_typedef_print): Ditto.
10239 * ax-gdb.c (gen_var_ref): Ditto.
10240 * breakpoint.c (print_one_breakpoint): Ditto.
10241 * buildsym.c (finish_block): Ditto.
10242 * c-valprint.c (c_val_print): Ditto.
10243 * expprint.c (print_subexp): Ditto.
10244 * findvar.c (locate_var_value): Ditto.
10245 * infcmd.c (jump_command): Ditto.
10246 * linespec.c (decode_line_2, decode_compound): Ditto.
10247 * maint.c (maintenance_translate_address): Ditto.
10248 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10249 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10251 * p-valprint.c (pascal_val_print): Ditto.
10252 * stabsread.c (define_symbol): Ditto.
10253 * stack.c (print_frame, frame_info, print_block_frame_locals)
10254 (print_frame_arg_vars, return_command): Ditto.
10255 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10256 * symmisc.c (print_symbol): Ditto.
10257 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10258 (compare_search_syms, print_symbol_info, print_msymbol_info)
10259 (rbreak_command): Ditto.
10260 * tracepoint.c (tracepoints_info): Ditto.
10261 * typeprint.c (typedef_print): Ditto.
10262 * valops.c (value_of_variable, hand_function_call): Ditto.
10263 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10264 * ada-typeprint.c: Update Copyright.
10265 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10266 * tracepoint.c, cli/cli-cmds.c: Ditto.
10268 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10270 * frame.c (generic_unwind_get_saved_register): Make non-static.
10271 * frame.h (generic_unwind_get_saved_register): Declare.
10272 * mips-tdep.c (read_next_frame_reg): Fetch register from
10273 current regcache when frame is NULL.
10274 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10276 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10277 instead of frame_register_unwind().
10279 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10281 * remote-sim.c (gdbsim_insert_breakpoint)
10282 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10285 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10287 * remote.c (_initialize_remote): Add commands "set/show remote
10288 hardware-watchpoint-limit" and "set/show remote
10289 hardware-breakpoint-limit".
10290 (remote_hw_watchpoint_limit): Initialize to -1.
10291 (remote_hw_breakpoint_limit): Ditto.
10292 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10294 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10296 * coff-pe-read.c: New file - support reading of minimal symbols from a
10297 portable executable using the export table.
10298 * coff-pe-read.h: New file.
10299 * coffread.c: Include coff-pe-read.h.
10300 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10301 debugging symbols found.
10302 * Makefile.in (SFILES): Add coff-pe-read.o.
10303 (coff_pe_read_h): Define.
10304 (COMMON_OBS): Add coff-pe-read.o.
10305 (coffread.o): Add coff_pe_read_h dependency.
10306 (coff-pe-read.o): New target.
10308 2003-02-19 David Carlton <carlton@math.stanford.edu>
10310 * Makefile.in (SFILES): Add block.c.
10312 (COMMON_OBS): Add block.o.
10314 (x86-64-tdep.o): Add $(block_h).
10315 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10316 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10317 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10318 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10319 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10320 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10321 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10322 * value.h: Add opaque declaration for struct block.
10323 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10324 * ada-lang.h: Ditto.
10325 * x86-64-tdep.c: #include "block.h"
10326 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10327 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10328 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10329 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10330 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10331 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10332 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10333 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10334 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10335 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10336 * symtab.c (block_function): Ditto.
10337 (contained_in): Ditto.
10338 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10339 block.h. Add opaque declaration for struct block.
10340 * symtab.h: Move block_function and contained_in declarations to
10341 block.h. Add opaque declarations for struct block, struct
10343 (struct block): Move to block.h.
10344 (struct blockvector): Ditto.
10345 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10346 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10347 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10348 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10349 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10351 * block.c: New file.
10352 * block.h: New file.
10354 2003-02-19 Theodore A. Roth <troth@openavr.org>
10356 * avr-tdep.c (avr_extract_return_value): Remove function.
10357 (avr_store_return_value): Remove function.
10358 (avr_extract_struct_value_address): Remove function.
10359 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10361 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10363 * rs6000-tdep.c: Include "gdb_assert.h".
10364 (registers_e500): Add "acc" and "spefscr".
10365 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10366 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10367 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10369 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10371 2003-02-18 Keith Seitz <keiths@redhat.com>
10373 * Makefile.in: Add gdbtk-interps.c.
10375 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10377 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10378 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10380 2003-02-18 Andrew Cagney <cagney@redhat.com>
10382 * symtab.h (struct objfile): Add opaque declaration.
10384 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10386 From Jim Ingham <jingham@apple.com>:
10387 * dbxread.c (process_one_symbol): Use last_function_start rather
10388 than function_start_offset to find the real beginning of the
10389 current function. The latter is just the text section offset on
10390 some systems, the former is always the real function start.
10392 2003-02-17 Andrew Cagney <cagney@redhat.com>
10394 * configure.in: Revert ${target} != ${host}.
10396 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10398 * configure.in (Makefile): Use the test ${target} != ${host},
10399 instead of the absence of the "nm.h" file, to determine of the
10400 configuration non-native.
10401 * configure: Regenerate.
10403 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10405 From Brian Ford <ford@vss.fsi.com>
10407 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10408 conditionalize tui_active test.
10409 (lookup_cmd_1): Ditto.
10411 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10413 * configure.in: Add check for _etext.
10414 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10416 * config.in, configure: regenerated.
10418 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10420 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10422 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10424 * main.c (tui_version): Delete variable.
10425 (captured_main): When --tui, set interpreter_p to "tui" instead of
10426 enabling tui_version.
10427 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10429 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10430 * cli/cli-cmds.c (disassemble_command): Ditto.
10431 * defs.h (tui_version): Delete declaration.
10432 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10433 (tui-interp.o): Add rules.
10434 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10436 2003-02-14 Christopher Faylor <cgf@redhat.com>
10438 * win32-nat.c (register_loaded_dll): Correctly set address range for
10441 2003-02-12 Jason Molenda (jmolenda@apple.com)
10443 * symmisc.c (print_objfile_statistics): Include information about
10444 the number of psymtabs and symtabs in each object file.
10446 2003-02-13 Keith R Seitz <keiths@redhat.com>
10448 * main.h (struct captured_main_args): Add interpreter_p.
10449 * main.c (captured_main): Initialize interpreter_p from context.
10450 * gdb.c (main): Set interpreter_p argument.
10451 * Makefile.in (gdb.o): Add dependency for interps.h.
10453 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10455 * event-top.c (cli_command_loop): Delete declaration.
10456 (_initialize_event_loop): Delete function setting event_loop_hook.
10457 * event-top.h (cli_command_loop): Declare. Update copyright.
10458 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10459 * interps.c (current_interp_command_loop): When event_loop_p, call
10462 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10464 * interps.h (interp_command_loop_ftype): Change return type to
10467 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10469 * x86-64-tdep.c (x86_64_extract_return_value)
10470 (x86_64_store_return_value): Use regcache instead of regbuf.
10471 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10472 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10474 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10476 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10477 * aclocal.m4: Regenerate.
10478 * configure: Regenerate.
10480 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10481 TCL_LD_SEARCH_FLAGS.
10483 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10485 * dwarf2cfi.c: Reindented.
10487 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10489 * interps.c (clear_interpreter_hooks): Convert function definition
10492 2003-02-07 David Carlton <carlton@math.stanford.edu>
10494 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10496 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10498 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10499 (struct type): ...to here.
10500 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10502 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10503 (replace_type): Set length on all type variants for a given type.
10505 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10507 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10509 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10511 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10513 * Makefile.in (symm-nat.o): Update dependencies.
10514 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10515 (lynx-nat.o, ia64-linux-nat.): Ditto.
10516 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10517 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10518 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10520 * Makefile.in (inflow_h): Define.
10521 (procfs.o, inflow.o, procfs.o): Update dependencies.
10522 * inftarg.c (child_stop): Delete extern declaration of
10523 inferior_process_group. Include "inflow.h".
10524 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10525 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10526 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10527 (our_process_group, inferior_process_group): Extern declarations.
10529 * procfs.c: Include "gdb_assert.h".
10531 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10532 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10533 * jv-typeprint.c (java_type_print_base): Ditto.
10534 * typeprint.c (typedef_print): Eliminate STREQ.
10535 * cli/cli-script.c (define_command, define_command): Ditto.
10536 * main.c (captured_main): Ditto.
10537 * values.c (lookup_internalvar): Ditto.
10538 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10539 within `if' conditional.
10540 * linespec.c (decode_line_2): Ditto.
10541 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10542 (bfd_openw_with_cleanup): Ditto.
10544 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10546 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10547 legacy_extract_return_value and store_return_value to
10548 legacy_return_value.
10550 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10552 * win32-nat.c (get_relocated_section_addrs): New function. Find
10553 section load addresses for symbol handling in relocated DLLs.
10554 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10556 2003-02-05 Fred Fish <fnf@intrinsity.com>
10558 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10560 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10562 (angel_RDI_info): Ditto.
10563 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10565 (threads_continue_all_with_signals): Ditto.
10567 2003-02-05 Jim Ingham <jingham@apple.com>
10568 Keith Seitz <keiths@redhat.com>
10569 Elena Zannoni <ezannoni@redhat.com>
10570 Andrew Cagney <ac131313@redhat.com>
10572 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10573 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10574 (SUBDIR_MI_OBS): Add "mi-interp.o".
10575 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10576 (SFILES): Add "interps.c".
10577 (COMMON_OBS): Add "interps.o".
10578 (interps_h, mi_main_h): Define.
10579 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10580 (mi-main.o, main.o, event-top.o): Update dependencies.
10581 * cli/cli-interp.c: New file.
10582 * interps.h, interps.c: New files.
10583 * top.c: (gdb_init): Don't install the default interpreter, handed
10585 * main.c: Include "interps.h".
10586 (interpreter_p): Note that it should malloc'ed.
10587 (captured_command_loop): Call current_interp_command_loop.
10588 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10589 xfree and xstrdup when updating interpreter_p. Install the
10590 default interpreter. Add hack to stop mi1's copyright notice
10592 * event-top.h (gdb_setup_readline): Declare.
10593 (gdb_disable_readline): Declare.
10594 * event-top.c: Include "interps.h".
10595 (display_gdb_prompt): Call current_interp_display_prompt_p.
10596 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10597 gdb_stdlog, and gdb_stdtarg.
10598 (_initialize_event_loop): Don't call gdb_setup_readline.
10599 * cli-out.c (cli_out_set_stream): New function.
10600 * cli-out.h (cli_out_set_stream): Declare.
10602 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10604 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10605 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10606 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10607 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10608 config/i386/i386v42mp.mt: Removed.
10610 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10612 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10615 2003-02-05 Michael Chastain <mec@shout.net>
10617 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10618 2.12.1 and earlier versions.
10620 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10622 Remove orphaned hosts, targets and files.
10623 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10624 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10625 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10626 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10627 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10628 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10629 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10630 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10631 * config/sparc/tm-sp64sim.h: Delete.
10632 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10634 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10635 mips*-dec-mach3* targets.
10637 2003-02-04 Michael Chastain <mec@shout.net>
10639 * NEWS: Fix typo: sepcifying -> specifying.
10641 2003-02-04 Michael Chastain <mec@shout.net>
10643 * dwarfread.c: Add documentation on the state of dwarf-1,
10644 looking towards obsoletion.
10646 2003-02-03 Michael Chastain <mec@shout.net>
10648 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10649 gdb/testsuite/gdb.c++/pr-1023.exp.
10651 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10653 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10654 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10656 * utils.c (init_page_info): Delete reference to MPW in comments.
10657 * main.c (captured_main): Delete #ifdef MPW.
10659 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10661 * NEWS: Note that the m32r-*-elf* is obsolete.
10662 * monitor.c (monitor_expect): Obsolete reference to m32r.
10663 * configure.tgt: Mark m32r-*-elf* as obsolete.
10664 * MAINTAINERS: Mark m32k as obsolete.
10665 * m32r-rom.c: Obsolete file.
10666 * config/m32r/m32r.mt: Obsolete file.
10667 * config/m32r/tm-m32r.h: Obsolete file.
10668 * m32r-stub.c: Obsolete file.
10669 * m32r-tdep.c: Obsolete file.
10671 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10673 * NEWS: Mention that the z8k-zilog-none is obsolete.
10674 * MAINTAINERS: Mark z8k as obsolete.
10675 * configure.tgt: Obsolete the z8k-*-coff* target.
10676 * config/z8k/z8k.mt: Obsolete file.
10677 * config/z8k/tm-z8k.h: Obsolete file.
10678 * z8k-tdep.c: Obsolete file.
10680 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10682 * NEWS: Mention that the mn10200-elf is obsolete.
10683 * configure.tgt: Obsolete mn10200-*-* target.
10684 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10685 mention that the mn10200 is obsolete.
10686 * breakpoint.h: Ditto.
10687 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10688 * config/mn10200/mn10200.mt: Obsolete file.
10689 * config/mn10200/tm-mn10200.h: Obsolete file.
10690 * mn10200-tdep.c: Obsolete file.
10692 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10694 * MAINTAINERS: Mark h8500 as obsolete.
10695 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10696 * findvar.c (value_from_register): Ditto.
10697 * h8500-tdep.c: Mark file as obsolete.
10698 * config/h8500/h8500.mt: Ditto.
10699 * config/h8500/tm-h8500.h: Ditto.
10700 * NEWS: Mention that h8500 is obsolete.
10702 2003-02-04 David Carlton <carlton@math.stanford.edu>
10704 * objfiles.c (allocate_objfile): Always set name. Add comment at
10706 * jv-lang.c (get_dynamics_objfile): Add comment.
10708 2003-02-04 David Carlton <carlton@math.stanford.edu>
10710 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10711 * printcmd.c (build_address_symbolic): Replace uses of
10712 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10713 SYMBOL_NAME, and asm_demangle.
10716 2003-02-04 David Carlton <carlton@math.stanford.edu>
10718 * linespec.c (decode_compound): Extract code into
10720 (lookup_prefix_sym): New function.
10722 2003-02-04 David Carlton <carlton@math.stanford.edu>
10724 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10725 FLOAT_COERCION_BADNESS.
10726 * gdbtypes.c (rank_one_type): Replace all uses of
10727 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10729 2003-02-04 Jim Blandy <jimb@redhat.com>
10731 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10732 section, let dwarf_macinfo_section point to it, not
10735 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10737 Pointed out by Anton Blanchard <anton@samba.org>.
10738 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10739 (ppc_linux_at_sigtramp_return_path): Use it.
10741 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10743 * defs.h (streq): Add prototype.
10744 * utils.c (streq): New function.
10746 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10747 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10748 * mdebugread.c (new_symbol): Likewise.
10749 * stabsread.c (define_symbol): Likewise.
10750 * coffread.c (process_coff_symbol): Likewise.
10751 * dwarfread.c (new_symbol): Likewise.
10753 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10754 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10756 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10757 SYMBOL_INIT_DEMANGLED_NAME.
10758 * objfiles.c: Include "hashtab.h".
10759 (allocate_objfile): Call htab_set_functions_ex for the
10760 demangled_names_hash.
10761 (free_objfile): Call htab_delete for the demangled_names_hash.
10762 * objfiles.h (struct htab): Add declaration.
10763 (struct objfile): Add demangled_names_hash.
10764 * symfile.c: Include "hashtab.h".
10765 (reread_symbols): Call htab_delete for the demangled_names_hash.
10766 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10767 SYMBOL_NAME in the bcache.
10768 * symtab.c: Include "hashtab.h". Update comments.
10769 (create_demangled_names_hash, symbol_set_names): New functions.
10770 (symbol_find_demangled_name): New function, broken out from
10771 symbol_init_demangled_names.
10772 (symbol_init_demangled_names): Use it.
10773 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10774 (SYMBOL_SET_NAMES): New macro.
10775 (symbol_set_names): Add prototype.
10777 2003-02-03 Jim Blandy <jimb@redhat.com>
10779 Use a single, consistent representation for an empty minimal
10780 symbol table in an objfile.
10781 * objfiles.c (terminate_minimal_symbol_table): New function.
10782 (allocate_objfile): Call it.
10783 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10784 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10786 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10787 objfile has minimal symbols, compare minimal_symbol_count to zero,
10788 instead of comparing msymbols with NULL.
10789 * objfiles.c (have_minimal_symbols): Same.
10790 * solib-sunos.c (solib_add_common_symbols): Call
10791 terminate_minimal_symbol_table.
10792 * symfile.c (reread_symbols): Same.
10794 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10796 * s390-tdep.c (s390_address_class_type_flags)
10797 (s390_address_class_type_flags_to_name)
10798 (s390_address_class_name_to_type_flags): New functions.
10799 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10800 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10802 2003-02-03 Michael Snyder <msnyder@redhat.com>
10804 * arm-tdep.c: Fix spell-o in comment.
10806 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10808 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10809 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10810 error messages to contain BFD filename.
10812 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10814 Fix PR gdb/742 gdb/743 gdb/877
10815 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10816 (do_mixed_source_and_assembly): Use
10817 make_cleanup_ui_out_tuple_begin_end and
10818 make_cleanup_ui_out_tuple_begin_end.
10819 (do_mixed_source_and_assembly): Ditto.
10820 * thread.c (do_captured_list_thread_ids): Ditto.
10821 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10822 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10823 ui_out_tuple_end): Delete prototypes.
10824 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10825 ui_out_list_end, ui_out_tuple_end): Delete.
10827 From Kevin Buettner <kevinb@redhat.com>:
10828 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10829 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10830 (do_cleanup_table_end): New functions.
10831 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10832 Use cleanups to invoke_ui_out_tuple_end().
10833 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10834 * cli/cli-setshow.c (cmd_show_list): Use
10835 make_cleanup_ui_out_tuple_begin_end.
10837 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10839 * frame.c (frame_unwind_register): New function.
10840 (frame_unwind_unsigned_register): Use.
10841 (frame_unwind_signed_register): Use.
10842 (frame_read_register): New function.
10843 * frame.h (frame_unwind_register): Declare.
10844 (frame_read_register): Declare.
10846 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10847 and frame_unwind_register instead of read_memory, write_register
10848 and deprecated_write_register_bytes.
10850 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10852 * frame.h: Note that namelen can be negative.
10853 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10856 * NEWS: Mention that the d10v's `regs' command is deprecated.
10857 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10858 (d10v_print_registers_info): New function.
10859 (show_regs): Call d10v_print_registers_info.
10860 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10862 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10864 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10865 lost in the previous patch.
10867 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10869 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10870 * stack.c (print_frame_info_base): Output complete FRAME tuple
10871 for synthesized frames.
10873 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10875 * mips-nat.c (zerobuf): Delete.
10876 (fetch_inferior_registers): Alloc local zerobuf.
10877 (fetch_core_registers): Alloc local zerobuf.
10878 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10879 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10880 * thread-db.c (thread_db_store_registers): Ditto.
10881 * sh-tdep.c (sh_do_register): Ditto.
10882 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10883 * remote-sim.c (gdbsim_store_register): Ditto.
10884 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10885 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10886 * monitor.c (monitor_supply_register): Ditto.
10887 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10888 * mips-nat.c (fetch_inferior_registers): Ditto.
10889 * m68klinux-nat.c (fetch_register): Ditto.
10890 * lynx-nat.c (fetch_inferior_registers): Ditto.
10891 (fetch_inferior_registers): Ditto.
10892 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10893 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10894 (hpux_thread_store_registers): Ditto.
10895 * hppah-nat.c (fetch_register): Ditto.
10896 * hppab-nat.c (fetch_register): Ditto.
10897 * hppa-tdep.c (pa_register_look_aside): Ditto.
10898 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10899 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10901 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10903 * gdbarch.sh: Explictly specify all method levels. When a
10904 variable with an empty level, provide a non-multi-arch default.
10905 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10906 * gdbarch.h: Re-generate.
10907 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10908 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10910 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10912 * defs.h (host_pointer_to_address): Delete declaration.
10913 (address_to_host_pointer): Delete declaration.
10914 * utils.c (host_pointer_to_address): Delete function.
10915 (address_to_host_pointer): Delete function.
10916 * procfs.c (procfs_address_to_host_pointer): New function.
10917 * procfs.c (proc_set_watchpoint): Use.
10918 (procfs_can_use_hw_breakpoint): Update comments.
10919 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10920 (som_solib_add): Use.
10921 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10922 * hppa-tdep.c (unwind_command): Use.
10924 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10926 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10929 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10930 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10931 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10932 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10933 (define_symbol): Update.
10934 * symfile.c (generic_load): Remove references to nindy.
10935 * symtab.c: Remove references to nindy.
10937 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10939 * infcmd.c (print_float_info): Delete code conditional on
10941 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10942 * config/m68k/nm-apollo68b.h: Ditto.
10943 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10944 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10945 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10947 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10949 * config/i386/tm-i386os9k.h: Removed.
10951 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10952 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10953 they're identical to i[3456]86-*-sysv* now.
10954 * config/i386/i386v32.mh: Removed.
10955 * config/i386/xm-i386v32.h: Removed.
10956 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10958 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10960 * config/i386/i386dgux.mh: Removed.
10961 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10963 * configure.in: Fix typo.
10964 * configure: Regenerated.
10966 2003-01-31 David Carlton <carlton@math.stanford.edu>
10968 * dwarf2read.c (dwarf2_locate_sections): Set
10969 dwarf_ranges_section.
10971 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10973 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10974 * utils.c: Update comments documenting legitimate uses of PTR.
10976 * utils.c: Re-indent.
10978 * config/djgpp/fnchange.lst: Delete nindy files.
10979 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10980 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10981 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10982 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10983 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10984 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10985 * Makefile.in (init.c): Remove nindy references.
10986 (saber_gdb): Delete rule.
10987 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10988 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10990 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10991 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10992 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10993 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10994 nindy-share/stop.h.
10995 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10996 * saber.suppress: Delete file.
10998 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11000 * dbxread.c (stabs_data): New static variable.
11001 (fill_symbuf): Support an in-memory buffer for stabs data.
11002 (stabs_seek): New function.
11003 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11004 (read_ofile_symtab): Use stabs_seek.
11005 (elfstab_build_psymtabs): Take an asection* instead of
11006 an offset and size. Relocate the stabs data if necessary.
11007 Save the section* for dbx_psymtab_to_symtab.
11008 * dwarf2read.c: Add section variables for each debug section.
11009 (dwarf2_locate_sections): Fill them in.
11010 (dwarf2_read_section): Take an asection* argument.
11011 Relocate the section contents if necessary.
11012 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11013 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11014 it to dwarf2_read_section.
11015 (dwarf2_build_frame_info): Update callers.
11016 * elfread.c (elf_symfile_read): Update call to
11017 elfstab_build_psymtabs.
11018 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11019 (DBX_STAB_SECTION): New macro.
11020 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11021 * symfile.c (symfile_dummy_outputs): New function.
11022 (symfile_relocate_debug_section): New function.
11023 * symfile.h (symfile_relocate_debug_section): Add prototype.
11025 2003-01-31 Richard Henderson <rth@redhat.com>
11027 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11028 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11029 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11030 * alpha-tdep.c (alpha_register_name): Add "unique".
11031 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11032 (ALPHA_UNIQUE_REGNUM): New.
11033 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11035 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11037 * README: Remove reference to Ericsson 1800 monitor.
11038 * Makefile.in (remote-es.o): Delete rule.
11039 (ALLDEPFILES): Delete remote-es.c.
11040 * remote-es.c: Delete file.
11041 * config/m68k/es1800.mt: Delete file.
11042 * config/djgpp/fnchange.lst: Update.
11043 * configure.tgt: Delete m68*-ericsson-* target.
11045 2003-01-31 Adam Fedor <fedor@gnu.org>
11047 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11048 Remove duplicate/shadowing variable of same name.
11050 2003-01-30 Jim Blandy <jimb@redhat.com>
11052 * symfile.c (find_separate_debug_file): Assert that the objfile's
11053 directory name we compute ends with a slash, and then assume that
11054 that's so everywhere we use it.
11056 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11058 * valops.c (value_assign): Flush frame cache after stores to memory
11061 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11063 * Makefile.in (mon960-rom.o): Delete rule.
11064 * mon960-rom.c: Delete file.
11066 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11068 * d10v-tdep.c: Include "frame-unwind.h".
11069 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11071 (next_addr, uses_frame): Delete.
11072 (struct d10v_unwind_cache): Define.
11073 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11074 Use info instead of next_addr and uses_frame globals.
11075 (d10v_frame_init_saved_regs): Delete function.
11076 (d10v_init_extra_frame_info): Delete function.
11077 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11078 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11079 init_frame_pc or frame_saved_pc.
11080 (d10v_pop_frame): Delete function.
11081 (do_d10v_pop_frame): Delete function.
11082 (d10v_frame_chain): Delete function.
11083 (d10v_frame_chain_valid): Delete function.
11084 (d10v_frame_pc_unwind): New function.
11085 (d10v_frame_id_unwind): New function.
11086 (saved_regs_unwinder): New function.
11087 (d10v_frame_register_unwind): New function.
11088 (d10v_frame_pop): New function.
11089 (d10v_frame_unwind): New variable.
11090 (d10v_frame_p): New function.
11091 (d10v_frame_saved_pc): Delete function.
11092 * Makefile.in (d10v-tdep.o): Update dependencies.
11094 2003-01-30 J. Brobecker <brobecker@gnat.com>
11096 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11097 causing some regressions due to a change in the default value
11100 2003-01-29 Richard Henderson <rth@redhat.com>
11101 Elena Zannoni <ezannoni@redhat.com>
11102 Daniel Jacobowitz <drow@mvista.com>
11105 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11107 (RANGES_SECTION): New.
11108 (dwarf_ranges_buffer): New variable.
11109 (struct comp_unit_head): Add member "die".
11110 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11111 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11112 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11113 (dwarf2_locate_sections): Likewise.
11114 (dwarf2_build_psymtabs): Read .debug_ranges.
11115 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11116 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11117 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11118 Look for DW_AT_ranges and return the bounding box.
11120 2003-01-29 Brian Ford <ford@vss.fsi.com>
11122 * win32-nat.c (cygwin_pid): Removed as unused.
11123 (child_attach): Try fall back to Cygwin pid.
11125 2003-01-29 Jim Blandy <jimb@redhat.com>
11127 * objfiles.h (struct objfile): Doc fix.
11129 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11131 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11132 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11133 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11134 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11135 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11136 (FRAME_SAVED_PC): Change to a function with predicate.
11137 * gdbarch.h, gdbarch.c: Re-generate.
11139 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11141 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11143 * complaints.c (complain): Delete function.
11144 * complaints.h (struct deprecated_complaint): Delete definition.
11145 (complain): Delete declaration.
11147 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11149 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11152 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11154 * sentinel-frame.h, sentinel-frame.c: New files.
11155 * Makefile.in (frame.o): Update dependencies.
11156 (SFILES): Add sentinel-frame.c.
11157 (sentinel_frame_h): Define.
11158 (COMMON_OBS): Add sentinel-frame.o.
11159 (sentinel-frame.o): Specify dependencies.
11160 * frame.c: Include "sentinel-frame.h".
11161 (frame_register_unwind): Rewrite assuming that there is always a a
11163 (frame_register, generic_unwind_get_saved_register): Ditto.
11164 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11165 (create_sentinel_frame, unwind_to_current_frame): New functions.
11166 (get_current_frame): Rewrite using create_sentinel_frame and
11167 unwind_to_current_frame. When possible, always create a frame.
11168 (create_new_frame): Set next to the sentinel frame.
11169 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11170 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11171 ID cache when necessary.
11172 (frame_saved_regs_id_unwind): Use frame_relative_level.
11173 (deprecated_generic_get_saved_register): Use frame_relative_level,
11174 get_frame_saved_regs, get_frame_pc, get_frame_base and
11176 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11179 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11181 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11183 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11185 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11186 (maintenance_set_profile_cmd): Use error () instead of warning ().
11188 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11190 * configure.in: Check that -pg works if using --enable-profiling.
11191 Check for monstartup and _mcleanup regardless of --enable-profiling.
11192 * maint.c: Check for monstartup and _mcleanup before using them.
11193 * config.in: Regenerated.
11194 * configure: Regenerated.
11196 2003-01-24 Nick Clifton <nickc@redhat.com>
11198 * Add sh2e support:
11200 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11202 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11203 (sh2e_show_regs): New.
11204 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11205 * config/sh/tm-sh.h: Added sh2e to comments.
11207 2003-01-23 Jim Blandy <jimb@redhat.com>
11209 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11210 symbols found)" message here; we haven't checked for a separate
11211 debug info file yet, so we don't know yet.
11212 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11213 we've looked everywhere. Also, there's no need to print a special
11214 message when we're loading the separate debug info file: the one
11215 symbol_file_add prints is fine.
11217 2003-01-23 Alexander Larsson <alexl@redhat.com>
11218 Jim Blandy <jimb@redhat.com>
11220 Add support for executables whose debug info has been separated
11221 out into a separate file, leaving only a link behind.
11222 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11223 and separate_debug_objfile_backlink.
11224 (put_objfile_before): New declaration.
11225 * symfile.c: #include "filenames.h".
11226 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11227 debug info in a separate file, read that, too. Save the addrs
11228 argument, so we can use it again to read the separated debug info;
11229 syms_from_objfile modifies the table we pass it.
11230 (reread_symbols): After re-reading an objfile, call
11231 reread_separate_symbols to refresh its separate debug info
11232 objfile, if it has one.
11233 (reread_separate_symbols, find_separate_debug_file,
11234 get_debug_link_info, separate_debug_file_exists): New functions.
11235 (debug_file_directory): New global var.
11236 (_initialize_symfile): Initialize debug_file_directory, and
11237 provide the new `set debug-file-directory' command to let the user
11239 * objfiles.c (free_objfile): If this objfile has its debug info in
11240 a separate objfile, free that one too. If this is itself a
11241 separate debug info objfile, clear our parent's backlink.
11242 (put_objfile_before): New function.
11243 * utils.c (gnu_debuglink_crc32): New function.
11244 * defs.h (gnu_debuglink_crc32): New declaration.
11245 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11246 * configure.in: Handle --with-separate-debug-dir config option.
11247 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11248 * acconfig.h (DEBUGDIR): New macro.
11249 * configure, aclocal.m4, config.in: Regenerated.
11251 2003-01-22 Jim Blandy <jimb@redhat.com>
11253 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11254 like the old symbol_file_add, but taking new arguments: you can
11255 now pass in either a `struct section_addr_info' list to say where
11256 each section is loaded, or a `struct section_offsets' table. Pass
11257 these new arguments through to syms_from_objfile as appropriate.
11258 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11259 with the appropriate quiescent values for the new arguments.
11261 * symfile.c: #include "gdb_assert.h".
11262 (syms_from_objfile): Add the ability to pass in a section offset
11263 table directly, as an alternative to the section_addr_info table.
11264 Document arguments better.
11265 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11266 * symfile.h (syms_from_objfile): Update declaration.
11267 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11269 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11271 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11273 Original patch by Tom Tromey <tromey@cygnus.com> and
11274 Jason Molenda <jmolenda@apple.com>.
11275 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11276 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11277 * NEWS: Mention profiling.
11278 * configure.in (--enable-gdbtk): Fix typo.
11279 (--enable-profiling): New. Set PROFILE_CFLAGS.
11280 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11282 (profiling_state): New variable.
11283 (mcleanup_wrapper): New function.
11284 (_initialize_maint): Remove NOTYET, fix call to
11285 add_setshow_boolean_cmd for "maint set profile".
11286 * configure: Regenerated.
11288 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11290 * Makefile.in (install-gdbtk): Install PNG images too.
11292 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11294 * exec.c (text_start): Delete global variable.
11295 (exec_file_attach): Make text_start local to the function.
11296 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11297 * valops.c (hand_function_call): Delete code that handles
11298 BEFORE_TEXT_END and AFTER_TEXT_END.
11299 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11300 of CALL_DUMMY_LOCATION.
11301 * gdbarch.c: Regenerate.
11302 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11303 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11304 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11305 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11306 (text_end): Delete extern declaration.
11308 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11310 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11311 * blockframe.c (backtrace_below_main): Move to "frame.c".
11312 (frame_chain_valid): Delete check for backtrace_below_main.
11313 (_initialize_blockframe): Delete initialization, move ``set
11314 backtrace-below-main'' command to "frame.c".
11315 (do_flush_frames_sfunc): Delete function.
11316 * frame.c: Include "command.h" and "gdbcmd.h".
11317 (frame_type_from_pc): New function.
11318 (create_new_frame): Use frame_type_from_pc.
11319 (legacy_get_prev_frame): New function.
11320 (get_prev_frame): Rewrite. When an old style frame, call
11321 legacy_get_prev_frame. Otherwize, unwind the PC first.
11322 (_initialize_frame): Add ``set backtrace-below-main'' command.
11323 * Makefile.in (frame.o): Update dependencies.
11325 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11327 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11328 DEPRECATED_REGISTERS_INFO.
11330 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11332 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11333 Maintainers'. Update `Various Maintainers'.
11335 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11337 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11338 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11339 Suppress actual parameters when `-'.
11340 * gdbarch.h, gdbarch.c: Regenerate.
11342 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11344 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11345 code handling dummy frames.
11347 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11349 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11350 (struct frame_unwind): Add field pop.
11351 * frame.h (frame_pop): Declare.
11352 * frame.c (frame_saved_regs_pop): New function.
11353 (trad_frame_unwinder): Add frame_saved_regs_pop.
11354 (frame_pop): New function.
11355 * dummy-frame.c (dummy_frame_pop): New function.
11356 (discard_innermost_dummy): New function.
11357 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11358 (dummy_frame_unwind): Add dummy_frame_pop.
11359 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11360 * valops.c (hand_function_call): Ditto.
11361 * stack.c (return_command): Ditto.
11363 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11365 * cris-tdep.c: Fix function declaration indentation.
11366 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11367 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11368 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11369 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11370 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11371 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11373 2003-01-18 Michael Chastain <mec@shout.net>
11375 * README (Unpacking and Installation -- quick overview):
11376 Warn against ".../gdb-5.3/gdb/configure".
11378 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11380 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11381 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11382 (struct frame_unwind): Declare opaque.
11383 (dummy_frame_p): Declare function.
11384 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11385 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11386 * dummy-frame.c: Include "frame-unwind.h".
11387 (dummy_frame_p): New function.
11388 (dummy_frame_unwind): New variable.
11389 * frame.c: Include "frame-unwind.h".
11390 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11391 to use the new unwind field.
11392 (set_unwind_by_pc): Delete function.
11393 (create_new_frame, get_prev_frame): Set unwind field using
11394 frame_unwind_find_by_pc.
11395 (trad_frame_unwind, trad_frame_unwinder): New variables.
11396 * frame.h (trad_frame_unwind): Declare variable.
11397 (frame_id_unwind_ftype): Delete declaration.
11398 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11399 (struct frame_unwind): Declare opaque.
11400 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11401 register_unwind with a single unwind pointer.
11402 * frame-unwind.h, frame-unwind.c: New files.
11403 * Makefile.in (SFILES): Add frame-unwind.c.
11404 (frame_unwind_h): Define.
11405 (COMMON_OBS): Add frame-unwind.o.
11406 (frame-unwind.o): Specify dependencies.
11407 (frame.o, dummy-frame.o): Update dependencies.
11409 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11411 * ada-valprint.c: Eliminate PTR.
11412 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11413 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11414 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11415 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11416 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11417 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11418 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11420 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11422 * main.c (captured_main): Don't use PTR.
11423 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11424 * gdbtypes.c (lookup_primitive_typename): Ditto.
11425 (lookup_struct_elt_type): Ditto.
11426 * f-valprint.c (info_common_command): Ditto.
11427 (list_all_visible_commons): Ditto.
11428 * jv-typeprint.c (java_type_print_base): Ditto.
11430 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11431 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11432 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11433 i386-interix-nat.c and i386-interix-tdep.c. Rename
11434 m68klinux-nat.c and m68klinux-tdep.c. Rename
11435 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11436 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11437 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11438 * main.c (captured_main): Use xfree, not free.
11440 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11442 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11443 ID back using a parameter.
11444 * frame.c (frame_id_unwind): Update call.
11445 (frame_saved_regs_id_unwind): Update.
11446 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11447 * dummy-frame.h (struct frame_id): Add opaque declaration.
11448 (dummy_frame_id_unwind): Update declaration.
11450 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11452 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11454 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11456 * MAINTAINERS (Stephen P. Smith): Updated email address.
11458 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11461 * breakpoint.c (until_break_command): Add new argument. Use it to
11462 decide whether to stop only at the current frame or not.
11463 * breakpoint.h (until_break_command): Update prototype.
11464 * infcmd.c (until_command): Add new argument to until_break_command
11466 (advance_command): New function.
11467 (_initialize_infcmd): Update help string for 'until' command.
11468 Add new 'advance' command.
11470 2003-01-14 David Carlton <carlton@math.stanford.edu>
11472 * linespec.c (decode_line_1): Normalize comments.
11473 (set_flags): Ditto.
11474 (locate_first_half): Ditto.
11475 (decode_compound): Ditto.
11476 (symtab_from_filename): Ditto.
11477 (decode_all_digits): Ditto.
11478 (decode_dollar): Ditto.
11479 (find_methods): Ditto.
11480 (find_toplevel_char): Ditto.
11482 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11484 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11485 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11486 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11487 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11488 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11489 * language.c, language.h, m32r-tdep.c: Update copyright.
11490 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11491 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11492 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11493 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11494 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11495 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11497 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11499 * stabsread.h (process_later, resolve_cfront_continuation):
11501 Update copyright years.
11502 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11503 Update copyright year.
11504 * dbxread.c(struct cont_elem): Obsolete.
11505 (process_later, process_now): Obsolete functions.
11506 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11507 Update copyright year.
11508 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11509 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11510 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11511 (parse_partial_symbols): Obsolete cfront support.
11513 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11515 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11516 read_cfront_baseclasses, read_cfront_member_functions,
11517 resolve_cfront_continuation,read_cfront_static_fields,
11518 copy_cfront_struct_fields): Obsolete functions.
11519 (define_symbol, read_one_struct_field): Obsolete cfront support.
11520 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11521 Update Copyright year.
11523 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11525 * stack.c (print_frame_info, print_stack_frame_base_stub,
11526 print_stack_frame_base, show_and_print_stack_frame_stub,
11527 show_and_print_stack_frame, print_only_stack_frame_stub,
11528 print_only_stack_frame): Delete functions.
11529 (print_stack_frame_stub): Call print_frame_info instead of
11530 print_frame_info_base.
11531 (print_frame_info_base): Rename to print_frame_info.
11532 (backtrace_command_1): Call print_frame_info, instead of
11533 print_frame_info_base.
11534 (current_frame_command): Call print_stack_frame, instead of
11535 print_only_stack_frame.
11536 (frame_command): Call print_stack_frame, instead of
11537 show_and_print_stack_frame.
11538 (up_command): Ditto.
11539 (down_command): Ditto.
11540 * frame.h (print_only_stack_frame): Delete prototype.
11541 * infrun.c (normal_stop): Call print_stack_frame, instead of
11542 show_and_print_stack_frame.
11543 * thread.c (info_threads_command): Call print_stack_frame, instead
11544 of print_only_stack_frame.
11546 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11548 * README (Graphical interface to GDB): Update URL. Point at
11551 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11554 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11556 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11559 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11561 * thread-db.c (attach_thread): Prototype.
11562 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11563 thread information (ti), and valid flags (th_valid, ti_valid).
11564 (attach_thread): Move target_pid_to_str call to after the thread
11565 is added to GDB's list. Initialize the cache.
11566 (thread_get_info_callback, thread_db_map_id2thr)
11567 (thread_db_get_info): New functions.
11568 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11569 (thread_db_store_registers, thread_db_thread_alive)
11570 (thread_db_get_thread_local_address): Use them.
11571 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11572 of calling error() for threads in unknown state.
11574 (clear_lwpid_callback): New function.
11575 (thread_db_resume): Use it to clear the cache.
11577 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11579 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11580 (resume_callback): Remove dead code.
11582 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11584 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11586 * gdbarch.h, gdbarch.c: Regenerate.
11587 * stack.c (frame_info): Only initialize the saved registers when
11588 FRAME_INIT_SAVED_REGS_P.
11589 * frame.c (frame_saved_regs_register_unwind): Assert
11590 FRAME_INIT_SAVED_REGS_P.
11591 (deprecated_generic_get_saved_register): Ditto.
11593 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11595 * source.c (openp): Squelch warning about "filename".
11597 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11599 * source.c (openp): If the file does not exist don't necessarily
11602 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11605 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11606 (integer_types_same_name_p): New function.
11607 (rank_one_type): Use it.
11608 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11610 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11612 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11614 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11615 * configure.in: Add --with-sysroot.
11616 * configure: Regenerated.
11617 * main.c (gdb_sysroot): New variable.
11618 (captured_main): Initialize gdb_sysroot.
11619 * defs.h (gdb_sysroot): New extern declaration.
11620 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11622 2003-01-12 Michael Chastain <mec@shout.net>
11624 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11626 2003-01-12 Michael Chastain <mec@shout.net>
11628 * top.c (print_gdb_version): Bump copyright year to 2003.
11630 2003-01-12 David Carlton <carlton@bactrian.org>
11632 * linespec.c (symtab_from_filename): Rename variable 's' to
11635 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11637 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11639 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11641 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11643 * d10v-tdep.c: Include "gdb_assert.h".
11644 (d10v_store_return_value): Rewrite to match current interface.
11645 (d10v_extract_struct_value_address): Ditto.
11646 (d10v_extract_return_value): Ditto.
11647 (d10v_gdbarch_init): Set store_restore_value,
11648 extract_struct_value_address and extract_return_value.
11650 2003-01-12 J. Brobecker <brobecker@gnat.com>
11652 * hpread.c (set_namestring): New procedure replacing the
11653 SET_NAMESTRING macro.
11654 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11655 by calls to set_namestring.
11657 2003-01-11 J. Brobecker <brobecker@gnat.com>
11659 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11660 a compilation warning.
11661 (hpread_process_one_debug_symbol): Likewise.
11663 2003-01-10 David Carlton <carlton@math.stanford.edu>
11665 * linespec.c (decode_line_1): Rename variable 's' to
11667 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11668 (decode_dollar): Ditto.
11669 (decode_variable): Ditto.
11670 (symbol_found): Ditto.
11672 2003-01-09 Michael Chastain <mec@shout.net>
11674 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11676 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11678 * win32-nat.c (set_process_privilege): New function.
11679 (child_attach): Call set_process_privilege() to enable the
11680 SE_DEBUG_NAME user privilege if available in process token.
11682 2003-01-10 J. Brobecker <brobecker@gnat.com>
11684 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11685 compilation error in the previous revision.
11687 2003-01-09 David Carlton <carlton@math.stanford.edu>
11689 * linespec.c: Update copyright.
11691 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11693 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11694 than inferior_ptid.
11695 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11697 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11699 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11701 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11702 (frame_saved_regs_zalloc): Update.
11703 (frame_saved_regs_register_unwind): Update.
11704 (create_new_frame): Update.
11705 (get_prev_frame): Update.
11706 (frame_extra_info_zalloc): Update.
11707 (deprecated_get_frame_saved_regs): Update.
11708 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11709 * cris-tdep.c: Update comment.
11711 * somsolib.h: Fix function indentation.
11712 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11713 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11714 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11715 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11716 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11718 * infrun.c (follow_fork): Use ISO C definition.
11719 * expprint.c (print_subexp): Use xfree instead of free.
11720 * charset.c: Include "gdb_string.h" instead of <string.h>.
11721 (register_iconv_charsets): Use ISO C definition.
11722 (host_charset, target_charset): Ditto.
11723 * Makefile.in (charset.o): Update dependencies.
11724 (mi-cmd-env.o): Update dependencies.
11726 2003-01-08 Andrew Cagney <cagney@redhat.com>
11728 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11731 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11733 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11734 build directories. Save edited gdb output in Mbuild.log. If a
11735 build fails, remove any final GDB executable.
11737 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11739 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11740 replacing hex constants with function names and stripping leading
11741 file name directory prefixes.
11743 2003-01-08 Andrew Cagney <cagney@redhat.com>
11745 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11748 2003-01-08 David Carlton <carlton@math.stanford.edu>
11750 * linespec.c (decode_line_1): Move code into decode_variable.
11751 (decode_variable): New function.
11753 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11755 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11757 2003-01-08 Andrew Cagney <cagney@redhat.com>
11759 * cris-tdep.c (cris_frame_init_saved_regs): Use
11760 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11762 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11763 (sh64_nofp_frame_init_saved_regs): Ditto.
11764 (sh_fp_frame_init_saved_regs): Ditto.
11765 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11766 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11767 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11768 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11770 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11772 * minsyms.c (lookup_minimal_symbol): Update comment.
11773 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11774 (lookup_minimal_symbol_solib_trampoline): Likewise.
11776 2003-01-08 Andrew Cagney <cagney@redhat.com>
11778 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11779 frame_relative_level.
11781 * alpha-tdep.c: Use get_frame_extra_info.
11782 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11783 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11784 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11785 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11787 * alpha-tdep.c: Use get_next_frame.
11788 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11789 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11790 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11791 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11792 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11793 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11794 * xstormy16-tdep.c: Ditto.
11796 2003-01-07 Andrew Cagney <cagney@redhat.com>
11798 * alpha-tdep.c: Use get_frame_base.
11799 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11800 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11801 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11802 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11803 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11804 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11805 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11806 * config/sparc/tm-sparc.h: Ditto.
11808 2003-01-07 Andrew Cagney <cagney@redhat.com>
11810 * frame.c (deprecated_get_frame_context): New function.
11811 (deprecated_set_frame_context): New function.
11812 * frame.h (deprecated_get_frame_context): Declare.
11813 (deprecated_set_frame_context): Declare.
11814 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11815 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11817 2003-01-07 Andrew Cagney <cagney@redhat.com>
11819 * frame.c (deprecated_set_frame_next_hack): New function.
11820 (deprecated_set_frame_prev_hack): New function.
11821 * frame.h (deprecated_set_frame_next_hack): Declare.
11822 (deprecated_set_frame_prev_hack): Declare.
11823 * mcore-tdep.c (analyze_dummy_frame): Use
11824 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11825 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11827 2003-01-07 David Carlton <carlton@math.stanford.edu>
11829 * linespec.c (decode_line_1): Move code into decode_dollar.
11830 (decode_dollar): New function.
11832 2003-01-07 Andrew Cagney <cagney@redhat.com>
11834 * arm-tdep.c (arm_init_extra_frame_info): Use
11835 deprecated_update_frame_base_hack.
11836 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11837 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11838 (fix_frame_pointer): Ditto.
11839 (mn10300_analyze_prologue): Ditto.
11841 2003-01-07 Andrew Cagney <cagney@redhat.com>
11843 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11844 extra_info using frame_extra_info_zalloc.
11845 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11846 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11847 (sh64_init_extra_frame_info): Ditto.
11848 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11849 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11850 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11851 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11852 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11853 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11854 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11855 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11856 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11857 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11858 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11859 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11861 * mn10300-tdep.c (analyze_dummy_frame): Use
11862 deprecated_set_frame_extra_info_hack.
11863 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11865 2003-01-07 J. Brobecker <brobecker@gnat.com>
11867 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11868 class is not scText. These do not define "real" procedures.
11869 (parse_partial_symbols): Likewise.
11871 2003-01-06 Michael Snyder <msnyder@redhat.com>
11873 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11875 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11877 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11878 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11879 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11880 deprecated_frame_xmalloc_with_cleanup.
11881 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11882 deprecated_frame_xmalloc.
11883 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11884 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11886 2003-01-06 Andrew Cagney <cagney@redhat.com>
11888 * x86-64-linux-tdep.c: Include "osabi.h".
11889 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11891 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11893 2003-01-06 Andrew Cagney <cagney@redhat.com>
11895 * MAINTAINERS (Target Instruction Set Architectures): Update
11896 arm-elf. Can be built with -Werror, has been multiarched.
11898 * value.h (unpack_long): Make buffer parameter constant.
11899 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11900 * scm-lang.h (scm_parse): Ditto.
11901 * defs.h (extract_typed_address, extract_address): Ditto.
11902 (extract_long_unsigned_integer): Ditto.
11903 * inferior.h (unsigned_pointer_to_address): Ditto.
11904 (signed_pointer_to_address): Ditto.
11905 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11906 * gdbarch.h, gdbarch.c: Regenerate.
11907 * findvar.c (extract_long_unsigned_integer): Update.
11908 (extract_address): Update.
11909 (extract_typed_address): Update.
11910 (unsigned_pointer_to_address): Update.
11911 * values.c (unpack_long): Update.
11912 (unpack_double): Update.
11913 (unpack_pointer): Update.
11914 (unpack_field_as_long): Update.
11915 * d10v-tdep.c (d10v_pointer_to_address): Update.
11916 * avr-tdep.c (avr_pointer_to_address): Update.
11917 * scm-lang.c (scm_unpack): Update.
11918 * findvar.c (signed_pointer_to_address): Update.
11920 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11922 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11923 since it is in i386-tdep.c.
11925 2003-01-06 J. Brobecker <brobecker@gnat.com>
11927 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11928 failure introduced in the previous change.
11930 2003-01-05 Michael Chastain <mec@shout.net>
11932 * README: Remove references to deleted remote-*.c files:
11933 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11934 remote-nrom.c, remote-os9k.c, remote-udi.c.
11936 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11938 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11939 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11940 i386_get_longjmp_target.
11942 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11944 * arm-tdep.c (prologue_cache): Change to a pointer.
11945 (_initialize_arm_tdep): Allocate prologue_cache.
11946 (check_prologue_cache): Update.
11947 (save_prologue_cache): Update.
11948 (arm_gdbarch_init): Update.
11950 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11952 * stabsread.c (update_method_name_from_physname): Call complaint()
11955 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11957 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11958 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11959 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11961 * blockframe.c: Include "gdbcmd.h" and "command.h".
11962 (backtrace_below_main): New variable.
11963 (file_frame_chain_valid, func_frame_chain_valid)
11964 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11965 (generic_func_frame_chain_valid): Remove functions.
11966 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11967 (_initialize_blockframe): New function.
11968 * Makefile.in (blockframe.o): Update dependencies.
11969 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11970 comment. Call frame_chain_valid ().
11971 * frame.h: Remove old prototypes. Add prototype for
11972 frame_chain_valid and update comments to match.
11973 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11974 Remove old comment.
11975 * gdbarch.h: Regenerated.
11976 * gdbarch.c: Regenerated.
11978 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11979 set_gdbarch_frame_chain_valid.
11980 * avr-tdep.c (avr_gdbarch_init): Likewise.
11981 * cris-tdep.c (cris_gdbarch_init): Likewise.
11982 * frv-tdep.c (frv_gdbarch_init): Likewise.
11983 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11984 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11985 (i386_nw_init_abi): Likewise.
11986 (i386_gdbarch_init): Likewise.
11987 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11989 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11990 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11991 * mips-tdep.c (mips_gdbarch_init): Likewise.
11992 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11993 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11994 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11995 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11996 * s390-tdep.c (s390_gdbarch_init): Likewise.
11997 * sh-tdep.c (sh_gdbarch_init): Likewise.
11998 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11999 * v850-tdep.c (v850_gdbarch_init): Likewise.
12000 * vax-tdep.c (vax_gdbarch_init): Likewise.
12001 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12003 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12004 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12005 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12006 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12007 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12008 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12009 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12010 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12012 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12014 * Makefile.in (acconfig_h): Remove incorrect macro.
12015 (config_h): Define.
12016 (osabi.o): Update dependencies.
12017 * configure.tgt: Set gdb_osabi based on target triplet.
12018 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12019 * configure: Regenerated.
12020 * config.in: Regenerated.
12021 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12022 (GDB_OSABI_DEFAULT): Define if not already defined.
12023 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12024 (set_osabi_string): New variables.
12025 (gdbarch_register_osabi): Add new OS ABI to
12026 gdb_osabi_available_names.
12027 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12028 (set_osabi, show_osabi): New functions.
12029 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12031 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12033 * arch-utils.c (gdbarch_info_init): Set osabi to
12034 GDB_OSABI_UNINITIALIZED.
12035 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12036 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12037 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12038 * gdbarch.c: Regenerated.
12039 * gdbarch.h: Regenerated.
12040 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12042 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12043 * osabi.h (enum gdb_osabi): Move to defs.h.
12044 (gdbarch_init_osabi): Update prototype.
12045 * defs.h (enum gdb_osabi): Moved here.
12046 * Makefile.in: Update dependencies.
12048 * alpha-tdep.h: Don't include "osabi.h".
12049 (struct gdbarch_tdep): Remove osabi member.
12050 * alpha-tdep.c: Include "osabi.h".
12051 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12052 iterate over arches. Update call to gdbarch_init_osabi.
12053 (alpha_dump_tdep): Don't dump osabi.
12054 * alpha-linux-tdep.c: Include "osabi.h".
12055 * alpha-osf1-tdep.c: Include "osabi.h".
12056 * alphafbsd-tdep.c: Include "osabi.h".
12057 * alphanbsd-tdep.c: Include "osabi.h".
12059 * arm-tdep.h: Don't include "osabi.h".
12060 (struct gdbarch_tdep): Remove osabi member.
12061 * arm-tdep.c: Include "osabi.h".
12062 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12063 iterate over arches. Update call to gdbarch_init_osabi.
12064 (arm_dump_tdep): Don't dump osabi.
12065 * arm-linux-tdep.c: Include "osabi.h".
12066 * armnbsd-tdep.c: Include "osabi.h".
12068 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12069 Update call to gdbarch_init_osabi.
12071 * i386-tdep.h: Don't include "osabi.h".
12072 (struct gdbarch_tdep): Remove osabi member.
12073 * i386-tdep.c: Include "osabi.h".
12074 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12075 iterate over arches. Update call to gdbarch_init_osabi.
12076 (i386_dump_tdep): Don't dump osabi.
12077 * i386-linux-tdep.c: Include "osabi.h".
12078 * i386-sol2-tdep.c: Include "osabi.h".
12079 * i386bsd-tdep.c: Include "osabi.h".
12080 * i386gnu-tdep.c: Include "osabi.h".
12081 * i386ly-tdep.c: Include "osabi.h".
12082 * i386nbsd-tdep.c: Include "osabi.h".
12083 * i386obsd-tdep.c: Include "osabi.h".
12085 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12086 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12087 check osabi when iterating over arches. Update call to
12088 gdbarch_init_osabi.
12089 (mips_dump_tdep): Don't dump osabi.
12091 * ns32k-tdep.h: Don't include "osabi.h".
12092 (struct gdbarch_tdep): Remove.
12093 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12094 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12095 allocate tdep. Update call to gdbarch_init_osabi.
12096 (ns32k_dump_tdep): Remove.
12097 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12098 * ns32knbsd-tdep.c: Include "osabi.h".
12100 * ppc-tdep.h: Don't include "osabi.h".
12101 (struct gdbarch_tdep): Remove osabi member.
12102 * rs6000-tdep.c: Include "osabi.h".
12103 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12104 osabi when iterating over arches. Update call to
12105 gdbarch_init_osabi.
12106 (rs6000_dump_tdep): Don't dump osabi.
12107 * ppc-linux-tdep.c: Include "osabi.h".
12108 * ppcnbsd-tdep.c: Include "osabi.h".
12110 * sh-tdep.h: Don't include "osabi.h".
12111 (struct gdbarch_tdep): Remove osabi member.
12112 * sh-tdep.c: Include "osabi.h".
12113 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12114 iterate over arches. Update call to gdbarch_init_osabi.
12115 (sh_dump_tdep): Don't dump osabi.
12116 * shnbsd-tdep.c: Include "osabi.h".
12118 * sparc-tdep.c: Include "osabi.h".
12119 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12120 iterate over arches. Update call to gdbarch_init_osabi.
12121 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12124 * vax-tdep.h: Don't include "osabi.h".
12125 (struct gdbarch_tdep): Remove.
12126 * vax-tdep.c: Include "osabi.h".
12127 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12128 iterate over arches. Don't allocate tdep. Update call
12129 to gdbarch_init_osabi.
12130 (vax_dump_tdep): Remove.
12131 (_initialize_vax_tdep): Update call to gdbarch_register.
12133 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12135 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12137 (breakpoint_re_set_one): Don't fetch the value for a disabled
12140 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12142 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12143 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12144 (COERCE_FLOAT_TO_DOUBLE): Remove.
12145 * gdbarch.c: Regenerate.
12146 * gdbarch.h: Regenerate.
12147 * Makefile.in: Remove value_h from gdbarch_h.
12148 * valops.c (coerce_float_to_double): New variable.
12149 (default_coerce_float_to_double): Remove.
12150 (standard_coerce_float_to_double): Remove.
12151 (value_arg_coerce): Use coerce_float_to_double.
12152 (_initialize_valops): Add "set coerce-float-to-double".
12153 * value.h (default_coerce_float_to_double): Remove prototype.
12154 (standard_coerce_float_to_double): Remove prototype.
12156 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12158 * mdebugread.c (parse_symbol): Likewise.
12159 * stabsread.c (define_symbol): Mark all functions as prototyped.
12161 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12162 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12163 set_gdbarch_coerce_float_to_double.
12164 * arm-tdep.c (arm_gdbarch_init): Likewise.
12165 * frv-tdep.c (frv_gdbarch_init): Likewise.
12166 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12167 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12168 * mips-tdep.c (mips_gdbarch_init): Likewise.
12169 (mips_coerce_float_to_double): Remove.
12170 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12171 (rs6000_coerce_float_to_double): Remove.
12172 * s390-tdep.c (s390_gdbarch_init): Likewise.
12173 * sh-tdep.c (sh_gdbarch_init): Likewise.
12174 (sh_coerce_float_to_double): Remove.
12175 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12176 (sparc_coerce_float_to_double): Remove.
12177 * v850-tdep.c (v850_gdbarch_init): Likewise.
12178 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12179 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12180 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12181 (hppa_coerce_float_to_double): Remove prototype.
12182 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12184 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12186 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12188 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12190 Suggested by Stewart Brown <sb24@avaya.com>:
12191 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12192 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12193 (c_type_print_varspec_suffix): Likewise.
12195 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12197 * configure.in: Don't set and AC_SUBST SUBDIRS.
12198 * configure: Regenerated.
12200 * configure.in: Remove code dealing with shared libraries.
12201 * Makefile.in: Remove HLDFLAGS and HLDENV.
12202 * configure: Regenerated.
12204 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12206 * frame.c (deprecated_frame_xmalloc): New function.
12207 (deprecated_set_frame_saved_regs_hack): New function.
12208 (deprecated_set_frame_extra_info_hack): New function.
12209 * frame.h (deprecated_frame_xmalloc): Declare.
12210 (deprecated_set_frame_saved_regs_hack): Declare.
12211 (deprecated_set_frame_extra_info_hack): Declare.
12213 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12215 * configure.in: Move code that provides the --enable-gdbtk option
12216 right after the code that handles the --enable-tui option, and
12217 polish it somewhat.
12218 * configure: Regenerated.
12220 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12221 AC_CHECK_FUNCS and remove the old check for pread64.
12222 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12223 * acconfig.h (_GNU_SOURCE): Add.
12224 (HAVE_PREAD64): Remove.
12225 * configure, aclocal.m4, config.in: Regenerated.
12227 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12229 * alpha-tdep.c: Use get_frame_saved_regs.
12230 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12231 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12232 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12233 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12234 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12236 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12238 * configure.in: Remove all use of the SUBDIRS variable; add
12239 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12240 code providing the --enable-multi-ice option, and move it right in
12241 front of the code that checks whether gdbserver is supported.
12243 * configure: Regenerated.
12244 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12247 2003-01-03 Andrew Cagney <cagney@redhat.com>
12249 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12250 * avr-tdep.c, cris-tdep.c: Ditto.
12251 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12252 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12254 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12256 * configure.in: Remove --enable-netrom option.
12257 * configure: Regenerated.
12259 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12261 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12262 declaration for `struct re_pattern_buffer' instead.
12263 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12265 2003-01-03 J. Brobecker <brobecker@gnat.com>
12267 * mdebugread.c (parse_symbol): Count until the stEnd matching
12268 the structure name.
12270 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12272 * configure.in: Remove --with-cpu option.
12273 subscripts. Remove evil changequotes here.
12274 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12275 * config.in, configure: Regenerated.
12277 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12278 * configure.in: Cleanup section that sources GDB and BFD configure
12279 subscripts. Remove evil changequotes here.
12280 * config.in, configure: Regenerated.
12282 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12284 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12285 frame accessor methods.
12286 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12287 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12288 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12289 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12290 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12291 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12292 * z8k-tdep.c: Ditto.
12294 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12296 * configure.in: Remove UI_OUT configuration code.
12297 * ada-lang.c: Update assuming UI_OUT is always true.
12298 * Makefile.in (UIOUT_CFLAGS): Remove.
12299 * configure: Regenerated.
12300 * TODO: Remove blurb about elimination of -DUI_OUT.
12302 * configure.in: Move code that provides the --enable-gdbcli,
12303 --enable-gdbmi options right before the code that handles the
12304 --enable-tui option. Polish a bit.
12305 * configure: Regenerated.
12307 * configure.in: Rewrite check for GNU regex and the
12308 --without-included regex option, and move it into the "Checks for
12309 library functions" section. This makes us use the system regex
12310 again by default on systems with version 2 of the GNU C library.
12311 This was apparently broken.
12312 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12313 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12314 * config.in, configure: Regenerated.
12316 * configure.in: Move code that provides the --enable-tui option
12317 before the "Checks for libraries" section. Polish the code
12318 somewhat and set need_curses to yes if we build the TUI. Rewrite
12319 code that looks for a library providing termcap functionality to
12320 match more closely what's done in the Readline library, and move
12321 it into to the "Checks for libraries" section.
12322 * configure: Regenerated.
12323 * Makefile.in (TERMCAP): Remove variable.
12324 * config/i386/go32.mh (TERMCAP): Remove variable.
12326 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12328 * MAINTAINERS: Mention gdb_mbuild.sh.
12329 * gdb_mbuild.sh: Rewrite.
12331 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12333 * configure.in: Fix typo in last change.
12334 * config.in, configure: Regenerated.
12336 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12338 * valarith.c (value_binop): Delete obsolete code and comments.
12339 * configure.host: Ditto.
12340 * buildsym.h (make_blockvector): Ditto.
12341 * buildsym.c (make_blockvector): Ditto.
12342 * defs.h (enum language): Ditto.
12343 (chill_demangle): Ditto.
12344 * elfread.c (elf_symtab_read): Ditto.
12345 * dwarfread.c (CHILL_PRODUCER): Ditto.
12346 (set_cu_language): Ditto.
12347 (handle_producer): Ditto.
12348 * expprint.c (print_subexp): Ditto.
12349 * gdbtypes.c (chill_varying_type): Ditto.
12350 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12351 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12352 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12353 (chill_varying_type): Ditto.
12354 * language.h (_LANG_chill): Ditto.
12355 * language.c (binop_result_type, integral_type): Ditto.
12356 (character_type, string_type, structured_type): Ditto.
12357 (lang_bool_type, binop_type_check): Ditto.
12358 * stabsread.h (os9k_stabs): Ditto.
12359 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12360 (define_symbol, read_type, read_struct_fields): Ditto.
12361 (read_array_type, read_enum_type, read_huge_number): Ditto.
12362 (read_range_type, start_stabs): Ditto.
12363 * symfile.c (init_filename_language_table): Ditto.
12364 (add_psymbol_with_dem_name_to_list): Ditto.
12365 * symtab.c (symbol_init_language_specific): Ditto.
12366 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12367 * symtab.h (struct general_symbol_info): Ditto.
12368 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12369 * typeprint.c (typedef_print): Ditto.
12370 * utils.c (fprintf_symbol_filtered): Ditto.
12371 * valops.c (value_cast, search_struct_field, value_slice): Delete
12373 (varying_to_slice): Delete function.
12374 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12375 (varying_to_slice): Delete declaration.
12376 * MAINTAINERS: Update.
12378 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12380 * configure.in: Reorganize "Checks for library functions section"
12381 a bit. Remove check for `btowc' and `isascii' functions.
12382 * configure: Regenerated.
12384 * acconfig.h (_MSE_INT_H): Remove.
12385 * configure.in: Create "Checks for header files" section, and move
12386 appropriate tests there. Don't check for objlist.h, wchar.h,
12387 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12388 misdetection fix. Also add "Checks for types", "Checks for
12389 compiler characteristics" and "Checks for library functions"
12391 * config.in, configure: Regenerated.
12393 * configure.in: Create "Checks for programs" section, and move
12394 appropriate tests there.
12396 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12398 * configure.in: Create "Checks for libraries" section, and move
12399 appropriate tests there. Cleanup check for wctype in libw. Use
12400 AC_SEARCH_LIBS to see whether we need libsocket.
12401 * configure: Regenerated.
12403 For older changes see ChangeLog-2002
12409 version-control: never